public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* cp tree question
@ 2004-12-18  7:27 Stefan Strasser
  2004-12-18  9:33 ` -fdump-translation-unit considered harmful (was Re: cp tree question) Zack Weinberg
                   ` (2 more replies)
  0 siblings, 3 replies; 37+ messages in thread
From: Stefan Strasser @ 2004-12-18  7:27 UTC (permalink / raw)
  To: gcc

Good morning,
I'm wondering if it is a bug or desired behaviour that, in the current
release version of gcc, TREE_CHAIN()ing the cp_namespace_decls() result
doesn't bring up type_decl nodes of c++ enum's, but gcc version 3.3.4 does?
have they been moved into another list?

you can easily check this with -fdump-translation-unit on the code "enum
blah{};". there is no blah in the .tu file with version 3.4.3.

(don't put any enumerators in there because so the type_decl node gets
queued by the DECL_TYPE() of the enumerator node. but it's not in
cp_namespace_decls())

thanks for your help,

-- 
Stefan Strasser

^ permalink raw reply	[flat|nested] 37+ messages in thread
* Re: -fdump-translation-unit considered harmful
@ 2004-12-25 17:14 Richard Stallman
  2004-12-30  0:43 ` Pjotr Kourzanov
  0 siblings, 1 reply; 37+ messages in thread
From: Richard Stallman @ 2004-12-25 17:14 UTC (permalink / raw)
  To: gcc

I think it would be a ok to define an interface for GCC to
link with source-analyzing code.  At least, I don't see any
particular problem in it.  It would be like adding such code
to GCC, more or less.

^ permalink raw reply	[flat|nested] 37+ messages in thread
* Re: -fdump-translation-unit considered harmful
@ 2005-05-12 16:30 Dams, Dennis (Dennis)
  2005-05-12 20:41 ` Ian Lance Taylor
  0 siblings, 1 reply; 37+ messages in thread
From: Dams, Dennis (Dennis) @ 2005-05-12 16:30 UTC (permalink / raw)
  To: gcc; +Cc: gdr

 > Zack Weinberg <zack@codesourcery.com> writes:
 > 
 > [...]
 > 
 > | Me ranting about -fdump-translation-unit had nothing to do with your
 > | problem, really, it's just that your message reminded me that I was
 > | going to bring that up.
 > 
 > I think -fdump-translation-unit should remain.  I thereby volunteer to
 > take any question about it.  
 > 
 > -- Gaby

Gaby,

I'm trying to use the -fdump-translation-unit option (gcc (GCC) 4.1.0 20050505 (experimental)), but it does not seem to do anything. What's the right way to use it - should I specify any additional switches/options?
thanks,
--Dennis.

^ permalink raw reply	[flat|nested] 37+ messages in thread
* RE: -fdump-translation-unit considered harmful
@ 2005-05-13 17:07 Dams, Dennis (Dennis)
  2005-05-13 18:29 ` Gabriel Dos Reis
  0 siblings, 1 reply; 37+ messages in thread
From: Dams, Dennis (Dennis) @ 2005-05-13 17:07 UTC (permalink / raw)
  To: gcc; +Cc: gdr, Ian Lance Taylor

 

> -----Original Message-----
> From: gdr@integrable-solutions.net 
> [mailto:gdr@integrable-solutions.net] 
> Sent: Friday, May 13, 2005 12:33 PM
> To: Adam Nemet
> Cc: Ian Lance Taylor; Dams, Dennis (Dennis); gcc-patches@gcc.gnu.org
> Subject: Re: -fdump-translation-unit considered harmful
> 
> Adam Nemet <anemet@lnxw.com> writes:
> 
> | Ian Lance Taylor <ian@airs.com> writes:
> | > -fdump-translation-unit doesn't do anything in the C frontend.
> | 
> | Is the patch below OK to update documentation accordingly?  Tested 
> | with make info and make dvi.
> 
> OK.
> 
> Thanks,
> 
> -- Gaby
>

Have there been any new thoughts/developments on the issue of elevating the current dump facilities (-fdump-translation-unit, and the -fdump-tree functionality) to a more formal API?

We're working on a tool for static code analysis (aimed at verification issues and program understanding, rather than compile-time optimization). One kind of input that the tool can handle is the .t00.tu format as produced (for C) by an older version of the tree-ssa (in fact, the ast-optimizer) branch. Still, we had to make a few adjustments to make the dump format more useful - e.g.:

* preventing the disposal of trees of function bodies, so that the dump includes all file-level definitions
* preventing the insertion of pointer-offsets
* adding double quotes around strings, and escaping certain characters in them, so as to make parsing easier

It would be great if this behavior could be made part of the current GCC release. But it would be even better if there could be some prior agreement, among those who would be interested, about what a reasonable tree-dump format should look like.
And then there are the legal issues - I don't actually know what the conclusion was of the discussions in this thread last Dec./Jan.
--dennis.

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2005-05-13 17:55 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-18  7:27 cp tree question Stefan Strasser
2004-12-18  9:33 ` -fdump-translation-unit considered harmful (was Re: cp tree question) Zack Weinberg
2004-12-18  9:39   ` Nathan Sidwell
2004-12-18 13:33     ` Gabriel Dos Reis
2004-12-20 17:37       ` Joe Buck
2004-12-18  9:54   ` Stefan Strasser
2004-12-18 10:18     ` -fdump-translation-unit considered harmful Zack Weinberg
2004-12-18 13:35       ` Gabriel Dos Reis
2004-12-18 15:14         ` Paul Brook
2004-12-18 16:23           ` Gabriel Dos Reis
2004-12-18 20:52             ` Stefan Strasser
2004-12-19 10:37               ` Robert Dewar
2004-12-19 20:05                 ` Pjotr Kourzanov
2004-12-19 20:35                 ` Aaron W. LaFramboise
2004-12-20 17:35                   ` Joe Buck
2004-12-20 22:02                     ` Tom Tromey
2004-12-20 22:23                       ` Gabriel Dos Reis
2004-12-20 22:37                     ` Pjotr Kourzanov
2004-12-21  0:45                       ` Stefan Strasser
2004-12-21  1:23                         ` Joe Buck
     [not found]                       ` <41C76E28.2060302@systemhaus-gruppe.de>
     [not found]                         ` <41C7EC6E.1090306@xs4all.nl>
     [not found]                           ` <41C82441.8040505@systemhaus-gruppe.de>
     [not found]                             ` <41C8256B.3010407@xs4all.nl>
     [not found]                               ` <41C82C94.3090304@systemhaus-gruppe.de>
     [not found]                                 ` <41C83465.6060103@xs4all.nl>
     [not found]                                   ` <41C9249B.3060503@systemhaus-gruppe.de>
2004-12-22 15:58                                     ` peter.kourzanov
2004-12-20 17:27           ` Joe Buck
2004-12-18 13:32   ` -fdump-translation-unit considered harmful (was Re: cp tree question) Gabriel Dos Reis
2004-12-18 13:28 ` cp tree question Gabriel Dos Reis
2004-12-20  3:48 ` Stefan Strasser
2004-12-25 17:14 -fdump-translation-unit considered harmful Richard Stallman
2004-12-30  0:43 ` Pjotr Kourzanov
2004-12-30  1:29   ` Robert Dewar
2004-12-30  2:35   ` Stefan Strasser
2004-12-30  2:53     ` Robert Dewar
2004-12-30  3:52       ` Stefan Strasser
2005-01-01  5:31     ` Richard Stallman
2005-01-01  5:31   ` Richard Stallman
2005-05-12 16:30 Dams, Dennis (Dennis)
2005-05-12 20:41 ` Ian Lance Taylor
2005-05-13 17:07 Dams, Dennis (Dennis)
2005-05-13 18:29 ` Gabriel Dos Reis

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).