public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] avoid trigraph warnings for Nios gcc run
@ 2004-03-10 17:45 Stephan Linz
  2004-03-14 15:18 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Stephan Linz @ 2004-03-10 17:45 UTC (permalink / raw)
  To: u-boot


   - expand config.mk to avoid trigraph warnings
    (only for nios-elf-gcc version 2.95)


Best regards,
Stephan
-------------- next part --------------
diff -purN -x CVS u-boot/config.mk u-boot-trigraph_fix/config.mk
--- u-boot/config.mk	Tue Sep 16 19:06:06 2003
+++ u-boot-trigraph_fix/config.mk	Fri Jan  9 14:41:51 2004
@@ -122,6 +122,14 @@ else
 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
 endif
 
+# avoid trigraph warnings while parsing pci.h (produced by NIOS gcc-2.9)
+# this option have to be placed behind -Wall -- that's why it is here
+ifeq ($(ARCH),nios)
+ifeq ($(findstring 2.9,$(shell $(CC) --version)),2.9)
+CFLAGS := $(CPPFLAGS) -Wno-trigraphs
+endif
+endif
+
 AFLAGS_DEBUG := -Wa,-gstabs
 AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS)
 
-------------- next part --------------
* Patch by Stephan Linz, 11 Dec 2003
   - expand config.mk to avoid trigraph warnings

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-14 15:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-10 17:45 [U-Boot-Users] [PATCH] avoid trigraph warnings for Nios gcc run Stephan Linz
2004-03-14 15:18 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox