http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31490
--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-27 14:09:17 UTC --- Created attachment 23140 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23140 gcc46-pr31490.patch Incomplete patch. pr31490-2.c testcase works (and thus the original one too), but what still doesn't work is pr31490-3.c, as we call get_variable_section only from assemble_variable at which point we immediately switch_to_section and thus it is too late for the second variable to change section flags.