How to report tree-ssa bugs (and an example)
Gerald Pfeifer
gerald@pfeifer.com
Mon Aug 25 02:05:00 GMT 2003
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
More information about the Gcc
mailing list