diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-04 20:44:03 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-04 20:44:03 +0000 |
commit | 35a4755abc60e7ae86f330d05a4dd84f56626260 (patch) | |
tree | 6ead4971061f224dbf3923e729c573ccd548a8fa /gcc/config/pdp11 | |
parent | 238baf6b28391fc37d1d8a8eb0bfb74aca41f65e (diff) | |
download | gcc-35a4755abc60e7ae86f330d05a4dd84f56626260.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166331 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pdp11')
-rw-r--r-- | gcc/config/pdp11/pdp11.c | 18 | ||||
-rw-r--r-- | gcc/config/pdp11/t-pdp11 | 10 |
2 files changed, 19 insertions, 9 deletions
diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c index 5b5ebebe0e5..31e85c7e6f8 100644 --- a/gcc/config/pdp11/pdp11.c +++ b/gcc/config/pdp11/pdp11.c @@ -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, diff --git a/gcc/config/pdp11/t-pdp11 b/gcc/config/pdp11/t-pdp11 index 237876fd922..5be7fa2cc14 100644 --- a/gcc/config/pdp11/t-pdp11 +++ b/gcc/config/pdp11/t-pdp11 @@ -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 |