diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-05-31 16:32:03 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-05-31 16:32:03 -0700 |
commit | 9ee6230c9391d397644433b4b5498d37ebf1fa43 (patch) | |
tree | ef1d33a4ebd05946e3e0d8cb4ab72d7748d20d41 | |
parent | e648e0e387177402640c8a512c709b3021b057ee (diff) | |
download | gcc-9ee6230c9391d397644433b4b5498d37ebf1fa43.zip gcc-9ee6230c9391d397644433b4b5498d37ebf1fa43.tar.gz gcc-9ee6230c9391d397644433b4b5498d37ebf1fa43.tar.bz2 |
(LIB_SPEC): Don't link in /usr/lib/bb_link.o with -a.
(CONDITIONAL_REGISTER_USAGE): When -a, make %g1 and %g2 fixed.
From-SVN: r7401
-rw-r--r-- | gcc/config/sparc/sparc.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index d88fa9f..81ace20 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -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) |