[Bug middle-end/92046] New: Command line options (that are per-functions) are affecting --params which are global.

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 10 11:51:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92046

            Bug ID: 92046
           Summary: Command line options (that are per-functions) are
                    affecting --params which are global.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org
  Target Milestone: ---

There is code that sets various --param values defaults depending on
optimizations. (look for uses of maybe_set_param_value).
This is done only at startup and is not adjusted when command line options
change. For example

gcc -Ofast -flto t.c -c
gcc t.o -Og

will get -Og --param values while compiling functions from t.o which are
intended to be optimized with -Ofast


More information about the Gcc-bugs mailing list