From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9383 invoked by alias); 14 Jun 2012 15:56:00 -0000 Received: (qmail 9373 invoked by uid 22791); 14 Jun 2012 15:55:58 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Jun 2012 15:55:45 +0000 From: "jjhforrest at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53672] New: gcc/branches/cilkplus does not like C++ spawn (when optimized) Date: Thu, 14 Jun 2012 15:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jjhforrest at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg00929.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53672 Bug #: 53672 Summary: gcc/branches/cilkplus does not like C++ spawn (when optimized) Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: jjhforrest@gmail.com Created attachment 27619 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D27619 .ii file created with -save-temp In real code I get In function '': cc1plus: internal compiler error: Segmentation fault With tiny example (segfault.cpp -> segfault.ii) I get /j/mycilk3/bin/g++ -O2 segfault.ii segfault.cpp: In function =E2=80=98=E2=80=99: segfault.cpp:33:1: internal compiler error: in remap_gimple_op_r, at tree-inline.c:849 } ^ works at -O1 Output from /j/mycilk3/bin/g++ -v Using built-in specs. COLLECT_GCC=3D/j/mycilk3/bin/g++ COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapp= er Target: x86_64-unknown-linux-gnu Configured with: ../cilk2/configure --prefix=3D/j/mycilk3 --libexecdir=3D/u= sr/lib --enable-__cxa_atexit --enable-clocale=3Dgnu --enable-languages=3Dc,c++ --disable-multilib --disable-bootstrap --with-system-zlib CFLAGS=3D'-fPIC -march=3Dx86-64' LD=3D/usr/bin/ld Thread model: posix gcc version 4.8.0 20120522 (experimental) (GCC) segfault.ii attached