The -fshort-enums option emits a note in the object file that the linker can use to detect mismatches. It does not work for Fortran; the "int-sized enums" attribute is emitted with or without -fshort-enums.
-- Summary: ARM -fshort-enums attribute not emitted for Fortran Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: drow at gcc dot gnu dot org GCC target triplet: arm-none-linux-gnueabi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36031