[Bug fortran/29786] [4.1/4.2/4.3 Regression] Initialization of overlapping variables: Not implemented

2007-06-11 Thread pault at gcc dot gnu dot org


--- Comment #13 from pault at gcc dot gnu dot org  2007-06-11 22:39 ---
Subject: Bug 29786

Author: pault
Date: Mon Jun 11 22:39:21 2007
New Revision: 125628

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=125628
Log:
2007-06-12  Paul Thomas  [EMAIL PROTECTED]

PR fortran/29786
PR fortran/30875
* trans-common.c (get_init_field): New function.
(create_common): Call get_init_field for overlapping
initializers in equivalence blocks.
* resolve.c (resolve_equivalence_derived, resolve_equivalence):
Remove constraints on initializers in equivalence blocks.
* target-memory.c (expr_to_char, gfc_merge_initializers):
New functions.
(encode_derived): Add the bit offset to the byte offset to get
the total offset to the field.
* target-memory.h : Add prototype for gfc_merge_initializers.


2007-06-12  Paul Thomas  [EMAIL PROTECTED]

PR fortran/29786
* gfortran.dg/equiv_7.f90: New test.
* gfortran.dg/equiv_constraint_7.f90: Change error message.


PR fortran/30875
* gfortran.dg/equiv_constraint_5.f90: Correct code and error.

Added:
trunk/gcc/testsuite/gfortran.dg/equiv_7.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/target-memory.c
trunk/gcc/fortran/target-memory.h
trunk/gcc/fortran/trans-common.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/equiv_constraint_5.f90
trunk/gcc/testsuite/gfortran.dg/equiv_constraint_7.f90


-- 


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



[Bug fortran/29786] [4.1/4.2/4.3 Regression] Initialization of overlapping variables: Not implemented

2007-06-11 Thread pault at gcc dot gnu dot org


--- Comment #14 from pault at gcc dot gnu dot org  2007-06-11 22:41 ---
fixed on trunk

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug fortran/29786] [4.1/4.2/4.3 Regression] Initialization of overlapping variables: Not implemented

2007-05-24 Thread pault at gcc dot gnu dot org


--- Comment #11 from pault at gcc dot gnu dot org  2007-05-24 08:10 ---
Just to let you all know; I have had a patch ready for this and PR30875 for
somewhile.  This was awaiting the commit of Brook's simplify_transfer patch and
all the machinery in target-memory.c.  Well, during the wait it suffered a bit
of x86_ia64 specific bit-rot, whose cause I just do not see right now. Ia m
working on it, though:)

Paul


-- 


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



[Bug fortran/29786] [4.1/4.2/4.3 Regression] Initialization of overlapping variables: Not implemented

2007-05-24 Thread patchapp at dberlin dot org


--- Comment #12 from patchapp at dberlin dot org  2007-05-24 13:57 ---
Subject: Bug number PR29786

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01609.html


-- 


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



[Bug fortran/29786] [4.1/4.2/4.3 Regression] Initialization of overlapping variables: Not implemented

2007-04-23 Thread brooks at gcc dot gnu dot org


--- Comment #9 from brooks at gcc dot gnu dot org  2007-04-23 20:49 ---
I'm changing the name of this bug to make it a lot easier to find, now that we
know what the actual problem is.

Also, PR #31672 contains an excellent testcase for this, which I'll quote here:

--
function d1mach(i)
implicit none
double precision d1mach,dmach(5)
integer i,large(4),small(4)
equivalence ( dmach(1), small(1) )
equivalence ( dmach(2), large(1) )
data small(1),small(2) / 0,   1048576/
data large(1),large(2) /-1,2146435071/
d1mach = 0.0d0
end function d1mach
--


-- 

brooks at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|[4.1/4.2/4.3 Regression]|[4.1/4.2/4.3 Regression]
   |rejects equivalence |Initialization of
   ||overlapping variables: Not
   ||implemented


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



[Bug fortran/29786] [4.1/4.2/4.3 Regression] Initialization of overlapping variables: Not implemented

2007-04-23 Thread brooks at gcc dot gnu dot org


-- 

brooks at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P5  |P2


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



[Bug fortran/29786] [4.1/4.2/4.3 Regression] Initialization of overlapping variables: Not implemented

2007-04-23 Thread pinskia at gcc dot gnu dot org


--- Comment #10 from pinskia at gcc dot gnu dot org  2007-04-23 21:50 
---
 [EMAIL PROTECTED] 2007-04-23 20:51:45 PriorityP5  P2
The release manager is the only one who is able to change the priority. 
Changing the Priority back to P5 based on this is a fortran bug so not blocking
the release.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Priority|P2  |P5


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