This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to report tree-ssa bugs (and an example)
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gerald at pfeifer dot com (Gerald Pfeifer)
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 24 Aug 2003 18:01:34 -0400 (EDT)
- Subject: Re: How to report tree-ssa bugs (and an example)
This is already reported as bug 12039, this is caused by an interaction between unit-at-a-timee and the tree-ssa stuff, it happens also in c.
Thanks,
Andrew Pinski
>
> Where/how should we best report tree-ssa branch bugs?
>
> And in case you're interested, please find one below, which triggers
> if and only of -O3 is used; that seems to be an inliner issue?
>
> Gerald
>
> % cat x.cc
> enum WCType { WCfree, WCnone };
>
> static bool checkWC(WCType requested) {
> static WCType state=WCfree;
>
> if (state==WCfree)
> state=requested;
>
> return state==requested;
> }
>
> int main() {
> checkWC(WCnone);
> return checkWC(WCnone);
> }
>
> % gccvs x.cc -O3
> /var/tmp//ccR8295b.o: In function `main':
> /var/tmp//ccR8295b.o(.text+0x7): undefined reference to `checkWC(WCType)::state'
> /var/tmp//ccR8295b.o(.text+0x14): undefined reference to `checkWC(WCType)::state'
> collect2: ld returned 1 exit status
>
>