warning: source missing a mode?

2007-02-22 Thread Markus Franke
Dear GCC Developers, I have problems with a dlx backend, which I have ported to GCC 4.1.1. During compilation of gcc I get warnings about missing mode definitions in the machine description file. The following instruction template is affected: ---snip--- ;; ;; calls that return int in r1 ;; (defi

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-22 Thread H. J. Lu
On Tue, Feb 20, 2007 at 03:53:55PM -0800, Mark Mitchell wrote: > Richard Guenther wrote: > > >> This is 4.7% drop of SPECfp_base2006 ratio (geomean of individual FP > >> ratios). > > Clearly, 4.7% is significant. Grigory, thanks for the measurements! > > >> Here is the full set of changes in cp

Re: GCC 4.2.0 Status Report (2007-02-19)

2007-02-22 Thread Jakub Jelinek
On Wed, Feb 21, 2007 at 08:49:38AM -0800, Mark Mitchell wrote: > I don't know how to evaluate Danny B's claims that these things are > rare. We don't have nearly as a big a customer base as Red Hat or SuSE, > and our customer base compiles a different class of applications on > different hardware,

"Error: suffix or operands invalid for `push'" on 64bit boxes

2007-02-22 Thread Alok kataria
Hi, I was trying some inline assembly with gcc. Running the assembly program on 64 bit system ( with 64bit gcc version) gives errors of the form /tmp/cc28kO9v.s: Assembler messages: /tmp/cc28kO9v.s:57: Error: suffix or operands invalid for `push' But the same thing on 32bit runs perfectly fin

Re: "Error: suffix or operands invalid for `push'" on 64bit boxes

2007-02-22 Thread Richard Guenther
On 2/22/07, Alok kataria <[EMAIL PROTECTED]> wrote: Hi, I was trying some inline assembly with gcc. Running the assembly program on 64 bit system ( with 64bit gcc version) gives errors of the form /tmp/cc28kO9v.s: Assembler messages: /tmp/cc28kO9v.s:57: Error: suffix or operands invalid for `

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-22 Thread Grigory Zagorodnev
Mark Mitchell wrote: Excellent question; I should have asked for that as well. If 4.2 has gained on 4.1 in other respects, the 4.7% drop might represent a smaller regression relative to 4.1. There is the 4.2 (r120817) vs. 4.1.2 release FP performance comparison numbers. SPECfp_base2006 of gcc

Porting GCC/ GDB help ::Porting the configuration scripts

2007-02-22 Thread Mans
Hi i've been put into a project in which the GDB residing on the host machine should control the programs running on the target(wic has its (own made) specific processor); I am very much new into all this and as my first task : i have been assigned the task for porting the configuration scripts-

A combiner type optimization is causing a failure

2007-02-22 Thread Pranav Bhandarkar
Hello all, I added a small optimization which does the following . It converts a = a + 1 if ( a > 0 ) to if ( a > -1) a is a signed int. However this is causing 920612-1.c to fail, which is reproduced below for convenience. f(j)int j;{return++j>0;} main(){ if(f((~0U)>>1)) abort(); exit(0); } T

Re: A combiner type optimization is causing a failure

2007-02-22 Thread Paolo Bonzini
My question is that, IMO the test is checking overflow behaviour. Is it right to have such a test ? Would you care to prepare a patch that moved it under gcc.dg, adding a { dg-options "-O2 -fno-strict-overflow" } marker (or maybe "-O2 -fno-wrapv")? But your optimization should also be condi

Re: A combiner type optimization is causing a failure

2007-02-22 Thread Pranav Bhandarkar
On 2/22/07, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > My question is that, IMO the test is checking overflow behaviour. Is > it right to have such a test ? Would you care to prepare a patch that moved it under gcc.dg, adding a { dg-options "-O2 -fno-strict-overflow" } marker (or maybe "-O2 -fn

Re: reassociation pass and built-in functions

2007-02-22 Thread Daniel Berlin
On 2/20/07, Revital1 Eres <[EMAIL PROTECTED]> wrote: Hello, We saw that the reassociation pass does not operate on built-in functions, for example: vp3 = vec_madd (vp1, vp2, vp3); In the RTL level the function is expanded to regular insn: (insn 87 91 88 9 (set (reg/v:V4SF 217 [ vp3 ])

Re: warning: source missing a mode?

2007-02-22 Thread Ian Lance Taylor
Markus Franke <[EMAIL PROTECTED]> writes: > ---snip--- > ;; > ;; calls that return int in r1 > ;; > (define_insn "call_val_internal_return_r1" > [(parallel [(set (reg:SI 1) > (call (match_operand:QI 0 "sym_ref_mem_operand" "") > (match_operand 1 "" "i")))

Re: Porting GCC/ GDB help ::Porting the configuration scripts

2007-02-22 Thread Ian Lance Taylor
Mans <[EMAIL PROTECTED]> writes: > Hi i've been put into a project in which the GDB residing on the host machine > should control the programs running on the target(wic has its (own made) > specific processor); I am very much new into all this and as my first task > : i have been assigned the ta

Re: warning: source missing a mode?

2007-02-22 Thread Ian Lance Taylor
Markus Franke <[EMAIL PROTECTED]> writes: > thank you for your answer. Having changed the code in the way you > suggested I get still the same warning message. > Any further suggestions? Oh, yeah, you probably want to say call:SI too. Anyhow, the idea should be pretty obvious. Ian

Re: warning: source missing a mode?

2007-02-22 Thread Ian Lance Taylor
Markus Franke <[EMAIL PROTECTED]> writes: > thank you for your answer. Having changed the code in the way you > suggested I get still the same warning message. > Any further suggestions? Oh, yeah, you probably want to say call:SI too. Anyhow, the idea should be pretty obvious. Ian

Re: warning: source missing a mode?

2007-02-22 Thread Markus Franke
Hello, thank you for your answer. Having changed the code in the way you suggested I get still the same warning message. Any further suggestions? Regards, Markus Ian Lance Taylor wrote: > Markus Franke <[EMAIL PROTECTED]> writes: > > >>---snip--- >>;; >>;; calls that return int in r1 >>;; >>(d

Re: GCC 4.2.0 Status Report (2007-02-19)

2007-02-22 Thread Vladimir Makarov
Richard Guenther wrote: On 2/21/07, Mark Mitchell <[EMAIL PROTECTED]> wrote: To be honest, my instinct for the FSF is to take the 4% hit and get rid of this nasty class of bugs. Users measure compiler quality by more than just floating-point benchmarks; FP code is a relatively small (albeit

Re: warning: source missing a mode?

2007-02-22 Thread Markus Franke
Ian Lance Taylor wrote: > Oh, yeah, you probably want to say call:SI too. Yes I can do this and the warning message disappears. But now I get an internal error message about a non matching rtl expression when compiling a test program. Without "call:SI" I get warnings during compilation but the com

Re: warning: source missing a mode?

2007-02-22 Thread Ian Lance Taylor
Markus Franke <[EMAIL PROTECTED]> writes: > Ian Lance Taylor wrote: > > Oh, yeah, you probably want to say call:SI too. > > Yes I can do this and the warning message disappears. But now I get an > internal error message about a non matching rtl expression when > compiling a test program. Without

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-22 Thread Mark Mitchell
Grigory Zagorodnev wrote: > Mark Mitchell wrote: >> Excellent question; I should have asked for that as well. If 4.2 has >> gained on 4.1 in other respects, the 4.7% drop might represent a smaller >> regression relative to 4.1. >> > There is the 4.2 (r120817) vs. 4.1.2 release FP performance compa

Re: warning: source missing a mode?

2007-02-22 Thread Markus Franke
Ian Lance Taylor wrote: > Presumably the insn which doesn't match uses call with some mode other > than SI. What mode does it use? What generated that insn with some > other mode? Well, the internal compiler error message which is thrown looks like this: ---snip--- Processing file 2120-2.c

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-22 Thread Jan Hubicka
> Grigory Zagorodnev wrote: > > Mark Mitchell wrote: > >> Excellent question; I should have asked for that as well. If 4.2 has > >> gained on 4.1 in other respects, the 4.7% drop might represent a smaller > >> regression relative to 4.1. > >> > > There is the 4.2 (r120817) vs. 4.1.2 release FP per

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-22 Thread Vladimir Makarov
Jan Hubicka wrote: Grigory Zagorodnev wrote: Mark Mitchell wrote: Excellent question; I should have asked for that as well. If 4.2 has gained on 4.1 in other respects, the 4.7% drop might represent a smaller regression relative to 4.1. There is the 4.2 (r120817) vs. 4.1

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-22 Thread Mark Mitchell
Vladimir Makarov wrote: > I remember nocona tunning gave 30% improvement SPECFp2000 for Intel > nocona in 64 bit mode in comparison with the default x86_64 gcc tuning > (for k8). So such big improvement is definetly mostly from new > -mtune=generic. Well, then, lets get numbers for other targets

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-22 Thread Vladimir Makarov
Mark Mitchell wrote: Vladimir Makarov wrote: I remember nocona tunning gave 30% improvement SPECFp2000 for Intel nocona in 64 bit mode in comparison with the default x86_64 gcc tuning (for k8). So such big improvement is definetly mostly from new -mtune=generic. Well, then, lets get

RFC: Constructor and destructor priority attributes

2007-02-22 Thread Mark Mitchell
CodeSourcer's VxWorks toolchains support the following extension to __attribute__((constructor)): void f __attribute__((constructor (N))); The number provided is a constructor priority. These are treated exactly like the arguments to the C++ init_priority attribute, which allows control over

Re: RFC: Constructor and destructor priority attributes

2007-02-22 Thread Andrew Pinski
> > > CodeSourcer's VxWorks toolchains support the following extension to > __attribute__((constructor)): > > void f __attribute__((constructor (N))); > > I plan to merge this functionality to the GCC mainline. Does anyone > object to this feature, in principle? I think this is a great exte

ix86_data_alignment: bad defaults?

2007-02-22 Thread DJ Delorie
Why do we use 256 instead of BIGGEST ALIGNMENT in ix86_data_alignment? This is causing all sorts of build problems for djgpp, as I'm getting lots of warnings about too-big alignments, and with -Werror... Index: i386.c === --- i386.c

Re: ix86_data_alignment: bad defaults?

2007-02-22 Thread Jan Hubicka
> > Why do we use 256 instead of BIGGEST ALIGNMENT in ix86_data_alignment? > This is causing all sorts of build problems for djgpp, as I'm getting > lots of warnings about too-big alignments, and with -Werror... It is to improve performance of string functions on larger chunks of data. x86-64 sp

Re: ix86_data_alignment: bad defaults?

2007-02-22 Thread DJ Delorie
> It is to improve performance of string functions on larger chunks of > data. x86-64 specify this, for x86 it is optional. I don't think we > should end up warning here - it is done only for static variables where > the alignment can be higher than what BIGGEST_ALIGNMENT promise. Higher than B

Re: ix86_data_alignment: bad defaults?

2007-02-22 Thread Ian Lance Taylor
DJ Delorie <[EMAIL PROTECTED]> writes: > > It is to improve performance of string functions on larger chunks of > > data. x86-64 specify this, for x86 it is optional. I don't think we > > should end up warning here - it is done only for static variables where > > the alignment can be higher than

Re: ix86_data_alignment: bad defaults?

2007-02-22 Thread DJ Delorie
> Yes, BIGGEST_ALIGNMENT is supposed to be the biggest alignment the > compiler will ever use. Will ever use, or can ever use? Based on the code, it looks like "can ever use" - i.e. it's an edict to the compiler to not exceed that value, thus varasm warns when you exceed it. > So if ix86_data_a

Re: ix86_data_alignment: bad defaults?

2007-02-22 Thread Ian Lance Taylor
DJ Delorie <[EMAIL PROTECTED]> writes: > > Yes, BIGGEST_ALIGNMENT is supposed to be the biggest alignment the > > compiler will ever use. > > Will ever use, or can ever use? Based on the code, it looks like "can > ever use" - i.e. it's an edict to the compiler to not exceed that > value, thus va

Re: ix86_data_alignment: bad defaults?

2007-02-22 Thread Mike Stump
On Feb 22, 2007, at 5:20 PM, Ian Lance Taylor wrote: So if ix86_data_alignment wants to return 256 for some variable, then it seems to me that BIGGEST_ALIGNMENT should be 256. What if the object format doesn't allow recording alignments that high? For example, DJGPP's coff format can only reco

Re: ix86_data_alignment: bad defaults?

2007-02-22 Thread DJ Delorie
> For ELF, this would be 256, good. For pecoff, that would be smaller. Actually, I think pecoff supports larger alignments. DJGPP is plain COFF (similar to i386-coff).

Floating point insn dependency - GCC 4.1.1

2007-02-22 Thread Rohit Arul Raj
Hi all, I am adding floating point support to GCC 4.1.1 for a private target. My machine can issue (1) Two instructions, [one integer insns (16 bit) + one floating point insn (16 bit) ]or (2) one 32 bit integer insn. For case (1) , Since both instructions are executed parallely, there is no dep