This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MAX_OFILE_ALIGNMENT


	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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]