Fix pcrel too far problems due to upping CACHE_LOG on SH2:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Thu, 3 Jun 1999 21:48:04 +0000 (21:48 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Thu, 3 Jun 1999 21:48:04 +0000 (22:48 +0100)
        * sh.c (barrier_align): Don't return early for normal branch/barrier
        when optimizing for SH2.

From-SVN: r27333

gcc/ChangeLog
gcc/config/sh/sh.c

index 702f88d..edfcda2 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jun  4 05:42:23 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
+
+       * sh.c (barrier_align): Don't return early for normal branch/barrier
+       when optimizing for SH2.
+
 Thu Jun  3 22:27:50 1999  Robert Lipe  <robertlipe@usa.net>
 
        * i386/udk.h (LINK_SPEC): Correct linker search path for 
index feca33e..6181783 100644 (file)
@@ -2712,7 +2712,7 @@ barrier_align (barrier_or_label)
   if (TARGET_SMALLCODE)
     return 0;
 
-  if (! TARGET_SH3 || ! optimize)
+  if (! TARGET_SH2 || ! optimize)
     return CACHE_LOG;
 
   /* When fixing up pcloads, a constant table might be inserted just before