This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ARM enum sizes diagnostic
- From: Mark Shinwell <shinwell at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Thu, 15 Feb 2007 11:44:08 +0000
- Subject: ARM enum sizes diagnostic
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;