http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50018

--- Comment #3 from Mikael Pettersson <mikpe at it dot uu.se> 2011-08-08 
16:57:17 UTC ---
Created attachment 24950
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24950
reduced test case

The test case is simply that a function takes the address of a __thread
variable and passes that to another function:

> cat pr50018.c
/* pr50018.c */

extern void pthread_setspecific(void*);
extern __thread int gomp_tls_data;

void gomp_team_start (void)
{
    pthread_setspecific(&gomp_tls_data);
}
> gcc/xgcc -Bgcc -O -S pr50018.c
pr50018.c: In function 'gomp_team_start':
pr50018.c:8:24: internal compiler error: in fixup_args_size_notes, at
expr.c:3571
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
> gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=gcc/xgcc
Target: m68k-unknown-linux
Configured with: /tmp/gcc-4.7-20110806/configure --target=m68k-unknown-linux
--prefix=/home/mikpe/pkgs/linux-x86/cross-m68k
--with-gmp=/home/mikpe/pkgs/linux-x86/gmp-4.3.2
--with-mpfr=/home/mikpe/pkgs/linux-x86/mpfr-2.4.2
--with-mpc=/home/mikpe/pkgs/linux-x86/mpc-0.8.2 --disable-plugin --disable-lto
--disable-libquadmath --disable-nls --disable-shared --disable-libmudflap
--disable-multilib --enable-threads=posix --enable-checking=release
--enable-languages=c

Reply via email to