This is the mail archive of the gcc-prs@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]

c/150: Re: dead code elim && div-by-0 warnings



>Number:         150
>Category:       c
>Synopsis:       dead code elim && div-by-0 warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          analyzed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 28 01:06:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Morton <andrewm@uow.edu.au>
>Release:        2.95.2
>Organization:
>Environment:
>Description:
 Original-Message-ID: <38E00A33.50564DDA@uow.edu.au>
 Date: Tue, 28 Mar 2000 01:26:11 +0000

 Couple of things..

 [MvL: First thing in a different PR]

 Also,

 int foo(int i)
 {
	 return i / 0;
 }

 I'd suggest that a warning be generated for this.  (Bearing in mind that
 '0' could be the result of a complex macro expansion and not obvious).

 Thanks.

 -- 
 -akpm-

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

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