1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/gcc/g5-cell-not-power7.patch
5 # Copyright (C) 2020 - 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Glibc uses .machine to determine assembly optimizations to use, and G5 as well
18 as cell, and even power4 -maltivec resulted in power7. Mask _ALTIVEC away
19 as the .machine selection already did for GFX and GPOPT.
21 Signed-of-by: René Rebe <rene@exactcode.de>
23 --- gcc-11.1.0-RC-20210423/gcc/config/rs6000/rs6000.c.vanilla 2021-04-25 22:57:16.964223106 +0200
24 +++ gcc-11.1.0-RC-20210423/gcc/config/rs6000/rs6000.c 2021-04-25 22:57:27.193223841 +0200
26 HOST_WIDE_INT flags = rs6000_isa_flags;
28 /* Disable the flags that should never influence the .machine selection. */
29 - flags &= ~(OPTION_MASK_PPC_GFXOPT | OPTION_MASK_PPC_GPOPT | OPTION_MASK_ISEL);
30 + flags &= ~(OPTION_MASK_PPC_GFXOPT | OPTION_MASK_PPC_GPOPT | OPTION_MASK_ALTIVEC | OPTION_MASK_ISEL);
32 if ((flags & (ISA_3_1_MASKS_SERVER & ~ISA_3_0_MASKS_SERVER)) != 0)