https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68480
--- Comment #3 from Manjeet Dahiya ---
(In reply to Manjeet Dahiya from comment #2)
> (In reply to Andreas Schwab from comment #1)
> > Did you mean gcc-5.1.0?
>
> No. It is for gcc-4.1.0 :) We were checking for equivalence of code
> generated ac
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68480
--- Comment #2 from Manjeet Dahiya ---
(In reply to Andreas Schwab from comment #1)
> Did you mean gcc-5.1.0?
No. It is for gcc-4.1.0 :) We were checking for equivalence of code generated
across different versions and found this bug. We saw that
Assignee: unassigned at gcc dot gnu.org
Reporter: manjeetdahiya at gmail dot com
Target Milestone: ---
When I compile following code with -O2 -m32 -S -fno-strict-aliasing
-fno-unrolling -fno-builtin. GCC seems to be not respecting
-fno-strict-aliasing. I don't encounter this issue in gc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68462
--- Comment #3 from Manjeet Dahiya ---
(In reply to Andrew Pinski from comment #2)
> N_domains and domain_array don't overlap at all and it is known to overlap
> as writing past arrays bounds is undefined and is unrelated to strict
> aliasing.
T
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68462
--- Comment #1 from Manjeet Dahiya ---
GCC version details:
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
Here are the options I used:
gcc -c -O2 -fno-strict-aliasing -m32 -S
Assignee: unassigned at gcc dot gnu.org
Reporter: manjeetdahiya at gmail dot com
Target Milestone: ---
For the following code -fno-strict-aliasing is not respected in function
add_link_to_domain. The variable N_domains is cached before executing:
domain_array[N_domains].lol = lol