commit:     c8305c9bdf09abe3e2f89783fe62f2e4049468fa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  3 22:55:47 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  3 22:55:47 2024 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c8305c9b

14.0.0: add 76_all_ppc_PR112868-no-checking-many.patch

Bug: https://gcc.gnu.org/PR112868
Bug: https://gcc.gnu.org/PR113652 (sort of)
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../76_all_ppc_PR112868-no-checking-many.patch     | 42 ++++++++++++++++++++++
 14.0.0/gentoo/README.history                       |  4 +++
 2 files changed, 46 insertions(+)

diff --git a/14.0.0/gentoo/76_all_ppc_PR112868-no-checking-many.patch 
b/14.0.0/gentoo/76_all_ppc_PR112868-no-checking-many.patch
new file mode 100644
index 0000000..dc9f5e5
--- /dev/null
+++ b/14.0.0/gentoo/76_all_ppc_PR112868-no-checking-many.patch
@@ -0,0 +1,42 @@
+https://gcc.gnu.org/PR112868 (specifically 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112868#c8)
+(see also https://gcc.gnu.org/PR113652)
+
+--- a/gcc/config/rs6000/rs6000.h
++++ b/gcc/config/rs6000/rs6000.h
+@@ -94,12 +94,6 @@
+   "%{mdejagnu-*: %<mdejagnu-*}", \
+    SUBTARGET_DRIVER_SELF_SPECS
+ 
+-#if CHECKING_P
+-#define ASM_OPT_ANY ""
+-#else
+-#define ASM_OPT_ANY " -many"
+-#endif
+-
+ /* Common ASM definitions used by ASM_SPEC among the various targets for
+    handling -mcpu=xxx switches.  There is a parallel list in driver-rs6000.cc 
to
+    provide the default assembler options if the user uses -mcpu=native, so if
+@@ -166,8 +160,7 @@
+           mvsx: -mpower7; \
+           mpowerpc64: -mppc64;: %(asm_default)}; \
+   :%eMissing -mcpu option in ASM_CPU_SPEC?\n} \
+-%{mvsx: -mvsx -maltivec; maltivec: -maltivec}" \
+-ASM_OPT_ANY
++%{mvsx: -mvsx -maltivec; maltivec: -maltivec}"
+ 
+ #define CPP_DEFAULT_SPEC ""
+ 
+--- a/gcc/testsuite/lib/target-supports.exp
++++ b/gcc/testsuite/lib/target-supports.exp
+@@ -7285,7 +7285,7 @@ proc check_effective_target_powerpc_ppu_ok { } {
+ #endif
+               return 0;
+           }
+-      }]
++      } "-mcpu=cell"]
+     } else {
+       return 0
+     }
+
+
+

diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history
index dd7c933..66c059f 100644
--- a/14.0.0/gentoo/README.history
+++ b/14.0.0/gentoo/README.history
@@ -1,3 +1,7 @@
+24     3 Mar 2024
+
+       + 76_all_ppc_PR112868-no-checking-many.patch
+
 23     19 Feb 2024
 
        - 75_all_PR113734_middle_end_update_vector_loop_bounds.patch

Reply via email to