[Bug fortran/22607] Elemental character functions don't work

2005-12-30 Thread eedelman at gcc dot gnu dot org


--- Comment #13 from eedelman at gcc dot gnu dot org  2005-12-30 15:16 
---
Now it should be fixed for all cases.  Re-closing.


-- 

eedelman at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


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



[Bug fortran/22607] Elemental character functions don't work

2005-12-30 Thread eedelman at gcc dot gnu dot org


--- Comment #12 from eedelman at gcc dot gnu dot org  2005-12-30 15:11 
---
Subject: Bug 22607

Author: eedelman
Date: Fri Dec 30 15:11:15 2005
New Revision: 109173

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109173
Log:
fortran/
2005-12-30  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* trans-decl.c(gfc_get_extern_function_decl): Don't set
DECL_IS_PURE (fndecl) = 1 for return-by-reference
functions.

fortran/PR 25396
* interface.c (gfc_extend_expr): Initialize
e->value.function.name to NULL.



testsuite/
2005-12-30  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* gfortran-dg/pure_byref_3.f90: New.

fortran/PR 25396
* gfortran.dg/userdef_operator_1.f90: New.


Added:
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/pure_byref_3.f90
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/userdef_operator_1.f90
Modified:
branches/gcc-4_0-branch/gcc/fortran/ChangeLog
branches/gcc-4_0-branch/gcc/fortran/interface.c
branches/gcc-4_0-branch/gcc/fortran/trans-decl.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/22607] Elemental character functions don't work

2005-12-30 Thread eedelman at gcc dot gnu dot org


--- Comment #11 from eedelman at gcc dot gnu dot org  2005-12-30 15:07 
---
Subject: Bug 22607

Author: eedelman
Date: Fri Dec 30 15:07:48 2005
New Revision: 109172

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109172
Log:
fortran/
2005-12-30  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* trans-decl.c(gfc_get_extern_function_decl): Don't set
DECL_IS_PURE (fndecl) = 1 for return-by-reference
functions.

fortran/PR 25396
* interface.c (gfc_extend_expr): Initialize
e->value.function.name to NULL.



testsuite/
2005-12-30  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* gfortran-dg/pure_byref_3.f90: New.

fortran/PR 25396
* gfortran.dg/userdef_operator_1.f90: New.


Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/pure_byref_3.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/userdef_operator_1.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/interface.c
branches/gcc-4_1-branch/gcc/fortran/trans-decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/22607] Elemental character functions don't work

2005-12-30 Thread eedelman at gcc dot gnu dot org


--- Comment #10 from eedelman at gcc dot gnu dot org  2005-12-30 15:02 
---
Subject: Bug 22607

Author: eedelman
Date: Fri Dec 30 15:02:44 2005
New Revision: 109171

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109171
Log:
fortran/
2005-12-30  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* trans-decl.c(gfc_get_extern_function_decl): Don't set
DECL_IS_PURE (fndecl) = 1 for return-by-reference
functions.

fortran/PR 25396
* interface.c (gfc_extend_expr): Initialize
e->value.function.name to NULL.



testsuite/
2005-12-30  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* gfortran-dg/pure_byref_3.f90: New.

fortran/PR 25396
* gfortran.dg/userdef_operator_1.f90: New.


Added:
trunk/gcc/testsuite/gfortran.dg/pure_byref_3.f90
trunk/gcc/testsuite/gfortran.dg/userdef_operator_1.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/interface.c
trunk/gcc/fortran/trans-decl.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/22607] Elemental character functions don't work

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


--- Comment #9 from eedelman at gcc dot gnu dot org  2005-12-29 22:35 
---
Patch posted here: http://gcc.gnu.org/ml/fortran/2005-12/msg00511.html


-- 


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



[Bug fortran/22607] Elemental character functions don't work

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


--- Comment #8 from eedelman at gcc dot gnu dot org  2005-12-29 20:52 
---
It seems my patch fixed pure by-reference functions only for internal
functions.  Pure by-ref. module functions still doesn't work:

erik:/home/gcc/head/test$ cat pure_byref_3.f90 
module huj_mod
contains
pure function huj()
integer :: huj(3)
huj = (/1, 2, 3/)
end function huj
end module huj_mod

program pure_byref_3
use huj_mod
print *, huj()
end program pure_byref_3
erik:/home/gcc/head/test$ gfortran pure_byref_3.f90 
erik:/home/gcc/head/test$ a.out
 -1080540352 -1209060288 -1209060282


-- 

eedelman at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |


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



[Bug fortran/22607] Elemental character functions don't work

2005-11-10 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|--- |4.0.3


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



[Bug fortran/22607] Elemental character functions don't work

2005-11-10 Thread eedelman at gcc dot gnu dot org


--- Comment #7 from eedelman at gcc dot gnu dot org  2005-11-10 21:51 
---
*** Bug 19766 has been marked as a duplicate of this bug. ***


-- 

eedelman at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||vivekrao4 at yahoo dot com


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



[Bug fortran/22607] Elemental character functions don't work

2005-11-10 Thread eedelman at gcc dot gnu dot org


--- Comment #6 from eedelman at gcc dot gnu dot org  2005-11-10 21:50 
---
Fixed on both 4.1 and 4.0


-- 

eedelman at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/22607] Elemental character functions don't work

2005-11-10 Thread eedelman at gcc dot gnu dot org


--- Comment #5 from eedelman at gcc dot gnu dot org  2005-11-10 21:24 
---
Subject: Bug 22607

Author: eedelman
Date: Thu Nov 10 21:24:12 2005
New Revision: 106751

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106751
Log:
fortran/
2005-11-10  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* trans-decl.c(build_function_decl): Don't set
DECL_IS_PURE (fndecl) = 1 for return-by-reference
functions.

testsuite/
2005-11-10  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* gfortran-dg/pure_byref_1.f90: New.
* gfortran-dg/pure_byref_2.f90: New.



Added:
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/pure_byref_1.f90
branches/gcc-4_0-branch/gcc/testsuite/gfortran.dg/pure_byref_2.f90
Modified:
branches/gcc-4_0-branch/gcc/fortran/ChangeLog
branches/gcc-4_0-branch/gcc/fortran/trans-decl.c


-- 


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



[Bug fortran/22607] Elemental character functions don't work

2005-11-09 Thread eedelman at gcc dot gnu dot org


--- Comment #4 from eedelman at gcc dot gnu dot org  2005-11-09 11:28 
---
Subject: Bug 22607

Author: eedelman
Date: Wed Nov  9 11:27:56 2005
New Revision: 106683

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106683
Log:
fortran/
2005-11-09  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* trans-decl.c(build_function_decl): Don't set
DECL_IS_PURE (fndecl) = 1 for return-by-reference
functions.

testsuite/
2005-11-09  Erik Edelmann  <[EMAIL PROTECTED]>

PR fortran/22607
* gfortran-dg/pure_byref_1.f90: New.
* gfortran-dg/pure_byref_2.f90: New.



Added:
trunk/gcc/testsuite/gfortran.dg/pure_byref_1.f90
trunk/gcc/testsuite/gfortran.dg/pure_byref_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-decl.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/22607] Elemental character functions don't work

2005-11-08 Thread eedelman at gcc dot gnu dot org


--- Comment #3 from eedelman at gcc dot gnu dot org  2005-11-08 22:12 
---
(In reply to comment #2)
> The problem seems to be return-by-reference (e.g. character) functions don't
> mix well with DECL_IS_PURE.  Testing a patch.

Patch here: http://gcc.gnu.org/ml/fortran/2005-11/msg00253.html


-- 


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



[Bug fortran/22607] Elemental character functions don't work

2005-11-08 Thread eedelman at gcc dot gnu dot org


--- Comment #2 from eedelman at gcc dot gnu dot org  2005-11-08 20:43 
---
The problem seems to be return-by-reference (e.g. character) functions don't
mix well with DECL_IS_PURE.  Testing a patch.


-- 


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



[Bug fortran/22607] Elemental character functions don't work

2005-07-22 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-22 
19:15 ---
Confirmed.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-07-22 19:15:34
   date||


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