re PR target/44750 (pdp-11 fails to build)

PR target/44750
        * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
        (pdp11_preferred_reload_class): Rename class to rclass.
        (pdp11_preferred_output_reload_class): Likewise.
        * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
        ALL_COMPILERFLAGS .
        (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.

From-SVN: r166331
This commit is contained in:
Joern Rennecke 2010-11-04 20:44:03 +00:00 committed by Joern Rennecke
parent d4e55f308e
commit f89a0507b1
3 changed files with 27 additions and 9 deletions

View File

@ -88,6 +88,14 @@
PR bootstrap/44756
* varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
PR target/44750
* config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
(pdp11_preferred_reload_class): Rename class to rclass.
(pdp11_preferred_output_reload_class): Likewise.
* config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
ALL_COMPILERFLAGS .
(java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
2010-11-04 Ira Rosen <irar@il.ibm.com>
PR tree-optimization/46213

View File

@ -1630,18 +1630,18 @@ pdp11_cannot_change_mode_class (enum machine_mode from,
loading is easier into LOAD_FPU_REGS than FPU_REGS! */
static reg_class_t
pdp11_preferred_reload_class (rtx x, reg_class_t class)
pdp11_preferred_reload_class (rtx x, reg_class_t rclass)
{
if (class == FPU_REGS)
if (rclass == FPU_REGS)
return LOAD_FPU_REGS;
if (class == ALL_REGS)
if (rclass == ALL_REGS)
{
if (FLOAT_MODE_P (GET_MODE (x)))
return LOAD_FPU_REGS;
else
return GENERAL_REGS;
}
return class;
return rclass;
}
/* TARGET_PREFERRED_OUTPUT_RELOAD_CLASS
@ -1654,18 +1654,18 @@ pdp11_preferred_reload_class (rtx x, reg_class_t class)
loading is easier into LOAD_FPU_REGS than FPU_REGS! */
static reg_class_t
pdp11_preferred_output_reload_class (rtx x, reg_class_t class)
pdp11_preferred_output_reload_class (rtx x, reg_class_t rclass)
{
if (class == FPU_REGS)
if (rclass == FPU_REGS)
return LOAD_FPU_REGS;
if (class == ALL_REGS)
if (rclass == ALL_REGS)
{
if (FLOAT_MODE_P (GET_MODE (x)))
return LOAD_FPU_REGS;
else
return GENERAL_REGS;
}
return class;
return rclass;
}
@ -1674,7 +1674,7 @@ pdp11_preferred_output_reload_class (rtx x, reg_class_t class)
FPU registers AC4 and AC5 (class NO_LOAD_FPU_REGS) require an
intermediate register (AC0-AC3: LOAD_FPU_REGS). Everything else
can be loade/stored directly. */
reg_class_t
static reg_class_t
pdp11_secondary_reload (bool in_p ATTRIBUTE_UNUSED,
rtx x,
reg_class_t reload_class,

View File

@ -34,3 +34,13 @@ dp-bit.c: $(srcdir)/config/fp-bit.c
cat $(srcdir)/config/fp-bit.c > dp-bit.c
MULTILIB_OPTIONS = msoft-float
# Because the pdp11 POINTER_SIZE is only 16, in dwarf2out.c,
# DWARF_ARANGES_PAD_SIZE is 0, thus a loop in output_aranges that checks
# (i < (unsigned) DWARF_ARANGES_PAD_SIZE) elicits a warning that the
# comparison is always false.
dwarf2out.o: ALL_COMPILERFLAGS += -Wno-error=type-limits
# Likewise, java/constants.c:build_constants_constructor has a negative shift
# count (in never-executed code) due to the small POINTER_SIZE.
java/constants.o: ALL_COMPILERFLAGS += -Wno-error