]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/44750 (pdp-11 fails to build)
authorJoern Rennecke <amylaar@spamcop.net>
Thu, 4 Nov 2010 20:44:03 +0000 (20:44 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Thu, 4 Nov 2010 20:44:03 +0000 (20:44 +0000)
        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

gcc/ChangeLog
gcc/config/pdp11/pdp11.c
gcc/config/pdp11/t-pdp11

index cf794dbd83b815ad7a750519a725f9034a1fc11d..dd8c938f92623ade3a3376f589c5b13c75500e6b 100644 (file)
        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
index 5b5ebebe0e5dd5aff402c174ef45d675f2d1944b..31e85c7e6f83ce963df80dfde0d993818e9584ea 100644 (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,
index 237876fd9223b416b1635f2939548d4370c9aa6f..5be7fa2cc146a916c47aff67d9a562c33a8be464 100644 (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