On Tue, Apr 4, 2017 at 8:43 AM, Bernhard Reutner-Fischer <rep.dot....@gmail.com> wrote: > On 3 April 2017 13:32:30 CEST, Sebastian Huber > <sebastian.hu...@embedded-brains.de> wrote: >>Allow targets to define the default for the short enums option. > > Does this work nowadays? > About 10 years ago I did this for some arm and had to force TREE_CODE at al > to 16 bit manually, IIRC. > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34205
I don't see why it won't work in cross-compilers and on Linux. the bug report that you allude to seems to suggest that bootstrap was broken with -fshort-enums i.e. -fshort-enums on a host. I don't see how that's going to be possible without major work in the software but for cross-compilers targeting embedded platforms I see no reason why -fshort-enums won't work. regards Ramana