public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27193]  New: dump-tree-original-raw does not print the linkage for a variable with file scope.
@ 2006-04-18  5:41 yokoyama-hxb at necst dot nec dot co dot jp
  2006-04-18 16:07 ` [Bug c/27193] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: yokoyama-hxb at necst dot nec dot co dot jp @ 2006-04-18  5:41 UTC (permalink / raw)
  To: gcc-bugs

dump-tree-original-raw does not print the linkage for 
a variable with file scope. 
--- test case (sta.c)---
static int static_var=9;
double global_var = 0;
main() {
        int x;
        x = 4+ static_var + global_var;
        return x;
}
-- to reproduce ---
gcc -fdump-tree-original-raw sta.c
tail -7 sta.c.t02.original
-- bug ---
There is no linkage infomation "static" can be found for var_del static_var.

@39     var_decl         name: @41      type: @7       srcp: sta.c:1      
                         init: @42      size: @9       algn: 32      
                         used: 1       
@40     integer_cst      type: @7       low : 4       
@41     identifier_node  strg: static_var              lngt: 10      
@42     integer_cst      type: @7       low : 9       

--- config ---
$ gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ./configure --enable-languages=c,c++
Thread model: single
gcc version 4.1.0


-- 
           Summary: dump-tree-original-raw does not print the linkage for a
                    variable with file scope.
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yokoyama-hxb at necst dot nec dot co dot jp


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27193


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

* [Bug c/27193] dump-tree-original-raw does not print the linkage for a variable with file scope.
  2006-04-18  5:41 [Bug c/27193] New: dump-tree-original-raw does not print the linkage for a variable with file scope yokoyama-hxb at necst dot nec dot co dot jp
@ 2006-04-18 16:07 ` pinskia at gcc dot gnu dot org
  2006-04-19  2:42 ` pinskia at gcc dot gnu dot org
  2006-04-19  7:23 ` yokoyama-hxb at necst dot nec dot co dot jp
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-18 16:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-18 16:07 -------
These files are for debuging gcc only.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27193


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

* [Bug c/27193] dump-tree-original-raw does not print the linkage for a variable with file scope.
  2006-04-18  5:41 [Bug c/27193] New: dump-tree-original-raw does not print the linkage for a variable with file scope yokoyama-hxb at necst dot nec dot co dot jp
  2006-04-18 16:07 ` [Bug c/27193] " pinskia at gcc dot gnu dot org
@ 2006-04-19  2:42 ` pinskia at gcc dot gnu dot org
  2006-04-19  7:23 ` yokoyama-hxb at necst dot nec dot co dot jp
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-19  2:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-04-19 02:42 -------
Hiroshi-san,
What are you trying to use this dump file for?  Is it for other processing or
just debugging GCC itself?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27193


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

* [Bug c/27193] dump-tree-original-raw does not print the linkage for a variable with file scope.
  2006-04-18  5:41 [Bug c/27193] New: dump-tree-original-raw does not print the linkage for a variable with file scope yokoyama-hxb at necst dot nec dot co dot jp
  2006-04-18 16:07 ` [Bug c/27193] " pinskia at gcc dot gnu dot org
  2006-04-19  2:42 ` pinskia at gcc dot gnu dot org
@ 2006-04-19  7:23 ` yokoyama-hxb at necst dot nec dot co dot jp
  2 siblings, 0 replies; 4+ messages in thread
From: yokoyama-hxb at necst dot nec dot co dot jp @ 2006-04-19  7:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from yokoyama-hxb at necst dot nec dot co dot jp  2006-04-19 07:23 -------
(In reply to comment #2)
I'm tring to write a kind of c analizer which inputs intermediate language of
gcc.
If it's only debugging porpose and some infomation like might NOT be print, I
guess what should I do is write a patch on tree-dump.c to print everything I
need...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27193


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

end of thread, other threads:[~2006-04-19  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-18  5:41 [Bug c/27193] New: dump-tree-original-raw does not print the linkage for a variable with file scope yokoyama-hxb at necst dot nec dot co dot jp
2006-04-18 16:07 ` [Bug c/27193] " pinskia at gcc dot gnu dot org
2006-04-19  2:42 ` pinskia at gcc dot gnu dot org
2006-04-19  7:23 ` yokoyama-hxb at necst dot nec dot co dot jp

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