[Bug target/28574] [4.2 regression] switch statement points to unreferenced label at -O2
------- Comment #2 from steven at gcc dot gnu dot org 2006-08-02 19:03 -------
There are a million reasons why labels can disappear in GCC. This happens
because GCC deletes or keeps labels based on ref counting (LABEL_NUSES and
friends) and this is just too fragile.
The way for you to narrow down the bug is this:
1. Compile with -daAP
2. Look in the .s file which instruction references the missing label. There
should be a LABEL_REF with a number.
3. Grep for "code_label.*<number>" in the RTL dumps. The label should at least
appear in the .expand dump.
This will help you find the pass during/after which the label disappears.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28574
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: