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] Do not generate adafinal if No_Finalization restriction is set.


In C mode gnatbind doesn't generate adafinal if finalization is not allowed.
This patch reflects this behaviour in Ada mode.

When this example is compiled with -bargs -g, the binder file shouldn't
contain an adafinal subprogram.

pragma restrictions (no_finalization);

procedure main is
begin
  null;
end main;

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

2009-04-15  Tristan Gingold  <gingold@adacore.com>

	* bindgen.adb: Do not generate adafinal if No_Finalization restriction
	is set.

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]