Summary: | Incorrect warning: will never be executed | ||
---|---|---|---|
Product: | gcc | Reporter: | Tony Finch <dot> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | dot, gcc-bugs |
Priority: | P3 | ||
Version: | 4.2.1 | ||
Target Milestone: | --- | ||
Host: | i386-undermydesk-freebsd | Target: | i386-undermydesk-freebsd |
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Tony Finch
2008-04-18 16:05:30 UTC
The warning looks fine for me, it is saying selog_on(&sel) will never be executed. Sorry I mean: [t.c : 24] D.1191_5 = sel.enabled; [t.c : 24] iftmp.1_6 = D.1191_5 != 42; As far as I can tell this warning is correct. The code is executed when the function selog_on() returns true. The warning is also inconsistent, which also points to an analysis bug. This warning depends on optimizations so what you do expect with the inconsistency. So in one case, we decide that i can alias sel which is obviously not true but what do you expect from aliasing. |