From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9145 invoked by alias); 18 Jun 2010 13:45:14 -0000 Received: (qmail 8778 invoked by uid 48); 18 Jun 2010 13:44:59 -0000 Date: Fri, 18 Jun 2010 13:45:00 -0000 Message-ID: <20100618134459.8777.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/38607] AIX error messages about TOC during build In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "michael dot haubenwallner at salomon dot at" 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: 2010-06/txt/msg01850.txt.bz2 ------- Comment #14 from michael dot haubenwallner at salomon dot at 2010-06-18 13:44 ------- (In reply to comment #13) > #include > #include > void foo() > { > std::map bar; > } Simply compiling this source code into an rtl-enabled shared library leads to that linker warning, with both vanilla gcc-4.5.0 and gcc-4.4.4, configured to use native as and ld each, on AIX5.3 TL8. $ g++ -shared -Wl,-G -o libshare.so test.cpp ld: 0711-768 WARNING: Object /tmp//ccIju3gQ.o, section 1, function *SNIP*: The branch at address 0x618 is not followed by a recognized no-op or TOC-reload instruction. The unrecognized instruction is 0x801F007C. The warning isn't shown with the '-bsymbolic' linker flag, as this one relocation is finally resolved locally and the subsequent 'nop' isn't needed. But doing symbolic linking doesn't fit as workaround. Thank you! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38607