summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2015-09-11 01:14:18 +0000
committerdoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2015-09-11 01:14:18 +0000
commitb5da5ccf5f3aa4d69108ea7253b42ee294a82b6b (patch)
tree8f1b8858ddb421bc7f9889b421577acfb364f631
parenteb3b8977074440ab09b58268eafbdea0174dc5bd (diff)
downloadgcc-5-b5da5ccf5f3aa4d69108ea7253b42ee294a82b6b.tar.gz
* Fix running the acats tests. Closes: #798531.
git-svn-id: svn://anonscm.debian.org/gcccvs/branches/sid/gcc-5@8222 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
-rw-r--r--debian/changelog3
-rw-r--r--debian/patches/ada-acats.diff9
-rw-r--r--debian/patches/ada-gnattools-cross.diff11
3 files changed, 12 insertions, 11 deletions
diff --git a/debian/changelog b/debian/changelog
index ccaddc7..b8bf444 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,9 @@ gcc-5 (5.2.1-17) UNRELEASED; urgency=medium
* Optimize for R2 ISA on mipsel.
* Only apply mips-fix-loongson2f-nop on mipsel.
+ [ YunQiang Su ]
+ * Fix running the acats tests. Closes: #798531.
+
-- Matthias Klose <doko@debian.org> Wed, 09 Sep 2015 19:38:13 +0200
gcc-5 (5.2.1-16) unstable; urgency=medium
diff --git a/debian/patches/ada-acats.diff b/debian/patches/ada-acats.diff
index b34ac0e..d06acfd 100644
--- a/debian/patches/ada-acats.diff
+++ b/debian/patches/ada-acats.diff
@@ -6,7 +6,7 @@ Index: b/src/gcc/testsuite/ada/acats/run_acats
===================================================================
--- a/src/gcc/testsuite/ada/acats/run_acats
+++ b/src/gcc/testsuite/ada/acats/run_acats
-@@ -20,52 +20,29 @@ which () {
+@@ -20,52 +20,30 @@ which () {
return 1
}
@@ -48,10 +48,11 @@ Index: b/src/gcc/testsuite/ada/acats/run_acats
- exit 1
-fi
-
-+GNATTOOLS=`cd $BASE/../gnattools; ${PWDCMD-pwd}`
-+LIBGNATVSN=`cd $BASE/../libgnatvsn; ${PWDCMD-pwd}`
-+LIBGNATPRJ=`cd $BASE/../libgnatprj; ${PWDCMD-pwd}`
GCC_DRIVER="$BASE/xgcc"
++TARGET=`${GCC_DRIVER} -v 2>&1 |grep '^Target:' | cut -d' ' -f2`
++GNATTOOLS=`cd $BASE/../gnattools; ${PWDCMD-pwd}`
++LIBGNATVSN=`cd $BASE/../${TARGET}/libgnatvsn; ${PWDCMD-pwd}`
++LIBGNATPRJ=`cd $BASE/../${TARGET}/libgnatprj; ${PWDCMD-pwd}`
GCC="$BASE/xgcc -B$BASE/"
export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC_DRIVER GCC LD_LIBRARY_PATH
-
diff --git a/debian/patches/ada-gnattools-cross.diff b/debian/patches/ada-gnattools-cross.diff
index fa41bab..bb3cc27 100644
--- a/debian/patches/ada-gnattools-cross.diff
+++ b/debian/patches/ada-gnattools-cross.diff
@@ -356,7 +356,7 @@ Index: b/src/gcc/ada/gcc-interface/Makefile.in
test -f $(RTSDIR)/s-oscons.ads || exit 1
# C files
$(MAKE) -C $(RTSDIR) \
-@@ -2795,32 +2670,47 @@ gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../
+@@ -2795,32 +2670,44 @@ gnatlib: ../stamp-gnatlib1-$(RTSDIR) ../
# Warning: this target assumes that LIBRARY_VERSION has been set correctly.
gnatlib-shared-default:
@@ -413,14 +413,11 @@ Index: b/src/gcc/ada/gcc-interface/Makefile.in
+ l=lib$${lib}$(hyphen)$(LIBRARY_VERSION)$(soext); \
+ $(LN_S) $$l.1 $$l; \
+ done
-+# Delete the object files, lest they be linked statically into the tools
-+# executables. Only the .ali, .a and .so files must remain.
-+ rm -f $(RTSDIR)/*.o
+ $(CHMOD) a-wx $(RTSDIR)/*.ali
gnatlib-shared-dual:
$(MAKE) $(FLAGS_TO_PASS) \
-@@ -2829,17 +2719,15 @@ gnatlib-shared-dual:
+@@ -2829,17 +2716,15 @@ gnatlib-shared-dual:
GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
MULTISUBDIR="$(MULTISUBDIR)" \
THREAD_KIND="$(THREAD_KIND)" \
@@ -441,7 +438,7 @@ Index: b/src/gcc/ada/gcc-interface/Makefile.in
gnatlib-shared-dual-win32:
$(MAKE) $(FLAGS_TO_PASS) \
-@@ -2849,17 +2737,15 @@ gnatlib-shared-dual-win32:
+@@ -2849,17 +2734,15 @@ gnatlib-shared-dual-win32:
PICFLAG_FOR_TARGET="$(PICFLAG_FOR_TARGET)" \
MULTISUBDIR="$(MULTISUBDIR)" \
THREAD_KIND="$(THREAD_KIND)" \
@@ -462,7 +459,7 @@ Index: b/src/gcc/ada/gcc-interface/Makefile.in
# ??? we need to add the option to support auto-import of arrays/records to
# the GNATLIBFLAGS when this will be supported by GNAT. At this point we will
-@@ -3097,6 +2983,68 @@ targext.o : targext.c
+@@ -3097,6 +2980,68 @@ targext.o : targext.c
$(ALL_CPPFLAGS) $(INCLUDES_FOR_SUBDIR) \
$< $(OUTPUT_OPTION)