[Bug target/35944] [4.3 Regression] wrong result for MOD with kind=10 for some array argument values

2008-04-19 Thread pault at gcc dot gnu dot org


--- Comment #10 from pault at gcc dot gnu dot org  2008-04-19 21:56 ---
Subject: Bug 35944

Author: pault
Date: Sat Apr 19 21:55:24 2008
New Revision: 134472

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=134472
Log:
2008-04-19  Paul Thomas  [EMAIL PROTECTED]

PR fortran/35944
PR fortran/35946
PR fortran/35947
* trans_array.c (gfc_trans_array_constructor): Temporarily
realign loop, if loop-from is not zero, before creating
the temporary array and provide an offset.

PR fortran/35959
* trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
and allow for NULL body.  Change all references from
init_default_dt to gfc_init_default_dt.
* trans.h : Add prototype for gfc_init_default_dt.
* trans-array.c (gfc_trans_deferred_vars): After nullification
call gfc_init_default_dt for derived types with allocatable
components.

2008-04-19  Paul Thomas  [EMAIL PROTECTED]

PR fortran/35944
PR fortran/35946
PR fortran/35947
* gfortran.dg/array_constructor_23.f: New test.

PR fortran/35959
* gfortran.dg/alloc_comp_default_init_2.f90: New test.
* gfortran.dg/alloc_comp_basics_1.f90: Change occurrences of
builtin_free to 27.
* gfortran.dg/alloc_comp_constructor_1.f90: Change occurrences
of builtin_free to 21.

Added:
trunk/gcc/testsuite/gfortran.dg/alloc_comp_default_init_2.f90
trunk/gcc/testsuite/gfortran.dg/array_constructor_23.f
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/fortran/trans-decl.c
trunk/gcc/fortran/trans.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/alloc_comp_basics_1.f90
trunk/gcc/testsuite/gfortran.dg/alloc_comp_constructor_1.f90


-- 


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



[Bug target/35944] [4.3 Regression] wrong result for MOD with kind=10 for some array argument values

2008-04-19 Thread pault at gcc dot gnu dot org


--- Comment #11 from pault at gcc dot gnu dot org  2008-04-19 22:31 ---
Subject: Bug 35944

Author: pault
Date: Sat Apr 19 22:30:03 2008
New Revision: 134475

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=134475
Log:
2008-04-19  Paul Thomas  [EMAIL PROTECTED]

PR fortran/35944
PR fortran/35946
PR fortran/35947
* trans_array.c (gfc_trans_array_constructor): Temporarily
realign loop, if loop-from is not zero, before creating
the temporary array and provide an offset.

PR fortran/35959
* trans-decl.c (gfc_init_default_dt): Add gfc_ prefix to name
and allow for NULL body.  Change all references from
init_default_dt to gfc_init_default_dt.
* trans.h : Add prototype for gfc_init_default_dt.
* trans-array.c (gfc_trans_deferred_vars): After nullification
call gfc_init_default_dt for derived types with allocatable
components.

2008-04-19  Paul Thomas  [EMAIL PROTECTED]

PR fortran/35944
PR fortran/35946
PR fortran/35947
* gfortran.dg/array_constructor_23.f: New test.

PR fortran/35959
* gfortran.dg/alloc_comp_default_init_2.f90: New test.
* gfortran.dg/alloc_comp_basics_1.f90: Change occurrences of
builtin_free to 27.
* gfortran.dg/alloc_comp_constructor_1.f90: Change occurrences
of builtin_free to 21.

Added:
   
branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/alloc_comp_default_init_2.f90
branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/array_constructor_23.f
Modified:
branches/gcc-4_3-branch/gcc/fortran/ChangeLog
branches/gcc-4_3-branch/gcc/fortran/trans-array.c
branches/gcc-4_3-branch/gcc/fortran/trans-decl.c
branches/gcc-4_3-branch/gcc/fortran/trans.h
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/alloc_comp_basics_1.f90
   
branches/gcc-4_3-branch/gcc/testsuite/gfortran.dg/alloc_comp_constructor_1.f90


-- 


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



[Bug target/35944] [4.3 Regression] wrong result for MOD with kind=10 for some array argument values

2008-04-17 Thread ubizjak at gmail dot com


--- Comment #9 from ubizjak at gmail dot com  2008-04-17 07:10 ---
Fixed.


-- 

ubizjak at gmail dot com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Component|fortran |target
 GCC target triplet||i686-pc-linux-gnu
 Resolution||FIXED
   Target Milestone|--- |4.3.1


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