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

            Bug ID: 122288
           Summary: Invalid records in config/gcn/gcn.opt
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sandra at gcc dot gnu.org
                CC: ams at gcc dot gnu.org
  Target Milestone: ---

Noticed while working on PR122243:

config/gcn/gcn.opt contains records that seem to be intended to be declare
variables, but are missing the "Variable" or "TargetVariable" field, so that
they are interpreted as (weird) option names instead.

bool flag_bypass_init_error = false

int stack_size_opt = -1

int gang_private_size_opt = -1

The generated options.h file ends up containing things like

OPT_bool_flag_bypass_init_error___false = 969,/* -bool flag_bypass_init_error =
false */

Fixing the options file is easy, but I think those variables are presently not
getting initialized to the intended values -- and correcting that might change
behavior and test results.

Reply via email to