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]

Ping**2! Re: [PATCH, Fortran] Extension: AUTOMATIC/STATIC symbol attributes with -fdec-static


https://gcc.gnu.org/ml/fortran/2016-08/msg00173.html
On Mon, Aug 29, 2016 at 8:36 AM, Fritz Reese <fritzoreese@gmail.com> wrote:
>
> https://gcc.gnu.org/ml/fortran/2016-08/msg00077.html
> On Wed, Aug 17, 2016 at 7:20 AM, Fritz Reese <fritzoreese@gmail.com> wrote:
> > This patch extends the GNU Fortran front-end to add support for
> > DEC-style AUTOMATIC and STATIC symbol attributes with a new flag
> > -fdec-static, allowing explicit control of variable storage. AUTOMATIC
> > local variables are placed on the stack, whereas STATIC variables are
> > placed in static storage.
>
> Patch still pending review.
>
> > Bootstraps and regtests on x86_64-redhat-linux. Questions, comments,
> > and critique welcome. Ok for trunk?
> ...
> >
> > 08-17-2016  Fritz Reese  <fritzoreese@gmail.com>
> >
> >     gcc/fortran/
> >         * lang.opt, invoke.texi, gfortran.texi: New flag -fdec-static.
> >             * options.c (set_dec_flags): Set -fdec-static with -fdec.
> >         * gfortran.h (symbol_attribute): New attribute AUTOMATIC.
> >         * gfortran.h (gfc_add_automatic): New prototype.
> >         * match.h (gfc_match_automatic, gfc_match_static): New functions.
> >         * decl.c (gfc_match_automatic, gfc_match_static): Ditto.
> >         * symbol.c (gfc_add_automatic): Ditto.
> >         * decl.c (match_attr_spec): Match AUTOMATIC and STATIC decls.
> >         * parse.c (decode_specification_statement, decode_statement): Ditto.
> >         * resolve.c (apply_default_init_local, resolve_fl_variable_derived,
> >         resolve_symbol): Support for automatic attribute.
> >         * symbol.c (check_conflict, gfc_copy_attr, gfc_is_var_automatic):
> >         Ditto.
> >         * trans-decl.c (gfc_finish_var_decl): Ditto.
> >
> >     gcc/testsuite/gfortran.dg/
> >         * dec_static_1.f90, dec_static_2.f90: New testcases.
>


---
Fritz Reese


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