From 07e1528687c09db7d6e1b70a0c908f8679c9615a Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 18 Aug 2004 02:27:18 +0000 Subject: [PATCH] varasm.c (MAX_OFILE_ALIGNMENT): Move ... * varasm.c (MAX_OFILE_ALIGNMENT): Move ... * defaults.h (MAX_OFILE_ALIGNMENT): ... here. From-SVN: r86168 --- gcc/ChangeLog | 5 +++++ gcc/defaults.h | 5 +++++ gcc/varasm.c | 3 --- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dab997443d2..dce9b3877ee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-18 David Edelsohn + + * varasm.c (MAX_OFILE_ALIGNMENT): Move ... + * defaults.h (MAX_OFILE_ALIGNMENT): ... here. + 2004-08-18 Ziemowit Laski * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii" diff --git a/gcc/defaults.h b/gcc/defaults.h index 04be1c9c370..c9a705dab77 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -807,4 +807,9 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! #define REVERSIBLE_CC_MODE(MODE) 0 #endif +/* Biggest alignment supported by the object file format of this machine. */ +#ifndef MAX_OFILE_ALIGNMENT +#define MAX_OFILE_ALIGNMENT BIGGEST_ALIGNMENT +#endif + #endif /* ! GCC_DEFAULTS_H */ diff --git a/gcc/varasm.c b/gcc/varasm.c index 5dbcb228038..98bbb9e3260 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1534,9 +1534,6 @@ assemble_variable (tree decl, int top_level ATTRIBUTE_UNUSED, /* Some object file formats have a maximum alignment which they support. In particular, a.out format supports a maximum alignment of 4. */ -#ifndef MAX_OFILE_ALIGNMENT -#define MAX_OFILE_ALIGNMENT BIGGEST_ALIGNMENT -#endif if (align > MAX_OFILE_ALIGNMENT) { warning ("%Jalignment of '%D' is greater than maximum object " -- 2.30.2