[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/11129] New: Sun Studio compiler doesn't understand -Wno-er
From: |
dam at opencsw dot org |
Subject: |
[Bug binutils/11129] New: Sun Studio compiler doesn't understand -Wno-error and __FUNCTION__ |
Date: |
4 Jan 2010 12:41:38 -0000 |
The Sun Studio 11 compiler doesn't understand two idioms used in the binutils
source:
1. -Wno-error is not understood
This can be fixed by either checking during configure time if the compiler
understand -Wno-error or
just remove it as shown in this patch:
>From 36557d4e77aaca996e7906ec5c9e9899f8b44135 Mon Sep 17 00:00:00 2001
From: Dagobert Michelsen <address@hidden>
Date: Mon, 4 Jan 2010 10:33:49 +0100
Subject: [PATCH] Remove gcc specific warning no-error
---
binutils/Makefile.am | 8 ++++----
binutils/Makefile.in | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/binutils/Makefile.am b/binutils/Makefile.am
index abade21..ff935bc 100644
--- a/binutils/Makefile.am
+++ b/binutils/Makefile.am
@@ -255,16 +255,16 @@ sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o
syslex.o: syslex.c sysinfo.h config.h
if [ -r syslex.c ]; then \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) syslex.c
-Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) syslex.c ; \
else \
- $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/syslex.c -Wno-
error ;\
+ $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/syslex.c ;\
fi
sysinfo.o: sysinfo.c
if [ -r sysinfo.c ]; then \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) sysinfo.c
-Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) sysinfo.c ; \
else \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/sysinfo.c -Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/sysinfo.c ; \
fi
bin2c$(EXEEXT_FOR_BUILD):
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index a1f3800..543ab6c 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -1197,16 +1197,16 @@ sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o
syslex.o: syslex.c sysinfo.h config.h
if [ -r syslex.c ]; then \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) syslex.c
-Wno-error ; \
+ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) syslex.c ; \
else \
- $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/syslex.c -Wno-
error ;\
+ $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
$(srcdir)/syslex.c ;\
fi
sysinfo.o: sysinfo.c
if [ -r sysinfo.c ]; then \
- $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) sysinfo.c
-Wno-error ; \
--
1.6.6
2. The macro __FUNCTION__ is used to determine the name of the current function.
The idiom used in the Sun Studio 11 compiler for this is __func__. It should be
checked during
configure time which macro name is suitable.
--
Summary: Sun Studio compiler doesn't understand -Wno-error and
__FUNCTION__
Product: binutils
Version: 2.20
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: dam at opencsw dot org
CC: bug-binutils at gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://sourceware.org/bugzilla/show_bug.cgi?id=11129
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/11129] New: Sun Studio compiler doesn't understand -Wno-error and __FUNCTION__,
dam at opencsw dot org <=