This is the mail archive of the gcc-bugs@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]

[Bug c++/50239] compiled program segfault when -O0 is used to compile


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


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