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

Issue 1310173005: Support -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

Support -malign-double option While LLVM supports the `-malign-double` option, Clang does not. Passing in `-mllvm -malign-double` cannot be used as a workaround as it will result in different machine description being used by Clang and LLVM. This change adds support for `-malign-double` option directly into Clang and sets the machine description accordingly. BUG=none R=dschuff@chromium.org Committed: 88005a1e1adeff1df374266820b61c6304e2e124

Patch Set 1 #

Patch Set 2 : Add LOCALMOD markers #

Patch Set 3 : Test for -malign-double #

Total comments: 4

Patch Set 4 : Code review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -9 lines) Patch
M include/clang/Driver/Options.td View 1 1 chunk +2 lines, -0 lines 0 comments Download
M lib/Basic/Targets.cpp View 1 7 chunks +45 lines, -9 lines 0 comments Download
M lib/Driver/Tools.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
A test/Driver/malign-double.c View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Petr Hosek
5 years, 3 months ago (2015-09-02 16:46:23 UTC) #2
Derek Schuff
LGTM. can you fix the commit message (it's malign-double) and add some detail to it, ...
5 years, 3 months ago (2015-09-02 20:16:23 UTC) #3
Petr Hosek
Done.
5 years, 3 months ago (2015-09-02 22:16:13 UTC) #5
Derek Schuff
On 2015/09/02 22:16:13, Petr Hosek wrote: > Done. oh wait, add a test, in test/Driver
5 years, 3 months ago (2015-09-02 22:22:16 UTC) #6
Petr Hosek
Test added.
5 years, 3 months ago (2015-09-02 23:49:33 UTC) #7
Derek Schuff
https://codereview.chromium.org/1310173005/diff/60001/test/Driver/malign-double.c File test/Driver/malign-double.c (right): https://codereview.chromium.org/1310173005/diff/60001/test/Driver/malign-double.c#newcode1 test/Driver/malign-double.c:1: // RUN: %clang -### -c -save-temps -malign-double %s \ ...
5 years, 3 months ago (2015-09-03 17:22:05 UTC) #8
Petr Hosek
I have also added a second (negative) test case. https://codereview.chromium.org/1310173005/diff/60001/test/Driver/malign-double.c File test/Driver/malign-double.c (right): https://codereview.chromium.org/1310173005/diff/60001/test/Driver/malign-double.c#newcode1 test/Driver/malign-double.c:1: ...
5 years, 3 months ago (2015-09-03 20:44:02 UTC) #9
Derek Schuff
negative test looks good too, LGTM
5 years, 3 months ago (2015-09-03 21:16:50 UTC) #10
Petr Hosek
5 years, 3 months ago (2015-09-04 18:44:08 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:80001) manually as
88005a1e1adeff1df374266820b61c6304e2e124 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698