From: Stephan Linz <linz@mazet.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] avoid trigraph warnings for Nios gcc run
Date: Wed, 10 Mar 2004 18:45:28 +0100 [thread overview]
Message-ID: <0403101845280B.12732@pcj86> (raw)
- 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
next reply other threads:[~2004-03-10 17:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-10 17:45 Stephan Linz [this message]
2004-03-14 15:18 ` [U-Boot-Users] [PATCH] avoid trigraph warnings for Nios gcc run Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0403101845280B.12732@pcj86 \
--to=linz@mazet.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox