From 44ec7e59cc237149d055849fd2c15c0b3731a387 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Mon, 1 Jun 1998 14:25:44 +0000 Subject: sh.h (MAX_OFILE_ALIGNMENT): Define. * config/sh/sh.h (MAX_OFILE_ALIGNMENT): Define. * varasm.c (assemble_variable): Augment alignment warning. From-SVN: r20173 --- gcc/ChangeLog | 6 ++++++ gcc/config/sh/sh.h | 4 ++++ gcc/varasm.c | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fac0310..b0bd9e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 1 03:44:03 1998 Catherine Moore + + * config/sh/sh.h (MAX_OFILE_ALIGNMENT): Define. + + * varasm.c (assemble_variable): Augment alignment warning. + Mon Jun 1 12:14:28 1998 Michael Meissner * config/fp-bit.c (_fp{add,div}_parts): Return correct IEEE result diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 5c347fc..a773ea2 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -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 \ diff --git a/gcc/varasm.c b/gcc/varasm.c index 9951a50..3a37573 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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; } -- cgit v1.1