This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/41751] bad code with arrays as local vars and no optimization
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Oct 2009 10:20:25 -0000
- Subject: [Bug target/41751] bad code with arrays as local vars and no optimization
- References: <bug-41751-17247@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jakub at gcc dot gnu dot org 2009-10-19 10:20 -------
You haven't provide a small self-contained executable testcase, so you need to
explain in detail what do you think is wrong on the generated assembly. I
don't see anything wrong on it, especially not in the diff between r_main-1.s
and r_main-3.s. Far more probable is a code bug, you are saving address of an
automatic array into a global pointer, not resetting it afterwards when the
function is left, so chances are you are refering to a variable later on even
after it went out of scope.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41751