From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10993 invoked by alias); 25 May 2012 10:07:43 -0000 Received: (qmail 10977 invoked by uid 22791); 25 May 2012 10:07:42 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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; Fri, 25 May 2012 10:07:27 +0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/52362] gnat.dg/lto8.adb FAILs with gas/gld Date: Fri, 25 May 2012 10:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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-05/txt/msg02461.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52362 --- Comment #10 from Eric Botcazou 2012-05-25 10:07:27 UTC --- Author: ebotcazou Date: Fri May 25 10:07:23 2012 New Revision: 187877 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187877 Log: PR ada/52362 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and gnu_ld variables to yes. * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion. (HAVE_GNU_AS): Likewise. * config.in: Regenerate. * configure: Likewise. ada/ * link.c (__gnat_object_file_option): Set to "-Wl,@" for GNU linker. (__gnat_using_gnu_linker): Delete. * gnatlink.adb (Gnatlink): Declare Object_File_Option_Ptr here... Declare Object_File_Option string constant and Using_GNU_response_file boolean constant. (Process_Binder_File): ...instead of here. Delete Using_GNU_Linker, Opening and Closing local variables. Do not handle the GNU linker specially. (Write_RF): New procedure to write into the response file. Escape some characters if a GNU response file is used. Keep track of error status. Invoke Write_RF to write into the response file. Delete the file only if the link was successful. * mlib-utl.adb: Do not `with' package System. (Gcc): Likewise. Declare Object_File_Option string constant and Using_GNU_response_file boolean constant. (Write_RF): Take a string instead of address and length. Escape some characters if a GNU response file is used. Invoke Write_RF to write into the response file. Delete the file only if the link was successful. Do not warn if it cannot be deleted. Added: branches/gcc-4_7-branch/gcc/testsuite/gnat.dg/lto14.adb - copied unchanged from r187874, trunk/gcc/testsuite/gnat.dg/lto14.adb Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/ada/ChangeLog branches/gcc-4_7-branch/gcc/ada/gnatlink.adb branches/gcc-4_7-branch/gcc/ada/link.c branches/gcc-4_7-branch/gcc/ada/mlib-utl.adb branches/gcc-4_7-branch/gcc/config.gcc branches/gcc-4_7-branch/gcc/config.in branches/gcc-4_7-branch/gcc/configure branches/gcc-4_7-branch/gcc/configure.ac branches/gcc-4_7-branch/gcc/testsuite/ChangeLog