public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "eviom at mail dot ru" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50239] compiled program segfault when -O0 is used to compile Date: Wed, 31 Aug 2011 07:05:00 -0000 [thread overview] Message-ID: <bug-50239-4-5cA1bYMKgL@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <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
next prev parent reply other threads:[~2011-08-31 5:42 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-08-30 16:39 [Bug c++/50239] New: " eviom at mail dot ru 2011-08-30 16:49 ` [Bug c++/50239] " paolo.carlini at oracle dot com 2011-08-31 7:05 ` eviom at mail dot ru [this message] 2011-08-31 8:41 ` redi at gcc dot gnu.org 2011-10-12 15:48 ` paolo.carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-50239-4-5cA1bYMKgL@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).