This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/25791] -O2 execution fails, -O and -g work
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2006 06:51:55 -0000
- Subject: [Bug rtl-optimization/25791] -O2 execution fails, -O and -g work
- References: <bug-25791-12018@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from pinskia at gcc dot gnu dot org 2006-01-19 06:51 -------
Oh, you are depending on the order of the static/global variables. That is
undefined C.
Try -O2 -fno-unit-at-a-time. If that works this is NOT, I will repeat NOT a
GCC bug as you are depending on undefined code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25791