projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7963e15
)
Fix PR5112, a miscompilation on gcc-4.0.3. Patch by Collin Winter!
author
Jeffrey Yasskin
<jyasskin@google.com>
Tue, 6 Oct 2009 17:25:50 +0000
(17:25 +0000)
committer
Jeffrey Yasskin
<jyasskin@google.com>
Tue, 6 Oct 2009 17:25:50 +0000
(17:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83391
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Triple.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/Triple.cpp
b/lib/Support/Triple.cpp
index fc3b3f7e2f8d4cc99cdd944ce83856021dac627f..804769d04e978f33f65ed5c5051c8ef6474e3907 100644
(file)
--- a/
lib/Support/Triple.cpp
+++ b/
lib/Support/Triple.cpp
@@
-390,7
+390,10
@@
void Triple::setOS(OSType Kind) {
}
void Triple::setArchName(const StringRef &Str) {
- setTriple(Str + "-" + getVendorName() + "-" + getOSAndEnvironmentName());
+ // Work around a miscompilation bug in gcc 4.0.3.
+ Twine a = getVendorName() + "-" + getOSAndEnvironmentName();
+ Twine b = Str + "-" + a;
+ setTriple(b);
}
void Triple::setVendorName(const StringRef &Str) {