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] |
Tobias Burnus wrote:The patch was build and loosely tested. It is currently bootstrapping and will then be regtested on x86-64-linux. OK for the trunk?
ok for the Fortran part
- add_sym_0 ("compiler_options", GFC_ISYM_COMPILER_OPTIONS, CLASS_IMPURE,
+ add_sym_0 ("compiler_options", GFC_ISYM_COMPILER_OPTIONS, CLASS_INQUIRY,
When you first submitted the patch with CLASS_IMPURE, I wondered about this -- but now I guess this was just in accident and the standard lists them as inquiry?
What about adding the if as default clause to the switch instead of the continue branching?Done.
gfc_simplify_compiler_version (void) { + buffer = (char*) alloca (len); return gfc_get_character_expr (gfc_default_character_kind, + &gfc_current_locus, buffer, len);
Possibly stupid question: Isn't alloca supposed to allocate memory on the stack that is free'ed automatically on scope exit? If so, doesn't this create a dangling pointer referenced from the expression?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |