Re: Scheduling problem - A more detailed explain

2007-10-08 Thread 吴曦
"rws_access_reg should be handling this correctly. It uses HARD_REGNO_NREGS to get the number of regs referred to by a reg rtl. So it should return 64 in this case, and then it will iterate over all 64-bit PR regs when checking for a dependency." I have found HARD_REGNO_NREGS in ia64.h #define HA

Re: Is it ever possible to build libmudflap, libssp, or libgomp when inhibit_libc is set?

2007-10-08 Thread Ben Elliston
On Mon, 2007-10-08 at 11:42 -0500, Stephen M. Kenton wrote: > >> Is it ever possible to build libmudflap, libssp, or libgomp when > >> inhibit_libc is set? > >> > > > > It seems unlikely. > > > OK, then I'll pursue this idea Please do -- that would be really great. It would be useful if

gcc-4.1-20071008 is now available

2007-10-08 Thread gccadmin
Snapshot gcc-4.1-20071008 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.1-20071008/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.1 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: again problems implementing own target

2007-10-08 Thread Jim Wilson
Michael_fogel wrote: In my opinion the compiler ran out of registers and was not able to allocate the pseudo register. In this case the compiler has to spill these registers. How is this done in GCC? Is there a way to control it? There are a lot of things that affect this. The main things ar

Re: cgraph, unit-at-a-time, and the "used" attribute

2007-10-08 Thread Janis Johnson
On Sat, 2007-10-06 at 19:48 -0700, Gary Funck wrote: > While working on UPC, we ran into an interesting problem > where if -O1 is enabled, and -funit-at-a-time is disabled > (which is not the default configuration) a static variable > declaration was not emitted by the assembler. I haven't > quite

Re: again problems implementing own target

2007-10-08 Thread Michael_fogel
Jim Wilson wrote: Michael_fogel wrote: The failing instruction is a call. The compiler loads every symbol reference into a register and calls the function using this. In front of the error this load is missing. In smaller files the compiler uses the reference, which is the way i want him to do

Re: Scheduling problem - A more detailed explain

2007-10-08 Thread Jim Wilson
Ô¬Á¢Íþ wrote: So, my question becomes clear: How to solve this problem by making GCC knows the data dependencies between mov X = pr (or mov pr = X, -1) and other usage of a specific predicate register (e.g. p6, p7)? We already have support for these move instructions. See the movdi_internal p

Re: again problems implementing own target

2007-10-08 Thread Jim Wilson
Michael_fogel wrote: The failing instruction is a call. The compiler loads every symbol reference into a register and calls the function using this. In front of the error this load is missing. In smaller files the compiler uses the reference, which is the way i want him to do it. We need more

Re: Preparsing sprintf format strings

2007-10-08 Thread Andrew Haley
Denys Vlasenko writes: > On Monday 08 October 2007 13:50, Heikki Linnakangas wrote: > > While profiling a test case of exporting data from PostgreSQL, I noticed > > that a lot of CPU time was spent in sprintf, formatting timestamps like > > "2007-10-01 12:34". I could speed that up by an order

Re: Preparsing sprintf format strings

2007-10-08 Thread Denys Vlasenko
On Monday 08 October 2007 16:08, Heikki Linnakangas wrote: > Denys Vlasenko wrote: > > On Monday 08 October 2007 13:50, Heikki Linnakangas wrote: > >> While profiling a test case of exporting data from PostgreSQL, I noticed > >> that a lot of CPU time was spent in sprintf, formatting timestamps lik

Re: Is it ever possible to build libmudflap, libssp, or libgomp when inhibit_libc is set?

2007-10-08 Thread Stephen M. Kenton
Ian Lance Taylor wrote: Steve Kenton <[EMAIL PROTECTED]> writes: Is it ever possible to build libmudflap, libssp, or libgomp when inhibit_libc is set? It seems unlikely. OK, then I'll pursue this idea If not, is is reasonable to add a check to the top level configure to detect

Re: Preparsing sprintf format strings

2007-10-08 Thread Paolo Bonzini
It's too far-fetched for my tastes. I think gcc should not do it. How gcc can know what printf() and puts() mean in *my* libc? Well, that's what -fno-builtin is for. More precisely, -ffreestanding. I think such optimizations should be done in glibc. The point is that you can't. GCC knows i

Re: Preparsing sprintf format strings

2007-10-08 Thread Heikki Linnakangas
Denys Vlasenko wrote: > On Monday 08 October 2007 13:50, Heikki Linnakangas wrote: >> While profiling a test case of exporting data from PostgreSQL, I noticed >> that a lot of CPU time was spent in sprintf, formatting timestamps like >> "2007-10-01 12:34". I could speed that up by an order of magni

Re: Is it ever possible to build libmudflap, libssp, or libgomp when inhibit_libc is set?

2007-10-08 Thread Ian Lance Taylor
Steve Kenton <[EMAIL PROTECTED]> writes: > Is it ever possible to build libmudflap, libssp, or libgomp when > inhibit_libc is set? It seems unlikely. > If not, is is reasonable to add a check to the top level configure to detect > situations that will cause gcc configure to set inhibit_libc and

Re: Preparsing sprintf format strings

2007-10-08 Thread Ian Lance Taylor
"Heikki Linnakangas" <[EMAIL PROTECTED]> writes: > I don't have much experience with GCC hacking, but I did put together a > prototype to do some of the above, and it does look like you can get > very significant speedups. Before I continue with that, has something > like this been proposed before

Re: Preparsing sprintf format strings

2007-10-08 Thread Denys Vlasenko
On Monday 08 October 2007 13:50, Heikki Linnakangas wrote: > While profiling a test case of exporting data from PostgreSQL, I noticed > that a lot of CPU time was spent in sprintf, formatting timestamps like > "2007-10-01 12:34". I could speed that up by an order of magnitude by > replacing the spr

Preparsing sprintf format strings

2007-10-08 Thread Heikki Linnakangas
Hi, While profiling a test case of exporting data from PostgreSQL, I noticed that a lot of CPU time was spent in sprintf, formatting timestamps like "2007-10-01 12:34". I could speed that up by an order of magnitude by replacing the sprintf call with tailored code, but it occurred to me that we co

Re: MetaHTML and the GCC web site

2007-10-08 Thread Gerald Pfeifer
On Mon, 8 Oct 2007, Gerald Pfeifer wrote: > As others noted, MetaHTML can be made to work on a current GNU/Linux > system, and while this probably will not be our long term strategy, I > am trying to brush up my scripts/patches that will allow for this more > easily and then share this with you an

Error building gcc-4.1.1 with gcc-4.2.1

2007-10-08 Thread Clemens Koller
Hi, There! For testing reasons I started to build gcc-4.1.1 on an embedded ppc system which has a working gcc-4.2.1 on it already: $ gcc -v Using built-in specs. Target: powerpc-unknown-linux-gnu Configured with: ../gcc-4.2.1/configure --prefix=/usr --libexecdir=/usr/lib --enable-languages=c,c

Scheduling problem - A more detailed explain

2007-10-08 Thread 袁立威
Hi, I'm working on IA64 with GCC-4.1.1; what I do is to instrument some sensitive instructions (e.g. memory access) to do information flow tracking. As I insert the instrumentation after register allocation, I need to allocate general registers and predicates myself; for corner cases in allocatio

scheduling problem-a more detailed explain

2007-10-08 Thread 袁立威
Hi, I'm working on IA64 with GCC-4.1.1; what I do is to instrument some sensitive instructions (e.g. memory access) to do information flow tracking. As I insert the instrumentation after register allocation, I need to allocate general registers and predicates myself; for corner cases in allocatio

Scheduling problem

2007-10-08 Thread 袁立威
Hi, everyone I'm a guy working on IA64 with gcc version 4.1.1, and I need to do some instrumentation to do information flow tracking. Instrumentation is insert after register allocation and before the second scheduling, I suppose gcc will automatic maintain data flow, and it seems to be except on