* [gentoo-commits] proj/gcc-patches:master commit in: 2.95.3/gentoo/
@ 2018-09-02 23:33 Sergei Trofimovich
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Trofimovich @ 2018-09-02 23:33 UTC (permalink / raw
To: gentoo-commits
commit: 3c8762a46f4ae91d8e5bb71018b244b2f430b7f1
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 2 23:31:23 2018 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Sep 2 23:31:23 2018 +0000
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3c8762a4
2.95.3: fix stage1 bulding against modern toolchain
3 new patches:
- 44_all_gcc-texi.patch: fix buuild failure against makeinfo-6.3
- 45_all_libexec-gcc-as.patch: lookup as in /usr/libexec/gcc/<TARGET>
- 46_all_libexec-gcc-binutils.patch: add /usr/libexec/gcc/<TARGET> to search path
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
2.95.3/gentoo/44_all_gcc-texi.patch | 14 ++++++
2.95.3/gentoo/45_all_libexec-gcc-as.patch | 26 +++++++++++
2.95.3/gentoo/46_all_libexec-gcc-binutils.patch | 61 +++++++++++++++++++++++++
3 files changed, 101 insertions(+)
diff --git a/2.95.3/gentoo/44_all_gcc-texi.patch b/2.95.3/gentoo/44_all_gcc-texi.patch
new file mode 100644
index 0000000..a4b7044
--- /dev/null
+++ b/2.95.3/gentoo/44_all_gcc-texi.patch
@@ -0,0 +1,14 @@
+makeinfo-6.3 allows @itemx only after @item and fails the build as:
+ gcc-2.95.3/gcc/install.texi:1607: @itemx must follow @item
+
+--- a/gcc/install.texi
++++ b/gcc/install.texi
+@@ -1604,7 +1604,7 @@ linker that are fixed by using the GNU versions of these tools.
+ Embedded PowerPC system in little endian mode for use in running under
+ the PSIM simulator.
+
+-@itemx powerpcle-*-eabi
++@item powerpcle-*-eabi
+ Embedded PowerPC system in little endian mode.
+
+ You can specify a default version for the @samp{-mcpu=}@var{cpu_type}
diff --git a/2.95.3/gentoo/45_all_libexec-gcc-as.patch b/2.95.3/gentoo/45_all_libexec-gcc-as.patch
new file mode 100644
index 0000000..e857363
--- /dev/null
+++ b/2.95.3/gentoo/45_all_libexec-gcc-as.patch
@@ -0,0 +1,26 @@
+Before gcc-3.4 assembler was supposed to be in /usr/lib/gcc-lib/<TARGET>
+After gcc-3.4 assembler location moved to /usr/libexec/gcc/<TARGET>
+
+Add gcc-3.4-style path.
+--- a/gcc/configure
++++ b/gcc/configure
+@@ -8161,3 +8161,7 @@ elif test x$host = x$target; then
+
+- test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
++ test_dirs="$test_prefix/libexec/gcc/$target/$gcc_version \
++ $test_prefix/libexec/gcc/$target \
++ /usr/libexec/gcc/$target/$gcc_version \
++ /usr/libexec/gcc/$target \
++ $test_prefix/lib/gcc-lib/$target/$gcc_version \
+ $test_prefix/lib/gcc-lib/$target \
+--- a/gcc/configure.in
++++ b/gcc/configure.in
+@@ -4010,3 +4010,7 @@ elif test x$host = x$target; then
+
+- test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
++ test_dirs="$test_prefix/libexec/gcc/$target/$gcc_version \
++ $test_prefix/libexec/gcc/$target \
++ /usr/libexec/gcc/$target/$gcc_version \
++ /usr/libexec/gcc/$target \
++ $test_prefix/lib/gcc-lib/$target/$gcc_version \
+ $test_prefix/lib/gcc-lib/$target \
diff --git a/2.95.3/gentoo/46_all_libexec-gcc-binutils.patch b/2.95.3/gentoo/46_all_libexec-gcc-binutils.patch
new file mode 100644
index 0000000..fb97b42
--- /dev/null
+++ b/2.95.3/gentoo/46_all_libexec-gcc-binutils.patch
@@ -0,0 +1,61 @@
+Before gcc-3.4 gcc libraries and searched executables
+were in /usr/lib/gcc-lib/<TARGET> (STANDARD_EXEC_PREFIX)
+
+After gcc-3.4 the split happened:
+- /usr/lib/gcc/<TARGET> for libraries (STARDARD_EXEC_PREFIX)
+- /usr/libexec/gcc/<TARGET> for executables (STANDARD_LIBEXEC_PREFIX)
+
+This patch adds STANDARD_LIBEXEC_PREFIX to allow bootstrapping
+on 3.4+-only system.
+--- a/gcc/Makefile.in
++++ b/gcc/Makefile.in
+@@ -271,8 +271,13 @@ exec_prefix = @exec_prefix@
+ bindir = @bindir@
+ # Directory in which to put the directories used by the compiler.
+ libdir = @libdir@
++# Directory in which GCC puts its executables.
++libexecdir = @libexecdir@
++
+ # Directory in which the compiler finds executables, libraries, etc.
+ libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(version)
++# Directory in which the compiler finds executables
++libexecsubdir = $(libexecdir)/gcc/$(target_alias)/$(version)
+ # Used to produce a relative $(gcc_tooldir) in gcc.o
+ unlibsubdir = ../../..
+ # Directory in which to find other cross-compilation tools and headers.
+@@ -650,6 +655,7 @@ ORDINARY_FLAGS_TO_PASS = \
+ "gcc_tooldir=$(gcc_tooldir)" \
+ "bindir=$(bindir)" \
+ "libsubdir=$(libsubdir)" \
++ "libexecsubdir=$(libsubdir)" \
+ "datadir=$(datadir)" \
+ "distdir=../tmp/\$$(subdir)" \
+ "localedir=$(localedir)"
+@@ -1412,6 +1418,7 @@ c-common.o : c-common.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-lex.h \
+ DRIVER_DEFINES = \
+ -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \
+ -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-lib/\" \
++ -DSTANDARD_LIBEXEC_PREFIX=\"$(libexecdir)/gcc/\" \
+ -DDEFAULT_TARGET_VERSION=\"$(version)\" \
+ -DDEFAULT_TARGET_MACHINE=\"$(target_alias)\" \
+ -DTOOLDIR_BASE_PREFIX=\"$(exec_prefix)/\"
+--- a/gcc/gcc.c
++++ b/gcc/gcc.c
+@@ -1379,6 +1379,8 @@ static const char *standard_exec_prefix_1 = "/usr/lib/gcc/";
+ static const char *md_exec_prefix = MD_EXEC_PREFIX;
+ #endif
+
++static const char *standard_libexec_prefix = STANDARD_LIBEXEC_PREFIX;
++
+ #ifndef STANDARD_STARTFILE_PREFIX
+ #define STANDARD_STARTFILE_PREFIX "/usr/local/lib/"
+ #endif /* !defined STANDARD_STARTFILE_PREFIX */
+@@ -3062,6 +3064,8 @@ process_command (argc, argv)
+ 0, 2, warn_std_ptr);
+ add_prefix (&exec_prefixes, standard_exec_prefix_1, "BINUTILS",
+ 0, 2, warn_std_ptr);
++ add_prefix (&exec_prefixes, standard_libexec_prefix, "BINUTILS",
++ 0, 2, warn_std_ptr);
+ #endif
+
+ add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS",
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/gcc-patches:master commit in: 2.95.3/gentoo/
@ 2018-09-02 23:43 Sergei Trofimovich
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Trofimovich @ 2018-09-02 23:43 UTC (permalink / raw
To: gentoo-commits
commit: 0ecc76ab9d5a3ec38af4df0420f09f53dd4e8ecb
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 2 23:43:28 2018 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Sep 2 23:43:28 2018 +0000
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=0ecc76ab
README.history: add history file
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
2.95.3/gentoo/README.history | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/2.95.3/gentoo/README.history b/2.95.3/gentoo/README.history
new file mode 100644
index 0000000..403f128
--- /dev/null
+++ b/2.95.3/gentoo/README.history
@@ -0,0 +1,33 @@
+1.5 TODO
+ + 44_all_gcc-texi.patch
+ + 45_all_libexec-gcc-as.patch
+ + 46_all_libexec-gcc-binutils.patch
+
+1.4 29 Dec 2012
+ + 00_all_gcc-pregen-info.patch
+ + 05_all_gcc-2.95.3-no-COPYING-cross-compile.patch
+ + 06_all_gcc-2.95.3-DESTDIR.patch
+ + 10_all_new-atexit.patch
+ + 10_alpha_new-atexit.patch
+ + 11_all_gcc34compile.patch
+ + 12_all_dont-make-libdirs.patch
+ + 14_all_libstdc++_deque-leak-fix.patch
+ + 15_all_libiberty-headers-1.patch
+ + 15_all_libiberty-headers-2.patch
+ + 15_all_libiberty-headers-3.patch
+ + 16_all_gcc-open-perms.patch
+ + 20_all_crosstool-arm-linux.patch
+ + 21_all_crosstool-backport-config.gcc-1.4.patch
+ + 21_all_crosstool-backport-config.gcc-1.92.patch
+ + 22_all_crosstool-gcc-2.95.3-trap-posix.patch
+ + 23_all_crosstool-gcc-pr3106.patch
+ + 24_all_crosstool-threads_snafu.patch
+ + 40_all_debian-arm-const-double.patch
+ + 40_all_debian-arm-libgcc-umodsi3.patch
+ + 40_all_debian-arm-output-int.patch
+ + 40_all_debian-arm-profile.patch
+ + 41_all_debian-gcc-core-2.95.2-avr-1.1.patch
+ + 42_all_debian-gcc-m68k-pic.patch
+ + 42_all_debian-m68k-md.patch
+ + 42_all_debian-m68k-reload.patch
+ + 43_all_debian-strength-red.patch
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/gcc-patches:master commit in: 2.95.3/gentoo/
@ 2018-09-03 22:02 Sergei Trofimovich
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Trofimovich @ 2018-09-03 22:02 UTC (permalink / raw
To: gentoo-commits
commit: 5c628ecf524dda00af2707c58f431ae6437ddc12
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 3 22:02:33 2018 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Sep 3 22:02:33 2018 +0000
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=5c628ecf
2.95.3: cut new 1.5 patchset
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
2.95.3/gentoo/45_all_libexec-gcc-as.patch | 12 ++++++------
2.95.3/gentoo/README.history | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/2.95.3/gentoo/45_all_libexec-gcc-as.patch b/2.95.3/gentoo/45_all_libexec-gcc-as.patch
index e857363..0442313 100644
--- a/2.95.3/gentoo/45_all_libexec-gcc-as.patch
+++ b/2.95.3/gentoo/45_all_libexec-gcc-as.patch
@@ -2,9 +2,9 @@ Before gcc-3.4 assembler was supposed to be in /usr/lib/gcc-lib/<TARGET>
After gcc-3.4 assembler location moved to /usr/libexec/gcc/<TARGET>
Add gcc-3.4-style path.
---- a/gcc/configure
-+++ b/gcc/configure
-@@ -8161,3 +8161,7 @@ elif test x$host = x$target; then
+--- a/gcc/configure.in
++++ b/gcc/configure.in
+@@ -4010,3 +4010,7 @@ elif test x$host = x$target; then
- test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
+ test_dirs="$test_prefix/libexec/gcc/$target/$gcc_version \
@@ -13,9 +13,9 @@ Add gcc-3.4-style path.
+ /usr/libexec/gcc/$target \
+ $test_prefix/lib/gcc-lib/$target/$gcc_version \
$test_prefix/lib/gcc-lib/$target \
---- a/gcc/configure.in
-+++ b/gcc/configure.in
-@@ -4010,3 +4010,7 @@ elif test x$host = x$target; then
+--- a/gcc/configure
++++ b/gcc/configure
+@@ -8161,3 +8161,7 @@ elif test x$host = x$target; then
- test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
+ test_dirs="$test_prefix/libexec/gcc/$target/$gcc_version \
diff --git a/2.95.3/gentoo/README.history b/2.95.3/gentoo/README.history
index 403f128..a45bbcc 100644
--- a/2.95.3/gentoo/README.history
+++ b/2.95.3/gentoo/README.history
@@ -1,4 +1,4 @@
-1.5 TODO
+1.5 3 Sep 2018
+ 44_all_gcc-texi.patch
+ 45_all_libexec-gcc-as.patch
+ 46_all_libexec-gcc-binutils.patch
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/gcc-patches:master commit in: 2.95.3/gentoo/
@ 2019-10-21 22:16 Sergei Trofimovich
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Trofimovich @ 2019-10-21 22:16 UTC (permalink / raw
To: gentoo-commits
commit: 99a41e652b0d6bfafe1816eecb593d2ac4a825b9
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 21 22:12:43 2019 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Oct 21 22:12:43 2019 +0000
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=99a41e65
2.95.3: drop arch-conditional patches
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
2.95.3/gentoo/10_alpha_new-atexit.patch | 442 --------------------------------
2.95.3/gentoo/README.history | 3 +
2 files changed, 3 insertions(+), 442 deletions(-)
diff --git a/2.95.3/gentoo/10_alpha_new-atexit.patch b/2.95.3/gentoo/10_alpha_new-atexit.patch
deleted file mode 100644
index 1ea9e8d..0000000
--- a/2.95.3/gentoo/10_alpha_new-atexit.patch
+++ /dev/null
@@ -1,442 +0,0 @@
- # This new patch for the atexit problem occured with glibc-2.2.3 should
- # work with glibc-2.2.4. This closes bug #3987 and #4004.
- #
- # Azarah - 29 Jun 2002
- #
- # http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2001/08/0476.html
- # http://archive.linuxfromscratch.org/mail-archives/lfs-dev/2001/08/0589.html
- #
- #
- # Something to note, is that this patch makes gcc crash if its given
- # the "-mno-ieee-fp" flag ... libvorbis is an good example of this.
- # This however is on of those which one we want fixed most cases :/
- #
- # Azarah - 30 Jun 2002
-
-2000-04-29 Richard Henderson <rth@cygnus.com>
-
- * config/alpha/crtbegin.asm: Use C comments instead of #.
- Mark __dso_handle hidden.
-
-2000-02-16 Richard Henderson <rth@cygnus.com>
-
- * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
- Add crtbeginS.o and crtendS.o.
- * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
- (ENDFILE_SPEC): Use crtendS.o.
- * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
-
- * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
- (__do_global_dtors_aux): ... here. Call __cxa_finalize if
- shared and present.
- (__dso_handle): New variable.
-
-2000-04-04 Ulrich Drepper <drepper@cygnus.com>
-
- * acconfig.h: Add HAVE_GAS_HIDDEN.
- * config.in: Regenerated.
- * configure.in: Add test for .hidden pseudo-op in gas.
- * configure: Regenerated.
- * crtstuff.c: Include auto-host.h.
- Emit additional .hidden pseudo-op for __dso_handle if the
- assembler knows about it.
-
---- gcc-2.95.x/gcc/config/alpha/crtbegin.asm.jj Wed Dec 16 22:00:53 1998
-+++ gcc-2.95.x/gcc/config/alpha/crtbegin.asm Mon Aug 13 11:16:43 2001
-@@ -1,42 +1,46 @@
-- # Copyright (C) 1996, 1998 Free Software Foundation, Inc.
-- # Contributed by Richard Henderson (rth@tamu.edu)
-- #
-- # This file is free software; you can redistribute it and/or modify it
-- # under the terms of the GNU General Public License as published by the
-- # Free Software Foundation; either version 2, or (at your option) any
-- # later version.
-- #
-- # In addition to the permissions in the GNU General Public License, the
-- # Free Software Foundation gives you unlimited permission to link the
-- # compiled version of this file with other programs, and to distribute
-- # those programs without any restriction coming from the use of this
-- # file. (The General Public License restrictions do apply in other
-- # respects; for example, they cover modification of the file, and
-- # distribution when not linked into another program.)
-- #
-- # This file is distributed in the hope that it will be useful, but
-- # WITHOUT ANY WARRANTY; without even the implied warranty of
-- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- # General Public License for more details.
-- #
-- # You should have received a copy of the GNU General Public License
-- # along with this program; see the file COPYING. If not, write to
-- # the Free Software Foundation, 59 Temple Place - Suite 330,
-- # Boston, MA 02111-1307, USA.
-- #
-- # As a special exception, if you link this library with files
-- # compiled with GCC to produce an executable, this does not cause
-- # the resulting executable to be covered by the GNU General Public License.
-- # This exception does not however invalidate any other reasons why
-- # the executable file might be covered by the GNU General Public License.
--
-- #
-- # Heads of the constructor/destructor lists.
-- #
--
-- # The __*TOR_LIST__ symbols are not global because when this file is used
-- # in a shared library, we do not want the symbol to fall over to the
-- # application's lists.
-+/* Copyright (C) 1996, 1998 Free Software Foundation, Inc.
-+ * Contributed by Richard Henderson (rth@tamu.edu)
-+ *
-+ * This file is free software; you can redistribute it and/or modify it
-+ * under the terms of the GNU General Public License as published by the
-+ * Free Software Foundation; either version 2, or (at your option) any
-+ * later version.
-+ *
-+ * In addition to the permissions in the GNU General Public License, the
-+ * Free Software Foundation gives you unlimited permission to link the
-+ * compiled version of this file with other programs, and to distribute
-+ * those programs without any restriction coming from the use of this
-+ * file. (The General Public License restrictions do apply in other
-+ * respects; for example, they cover modification of the file, and
-+ * distribution when not linked into another program.)
-+ *
-+ * This file is distributed in the hope that it will be useful, but
-+ * WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-+ * General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; see the file COPYING. If not, write to
-+ * the Free Software Foundation, 59 Temple Place - Suite 330,
-+ * Boston, MA 02111-1307, USA.
-+ *
-+ * As a special exception, if you link this library with files
-+ * compiled with GCC to produce an executable, this does not cause
-+ * the resulting executable to be covered by the GNU General Public License.
-+ * This exception does not however invalidate any other reasons why
-+ * the executable file might be covered by the GNU General Public License.
-+ */
-+
-+
-+
-+/*
-+ * Heads of the constructor/destructor lists.
-+ */
-+
-+/* The __*TOR_LIST__ symbols are not global because when this file is used
-+ * in a shared library, we do not want the symbol to fall over to the
-+ * application's lists.
-+ */
-
- .section .ctors,"aw"
-
-@@ -53,34 +57,34 @@ __DTOR_LIST__:
- .section .eh_frame,"aw"
- __EH_FRAME_BEGIN__:
-
-- #
-- # Fragment of the ELF _fini routine that invokes our dtor cleanup.
-- #
-+/*
-+ * Fragment of the ELF _fini routine that invokes our dtor cleanup.
-+ */
-
- .section .fini,"ax"
-
-- # Since the bits of the _fini function are spread across many
-- # object files, each potentially with its own GP, we must
-- # assume we need to load ours. Further, our .fini section
-- # can easily be more than 4MB away from our .text bits so we
-- # can't use bsr.
-+ /* Since the bits of the _fini function are spread across many
-+ object files, each potentially with its own GP, we must
-+ assume we need to load ours. Further, our .fini section
-+ can easily be more than 4MB away from our .text bits so we
-+ can't use bsr. */
-
- br $29,1f
- 1: ldgp $29,0($29)
- jsr $26,__do_global_dtors_aux
-
-- # Ideally this call would go in crtend.o, except that we can't
-- # get hold of __EH_FRAME_BEGIN__ there.
-+ /* Ideally this call would go in crtend.o, except that we can't
-+ get hold of __EH_FRAME_BEGIN__ there */
-
- jsr $26,__do_frame_takedown
-
-- # Must match the alignment we got from crti.o else we get
-- # zero-filled holes in our _fini function and then SIGILL.
-+ /* Must match the alignment we got from crti.o else we get
-+ zero-filled holes in our _fini function and then SIGILL. */
- .align 3
-
-- #
-- # Fragment of the ELF _init routine that sets up the frame info.
-- #
-+/*
-+ * Fragment of the ELF _init routine that sets up the frame info.
-+ */
-
- .section .init,"ax"
- br $29,1f
-@@ -88,32 +92,68 @@ __EH_FRAME_BEGIN__:
- jsr $26,__do_frame_setup
- .align 3
-
-- #
-- # Invoke our destructors in order.
-- #
-+/*
-+ * Invoke our destructors in order.
-+ */
-
- .data
-
-- # Support recursive calls to exit.
-+/* Support recursive calls to exit. */
- $ptr: .quad __DTOR_LIST__
-
-+/* A globally unique widget for c++ local destructors to hang off.
-+
-+ This has a unique value in every dso; in the main program its
-+ value is zero. The object should be protected. This means the
-+ instance in any dso or the main program is not used in any other
-+ dso. The dynamic linker takes care of this. */
-+
-+ .global __dso_handle
-+ .type __dso_handle,@object
-+ .size __dso_handle,8
-+#ifdef SHARED
-+.section .data
-+ .align 3
-+__dso_handle:
-+ .quad __dso_handle
-+#else
-+.section .bss
-+ .align 3
-+__dso_handle:
-+ .zero 8
-+#endif
-+#ifdef HAVE_GAS_HIDDEN
-+ .hidden __dso_handle
-+#endif
-+
- .text
-
- .align 3
- .ent __do_global_dtors_aux
-
- __do_global_dtors_aux:
-+ ldgp $29,0($27)
- lda $30,-16($30)
- .frame $30,16,$26,0
- stq $9,8($30)
- stq $26,0($30)
- .mask 0x4000200,-16
-- .prologue 0
-+ .prologue 1
-
-+#ifdef SHARED
-+ /* Do c++ local destructors. */
-+ lda $1,__cxa_finalize
-+ beq $1,2f
-+ lda $16,__dso_handle
-+ jsr $26,__cxa_finalize
-+ ldgp $29,0($26)
-+2:
-+#endif
- lda $9,$ptr
- br 1f
- 0: stq $1,0($9)
- jsr $26,($27)
-+ ldgp $29,0($26)
- 1: ldq $1,0($9)
- ldq $27,8($1)
- addq $1,8,$1
-@@ -126,11 +166,11 @@ __do_global_dtors_aux:
-
- .end __do_global_dtors_aux
-
-- #
-- # Install our frame info.
-- #
-+/*
-+ * Install our frame info.
-+ */
-
-- # ??? How can we rationally keep this size correct?
-+/* ??? How can we rationally keep this size correct? */
-
- .section .bss
- .type $object,@object
-@@ -163,9 +203,9 @@ __do_frame_setup:
-
- .end __do_frame_setup
-
-- #
-- # Remove our frame info.
-- #
-+/*
-+ * Remove our frame info.
-+ */
-
- .align 3
- .ent __do_frame_takedown
-@@ -190,3 +230,6 @@ __do_frame_takedown:
-
- .weak __register_frame_info
- .weak __deregister_frame_info
-+#ifdef SHARED
-+.weak __cxa_finalize
-+#endif
---- gcc-2.95.x/gcc/config/alpha/t-crtbe.jj Wed Dec 16 22:01:05 1998
-+++ gcc-2.95.x/gcc/config/alpha/t-crtbe Mon Aug 13 11:08:08 2001
-@@ -3,7 +3,13 @@ T = disable
-
- # Assemble startup files.
- crtbegin.o: $(srcdir)/config/alpha/crtbegin.asm $(GCC_PASSES)
-- $(GCC_FOR_TARGET) -c -o crtbegin.o -x assembler $(srcdir)/config/alpha/crtbegin.asm
-+ $(GCC_FOR_TARGET) -c -o crtbegin.o -x assembler-with-cpp $(srcdir)/config/alpha/crtbegin.asm
-
- crtend.o: $(srcdir)/config/alpha/crtend.asm $(GCC_PASSES)
-- $(GCC_FOR_TARGET) -c -o crtend.o -x assembler $(srcdir)/config/alpha/crtend.asm
-+ $(GCC_FOR_TARGET) -c -o crtend.o -x assembler $(srcdir)/config/alpha/crtend.asm
-+
-+crtbeginS.o: $(srcdir)/config/alpha/crtbegin.asm $(GCC_PASSES)
-+ $(GCC_FOR_TARGET) -DSHARED -c -o crtbeginS.o -x assembler-with-cpp -I. $(srcdir)/config/alpha/crtbegin.asm
-+
-+crtendS.o: $(srcdir)/config/alpha/crtend.asm $(GCC_PASSES)
-+ $(GCC_FOR_TARGET) -c -o crtendS.o -x assembler -I. $(srcdir)/config/alpha/crtend.asm
---- gcc-2.95.x/gcc/config/alpha/elf.h.jj Mon Jun 21 22:15:10 1999
-+++ gcc-2.95.x/gcc/config/alpha/elf.h Mon Aug 13 11:09:13 2001
-@@ -513,7 +513,7 @@ do { \
- #define STARTFILE_SPEC \
- "%{!shared: \
- %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
-- crti.o%s crtbegin.o%s"
-+ crti.o%s %{shared:crtbeginS.o%s}%{!shared:crtbegin.o%s}"
-
- /* Provide a ENDFILE_SPEC appropriate for ELF. Here we tack on the
- magical crtend.o file which provides part of the support for
-@@ -522,7 +522,7 @@ do { \
-
- #undef ENDFILE_SPEC
- #define ENDFILE_SPEC \
-- "crtend.o%s crtn.o%s"
-+ "%{shared:crtendS.o%s}%{!shared:crtend.o%s} crtn.o%s"
-
- /* We support #pragma. */
- #define HANDLE_SYSV_PRAGMA
---- gcc-2.95.x/gcc/crtstuff.c 2001/04/03 10:34:32 1.18.4.1
-+++ gcc-2.95.x/gcc/crtstuff.c 2001/08/09 06:56:33
-@@ -55,6 +55,7 @@ Boston, MA 02111-1307, USA. */
- #include "defaults.h"
- #include <stddef.h>
- #include "frame.h"
-+#include "auto-host.h"
-
- /* We do not want to add the weak attribute to the declarations of these
- routines in frame.h because that will cause the definition of these
-@@ -134,7 +135,29 @@ typedef void (*func_ptr) (void);
- #ifdef INIT_SECTION_ASM_OP
-
- #ifdef OBJECT_FORMAT_ELF
-+/* Declare the __dso_handle variable. It should have a unique value
-+ in every shared-object; in a main program its value is zero. The
-+ object should in any case be protected. This means the instance
-+ in one DSO or the main program is not used in another object. The
-+ dynamic linker takes care of this. */
-+
-+/* XXX Ideally the following should be implemented using
-+ __attribute__ ((__visibility__ ("hidden")))
-+ but the __attribute__ support is not yet there. */
-+#ifdef HAVE_GAS_HIDDEN
-+asm (".hidden\t__dso_handle");
-+#endif
-+
-+#ifdef CRTSTUFFS_O
-+void *__dso_handle = &__dso_handle;
-+#else
-+void *__dso_handle = 0;
-+#endif
-
-+/* The __cxa_finalize function may not be available so we use only a
-+ weak declaration. */
-+extern void __cxa_finalize (void *) TARGET_ATTRIBUTE_WEAK;
-+
- /* Run all the global destructors on exit from the program. */
-
- /* Some systems place the number of pointers in the first word of the
-@@ -164,6 +187,11 @@ __do_global_dtors_aux (void)
-
- if (completed)
- return;
-+
-+#ifdef CRTSTUFFS_O
-+ if (__cxa_finalize)
-+ __cxa_finalize (__dso_handle);
-+#endif
-
- while (*p)
- {
---- gcc-2.95.x/gcc/configure.in.jj Wed Oct 13 09:58:02 1999
-+++ gcc-2.95.x/gcc/configure.in Mon Aug 13 11:11:39 2001
-@@ -608,7 +608,7 @@ changequote([,])dnl
- tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
- target_cpu_default="MASK_GAS"
- tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
-- extra_parts="crtbegin.o crtend.o"
-+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
- xmake_file=none
- gas=yes gnu_ld=yes
- if test x$enable_threads = xyes; then
-@@ -619,7 +619,7 @@ changequote([,])dnl
- tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
- target_cpu_default="MASK_GAS"
- tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
-- extra_parts="crtbegin.o crtend.o"
-+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
- xmake_file=none
- gas=yes gnu_ld=yes
- if test x$enable_threads = xyes; then
-@@ -630,7 +630,7 @@ changequote([,])dnl
- tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
- target_cpu_default="MASK_GAS"
- tmake_file="alpha/t-crtbe alpha/t-ieee"
-- extra_parts="crtbegin.o crtend.o"
-+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
- xmake_file=none
- gas=yes gnu_ld=yes
- ;;
-@@ -4052,6 +4052,21 @@ EOF
- rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
- fi
- AC_MSG_RESULT($gcc_cv_as_subsections)
-+
-+AC_MSG_CHECKING(assembler hidden support)
-+gcc_cv_as_hidden=
-+if test x$gcc_cv_as != x; then
-+ # Check if we have .hidden
-+ echo " .hidden foobar" > conftest.s
-+ echo "foobar:" >> conftest.s
-+ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
-+ AC_DEFINE(HAVE_GAS_HIDDEN, 1,
-+ [Define if your assembler supports .hidden.])
-+ gcc_cv_as_hidden="yes"
-+ fi
-+ rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
-+fi
-+AC_MSG_RESULT($gcc_cv_as_hidden)
-
- AC_MSG_CHECKING(assembler instructions)
- gcc_cv_as_instructions=
---- gcc-2.95.x/gcc/config.in.jj Mon Oct 25 10:02:08 1999
-+++ gcc-2.95.x/gcc/config.in Wed Jun 13 12:45:56 2001
-2 the beginning of your section */
- #undef HAVE_GAS_SUBSECTION_ORDERING
-
-+/* Define if your assembler supports .hidden. */
-+#undef HAVE_GAS_HIDDEN
-+
- /* Define if your assembler uses the old HImode fild and fist notation. */
- #undef HAVE_GAS_FILDS_FISTS
diff --git a/2.95.3/gentoo/README.history b/2.95.3/gentoo/README.history
index a45bbcc..ee78095 100644
--- a/2.95.3/gentoo/README.history
+++ b/2.95.3/gentoo/README.history
@@ -1,3 +1,6 @@
+2 TODO
+ - 10_alpha_new-atexit.patch
+
1.5 3 Sep 2018
+ 44_all_gcc-texi.patch
+ 45_all_libexec-gcc-as.patch
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/gcc-patches:master commit in: 2.95.3/gentoo/
@ 2020-04-12 9:20 Sergei Trofimovich
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Trofimovich @ 2020-04-12 9:20 UTC (permalink / raw
To: gentoo-commits
commit: 2b35dd2549877fd650ce2af38a0e5072219a9361
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 12 09:19:42 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Apr 12 09:19:42 2020 +0000
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=2b35dd25
2.95.3: path branch as abandoned
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
2.95.3/gentoo/README.history | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/2.95.3/gentoo/README.history b/2.95.3/gentoo/README.history
index ee78095..e3e0f42 100644
--- a/2.95.3/gentoo/README.history
+++ b/2.95.3/gentoo/README.history
@@ -1,4 +1,4 @@
-2 TODO
+2 Abandoned
- 10_alpha_new-atexit.patch
1.5 3 Sep 2018
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-04-12 9:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-21 22:16 [gentoo-commits] proj/gcc-patches:master commit in: 2.95.3/gentoo/ Sergei Trofimovich
-- strict thread matches above, loose matches on Subject: below --
2020-04-12 9:20 Sergei Trofimovich
2018-09-03 22:02 Sergei Trofimovich
2018-09-02 23:43 Sergei Trofimovich
2018-09-02 23:33 Sergei Trofimovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox