ARM enum sizes diagnostic

Mark Shinwell shinwell@codesourcery.com
Thu Feb 15 11:45:00 GMT 2007


The diagnostic seen below should be marked as a warning rather
than an error; it is possible for the diagnostic to arise when compiling
with GCC and -fshort-enums in a situation where the values of such
short enumerations cannot escape the compilation unit.  It is in
fact already treated as a warning rather than an error as seen below.

OK to apply?

Mark

--


2007-02-15  Mark Shinwell  <shinwell@codesourcery.com>

         bfd/
         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Upon discovery
         of incompatible EABI attributes for the sizes of enumerations,
         diagnose "Warning" not "ERROR".


--- elf32-arm.c 29 Jan 2007 16:29:21 -0000      1.104
+++ elf32-arm.c 15 Feb 2007 11:37:26 -0000
@@ -7201,7 +7201,7 @@ elf32_arm_merge_eabi_attributes (bfd *ib
                        && out_attr[i].i != in_attr[i].i)
                 {
                   _bfd_error_handler
-                   (_("ERROR: %B: Conflicting enum sizes"), ibfd);
+                   (_("Warning: %B: Conflicting enum sizes"), ibfd);
                 }
             }
           break;



More information about the Binutils mailing list