This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Infinite loop in dcraw with current GCC versions


On 3 March 2015 at 03:32,  <dcoffin@shell.cybercom.net> wrote:
> Hi Manuel,
>
>      Here's the blend_highlights() function from dcraw.c
> with just the includes, defines, and globals it needs to
> compile.
>
>         gcc -Wall -O4 -march=athlon64 foo.c
>
>      gives two "array bounds" warnings,
>
>         gcc -Wall -O4 -march=x86-64 foo.c
>         gcc -Wall -O4 foo.c
>         gcc -Wall -O3 foo.c
>
>      give one warning, while "-O2" or less gives no warnings.
> Unlike -Wunused-result and -Waggressive-loop-optimizations,
> -Warray-bound is not enabled by default, only because I use
> -Wall.

Sorry, I cannot reproduce the warning with either gcc 4.8.2 or gcc 5.0
(r221118). In any case, it would be better to open a PR
(https://gcc.gnu.org/bugs/) than to discuss it here. BTW, -Ox n >=3 is
exactly equivalent to -O3.

Cheers,

Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]