000417 HP-UX HARD_REGNO_MODE_OK warnings patch
Rodney Brown
rdb@localhost
Wed Apr 26 06:32:00 GMT 2000
Patch to remove HARD_REGNO_MODE_OK warnings on HP-UX, built with
no testsuite regressions on hppa2.0-hp-hpux10.20 . As such the
pa64-regs.h change is untested.
2000-04-23 <RodneyBrown@pmsc.com>
* pa/pa32-regs.h: (HARD_REGNO_MODE_OK) warning removal
* pa/pa64-regs.h: (HARD_REGNO_MODE_OK) warning removal
--- gcc/config/pa/pa32-regs.h.orig Tue Mar 21 12:53:06 2000
+++ gcc/config/pa/pa32-regs.h Thu Apr 20 18:53:07 2000
@@ -177,7 +177,7 @@
? GET_MODE_SIZE (MODE) <= 4 || ((REGNO) & 1) == 0 \
/* Make wide modes be in aligned registers. */ \
: (GET_MODE_SIZE (MODE) <= UNITS_PER_WORD \
- || GET_MODE_SIZE (MODE) <= 2 * UNITS_PER_WORD && ((REGNO) & 1) == 0))
+ || (GET_MODE_SIZE (MODE) <= 2 * UNITS_PER_WORD && ((REGNO) & 1) == 0)))
/* How to renumber registers for dbx and gdb.
--- gcc/config/pa/pa64-regs.h.orig Tue Apr 18 11:18:49 2000
+++ gcc/config/pa/pa64-regs.h Thu Apr 20 18:53:48 2000
@@ -165,7 +165,7 @@
? (MODE) == CCmode || (MODE) == CCFPmode \
/* Make wide modes be in aligned registers. */ \
: (GET_MODE_SIZE (MODE) <= UNITS_PER_WORD \
- || GET_MODE_SIZE (MODE) <= 2 * UNITS_PER_WORD && ((REGNO) & 1) == 0))
+ || (GET_MODE_SIZE (MODE) <= 2 * UNITS_PER_WORD && ((REGNO) & 1) == 0)))
/* How to renumber registers for dbx and gdb.
--- egcs-20000417.obj.0/mail-report-with-warnings.log Tue Apr 18 19:48:19 2000
+++ egcs-20000417.obj/mail-report-with-warnings.log Fri Apr 21 07:49:58 2000
@@ -559,46 +559,45 @@
Platform: hppa2.0-hp-hpux10.20
configure flags: --with-gcc-version-trigger=/devel/span/rdb/src/egcs-20000417/gcc/version.c --host=hppa2.0-hp-hpux10.20 --with-gnu-as --norecursion
Counting all warnings,
-there are 446 warnings in stage3 of this bootstrap.
+there are 400 warnings in stage3 of this bootstrap.
Number of warnings per file:
- 61 ../../egcs-20000417/gcc/combine.c
+ 57 ../../egcs-20000417/gcc/combine.c
30 ../../egcs-20000417/gcc/expmed.c
30 ../../egcs-20000417/gcc/config/pa/pa.c
- 28 ../../egcs-20000417/gcc/expr.c
- 23 ../../egcs-20000417/gcc/reload.c
+ 26 ../../egcs-20000417/gcc/expr.c
23 ../../egcs-20000417/gcc/optabs.c
23 ../../egcs-20000417/gcc/cse.c
- 19 ../../egcs-20000417/gcc/reload1.c
17 ../../egcs-20000417/gcc/recog.c
14 ../../../egcs-20000417/gcc/f/global.c
13 ../../egcs-20000417/gcc/function.c
+ 12 ../../egcs-20000417/gcc/reload.c
12 ../../egcs-20000417/gcc/calls.c
- 10 ../../egcs-20000417/gcc/emit-rtl.c
+ 11 ../../egcs-20000417/gcc/reload1.c
10 ../../../egcs-20000417/gcc/f/storag.c
- 9 ../../egcs-20000417/gcc/varasm.c
9 ../../egcs-20000417/gcc/simplify-rtx.c
+ 8 ../../egcs-20000417/gcc/varasm.c
8 ../../../egcs-20000417/gcc/f/lex.c
8 ../../../egcs-20000417/gcc/f/equiv.c
- 6 ../../egcs-20000417/gcc/regclass.c
6 ../../egcs-20000417/gcc/loop.c
- 6 ../../egcs-20000417/gcc/builtins.c
- 6 ../../egcs-20000417/gcc/alias.c
+ 6 ../../egcs-20000417/gcc/emit-rtl.c
6 ../../../egcs-20000417/gcc/f/expr.c
+ 5 ../../egcs-20000417/gcc/alias.c
5 ../../../egcs-20000417/libiberty/pexecute.c
4 ../../egcs-20000417/gcc/unroll.c
- 4 ../../egcs-20000417/gcc/global.c
4 ../../../egcs-20000417/gcc/f/ste.c
- 3 ../../egcs-20000417/gcc/regrename.c
3 ../../egcs-20000417/gcc/regmove.c
3 ../../egcs-20000417/gcc/explow.c
2 str-ot.j
2 str-1t.j
2 ../../egcs-20000417/gcc/stmt.c
+ 2 ../../egcs-20000417/gcc/regrename.c
+ 2 ../../egcs-20000417/gcc/regclass.c
2 ../../egcs-20000417/gcc/predict.c
2 ../../egcs-20000417/gcc/integrate.c
2 ../../egcs-20000417/gcc/fold-const.c
2 ../../egcs-20000417/gcc/config/pa/pa.md
+ 2 ../../egcs-20000417/gcc/builtins.c
2 ../../../egcs-20000417/libiberty/getopt.c
2 ../../../egcs-20000417/gcc/f/symbol.c
2 ../../../egcs-20000417/gcc/f/std.c
@@ -612,8 +611,6 @@
1 insn-recog.c
1 insn-output.c
1 ./parse.y
- 1 ../../egcs-20000417/gcc/resource.c
- 1 ../../egcs-20000417/gcc/local-alloc.c
1 ../../egcs-20000417/gcc/gcse.c
1 ../../egcs-20000417/gcc/gcc.c
1 ../../egcs-20000417/gcc/flow.c
@@ -627,7 +624,6 @@
Number of warning types:
258 comparison between signed and unsigned
52 Use of ANSI string concatenation
- 46 suggest parentheses around && within ||
39 signed and unsigned type in conditional expression
14 \`long' switch expression not converted to \`int' in ANSI C
9 \`???' might be used uninitialized in this function
More information about the Gcc-patches
mailing list