Re: Infinite loop in dcraw with current GCC versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3 March 2015 at 03:32,  <dcoffin@xxxxxxxxxxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux