This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33295] ICE in fold_const.c (fold_convert) when reordering USE statements
- From: "pinskia at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2007 19:08:21 -0000
- Subject: [Bug fortran/33295] ICE in fold_const.c (fold_convert) when reordering USE statements
- References: <bug-33295-14773@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gmail dot com 2007-09-04 19:08 -------
Subject: Re: ICE in fold_const.c (fold_convert) when reordering USE statements
On 4 Sep 2007 19:03:39 -0000, ubizjak at gmail dot com
<gcc-bugzilla@gcc.gnu.org> wrote:
> and c never generates RECORD_TYPEs
Yes it does. Structs in C are done as RECORD_TYPEs.
This code is just plainly wrong really. fold_convert should not
handle RECORD_TYPEs. And if does, it is not going to help with
optimizations anyways. The Fortran front-end has to better keep track
of modules and types inside modules to get this correct.
Thanks,
Andrew Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33295