Commit Graph

1 Commits

Author SHA1 Message Date
Kareem Khazem 21d0610cf4 [goto-cc] Add support for ARM-enabling flags
goto-cc now accepts the following flags:

-mthumb{,-interwork}
-mcpu=PROC
-march=PROC
-mtune=PROC

where PROC is one of the (many) processors that GCC accepts for those
three arguments.

Supplying one or more of these flags causes goto-cc to switch to the
mode of that architecture, i.e. by changing output code format, sizes of
pointers and integers, etc. Thus, passing (for example) -mcpu=cortex-a15
is enough to make goto-cc generate ARM-32 code; there is no longer any
need to pass -m32.
2017-05-23 14:23:43 +01:00