[Bug target/26463] -O2, -O3, -Os segment fault due to bad array index on ARM
mikpe at csd dot uu dot se
gcc-bugzilla@gcc.gnu.org
Sat Mar 4 22:50:00 GMT 2006
------- Comment #1 from mikpe at csd dot uu dot se 2006-03-04 22:50 -------
Created an attachment (id=10970)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10970&action=view)
Test case for PR26463
I can confirm this bug with both gcc-3.3.6 and gcc-3.4.5,
on armv5b-linux. I've added a simple test case that instead
of crashing due to the stack being clobbered, prints an
error message and exits with 1 if the bug occurred.
This is a very nasty error. A fix, even if only to disable
some broken code in gcc, would be very welcome.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26463
More information about the Gcc-bugs
mailing list