[Bug fortran/37507] Print location in (DE)ALLOCATION errors

2008-09-18 Thread domob at gcc dot gnu dot org


--- Comment #3 from domob at gcc dot gnu dot org  2008-09-18 12:04 ---
Subject: Bug 37507

Author: domob
Date: Thu Sep 18 12:02:50 2008
New Revision: 140451

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140451
Log:
2008-09-18  Daniel Kraft  [EMAIL PROTECTED]

PR fortran/37507
* trans.h (gfc_trans_runtime_error): New method.
(gfc_trans_runtime_error_vararg): New method.
(gfc_allocate_array_with_status): New argument `expr' for
locus/varname.
(gfc_deallocate_array_with_status): Ditto.
* trans-array.h (gfc_array_deallocate): Ditto.
* trans.c (gfc_trans_runtime_error): New method.
(gfc_trans_runtime_error_vararg): New method, moved parts of the code
from gfc_trans_runtime_check here.
(gfc_trans_runtime_error_check): Moved code partly to new method.
(gfc_call_malloc): Fix tab-indentation.
(gfc_allocate_array_with_status): New argument `expr' and call
gfc_trans_runtime_error for error reporting to include locus.
(gfc_deallocate_with_status): Ditto.
* trans-stmt.c (gfc_trans_deallocate): Pass expr as new argument.
* trans-array.c (gfc_array_allocate): Ditto.
(gfc_array_deallocate): New argument `expr', passed on.
(gfc_trans_dealloc_allocated): Pass NULL for expr.
* trans-openmp.c (gfc_omp_clause_default): Ditto.

2008-09-18  Daniel Kraft  [EMAIL PROTECTED]

PR fortran/37507
* gfortran.dg/allocate_error_1.f90: New test.
* gfortran.dg/deallocate_error_1.f90: New test.
* gfortran.dg/deallocate_error_2.f90: New test.

Added:
trunk/gcc/testsuite/gfortran.dg/allocate_error_1.f90
trunk/gcc/testsuite/gfortran.dg/deallocate_error_1.f90
trunk/gcc/testsuite/gfortran.dg/deallocate_error_2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/fortran/trans-array.h
trunk/gcc/fortran/trans-openmp.c
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/fortran/trans.c
trunk/gcc/fortran/trans.h
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/37507] Print location in (DE)ALLOCATION errors

2008-09-18 Thread domob at gcc dot gnu dot org


--- Comment #4 from domob at gcc dot gnu dot org  2008-09-18 12:06 ---
Fixed for trunk.


-- 

domob at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug fortran/37507] Print location in (DE)ALLOCATION errors

2008-09-14 Thread domob at gcc dot gnu dot org


-- 

domob at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |domob at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-09-13 10:09:35 |2008-09-14 13:48:35
   date||


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



[Bug fortran/37507] Print location in (DE)ALLOCATION errors

2008-09-13 Thread domob at gcc dot gnu dot org


--- Comment #1 from domob at gcc dot gnu dot org  2008-09-13 09:23 ---
This shouldn't be too hard to do, I think.  I'll look into this one.


-- 


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



[Bug fortran/37507] Print location in (DE)ALLOCATION errors

2008-09-13 Thread tkoenig at gcc dot gnu dot org


--- Comment #2 from tkoenig at gcc dot gnu dot org  2008-09-13 10:09 ---
Confirmed.


-- 

tkoenig at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-09-13 10:09:35
   date||


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