------- Comment #7 from jakub at gcc dot gnu dot org 2010-07-12 15:23 ------- Created an attachment (id=21185) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21185&action=view) gcc46-pr44901.patch
Untested fix. Expansion depends on the order of vars in cfun->local_decls, see e.g. expand_used_vars. The removal of vars from local_decls sometimes depends on whether compiling with -g or -g0, and the unordered removal changes the relative ordering between vars that are going to get pseudos/memory assigned, which means -g/-g0 affect (resp. might affect) code generation, which is undesirable. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44901