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: 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
> 
> 


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