public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR55784
@ 2013-01-02 10:46 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2013-01-02 10:46 UTC (permalink / raw)
  To: gcc-patches


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  <rguenther@suse.de>

	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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-02 10:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-02 10:46 [PATCH] Fix PR55784 Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).