public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48448] New: Implement -f(no-)frontend-optimization
@ 2011-04-05  6:23 burnus at gcc dot gnu.org
  2011-04-05  7:11 ` [Bug fortran/48448] " tkoenig at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-04-05  6:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48448

           Summary: Implement -f(no-)frontend-optimization
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: tkoenig@gcc.gnu.org


As proposed by Joost:

Having some option, for instance -f(no-)frontend-optimization, to
disable/enable the front-end optimization.

That allows FE optimization with -O0, e.g. for LTO or debugging.
Or to disable it for -O1/-O2/-O3 for debugging or testing.


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

* [Bug fortran/48448] Implement -f(no-)frontend-optimization
  2011-04-05  6:23 [Bug fortran/48448] New: Implement -f(no-)frontend-optimization burnus at gcc dot gnu.org
@ 2011-04-05  7:11 ` tkoenig at gcc dot gnu.org
  2011-04-08 21:46 ` tkoenig at gcc dot gnu.org
  2011-04-08 21:55 ` tkoenig at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-05  7:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48448

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.04.05 07:11:33
         AssignedTo|unassigned at gcc dot       |tkoenig at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-05 07:11:33 UTC ---
Working on this.


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

* [Bug fortran/48448] Implement -f(no-)frontend-optimization
  2011-04-05  6:23 [Bug fortran/48448] New: Implement -f(no-)frontend-optimization burnus at gcc dot gnu.org
  2011-04-05  7:11 ` [Bug fortran/48448] " tkoenig at gcc dot gnu.org
@ 2011-04-08 21:46 ` tkoenig at gcc dot gnu.org
  2011-04-08 21:55 ` tkoenig at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-08 21:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48448

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-08 21:46:11 UTC ---
Author: tkoenig
Date: Fri Apr  8 21:46:08 2011
New Revision: 172215

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172215
Log:
2011-04-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/48448
    * gfortran.h (gfc_option_t):  Add warn_function_elimination and
    flag_frontend_optimize.
    * lang.opt (Wfunction-elimination):  Add.
    (ffrontend-optimize):  Add.
    * invoke.texi:  Add documentation for -Wfunction-elimination
    and -ffrontend-optimize.  Add -faggressive-function-elimination
    to list of code generation options.
    * frontend-passes.c (gfc_run_passes):  Run optimizations if
    flag_frontend_optimize is set.
    (warn_function_elimination):  New function.
    (cfe_expr_0):  Call it if requested to do so.
    * options.c (gfc_init_options):  Initiate warn_function_elimination
    and flag_frontend_optimize.
    (gfc_post_options):  Set flag_frontend_optimize if not specified
    by user, depending on the optimization level.
    (gfc_handle_option):  Handle -Wfunction-elimination and
    -ffrontend-optimize.

2011-04-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/48448
    * gfortran.dg/function_optimize_5.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/function_optimize_5.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/frontend-passes.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/invoke.texi
    trunk/gcc/fortran/lang.opt
    trunk/gcc/fortran/options.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/48448] Implement -f(no-)frontend-optimization
  2011-04-05  6:23 [Bug fortran/48448] New: Implement -f(no-)frontend-optimization burnus at gcc dot gnu.org
  2011-04-05  7:11 ` [Bug fortran/48448] " tkoenig at gcc dot gnu.org
  2011-04-08 21:46 ` tkoenig at gcc dot gnu.org
@ 2011-04-08 21:55 ` tkoenig at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2011-04-08 21:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48448

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-08 21:55:12 UTC ---
Implemented, closing.


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

end of thread, other threads:[~2011-04-08 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-05  6:23 [Bug fortran/48448] New: Implement -f(no-)frontend-optimization burnus at gcc dot gnu.org
2011-04-05  7:11 ` [Bug fortran/48448] " tkoenig at gcc dot gnu.org
2011-04-08 21:46 ` tkoenig at gcc dot gnu.org
2011-04-08 21:55 ` tkoenig at gcc dot gnu.org

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).