public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Ping! Re: [PATCH, Fortran] New flag -finit-derived to initialize components of derived types
@ 2016-08-12 20:25 Fritz Reese
  2016-08-15 20:18 ` Thomas Koenig
  0 siblings, 1 reply; 5+ messages in thread
From: Fritz Reese @ 2016-08-12 20:25 UTC (permalink / raw)
  To: gcc-patches, fortran

https://gcc.gnu.org/ml/fortran/2016-08/msg00014.html
On Thu, Aug 4, 2016 at 2:07 PM, Fritz Reese <fritzoreese@gmail.com> wrote:
> ...
> To increase usability and compatibility I have thus a patch which
> introduces a new flag -finit-derived into GNU Fortran, allowing
> initialization of automatic derived-type and structure variables. With
> the patch GNU Fortran generates initializers for structure/derived
> type components as if they were local variables of the same type,
> according to the other initialization flags (-finit-local-zero,
> finit-real=, -finit-integer=, etc...).
> ...

Still waiting on a review for this patch. Comments/concerns from all
are welcome.

> ...
> Bootstraps and passes all tests (including the several shipped with
> it) on x86_64-redhat-linux. If it is ok for trunk I will commit.
> ...
>     2016-08-04  Fritz Reese  <fritzoreese@gmail.com>
>
>         gcc/fortran/
>         * lang.opt, invoke.texi: New flag -finit-derived.
>         * gfortran.h (gfc_build_default_init_expr, gfc_apply_init,
>         gfc_generate_initializer): New prototypes.
>         * expr.c (gfc_build_default_init_expr, gfc_apply_init,
>         component_initializer, gfc_generate_initializer): New functions.
>         * expr.c (gfc_default_initializer): Wrap gfc_generate_initializer.
>         * decl.c (build_struct): Move common code to gfc_apply_init.
>         * resolve.c (can_generate_init): New function.
>         * resolve.c (build_default_init_expr): Wrap gfc_build_default_init_expr.
>         * resolve.c (apply_default_init, resolve_fl_variable_derived): Use
>         gfc_generate_initializer.
>         * trans-decl.c (gfc_generate_function_code): Use
>         gfc_generate_initializer.
>
>         gcc/testsuite/gfortran.dg/
>         * init_flag_13.f90: New testcase.
>         * init_flag_14.f90: Ditto.
>         * init_flag_15.f03: Ditto.
>         * dec_init_1.f90: Ditto.
>         * dec_init_2.f90: Ditto.

---
Fritz Reese

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ping! Re: [PATCH, Fortran] New flag -finit-derived to initialize components of derived types
  2016-08-12 20:25 Ping! Re: [PATCH, Fortran] New flag -finit-derived to initialize components of derived types Fritz Reese
@ 2016-08-15 20:18 ` Thomas Koenig
  2016-08-23 20:53   ` Gerald Pfeifer
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Koenig @ 2016-08-15 20:18 UTC (permalink / raw)
  To: Fritz Reese, gcc-patches, fortran, gerald

Hi Fritz,

> Still waiting on a review for this patch. Comments/concerns from all
> are welcome.


The patch looks fine to me.

OK for trunk, and thanks for the patch!

Regards

	Thomas

@Gerald: Will a gcc-7/changes.html file be generated?  If so, we should
document this new flag (and others...)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ping! Re: [PATCH, Fortran] New flag -finit-derived to initialize components of derived types
  2016-08-15 20:18 ` Thomas Koenig
@ 2016-08-23 20:53   ` Gerald Pfeifer
  2016-08-23 21:16     ` Fritz Reese
  0 siblings, 1 reply; 5+ messages in thread
From: Gerald Pfeifer @ 2016-08-23 20:53 UTC (permalink / raw)
  To: Thomas Koenig; +Cc: Fritz Reese, gcc-patches, fortran

On Mon, 15 Aug 2016, Thomas Koenig wrote:
> @Gerald: Will a gcc-7/changes.html file be generated?  If so, we should
> document this new flag (and others...)

Yes, please!  Segher beat me to it today, sorry for the delay, and
thanks for thinking of our release notes.

Let me know if you need any help.

Gerald

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ping! Re: [PATCH, Fortran] New flag -finit-derived to initialize components of derived types
  2016-08-23 20:53   ` Gerald Pfeifer
@ 2016-08-23 21:16     ` Fritz Reese
  2016-08-23 21:49       ` Gerald Pfeifer
  0 siblings, 1 reply; 5+ messages in thread
From: Fritz Reese @ 2016-08-23 21:16 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: Thomas Koenig, gcc-patches, fortran

On Tue, Aug 23, 2016 at 4:53 PM, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> On Mon, 15 Aug 2016, Thomas Koenig wrote:
>> @Gerald: Will a gcc-7/changes.html file be generated?  If so, we should
>> document this new flag (and others...)
>
> Yes, please!  Segher beat me to it today, sorry for the delay, and
> thanks for thinking of our release notes.
>
> Let me know if you need any help.

I would be happy to document my new flags (I have added several) in
upcoming release notes or applicable documents - however I do not know
where or how.

---
Fritz Reese

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ping! Re: [PATCH, Fortran] New flag -finit-derived to initialize components of derived types
  2016-08-23 21:16     ` Fritz Reese
@ 2016-08-23 21:49       ` Gerald Pfeifer
  0 siblings, 0 replies; 5+ messages in thread
From: Gerald Pfeifer @ 2016-08-23 21:49 UTC (permalink / raw)
  To: Fritz Reese; +Cc: Thomas Koenig, gcc-patches, fortran

On Tue, 23 Aug 2016, Fritz Reese wrote:
> I would be happy to document my new flags (I have added several) in
> upcoming release notes or applicable documents - however I do not know
> where or how.

I tried to summarize how to checkout and contribute to the web pages
at https://gcc.gnu.org/about.html and will be happy to answer any 
questions and improve that page as well.

Once you have checked out wwwdocs (the name of the web module), 
you'll find the release notes for GCC 7, mostly empty for now, at
  htdocs/gcc-7/changes.html

There is a Fortran section there, which you can start filling. :-)

Any way I can help, let me know.

Gerald

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-23 21:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-12 20:25 Ping! Re: [PATCH, Fortran] New flag -finit-derived to initialize components of derived types Fritz Reese
2016-08-15 20:18 ` Thomas Koenig
2016-08-23 20:53   ` Gerald Pfeifer
2016-08-23 21:16     ` Fritz Reese
2016-08-23 21:49       ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).