This is an archive of the discontinued LLVM Phabricator instance.

[Thumb] Emit Thumb code when the triple arch is "thumb"
Needs ReviewPublic

Authored by olista01 on Oct 24 2014, 3:51 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Clang currently accepts "thumb" and "thumbeb" as architectures in the triple, but emits ARM code unless -mthumb is also used.

Diff Detail

Event Timeline

olista01 updated this revision to Diff 15399.Oct 24 2014, 3:51 AM
olista01 retitled this revision from to [Thumb] Emit Thumb code when the triple arch is "thumb".
olista01 updated this object.
olista01 edited the test plan for this revision. (Show Details)
olista01 set the repository for this revision to rL LLVM.
olista01 added a subscriber: Unknown Object (MLST).

Hi Oliver,

I think this is the wrong place to fix it. I've tried that, and I realised that the problem is that the arch in triple gets forgotten by getting the default CPU, then getting the default arch for that CPU, resetting the arch to arm. If you can stop that nonsense, your problem will be fixed.

cheers,
--renato