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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
            Summary|-ffinite-loops is not       |-ffinite-loops does not
                   |enable by default           |show it is enabled with
                   |                            |--help by default for
                   |                            |C++11+
   Last reconfirmed|                            |2022-11-28
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

  /* Exit early if we can (e.g. -help).  */
  if (!exit_after_options)
    {
      /* Just in case lang_hooks.post_options ends up calling a debug_hook.
         This can happen with incorrect pre-processed input. */
      debug_hooks = &do_nothing_debug_hooks;
      /* Allow the front end to perform consistency checks and do further
         initialization based on the command line options.  This hook also
         sets the original filename if appropriate (e.g. foo.i -> foo.c)
         so we can correctly initialize debug output.  */
      bool no_backend = lang_hooks.post_options (&main_input_filename);


So the language hook that does the SET_OPTION_IF_UNSET is not called at all.

Reply via email to