From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104712 invoked by alias); 17 Jun 2015 10:04:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 104596 invoked by uid 89); 17 Jun 2015 10:04:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f54.google.com Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 17 Jun 2015 10:04:26 +0000 Received: by oiax193 with SMTP id x193so30571387oia.2 for ; Wed, 17 Jun 2015 03:04:24 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.41.132 with SMTP id f4mr3918509oel.51.1434535464502; Wed, 17 Jun 2015 03:04:24 -0700 (PDT) Received: by 10.60.147.170 with HTTP; Wed, 17 Jun 2015 03:04:24 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Jun 2015 10:17:00 -0000 Message-ID: Subject: Re: [PATCH, testsuite]: Fix PR 65944, FAIL: g++.dg/lto/pr65276: undefined reference to std2::exception::~exception() From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-06/txt/msg01185.txt.bz2 On Tue, Jun 16, 2015 at 5:13 PM, Uros Bizjak wrote: > Hello! > > Following patch fixes: > > cp_lto_pr65276_1.o: In function `std2::runtime_error::~runtime_error()':^M > pr65276_1.C:(.text._ZN4std213runtime_errorD2Ev[_ZN4std213runtime_errorD5Ev]+0x8): > undefined reference to `std2::exception::~exception()'^M > cp_lto_pr65276_1.o: In function `std2::runtime_error::~runtime_error()':^M > pr65276_1.C:(.text._ZN4std213runtime_errorD0Ev[_ZN4std213runtime_errorD5Ev]+0xc): > undefined reference to `std2::exception::~exception()'^M > cp_lto_pr65276_1.o:(.rodata._ZTVN4std29exceptionE[_ZTVN4std29exceptionE]+0x10): > undefined reference to `std2::exception::~exception()'^M > cp_lto_pr65276_1.o:(.rodata._ZTVN4std29exceptionE[_ZTVN4std29exceptionE]+0x18): > undefined reference to `std2::exception::~exception()'^M > collect2: error: ld returned 1 exit status^M > > link error with g++.dg/lto/pr65276 testcase. > > 2015-06-16 Uros Bizjak > > PR testsuite/65944 > * g++.dg/lto/pr65276_0.C: Add std2::exception::~exception() function. > > Tested on x86_64-linux-gnu CentOS 5.11 (where linking failed) and > Fedora 22 (where linking didn't fail). > > OK for mainline and gcc-5 branch? Now committed as obvious. Uros.