This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/52362] gnat.dg/lto8.adb FAILs with gas/gld
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 May 2012 09:24:12 +0000
- Subject: [Bug ada/52362] gnat.dg/lto8.adb FAILs with gas/gld
- Auto-submitted: auto-generated
- References: <bug-52362-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52362
--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-05-25 09:24:12 UTC ---
Author: ebotcazou
Date: Fri May 25 09:24:08 2012
New Revision: 187874
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187874
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:
trunk/gcc/testsuite/gnat.dg/lto14.adb
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/gnatlink.adb
trunk/gcc/ada/link.c
trunk/gcc/ada/mlib-utl.adb
trunk/gcc/config.gcc
trunk/gcc/config.in
trunk/gcc/configure
trunk/gcc/configure.ac
trunk/gcc/testsuite/ChangeLog