Dash:
[t2.git] / package / develop / llvm / riscv-generic.patch
blob1984bd85e073a3b8aef62e259eeb2c2cdf311e33
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/llvm/riscv-generic.patch
3 # Copyright (C) 2021 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- llvm-13.0.0.src/lib/Target/RISCV/RISCVSubtarget.cpp.vanilla 2021-11-06 15:27:08.958401534 +0100
15 +++ llvm-13.0.0.src/lib/Target/RISCV/RISCVSubtarget.cpp 2021-11-06 15:27:12.261401705 +0100
16 @@ -55,9 +55,11 @@
17 bool Is64Bit = TT.isArch64Bit();
18 - if (CPU.empty())
19 + if (CPU.empty() || CPU == "generic")
20 CPU = Is64Bit ? "generic-rv64" : "generic-rv32";
21 +#if 0
22 if (CPU == "generic")
23 report_fatal_error(Twine("CPU 'generic' is not supported. Use ") +
24 (Is64Bit ? "generic-rv64" : "generic-rv32"));
25 +#endif
27 if (TuneCPU.empty())
28 TuneCPU = CPU;