From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25459 invoked by alias); 16 May 2003 15:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25408 invoked by uid 71); 16 May 2003 15:26:01 -0000 Date: Fri, 16 May 2003 15:26:00 -0000 Message-ID: <20030516152601.25407.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: sdowning@fame.com (Stuart F. Downing) Subject: Re: target/10806: Illegal instruction calling function in shared object on AIX Reply-To: sdowning@fame.com (Stuart F. Downing) X-SW-Source: 2003-05/txt/msg01851.txt.bz2 List-Id: The following reply was made to PR target/10806; it has been noted by GNATS. From: sdowning@fame.com (Stuart F. Downing) To: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: target/10806: Illegal instruction calling function in shared object on AIX Date: 16 May 2003 11:19:32 -0400 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