From 8f8a20576a873e0ce7be126ce8008c347dd49a4a Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 5 Jun 2013 15:19:15 +0000 Subject: [PATCH] rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P instead of mark_decl_referenced. * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P instead of mark_decl_referenced. From-SVN: r199698 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 154f0f07625..6082b510d36 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-06-05 David Edelsohn + + * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P + instead of mark_decl_referenced. + 2013-06-05 Jan Hubicka * cgraph.c (cgraph_remove_node): Clear forced_by_abi. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 527dbc55b50..d7fae3d8d1d 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -15677,7 +15677,7 @@ print_operand (FILE *file, rtx x, int code) /* Mark the decl as referenced so that cgraph will output the function. */ if (SYMBOL_REF_DECL (x)) - mark_decl_referenced (SYMBOL_REF_DECL (x)); + DECL_PRESERVE_P (SYMBOL_REF_DECL (x)) = 1; /* For macho, check to see if we need a stub. */ if (TARGET_MACHO) -- 2.30.2