Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Sukneet Basuta (e5a3a0ab26bab5c280e050656c990349a09e536a)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Sukneet Basuta <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Sukneet Basuta (e5a3a0ab26bab5c280e050656c990349a09e536a)
  • Date: Mon, 11 Mar 2013 20:02:57 -0500

GIT changes to master grimoire by Sukneet Basuta <sukneet AT sourcemage.org>:

gnu/gcc/0001-remove-libffi.patch | 160 ----------
gnu/gcc/0002-4.7.2-ffast-math.patch | 63 ----
gnu/gcc/0003-fix-header-generation-for-libgo.patch | 36 --
gnu/gcc/CONFIGURE | 5
gnu/gcc/HISTORY | 15 -
gnu/gcc/PRE_BUILD | 37 ++
gnu/gcc/PRE_SUB_DEPENDS | 1
gnu/gcc/SUB_DEPENDS | 2
gnu/gcc/ada-symbolic-tracebacks.diff | 313
+++++++++++++++++++++
gnu/gcc/ecj-4.3.jar.sig |binary
gnu/gcc/glibc216.patch | 14
gnu/gcc/mksysinfo.patch | 22 +
gnu/gcc/txt00120.txt.gz |binary
13 files changed, 391 insertions(+), 277 deletions(-)

New commits:
commit e5a3a0ab26bab5c280e050656c990349a09e536a
Author: Sukneet Basuta <sukneet AT sourcemage.org>
Commit: Sukneet Basuta <sukneet AT sourcemage.org>

Revert "gnu/gcc: cleanup for moving gcc 4.7.2 into test grimoire"

This reverts commit 921c7411479eedea7d99145207077b749529bfa7.

Not sure why this was committed, gcc 4.7 has known problems with the
current version of X.org in Test
Fixes bug #530

commit 9582e8a01f327b25a03e16d7eaead232e3276c84
Author: Sukneet Basuta <sukneet AT sourcemage.org>
Commit: Sukneet Basuta <sukneet AT sourcemage.org>

Revert "gnu/gcc: remove redundant libffi"

This reverts commit b7802d33ac015efcde7ba3329d5f3a5a802bddc0.

commit e4bf65fb07cfd46f536394fc2088273b6e9e4ed4
Author: Sukneet Basuta <sukneet AT sourcemage.org>
Commit: Sukneet Basuta <sukneet AT sourcemage.org>

Revert "gnu/gcc: fix -ffast-math"

This reverts commit fcce5aac8507b602d464c23265979e54221dd5d8.

commit 3d93945cd7600c937870ac4d18e47f9a520b3227
Author: Sukneet Basuta <sukneet AT sourcemage.org>
Commit: Sukneet Basuta <sukneet AT sourcemage.org>

Revert "gnu/gcc: fix header generation for libgo"

This reverts commit 86028dc0b419986e8579291b3edc4225a8be4b46.

diff --git a/gnu/gcc/0001-remove-libffi.patch
b/gnu/gcc/0001-remove-libffi.patch
deleted file mode 100644
index 421069c..0000000
--- a/gnu/gcc/0001-remove-libffi.patch
+++ /dev/null
@@ -1,160 +0,0 @@
-From 4b7dd34db3a9024afcd9f413b3de6e7542af9940 Mon Sep 17 00:00:00 2001
-From: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
-Date: Sun, 24 Feb 2013 11:53:54 +0100
-Subject: [PATCH 1/3] remove libffi
-
----
- Makefile.in | 18 ------------------
- 1 file changed, 18 deletions(-)
-
-diff --git a/Makefile.in b/Makefile.in
-index 4b99139..088958e 100644
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -953,7 +953,6 @@ configure-target: \
- maybe-configure-target-libtermcap \
- maybe-configure-target-winsup \
- maybe-configure-target-libgloss \
-- maybe-configure-target-libffi \
- maybe-configure-target-libjava \
- maybe-configure-target-zlib \
- maybe-configure-target-boehm-gc \
-@@ -1098,7 +1097,6 @@ all-target: maybe-all-target-libgo
- all-target: maybe-all-target-libtermcap
- all-target: maybe-all-target-winsup
- all-target: maybe-all-target-libgloss
--all-target: maybe-all-target-libffi
- all-target: maybe-all-target-libjava
- all-target: maybe-all-target-zlib
- all-target: maybe-all-target-boehm-gc
-@@ -1183,7 +1181,6 @@ info-target: maybe-info-target-libgo
- info-target: maybe-info-target-libtermcap
- info-target: maybe-info-target-winsup
- info-target: maybe-info-target-libgloss
--info-target: maybe-info-target-libffi
- info-target: maybe-info-target-libjava
- info-target: maybe-info-target-zlib
- info-target: maybe-info-target-boehm-gc
-@@ -1261,7 +1258,6 @@ dvi-target: maybe-dvi-target-libgo
- dvi-target: maybe-dvi-target-libtermcap
- dvi-target: maybe-dvi-target-winsup
- dvi-target: maybe-dvi-target-libgloss
--dvi-target: maybe-dvi-target-libffi
- dvi-target: maybe-dvi-target-libjava
- dvi-target: maybe-dvi-target-zlib
- dvi-target: maybe-dvi-target-boehm-gc
-@@ -1339,7 +1335,6 @@ pdf-target: maybe-pdf-target-libgo
- pdf-target: maybe-pdf-target-libtermcap
- pdf-target: maybe-pdf-target-winsup
- pdf-target: maybe-pdf-target-libgloss
--pdf-target: maybe-pdf-target-libffi
- pdf-target: maybe-pdf-target-libjava
- pdf-target: maybe-pdf-target-zlib
- pdf-target: maybe-pdf-target-boehm-gc
-@@ -1417,7 +1412,6 @@ html-target: maybe-html-target-libgo
- html-target: maybe-html-target-libtermcap
- html-target: maybe-html-target-winsup
- html-target: maybe-html-target-libgloss
--html-target: maybe-html-target-libffi
- html-target: maybe-html-target-libjava
- html-target: maybe-html-target-zlib
- html-target: maybe-html-target-boehm-gc
-@@ -1495,7 +1489,6 @@ TAGS-target: maybe-TAGS-target-libgo
- TAGS-target: maybe-TAGS-target-libtermcap
- TAGS-target: maybe-TAGS-target-winsup
- TAGS-target: maybe-TAGS-target-libgloss
--TAGS-target: maybe-TAGS-target-libffi
- TAGS-target: maybe-TAGS-target-libjava
- TAGS-target: maybe-TAGS-target-zlib
- TAGS-target: maybe-TAGS-target-boehm-gc
-@@ -1573,7 +1566,6 @@ install-info-target: maybe-install-info-target-libgo
- install-info-target: maybe-install-info-target-libtermcap
- install-info-target: maybe-install-info-target-winsup
- install-info-target: maybe-install-info-target-libgloss
--install-info-target: maybe-install-info-target-libffi
- install-info-target: maybe-install-info-target-libjava
- install-info-target: maybe-install-info-target-zlib
- install-info-target: maybe-install-info-target-boehm-gc
-@@ -1651,7 +1643,6 @@ install-pdf-target: maybe-install-pdf-target-libgo
- install-pdf-target: maybe-install-pdf-target-libtermcap
- install-pdf-target: maybe-install-pdf-target-winsup
- install-pdf-target: maybe-install-pdf-target-libgloss
--install-pdf-target: maybe-install-pdf-target-libffi
- install-pdf-target: maybe-install-pdf-target-libjava
- install-pdf-target: maybe-install-pdf-target-zlib
- install-pdf-target: maybe-install-pdf-target-boehm-gc
-@@ -1729,7 +1720,6 @@ install-html-target: maybe-install-html-target-libgo
- install-html-target: maybe-install-html-target-libtermcap
- install-html-target: maybe-install-html-target-winsup
- install-html-target: maybe-install-html-target-libgloss
--install-html-target: maybe-install-html-target-libffi
- install-html-target: maybe-install-html-target-libjava
- install-html-target: maybe-install-html-target-zlib
- install-html-target: maybe-install-html-target-boehm-gc
-@@ -1807,7 +1797,6 @@ installcheck-target: maybe-installcheck-target-libgo
- installcheck-target: maybe-installcheck-target-libtermcap
- installcheck-target: maybe-installcheck-target-winsup
- installcheck-target: maybe-installcheck-target-libgloss
--installcheck-target: maybe-installcheck-target-libffi
- installcheck-target: maybe-installcheck-target-libjava
- installcheck-target: maybe-installcheck-target-zlib
- installcheck-target: maybe-installcheck-target-boehm-gc
-@@ -1885,7 +1874,6 @@ mostlyclean-target: maybe-mostlyclean-target-libgo
- mostlyclean-target: maybe-mostlyclean-target-libtermcap
- mostlyclean-target: maybe-mostlyclean-target-winsup
- mostlyclean-target: maybe-mostlyclean-target-libgloss
--mostlyclean-target: maybe-mostlyclean-target-libffi
- mostlyclean-target: maybe-mostlyclean-target-libjava
- mostlyclean-target: maybe-mostlyclean-target-zlib
- mostlyclean-target: maybe-mostlyclean-target-boehm-gc
-@@ -1963,7 +1951,6 @@ clean-target: maybe-clean-target-libgo
- clean-target: maybe-clean-target-libtermcap
- clean-target: maybe-clean-target-winsup
- clean-target: maybe-clean-target-libgloss
--clean-target: maybe-clean-target-libffi
- clean-target: maybe-clean-target-libjava
- clean-target: maybe-clean-target-zlib
- clean-target: maybe-clean-target-boehm-gc
-@@ -2041,7 +2028,6 @@ distclean-target: maybe-distclean-target-libgo
- distclean-target: maybe-distclean-target-libtermcap
- distclean-target: maybe-distclean-target-winsup
- distclean-target: maybe-distclean-target-libgloss
--distclean-target: maybe-distclean-target-libffi
- distclean-target: maybe-distclean-target-libjava
- distclean-target: maybe-distclean-target-zlib
- distclean-target: maybe-distclean-target-boehm-gc
-@@ -2119,7 +2105,6 @@ maintainer-clean-target:
maybe-maintainer-clean-target-libgo
- maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
- maintainer-clean-target: maybe-maintainer-clean-target-winsup
- maintainer-clean-target: maybe-maintainer-clean-target-libgloss
--maintainer-clean-target: maybe-maintainer-clean-target-libffi
- maintainer-clean-target: maybe-maintainer-clean-target-libjava
- maintainer-clean-target: maybe-maintainer-clean-target-zlib
- maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
-@@ -2252,7 +2237,6 @@ check-target: \
- maybe-check-target-libtermcap \
- maybe-check-target-winsup \
- maybe-check-target-libgloss \
-- maybe-check-target-libffi \
- maybe-check-target-libjava \
- maybe-check-target-zlib \
- maybe-check-target-boehm-gc \
-@@ -2402,7 +2386,6 @@ install-target: \
- maybe-install-target-libtermcap \
- maybe-install-target-winsup \
- maybe-install-target-libgloss \
-- maybe-install-target-libffi \
- maybe-install-target-libjava \
- maybe-install-target-zlib \
- maybe-install-target-boehm-gc \
-@@ -2500,7 +2483,6 @@ install-strip-target: \
- maybe-install-strip-target-libtermcap \
- maybe-install-strip-target-winsup \
- maybe-install-strip-target-libgloss \
-- maybe-install-strip-target-libffi \
- maybe-install-strip-target-libjava \
- maybe-install-strip-target-zlib \
- maybe-install-strip-target-boehm-gc \
---
-1.8.1.3
-
diff --git a/gnu/gcc/0002-4.7.2-ffast-math.patch
b/gnu/gcc/0002-4.7.2-ffast-math.patch
deleted file mode 100644
index 47c5d40..0000000
--- a/gnu/gcc/0002-4.7.2-ffast-math.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From e655b07e077e8f458c35e3515f50ca8e3ba72753 Mon Sep 17 00:00:00 2001
-From: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
-Date: Sun, 24 Feb 2013 11:56:29 +0100
-Subject: [PATCH 2/3] 4.7.2 ffast-math
-
----
- libgcc/config/i386/crtfastmath.c | 33 +++++++++++++++++----------------
- 1 file changed, 17 insertions(+), 16 deletions(-)
-
-diff --git a/libgcc/config/i386/crtfastmath.c
b/libgcc/config/i386/crtfastmath.c
-index 7abe500..392086e 100644
---- a/libgcc/config/i386/crtfastmath.c
-+++ b/libgcc/config/i386/crtfastmath.c
-@@ -50,6 +50,23 @@ sigill_hdlr (int sig __attribute((unused)),
- }
- #endif
-
-+struct
-+{
-+ unsigned short int cwd;
-+ unsigned short int swd;
-+ unsigned short int twd;
-+ unsigned short int fop;
-+ long int fip;
-+ long int fcs;
-+ long int foo;
-+ long int fos;
-+ long int mxcsr;
-+ long int mxcsr_mask;
-+ long int st_space[32];
-+ long int xmm_space[32];
-+ long int padding[56];
-+} __attribute__ ((aligned (16))) fxsave;
-+
- static void __attribute__((constructor))
- #ifndef __x86_64__
- /* The i386 ABI only requires 4-byte stack alignment, so this is necessary
-@@ -96,22 +113,6 @@ set_fast_math (void)
- if (edx & bit_FXSAVE)
- {
- /* Check if DAZ is available. */
-- struct
-- {
-- unsigned short int cwd;
-- unsigned short int swd;
-- unsigned short int twd;
-- unsigned short int fop;
-- long int fip;
-- long int fcs;
-- long int foo;
-- long int fos;
-- long int mxcsr;
-- long int mxcsr_mask;
-- long int st_space[32];
-- long int xmm_space[32];
-- long int padding[56];
-- } __attribute__ ((aligned (16))) fxsave;
-
- __builtin_memset (&fxsave, 0, sizeof (fxsave));
-
---
-1.8.1.3
-
diff --git a/gnu/gcc/0003-fix-header-generation-for-libgo.patch
b/gnu/gcc/0003-fix-header-generation-for-libgo.patch
deleted file mode 100644
index bef60d0..0000000
--- a/gnu/gcc/0003-fix-header-generation-for-libgo.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 6bcb304485fca4e6149a1bbd8085da2d42042d37 Mon Sep 17 00:00:00 2001
-From: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
-Date: Sun, 24 Feb 2013 12:00:25 +0100
-Subject: [PATCH 3/3] fix header generation for libgo
-
----
- libgo/mksysinfo.sh | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 315d60c..10c888c 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -538,7 +538,7 @@ if test "$rusage" != ""; then
- rusage=`echo $rusage | sed -e 's/^ *//'`
- nrusage=
- while test -n "$rusage"; do
-- field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/'`
-+ field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/' -e 's/struct
\(.*\)/struct { \1; }/'`
- rusage=`echo $rusage | sed -e 's/^[^;]*; *\(.*\)$/\1/'`
- # Drop the leading ru_, capitalize the next character.
- field=`echo $field | sed -e 's/^ru_//'`
-@@ -550,7 +550,9 @@ if test "$rusage" != ""; then
- r=`echo $r | sed -e s'/ _timespec$/ Timespec/'`
- r=`echo $r | sed -e s'/ _timestruc_t$/ Timestruc/'`
- field="$f$r"
-- nrusage="$nrusage $field;"
-+ if [ -n "$field" ]; then
-+ nrusage="$nrusage $field;"
-+ fi
- done
- echo "type Rusage struct {$nrusage }" >> ${OUT}
- else
---
-1.8.1.3
-
diff --git a/gnu/gcc/CONFIGURE b/gnu/gcc/CONFIGURE
index 687f348..44460f6 100755
--- a/gnu/gcc/CONFIGURE
+++ b/gnu/gcc/CONFIGURE
@@ -12,3 +12,8 @@ if list_find "$GCC_COMPILER" "java" ; then
config_query GCJ_AWT "Do you want support for AWT (requires gtk+2 and
libart_lgpl)?" n &&
config_query_option GCJ_HOME "Add JDK Tree emulation?" n
"--enable-java-home" ""
fi
+
+#if list_find "$GCC_COMPILER" "ada"; then
+# config_query GCC_ADA_BINDING_GENERATOR "Do you want to patch gcc so
-fdump-ada-spec is available?" n &&
+# config_query GCC_ADA_LIBADDRLINE "Do you want to patch gcc so
libaddr2line is available?" n
+#fi
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index 30a6176..151ab21 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -1,18 +1,3 @@
-2013-02-24 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
- * PRE_BUILD, 0001-remove-libffi.patch: add patch to remove
- redundant libffi
- * PRE_BUILD, 0002-4.7.2-ffast-math.patch: add patch to fix
- -ffast-math
- * PRE_BUILD, 0003-fix-header-generation-for-libgo.patch:
- fix header generation for libgo
-
-2013-02-23 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
- * CONFIGURE, PRE_BUILD, PRE_SUB_DEPENDS, SUB_DEPENDS,
- ada-symbolic-tracebacks.diff, glibc216.patch, mksysinfo.patch:
- removed obsolete patches => cleanup for moving gcc 4.7.2 to
- test grimoire
- * txt00120.txt.gz, ecj-4.3.jar.sig: removed
-
2012-09-21 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 4.7.2

diff --git a/gnu/gcc/PRE_BUILD b/gnu/gcc/PRE_BUILD
index 6453fce..71c66ea 100755
--- a/gnu/gcc/PRE_BUILD
+++ b/gnu/gcc/PRE_BUILD
@@ -1,5 +1,15 @@
default_pre_build &&
+if list_find "$GCC_COMPILER" "c++" ; then
+ cd $BUILD_DIRECTORY &&
+ unpack_file 3
+fi &&
+if list_find "$GCC_COMPILER" "objc" ; then
+ cd $BUILD_DIRECTORY &&
+ unpack_file 5
+fi &&
if list_find "$GCC_COMPILER" "ada" ; then
+ cd $BUILD_DIRECTORY &&
+ unpack_file 7
cd $SOURCE_DIRECTORY &&

mkdir ${SOURCE13/.tar.bz2} &&
@@ -17,10 +27,31 @@ if list_find "$GCC_COMPILER" "ada" ; then
sedit 's:and Nam is "gnatgcc":and Nam is "gcc":' \
$SOURCE_DIRECTORY/gcc/ada/osint.ads &&
cd ${SOURCE_DIRECTORY}
+# if [[ "$GCC_ADA_BINDING_GENERATOR" == "y" ]]; then
+# zcat ${SCRIPT_DIRECTORY}/txt00120.txt.gz | patch -p0 || return 1
+# fi &&
+# if [[ "$GCC_ADA_LIBADDRLINE" == "y" ]]; then
+# patch -p1 < ${SCRIPT_DIRECTORY}/ada-symbolic-tracebacks.diff || return 1
+# fi
#
# End Ada bootstrap cache code
#
fi &&
+if list_find "$GCC_COMPILER" "java" ; then
+ cd $BUILD_DIRECTORY &&
+ unpack_file 9 &&
+ verify_file 15 &&
+
+ cp -v $SOURCE_CACHE/$SOURCE15 $SOURCE_DIRECTORY/ecj.jar
+fi &&
+if list_find "$GCC_COMPILER" "fortran" ; then
+ cd $BUILD_DIRECTORY &&
+ unpack_file 11
+fi &&
+if list_find "$GCC_COMPILER" "go" ; then
+ cd $BUILD_DIRECTORY &&
+ unpack_file 16
+fi &&

mk_source_dir $SOURCE_DIRECTORY.bld &&
cd $SOURCE_DIRECTORY &&
@@ -31,8 +62,8 @@ sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in &&
patch -p0 < "$SPELL_DIRECTORY/python-gdb.patch" &&

if list_find "$GCC_COMPILER" "go"; then
- patch -p1 < "$SPELL_DIRECTORY/0003-fix-header-generation-for-libgo.patch"
+ patch -p0 < "$SPELL_DIRECTORY/mksysinfo.patch"
fi &&

-patch -p1 < "$SPELL_DIRECTORY/0002-4.7.2-ffast-math.patch" &&
-patch -p1 < "$SPELL_DIRECTORY/0001-remove-libffi.patch"
+patch -p1 < "$SPELL_DIRECTORY/gcc-4.4.0-ffast-math.patch" &&
+patch -p1 < "$SPELL_DIRECTORY/remove-libffi.patch"
diff --git a/gnu/gcc/PRE_SUB_DEPENDS b/gnu/gcc/PRE_SUB_DEPENDS
index 740ccd3..b16c25c 100755
--- a/gnu/gcc/PRE_SUB_DEPENDS
+++ b/gnu/gcc/PRE_SUB_DEPENDS
@@ -5,6 +5,7 @@ case $THIS_SUB_DEPENDS in
FORTRAN) list_find "$GCC_COMPILER" fortran ;;
GO) list_find "$GCC_COMPILER" go ;;
ADA) list_find "$GCC_COMPILER" ada ;;
+ ADDRLINE) [[ $GCC_ADA_LIBADDRLINE == "y" ]] ;;
JAVAHOME) [[ $GCJ_HOME == "--enable-java-home" ]] ;;
*) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL
$THIS_SUB_DEPENDS${DEFAULT_COLOR}" ;
return 1;;
diff --git a/gnu/gcc/SUB_DEPENDS b/gnu/gcc/SUB_DEPENDS
index 43c8181..954b628 100755
--- a/gnu/gcc/SUB_DEPENDS
+++ b/gnu/gcc/SUB_DEPENDS
@@ -1,4 +1,5 @@
persistent_add GCC_COMPILER &&
+persistent_add GCC_ADA_LIBADDRLINE &&
persistent_add GCJ_HOME &&
case $THIS_SUB_DEPENDS in
CXX) list_add GCC_COMPILER c++ ;;
@@ -7,6 +8,7 @@ case $THIS_SUB_DEPENDS in
FORTRAN) list_add GCC_COMPILER fortran ;;
GO) list_add GCC_COMPILER go ;;
ADA) list_add GCC_COMPILER ada ;;
+ ADDRLINE) GCC_ADA_LIBADDRLINE=y ;;
JAVAHOME) GCJ_HOME="--enable-java-home" ;;
*) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL
$THIS_SUB_DEPENDS${DEFAULT_COLOR}" ;
return 1;;
diff --git a/gnu/gcc/ada-symbolic-tracebacks.diff
b/gnu/gcc/ada-symbolic-tracebacks.diff
new file mode 100644
index 0000000..a6e8d60
--- /dev/null
+++ b/gnu/gcc/ada-symbolic-tracebacks.diff
@@ -0,0 +1,313 @@
+--- gcc-4.5.1/gcc/ada/gcc-interface/Makefile.in.orig 2010-09-07
12:40:41.000000000 +0200
++++ gcc-4.5.1/gcc/ada/gcc-interface/Makefile.in 2010-09-07
12:44:26.000000000 +0200
+@@ -2233,7 +2233,7 @@
+ a-nucoar.o a-nurear.o i-forbla.o i-forlap.o s-gearop.o
+
+ GNATRTL_OBJS = $(GNATRTL_NONTASKING_OBJS) $(GNATRTL_TASKING_OBJS) \
+- $(GNATRTL_LINEARALGEBRA_OBJS) g-trasym.o memtrack.o
++ $(GNATRTL_LINEARALGEBRA_OBJS) g-trasym.o memtrack.o convert_addresses.o
+
+ # Default run time files
+
+@@ -2356,7 +2356,6 @@
+ for file in $(RTSDIR)/*.ali; do \
+ $(INSTALL_DATA_DATE) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
+ done
+- -$(INSTALL_DATA) $(RTSDIR)/g-trasym$(objext)
$(DESTDIR)$(ADA_RTL_OBJ_DIR)
+ -cd $(RTSDIR); for file in *$(arext);do \
+ $(INSTALL_DATA) $$file $(DESTDIR)$(ADA_RTL_OBJ_DIR); \
+ $(RANLIB_FOR_TARGET) $(DESTDIR)$(ADA_RTL_OBJ_DIR)/$$file; \
+@@ -2462,7 +2461,7 @@
+ $(GNATRTL_OBJS)
+ $(RM) $(RTSDIR)/libgnat$(arext) $(RTSDIR)/libgnarl$(arext)
+ $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnat$(arext) \
+- $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
++ $(addprefix $(RTSDIR)/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS)
g-trasym.o convert_addresses.o)
+ $(RANLIB_FOR_TARGET) $(RTSDIR)/libgnat$(arext)
+ $(AR_FOR_TARGET) $(AR_FLAGS) $(RTSDIR)/libgnarl$(arext) \
+ $(addprefix $(RTSDIR)/,$(GNATRTL_TASKING_OBJS))
+@@ -2492,6 +2491,7 @@
+ $(TARGET_LIBGCC2_CFLAGS) \
+ -o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
+ $(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
++ g-trasym.o convert_addresses.o \
+ $(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
+ $(MISCLIB) -lm
+ cd $(RTSDIR); ../../xgcc -B../../ -shared $(GNATLIBCFLAGS) \
+@@ -2756,6 +2756,7 @@
+ sysdep.o : sysdep.c
+ raise-gcc.o : raise-gcc.c raise.h
+ raise.o : raise.c raise.h
++convert_addresses.o : convert_addresses.c
+ vx_stack_info.o : vx_stack_info.c
+
+ cio.o : cio.c
+--- gcc-4.5.1/gcc/ada/adaint.c.orig 2010-09-07 12:46:00.000000000 +0200
++++ gcc-4.5.1/gcc/ada/adaint.c 2010-09-07 12:48:21.000000000 +0200
+@@ -3461,37 +3461,6 @@
+ }
+ #endif
+
+-#if defined (IS_CROSS) \
+- || (! ((defined (sparc) || defined (i386)) && defined (sun) \
+- && defined (__SVR4)) \
+- && ! (defined (linux) && (defined (i386) || defined (__x86_64__))) \
+- && ! (defined (linux) && defined (__ia64__)) \
+- && ! (defined (linux) && defined (powerpc)) \
+- && ! defined (__FreeBSD__) \
+- && ! defined (__Lynx__) \
+- && ! defined (__hpux__) \
+- && ! defined (__APPLE__) \
+- && ! defined (_AIX) \
+- && ! (defined (__alpha__) && defined (__osf__)) \
+- && ! defined (VMS) \
+- && ! defined (__MINGW32__) \
+- && ! (defined (__mips) && defined (__sgi)))
+-
+-/* Dummy function to satisfy g-trasym.o. See the preprocessor conditional
+- just above for a list of native platforms that provide a non-dummy
+- version of this procedure in libaddr2line.a. */
+-
+-void
+-convert_addresses (const char *file_name ATTRIBUTE_UNUSED,
+- void *addrs ATTRIBUTE_UNUSED,
+- int n_addr ATTRIBUTE_UNUSED,
+- void *buf ATTRIBUTE_UNUSED,
+- int *len ATTRIBUTE_UNUSED)
+-{
+- *len = 0;
+-}
+-#endif
+-
+ #if defined (_WIN32)
+ int __gnat_argument_needs_quote = 1;
+ #else
+--- gcc-4.5.1/gcc/ada/g-trasym.adb.orig 2010-09-07 12:49:42.000000000
+0200
++++ gcc-4.5.1/gcc/ada/g-trasym.adb 2010-09-07 12:52:04.000000000 +0200
+@@ -32,16 +32,16 @@
+
------------------------------------------------------------------------------
+
+ -- Run-time symbolic traceback support
++-- This file has been modified by Juergen Pfeifer (31-Dec-1999) for
++-- the purpose to support the Ada for Linux Team implementation of
++-- convert_addresses. This implementation has the advantage to run
++-- on the binutils as they are deployed on Linux.
+
+ with System.Soft_Links;
+ with Ada.Exceptions.Traceback; use Ada.Exceptions.Traceback;
+
+ package body GNAT.Traceback.Symbolic is
+
+- pragma Linker_Options ("-laddr2line");
+- pragma Linker_Options ("-lbfd");
+- pragma Linker_Options ("-liberty");
+-
+ package TSL renames System.Soft_Links;
+
+ -- To perform the raw addresses to symbolic form translation we rely on
a
+@@ -80,9 +80,13 @@
+ -- FILENAME. LEN points to an integer which contains the size of the
+ -- BUF buffer at input and the result length at output.
+ --
+- -- This procedure is provided by libaddr2line on targets that support
+- -- it. A dummy version is in adaint.c for other targets so that build
+- -- of shared libraries doesn't generate unresolved symbols.
++ -- This is the ALT Linux specific version adapted to the binutils
++ -- deployed with most Linuxes. These binutils already have an
++ -- addr2line tool that demangles Ada symbolic names, but there are
++ -- version dependant variants for the option names. Therefore our
++ -- implementation spawns a shell script that does normalization of
++ -- the option and then executes addr2line and communicates with it
++ -- through a bidirectional pipe.
+ --
+ -- Note that this procedure is *not* thread-safe.
+
+@@ -94,8 +98,9 @@
+ (c_exename : System.Address) return System.Address;
+ pragma Import (C, locate_exec_on_path, "__gnat_locate_exec_on_path");
+
+- Res : String (1 .. 256 * Traceback'Length);
+- Len : Integer;
++ B_Size : constant Integer := 256 * Traceback'Length;
++ Len : Integer := B_Size;
++ Res : String (1 .. B_Size);
+
+ use type System.Address;
+
+Index: src/gcc/ada/convert_addresses.c
+===================================================================
+--- /dev/null
++++ gcc-4.5.1/gcc/ada/convert_addresses.c
+@@ -0,0 +1,157 @@
++/*
++ Copyright (C) 1999 by Juergen Pfeifer <juergen.pfeifer AT gmx.net>
++ Ada for Linux Team (ALT)
++
++ Permission is hereby granted, free of charge, to any person obtaining a
++ copy of this software and associated documentation files (the
++ "Software"), to deal in the Software without restriction, including
++ without limitation the rights to use, copy, modify, merge, publish,
++ distribute, distribute with modifications, sublicense, and/or sell
++ copies of the Software, and to permit persons to whom the Software is
++ furnished to do so, subject to the following conditions:
++
++ The above copyright notice and this permission notice shall be included
++ in all copies or substantial portions of the Software.
++
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
++ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
++ IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
++ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
++ THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++
++ Except as contained in this notice, the name(s) of the above copyright
++ holders shall not be used in advertising or otherwise to promote the
++ sale, use or other dealings in this Software without prior written
++ authorization.
++*/
++#include <sys/types.h>
++#include <stdlib.h>
++#include <stdio.h>
++#include <unistd.h>
++#include <string.h>
++#include <signal.h>
++
++#define STDIN_FILENO 0
++#define STDOUT_FILENO 1
++#define MAX_LINE 1024
++
++#define CLOSE1 close(fd1[0]); close(fd1[1])
++#define CLOSE2 close(fd2[0]); close(fd2[1])
++#define RESTSIG sigaction(SIGPIPE,&oact,NULL)
++
++void convert_addresses
++( void* addrs[],
++ int n_addr,
++ char* buf,
++ int* len)
++{
++ int max_len = *len;
++ pid_t pid = getpid();
++ pid_t child;
++
++ struct sigaction act, oact;
++
++ int fd1[2], fd2[2];
++ char exe_name[128];
++
++ *buf = 0; *len = 0;
++ /* Thanx to the /proc filesystem we can very easily reference our own
++ executable image:-)*/
++ snprintf(exe_name,sizeof(exe_name),"--exe=/proc/%ld/exe", (long)pid);
++
++ act.sa_handler = SIG_IGN;
++ sigemptyset(&act.sa_mask);
++ act.sa_flags = 0;
++ if (sigaction(SIGPIPE,&act,&oact) < 0)
++ return;
++
++ if (pipe(fd1) >= 0) {
++ if (pipe(fd2)>=0) {
++ if ((child = fork()) < 0) {
++ CLOSE1; CLOSE2; RESTSIG;
++ return;
++ }
++ else {
++ if (0==child) {
++ close(fd1[1]);
++ close(fd2[0]);
++ if (fd1[0] != STDIN_FILENO) {
++ if (dup2(fd1[0],STDIN_FILENO) != STDIN_FILENO) {
++ CLOSE1; CLOSE2;
++ }
++ close(fd1[0]);
++ }
++ if (fd2[1] != STDOUT_FILENO) {
++ if (dup2(fd2[1],STDOUT_FILENO) != STDOUT_FILENO) {
++ CLOSE1; CLOSE2;
++ }
++ close(fd2[1]);
++ }
++ {
++ /* As pointed out by Florian Weimer to me, it is a
++ security threat to call the script with a user defined
++ environment and using the path. That would be Trojans
++ pleasure. Therefore we use the absolute path to
++ addr2line and an empty environment. That should be
++ safe.
++ */
++ char *const argv[] = { "addr2line",
++ exe_name,
++ "--demangle=gnat",
++ "--functions",
++ "--basenames",
++ NULL };
++ char *const envp[] = { NULL };
++ if (execve("/usr/bin/addr2line", argv, envp) < 0) {
++ CLOSE1; CLOSE2;
++ }
++ }
++ }
++ else {
++ int i, n;
++ char hex[16];
++ char line[MAX_LINE + 1];
++ char *p;
++ char *s = buf;
++
++ /* Parent context */
++ close(fd1[0]);
++ close(fd2[1]);
++
++ for(i=0; i < n_addr; i++) {
++ snprintf(hex,sizeof(hex),"%p\n",addrs[i]);
++ write(fd1[1],hex,strlen(hex));
++ n = read(fd2[0],line,MAX_LINE);
++ if (n<=0)
++ break;
++ line[n]=0;
++ /* We have approx. 16 additional chars for "%p in " clause.
++ We use this info to prevent a buffer overrun.
++ */
++ if (n + 16 + (*len) > max_len)
++ break;
++ p = strchr(line,'\n');
++ if (p) {
++ if (*(p+1)) {
++ *p = 0;
++ *len += snprintf(s, (max_len - (*len)), "%p in %s at
%s",addrs[i], line, p+1);
++ }
++ else {
++ *len += snprintf(s, (max_len - (*len)), "%p at %s",addrs[i],
line);
++ }
++ s = buf + (*len);
++ }
++ }
++ close(fd1[1]);
++ close(fd2[0]);
++ }
++ }
++ }
++ else {
++ CLOSE1;
++ }
++ }
++ RESTSIG;
++}
+--- gcc-4.5.1/gcc/ada/gcc-interface/Makefile.in.orig 2010-09-07
22:11:06.000000000 +0200
++++ gcc-4.5.1/gcc/ada/gcc-interface/Makefile.in 2010-09-07
22:12:26.000000000 +0200
+@@ -247,10 +247,10 @@
+ # 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)/config \
++INCLUDES = -iquote -I. -I.. -I$(srcdir)/ada -I$(srcdir) -I$(srcdir)/config \
+ -I$(srcdir)/../include
+
+-ADA_INCLUDES = -I- -I. -I$(srcdir)/ada
++ADA_INCLUDES = -iquote -I. -I$(srcdir)/ada
+
+ INCLUDES_FOR_SUBDIR = -I. -I.. -I../.. -I$(fsrcdir)/ada \
+ -I$(fsrcdir)/../include -I$(fsrcdir)
diff --git a/gnu/gcc/ecj-4.3.jar.sig b/gnu/gcc/ecj-4.3.jar.sig
new file mode 100644
index 0000000..b26563d
Binary files /dev/null and b/gnu/gcc/ecj-4.3.jar.sig differ
diff --git a/gnu/gcc/glibc216.patch b/gnu/gcc/glibc216.patch
new file mode 100644
index 0000000..c7123d5
--- /dev/null
+++ b/gnu/gcc/glibc216.patch
@@ -0,0 +1,14 @@
+--- gcc/config/i386/linux-unwind.h.orig 2012-10-03 15:45:48.914460075
+0400
++++ gcc/config/i386/linux-unwind.h 2012-10-03 15:46:46.432460072 +0400
+@@ -133,9 +133,9 @@
+ {
+ struct rt_sigframe {
+ int sig;
+- struct siginfo *pinfo;
++ siginfo_t *pinfo;
+ void *puc;
+- struct siginfo info;
++ siginfo_t info;
+ struct ucontext uc;
+ } *rt_ = context->cfa;
+ /* The void * cast is necessary to avoid an aliasing warning.
diff --git a/gnu/gcc/mksysinfo.patch b/gnu/gcc/mksysinfo.patch
new file mode 100644
index 0000000..91c9642
--- /dev/null
+++ b/gnu/gcc/mksysinfo.patch
@@ -0,0 +1,22 @@
+--- libgo/mksysinfo.sh.orig 2011-02-21 07:17:20.000000000 +0300
++++ libgo/mksysinfo.sh 2013-02-07 23:52:46.454659972 +0400
+@@ -362,7 +362,7 @@
+ rusage=`echo $rusage | sed -e 's/^ *//'`
+ nrusage=
+ while test -n "$rusage"; do
+- field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/'`
++ field=`echo $rusage | sed -e 's/^\([^;]*\);.*$/\1/' -e 's/struct
\(.*\)/struct { \1; }/'`
+ rusage=`echo $rusage | sed -e 's/^[^;]*; *\(.*\)$/\1/'`
+ # Drop the leading ru_, capitalize the next character.
+ field=`echo $field | sed -e 's/^ru_//'`
+@@ -374,7 +374,9 @@
+ r=`echo $r | sed -e s'/ _timespec$/ Timespec/'`
+ r=`echo $r | sed -e s'/ _timestruc_t$/ Timestruc/'`
+ field="$f$r"
+- nrusage="$nrusage $field;"
++ if [ -n "$field" ]; then
++ nrusage="$nrusage $field;"
++ fi
+ done
+ echo "type Rusage struct {$nrusage }" >> ${OUT}
+ fi
diff --git a/gnu/gcc/txt00120.txt.gz b/gnu/gcc/txt00120.txt.gz
new file mode 100644
index 0000000..9921136
Binary files /dev/null and b/gnu/gcc/txt00120.txt.gz differ



  • [SM-Commit] GIT changes to master grimoire by Sukneet Basuta (e5a3a0ab26bab5c280e050656c990349a09e536a), Sukneet Basuta, 03/11/2013

Archive powered by MHonArc 2.6.24.

Top of Page