Summary: | GCC over-optimisating extern | ||
---|---|---|---|
Product: | gcc | Reporter: | Omar Kilani <ok> |
Component: | c | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P2 | ||
Version: | 3.3.2 | ||
Target Milestone: | --- | ||
See Also: | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112826 | ||
Host: | i586-trustix-linux | Target: | i586-trustix-linux |
Build: | i586-trustix-linux | Known to work: | |
Known to fail: | Last reconfirmed: |
Description
Omar Kilani
2004-02-11 05:47:57 UTC
This is not over optimizing as return_pcap_debug is an function inside a function which is a gcc extension but the function is not used as all (aka like a static funciton), so gcc is removing the function. Note that at -O2 (because of -funit-at-a-time) gcc 3.4.0 will remove the function also. |