]> gcc.gnu.org Git - gcc.git/commitdiff
rs6000.c (print_operand): Call mark_decl_referenced before assemble_name.
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 20 May 2004 16:25:20 +0000 (16:25 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 20 May 2004 16:25:20 +0000 (09:25 -0700)
2004-05-20  Andrew Pinski  <pinskia@physics.uc.edu>

        * rs6000.c (print_operand) <case 'z'>: Call
        mark_decl_referenced before assemble_name.

From-SVN: r82061

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 7583f313c25cd8a6d1c12565d65438dcf71e23b0..82e5d0a9510ebeb5177872699ad3de870679f567 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * rs6000.c (print_operand) <case 'z'>: Call
+       mark_decl_referenced before assemble_name.
+
 2004-05-20  Zack Weinberg  <zack@codesourcery.com>
 
        * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
index 4dfabe1b00b9c540873cb0797d5ebdaebcea4cfc..e58398b97f346b3571e09cbf8e35a4ab9f9d164a 100644 (file)
@@ -9682,6 +9682,10 @@ print_operand (FILE *file, rtx x, int code)
       if (GET_CODE (x) != SYMBOL_REF)
        abort ();
 
+      /* Mark the decl as referenced so that cgraph will output the function.  */
+      if (SYMBOL_REF_DECL (x))
+        mark_decl_referenced (SYMBOL_REF_DECL (x));
+
       if (XSTR (x, 0)[0] != '.')
        {
          switch (DEFAULT_ABI)
This page took 0.094329 seconds and 5 git commands to generate.