This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50239] compiled program segfault when -O0 is used to compile
- From: "eviom at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 31 Aug 2011 05:42:06 +0000
- Subject: [Bug c++/50239] compiled program segfault when -O0 is used to compile
- Auto-submitted: auto-generated
- References: <bug-50239-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239
eviom <eviom at mail dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.7.0 |4.5.2
--- Comment #2 from eviom <eviom at mail dot ru> 2011-08-31 05:42:06 UTC ---
When I compile my code, if I compile it -O2, it compiles and runs fine. if I
compile the code without it, my program segfaults while rendering text with
FTGL. I've made no changes to anything in between compiles. Same FTGL code
works fine in win32 (vs2010).
system: ubuntu 11.04 & 10.04
gcc version: 4.5.2 (from deb package)
command line: gcc -I /usr/include/freetype2 -o ~/BlocksWorld/BlocksWorld
Src/*.cpp Src/Linux/*.cpp Src/GUI/*.cpp -lpng -lGL -lGLU -lftgl