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] | |
Tested on i686-linux, committed on trunk This patch optimizes the installation of access checks for access parameters. If a reference to an access formal appears in the declarative part of a subprogram body, it is sufficent to generate only one access check and disable the rest thoughout the handled statements. 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com> * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine. (Mark_Non_Null): If the node for which we just generated an access check is a reference to an *in* parameter and the reference appears in the declarative part of a subprogram body, mark the node as known non null.
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] |