public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25392]  New: ICEs with -ff2c
@ 2005-12-13 14:06 jakub at gcc dot gnu dot org
  2005-12-30  6:48 ` [Bug fortran/25392] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-12-13 14:06 UTC (permalink / raw)
  To: gcc-bugs

real function foo (x, y)
  real x, y
  foo = y - x
  do while (foo .gt. 180.)
    foo = foo - 360.
  enddo
  do while (foo .le. -180.)
    foo = foo + 360.
  enddo
end

ICEs in various places depending on the exact -O level and target.
The problem is that __result_foo variable is given type not corresponding
to its kind which leads e.g. on i?86 -m32 to emit_move_insn ICE
(trying to copy a SFmode constant to DFmode var).

I'd say __result_foo should still use SFmode type, only return type of the
function should be DFmode and in the RETURN_EXPR widen it.


-- 
           Summary: ICEs with -ff2c
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-02-27 19:21 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-13 14:06 [Bug fortran/25392] New: ICEs with -ff2c jakub at gcc dot gnu dot org
2005-12-30  6:48 ` [Bug fortran/25392] " pinskia at gcc dot gnu dot org
2006-01-02  3:42 ` pinskia at gcc dot gnu dot org
2006-02-24 17:42 ` pinskia at gcc dot gnu dot org
2006-05-11 11:37 ` fxcoudert at gcc dot gnu dot org
2006-06-30 10:08 ` fxcoudert at gcc dot gnu dot org
2006-07-04 12:18 ` rguenth at gcc dot gnu dot org
2006-11-23 20:52 ` tobi at gcc dot gnu dot org
2006-12-14  1:19 ` tobi at gcc dot gnu dot org
2006-12-21  3:05 ` tobi at gcc dot gnu dot org
2006-12-21  3:17 ` tobi at gcc dot gnu dot org
2006-12-29 18:55 ` tobi at gcc dot gnu dot org
2006-12-29 18:56 ` tobi at gcc dot gnu dot org
2007-02-27 15:28 ` pinskia at gcc dot gnu dot org
2007-02-27 16:11 ` tobi at gcc dot gnu dot org
2007-02-27 16:22 ` jakub at gcc dot gnu dot org
2007-02-27 19:20 ` tobi at gcc dot gnu dot org
2007-02-27 19:21 ` tobi at gcc dot gnu dot org

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).