Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 1323073010: Use LLVM args to handle -malign-double option (Closed)

Created:
5 years, 3 months ago by Petr Hosek
Modified:
5 years, 3 months ago
Reviewers:
Derek Schuff
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/a/native_client/pnacl-clang.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use LLVM args to handle -malign-double option We previously used CPU features to pass the align-double option from the driver to the frontend, but these passed to backend causing spurious warnings. The implementation now uses LLVM args instead which doesn't have the same side-effect. BUG=none R=dschuff@chromium.org Committed: 605ea9bc25022747e435e57ee7b578e1fc220a63

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Review feedback addressed #

Total comments: 4

Patch Set 3 : Review feedback addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -17 lines) Patch
M include/clang/Basic/TargetInfo.h View 1 chunk +9 lines, -0 lines 0 comments Download
M include/clang/Basic/TargetOptions.h View 1 chunk +6 lines, -0 lines 0 comments Download
M include/clang/Driver/Options.td View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M lib/Basic/Targets.cpp View 1 2 chunks +10 lines, -8 lines 0 comments Download
M lib/Frontend/CompilerInvocation.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M test/Driver/malign-double.c View 1 2 1 chunk +16 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Petr Hosek
5 years, 3 months ago (2015-09-09 00:42:02 UTC) #1
Derek Schuff
https://chromiumcodereview.appspot.com/1323073010/diff/20001/lib/Basic/Targets.cpp File lib/Basic/Targets.cpp (right): https://chromiumcodereview.appspot.com/1323073010/diff/20001/lib/Basic/Targets.cpp#newcode7305 lib/Basic/Targets.cpp:7305: if (!Target->handleLLVMArgs(Opts->LLVMArgs)) LOCALMOD https://chromiumcodereview.appspot.com/1323073010/diff/20001/test/Driver/malign-double.c File test/Driver/malign-double.c (right): https://chromiumcodereview.appspot.com/1323073010/diff/20001/test/Driver/malign-double.c#newcode6 test/Driver/malign-double.c:6: ...
5 years, 3 months ago (2015-09-09 22:45:56 UTC) #3
Petr Hosek
https://chromiumcodereview.appspot.com/1323073010/diff/20001/lib/Basic/Targets.cpp File lib/Basic/Targets.cpp (right): https://chromiumcodereview.appspot.com/1323073010/diff/20001/lib/Basic/Targets.cpp#newcode7305 lib/Basic/Targets.cpp:7305: if (!Target->handleLLVMArgs(Opts->LLVMArgs)) On 2015/09/09 22:45:56, Derek Schuff wrote: > ...
5 years, 3 months ago (2015-09-09 23:00:24 UTC) #4
Derek Schuff
https://chromiumcodereview.appspot.com/1323073010/diff/40001/lib/Frontend/CompilerInvocation.cpp File lib/Frontend/CompilerInvocation.cpp (right): https://chromiumcodereview.appspot.com/1323073010/diff/40001/lib/Frontend/CompilerInvocation.cpp#newcode1829 lib/Frontend/CompilerInvocation.cpp:1829: Opts.LLVMArgs = Args.getAllArgValues(OPT_mllvm); LOCALMOD here too https://chromiumcodereview.appspot.com/1323073010/diff/40001/test/Driver/malign-double.c File test/Driver/malign-double.c ...
5 years, 3 months ago (2015-09-09 23:02:28 UTC) #5
Petr Hosek
https://chromiumcodereview.appspot.com/1323073010/diff/40001/lib/Frontend/CompilerInvocation.cpp File lib/Frontend/CompilerInvocation.cpp (right): https://chromiumcodereview.appspot.com/1323073010/diff/40001/lib/Frontend/CompilerInvocation.cpp#newcode1829 lib/Frontend/CompilerInvocation.cpp:1829: Opts.LLVMArgs = Args.getAllArgValues(OPT_mllvm); On 2015/09/09 23:02:28, Derek Schuff wrote: ...
5 years, 3 months ago (2015-09-09 23:45:24 UTC) #6
Derek Schuff
lgtm
5 years, 3 months ago (2015-09-10 16:16:38 UTC) #7
Petr Hosek
5 years, 3 months ago (2015-09-12 20:07:46 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
605ea9bc25022747e435e57ee7b578e1fc220a63 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698