rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P instead of mark_decl_referenced.
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 5 Jun 2013 15:19:15 +0000 (15:19 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 5 Jun 2013 15:19:15 +0000 (11:19 -0400)
        * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
        instead of mark_decl_referenced.

From-SVN: r199698

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

index 154f0f07625ec1ebc63abe81cf38fdfab4113993..6082b510d36fd8ef62a746d516db349a05018179 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
+
+       * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
+       instead of mark_decl_referenced.
+
 2013-06-05  Jan Hubicka  <jh@suse.cz>
 
        * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
index 527dbc55b503a8a6cf625e93c74590c31fa9c2ed..d7fae3d8d1dac5257fd823342d3cba515905f5cc 100644 (file)
@@ -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)