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 target/41751] bad code with arrays as local vars and no optimization



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


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