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 fortran/33295] ICE in fold_const.c (fold_convert) when reordering USE statements



------- Comment #6 from pault at gcc dot gnu dot org  2008-03-21 08:02 -------
(In reply to comment #5)
> 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
> 

Andrew,

I agree with you wholeheartedly on this.  I missed this PR somehow.  I thought
that I had cleared up all these nasties with derived types and modules.  I'll
take a look tonight.

Cheers

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-09-03 20:07:11         |2008-03-21 08:02:59
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33295


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