This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: MAX_OFILE_ALIGNMENT
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Danny Smith <dannysmith at clear dot net dot nz>
- Cc: gcc-patches at gcc dot gnu dot org, Dorit Naishlos <dorit at il dot ibm dot com>
- Date: Tue, 17 Aug 2004 22:24:30 -0400
- Subject: Re: MAX_OFILE_ALIGNMENT
- References: <000901c484c7$8595c580$056d65da@DANNY>
Zack approved the following patch on IRC and I am applying now
that a quickstrap completed successfully.
* varasm.c (MAX_OFILE_ALIGNMENT): Move to...
* defaults.h (MAX_OFILE_ALIGNMENT): here.
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.440
diff -c -p -r1.440 varasm.c
*** varasm.c 16 Aug 2004 20:54:39 -0000 1.440
--- varasm.c 18 Aug 2004 02:22:56 -0000
*************** assemble_variable (tree decl, int top_le
*** 1534,1542 ****
/* 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 "
--- 1534,1539 ----
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
retrieving revision 1.146
diff -c -p -r1.146 defaults.h
*** defaults.h 17 Aug 2004 16:17:03 -0000 1.146
--- defaults.h 18 Aug 2004 02:22:56 -0000
*************** You Lose! You must define PREFERRED_DEB
*** 807,810 ****
--- 807,815 ----
#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 */