[MPlayer-dev-eng] struct alignmnent
Alban Bedel
albeu at free.fr
Fri Apr 4 16:39:22 CEST 2003
Hi Jindrich Makovicka,
on Fri, 04 Apr 2003 15:19:09 +0200 you wrote:
> Does anybody (Pontscho?) know, what _exactly_ should cause the struct
> alignment mismatches, except -malign-double in Gui/Makefile?
> There are rumors that it's some include file but after removing
> -malign-double, it seems that alignment in Gui and rest of mplayer is
> the same.
>From Gui/Makefile :
OPTIMIZE = $(OPTFLAGS) \
-fexpensive-optimizations -fschedule-insns2 -Wall
ifeq ($(TARGET_ARCH_X86),yes)
OPTIMIZE += -malign-double
endif
So -malign-double is only defined for the Gui (i grep the src it's the
only occurence) so gcc use different alignments for the Gui and the
rest of mplayer. This is a real problem when the gui access structs defined
in the rest of mplayer.
The 1000000000l are for the one who put that in Gui/Makefile ;)
Albeu
More information about the MPlayer-dev-eng
mailing list