SIGILL on Sparc

2009-10-06 Thread Piotr Wyderski
Hello, I have a problem with a (big) C++ program compiled with gcc 4.4.0 on a 64-bit Sparc. Target: sparc-sun-solaris2.10 Configured with: /opt/sources/gnu/gcc-4.4.0/configure --prefix=/opt/gnu/gcc-4.4.0 --with-local-prefix=/opt/gnu/gcc-4.4.0 --enable-threads=posix --with-cpu=ultrasparc3 --enabl

Re: i370 port - constructing compile script

2009-10-06 Thread Paul Edwards
Would you be able to give me the two suggested configure commands so that I can find out the answer to the above, one way or another? For step 2 (building the cross-compiler), you'd need something along the lines of .../configure --target=i370-mvs --prefix=... --with-sysroot=... \

Re: COMPONENT_REF problem ?

2009-10-06 Thread Richard Guenther
On Tue, Oct 6, 2009 at 3:00 AM, Pranav Bhandarkar wrote: > Richard, > >> If you are not working on trunk this can happen because the way >> MEM_EXPRs are "canonicalized". > > Thanks. Yes, I am not on trunk and may not be able to move right away. > I would appreciate some pointers about where I sho

Re: SIGILL on Sparc

2009-10-06 Thread Paolo Bonzini
The function SetCategory(v) returns void and simply assigns the value of v to a class member, so there are no trap conditions. TA, on the other hand, stands for "trap always", so the condition code is unimportant anyway. Why has the trap instruction been generated? Usually this is because you

Re: Is this code legal?

2009-10-06 Thread Paolo Bonzini
On 10/05/2009 09:29 PM, Sergey Sadovnikov wrote: Can anybody explain why line marked with '{*1}' produce this error message: I think it's because there is no constructor for array that takes an initializer_list. I get this message if I change your {*2} line to: std::array < wchar_t, sizeof.

Re: SIGILL on Sparc

2009-10-06 Thread Piotr Wyderski
Paolo Bonzini wrote: > Usually this is because you have code with undefined behavior, that the > compiler cannot make sense of. Yes, you were right, that was the case indeed. Thank you Paulo. Best regards Piotr Wyderski

new libstdc++-v3 decimal failures

2009-10-06 Thread Jack Howarth
Janis, We are seeing failures of the new decimal testcases on x86_64-apple-darwin10 which you committed into the libstdc++-v3 testsuite... FAIL: decimal/binary-arith.cc (test for excess errors) WARNING: decimal/binary-arith.cc compilation failed to produce executable FAIL: decimal/cast_neg.cc (

Re: i370 port - constructing compile script

2009-10-06 Thread Ulrich Weigand
Paul Edwards: > The failure (on 3.4.6, but not on 3.2.3) is that after the successful > build, when I do an xgcc -S, it produces the assembler file, and then > hangs. I traced this to gcc.c which was in a loop doing this: > > pid = pwait (commands[i].pid, &status, 0); > > getting a return of 0

Re: Turning off unrolling to certain loops

2009-10-06 Thread Jean Christophe Beyler
Yes, I'd be happy to look into how you did it or where you were up to. I don't know what I'll be able to do but it might lead me in the right direction and allow me to finish what you started. Thanks, Jc On Tue, Oct 6, 2009 at 2:53 AM, Zdenek Dvorak wrote: > Hi, > >> I was wondering if it was p

Re: i370 port - constructing compile script

2009-10-06 Thread Paul Edwards
The failure (on 3.4.6, but not on 3.2.3) is that after the successful build, when I do an xgcc -S, it produces the assembler file, and then hangs. I traced this to gcc.c which was in a loop doing this: pid = pwait (commands[i].pid, &status, 0); getting a return of 0 all the time, while the pr

Re: i370 port - constructing compile script

2009-10-06 Thread Ulrich Weigand
Paul Edwards wrote: > > Huh. I've never seen this before. Is this with your patches to > > generate a "single executable" or without? > > My patches are applied, but shouldn't be activated, because > I haven't defined SINGLE_EXECUTABLE. > > I could try taking it back to raw 3.4.6 though and se

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Janis Johnson
On Tue, 2009-10-06 at 09:04 -0400, Jack Howarth wrote: > Janis, >We are seeing failures of the new decimal testcases on > x86_64-apple-darwin10 > which you committed into the libstdc++-v3 testsuite... > > FAIL: decimal/binary-arith.cc (test for excess errors) > WARNING: decimal/binary-arith.c

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Janis Johnson
On Tue, 2009-10-06 at 09:10 -0700, Janis Johnson wrote: > On Tue, 2009-10-06 at 09:04 -0400, Jack Howarth wrote: > > Janis, > >We are seeing failures of the new decimal testcases on > > x86_64-apple-darwin10 > > which you committed into the libstdc++-v3 testsuite... > > > > FAIL: decimal/bina

Re: Request for code review - (ZEE patch : Redundant Zero extension elimination)

2009-10-06 Thread Sriraman Tallam
Hi Richard, I was wondering if you got a chance to see if this new patch is alright ?. Thanks, -Sriraman. On Thu, Oct 1, 2009 at 2:37 PM, Sriraman Tallam wrote: > Hi, > >      I moved implicit-zee.c to config/i386. Can you please take another look ? > >        * tree-pass.h (pass_implicit_z

Re: COMPONENT_REF problem ?

2009-10-06 Thread Pranav Bhandarkar
> Look at > > 2009-07-14  Richard Guenther   >            Andrey Belevantsev > >        * tree-ssa-alias.h (refs_may_alias_p_1): Declare. >        (pt_solution_set): Likewise. >        * tree-ssa-alias.c (refs_may_alias_p_1): Export. >        * tree-ssa-structalias.c (pt_solution_set): New functio

Re[2]: Is this code legal?

2009-10-06 Thread Sergey Sadovnikov
Hello, Paolo. Tuesday, October 6, 2009 at 2:05:10 PM you wrote: PB> On 10/05/2009 09:29 PM, Sergey Sadovnikov wrote: >> Can anybody explain why line marked with '{*1}' produce this error >> message: PB> I think it's because there is no constructor for array that takes an PB> initializer_list.

LTO: Speedup.

2009-10-06 Thread Toon Moene
L.S., On our weather forecasting code (compiled with -O3 -flto and linked with -O3 -flto -fwhole-program) I get a speedup of 65 seconds per time step in the model integration vs. 75 seconds with -O3 alone. That is a 10/75 ~ 13 % improvement. This compares favorably to an experiment I did bac

Re: LTO: Speedup.

2009-10-06 Thread Jan Hubicka
> L.S., > > On our weather forecasting code (compiled with -O3 -flto and linked with > -O3 -flto -fwhole-program) I get a speedup of 65 seconds per time step > in the model integration vs. 75 seconds with -O3 alone. There is bug making -fwhole-program disabled with LTO compilations. I hope to g

Re: LTO: Speedup.

2009-10-06 Thread Jan Hubicka
> > L.S., > > > > On our weather forecasting code (compiled with -O3 -flto and linked with > > -O3 -flto -fwhole-program) I get a speedup of 65 seconds per time step > > in the model integration vs. 75 seconds with -O3 alone. > > There is bug making -fwhole-program disabled with LTO compilation

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Jack Howarth
On Tue, Oct 06, 2009 at 09:44:42AM -0700, Janis Johnson wrote: > On Tue, 2009-10-06 at 09:10 -0700, Janis Johnson wrote: > > On Tue, 2009-10-06 at 09:04 -0400, Jack Howarth wrote: > > > Janis, > > >We are seeing failures of the new decimal testcases on > > > x86_64-apple-darwin10 > > > which y

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Janis Johnson
On Tue, 2009-10-06 at 18:19 -0400, Jack Howarth wrote: > On Tue, Oct 06, 2009 at 09:44:42AM -0700, Janis Johnson wrote: > > On Tue, 2009-10-06 at 09:10 -0700, Janis Johnson wrote: > > > On Tue, 2009-10-06 at 09:04 -0400, Jack Howarth wrote: > > > > Janis, > > > >We are seeing failures of the ne

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Benjamin Kosnik
Why do we have a libstdc++ list? For questions like this... > > > > FAIL: decimal/binary-arith.cc (test for excess errors) plus > However, the testsuite failures still occurs as follows... > > Executing on > host: /sw/src/fink.build/gcc45-4.4.999-20091005/darwin_objdir/./gcc/g++ > -shared-libg

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Jack Howarth
On Tue, Oct 06, 2009 at 03:30:34PM -0700, Janis Johnson wrote: > > Oh, maybe the libstdc++ tests don't support dg-require-effective-target. > > Janis Janis, Yes, doesn't it need something like... # Skip these tests for targets that don't support this extension. if { ![check_effective_target_

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Janis Johnson
On Tue, 2009-10-06 at 15:30 -0700, Janis Johnson wrote: > On Tue, 2009-10-06 at 18:19 -0400, Jack Howarth wrote: > > On Tue, Oct 06, 2009 at 09:44:42AM -0700, Janis Johnson wrote: > > > On Tue, 2009-10-06 at 09:10 -0700, Janis Johnson wrote: > > > > On Tue, 2009-10-06 at 09:04 -0400, Jack Howarth w

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Jack Howarth
On Tue, Oct 06, 2009 at 03:40:29PM -0700, Janis Johnson wrote: > > I spoke too soon. I'm now building a compiler with decimal float > disabled and will dig into this. > > Janis Janis, Don't you have to include something like gcc/testsuite/lib/target-supports.exp to be able to use check_effe

Re: Request for code review - (ZEE patch : Redundant Zero extension elimination)

2009-10-06 Thread Paolo Bonzini
On 10/01/2009 11:37 PM, Sriraman Tallam wrote: Hi, I moved implicit-zee.c to config/i386. Can you please take another look ? I think this patch is best reviewed by an x86 backend maintainer now. Thanks for doing the adjustments, BTW. Paolo

gcc-4.4-20091006 is now available

2009-10-06 Thread gccadmin
Snapshot gcc-4.4-20091006 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20091006/ 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/branches

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Jack Howarth
On Tue, Oct 06, 2009 at 03:34:30PM -0700, Benjamin Kosnik wrote: > > Why do we have a libstdc++ list? For questions like this... > Because this is a flaw in the libstdc++-v3 testsuite harness which obviously the core gcc testsuite handles properly. The other gcc developers might have an insight

Re: new libstdc++-v3 decimal failures

2009-10-06 Thread Janis Johnson
On Tue, 2009-10-06 at 18:56 -0400, Jack Howarth wrote: > On Tue, Oct 06, 2009 at 03:34:30PM -0700, Benjamin Kosnik wrote: > > > > Why do we have a libstdc++ list? For questions like this... > > > Because this is a flaw in the libstdc++-v3 testsuite harness > which obviously the core gcc testsui

Re: how to get the .dfa output file in gcc

2009-10-06 Thread Ben Elliston
On Sat, 2009-10-03 at 11:37 -0700, ddmetro wrote: > 1. In the initiate_automaton_gen() function of 'genautomata.c', initialize > the v_flag variable to 1 i.e., v_flag = 1; It should not be necessary to do this. Can you retry with the .md syntax? Ben

Collapsing control-flow that leads to undefined behavior

2009-10-06 Thread Charles J. Tabony
Fellow GCC developers, Does GCC make any effort to collapse control-flow that is guaranteed to have undefined behavior? Such an optimization would improve performance of Proc_2 from Dhrystone: typedef int One_Fifty; typedef enum{Ident_1, Ident_2, Ident_3, Ident_4, Ident_5}