(override_options) Make the default alignment 4 for 486
authorStan Cox <coxs@gnu.org>
Tue, 18 Mar 1997 22:02:36 +0000 (22:02 +0000)
committerStan Cox <coxs@gnu.org>
Tue, 18 Mar 1997 22:02:36 +0000 (22:02 +0000)
From-SVN: r13739

gcc/config/i386/i386.c

index ff48a3d7a4fb2519db854120160275f4e812dc22..93480fc8dd09ce25cc0d98c33461abaead152fba 100644 (file)
@@ -279,7 +279,10 @@ override_options ()
        fatal ("-mregparm=%d is not between 0 and %d", i386_regparm, REGPARM_MAX);
     }
 
-  def_align = (TARGET_386) ? 2 : 4;
+  /* The 486 suffers more from non-aligned cache line fills, and the larger code
+     size results in a larger cache foot-print and more misses.  The 486 has a
+     16 byte cache line, pentium and pentiumpro have a 32 byte cache line */
+  def_align = (TARGET_486) ? 4 : 2;
 
   /* Validate -malign-loops= value, or provide default */
   if (i386_align_loops_string)