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] Add warning when using gnatbind -p in static mode


Tested on i686-linux, committed on HEAD

The gnatbind -p (pessimistic elab order) does not make sense if
all units in a partition are compiled using the default static
elaboration model. This patch causes a warning to be generated
in this situation.

If this program:

procedure main is begin null; end;

is given to gnatmake -q -bargs -p, the output will be:

warning: use of -p switch questionable
warning: since all units compiled with static elaboration model

2005-09-01  Robert Dewar  <dewar@adacore.com>

	* binde.adb: Minor reformatting
	(Find_Elab_Order): Output warning if -p used with static elab order

Attachment: difs.10
Description: Text document


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