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
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
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;
}
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,
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