public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/8730: [3.2/3.3 regression] Cannot compile C function inside other C function
@ 2002-12-24 12:26 Janis Johnson
0 siblings, 0 replies; only message in thread
From: Janis Johnson @ 2002-12-24 12:26 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/8730; it has been noted by GNATS.
From: Janis Johnson <janis187@us.ibm.com>
To: info@ilghiz.com, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
ilgis@num.uni-sb.de, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c/8730: [3.2/3.3 regression] Cannot compile C function inside other
C function
Date: Tue, 24 Dec 2002 12:26:10 -0800
The regression reported in PR c/8730 showed up starting
with this large patch from long, long ago:
Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* fold-const.c (negate_expr, associate_trees, extract_muldiv):
New.
(split_tree): Completely rework to make more general.
(make_range, fold): Call negate_expr.
(fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
(fold, associate): Call new split_tree and associate_trees.
(fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call
extract_muldiv.
Here's a small test case that causes the compiler to ICE when compiled
on i686-linux with the mainline:
-------------------
void foo() {
void *bar (int i, int A[1][i]) { return A[0]; };
};
-------------------
The behavior changes with the same patch for the submitter's
test case.
Output from the the mainline:
8730.c: In function `bar':
8730.c:2: internal compiler error: in expand_expr, at expr.c:6823
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8730
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-24 20:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-24 12:26 c/8730: [3.2/3.3 regression] Cannot compile C function inside other C function Janis Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).