diff mbox

Fix PR49907

Message ID alpine.LNX.2.00.1108011620250.810@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener Aug. 1, 2011, 2:21 p.m. UTC
This fixes PR49907 - ok for trunk?

Thanks,
Richard.

2011-08-01  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/49907
	lto-plugin/
	* configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
	* Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
	* configure: Regenerate.
	* Makefile.in: Likewise.
	* aclocal.m4: Likewise.

Comments

Richard Biener Aug. 9, 2011, 2:22 p.m. UTC | #1
On Mon, 1 Aug 2011, Richard Guenther wrote:

> 
> This fixes PR49907 - ok for trunk?

Ping.

Thanks,
Richard.

> Thanks,
> Richard.
> 
> 2011-08-01  Richard Guenther  <rguenther@suse.de>
> 
> 	PR bootstrap/49907
> 	lto-plugin/
> 	* configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
> 	* Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
> 	* configure: Regenerate.
> 	* Makefile.in: Likewise.
> 	* aclocal.m4: Likewise.
> 
> Index: configure.ac
> ===================================================================
> --- configure.ac	(revision 177016)
> +++ configure.ac	(working copy)
> @@ -6,6 +6,7 @@ AM_INIT_AUTOMAKE([foreign no-dist])
>  AM_MAINTAINER_MODE
>  AC_PROG_CC
>  AC_SYS_LARGEFILE
> +ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags])
>  AM_PROG_LIBTOOL
>  ACX_LT_HOST_FLAGS
>  AC_SUBST(target_noncanonical)
> Index: Makefile.am
> ===================================================================
> --- Makefile.am	(revision 177016)
> +++ Makefile.am	(working copy)
> @@ -8,7 +8,7 @@ target_noncanonical := @target_noncanoni
>  libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
>  
>  AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
> -AM_CFLAGS = -Wall -Werror
> +AM_CFLAGS = @ac_lto_plugin_warn_cflags@
>  AM_LIBTOOLFLAGS = --tag=disable-static
>  
>  libexecsub_LTLIBRARIES = liblto_plugin.la
>
Paolo Bonzini Aug. 9, 2011, 3:26 p.m. UTC | #2
On 08/09/2011 04:22 PM, Richard Guenther wrote:
>> >
>> >  This fixes PR49907 - ok for trunk?
> Ping.
>
> Thanks,
> Richard.
>

Ok.

Paolo
diff mbox

Patch

Index: configure.ac
===================================================================
--- configure.ac	(revision 177016)
+++ configure.ac	(working copy)
@@ -6,6 +6,7 @@  AM_INIT_AUTOMAKE([foreign no-dist])
 AM_MAINTAINER_MODE
 AC_PROG_CC
 AC_SYS_LARGEFILE
+ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags])
 AM_PROG_LIBTOOL
 ACX_LT_HOST_FLAGS
 AC_SUBST(target_noncanonical)
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 177016)
+++ Makefile.am	(working copy)
@@ -8,7 +8,7 @@  target_noncanonical := @target_noncanoni
 libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
 
 AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
-AM_CFLAGS = -Wall -Werror
+AM_CFLAGS = @ac_lto_plugin_warn_cflags@
 AM_LIBTOOLFLAGS = --tag=disable-static
 
 libexecsub_LTLIBRARIES = liblto_plugin.la