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] Warn if -gnateE specified and cannot be supported


This implements a warning that is output if the switch -gnateE (Extra
Exception Information) is specified on the command line, and the
configuration in use does not support it (true of configurable
run-times with the restriction No_Exception_Handlers or
No_Exception_Propagation. If a trivial program like

     1. package q is
     2. end;

is compiled using the switch -gnateE in the presence of a system.ads
file that specifies Configurable_Run_Time to be True, and has the
restriction No_Exception_Handlers set, then the following lines
will be output:

warning: extra exception information (-gnateE) was specified
warning: this capability is not available in this configuration

Tested on x86_64-pc-linux-gnu, committed on trunk

2013-09-10  Robert Dewar  <dewar@adacore.com>

	* gnat1drv.adb (Adjust_Global_Switches): Output warning if
	-gnateE specified for a target that does not support it.

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]