re PR fortran/36437 (Simplify argument to [c_]sizeof)
authorTobias Burnus <burnus@net-b.de>
Sat, 7 Jun 2008 18:53:07 +0000 (20:53 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 7 Jun 2008 18:53:07 +0000 (20:53 +0200)
commit8d82b242392ea51ccdf17f4a2059425370c00b2a
tree8011d5b8270016bab53792cc7f926919d2a8d86a
parentcd985f6672bb3c399c03118a7a2426e2210c690a
re PR fortran/36437 (Simplify argument to [c_]sizeof)

2008-06-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36437
        * intrinsic.c (add_functions): Implement c_sizeof.
        * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Do not
        create unneeded variable in the scalar case.

2008-06-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36437
        * gfortran.dg/c_sizeof_1.f90: New.
        * gfortran.dg/c_sizeof_2.f90: New.

From-SVN: r136536
gcc/fortran/ChangeLog
gcc/fortran/intrinsic.c
gcc/fortran/intrinsic.texi
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_sizeof_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c_sizeof_2.f90 [new file with mode: 0644]