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 for TESTING] ADA Cross Compile Fix for GCC-4.1.2


Hi All,

Cross compiling a native ADA compiler fails because the build system tries to use xgcc and associated cross compiled tools to do things on the build host. Where <host> is not equal to <build> this will usually fail.

The attached patch is a step towards fixing the issue.
It works for the test cases where:

 <build>  = <host>  = <target>,
 <build>  = <host> != <target> and
 <build> != <host>  = <target>.

but some aspects of it are some what of a hack.

To do things the same way as the C compiler part of GCC does things, would require more work to be done by the top level configure script. It would need to set up paths to the correct ADA tools to use for various things in much the same way as it sets up GCC_FOR_TARGET e.g. GCC_FOR_HOST, GNATMAKE_FOR_HOST ....

Regards
	Mark Fortescue.

Attachment: ADA-CrossCompile-Native.patch
Description: Binary data


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