From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14016 invoked by alias); 2 Jan 2013 10:46:14 -0000 Received: (qmail 14005 invoked by uid 22791); 2 Jan 2013 10:46:13 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,TW_CP,TW_TR,TW_TW,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Jan 2013 10:46:07 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 15611A3DDF for ; Wed, 2 Jan 2013 11:46:06 +0100 (CET) Date: Wed, 02 Jan 2013 10:46:00 -0000 From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR55784 Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00031.txt.bz2 This supposedly fixes PR55784 according to people running into the issue. We need to add GMPINC to the include paths everywhere as we now include gmp.h from system.h. Bootstrap and regtest running on x86_64-unknown-linux-gnu. Ada bits approved by Eric in bugzilla. Richard. 2013-01-02 Richard Biener PR bootstrap/55784 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS. * configure: Regenerate. ada/ * gcc-interface/Makefile.in: Add $(GMPINC) to includes. Index: gcc/configure.ac =================================================================== *** gcc/configure.ac (revision 194787) --- gcc/configure.ac (working copy) *************** AM_LANGINFO_CODESET *** 1098,1106 **** # We will need to find libiberty.h and ansidecl.h saved_CFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" saved_CXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include" gcc_AC_CHECK_DECLS(getenv atol asprintf sbrk abort atof getcwd getwd \ strsignal strstr stpcpy strverscmp \ errno snprintf vsnprintf vasprintf malloc realloc calloc \ --- 1098,1106 ---- # We will need to find libiberty.h and ansidecl.h saved_CFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" saved_CXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" gcc_AC_CHECK_DECLS(getenv atol asprintf sbrk abort atof getcwd getwd \ strsignal strstr stpcpy strverscmp \ errno snprintf vsnprintf vasprintf malloc realloc calloc \ Index: gcc/configure =================================================================== *** gcc/configure (revision 194787) --- gcc/configure (working copy) *************** $as_echo "#define HAVE_LANGINFO_CODESET *** 10321,10329 **** # We will need to find libiberty.h and ansidecl.h saved_CFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" saved_CXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include" for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \ strsignal strstr stpcpy strverscmp \ errno snprintf vsnprintf vasprintf malloc realloc calloc \ --- 10321,10329 ---- # We will need to find libiberty.h and ansidecl.h saved_CFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" saved_CXXFLAGS="$CXXFLAGS" ! CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \ strsignal strstr stpcpy strverscmp \ errno snprintf vsnprintf vasprintf malloc realloc calloc \ Index: gcc/ada/gcc-interface/Makefile.in =================================================================== *** gcc/ada/gcc-interface/Makefile.in (revision 194787) --- gcc/ada/gcc-interface/Makefile.in (working copy) *************** endif *** 273,279 **** # Both . and srcdir are used, in that order, # so that tm.h and config.h will be found in the compilation # subdirectory rather than in the source directory. ! INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/../include ADA_INCLUDES = -I- -I. -I$(srcdir)/ada --- 273,279 ---- # Both . and srcdir are used, in that order, # so that tm.h and config.h will be found in the compilation # subdirectory rather than in the source directory. ! INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/../include $(GMPINC) ADA_INCLUDES = -I- -I. -I$(srcdir)/ada *************** ADA_INCLUDES = -I- -I. -I$(srcdir)/ada *** 283,293 **** ifneq ($(findstring vxworks,$(osys)),) INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \ -iquote $(fsrcdir)/ada \ ! -I$(fsrcdir)/../include else INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \ -iquote $(fsrcdir)/ada -iquote $(fsrcdir) \ ! -I$(fsrcdir)/../include endif ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada --- 283,293 ---- ifneq ($(findstring vxworks,$(osys)),) INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \ -iquote $(fsrcdir)/ada \ ! -I$(fsrcdir)/../include $(GMPINC) else INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \ -iquote $(fsrcdir)/ada -iquote $(fsrcdir) \ ! -I$(fsrcdir)/../include $(GMPINC) endif ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada