[PATCH] Simplify flag munging for rndjent.c

Harmen Stoppels harmen at stoppels.ch
Thu Feb 6 10:51:33 CET 2025


Any examples of compilers that do not do that?

On Thu, Feb 6, 2025, at 8:22 AM, NIIBE Yutaka wrote:
> Hello,
>
> "Harmen Stoppels" <harmen at stoppels.ch> wrote:
>> * random/Makefile.am (o_flag_munging): append -O0
>>
>> Replace `echo ... | sed` idiom with simply appending -O0. This overrides
>> previous optimization flags. Hopefully that ends the series of patches
>> to these lines.
>
> Yes, GCC and Clang have this behavior; In GCC manual, it says:
>
>      If you use multiple '-O' options, with or without level numbers,
>      the last such option is the one that is effective.
>
> However, not all compilers have this behavior.  So, please don't change.
>
> Well, I would understand your intention to prefer simpler things.  Thank
> you for your attempt.
> --



More information about the Gcrypt-devel mailing list