Re: gcc hangs ! (version 4.1.2, Ubuntu 4.1.2-0ubuntu4)

2008-02-17 Thread Sunzir Deepur
On Feb 17, 2008 3:55 PM, Andrew Haley <[EMAIL PROTECTED]> wrote: > Sunzir Deepur wrote: > > followup: > > > > After a considerabale amount of time (e.g. 15 seconds), something is > > suddenly > > freed, and the compilation completes successfully. afterwar

Re: gcc hangs ! (version 4.1.2, Ubuntu 4.1.2-0ubuntu4)

2008-02-17 Thread Sunzir Deepur
f the hang.. I can tell that while it is hung, the cpu is not working (gcc doesn't even show in top..). On Feb 17, 2008 12:03 PM, Sunzir Deepur <[EMAIL PROTECTED]> wrote: > hello, > > I encounter a strange gcc behavior - it hangs ! this is not happening always. > It can hang

gcc hangs ! (version 4.1.2, Ubuntu 4.1.2-0ubuntu4)

2008-02-17 Thread Sunzir Deepur
hello, I encounter a strange gcc behavior - it hangs ! this is not happening always. It can hang sometimes, and sometimes not, with the exact same source file and gcc command line. My command is simple, i use several -I parameters (include folders), -c and -o.. that's it.. gcc -I -I -I -I -I

RTL/VCG inconsistency (the check_match.7758 case)

2007-10-24 Thread Sunzir Deepur
Hello list, I have enountered some inconsistency in the RTL/VCG output and I wonder if it is fixable (and how). This problem arises when compiling a C file with a nested routine. In this case the symbol of the nested routine is added a numeric suffix (like static definitions from within a functio

help in deciphering a call RTL instruction

2007-10-23 Thread Sunzir Deepur
Hi list, I have a need to understand some call RTL instructions, but I have difficulties to understand some of them. Here are two examples of the challenging RTL instructions: (call (mem:QI (symbol_ref:SI (\"stpcpy\") [flags 0x41] ) [0 S1 A8]) (const_int 8 [0x8])) Q: does this instructi

(libgcc) what does _Unwind_Resume do ?

2007-10-20 Thread Sunzir Deepur
Hi, I have noticed that glibc has extensive use of the _Unwind_Resume procedure (from libgcc_eh.a) but I have failed to understand it (no luck with the onlinedocs: http://gcc.gnu.org/onlinedocs/gccint/Exception-handling-routines.html#Exception-handling-routines). Can anyone please explain me what

Re: understanding __FUNCTION__ generation

2007-09-11 Thread Sunzir Deepur
Hi Jim, On 9/12/07, Jim Wilson <[EMAIL PROTECTED]> wrote: > Sunzir Deepur wrote: > > recently I've encountered a problem in which some removals of > > (what seems to be unneeded) lines of header files inflicted changes in > > the resulting binary. further inverstig

understanding __FUNCTION__ generation

2007-09-11 Thread Sunzir Deepur
hi list, recently I've encountered a problem in which some removals of (what seems to be unneeded) lines of header files inflicted changes in the resulting binary. further inverstigation showed that the chages were different __FUNCTION__.numbers (in the __FUNCTION__. xxx symbol names). can someon

[possible BUG] gcc's vcg creation code (-dv flag)

2007-08-26 Thread Sunzir Deepur
Hi all, there is a problem in the vcg file created when compiling the following code with gcc's -fdump-rtl-stack -dv: #include void fun(void) { printf("fun\n"); } int main(void) { fun(); return 0; } the vcg file created has the two nodes "main.0" and "fun.0" disconnect

Re: pragma-like warning turn off ?

2007-08-21 Thread Sunzir Deepur
Hi Ian, On 21 Aug 2007 21:19:07 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > "Sunzir Deepur" <[EMAIL PROTECTED]> writes: > > > is there a way to turn off warnings for selective lines ? > > No. can you please explain me the complexity of adding this

Re: [CFG] what are class 3 edges ?

2007-08-13 Thread Sunzir Deepur
On 8/12/07, Dave Korn <[EMAIL PROTECTED]> wrote: > On 11 August 2007 08:42, Emmanuel Fleury wrote: > > Sunzir Deepur wrote: > >> so why are those class 3 edges created at all ? > > I didn't see any 3-edges blocks at all in your example. > Not 3-edge b

Re: [CFG] what are class 3 edges ?

2007-08-03 Thread Sunzir Deepur
On 8/3/07, Emmanuel Fleury <[EMAIL PROTECTED]> wrote: > Sunzir Deepur wrote: > > hello, > > > > what are class 3 edges ? > > why make them ? > > if i understand ok, they do not represent a legit flow of code... > > Switches: ok, that's one exampl

[CFG] what are class 3 edges ?

2007-08-03 Thread Sunzir Deepur
hello, what are class 3 edges ? why make them ? if i understand ok, they do not represent a legit flow of code... thank you sunzir

Re: assembly: control flow graphs (and optimizations)

2007-07-23 Thread Sunzir Deepur
ok, thanks, sunzir.

Re: assembly: control flow graphs (and optimizations)

2007-07-23 Thread Sunzir Deepur
On 7/22/07, Robert Dewar <[EMAIL PROTECTED]> wrote: Sunzir Deepur wrote: > is there a meaning for control flow graphs of assembly files (.S) > (e.g. those that are emitted using -fdump-rtl-*) ? this is neither possible nor desirable. Ok. but is there a way to produce CFG

assembly: control flow graphs (and optimizations)

2007-07-22 Thread Sunzir Deepur
hi list, is there a meaning for control flow graphs of assembly files (.S) (e.g. those that are emitted using -fdump-rtl-*) ? if not - then how are assembly file being optimized ? I guess that assembly files can be made more efficient by many of gcc's optimizations too, can't they ? thanks !! s

Re: -dv -fdump-rtl-all question

2007-07-19 Thread Sunzir Deepur
On 7/18/07, Seongbae Park (박성배, 朴成培) <[EMAIL PROTECTED]> wrote: On 7/18/07, Sunzir Deepur <[EMAIL PROTECTED]> wrote: > So basically I want to assume the maximum vcg file that is created > is a function of the optimizations and not a function of the source file.. Why? Th

-dv -fdump-rtl-all question

2007-07-18 Thread Sunzir Deepur
Hi list, Is it ok to assume that when I compile a C file (that is guranteed to have some code in it) under the following flags, I always get the mentioned VCG file (and do not get a bigger one) ? Flags Maximum VCG file that is always created =

Re: crtbegin.o crtend.o

2007-07-10 Thread Sunzir Deepur
On 10 Jul 2007 09:51:14 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: "Sunzir Deepur" <[EMAIL PROTECTED]> writes: > What files are the sources of crtbegin.o and crtend.o ? The single file gcc/crtstuff.c. > What's their purposes ? To ensure that global

crtbegin.o crtend.o

2007-07-10 Thread Sunzir Deepur
Hi all, What files are the sources of crtbegin.o and crtend.o ? What's their purposes ? thank you sunzir

class 3 edges

2007-06-19 Thread Sunzir Deepur
hello, when I compile with -dv -fdump-rtl-* I somtimes see in the VCG files some edges that have no meaning in the flow of the program. these edges are always green and class 3. what are those edges ? what is their purposes ? thank you sunzir

Re: gcc behind the scenes

2007-05-20 Thread Sunzir Deepur
all, sorry for the misplaced (and trivial) question, won't happen again. thank you for the nice attitude though ! sunzir.

gcc behind the scenes

2007-05-20 Thread Sunzir Deepur
Hello,, When I do "gcc foo.c", behind the scenes I suppose there are many actions, like calling 'cpp', 'gcc', 'as' and finally, 'ld'. Is there a way to know what is going on exactly behind the scenes of gcc ? Like which other tools are called and with which command line arguments ? Thank You su

manipulating VCG files

2007-04-14 Thread Sunzir Deepur
Hello all, I have a need to read the VCG files (generated by -dv -fdump-rtl), parse them and do some graph manipulations on them (drop some rtl instructions, change graph layout, ...). Is there any library for parsing and manipulating these VCG files ? Thank You sunzir

VCG viewer...

2007-04-08 Thread Sunzir Deepur
Hi Guys, Sorry to bother you with that old issue... But.. Is there a chance someone has a secret stash with a working version of the VCG graph viewer ? please ? thank you ppl sunzir Re: Looking for Cygnus' modified VCG graph viewer To: drepper at cygnus dot com (Ulrich Drepper) Subject: Re

Re: can't find VCG viewer

2007-04-08 Thread Sunzir Deepur
Hello Diego. On 3/15/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Sunzir Deepur wrote on 03/14/07 05:36: > any idea where I can find a (free) graphical VCG viewer suitable > for gcc's vcg outputs ? I'd recommend the attached script. Feed the output to GraphViz. The s

Re: can't find VCG viewer

2007-04-08 Thread Sunzir Deepur
Hello Joe. On 3/14/07, Joe Buck <[EMAIL PROTECTED]> wrote: On Wed, Mar 14, 2007 at 11:36:24AM +0200, Sunzir Deepur wrote: > any idea where I can find a (free) graphical VCG viewer suitable > for gcc's vcg outputs ? See http://www.graphviz.org/ Checked on graphviz, I don&#x

Re: bad edge created in CFG ?

2007-04-05 Thread Sunzir Deepur
Hi, On 3/14/07, Seongbae Park <[EMAIL PROTECTED]> wrote: On 3/14/07, Sunzir Deepur <[EMAIL PROTECTED]> wrote: > I have used -da and -dv to produce vcg files of the CFG of this simple program: > > int main(int argc, char**argv) > { > if(argc) >

bad edge created in CFG ?

2007-03-14 Thread Sunzir Deepur
Hello, I have used -da and -dv to produce vcg files of the CFG of this simple program: int main(int argc, char**argv) { if(argc) printf("positive\n"); else printf("zero\n"); return 0; } I have expected to get a CFG as follows:

can't find VCG viewer

2007-03-14 Thread Sunzir Deepur
Hello group, any idea where I can find a (free) graphical VCG viewer suitable for gcc's vcg outputs ? seems like the old 1995 package is not applicable on newest linux systems (am working on fedora). Thank You sunzir

Re: RTL representations and virtual addresses

2007-03-14 Thread Sunzir Deepur
On 3/13/07, Jim Wilson <[EMAIL PROTECTED]> wrote: Sunzir Deepur wrote: > My wish is to generate a CFG in which I would know, for each basic block > and RTL command, what is the virtual address this command will be at > in the binary.. You can already find much of this info in the

RTL representations and virtual addresses

2007-03-13 Thread Sunzir Deepur
Hello, I use -da to dump RTL files of the passes. Is there a way to add the virtual addresses of each directive ? I know that RTL is abstraction and virtual addresses are relevant only when the actual opcodes are generated. My wish is to generate a CFG in which I would know, for each basic blo

question about PASSES

2007-03-05 Thread Sunzir Deepur
hi all, these are the last passes: NEXT_PASS (pass_stack_regs); // last pass to generate VCG file NEXT_PASS (pass_compute_alignments); NEXT_PASS (pass_duplicate_computed_gotos); NEXT_PASS (pass_variable_tracking); NEXT_PASS (pass_free_cfg); NEXT_PASS (pass_machine_reorg); NE

passes not maintaining CFG ?

2007-03-05 Thread Sunzir Deepur
hello all, I would like to output a CFG (preferably in VCG format) which describes the final binary. Is it doable or do the last RTL passes change the CFG ? I see that the last vcg outputable is file.c.49.stack.vcg - is it a good description of the final binary flow ? Thank you all sunzir

Re: CFG question

2007-03-04 Thread Sunzir Deepur
Hi, On 3/4/07, Steven Bosscher <[EMAIL PROTECTED]> wrote: On 3/4/07, Sunzir Deepur <[EMAIL PROTECTED]> wrote: > Forgive me, I had mistake in the question - I meant the debug dump files > that we get just by using the -fdump-rtl-all. not the vcg files. > how can I understand

Re: CFG question

2007-03-04 Thread Sunzir Deepur
Hi, On 3/4/07, Steven Bosscher <[EMAIL PROTECTED]> wrote: On 3/4/07, Sunzir Deepur <[EMAIL PROTECTED]> wrote: > hello ppl, > > when I use -fdump-rtl-all with -dv I get CFG files. > where can I learn the syntax of that CFG files ? > it seems some kind of LISP langu

CFG question

2007-03-04 Thread Sunzir Deepur
hello ppl, when I use -fdump-rtl-all with -dv I get CFG files. where can I learn the syntax of that CFG files ? it seems some kind of LISP language... thanks ! sunzir

'call' is not an edge

2007-03-04 Thread Sunzir Deepur
hello all, I was wondering why "call" directives are not edges in function graphs ? I see that only jumps are edges, and calls are treated like a normal directive... thanks for the help, sunzir.