clang seems to default to z10, should that be bumped to z13?
Bug #1864226 reported by
Dimitri John Ledkov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
bugproxy | ||
llvm-toolchain-10 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
clang seems to default to z10, should that be bumped to z13?
std::string systemz:
if (const Arg *A = Args.getLastArg
llvm::StringRef CPUName = A->getValue();
if (CPUName == "native") {
std::string CPU = llvm::sys:
if (!CPU.empty() && CPU != "generic")
return CPU;
else
return "";
}
return CPUName;
}
return "z10";
}
Unless march was specified, it seems like clang defaults to z10, should that be bumped to z13?
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → bugproxy (bugproxy) |
tags: | added: reverse-proxy-bugzilla s390x |
tags: | added: architecture-s39064 bugnameltc-184033 severity-high targetmilestone-inin1804 |
tags: |
added: targetmilestone-inin2004 removed: targetmilestone-inin1804 |
Changed in ubuntu-z-systems: | |
status: | Triaged → Fix Released |
Changed in ubuntu-z-systems: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
------- Comment From <email address hidden> 2020-02-25 13:14 EDT-------
In general, it would indeed make sense to have the clang package provided by the distro default to the same architecture level as the gcc package.
However, unlike GCC, there doesn't seem to be a way to specify a default architecture level at build time of clang, so I'm not sure how to go about that.
We certainly wouldn't want to change the default in upstream clang source code generally, that might be surprising to other users.
Are you setting default architecture levels in clang on other platforms? How do you do that? I'd be OK with doing the same on Z.