This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Block data and -fdump-tree-original?
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Harald Anlauf <anlauf at gmx dot de>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>
- Date: Thu, 5 Mar 2015 10:43:29 +0100
- Subject: Re: Block data and -fdump-tree-original?
- Authentication-results: sourceware.org; auth=none
- References: <54F76E65 dot 50404 at gmx dot de>
On Wed, Mar 4, 2015 at 9:43 PM, Harald Anlauf wrote:
> Dear all,
>
> is the option "-fdump-tree-original" supposed to work with block data?
> The following code:
>
> block data test
> implicit none
> integer :: i
> common /testcm/ i
> data i / 1 /
> end block data
>
> does not produce the expected diagnostic file.
> Or is this normal behavior?
This is expected behavior. The -fdump-tree-original dump contains the
intermediate representation produced by the front end and handed over
to the middle end. Static data is not part of the middle-end dumps
(arguably a missing feature).
There are front-end dumps that should contain block data, see
https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gfortran/Debugging-Options.html
Ciao!
Steven