1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../binutils/i686-nopl.patch.disabled
5 # Copyright (C) 2011 - 2015 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 Despite months of prominent people arguing, this again goes thru half fixed,
20 By default GCC (and glibc Makefiles) do not pass -march= down to the
21 assembler, and -mtune=i686 only let the UNKNOWN march path choose the
22 wrong nopl from the i686 marked PENTIUM_PRO entry, ... I choose to just
23 touch the "march" not selected case, as changing the i686 entry to
24 GENERIC32, or so, may introduce other regressions related to CMOV, et al.
26 - Rene Rebe <rene@exactcode.de>
28 PS: could have just wiped the code, but the #if 0 keeps the patch compact.
30 --- binutils-2.20.51.0.11/gas/config/tc-i386.c.orig 2011-01-13 12:52:38.724377980 +0000
31 +++ binutils-2.20.51.0.11/gas/config/tc-i386.c 2011-01-13 12:50:57.863374773 +0000
32 @@ -1027,15 +1027,18 @@
33 if (fragP->tc_frag_data.isa == PROCESSOR_UNKNOWN)
35 /* PROCESSOR_UNKNOWN means that all ISAs may be used. */
37 switch (cpu_arch_tune)
39 case PROCESSOR_UNKNOWN:
41 /* We use cpu_arch_isa_flags to check if we SHOULD
42 optimize with nops. */
43 if (fragP->tc_frag_data.isa_flags.bitfield.cpunop)
49 case PROCESSOR_PENTIUMPRO:
50 case PROCESSOR_PENTIUM4: