This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[PATCH, gfortran] Add data attribute to vars in old-style initializations


:ADDPATCH gfortran:

Hi,

While working on PR 20441 (-finit-local-zero), I came across this bug: variables with old-style initializations don't get tagged with the data attribute. This means that we allow some illegal code (see attached testcase), and it makes it difficult to figure out which variables are uninitialized.

Bootstrapped and regression tested on i686-pc-linux. Okay for trunk and 4.1?

-Asher

2006-06-29 Asher Langton <langton2@llnl.gov>

gcc/fortran
	* decl.c (match_old_style_init): Add data attribute to symbol.

gcc/testsuite
	* gfortran.dg/oldstyle_2.f90: New.

Attachment: add_data_attr.diff
Description: Binary data

Attachment: oldstyle_2.f90
Description: Binary data


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