sh.h (MAX_OFILE_ALIGNMENT): Define.
authorCatherine Moore <clm@cygnus.com>
Mon, 1 Jun 1998 14:25:44 +0000 (14:25 +0000)
committerCatherine Moore <clm@gcc.gnu.org>
Mon, 1 Jun 1998 14:25:44 +0000 (10:25 -0400)
        * config/sh/sh.h (MAX_OFILE_ALIGNMENT): Define.
        * varasm.c (assemble_variable): Augment alignment warning.

From-SVN: r20173

gcc/ChangeLog
gcc/config/sh/sh.h
gcc/varasm.c

index fac0310..b0bd9e1 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun  1 03:44:03 1998  Catherine Moore <clm@cygnus.com>
+        * config/sh/sh.h (MAX_OFILE_ALIGNMENT): Define.
+
+        * varasm.c (assemble_variable): Augment alignment warning.
+
 Mon Jun  1 12:14:28 1998  Michael Meissner  <meissner@cygnus.com>
 
        * config/fp-bit.c (_fp{add,div}_parts): Return correct IEEE result
index 5c347fc..a773ea2 100644 (file)
@@ -257,6 +257,10 @@ do {                                                               \
     && (ALIGN) < FASTEST_ALIGNMENT)    \
     ? FASTEST_ALIGNMENT : (ALIGN))
 
+#ifndef MAX_OFILE_ALIGNMENT
+#define MAX_OFILE_ALIGNMENT 128
+#endif
+
 /* Make arrays of chars word-aligned for the same reasons.  */
 #define DATA_ALIGNMENT(TYPE, ALIGN)            \
   (TREE_CODE (TYPE) == ARRAY_TYPE              \
index 9951a50..3a37573 100644 (file)
@@ -1284,7 +1284,8 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
   if (align > MAX_OFILE_ALIGNMENT)
     {
       warning_with_decl (decl,
-         "alignment of `%s' is greater than maximum object file alignment");
+       "alignment of `%s' is greater than maximum object file alignment. Using %d.",
+                    MAX_OFILE_ALIGNMENT/BITS_PER_UNIT);
       align = MAX_OFILE_ALIGNMENT;
     }