This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/11334] New: some warnings missed if optimization not on


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);
    }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]