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] optimize finalization of controlled objects


Tested under i686-linux, commited on mainline.

The code was systematically looking at the current exception in order
to check if we were finalizing because of an abort statement
(or equivalent). Accessing the current exception can be pretty
expensive in presence of tasking and thus we avoid this expensive
access when the program is known to be abort free.

2005-02-09  Cyrille Comar  <comar@adacore.com>

	* s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
	Minor reformatting.

Attachment: difs.17
Description: Text document


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