invalid preprocessing directive #warn

Alan Modra alan@linuxcare.com.au
Thu Dec 7 15:59:00 GMT 2000


On Thu, 7 Dec 2000, John David Anglin wrote:

> The following error occurs with todays source under i686 linux with gcc-2.97:
> 
> ../../include/coff/ti.h:48:2: invalid preprocessing directive #warn

I've committed the obvious fix to return this to compiling OK, at least
with gcc.  If there is any further attention needed, I'm sure Timothy Wall
(why isn't he listed as binutils ti maintainer?) will provide it.

--- include/coff/ti.h~  Mon May 29 08:56:27 2000
+++ include/coff/ti.h   Fri Dec  8 10:17:13 2000
@@ -45,7 +45,7 @@
 
 /* This value is made available in the rare case where a bfd is unavailable */
 #ifndef OCTETS_PER_BYTE_POWER
-#warn OCTETS_PER_BYTE_POWER not defined for this CPU, it will default to 0
+#warning OCTETS_PER_BYTE_POWER not defined for this CPU, it will default to 0
 #else
 #define OCTETS_PER_BYTE (1<<OCTETS_PER_BYTE_POWER)
 #endif

-- 
Linuxcare.  Support for the Revolution.




More information about the Binutils mailing list