[PATCH] Fix some tests that require no-short-enums
Ian Bolton
ian.bolton@arm.com
Mon Nov 22 17:43:00 GMT 2010
> > The following two test cases were failing bare-metal on ARM, but
> > working on Linux:
> >
> > gcc.c-torture/compile/pr39845.c
> > c-c++-common/pr44832.c
> >
> > Both failed to compile: "error: width of 'code' exceeds its type".
> >
> > The fix was to make them compile with -fno-short-enums, as the
> > tests implicitly require this (it's the default on Linux), but it
> > needs to be explicitly requested on "short_enums" targets.
> >
> > The fixed tests now pass bare-metal (and Linux).
> >
> > OK for trunk?
> >
>
> Looks sensible to me.
>
> OK to commit this if no testsuite maintainer objects within 24 hours.
I have now committed this to trunk.
Cheers,
Ian
More information about the Gcc-patches
mailing list