]> gcc.gnu.org Git - gcc.git/commitdiff
re PR target/15720 (function marked inline which is called directly isn't emitted)
authorAndrew Pinski <pinskia@physics.uc.edu>
Sat, 29 May 2004 02:55:23 +0000 (02:55 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 29 May 2004 02:55:23 +0000 (19:55 -0700)
2005-05-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/15720
        * config/darwin.c (machopic_indirect_call_target): Copy
        the SYMBOL_REF_DECL from the original RTX for the new
        stub RTX.

From-SVN: r82414

gcc/ChangeLog
gcc/config/darwin.c

index 90bc6c3315407d9c6a35504e58274adac0c3f86c..36b025cf845159db3de1c0a27f58ab0c48b1e8a1 100644 (file)
@@ -1,3 +1,10 @@
+2005-05-28  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR target/15720
+       * config/darwin.c (machopic_indirect_call_target): Copy
+       the SYMBOL_REF_DECL from the original RTX for the new
+       stub RTX.
+
 2004-05-28  DJ Delorie  <dj@redhat.com>
 
        * stor-layout.c (place_field): Revert erroneous commit.
index 89e11ded2e65f35442e2760298d6c40e781d2993..7a89615453a8fd86110e30dc496f282718fab82f 100644 (file)
@@ -583,8 +583,10 @@ machopic_indirect_call_target (rtx target)
       if (!machopic_name_defined_p (name))
        {
          const char *stub_name = machopic_stub_name (name);
+         tree decl = SYMBOL_REF_DECL (XEXP (target, 0));
 
          XEXP (target, 0) = gen_rtx_SYMBOL_REF (mode, stub_name);
+         SYMBOL_REF_DECL (XEXP (target, 0)) = decl;
          RTX_UNCHANGING_P (target) = 1;
        }
     }
This page took 0.076188 seconds and 5 git commands to generate.