[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] struct alignment problem in glib2
From: |
Henry Kroll |
Subject: |
[Tinycc-devel] struct alignment problem in glib2 |
Date: |
Thu, 25 Nov 2010 12:30:39 -0800 |
I ran into a peculiar struct alignment problem with glib2.26 today
compiling a gtk app with tcc on x86_64. If I compile it with gcc or the
i386 version of tcc it works, but if I do the compilation with tcc,
glib2 generates a bus error.
tcc -g gtktest.c -o gtktest $(pkg-config --cflags --libs gtk+-2.0)
./gtktest
(click the mouse on the image to generate the error)
Program received signal SIGBUS, Bus error.
0x00000039a3033ab0 in type_check_is_value_type_U (value=0x68f1f8,
type=20) at gtype.c:4073
test program attached.
flippy.zip
Description: Zip archive