Commit 44ec7e59 by Catherine Moore Committed by Catherine Moore

sh.h (MAX_OFILE_ALIGNMENT): Define.

 
        * config/sh/sh.h (MAX_OFILE_ALIGNMENT): Define.
        * varasm.c (assemble_variable): Augment alignment warning.

From-SVN: r20173
parent 3d9bd4e3
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
......
......@@ -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 \
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment