From: ebotcazou Date: Sat, 19 Oct 2013 11:46:04 +0000 (+0000) Subject: * gcc-interface/Makefile.in: Use canonical absolute path to refer to X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55d4415ee5cdad4167461e8a2a76d45b71b83085;p=thirdparty%2Fgcc.git * gcc-interface/Makefile.in: Use canonical absolute path to refer to the top source directory and to the libgcc subidrectories. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203854 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 77cd3b9d360c..cc462e9c4a7c 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2013-10-19 Thomas Quinot + + * gcc-interface/Makefile.in: Use canonical absolute path to refer to + the top source directory and to the libgcc subidrectories. + 2013-10-19 Eric Botcazou * gcc-interface/utils.c (scale_by_factor_of): New function. diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index a5ca90d65f32..91778c5fcf63 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -167,6 +167,13 @@ tmake_file = @tmake_file@ # Directory where sources are, from where we are. VPATH = $(srcdir)/ada +# Full path to top source directory +# In particular this is used to access libgcc headers, so that references to +# these headers from GNAT runtime objects have path names in debugging info +# that are consistent with libgcc objects. Also used for other references to +# the top source directory for consistency. +ftop_srcdir := $(shell cd $(srcdir)/..;${PWD_COMMAND}) + fsrcdir := $(shell cd $(srcdir);${PWD_COMMAND}) fsrcpfx := $(shell cd $(srcdir);${PWD_COMMAND})/ fcurdir := $(shell ${PWD_COMMAND}) @@ -262,7 +269,7 @@ TOOLS_LIBS = ../link.o ../targext.o ../../ggc-none.o ../../libcommon-target.a \ # 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) +INCLUDES = -I- -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(ftop_srcdir)/include $(GMPINC) ADA_INCLUDES = -I- -I. -I$(srcdir)/ada @@ -272,11 +279,11 @@ ADA_INCLUDES = -I- -I. -I$(srcdir)/ada ifneq ($(findstring vxworks,$(target_os)),) INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \ -iquote $(fsrcdir)/ada \ - -I$(fsrcdir)/../include $(GMPINC) + -I$(ftop_srcdir)/include $(GMPINC) else INCLUDES_FOR_SUBDIR = -iquote . -iquote .. -iquote ../.. \ -iquote $(fsrcdir)/ada -iquote $(fsrcdir) \ - -I$(fsrcdir)/../include $(GMPINC) + -I$(ftop_srcdir)/include $(GMPINC) endif ADA_INCLUDES_FOR_SUBDIR = -I. -I$(fsrcdir)/ada @@ -496,7 +503,7 @@ endif # PowerPC and e500v2 VxWorks ifeq ($(strip $(filter-out powerpc% wrs vxworks,$(target_cpu) $(target_vendor) $(target_os))),) - ifeq ($(strip $(filter-out e500%, $(arch))),) + ifeq ($(strip $(filter-out e500%, $(target_alias))),) ARCH_STR=e500 else ARCH_STR=ppc @@ -993,7 +1000,7 @@ ifeq ($(strip $(filter-out mips% wrs vx%,$(target_cpu) $(target_vendor) $(target EXTRA_LIBGNAT_OBJS+=vx_stack_info.o endif -# ARM linux, Android eabi +# ARM android ifeq ($(strip $(filter-out arm% linux-androideabi,$(target_cpu) $(target_os))),) LIBGNAT_TARGET_PAIRS = \ a-intnam.ads