This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] invalid preprocessing directive


gas/config/tc-mmix.c cannot be compiled with C99 compiler.

c99 -DHAVE_CONFIG_H -I. -I../../src/gas -I. -D_GNU_SOURCE -I. -I../../src/gas -I../bfd -I../../src/gas/config -I../../src/gas/../include -
I../../src/gas/.. -I../../src/gas/../bfd -I../../src/gas/../intl -I../intl -DLOCALEDIR="\"/usr/local/share/locale\""   -W -Wall -Wstrict-
prototypes -Wmissing-prototypes -g -O2 -c ../../src/gas/config/tc-mmix.c
../../src/gas/config/tc-mmix.c:308:2: invalid preprocessing directive #elsif
../../src/gas/config/tc-mmix.c:309:1: warning: "PUSHJSTUB_MIN" redefined
../../src/gas/config/tc-mmix.c:307:1: warning: this is the location of the previous definition
../../src/gas/config/tc-mmix.c:315:2: invalid preprocessing directive #elsif
../../src/gas/config/tc-mmix.c:316:1: warning: "PUSHJSTUB_MAX" redefined
../../src/gas/config/tc-mmix.c:314:1: warning: this is the location of the previous definition
../../src/gas/config/tc-mmix.c:371: warning: overflow in implicit constant conversion
../../src/gas/config/tc-mmix.c:371: warning: overflow in implicit constant conversion
make[3]: *** [tc-mmix.o] Error 1

Index: config/tc-mmix.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mmix.c,v
retrieving revision 1.16
diff -u -r1.16 tc-mmix.c
--- config/tc-mmix.c	22 Nov 2003 02:35:30 -0000	1.16
+++ config/tc-mmix.c	14 Sep 2004 13:14:49 -0000
@@ -305,14 +305,14 @@
    long long is 64 bits on the host).  */
 #ifdef LLONG_MIN
 #define PUSHJSTUB_MIN LLONG_MIN
-#elsif defined (LONG_LONG_MIN)
+#elif defined (LONG_LONG_MIN)
 #define PUSHJSTUB_MIN LONG_LONG_MIN
 #else
 #define PUSHJSTUB_MIN LONG_MIN
 #endif
 #ifdef LLONG_MAX
 #define PUSHJSTUB_MAX LLONG_MAX
-#elsif defined (LONG_LONG_MAX)
+#elif defined (LONG_LONG_MAX)
 #define PUSHJSTUB_MAX LONG_LONG_MAX
 #else
 #define PUSHJSTUB_MAX LONG_MAX

----
Hideki IWAMOTO  h-iwamoto@kit.hi-ho.ne.jp


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