Aliasing sets on Arrays Types

2006-03-20 Thread Andrew Pinski
Take the following C code: typedef long atype[]; typedef long atype1[]; int NumSift (atype *a, atype1 *a1) { (*a)[0] = 0; (*a1)[0] = 1; return (*a)[0]; } Shouldn't the aliasing set for the type atype be the same as atype1? In NumSift, shouldn't the store to (*a1)[0] interfere with (*a)[0] s

Re: alias time explosion

2006-03-20 Thread Andrew MacLeod
On Mon, 2006-03-20 at 18:55 -0500, Andrew Pinski wrote: > On Mar 20, 2006, at 5:18 PM, Andrew MacLeod wrote: > > > I'm not sure when this happened, but I noticed on the weekend that > > there > > has been an explosion in the time spent during the alias analysis > > phase. > > using cplusplus-gra

Re: Multiple errors with GCOV

2006-03-20 Thread Ben Elliston
> I don't see any progress on GCOV, so I assume it's up to me to fix > these bugs. I'm writing here to cooperate with GCOV developers to > avoid duplicate work. There are two gcov maintainers listed in the GCC maintainers file: gcovJan Hubicka [EMAIL PROTECTED] gco

Re: Ada subtypes and base types

2006-03-20 Thread Jeffrey A Law
On Sat, 2006-03-18 at 10:24 +0100, Laurent GUERBY wrote: > On Fri, 2006-03-17 at 12:51 -0700, Jeffrey A Law wrote: > > I'm not suggesting the FEs deduce more types and track ranges; > > that would be rather absurd. What I'm saying is that exposing > > these types outside the FE is most likely cost

Re: FSF Policy re. inclusion of source code from other projects in GCC

2006-03-20 Thread Mark Mitchell
Tom Tromey wrote: > I am leaning toward putting it into the rhug repository on > sourceware.org, simply because then we (the gcj hackers) won't have to > go through some long project registration process. Speak up if you > have a particular problem with this. Thanks! I would prefer it go on sav

Re: FSF Policy re. inclusion of source code from other projects in GCC

2006-03-20 Thread Tom Tromey
> "Mark" == Mark Mitchell <[EMAIL PROTECTED]> writes: Mark> The FSF and GCC SC have decided to move fastjar to savannah, and Mark> stop including it in future GCC releases, which will clarify Mark> this situation. Will someone please volunteer to migrate Mark> fastjar out of our repository?

Re: alias time explosion

2006-03-20 Thread Andrew Pinski
On Mar 20, 2006, at 5:18 PM, Andrew MacLeod wrote: I'm not sure when this happened, but I noticed on the weekend that there has been an explosion in the time spent during the alias analysis phase. using cplusplus-grammer.ii, it use to compile on my machine in about 55 seconds, and its now up

alias time explosion

2006-03-20 Thread Andrew MacLeod
I'm not sure when this happened, but I noticed on the weekend that there has been an explosion in the time spent during the alias analysis phase. using cplusplus-grammer.ii, it use to compile on my machine in about 55 seconds, and its now up to about 150 seconds. A quick gprof indicated about 60%

Re: iWMMXt/Linux EABI toolchain

2006-03-20 Thread Steven Newbury
Hello again Daniel and all! I'm still working on building the iWMMXt/EABI/NPTL toolchain. I've got to the stage where I have everything built upto the final linking of glibc. Sadly despite making a lot of progress and fixing many problems I am now stuck. As I previously discovered the current g

Re: using libmudflap with non-instrumented shared libraries

2006-03-20 Thread Rafael EspĂ­ndola
> Did the compiler give you a warning about inability to track the > lifetime of "p"? It should have. No. Not even with -Wall -O2. gcc -v: gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9) > - FChE > Thanks, Rafael

Re: using libmudflap with non-instrumented shared libraries

2006-03-20 Thread Frank Ch. Eigler
rafael.espindola wrote: > [...] > extern char *p; > [...] >char a = p[0]; > [...] > compile and link with > gcc -shared -fPIC a.c -o liba.so > gcc -fmudflap -lmudflap b.c -la -L. -o b Did the compiler give you a warning about inability to track the lifetime of "p"? It should have. - F

Re: NOPs inserting problem in GCC 4.1.x

2006-03-20 Thread Ian Lance Taylor
"Ling-hua Tseng" <[EMAIL PROTECTED]> writes: > Because I need to use the feature of `length' attribute (i.e., use > get_attr_length() in machine description), > I have to insert NOPs explicitly before performing the pass 58 > (shorten) such that the shorten pass can calculate the length of insns

Re: New brach 'yara-branch' is created

2006-03-20 Thread Ian Lance Taylor
Paolo Bonzini <[EMAIL PROTECTED]> writes: > >> The lower-subreg patch that Richard Henderson posted, and that > >> comes up again and again from time to time, may also help. It does > >> require a bit of hacking in the MDs (mostly removing the DImode > >> patterns for logical operations since the

using libmudflap with non-instrumented shared libraries

2006-03-20 Thread Rafael EspĂ­ndola
Using libmudflap to test a program that uses libxml2, I found that if a program access a constant pointer in a non-instrumented library, mudflap thinks that a read violation has occurred. A simple test that illustrates this is: a.c: - char *p = "abc"; -

Re: New brach 'yara-branch' is created

2006-03-20 Thread Paolo Bonzini
The lower-subreg patch that Richard Henderson posted, and that comes up again and again from time to time, may also help. It does require a bit of hacking in the MDs (mostly removing the DImode patterns for logical operations since the middle-end is able to synthesize them on its own). Tha

RE: Leaf functions and noreturn calls

2006-03-20 Thread Dave Korn
On 20 March 2006 15:31, Richard Henderson wrote: > On Mon, Mar 20, 2006 at 12:57:14PM -, Dave Korn wrote: >> Taking a look at leaf_function_p, I see that it specifically discounts >> sibcalls; why not noreturncalls as well? > > Because generally losing unwind information from noreturn calls >

RE: FUNCTION_OK_FOR_SIBCALL vs INITIAL_FRAME_POINTER_OFFSET

2006-03-20 Thread Dave Korn
On 20 March 2006 15:14, Richard Henderson wrote: > On Mon, Mar 20, 2006 at 02:56:00PM -, Dave Korn wrote: >> If the stack frame size is >32kB, I need to use a temporary register in >> the epilogue to assemble the lo/hi parts of the frame size before adding >> it to the SP. In the non-sibcal

Re: New brach 'yara-branch' is created

2006-03-20 Thread Vladimir N. Makarov
Paolo Bonzini wrote: Michael Matz wrote: Hi Vladimir, On Sat, 18 Mar 2006, Vladimir N. Makarov wrote: What I am going to do in short perspective is o work on code quality of some SPECINT tests (e.g. reload is doing better job for crafty with many multi-registers than YARA) The lower

Re: New brach 'yara-branch' is created

2006-03-20 Thread Vladimir N. Makarov
Michael Matz wrote: Hi Vladimir, On Sat, 18 Mar 2006, Vladimir N. Makarov wrote: What I am going to do in short perspective is o work on code quality of some SPECINT tests (e.g. reload is doing better job for crafty with many multi-registers than YARA) I haven't looked at the new

Re: Leaf functions and noreturn calls

2006-03-20 Thread Richard Henderson
On Mon, Mar 20, 2006 at 12:57:14PM -, Dave Korn wrote: > Taking a look at leaf_function_p, I see that it specifically discounts > sibcalls; why not noreturncalls as well? Because generally losing unwind information from noreturn calls is a lose when it comes to debugging. r~

Re: FUNCTION_OK_FOR_SIBCALL vs INITIAL_FRAME_POINTER_OFFSET

2006-03-20 Thread Richard Henderson
On Mon, Mar 20, 2006 at 02:56:00PM -, Dave Korn wrote: > If the stack frame size is >32kB, I need to use a temporary register in the > epilogue to assemble the lo/hi parts of the frame size before adding it to the > SP. In the non-sibcall version of the epilogue[*] it uses one of the > arg-p

RE: FUNCTION_OK_FOR_SIBCALL vs INITIAL_FRAME_POINTER_OFFSET

2006-03-20 Thread Dave Korn
On 20 March 2006 14:45, Richard Henderson wrote: Hi Richard :) > On Sat, Mar 11, 2006 at 12:41:32AM -, Dave Korn wrote: >> So, what if the decision it needs to make depends on the stack frame >> size of the current function? > > How can this possibly be? When the sibcall is done, the cu

Re: FUNCTION_OK_FOR_SIBCALL vs INITIAL_FRAME_POINTER_OFFSET

2006-03-20 Thread Richard Henderson
On Sat, Mar 11, 2006 at 12:41:32AM -, Dave Korn wrote: > So, what if the decision it needs to make depends on the stack frame > size of the current function? How can this possibly be? When the sibcall is done, the current function's stack frame is removed. r~

Re: gcc-4.2-20060304 is now available

2006-03-20 Thread Gerald Pfeifer
On Sun, 19 Mar 2006, Laurent GUERBY wrote: > Are statistics for GCC download available somewhere? I suspect > in these days of broadband that just about everyone gets the full > tarball (especially for releases...). The FreeSD ports, for example, by default do not build gfortran nor Java at this p

Leaf functions and noreturn calls

2006-03-20 Thread Dave Korn
Good morning everyone! Here's a simple testcase that illustrates what I'm observing in gcc-3.3.3 -- extern void abort (void) __attribute ((noreturn)); int foo (int a, int b) { if (a > 25) abort (); return (a + b); } int bar

Re: New brach 'yara-branch' is created

2006-03-20 Thread Paolo Bonzini
Michael Matz wrote: Hi Vladimir, On Sat, 18 Mar 2006, Vladimir N. Makarov wrote: What I am going to do in short perspective is o work on code quality of some SPECINT tests (e.g. reload is doing better job for crafty with many multi-registers than YARA) The lower-subreg patch that Richard

Re: New brach 'yara-branch' is created

2006-03-20 Thread Michael Matz
Hi Vladimir, On Sat, 18 Mar 2006, Vladimir N. Makarov wrote: > What I am going to do in short perspective is > o work on code quality of some SPECINT tests (e.g. reload is doing >better job for crafty with many multi-registers than YARA) I haven't looked at the new branch yet, so forgive me

for getting profiling times in millsecond resolution.

2006-03-20 Thread jayaraj
Hi, I want to get the profiling data of an application in linux. Now I am using -pg options of gcc for generating the profile data. then used gprof for generating profiles. Here I am getting only in terms of seconds. But I want in millisecond resolution. can anybody help me. Thanks & regards Ja