[Bug fortran/25392] ICEs with -ff2c

2007-02-27 Thread pinskia at gcc dot gnu dot org


--- Comment #12 from pinskia at gcc dot gnu dot org  2007-02-27 15:28 
---
*** Bug 30979 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||tim dot bevan at 1spatial
   ||dot com


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



[Bug fortran/25392] ICEs with -ff2c

2007-02-27 Thread tobi at gcc dot gnu dot org


--- Comment #13 from tobi at gcc dot gnu dot org  2007-02-27 16:10 ---
Should I backport this to 4.1?  I guess it makes sense since this can be
considered a regressions WRT g77.


-- 


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



[Bug fortran/25392] ICEs with -ff2c

2007-02-27 Thread jakub at gcc dot gnu dot org


--- Comment #14 from jakub at gcc dot gnu dot org  2007-02-27 16:21 ---
Created an attachment (id=13120)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13120action=view)
gcc41-pr25392.patch

Yes, I think so.  Attached is what we have in Red Hat gcc 4.1.x tree for a few
days already (and have been bootstrapped/regtested several times).


-- 


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



[Bug fortran/25392] ICEs with -ff2c

2007-02-27 Thread tobi at gcc dot gnu dot org


--- Comment #15 from tobi at gcc dot gnu dot org  2007-02-27 19:20 ---
Subject: Bug 25392

Author: tobi
Date: Tue Feb 27 19:20:21 2007
New Revision: 122382

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122382
Log:
2006-12-29  Tobias Schlueter  [EMAIL PROTECTED]

PR fortran/25392
* trans-types.c (gfc_sym_type): Don't return early for functions.
Remove special handling for -ff2c.
(gfc_get_function_type): Add special handling for -ff2c.
* trans-decl.c (gfc_create_function_decl): Fix comment formatting.
(gfc_get_fake_result_decl): Make sure we get the right type for
functions.
(gfc_generate_function_code): Convert type of result variable to
type of function.

* gfortran.dg/f2c_8.f90: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/f2c_8.f90
  - copied unchanged from r120099,
trunk/gcc/testsuite/gfortran.dg/f2c_8.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/trans-decl.c
branches/gcc-4_1-branch/gcc/fortran/trans-stmt.c
branches/gcc-4_1-branch/gcc/fortran/trans-types.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/25392] ICEs with -ff2c

2007-02-27 Thread tobi at gcc dot gnu dot org


--- Comment #16 from tobi at gcc dot gnu dot org  2007-02-27 19:21 ---
The patch has moved into its new home on the 4.1 branch.


-- 

tobi at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|4.2.0   |4.1.3


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



[Bug fortran/25392] ICEs with -ff2c

2006-12-29 Thread tobi at gcc dot gnu dot org


--- Comment #10 from tobi at gcc dot gnu dot org  2006-12-29 18:54 ---
Subject: Bug 25392

Author: tobi
Date: Fri Dec 29 18:54:41 2006
New Revision: 120274

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120274
Log:
Backport from trunk:
fortran/
PR fortran/25392
* trans-stmt.c (gfc_trans_return): Fix comment formatting.
* trans-types.c (gfc_sym_type): Don't return early for functions.
Remove special handling for -ff2c.
(gfc_get_function_type): Add special handling for -ff2c.
* trans-decl.c (gfc_create_function_decl): Fix comment formatting.
(gfc_get_fake_result_decl): Make sure we get the right type for
functions.
(gfc_generate_function_code): Convert type of result variable to
type of function.
testsuite/
PR fortran/25392
* gfortran.dg/f2c_8.f90: New test.

Added:
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/f2c_8.f90
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/trans-decl.c
branches/gcc-4_2-branch/gcc/fortran/trans-stmt.c
branches/gcc-4_2-branch/gcc/fortran/trans-types.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/25392] ICEs with -ff2c

2006-12-29 Thread tobi at gcc dot gnu dot org


--- Comment #11 from tobi at gcc dot gnu dot org  2006-12-29 18:56 ---
Fixed in 4.2 and trunk.


-- 

tobi at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.2.0


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



[Bug fortran/25392] ICEs with -ff2c

2006-12-20 Thread tobi at gcc dot gnu dot org


--- Comment #8 from tobi at gcc dot gnu dot org  2006-12-21 03:05 ---
Subject: Bug 25392

Author: tobi
Date: Thu Dec 21 03:04:43 2006
New Revision: 120099

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120099
Log:
PR fortran/25392
fortran/
* trans-stmt.c (gfc_trans_return): Fix comment formatting.
* trans-types.c (gfc_sym_type): Don't return early for functions.
Remove special handling for -ff2c.
(gfc_get_function_type): Add special handling for -ff2c.
* trans-decl.c (gfc_create_function_decl): Fix comment formatting.
(gfc_get_fake_result_decl): Make sure we get the right type for
functions.
(gfc_generate_function_code): Convert type of result variable to
type of function.
testsuite/
* gfortran.dg/f2c_8.f90: New test.

Added:
trunk/gcc/testsuite/gfortran.dg/f2c_8.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-decl.c
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/fortran/trans-types.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/25392] ICEs with -ff2c

2006-12-20 Thread tobi at gcc dot gnu dot org


--- Comment #9 from tobi at gcc dot gnu dot org  2006-12-21 03:17 ---
Keeping this open, until the fix is also in 4.2.


-- 


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



[Bug fortran/25392] ICEs with -ff2c

2006-12-13 Thread tobi at gcc dot gnu dot org


--- Comment #7 from tobi at gcc dot gnu dot org  2006-12-14 01:18 ---
I have a patch, but it adds another ugly layer of code, I'll try to clean this
mess up and then submit.


-- 


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



[Bug fortran/25392] ICEs with -ff2c

2006-11-23 Thread tobi at gcc dot gnu dot org


-- 

tobi at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |tobi at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2006-10-21 21:32:45 |2006-11-23 20:52:22
   date||


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



[Bug fortran/25392] ICEs with -ff2c

2006-07-04 Thread rguenth at gcc dot gnu dot org


--- Comment #6 from rguenth at gcc dot gnu dot org  2006-07-04 12:18 ---
Of course it is - see my analysis in PR26440 - but it is a mess.


-- 


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



[Bug fortran/25392] ICEs with -ff2c

2006-06-30 Thread fxcoudert at gcc dot gnu dot org


--- Comment #5 from fxcoudert at gcc dot gnu dot org  2006-06-30 08:54 
---
Reduced testcase:
  real function foo ()
if (foo .gt. 0) call abort
  end

I'm almost sure it's a type mismatch problem. The above code generates the
following tree dump:

foo ()
{
  real8 __result_foo;

  if (__result_foo  0.0)
{
  _gfortran_abort ();
}
  else
{
  (void) 0;
}
  return __result_foo;
}

but I think foo is not declared a real8 but simply as real4. If I change the
Fortran code to explicitly declare foo as real*8 function foo () then the ICE
disappears.


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

   Last reconfirmed|2006-05-11 11:36:23 |2006-06-30 08:54:46
   date||


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



[Bug fortran/25392] ICEs with -ff2c

2006-05-11 Thread fxcoudert at gcc dot gnu dot org


--- Comment #4 from fxcoudert at gcc dot gnu dot org  2006-05-11 11:36 
---
File entry-4.f90 from the gfortran testsuite also ICEs with -ff2c:

$ gfortran -c entry_4.f90 -ff2c
src/entry_4.f90: In function ‘f2’:
src/entry_4.f90:12: internal compiler error: in make_decl_rtl, at varasm.c:1002


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||fxcoudert at gcc dot gnu dot
   ||org
   Last reconfirmed|2006-01-27 20:44:10 |2006-05-11 11:36:23
   date||


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



[Bug fortran/25392] ICEs with -ff2c

2006-02-24 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2006-02-24 17:40 ---
*** Bug 26440 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rguenth at gcc dot gnu dot
   ||org


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



[Bug fortran/25392] ICEs with -ff2c

2006-01-01 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2006-01-02 03:42 ---
  D.784 = __result_foo  1.8e+2f;
  D.786 = __result_foo - 3.6e+2f;
  D.788 = __result_foo = -1.8e+2f;
  D.790 = __result_foo + 3.6e+2f;


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

OtherBugsDependingO||19292
  nThis||
   Last reconfirmed|2005-12-30 06:48:32 |2006-01-02 03:42:50
   date||


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




[Bug fortran/25392] ICEs with -ff2c

2005-12-29 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2005-12-30 06:48 ---
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||ice-on-valid-code
   Last reconfirmed|-00-00 00:00:00 |2005-12-30 06:48:32
   date||


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