I saw this problem initially on 4.5.0 compiler, but the same problem happens on mainline too. In function arraysum in the attached example, the parameter array, which is a pointer to array of
-- Summary: Dwarf information is wrong with optimised code. Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hariharans at picochip dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: picochip-unknown-none http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45299