aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-05-20 16:25:20 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-05-20 09:25:20 -0700
commit9bf6462a81179f291ba32404cb8ee329f3e6e593 (patch)
tree5102e53c590c03893046db48b1530c3fd3c6e1a7 /gcc
parent30719c65a90de4791db42c7c1b7cc3e17604f828 (diff)
downloadgcc-9bf6462a81179f291ba32404cb8ee329f3e6e593.zip
gcc-9bf6462a81179f291ba32404cb8ee329f3e6e593.tar.gz
gcc-9bf6462a81179f291ba32404cb8ee329f3e6e593.tar.bz2
rs6000.c (print_operand): Call mark_decl_referenced before assemble_name.
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7583f31..82e5d0a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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)
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 4dfabe1..e58398b 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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)