From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21398 invoked by alias); 20 Sep 2012 20:30:53 -0000 Received: (qmail 21363 invoked by uid 55); 20 Sep 2012 20:30:29 -0000 From: "baker at usgs dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release Date: Thu, 20 Sep 2012 20:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: baker at usgs dot gov X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" 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-09/txt/msg01621.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #3 from Larry Baker 2012-09-20 20:30:29 UTC --- Richard, Wrong track ... I found the problem (which also occurs when --enable-languages=c,c++). See my posting. Larry Baker US Geological Survey 650-329-5608 baker@usgs.gov On 20 Sep 2012, at 4:37 AM, rguenth at gcc dot gnu.org wrote: > build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release > > Date: Thu, 20 Sep 2012 11:37:04 +0000 > > X-Bugzilla-Reason: Reporter > > X-Bugzilla-Type: changed > > X-Bugzilla-Watch-Reason: None > > X-Bugzilla-Product: gcc > > X-Bugzilla-Component: middle-end > > X-Bugzilla-Keywords: > > X-Bugzilla-Severity: blocker > > X-Bugzilla-Who: rguenth at gcc dot gnu.org > > X-Bugzilla-Status: NEW > > X-Bugzilla-Priority: P3 > > X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org > > X-Bugzilla-Target-Milestone: 4.8.0 > > X-Bugzilla-Changed-Fields: Status Last reconfirmed Component CC Ever > > Confirmed Summary Target Milestone > > Message-ID: > > In-Reply-To: > > References: > > X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ > > Auto-Submitted: auto-generated > > Content-Type: text/plain; charset="UTF-8" > > MIME-Version: 1.0 > > > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 > > > > Richard Guenther changed: > > > > What |Removed |Added > > ---------------------------------------------------------------------------- > > Status|UNCONFIRMED |NEW > > Last reconfirmed| |2012-09-20 > > Component|libstdc++ |middle-end > > CC| |crowl at gcc dot gnu.org, > > | |dnovillo at gcc dot > > | |gnu.org, rguenth at gcc dot > > | |gnu.org > > Ever Confirmed|0 |1 > > Summary|GCC 4.8 |[4.8 Regression] GCC 4.8 > > |--enable-languages=c build |--enable-languages=c build > > |fails: Undefined symbols: |fails: Undefined symbols: > > |___cxa_guard_acquire and |___cxa_guard_acquire and > > |___cxa_guard_release |___cxa_guard_release > > Target Milestone|--- |4.8.0 > > > > --- Comment #1 from Richard Guenther 2012-09-20 11:37:04 UTC --- > > Ick. Now > > > > static hash_table ssa_name_hash; > > > > appearantly has a guarded init!? > > > > D.38548 = __cxa_guard_acquire (&_ZGVZ17coalesce_ssa_namevE13ssa_name_hash); > > retval.1 = D.38548 != 0; > > if (retval.1 != 0) goto ; else goto ; > > : > > D.38265 = 0; > > try > > { > > hash_table::hash_table (&ssa_name_hash); > > D.38265 = 1; > > __cxa_guard_release (&_ZGVZ17coalesce_ssa_namevE13ssa_name_hash); > > } > > catch > > { > > if (D.38265 != 0) goto ; else goto ; > > : > > goto ; > > : > > __cxa_guard_abort (&_ZGVZ17coalesce_ssa_namevE13ssa_name_hash); > > : > > } > > > > I suppose easiest is to remove the 'static' keyword here. > > > > Larry, can you test that? > > > > -- > > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > > ------- You are receiving this mail because: ------- > > You reported the bug.