[Bug fortran/33370] [4.3 Regression] Structure component arrays

2007-09-10 Thread burnus at gcc dot gnu dot org


--- Comment #2 from burnus at gcc dot gnu dot org  2007-09-10 06:20 ---
gfortran 4.2:
  struct foo a[4];
int4 A.1[4];
struct array1_int4 atmp.0;
[...]
  static int4 data.3[4] = {12, 2, 3, 10};
  __builtin_memcpy ((*(int4[0:] *) atmp.0.data)[0], data.3, 16);
  [...]
  a[NON_LVALUE_EXPRS.4].i = (*(int4[0:] *)
atmp.0.data)[NON_LVALUE_EXPRS.4];


gfortran 4.3:
  struct foo a[4];
  static int4 A.1[4] = {12, 2, 3, 10};
  (void) __builtin_memcpy ((void *) a, (void *) A.1, 32);


-- 

burnus at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||burnus at gcc dot gnu dot
   ||org
  Known to fail||4.3.0
  Known to work||4.1.3 4.2.1
Summary|Structure component arrays  |[4.3 Regression] Structure
   ||component arrays


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



[Bug fortran/33370] [4.3 Regression] Structure component arrays

2007-09-10 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2007-09-10 07:20 ---
I am just about to commit as 'obvious' a patch that bootstraps and regtests on
x86_ia64/FC5

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2007-09-09 20:03:43 |2007-09-10 07:20:46
   date||


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



[Bug fortran/33370] [4.3 Regression] Structure component arrays

2007-09-10 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2007-09-10 07:54 ---
Subject: Bug 33370

Author: pault
Date: Mon Sep 10 07:54:17 2007
New Revision: 128325

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=128325
Log:
2007-09-10  Paul Thomas  [EMAIL PROTECTED]

PR fortran/33370
* trans-expr.c (copyable_array_p):  Add tests that expression
is a variable, that it has no subreferences and that it is a
full array.
(gfc_trans_assignment): Change conditions to suit modifications
to copyable_array_p.

2007-09-10  Paul Thomas  [EMAIL PROTECTED]

PR fortran/33370
* gfortran.dg/array_memcpy_5.f90:  New test.


Added:
trunk/gcc/testsuite/gfortran.dg/array_memcpy_5.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/33370] [4.3 Regression] Structure component arrays

2007-09-10 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2007-09-10 07:57 ---
Fixed under the 'obvious' rule.

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=33370