This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11334] New: some warnings missed if optimization not on
- From: "lduncan at pillardata dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2003 17:37:37 -0000
- Subject: [Bug c/11334] New: some warnings missed if optimization not on
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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);
}