[Bug c/11334] New: some warnings missed if optimization not on
lduncan at pillardata dot com
gcc-bugzilla@gcc.gnu.org
Thu Jun 26 17:37:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11334
Summary: some warnings missed if optimization not on
Product: gcc
Version: 3.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lduncan at pillardata dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: SPARC, Solaris 5.9
GCC target triplet: same
The following function gets a warning if and only if the '-O" (optimization) optin is supplied to gcc
void *some_funct(int a)
{
void *vaddr;
return (vaddr + n);
}
More information about the Gcc-bugs
mailing list