This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][Ada] Add option to gnatlink to fix gnat.dg on some platforms


Hi,

As discussed with Eric here:

http://gcc.gnu.org/ml/gcc-patches/2009-04/msg01484.html

And recently mentionned again in the context of mips-linux the work on
Ada multilib showed a weakness on the way gnatlink offers control on its
uses of gcc to compile the binder generated file and link the
executable: currently the system gcc will be used instead of the just
built gcc for gnat.dg testing which breaks platforms where the
system gcc is not close enough to the built gcc (and with time this
means all systems).

The following is a patch to trunk to add an option to gnatlink dedicated
to solving this specific issue.

Tested on x86_64-linux:
http://gcc.gnu.org/ml/gcc-testresults/2009-05/msg00508.html

(And soon on mispel-linux.)

There might be better ways to solve this annoying issue, I'm open to
suggestions.

Laurent

2009-05-07  Laurent GUERBY <laurent@guerby.net>

	* gnatlink.adb: Add --XCC= option to gnatlink.
	* gnat_ugn.texi: Document gnatlink --XCC=.

	* lib/gnat.exp: Use gnatlink --XCC=.

Attachment: patch-gnatlink-xcc-v3.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]