[Patch, Fortran] Implement F2008's c_sizeof (PR36437)

Tobias Burnus burnus@net-b.de
Thu Jun 5 12:48:00 GMT 2008


This patch implements Fortran 2008's C_SIZEOF, which is a one liner. It 
additionally does:
- Add documentation (essentially a copy from SIZEOF)
- Fix keyword= should be x= and not i=
- Simplify the generated tree. For scalars gfortran produced:

  {
    integer(kind=8) bytes.1;
    i = 4;
  }

  and now it simpy generates:   i = 4;

Build and "make check-gfortran pdf html" tested on x86-64-linux. OK for 
the trunk?

Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: c_sizeof2.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080605/88375d8c/attachment.ksh>


More information about the Fortran mailing list