Re: [Tinycc-devel] -Werror=X (but ugly)

2021-08-02 Thread Steffen Nurpmeso
N'morning. grischka wrote in <6105b650.90...@gmx.de>: |Steffen Nurpmeso wrote: |> grischka wrote in |> <6102f8d1.40...@gmx.de>: |>|Steffen Nurpmeso wrote: |>|> The enum adds quite a bit on top of it; the addition of |>|> set_W_flag() is, hmm, not nice, but i hope the current approach is

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-08-01 Thread grischka
Christian JULLIEN wrote: On macOS M1 (not yet fixed with long double), the latest commit stalls on test 60 ...60_errors_and_warnings ;; runs forever Should work now. I did set the TCC_USING_DOUBLE_FOR_LDOUBLE for macho-arm64 instead which might or might not have some effect. Thanks, ---

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-08-01 Thread Christian JULLIEN
Same issue with Linux arm (RPi) Le :01 août 2021 à 10:54 (GMT +02:00) De :"Christian JULLIEN" eli...@orange.fr À :"tinycc-devel@nongnu.org" tinycc-devel@nongnu.org Objet :Re: [Tinycc-devel] -Werror=X (but ugly) On macOS M1 (not yet fixed with long double), the latest c

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-08-01 Thread Christian JULLIEN
On macOS M1 (not yet fixed with long double), the latest commit stalls on test 60 ...60_errors_and_warnings ;; runs forever Le :31 juillet 2021 à 22:45 (GMT +02:00) De :"grischka" gris...@gmx.de À :"tinycc-devel@nongnu.org" tinycc-devel@nongnu.org Objet :Re: [Tinycc-devel]

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-07-31 Thread grischka
Steffen Nurpmeso wrote: grischka wrote in <6102f8d1.40...@gmx.de>: |Steffen Nurpmeso wrote: |> The enum adds quite a bit on top of it; the addition of |> set_W_flag() is, hmm, not nice, but i hope the current approach is |> not too heavy. | |Maybe not heavy really but unnecessary, in

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-07-30 Thread Steffen Nurpmeso
grischka wrote in <6102f8d1.40...@gmx.de>: |Steffen Nurpmeso wrote: |> The enum adds quite a bit on top of it; the addition of |> set_W_flag() is, hmm, not nice, but i hope the current approach is |> not too heavy. | |Maybe not heavy really but unnecessary, in quite some aspects. |One of

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-07-29 Thread grischka
Steffen Nurpmeso wrote: The enum adds quite a bit on top of it; the addition of set_W_flag() is, hmm, not nice, but i hope the current approach is not too heavy. Maybe not heavy really but unnecessary, in quite some aspects. One of them that after all tinycc currently does have only 2 warnings

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-07-28 Thread Steffen Nurpmeso
Hello. grischka wrote in <61013ba4.4000...@gmx.de>: |Steffen Nurpmeso wrote: |>| gcc -Wwrite-strings -Werror=discarded-qualifiers |> |> Hm. Well then this part is not compatible it seems. | |Not compatible and cannot work: | | const char *xxx = "123"; /* no warning or error

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-07-28 Thread grischka
Steffen Nurpmeso wrote: | gcc -Wwrite-strings -Werror=discarded-qualifiers Hm. Well then this part is not compatible it seems. Not compatible and cannot work: const char *xxx = "123"; /* no warning or error here */ foo(); /* nobody said we would want this to stop */ $ tcc

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-07-27 Thread Steffen Nurpmeso
grischka wrote in <60ff3c86.6020...@gmx.de>: |Steffen Nurpmeso wrote: ... |> I would like to have it, but the implementation is so ugly! | |Classic dilemma ... Oooh .. yes. ... |> Also, things like write-strings play with | |What "things like write-strings"? There is only

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-07-26 Thread grischka
Steffen Nurpmeso wrote: Hello! I would like to have it, but the implementation is so ugly! Classic dilemma ... My "natural" thought would be to have flag carriers, and simply use bit 1 for "warn" and bit 2 for "error out", but that needs quite some work. Sure. Natural and simple idea but

Re: [Tinycc-devel] -Werror=X (but ugly)

2021-07-26 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20210726142524.soil2%stef...@sdaoden.eu>: |+ (subt = 1, !strncmp(optarg, "no-error", |+(uintptr_t)(sub - optarg && |+set_flag(s, options_Werror, ++sub) == 0) { Ah merde, of course this