public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tammy at Cadence dot COM" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58208] New: deque<std::string> 32-bit "-O3" bug Date: Tue, 20 Aug 2013 22:28:00 -0000 [thread overview] Message-ID: <bug-58208-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 Bug ID: 58208 Summary: deque<std::string> 32-bit "-O3" bug Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tammy at Cadence dot COM The following testcase works with gcc473, but crash with gcc481: $ cat main.C int main () {} $ cat qt.C #include <deque> #include <string> std::deque<std::string> l1; $ cat build.orig #!/bin/csh -fex set GCCVER = /home/tammy/gcc481 setenv CXXFLAGS "-fpic -m32 -std=c++11 -O3" rm -f libqt.so import main.o ${GCCVER}/bin/g++ -c $CXXFLAGS qt.C ${GCCVER}/bin/g++ -m32 -shared -o libqt.so qt.o ${GCCVER}/bin/g++ -c $CXXFLAGS main.C ${GCCVER}/bin/g++ -o import main.o -Wl,-rpath,${GCCVER}/lib -m32 -L. -lqt $ ./build.orig set GCCVER = /home/tammy/gcc481 setenv CXXFLAGS -fpic -m32 -std=c++11 -O3 rm -f libqt.so import main.o /home/tammy/gcc481/bin/g++ -c -fpic -m32 -std=c++11 -O3 qt.C /home/tammy/gcc481/bin/g++ -m32 -shared -o libqt.so qt.o /home/tammy/gcc481/bin/g++ -c -fpic -m32 -std=c++11 -O3 main.C /home/tammy/gcc481/bin/g++ -o import main.o -Wl,-rpath,/home/tammy/gcc481/lib -m32 -L. -lqt $ ./import Segmentation fault $ The 64-bit version works. If I change "-O3" to "-O2" or "-O3 -fno-tree-vectorize", it works also.
next reply other threads:[~2013-08-20 22:28 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-08-20 22:28 tammy at Cadence dot COM [this message] 2013-08-20 22:38 ` [Bug tree-optimization/58208] " paolo.carlini at oracle dot com 2013-08-23 22:34 ` [Bug target/58208] " tammy at Cadence dot COM 2013-08-23 23:05 ` pinskia at gcc dot gnu.org 2013-08-24 12:19 ` mikpe at it dot uu.se 2013-08-25 10:14 ` mikpe at it dot uu.se 2013-08-25 18:12 ` mikpe at it dot uu.se 2013-08-25 20:02 ` mikpe at it dot uu.se 2013-08-26 3:07 ` tammy at Cadence dot COM 2013-08-26 17:08 ` tammy at Cadence dot COM 2013-08-26 19:43 ` tammy at Cadence dot COM 2013-08-28 23:02 ` tammy at Cadence dot COM 2023-06-07 2:03 ` pinskia at gcc dot gnu.org 2023-06-07 2:05 ` pinskia at gcc dot gnu.org 2023-06-07 2:06 ` pinskia at gcc dot gnu.org
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-58208-4@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).