This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Is -Wtraditional needed for Solaris-2.5.1?


I noticed tons of warnings such as the following w/ -Wtraditional:

gcc  -DIN_GCC  -DSVR4  -O6  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
  -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./config -I./../include -c insn-attrtab.c
gcc -c  -DIN_GCC  -DSVR4  -O6  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-l
ong  -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I./config -I./../include \
        ./config/sparc/sparc.c -o sparc.o
./config/sparc/sparc.c: In function `fp_sethi_p':
./config/sparc/sparc.c:440: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `fp_high_losum_p':
./config/sparc/sparc.c:493: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `arith_operand':
./config/sparc/sparc.c:886: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `arith_4096_operand':
./config/sparc/sparc.c:900: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `const64_operand':
./config/sparc/sparc.c:928: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:929: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `const64_high_operand':
./config/sparc/sparc.c:941: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:942: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:952: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:953: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `uns_small_int':
./config/sparc/sparc.c:1121: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `input_operand':
./config/sparc/sparc.c:1161: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1173: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1180: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1183: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `sparc_emit_set_const32':
./config/sparc/sparc.c:1245: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1263: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1268: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1274: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `sparc_emit_set_safe_HIGH64':
./config/sparc/sparc.c:1457: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `gen_safe_SET64':
./config/sparc/sparc.c:1465: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1465: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1465: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `gen_safe_OR64':
./config/sparc/sparc.c:1473: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1473: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1473: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `gen_safe_XOR64':
./config/sparc/sparc.c:1481: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1481: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1481: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `sparc_emit_set_const64_quick1':
./config/sparc/sparc.c:1505: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `sparc_emit_set_const64_quick2':
./config/sparc/sparc.c:1548: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1551: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `sparc_emit_set_const64_longway':
./config/sparc/sparc.c:1594: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1597: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1621: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `const64_is_2insns':
./config/sparc/sparc.c:1762: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `sparc_emit_set_const64':
./config/sparc/sparc.c:1861: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1937: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1964: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1967: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1985: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1986: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1992: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1993: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1994: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1994: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1995: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1997: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:1999: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:2000: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:2004: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:2004: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:2004: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:2014: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:2015: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `addrs_ok_for_ldd_peep':
./config/sparc/sparc.c:5627: warning: comparison between signed and unsigned
./config/sparc/sparc.c: In function `print_operand':
./config/sparc/sparc.c:5870: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `sparc_initialize_trampoline':
./config/sparc/sparc.c:6193: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:6199: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `sparc64_initialize_trampoline':
./config/sparc/sparc.c:6232: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:6234: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:6236: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:6238: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c: In function `set_extends':
./config/sparc/sparc.c:8058: warning: integer constant is unsigned in ANSI C, signed with -traditional
./config/sparc/sparc.c:8060: warning: integer constant is unsigned in ANSI C, signed with -traditional

I haven't seen gcc compile w/ -Wtraditional on previous releases.
Is this another bug?

- Wally Winzer Jr.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]