gcc-4.4-20090313 is now available

2009-03-13 Thread gccadmin
Snapshot gcc-4.4-20090313 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20090313/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.4 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk

Re: how to report a bug which doesn't happen on the .ii file generated with -save-temps?

2009-03-13 Thread Francesco Montorsi
Hi, Ian Lance Taylor ha scritto: Francesco Montorsi writes: I'm new to GCC project so let me know if this is the wrong place where I can ask such a question. The mailing list gcc-h...@gcc.gnu.org would be a better place. ok, thanks for the info; I'll post there in future. However if I

Re: Constant folding and Constant propagation

2009-03-13 Thread Jean Christophe Beyler
I set up your patch and I get an internal error on this test program: extern void foo(int, int); extern int bar(void); int startup; void foobar() { int i; while(1) { if (bar()) { foo(0,0); } } } Here's the error: /home/beyler/cyclops64/src/tnt/kernel/process_manager/testn

Re: how to report a bug which doesn't happen on the .ii file generated with -save-temps?

2009-03-13 Thread Ian Lance Taylor
Francesco Montorsi writes: > I'm new to GCC project so let me know if this is the wrong place > where I can ask such a question. The mailing list gcc-h...@gcc.gnu.org would be a better place. > I've found a bug in Gcc 4.3.3 (on machine "Linux ubuntu > 2.6.28-9-generic #31-Ubuntu SMP Wed Mar

how to report a bug which doesn't happen on the .ii file generated with -save-temps?

2009-03-13 Thread Francesco Montorsi
Hi, I'm new to GCC project so let me know if this is the wrong place where I can ask such a question. I've found a bug in Gcc 4.3.3 (on machine "Linux ubuntu 2.6.28-9-generic #31-Ubuntu SMP Wed Mar 11 15:43:49 UTC 2009 x86_64 GNU/Linux") which I can reliably reproduce (just running "make")

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Toon Moene
Steven Bosscher wrote: On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther wrote: We have been asked by the SC to not branch for now but wait for the wording for the new runtime license to arrive from the FSF and that being put in place. This is the saddest thing that I have seen in GCC politi

sign/zero extension of function arguments on x86-64

2009-03-13 Thread Rafael Espindola
This is similar to the discussion that happened some time ago about extending return values. The decisions for that was that the callee could just leave the higher bits undefined and the caller would extent the result if it needed to. We have a similar issue with function arguments. We compile vo

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Laurent Desnogues
On Fri, Mar 13, 2009 at 6:06 PM, Paolo Bonzini wrote: > > So, I'd still need the information for arm and m68k, because that > information is about the bitfield instructions. For ARM, shifts by immediate use a 5-bit constant, shifts by register use the lower 8 bits of the register. For ARMv6T2/AR

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Hans-Peter Nilsson
> Date: Fri, 13 Mar 2009 12:34:49 +0100 > From: Paolo Bonzini > I would like to know whether for avr,bfin,cris,frv,h8300,pdp11,rs6000 > (which define SHIFT_COUNT_TRUNCATED as 0) and for mcore,sh,vax (which > do not define it at all) it is right that shift counts are never > truncated. The answer

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Joseph S. Myers
On Fri, 13 Mar 2009, Richard Guenther wrote: > Last time I sent a patch to remove the SHIFT_COUNT_TRUNCATED check > from fold-const.c the reason that this was rejected was that we want to > be consistend with target behavior... I would disagree with such a rejection. If we want to provide any so

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Joe Buck
On Fri, Mar 13, 2009 at 10:25:34AM -0700, Richard Guenther wrote: > The topmost sentence should be unambiguous. Yes, the SC asked us not > to branch. The request came from RMS, the SC just passed it on.

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Steven Bosscher
On Fri, Mar 13, 2009 at 7:03 PM, Joe Buck wrote: > On Fri, Mar 13, 2009 at 09:30:19AM -0700, Steven Bosscher wrote: >> On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther wrote: >> > We have been asked by the SC to not branch for now but wait for >> > the wording for the new runtime license to arri

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Andreas Schwab
Paolo Bonzini writes: > In addition, for arm and m68k I'd like to know whether bitfield > instructions truncate the bit position the same as shifts (8 bits for > arm, 6 bits for m68k). For the m68k bitfield insns (when operating on memory) the bit position can be in the full range of a signed 32

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Richard Guenther
On Fri, Mar 13, 2009 at 7:07 PM, Joseph S. Myers wrote: > On Fri, 13 Mar 2009, Richard Guenther wrote: > >> Hm.  In fold-const.c we try to make sure to produce the same result >> as the target would for constant-folding shifts.  Thus, Paolo, I think >> what fold-const.c does is what we should assu

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Joseph S. Myers
On Fri, 13 Mar 2009, Richard Guenther wrote: > Hm. In fold-const.c we try to make sure to produce the same result > as the target would for constant-folding shifts. Thus, Paolo, I think > what fold-const.c does is what we should assume for > !SHIFT_COUNT_TRUNCATED. No? I think attempting the s

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Joe Buck
On Fri, Mar 13, 2009 at 09:30:19AM -0700, Steven Bosscher wrote: > On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther wrote: > > We have been asked by the SC to not branch for now but wait for > > the wording for the new runtime license to arrive from the FSF and > > that being put in place. > > T

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Joseph S. Myers
On Fri, 13 Mar 2009, Steven Bosscher wrote: > Or what about branching now and starting the gcc 4.5 development > cycle? The argument against this, that the same changes will have to There might also be the temptation to create a trunk-substitute branch to receive Stage 1 developments and branch

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Paolo Bonzini
> Note, one thing I encountered when doing the SSE5 work at AMD, is > SHIFT_COUNT_TRUNCATED really needs a mode argument (and ideally should be > moved > into the gcc_target structure). In fact I'm reusing the TARGET_SHIFT_TRUNCATION_MASK element that is already there and accepts a mode. Paolo

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Paul Koning
> "Paolo" == Paolo Bonzini writes: Paolo> These are all the !SHIFT_COUNT_TRUNCATED targets. For 4.5 I Paolo> would like to improve our RTL canonicalization so that no Paolo> out-of-range shifts are ever in the RTL representation. Paolo> This in turn means that the description given by

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Steven Bosscher
On Fri, Mar 13, 2009 at 6:47 PM, Dave Korn wrote: > Steven Bosscher wrote: > >> Or ship as-is and fix the license for GCC 4.5.  I haven't followed the >> legal discussion -- so maybe I'm being naive or I've missed it -- but >> I haven't seen anyone explaining why this is not an option. > >  I can

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Dave Korn
Steven Bosscher wrote: > Or ship as-is and fix the license for GCC 4.5. I haven't followed the > legal discussion -- so maybe I'm being naive or I've missed it -- but > I haven't seen anyone explaining why this is not an option. I can see why that won't work. If there's a problem with the cur

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Dave Korn
Richard Guenther wrote: > On Fri, 13 Mar 2009, Dave Korn wrote: > On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther wrote: > We have been asked by the SC to not branch for now but wait for > > [...] > >> Can anyone clarify if the SC *really* need us to not branch before the >>

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Daniel Jacobowitz
On Fri, Mar 13, 2009 at 06:25:34PM +0100, Richard Guenther wrote: > On Fri, 13 Mar 2009, Dave Korn wrote: > > > >> On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther > > >> wrote: > > >>> We have been asked by the SC to not branch for now but wait for > > [...] > > > Can anyone clarify if the

RE: Understand BLKmode and returning structure in register.

2009-03-13 Thread Bingfeng Mei
I found that compiling for mips with -mabi=n32 produces such inefficient code. When -mabi=n32, mips_return_in_memory returns 0 if size is small regardless BLKmode or not. .type foo, @function foo: .frame $sp,16,$31 # vars= 16, regs= 0/0, args= 0, gp= 0 a

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Richard Guenther
On Fri, 13 Mar 2009, Janis Johnson wrote: > On Fri, 2009-03-13 at 17:04 +0100, Richard Guenther wrote: > > Status > > == > > > > The trunk is still in stage 4 which means it is open under the usual > > release branch rules. Thus the trunk is open for regression and > > documentation fixes on

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Janis Johnson
On Fri, 2009-03-13 at 17:04 +0100, Richard Guenther wrote: > Status > == > > The trunk is still in stage 4 which means it is open under the usual > release branch rules. Thus the trunk is open for regression and > documentation fixes only. What do you think about possibly-disruptive testsuit

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Richard Guenther
On Fri, 13 Mar 2009, Dave Korn wrote: > >> On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther > >> wrote: > >>> We have been asked by the SC to not branch for now but wait for [...] > Can anyone clarify if the SC *really* need us to not branch before the > license change, as opposed to merely

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Dave Korn
[resend to list only owing to running up against the spamfilter] Manuel López-Ibáñez wrote: > 2009/3/13 Steven Bosscher : >> On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther wrote: >>> We have been asked by the SC to not branch for now but wait for >>> the wording for the new runtime license to

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Steven Bosscher
On Fri, Mar 13, 2009 at 5:42 PM, Manuel López-Ibáñez wrote: > 2009/3/13 Steven Bosscher : >> On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther wrote: >>> We have been asked by the SC to not branch for now but wait for >>> the wording for the new runtime license to arrive from the FSF and >>> that

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Matt Thomas
On Mar 13, 2009, at 10:06 AM, Paolo Bonzini wrote: Hm. In fold-const.c we try to make sure to produce the same result as the target would for constant-folding shifts. Thus, Paolo, I think what fold-const.c does is what we should assume for !SHIFT_COUNT_TRUNCATED. No? Unfortunately it is

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Paolo Bonzini
>>> Hm. In fold-const.c we try to make sure to produce the same result >>> as the target would for constant-folding shifts. Thus, Paolo, I think >>> what fold-const.c does is what we should assume for >>> !SHIFT_COUNT_TRUNCATED. No? >> Unfortunately it is not so simple. fold-const.c is actuall

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Manuel López-Ibáñez
2009/3/13 Steven Bosscher : > On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther wrote: >> We have been asked by the SC to not branch for now but wait for >> the wording for the new runtime license to arrive from the FSF and >> that being put in place. > > This is the saddest thing that I have seen

Understand BLKmode and returning structure in register.

2009-03-13 Thread Bingfeng Mei
Hello, I came across an issue regarding BLKmode and returning structure in register. For following code, I try to return the structure in register instead of memory. extern void abort(); typedef struct { short x; short y; } COMPLEX; COMPLEX foo (void) __attribute__ ((noinline)); COMPLE

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Steven Bosscher
On Fri, Mar 13, 2009 at 5:04 PM, Richard Guenther wrote: > We have been asked by the SC to not branch for now but wait for > the wording for the new runtime license to arrive from the FSF and > that being put in place. This is the saddest thing that I have seen in GCC politics so far. Gr. Steven

Re: GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread DJ Delorie
Richard Guenther writes: > We have been asked by the SC to not branch for now but wait for > the wording for the new runtime license to arrive from the FSF and > that being put in place. We've been waiting a long time. At what point do we give up and branch anyway?

GCC 4.4.0 Status Report (2009-03-13)

2009-03-13 Thread Richard Guenther
Status == The trunk is still in stage 4 which means it is open under the usual release branch rules. Thus the trunk is open for regression and documentation fixes only. We have been asked by the SC to not branch for now but wait for the wording for the new runtime license to arrive from the

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Michael Meissner
On Fri, Mar 13, 2009 at 12:34:49PM +0100, Paolo Bonzini wrote: > These are all the !SHIFT_COUNT_TRUNCATED targets. > > For 4.5 I would like to improve our RTL canonicalization so that no > out-of-range shifts are ever in the RTL representation. > > This in turn means that the description given by

Re: recent regression on darwin

2009-03-13 Thread Kaveh R. GHAZI
On Thu, 12 Mar 2009, H.J. Lu wrote: > > Executing on host: > > /sw/src/fink.build/gcc44-4.3.999-20090312/darwin_objdir/gcc/xgcc > > -B/sw/src/fink.build/gcc44-4.3.999-20090312/darwin_objdir/gcc/ > > /sw/src/fink.build/gcc44-4.3.999-20090312/gcc-4.4 > > -20090312/gcc/testsuite/gcc.dg/asm-b.c   -

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Kaz Kojima
Paolo Bonzini wrote: > So you have that in the RTL stream we should canonicalize "a << 32" to > "a", but "a << (b & 31)" is not the same as "a << b"? Yes when the msb of b is set. > Also, how is the sign bit is significant? Does it determine whether the > value is left- or right-shifted? Yep

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Richard Guenther
On Fri, Mar 13, 2009 at 4:07 PM, Paolo Bonzini wrote: > >> Hm.  In fold-const.c we try to make sure to produce the same result >> as the target would for constant-folding shifts.  Thus, Paolo, I think >> what fold-const.c does is what we should assume for >> !SHIFT_COUNT_TRUNCATED.  No? > > Unfort

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Paolo Bonzini
> Hm. In fold-const.c we try to make sure to produce the same result > as the target would for constant-folding shifts. Thus, Paolo, I think > what fold-const.c does is what we should assume for > !SHIFT_COUNT_TRUNCATED. No? Unfortunately it is not so simple. fold-const.c is actually wrong, a

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Richard Guenther
On Fri, Mar 13, 2009 at 2:14 PM, Bernd Schmidt wrote: > Paolo Bonzini wrote: >> These are all the !SHIFT_COUNT_TRUNCATED targets. >> >> For 4.5 I would like to improve our RTL canonicalization so that no >> out-of-range shifts are ever in the RTL representation. >> >> This in turn means that the d

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Paolo Bonzini
> /* Immediate shift counts are truncated by the output routines (or was it >the assembler?). Shift counts in a register are truncated by SH. Note >that the native compiler puts too large (> 32) immediate shift counts >into a register and shifts by the register, letting the SH decide

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Richard Earnshaw
On Fri, 2009-03-13 at 12:34 +0100, Paolo Bonzini wrote: > These are all the !SHIFT_COUNT_TRUNCATED targets. > > For 4.5 I would like to improve our RTL canonicalization so that no > out-of-range shifts are ever in the RTL representation. > > This in turn means that the description given by SHIFT_

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Paolo Bonzini
> The Blackfin does not truncate shift counts. The documentation > specifies that e.g. for "Dx >>= Dy" instructions, shift counts greater > than 31 produce a result of zero. Other shift instructions use a sign > extended part of the shift count to shift either left or right. "I > don't know" is

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Paolo Bonzini
Ian Lance Taylor wrote: > Paolo Bonzini writes: > >> This in turn means that the description given by SHIFT_COUNT_TRUNCATED >> must be exact. Right now !SHIFT_COUNT_TRUNCATED means "I don't know", >> I want it to mean "it is never truncated". > > You need to do more work to make that happen, as

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Bernd Schmidt
Paolo Bonzini wrote: > These are all the !SHIFT_COUNT_TRUNCATED targets. > > For 4.5 I would like to improve our RTL canonicalization so that no > out-of-range shifts are ever in the RTL representation. > > This in turn means that the description given by SHIFT_COUNT_TRUNCATED > must be exact. R

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Ian Lance Taylor
Paolo Bonzini writes: > This in turn means that the description given by SHIFT_COUNT_TRUNCATED > must be exact. Right now !SHIFT_COUNT_TRUNCATED means "I don't know", > I want it to mean "it is never truncated". You need to do more work to make that happen, as SHIFT_COUNT_TRUNCATED applies to b

Re: help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Kaz Kojima
Paolo Bonzini wrote: > I would like to know whether for avr,bfin,cris,frv,h8300,pdp11,rs6000 > (which define SHIFT_COUNT_TRUNCATED as 0) and for mcore,sh,vax (which > do not define it at all) it is right that shift counts are never > truncated. sh defines SHIFT_COUNT_TRUNCATED according to target

Re: missing return statement

2009-03-13 Thread Dave Korn
Andreas Schwab wrote: > James Dennett writes: > >> This appears to be a difference between C and C++. Unfortunate. >> 6.6.3 [stmt.return]/2 of N2800 says "Flowing off the end of a function >> is equivalent to a return with no value; this results in undefined >> behavior in a value-returning func

[Cross toolchains] Multiarch and cross toolchains compatibility

2009-03-13 Thread Hector Oron
Hello, I have been discussing lately with other people about implementing a proof of concept for multiarch[1] (my objectives are to improve cross building), as I understand you already have a nice approach to cross building with-sysroot option, but I would like to know how much it this compatibl

help for arm avr bfin cris frv h8300 m68k mcore mmix pdp11 rs6000 sh vax

2009-03-13 Thread Paolo Bonzini
These are all the !SHIFT_COUNT_TRUNCATED targets. For 4.5 I would like to improve our RTL canonicalization so that no out-of-range shifts are ever in the RTL representation. This in turn means that the description given by SHIFT_COUNT_TRUNCATED must be exact. Right now !SHIFT_COUNT_TRUNCATED mea

ld fails to look under /usr/$arch-linux-gnu/lib64

2009-03-13 Thread Hector Oron
Hello I posted to binutils list as I guess it is an ld problem, but maybe some gcc people might be interested as well. -- Forwarded message -- From: Hector Oron Date: 2009/3/13 Subject: Re: ld fails to look under /usr/$arch-linux-gnu/lib64 To: binut...@sources.redhat.com Hello,

Re: missing return statement

2009-03-13 Thread Andreas Schwab
James Dennett writes: > This appears to be a difference between C and C++. Unfortunate. > 6.6.3 [stmt.return]/2 of N2800 says "Flowing off the end of a function > is equivalent to a return with no value; this results in undefined > behavior in a value-returning function." Since it's merely unde

Re: [lto] RFC: How should gimple represent enums?

2009-03-13 Thread Richard Guenther
On Thu, Mar 12, 2009 at 5:50 PM, Diego Novillo wrote: > On Thu, Mar 12, 2009 at 12:46, Steven Bosscher wrote: >> On Thu, Mar 12, 2009 at 5:36 PM, Diego Novillo wrote: >>> The temptation is to use C++'s limits, but I'm concerned that may >>> produce confusion somewhere down the line with the opti

Re: [PATCH] SMS - Pass the actual schedulable rows to compute_split_row

2009-03-13 Thread Ayal Zaks
Revital1 Eres/Haifa/IBM wrote on 13/03/2009 07:50:08: > Hello, > > > > Using testsuite/gcc.dg/sms-6.c as an example and compiling it for > > PowerPC, > > > node 18 (see attachment) is in a SCC and cannot be scheduled until > > spliting > > > twice. The MII = 20 and the schedule can only be found