This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to report tree-ssa bugs (and an example)
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 24 Aug 2003 23:17:50 +0200 (CEST)
- Subject: How to report tree-ssa bugs (and an example)
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