From patchwork Sat Jun 2 01:52:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [google/main] Copy TREE_STATIC() property from id in dwarf2asm.c (issue 6273045) Date: Fri, 01 Jun 2012 15:52:28 -0000 From: asharif@chromium.org X-Patchwork-Id: 162397 Message-Id: <20cf30334f1ba85ba104c1738d3a@google.com> To: davidxl@google.com, xur@google.com, bjanakiraman@google.com Cc: gcc-patches@gcc.gnu.org, reply@codereview-hr.appspotmail.com Reviewers: davidxl, xur, bjanakiraman_google.com, Message: A trunk version of this patch is already under review. I'm creating this CL in order to get this patch in before the branch date. Please review this at http://codereview.appspot.com/6273045/ Affected files: M gcc/ChangeLog.google-main M gcc/dwarf2asm.c Index: gcc/dwarf2asm.c =================================================================== --- gcc/dwarf2asm.c (revision 188129) +++ gcc/dwarf2asm.c (working copy) @@ -907,6 +907,7 @@ DECL_IGNORED_P (decl) = 1; DECL_INITIAL (decl) = decl; TREE_READONLY (decl) = 1; + TREE_STATIC (decl) = TREE_STATIC(id); if (TREE_PUBLIC (id)) { @@ -915,8 +916,6 @@ if (USE_LINKONCE_INDIRECT) DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN; } - else - TREE_STATIC (decl) = 1; sym_ref = gen_rtx_SYMBOL_REF (Pmode, sym); assemble_variable (decl, 1, 1, 1); Index: gcc/ChangeLog.google-main =================================================================== --- gcc/ChangeLog.google-main (revision 188129) +++ gcc/ChangeLog.google-main (working copy) @@ -1,3 +1,8 @@ +2012-06-01 Ahmad Sharif + + * gcc/dwarf2asm.c: (dw2_output_indirect_constant_1) copy the TREE_STATIC + attribute from id to decl. + 2012-05-30 Dehao Chen * predict.c (predict_extra_loop_exit): New function to predict for