This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/10806: Illegal instruction calling function in shared object on AIX
- From: sdowning at fame dot com (Stuart F. Downing)
- To: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 16 May 2003 11:19:32 -0400
- Subject: Re: target/10806: Illegal instruction calling function in shared object on AIX
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10806
I have simplified the test case further.
Replace mod.c with the following
static char static_thing = 0;
void fun ()
{
}
The symptom goes away if
* the initializer is removed
* the base type of static_thing is changed to int (but NOT if changed
to short)
* the declaration for static_thing is moved after fun
Seems like an alignment problem, but I wasn't able to find any
switches controlling alignment or initializers to make the symptom go
away.
--
Stuart Downing