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

            Bug ID: 91949
           Summary: [10 Regression] bootstrap failure on
                    arm-linux-gnueabihf and s390x-linux-gnu (cannot
                    convert 'bool' to 'const predefined_function_abi*')
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
  Target Milestone: ---

seen with r276387

In file included from ../../src/gcc/caller-save.c:31:
../../src/gcc/caller-save.c: In function 'void init_caller_save()':
../../src/gcc/regs.h:195:39: error: cannot convert 'bool' to 'const
predefined_function_abi*'
  195 |   choose_hard_reg_mode (REGNO, NREGS, false)
      |                                       ^~~~~
      |                                       |
      |                                       bool
../../src/gcc/caller-save.c:203:26: note: in expansion of macro
'HARD_REGNO_CALLER_SAVE_MODE'
  203 |  regno_save_mode[i][j] = HARD_REGNO_CALLER_SAVE_MODE (i, j, VOIDmode);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../src/gcc/caller-save.c:24:
../../src/gcc/rtl.h:3416:8: note:   initializing argument 3 of 'machine_mode
choose_hard_reg_mode(unsigned int, unsigned int, const
predefined_function_abi*)'
 3416 |        const predefined_function_abi *);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../src/gcc/caller-save.c:31:
../../src/gcc/caller-save.c: In function 'void save_call_clobbered_regs()':
../../src/gcc/regs.h:195:39: error: cannot convert 'bool' to 'const
predefined_function_abi*'
  195 |   choose_hard_reg_mode (REGNO, NREGS, false)
      |                                       ^~~~~
      |                                       |
      |                                       bool
../../src/gcc/caller-save.c:821:12: note: in expansion of macro
'HARD_REGNO_CALLER_SAVE_MODE'
  821 |     mode = HARD_REGNO_CALLER_SAVE_MODE
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../src/gcc/caller-save.c:24:
../../src/gcc/rtl.h:3416:8: note:   initializing argument 3 of 'machine_mode
choose_hard_reg_mode(unsigned int, unsigned int, const
predefined_function_abi*)'
 3416 |        const predefined_function_abi *);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:1118: caller-save.o] Error 1
make[5]: *** Waiting for unfinished jobs....

Reply via email to