This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 5/5] add libcc1
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Tom Tromey <tromey at redhat dot com>, Jeff Law <law at redhat dot com>
- Date: Tue, 28 Oct 2014 10:35:45 +0000
- Subject: Re: [PATCH 5/5] add libcc1
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4ZuOhCObs2PEOTzP6aM=RJHJJcsHjNZLVddr=u8XZqvXQ at mail dot gmail dot com> <20141028093506 dot GE10376 at tucnak dot redhat dot com> <CAFULd4aiU0DHU+DCqKOw2wUJNqPxQ2GKgYOhV+VQFwhmA8p7ow at mail dot gmail dot com>
On 28/10/14 09:57, Uros Bizjak wrote:
> On Tue, Oct 28, 2014 at 10:35 AM, Jakub Jelinek <jakub@redhat.com> wrote:
>> On Tue, Oct 28, 2014 at 09:36:45AM +0100, Uros Bizjak wrote:
>>>> This patch has now been committed.
>>>
>>> Also breaks bootstap on x86_64-linux-gnu, CentOS 5.11:
>>
>> For -Werror, I'd think that should fix that, WARN_FLAGS should
>> already contain -Werror during stage2/stage3 unless --disable-werror.
>> Untested though.
>
> No, it still fails, although with one -Werror less in the compile flags:
Does removing it from configure.ac and regenerating configure work?
I don't have access to a system compiler of the version you have, so I
am unable to test.
Cheers
Phil
--
Index: Makefile.am
===================================================================
--- Makefile.am (revision 216776)
+++ Makefile.am (working copy)
@@ -22,8 +22,7 @@
-I $(gcc_build_dir) -I$(srcdir)/../gcc \
-I $(srcdir)/../gcc/c -I $(srcdir)/../gcc/c-family \
-I $(srcdir)/../libcpp/include
-WERROR_FLAG = -Werror
-AM_CXXFLAGS = $(WARN_FLAGS) $(WERROR_FLAG) $(visibility)
+AM_CXXFLAGS = $(WARN_FLAGS) $(visibility)
libiberty = ../libiberty/pic/libiberty.a
Index: Makefile.in
===================================================================
--- Makefile.in (revision 216776)
+++ Makefile.in (working copy)
@@ -257,8 +257,7 @@
-I $(srcdir)/../gcc/c -I $(srcdir)/../gcc/c-family \
-I $(srcdir)/../libcpp/include
-WERROR_FLAG = -Werror
-AM_CXXFLAGS = $(WARN_FLAGS) $(WERROR_FLAG) $(visibility)
+AM_CXXFLAGS = $(WARN_FLAGS) $(visibility)
libiberty = ../libiberty/pic/libiberty.a
plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin
cc1libdir = $(libdir)/$(libsuffix)
Index: configure
===================================================================
--- configure (revision 216776)
+++ configure (working copy)
@@ -14342,7 +14342,7 @@
done
CFLAGS="$save_CFLAGS"
-WARN_FLAGS="$WARN_FLAGS -Werror"
+WARN_FLAGS="$WARN_FLAGS"
libsuffix=
Index: configure.ac
===================================================================
--- configure.ac (revision 216776)
+++ configure.ac (working copy)
@@ -52,7 +52,7 @@
AC_SUBST(gcc_version)
ACX_PROG_CC_WARNING_OPTS([-W -Wall], [WARN_FLAGS])
-WARN_FLAGS="$WARN_FLAGS -Werror"
+WARN_FLAGS="$WARN_FLAGS"
AC_SUBST(WARN_FLAGS)
libsuffix=