This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26463] -O2, -O3, -Os segment fault due to bad array index on ARM
- From: "mikpe at csd dot uu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2006 22:50:25 -0000
- Subject: [Bug target/26463] -O2, -O3, -Os segment fault due to bad array index on ARM
- References: <bug-26463-12265@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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