-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: SH2A: "RTV/N Rn" implementation

2007-07-18 Thread Rask Ingemann Lambertsen
On Wed, Jul 18, 2007 at 12:11:28PM +0530, Naveen H.S. wrote: > Hi, > > We had implemented an insn as:- > > (define_insn "return_rtv" > [(parallel [ > (set (reg:SI R0_REG) > (match_operand:SI "register_operand" "r")) > (return)])] This is actually what I had in mind.

Re: Execute test fails in gcc testsuite

2007-07-18 Thread Pranav Bhandarkar
On 7/18/07, Venkatesan Jeevanandam <[EMAIL PROTECTED]> wrote: I am working on the testsuite for a new crosscompiler hosted on x86 Platform, While performing execute test using gcc testsuite, I am getting the error message in execute test /tmp/2112-1.x0: /tmp/2112-1.x0: cannot execute

Error referencing symbols in gdb when compiled with gcc 3.4.6

2007-07-18 Thread Kalpana Ramamurthy
Hello, I am having a problem when using gcc 3.4.6. My code was compiled earlier using gcc 3.2.2 with the -g option. I was able to print the addess of any symbol or do a "ptype" on any symbol using gdb 6.4 with the generated binary. Now I compile the very same code using gcc 3.4.6 using the -g

Re: -dv -fdump-rtl-all question

2007-07-18 Thread Seongbae Park (박성배, 朴成培)
On 7/18/07, Sunzir Deepur <[EMAIL PROTECTED]> wrote: 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

Re: Can realloc be marked as a mallloc-like function?

2007-07-18 Thread Richard Henderson
On Tue, Jul 17, 2007 at 09:53:30AM -, Wolfram Gloger wrote: > Surely you agree that in my second example, "*p = 0" _cannot_ be moved > after the call to destroy_something_and_allocate_anotherthing(p)? It can't be moved after, but it could be removed entirely as dead code. I don't think we hav

FRE - SCCVN problem with initialized global variables

2007-07-18 Thread Andreas Krebbel
Hi, GCC currently doesn't bootstrap on s390x. The problem is that gengtype is miscompiled and I suspect the fre - sccvn changes to be the culprit. When sccvn performs the depth-first search for uses it might reach global variable definitions. If the global variable is initialized with a value th

Re: Error referencing symbols in gdb when compiled with gcc 3.4.6

2007-07-18 Thread Michael Eager
Kalpana Ramamurthy wrote: Hello, I am having a problem when using gcc 3.4.6. My code was compiled earlier using gcc 3.2.2 with the -g option. I was able to print the addess of any symbol or do a "ptype" on any symbol using gdb 6.4 with the generated binary. Now I compile the very same code u

auto increment in simple mac loop is not created.

2007-07-18 Thread Tal Agmon
Hi, I'm compiling the following c code with -O2 on ia64-linux, xtensa-linux, bfin targets, gcc-4.2.0: int loop(int a[], int b[],int sum) { unsigned int i; for (i = 0; i < 100; i++) sum+=a[i]*b[i]; return sum; } I don't see any auto increment of the pointers inside the loop

Re: FRE - SCCVN problem with initialized global variables

2007-07-18 Thread Daniel Berlin
On 7/18/07, Andreas Krebbel <[EMAIL PROTECTED]> wrote: Hi, GCC currently doesn't bootstrap on s390x. The problem is that gengtype is miscompiled and I suspect the fre - sccvn changes to be the culprit. When sccvn performs the depth-first search for uses it might reach global variable definitio

Re: Can realloc be marked as a mallloc-like function?

2007-07-18 Thread Richard Guenther
On 7/18/07, Richard Henderson <[EMAIL PROTECTED]> wrote: On Tue, Jul 17, 2007 at 09:53:30AM -, Wolfram Gloger wrote: > Surely you agree that in my second example, "*p = 0" _cannot_ be moved > after the call to destroy_something_and_allocate_anotherthing(p)? It can't be moved after, but it co

Re: Can realloc be marked as a mallloc-like function?

2007-07-18 Thread Daniel Berlin
On 7/18/07, Richard Guenther <[EMAIL PROTECTED]> wrote: On 7/18/07, Richard Henderson <[EMAIL PROTECTED]> wrote: > On Tue, Jul 17, 2007 at 09:53:30AM -, Wolfram Gloger wrote: > > Surely you agree that in my second example, "*p = 0" _cannot_ be moved > > after the call to destroy_something_and