This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/150: Re: dead code elim && div-by-0 warnings
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/150: Re: dead code elim && div-by-0 warnings
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 28 Mar 2000 10:58:37 +0200
- References: <38E00A33.50564DDA@uow.edu.au>
- Resent-Cc: gcc-prs at gcc dot gnu dot org, andrewm at uow dot edu dot au
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
>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: