This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]