diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-10-21 23:14:54 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-10-21 23:14:54 +0100 |
commit | 807060a220c9d72a090c3282b7fa4f07aff584fc (patch) | |
tree | 98822efae0b96d7cbcbfbce9053dffe15723469a /3.3.6 | |
parent | 2.95.3: drop arch-conditional patches (diff) | |
download | gcc-patches-807060a220c9d72a090c3282b7fa4f07aff584fc.tar.gz gcc-patches-807060a220c9d72a090c3282b7fa4f07aff584fc.tar.bz2 gcc-patches-807060a220c9d72a090c3282b7fa4f07aff584fc.zip |
3.3.6: drop arch-conditional patches
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '3.3.6')
-rw-r--r-- | 3.3.6/gentoo/01_ppc_gcc33-multi32-hack.patch | 68 | ||||
-rw-r--r-- | 3.3.6/gentoo/01_sparc_gcc33-multi32-hack.patch | 68 | ||||
-rw-r--r-- | 3.3.6/gentoo/09_arm_gcc32-arm-reload1-fix.patch | 21 | ||||
-rw-r--r-- | 3.3.6/gentoo/README.history | 5 |
4 files changed, 5 insertions, 157 deletions
diff --git a/3.3.6/gentoo/01_ppc_gcc33-multi32-hack.patch b/3.3.6/gentoo/01_ppc_gcc33-multi32-hack.patch deleted file mode 100644 index 61a26cb..0000000 --- a/3.3.6/gentoo/01_ppc_gcc33-multi32-hack.patch +++ /dev/null @@ -1,68 +0,0 @@ -This is an optimization hack which should only be present -in a sparc 32bit driver of the compiler compiled with -host/target/build sparc64-redhat-linux --with-cpu=v7. -As long long HOST_WIDE_INT slows things down, we can have in -addition to the sparc64-*/3.2/{cc1,cc1plus} -sparc-*/3.2/{cc1,cc1plus} binaries which are suitable for compiling --m32 code only, but use long HOST_WIDE_INT. - ---- gcc/gcc.c.jj 2003-05-15 18:06:04.000000000 -0400 -+++ gcc/gcc.c 2003-05-20 10:31:15.000000000 -0400 -@@ -3003,6 +3003,8 @@ process_command (argc, argv) - int have_c = 0; - int have_o = 0; - int lang_n_infiles = 0; -+ int m64 = 0; -+ int used_B = 0; - #ifdef MODIFY_TARGET_NAME - int is_modify_target_name; - int j; -@@ -3493,6 +3495,7 @@ warranty; not even for MERCHANTABILITY o - PREFIX_PRIORITY_B_OPT, 0, &warn_B, 0); - add_prefix (&include_prefixes, concat (value, "include", NULL), - NULL, PREFIX_PRIORITY_B_OPT, 0, NULL, 0); -+ used_B = 1; - n_switches++; - } - break; -@@ -3555,6 +3558,13 @@ warranty; not even for MERCHANTABILITY o - #endif - goto normal_switch; - -+ /* HACK START */ -+ case 'm': -+ if (p[1] == '6' && p[2] == '4') -+ m64 = 1; -+ /* FALLTHROUGH */ -+ /* HACK END */ -+ - default: - normal_switch: - -@@ -3621,6 +3631,26 @@ warranty; not even for MERCHANTABILITY o - /* Use 2 as fourth arg meaning try just the machine as a suffix, - as well as trying the machine and the version. */ - #ifndef OS2 -+ /* HACK START */ -+ if (!m64 && !used_B && !strncmp (spec_machine, "sparc64-", 8)) -+ { -+ const char *sparc32_exec_prefix = -+ concat (standard_exec_prefix, "sparc-", spec_machine + 8, -+ dir_separator_str, spec_version, dir_separator_str, NULL); -+ add_prefix (&exec_prefixes, sparc32_exec_prefix, "GCC", -+ PREFIX_PRIORITY_LAST, 0, warn_std_ptr, 0); -+ } -+ /* HACK END */ -+ /* HACK START */ -+ if (!m64 && !used_B && !strncmp (spec_machine, "ppc64-", 6)) -+ { -+ const char *ppc32_exec_prefix = -+ concat (standard_exec_prefix, "ppc-", spec_machine + 6, -+ dir_separator_str, spec_version, dir_separator_str, NULL); -+ add_prefix (&exec_prefixes, ppc32_exec_prefix, "GCC", -+ PREFIX_PRIORITY_LAST, 0, warn_std_ptr, 0); -+ } -+ /* HACK END */ - add_prefix (&exec_prefixes, standard_exec_prefix, "GCC", - PREFIX_PRIORITY_LAST, 1, warn_std_ptr, 0); - add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS", diff --git a/3.3.6/gentoo/01_sparc_gcc33-multi32-hack.patch b/3.3.6/gentoo/01_sparc_gcc33-multi32-hack.patch deleted file mode 100644 index 61a26cb..0000000 --- a/3.3.6/gentoo/01_sparc_gcc33-multi32-hack.patch +++ /dev/null @@ -1,68 +0,0 @@ -This is an optimization hack which should only be present -in a sparc 32bit driver of the compiler compiled with -host/target/build sparc64-redhat-linux --with-cpu=v7. -As long long HOST_WIDE_INT slows things down, we can have in -addition to the sparc64-*/3.2/{cc1,cc1plus} -sparc-*/3.2/{cc1,cc1plus} binaries which are suitable for compiling --m32 code only, but use long HOST_WIDE_INT. - ---- gcc/gcc.c.jj 2003-05-15 18:06:04.000000000 -0400 -+++ gcc/gcc.c 2003-05-20 10:31:15.000000000 -0400 -@@ -3003,6 +3003,8 @@ process_command (argc, argv) - int have_c = 0; - int have_o = 0; - int lang_n_infiles = 0; -+ int m64 = 0; -+ int used_B = 0; - #ifdef MODIFY_TARGET_NAME - int is_modify_target_name; - int j; -@@ -3493,6 +3495,7 @@ warranty; not even for MERCHANTABILITY o - PREFIX_PRIORITY_B_OPT, 0, &warn_B, 0); - add_prefix (&include_prefixes, concat (value, "include", NULL), - NULL, PREFIX_PRIORITY_B_OPT, 0, NULL, 0); -+ used_B = 1; - n_switches++; - } - break; -@@ -3555,6 +3558,13 @@ warranty; not even for MERCHANTABILITY o - #endif - goto normal_switch; - -+ /* HACK START */ -+ case 'm': -+ if (p[1] == '6' && p[2] == '4') -+ m64 = 1; -+ /* FALLTHROUGH */ -+ /* HACK END */ -+ - default: - normal_switch: - -@@ -3621,6 +3631,26 @@ warranty; not even for MERCHANTABILITY o - /* Use 2 as fourth arg meaning try just the machine as a suffix, - as well as trying the machine and the version. */ - #ifndef OS2 -+ /* HACK START */ -+ if (!m64 && !used_B && !strncmp (spec_machine, "sparc64-", 8)) -+ { -+ const char *sparc32_exec_prefix = -+ concat (standard_exec_prefix, "sparc-", spec_machine + 8, -+ dir_separator_str, spec_version, dir_separator_str, NULL); -+ add_prefix (&exec_prefixes, sparc32_exec_prefix, "GCC", -+ PREFIX_PRIORITY_LAST, 0, warn_std_ptr, 0); -+ } -+ /* HACK END */ -+ /* HACK START */ -+ if (!m64 && !used_B && !strncmp (spec_machine, "ppc64-", 6)) -+ { -+ const char *ppc32_exec_prefix = -+ concat (standard_exec_prefix, "ppc-", spec_machine + 6, -+ dir_separator_str, spec_version, dir_separator_str, NULL); -+ add_prefix (&exec_prefixes, ppc32_exec_prefix, "GCC", -+ PREFIX_PRIORITY_LAST, 0, warn_std_ptr, 0); -+ } -+ /* HACK END */ - add_prefix (&exec_prefixes, standard_exec_prefix, "GCC", - PREFIX_PRIORITY_LAST, 1, warn_std_ptr, 0); - add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS", diff --git a/3.3.6/gentoo/09_arm_gcc32-arm-reload1-fix.patch b/3.3.6/gentoo/09_arm_gcc32-arm-reload1-fix.patch deleted file mode 100644 index 0d5588e..0000000 --- a/3.3.6/gentoo/09_arm_gcc32-arm-reload1-fix.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- gcc-3.2.1/gcc/reload1.c.orig 2002-10-10 09:40:20.000000000 -0600 -+++ gcc-3.2.1/gcc/reload1.c 2003-01-30 12:15:05.000000000 -0700 -@@ -8674,7 +8674,9 @@ - ... (MEM (PLUS (REGZ) (REGY)))... . - - First, check that we have (set (REGX) (PLUS (REGX) (REGY))) -- and that we know all uses of REGX before it dies. */ -+ and that we know all uses of REGX before it dies. -+ Also, explicitly check that REGX != REGY; our life information -+ does not yet show whether REGY changes in this insn. */ - set = single_set (insn); - if (set != NULL_RTX - && GET_CODE (SET_DEST (set)) == REG -@@ -8684,6 +8686,7 @@ - && GET_CODE (SET_SRC (set)) == PLUS - && GET_CODE (XEXP (SET_SRC (set), 1)) == REG - && rtx_equal_p (XEXP (SET_SRC (set), 0), SET_DEST (set)) -+ && !rtx_equal_p (XEXP (SET_SRC (set), 1), SET_DEST (set)) - && last_label_ruid < reg_state[REGNO (SET_DEST (set))].use_ruid) - { - rtx reg = SET_DEST (set); diff --git a/3.3.6/gentoo/README.history b/3.3.6/gentoo/README.history index a0da777..4271566 100644 --- a/3.3.6/gentoo/README.history +++ b/3.3.6/gentoo/README.history @@ -1,3 +1,8 @@ +3 TODO + - 01_ppc_gcc33-multi32-hack.patch + - 01_sparc_gcc33-multi32-hack.patch + - 09_arm_gcc32-arm-reload1-fix.patch + 2 06 Jun 2019 + 93_all_gperf-inline.patch + 94_all_flag_jni.patch |