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]

[Ada] improve handling of switches


Tested on i686-linux, committed on trunk

Unlike other compilers in the collection, GNAT currently doesn't support
multilibs.
This means that, when a multilib switch is nevertheless used to request
a particular compilation mode, the corresponding runtime switch (--RTS)
must also be specified.
For example -mrtp --RTS=rtp for the RTP mode on VxWorks 6.
The long term goal is to support multilibs.  However, in the meantime, it
is convenient to eliminate the redundancy by keying everything on a single
switch.

2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>

	* gnatlink.adb (Gnatlink): Pass switches to the linker even if the
	binder-generated file is not in Ada.
	Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
	recorded in the ALI file.
	Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.

Attachment: difs
Description: Text document


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