From: Paul Richard Thomas <paul.richard.thomas@gmail.com>
To: Thomas Koenig <tkoenig@netcologne.de>
Cc: fortran@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: [patch, fortran] make fortran dumps more readable
Date: Wed, 03 Nov 2010 12:18:00 -0000 [thread overview]
Message-ID: <AANLkTi=6=RS8T505TftKnMeQYcA+NdHjyzSqEf4UNqt9@mail.gmail.com> (raw)
In-Reply-To: <1288736629.5236.3.camel@linux-fd1f.site>
Dear Thomas,
> OK for trunk if regression-testing turns up nothing (which is really to
> be expected)?
I think that the regression testing is almost unnecessary and that you
can commit as obvious.
Namespace: A-H: (REAL 4) I-N: (INTEGER 4) O-Z: (REAL 4)
procedure name = ret_array_1
symtree: 'a' || symbol: 'a'
type spec : (INTEGER 4)
attributes: (VARIABLE ALLOCATABLE DIMENSION)
Array spec:(2 [0] AS_DEFERRED () () () () )
symtree: 'abort' || symbol: 'abort'
type spec : (UNKNOWN 0)
attributes: (PROCEDURE SUBROUTINE)
symtree: 'any' || symbol: 'any'
type spec : (REAL 4)
attributes: (PROCEDURE FUNCTION IMPLICIT-TYPE)
result: any
symtree: 'b' || symbol: 'b'
type spec : (INTEGER 4)
attributes: (VARIABLE DIMENSION)
Array spec:(1 [0] AS_EXPLICIT 1 2 )
symtree: 'my_transpose'|| symbol: 'my_transpose'
type spec : (INTEGER 4)
attributes: (PROCEDURE INTERNAL-PROC DIMENSION FUNCTION)
Array spec:(2 [0] AS_EXPLICIT 1
obfuscate[[((__ubound[[((my_transpose:x(FULL)) (2) ((arg
not-present)))]]))]] 1 obfuscate[[((__ubound[[((my_transpose:x(FULL))
(1) ((arg not-present)))]]))]] )
result: r
Formal arglist: x
symtree: 'reshape' || symbol: 'reshape'
type spec : (REAL 4)
attributes: (PROCEDURE FUNCTION IMPLICIT-TYPE)
result: reshape
symtree: 'ret_array_1' || symbol: 'ret_array_1'
type spec : (UNKNOWN 0)
attributes: (PROGRAM PUBLIC SUBROUTINE)
symtree: 'sum' || symbol: 'sum'
type spec : (REAL 4)
attributes: (PROCEDURE FUNCTION IMPLICIT-TYPE)
result: sum
symtree: 'test' || symbol: 'test'
type spec : (UNKNOWN 0)
attributes: (PROCEDURE INTERNAL-PROC SUBROUTINE)
Formal arglist: x n
symtree: 'transpose' || symbol: 'transpose'
type spec : (REAL 4)
attributes: (PROCEDURE FUNCTION IMPLICIT-TYPE)
result: transpose
is almost civilized, except for the one array_spec (for
'my_transpose'). Is there something that we can do with that?
I wonder if, for most users, a symbol table like the above is all that
is needed? ie. introduce -fdump-symtrees that is the same as
-fdump-parse-tree but without the code?
I thought that you had forgotten about this patch :-)
Thanks
Paul
>
> Thomas
>
> 2010-10-31 Thomas Koenig <tkoenig@gcc.gnu.org>
> Paul Thomas <pault@gcc.gnu.org>
>
> * dump-parse-tree.c (code_indent): Take label into acount
> when calculating indent.
> (show_typespec): Also display class.
> (show_attr): Add module name to argument.
> Don't show UNKNOWN for flavor, access and save. Don't show
> SAVE_NONE. Don't show INTENT_UNKNOWN. Show module for use
> association. Show intent only for dummy arguments.
> Set length of shown symbol names to minimum of 12.
> Show attributes header.
> (show_symbol): Adjust show_level.
> (show_symtree): Clear up display for ambiguous. Show if symbol
> was imported from namespace.
> (show_code_node): Clear up indenting. Traverse symtree and
> show code directly instead of calling show_namespace.
>
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy
next prev parent reply other threads:[~2010-11-03 12:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-02 22:30 Thomas Koenig
2010-11-03 12:18 ` Paul Richard Thomas [this message]
2010-11-03 18:54 ` Thomas Koenig
2010-11-03 20:03 ` Paul Richard Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=6=RS8T505TftKnMeQYcA+NdHjyzSqEf4UNqt9@mail.gmail.com' \
--to=paul.richard.thomas@gmail.com \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=tkoenig@netcologne.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).