[Bug middle-end/13888] make gnattools fails on sfn_scan.adb with -O2
charlet at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 27 16:51:00 GMT 2004
------- Additional Comments From charlet at gcc dot gnu dot org 2004-01-27 16:51 -------
Looking more closely at this change, I can see that your change is
actually showing a latent bug (the code is dereferencing deallocated
memory):
(gdb) p e->flags
$2 = -1347440721
(gdb) p/x -1347440721
$3 = 0xafafafaf
Of course that makes this latent bug more apparent (and even makes it
a regression...)
BTW, don't you need to update the comment in your change:
<<
/* Now align the size to a multiple of 4. */
- size = align_four (size);
+ size = align_eight (size);
>>
The size is now aligned to a multiple of 8, not 4, right ?
Arno
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13888
More information about the Gcc-bugs
mailing list