This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Subject gcc testsuite testcase gcc.c-torture/compile/20010327-1.c
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: "Andrew Pinski" <pinskia at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 31 Mar 2008 10:12:04 +0200
- Subject: Re: Subject gcc testsuite testcase gcc.c-torture/compile/20010327-1.c
"Andrew Pinski" <pinskia@gmail.com> wrote on 31.03.2008 07:13:02:
> On Fri, Mar 28, 2008 at 7:17 AM, Kai Tietz <Kai.Tietz@onevision.com>
wrote:
> > Hello,
> >
> > This testcase seems to be broken, because it will fail everytime for
the
> > static variable x. gcc detects, that this static variable has no
reference
> > and will produce a warning.
>
> gcc.c-torture/compile is compiled with -w so the warnings are ignored.
I see, the reason for the failure on x86_64-pc-mingw32 is that gcc
reports, that the initializer element is not constant. For some reason it
assumes, that the address of the extern variable has no fixed address.
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.