How to implement the instruction in the back end

2008-05-07 Thread Mohamed Shafi
Hello all, For the 16-bit target that i porting now to gcc 4.1.2 doesn't have any branch instructions. It only has jump instructions. For comparison operation it has this instruction: if cond Rx Ry execute this insn So compare and branch is implemented as if cond Rx Ry jmp Label This instru

Re: Use of option -fprofile-arcs is not compatible with -fprofile-use

2008-05-07 Thread Lijuan Hai
sorry that I couldn't re-produce the warning as you said. micro# /import/dr3/s10/gcc-4.2/bin/gcc val-prof-1.c -fprofile-arcs -g -o val-prof-1.x1 micro# /import/dr3/s10/gcc-4.2/bin/gcc -v Using built-in specs. Target: sparc-sun-solaris2.10 Configured with: /import/dr2/starlex/1/gcc-4.2-20070228/con

gcc-4.2-20080507 is now available

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

Re: Bad code generation on HPPA platform

2008-05-07 Thread Peter Bergner
On Wed, 2008-05-07 at 11:03 -0700, Steve Ellcey wrote: > > Can you please also add the replacement hunk from: > > > > o;?http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00693.html > > > > If the first part gets backported, I'd like the second hunk to > > go along with it if possible. Thanks. > >

Re: Bad code generation on HPPA platform

2008-05-07 Thread Steve Ellcey
> Can you please also add the replacement hunk from: > > http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00693.html > > If the first part gets backported, I'd like the second hunk to > go along with it if possible. Thanks. > > Peter I was wondering about that patch since it seems to be relat

Re: Bad code generation on HPPA platform

2008-05-07 Thread Peter Bergner
On Wed, 2008-05-07 at 10:10 -0700, Steve Ellcey wrote: > Yes, it looks like it is. I added -fno-strict-aliasing and the perl > benchmarks passed when compiled with ToT GCC. That makes me feel better > about the idea of putting Peter's patch (with the revert) on the 4.3 > branch as a way to fix th

Re: Bad code generation on HPPA platform

2008-05-07 Thread Steve Ellcey
> Hi Steve, > > Is your perl test problem the same as > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33383 > > > H.J. Yes, it looks like it is. I added -fno-strict-aliasing and the perl benchmarks passed when compiled with ToT GCC. That makes me feel better about the idea of putting Peter's

Re: Bad code generation on HPPA platform

2008-05-07 Thread H.J. Lu
On Wed, May 7, 2008 at 9:21 AM, Steve Ellcey <[EMAIL PROTECTED]> wrote: > > From: Peter Bergner <[EMAIL PROTECTED]> > > > > > > On Wed, 2008-05-07 at 07:45 -0700, Steve Ellcey wrote: > > > I have found that this problem does not occur on the ToT sources and > > > that the problem went away with

Re: Bad code generation on HPPA platform

2008-05-07 Thread Steve Ellcey
> From: Peter Bergner <[EMAIL PROTECTED]> > > On Wed, 2008-05-07 at 07:45 -0700, Steve Ellcey wrote: > > I have found that this problem does not occur on the ToT sources and > > that the problem went away with this patch: > > > > 2008-04-07 Peter Bergner <[EMAIL PROTECTED]> > > > >PR

Re: Bad code generation on HPPA platform

2008-05-07 Thread Peter Bergner
On Wed, 2008-05-07 at 07:45 -0700, Steve Ellcey wrote: > I have found that this problem does not occur on the ToT sources and > that the problem went away with this patch: > > 2008-04-07 Peter Bergner <[EMAIL PROTECTED]> > >PR middle-end/PR28690 >* rtlanal.c: Update copyright

Re: Use of option -fprofile-arcs is not compatible with -fprofile-use

2008-05-07 Thread Edmar Wienskoski-RA8797
I said if you compile val-prof-1.c the same way bprob-1.c is compiled you get an warning. gcc -g -fprofile-arcs val-prof-1.c -o val-prof-1.x1 Lijuan Hai wrote: seen in gcc-4.2, gcc.misc-tests/bprob-1.c is compiled with -fprofile-arcs and -fbranch-probabilities. gcc.dg/tree-prof/val-prof-1.c

Re: Bad code generation on HPPA platform

2008-05-07 Thread Steve Ellcey
> Steve Ellcey wrote: > > I am investigating a bad code generation bug on the 64 bit HPPA platform > > with GCC 4.3.0 and would like some help and/or ideas on how to analyze > > and fix it. The failing test is the SPEC 2000 GCC benchmark (version > > 2.7.2.2) and I have been unable to create a sma

Re: all-target-libstdc++-v3 broken again

2008-05-07 Thread Gerald Pfeifer
Similarly on i386-unknown-freebsd6.2 which had the same build failure mode and also seems fine again. Thanks, Gerald

Re: Test Coverage not on whole execution (gcov)

2008-05-07 Thread Fabien Baron
Thank you for your answer. But I want to know if it is possible to start the program, to break it and set a flag (or something like that) to start coverage counter. Then resume the execution to have a coverage count. The aim of that is to count the number of line executed when one special action