This is the mail archive of the gcc-bugs@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]

[Bug middle-end/13888] make gnattools fails on sfn_scan.adb with -O2


------- 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


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