[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Binutils 2.18 + GCC 4.2.3
Andreas Schwab wrote:
The warning is coming from the compiler. If you tell the compiler that
the biggest alignment supported by the object file format is 2 then it
will not allow bigger alignments. You need to configure
MAX_OFILE_ALIGNMENT as appropriate.
I don't think it is necessary to change MAX_OFILE_ALIGNMENT, because
there is:
#define BIGGEST_ALIGNMENT (TARGET_ALIGN_INT ? 32 : 16)
#define MAX_OFILE_ALIGNMENT BIGGEST_ALIGNMENT
However, due to the .align semantics previously discussed, the following
must be used:
In gcc/config/m68k/mint.h:
Remove:
#define TARGET_VTABLE_ENTRY_ALIGN 16
And add :
#undef ALIGN_ASM_OP
#define ALIGN_ASM_OP "\t.balign\t"
##undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
if ((LOG) > 0) \
fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG));
With that, your warning should go out, and everything will be long
aligned (maybe).
--
Vincent Rivière