]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(LIB_SPEC): Don't link in /usr/lib/bb_link.o with -a.
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 31 May 1994 23:32:03 +0000 (16:32 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 31 May 1994 23:32:03 +0000 (16:32 -0700)
(CONDITIONAL_REGISTER_USAGE): When -a, make %g1 and %g2 fixed.

From-SVN: r7401

gcc/config/sparc/sparc.h

index d88fa9fa50e3b51b8e8f67243f9cbf43706ce0aa..81ace20a0ad72851dd19ea03d3ae9d060430ffa4 100644 (file)
@@ -21,8 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* Note that some other tm.h files include this one and then override
    many of the definitions that relate to assembler syntax.  */
 
-#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg} \
-  %{a:/usr/lib/bb_link.o}"
+#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}"
 
 /* Provide required defaults for linker -e and -d switches.  */
 
@@ -389,6 +388,13 @@ do                                                         \
        /* ??? This is a hack to disable leaf functions.  */    \
        global_regs[7] = 1;                                     \
       }                                                                \
+    if (profile_block_flag)                                    \
+      {                                                                \
+       /* %g1 and %g2 must be fixed, because BLOCK_PROFILER    \
+           uses them.  */                                      \
+       fixed_regs[1] = 1;                                      \
+       fixed_regs[2] = 1;                                      \
+      }                                                                \
   }                                                            \
 while (0)