This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Block data and -fdump-tree-original?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]