This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix debug/14328


Mark Mitchell <mark@codesourcery.com> writes:

| This patch fixes a problem with the representation of enumeration
| constants emitted by GCC.  In particular, GCC failed to recognize that
| all enumeration constants are signed from the point of view of DWARF
| 2.  As a result, we tried to emit short representations of unsigned
| constants, but the debugger interpreted those as having negative
| values.
| 
| Tested on i686-pc-linux-gnu by compiling the test case in the PR,
| applied as obvious on the 3.4 branch and on the mainline.

Applied to gcc-3_3-branch too.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]