Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Florian Franzmann (921c7411479eedea7d99145207077b749529bfa7)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Florian Franzmann <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Florian Franzmann (921c7411479eedea7d99145207077b749529bfa7)
  • Date: Sat, 23 Feb 2013 16:55:22 -0600

GIT changes to master grimoire by Florian Franzmann
<siflfran AT hawo.stw.uni-erlangen.de>:

dev/null |binary
gnu/gcc/BUILD | 7
gnu/gcc/CONFIGURE | 5
gnu/gcc/DEPENDS | 1
gnu/gcc/DETAILS | 68 -------
gnu/gcc/HISTORY | 23 ++
gnu/gcc/PRE_BUILD | 41 ----
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 | 0
gnu/gcc/gcc-4.4.0-ffast-math.patch | 50 -----
gnu/gcc/glibc216.patch | 14 -
gnu/gcc/mksysinfo.patch | 22 --
gnu/gcc/remove-libffi.patch | 50 -----
gnu/gcc/txt00120.txt.gz | 0
16 files changed, 33 insertions(+), 564 deletions(-)

New commits:
commit 921c7411479eedea7d99145207077b749529bfa7
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

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

commit a4f9742945fc6c783f6a150906a7802bfc495140
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

gcc: => 4.7.2

commit b1d212b00fd0b05279bad8dce60d693278f756f4
Author: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

gnu/gcc: use new version of the ada bootstrap compiler

commit fa75ecbde3e741582c8ff3d948e4616e9c99030c
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

gcc: => 4.7.1

commit a17f69060a76cb9086916db8ebe82edffef894e3
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>

gcc: => 4.7.0

diff --git a/gnu/gcc/BUILD b/gnu/gcc/BUILD
index 485d3bb..7657ba2 100755
--- a/gnu/gcc/BUILD
+++ b/gnu/gcc/BUILD
@@ -45,11 +45,8 @@ if list_find "$GCC_COMPILER" "ada" ; then
ADA_PATH=${SOURCE13/.tar.bz2/} &&
PATH=$SOURCE_DIRECTORY/$ADA_PATH/usr/bin:$PATH &&

- if [[ "${SMGL_COMPAT_ARCHS[1]}" == "ia32" ]]; then
- export CC="$SOURCE_DIRECTORY/$ADA_PATH/usr/bin/gnatgcc"
- elif [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" ]]; then
- export CC="$SOURCE_DIRECTORY/$ADA_PATH/usr/bin/gcc"
- fi &&
+ export CC="$SOURCE_DIRECTORY/$ADA_PATH/usr/bin/gcc" &&
+
export
INCLUDE_DIR="$SOURCE_DIRECTORY/$ADA_PATH/usr/lib/gcc/$HOST/${VERSION13}/include"
&&
export
LIB_DIR="$SOURCE_DIRECTORY/$ADA_PATH/usr/lib/gcc/$HOST/${VERSION13}/" &&
export LDFLAGS="-L${LIB_DIR}" &&
diff --git a/gnu/gcc/CONFIGURE b/gnu/gcc/CONFIGURE
index 44460f6..687f348 100755
--- a/gnu/gcc/CONFIGURE
+++ b/gnu/gcc/CONFIGURE
@@ -12,8 +12,3 @@ 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/DEPENDS b/gnu/gcc/DEPENDS
index 988794f..fdd144a 100755
--- a/gnu/gcc/DEPENDS
+++ b/gnu/gcc/DEPENDS
@@ -1,4 +1,5 @@
. $GRIMOIRE/libcompat &&
+depends perl &&
if list_find "$GCC_COMPILER" "java" ; then
depends unzip &&
depends zip &&
diff --git a/gnu/gcc/DETAILS b/gnu/gcc/DETAILS
index 6e234e5..6626326 100755
--- a/gnu/gcc/DETAILS
+++ b/gnu/gcc/DETAILS
@@ -1,42 +1,17 @@
SPELL=gcc
- VERSION=4.6.3
+ VERSION=4.7.2
PATCHLEVEL=0
- BASE_SOURCE_URL="ftp://gcc.gnu.org/gnu/gcc/${SPELL}-${VERSION}";
- SOURCE=gcc-core-$VERSION.tar.bz2
+ BASE_SOURCE_URL="ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$VERSION";
+ SOURCE=gcc-$VERSION.tar.bz2
SOURCE2=$SOURCE.sig
SOURCE_DIRECTORY=$BUILD_DIRECTORY/gcc-$VERSION
SOURCE_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE
- SOURCE_URL[1]=${BASE_SOURCE_URL}-$VERSION/$SOURCE
+ SOURCE_URL[1]=${BASE_SOURCE_URL}/$SOURCE
SOURCE2_URL[0]=${SOURCE_URL[0]}.sig
SOURCE_GPG=gnu.gpg:$SOURCE.sig:UPSTREAM_KEY
SOURCE2_IGNORE=signature

-if list_find "$GCC_COMPILER" "c++" ; then
- SOURCE3=gcc-g++-$VERSION.tar.bz2
- SOURCE4=$SOURCE3.sig
- SOURCE3_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE3
- SOURCE3_URL[1]=${BASE_SOURCE_URL}-$VERSION/$SOURCE3
- SOURCE4_URL[0]=${SOURCE3_URL[0]}.sig
- SOURCE3_GPG=gnu.gpg:$SOURCE4:UPSTREAM_KEY
- SOURCE4_IGNORE=signature
-fi
-if list_find "$GCC_COMPILER" "objc" ; then
- SOURCE5=gcc-objc-$VERSION.tar.bz2
- SOURCE6=$SOURCE5.sig
- SOURCE5_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE5
- SOURCE5_URL[1]=${BASE_SOURCE_URL}-$VERSION/$SOURCE5
- SOURCE6_URL[0]=${SOURCE5_URL[0]}.sig
- SOURCE5_GPG=gnu.gpg:$SOURCE6:UPSTREAM_KEY
- SOURCE6_IGNORE=signature
-fi
if list_find "$GCC_COMPILER" "ada" ; then
- SOURCE7=gcc-ada-$VERSION.tar.bz2
- SOURCE8=$SOURCE7.sig
- SOURCE7_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE7
- SOURCE7_URL[1]=${BASE_SOURCE_URL}-$VERSION/$SOURCE7
- SOURCE8_URL[0]=${SOURCE7_URL[0]}.sig
- SOURCE7_GPG=gnu.gpg:$SOURCE8:UPSTREAM_KEY
- SOURCE8_IGNORE=signature

# howto generate the ada bootstraper
# step 1: make a backup of your existing gcc cache you'll lose things like
libstdc++
@@ -54,14 +29,14 @@ if list_find "$GCC_COMPILER" "ada" ; then

if [[ "${SMGL_COMPAT_ARCHS[1]}" == "ia32" ]]
then
- VERSION13=4.5.2
+ VERSION13=4.7.1
SOURCE13=ada-$VERSION13-i686-pc-linux-gnu.tar.bz2
elif [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" ]]
then
VERSION13=4.3.3
SOURCE13=ada-$VERSION13-x86_64-pc-linux-gnu.tar.bz2
else
- VERSION13=4.5.2
+ VERSION13=4.7.1
SOURCE13=ada-$VERSION13-i686-pc-linux-gnu.tar.bz2

fi
@@ -71,37 +46,6 @@ fi
SOURCE14_URL[0]=${SOURCE13_URL[0]}.sig
SOURCE14_IGNORE=signature
fi
-if list_find "$GCC_COMPILER" "java" ; then
- SOURCE9=gcc-java-$VERSION.tar.bz2
- SOURCE10=$SOURCE9.sig
- SOURCE9_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE9
- SOURCE9_URL[1]=${BASE_SOURCE_URL}-$VERSION/$SOURCE9
- SOURCE10_URL[0]=${SOURCE9_URL[0]}.sig
- SOURCE9_GPG=gnu.gpg:$SOURCE10:UPSTREAM_KEY
- SOURCE10_IGNORE=signature
-# Eclipse compiler for Java (needed since 4.3)
- SOURCE15=ecj-4.3.jar
- SOURCE15_URL[0]=ftp://sourceware.org/pub/java/$SOURCE15
- SOURCE15_GPG=gurus.gpg:$SOURCE15.sig
-fi
-if list_find "$GCC_COMPILER" "fortran" ; then
- SOURCE11=gcc-fortran-$VERSION.tar.bz2
- SOURCE12=$SOURCE11.sig
- SOURCE11_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE11
- SOURCE11_URL[1]=${BASE_SOURCE_URL}-$VERSION/$SOURCE11
- SOURCE12_URL[0]=${SOURCE11_URL[0]}.sig
- SOURCE11_GPG=gnu.gpg:$SOURCE12:UPSTREAM_KEY
- SOURCE12_IGNORE=signature
-fi
-if list_find "$GCC_COMPILER" "go" ; then
- SOURCE16=gcc-go-$VERSION.tar.bz2
- SOURCE17=$SOURCE16.sig
- SOURCE16_URL[0]=$GNU_URL/gcc/gcc-$VERSION/$SOURCE16
- SOURCE16_URL[1]=${BASE_SOURCE_URL}-$VERSION/$SOURCE16
- SOURCE17_URL[0]=${SOURCE16_URL[0]}.sig
- SOURCE16_GPG=gnu.gpg:$SOURCE17:UPSTREAM_KEY
- SOURCE17_IGNORE=signature
-fi
LICENSE[0]=GPL
TMPFS=off
WEB_SITE=http://gcc.gnu.org/
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index 63fd4b4..90bdf48 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -1,3 +1,26 @@
+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
+
+2012-08-27 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
+ * DETAILS, BUILD: use new version of the ada bootstrap compiler
+
+2012-06-14 Treeve Jelbert <treeve01 AT oi.be>
+ * DETAILS: version 4.7.1
+
+2012-03-22 Treeve Jelbert <treeve01 AT oi.be>
+ * DETAILS: version 4.7.0
+ there is now one integrated tarball, so remove multiple source files
+ * PRE_BUILD: no need to unpack multiple files, except for ada
+ do not apply ffast-math.patch or remove-libffi.patch
+ * DEPENDS: add perl
+
2013-02-10 Vlad Glagolev <stealth AT sourcemage.org>
* PRE_BUILD: apply go patch only if Go compiler was included into
build
* EXPORTS: chmod +x
diff --git a/gnu/gcc/PRE_BUILD b/gnu/gcc/PRE_BUILD
index 841dca0..ce19aea 100755
--- a/gnu/gcc/PRE_BUILD
+++ b/gnu/gcc/PRE_BUILD
@@ -1,15 +1,5 @@
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} &&
@@ -27,31 +17,10 @@ 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 &&
@@ -59,12 +28,4 @@ cd $SOURCE_DIRECTORY &&
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in &&
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in &&

-patch -p0 < "$SPELL_DIRECTORY/glibc216.patch" &&
-patch -p0 < "$SPELL_DIRECTORY/python-gdb.patch" &&
-
-if list_find "$GCC_COMPILER" "go"; then
- patch -p0 < "$SPELL_DIRECTORY/mksysinfo.patch"
-fi &&
-
-patch -p1 < "$SPELL_DIRECTORY/gcc-4.4.0-ffast-math.patch" &&
-patch -p1 < "$SPELL_DIRECTORY/remove-libffi.patch"
+patch -p0 < "$SPELL_DIRECTORY/python-gdb.patch"
diff --git a/gnu/gcc/PRE_SUB_DEPENDS b/gnu/gcc/PRE_SUB_DEPENDS
index b16c25c..740ccd3 100755
--- a/gnu/gcc/PRE_SUB_DEPENDS
+++ b/gnu/gcc/PRE_SUB_DEPENDS
@@ -5,7 +5,6 @@ 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 954b628..43c8181 100755
--- a/gnu/gcc/SUB_DEPENDS
+++ b/gnu/gcc/SUB_DEPENDS
@@ -1,5 +1,4 @@
persistent_add GCC_COMPILER &&
-persistent_add GCC_ADA_LIBADDRLINE &&
persistent_add GCJ_HOME &&
case $THIS_SUB_DEPENDS in
CXX) list_add GCC_COMPILER c++ ;;
@@ -8,7 +7,6 @@ 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
deleted file mode 100644
index a6e8d60..0000000
--- a/gnu/gcc/ada-symbolic-tracebacks.diff
+++ /dev/null
@@ -1,313 +0,0 @@
---- 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
deleted file mode 100644
index b26563d..0000000
Binary files a/gnu/gcc/ecj-4.3.jar.sig and /dev/null differ
diff --git a/gnu/gcc/gcc-4.4.0-ffast-math.patch
b/gnu/gcc/gcc-4.4.0-ffast-math.patch
deleted file mode 100644
index 7cfd00c..0000000
--- a/gnu/gcc/gcc-4.4.0-ffast-math.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -Naur gcc-4.4.0.orig/gcc/config/i386/crtfastmath.c
gcc-4.4.0/gcc/config/i386/crtfastmath.c
---- gcc-4.4.0.orig/gcc/config/i386/crtfastmath.c 2009-05-12
16:27:42.827645459 -0700
-+++ gcc-4.4.0/gcc/config/i386/crtfastmath.c 2009-05-12 16:27:50.489399823
-0700
-@@ -30,6 +30,23 @@
- #include "cpuid.h"
- #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
-@@ -54,22 +71,6 @@
- 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));
-
diff --git a/gnu/gcc/glibc216.patch b/gnu/gcc/glibc216.patch
deleted file mode 100644
index c7123d5..0000000
--- a/gnu/gcc/glibc216.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- 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
deleted file mode 100644
index 91c9642..0000000
--- a/gnu/gcc/mksysinfo.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- 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/remove-libffi.patch b/gnu/gcc/remove-libffi.patch
deleted file mode 100644
index 91f2d15..0000000
--- a/gnu/gcc/remove-libffi.patch
+++ /dev/null
@@ -1,50 +0,0 @@
---- gcc-4.6.2/Makefile.in.orig 2012-02-04 22:17:43.000000000 +0100
-+++ gcc-4.6.2/Makefile.in 2012-02-04 22:19:31.000000000 +0100
-@@ -1848,7 +1848,6 @@
- install-info-target: maybe-install-info-target-libgloss
- install-info-target: maybe-install-info-target-gperf
- install-info-target: maybe-install-info-target-examples
--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
-@@ -1963,7 +1962,6 @@
- install-pdf-target: maybe-install-pdf-target-libgloss
- install-pdf-target: maybe-install-pdf-target-gperf
- install-pdf-target: maybe-install-pdf-target-examples
--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
-@@ -2078,7 +2076,6 @@
- install-html-target: maybe-install-html-target-libgloss
- install-html-target: maybe-install-html-target-gperf
- install-html-target: maybe-install-html-target-examples
--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
-@@ -2193,7 +2190,6 @@
- installcheck-target: maybe-installcheck-target-libgloss
- installcheck-target: maybe-installcheck-target-gperf
- installcheck-target: maybe-installcheck-target-examples
--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
-@@ -3045,7 +3041,6 @@
- maybe-install-target-libgloss \
- maybe-install-target-gperf \
- maybe-install-target-examples \
-- maybe-install-target-libffi \
- maybe-install-target-libjava \
- maybe-install-target-zlib \
- maybe-install-target-boehm-gc \
-@@ -3179,7 +3174,6 @@
- maybe-install-strip-target-libgloss \
- maybe-install-strip-target-gperf \
- maybe-install-strip-target-examples \
-- maybe-install-strip-target-libffi \
- maybe-install-strip-target-libjava \
- maybe-install-strip-target-zlib \
- maybe-install-strip-target-boehm-gc \
diff --git a/gnu/gcc/txt00120.txt.gz b/gnu/gcc/txt00120.txt.gz
deleted file mode 100644
index 9921136..0000000
Binary files a/gnu/gcc/txt00120.txt.gz and /dev/null differ



  • [SM-Commit] GIT changes to master grimoire by Florian Franzmann (921c7411479eedea7d99145207077b749529bfa7), Florian Franzmann, 02/23/2013

Archive powered by MHonArc 2.6.24.

Top of Page