Re: Division by zero

2007-02-10 Thread Jie Zhang
On 2/11/07, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > I'm going to use an asm (). Yeah, an asm volatile ("" : : "r" (x) : ) should please GCC and still be portable to different platforms. I thought using an asm () for each port to cause an exception specific for that port. Such that divide-b

Re: meaning of --enable-checking flags

2007-02-10 Thread Larry Evans
On 02/09/2007 12:18 PM, Larry Evans wrote: [snip] compiler. When just using --enable-checking=yes, I was able to use gdb to find that the value of __FILE__ was corrupted: (gdb) up #1 0x0809e6eb in tsubst (t=0x4034f8a0, args=0x40351ca8, complain=3, in_decl=0x4032eea0) at ../../gcc-4.1.1/gcc

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Dominique Dhumieres
The discussion is becoming to technical for me. Let me just say that adding --build=%m-apple-darwin`uname -r|cut -f1 -d.` to config allowed me to build gcc without further glitch. I guess it will do no harm to keep this addition even if it becomes no longer necessary. Thanks for the help Dominiq

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Daniel Jacobowitz
On Sat, Feb 10, 2007 at 06:59:35PM +0100, Paolo Bonzini wrote: > > >This seems horribly wrong somehow. Aren't we intested in the ${build} > >-> ${host} compiler at this point anyway? So shouldn't we be testing > >it? I think the whole block can go. > > Hmm, it says indeed "this is going to cha

Re: Inserting profiling function calls

2007-02-10 Thread Michael Gong
- Original Message - From: "Frank Ch. Eigler" <[EMAIL PROTECTED]> To: "Michael Gong" <[EMAIL PROTECTED]> Cc: "GERIN Patrice" <[EMAIL PROTECTED]>; "Jan Hubicka" <[EMAIL PROTECTED]>; Sent: Saturday, February 10, 2007 10:21 AM Subject: Re: Inserting profiling function calls "Michael

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Paolo Bonzini
This seems horribly wrong somehow. Aren't we intested in the ${build} -> ${host} compiler at this point anyway? So shouldn't we be testing it? I think the whole block can go. Hmm, it says indeed "this is going to change when we autoconfiscate". Something like this? Index: configure.ac ==

Re: Seeking advice on front ends

2007-02-10 Thread Rafael EspĂ­ndola
Did I miss anything? What are the relative advantages of each solutions? Do you think that I overlooked other options? Would using an exiting virtual machine be a good option? Except for Nice, this option doesn't seem to be popular; there must be a catch. You might want to have a look at the

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Daniel Jacobowitz
On Sat, Feb 10, 2007 at 05:08:10PM +0100, Paolo Bonzini wrote: > > >if test ${build} != ${host}; then > > some defaults > >else > > AC_PROG_CC > >fi > > > >AC_TRY_COMPILE > > > >ac_objext is set at the expansion of AC_PROG_CC and if you take the if > >branch, it never gets set. > > > >Does anyon

Re: Division by zero

2007-02-10 Thread Paolo Bonzini
I'm going to use an asm (). Yeah, an asm volatile ("" : : "r" (x) : ) should please GCC and still be portable to different platforms. Paolo

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Paolo Bonzini
if test ${build} != ${host}; then some defaults else AC_PROG_CC fi AC_TRY_COMPILE ac_objext is set at the expansion of AC_PROG_CC and if you take the if branch, it never gets set. Does anyone reading this know what the right thing to do is? Is there anything in the autoconf documentation

Re: Inserting profiling function calls

2007-02-10 Thread Frank Ch. Eigler
"Michael Gong" <[EMAIL PROTECTED]> writes: > I don't know about inserting call at the basic block level, but I am > quite sure inserting calls at the function level could be done by > aspect-oriented-programming (AOP). [...] Another possibility, coming soon[1], is to use systemtap[2] probes: %

Re: Division by zero

2007-02-10 Thread Jie Zhang
On 2/10/07, Steven Bosscher <[EMAIL PROTECTED]> wrote: On 2/10/07, Jie Zhang <[EMAIL PROTECTED]> wrote: > The code I posted in my first email is from libgloss/libnosys/_exit.c. > It's used to cause an exception deliberately. From your replies, it > seems it should find another way to do that. Ma

Re: Division by zero

2007-02-10 Thread Jie Zhang
On 2/10/07, Robert Dewar <[EMAIL PROTECTED]> wrote: Jie Zhang wrote: > The code I posted in my first email is from libgloss/libnosys/_exit.c. > It's used to cause an exception deliberately. From your replies, it > seems it should find another way to do that. Any code that tries to raise an exce

Re: Division by zero

2007-02-10 Thread Robert Dewar
Jie Zhang wrote: The code I posted in my first email is from libgloss/libnosys/_exit.c. It's used to cause an exception deliberately. From your replies, it seems it should find another way to do that. Any code that tries to raise an exception deliberately is certainly depending on undefined be

Re: Division by zero

2007-02-10 Thread Steven Bosscher
On 2/10/07, Jie Zhang <[EMAIL PROTECTED]> wrote: The code I posted in my first email is from libgloss/libnosys/_exit.c. It's used to cause an exception deliberately. From your replies, it seems it should find another way to do that. Maybe you can use __builtin_trap() ? Gr. Steven

Re: Division by zero

2007-02-10 Thread Jie Zhang
On 2/10/07, Robert Dewar <[EMAIL PROTECTED]> wrote: Ian Lance Taylor wrote: > "Jie Zhang" <[EMAIL PROTECTED]> writes: > >> But now gcc seems to optimize it away. For the following function: >> >> $ cat t.c >> #include >> void foo (int rc) >> { >> int x = rc / INT_MAX; >> x = 4 / x; >> } > >

Re: Division by zero

2007-02-10 Thread Robert Dewar
Ian Lance Taylor wrote: "Jie Zhang" <[EMAIL PROTECTED]> writes: But now gcc seems to optimize it away. For the following function: $ cat t.c #include void foo (int rc) { int x = rc / INT_MAX; x = 4 / x; } I believe we still keep division by zero in general. In your example it gets opti

Re: GCC 4.1.2 RC2

2007-02-10 Thread Laurent GUERBY
On Fri, 2007-02-09 at 13:36 -0800, Mark Mitchell wrote: > GCC 4.1.2 RC2 is now available from: > > ftp://gcc.gnu.org/pub/gcc/prerelease-4.1.2-20070208 > > and its mirrors. On a recent ubuntu x86_64 system, with c,ada,c++,fortran,java,objc: http://gcc.gnu.org/ml/gcc-testresults/2007-02/msg00377.

Re: US Daylight Savings Time Changes

2007-02-10 Thread Andrew Haley
Joe Buck writes: > On Sat, Feb 10, 2007 at 12:49:56AM -0500, David Edelsohn wrote: > > > Tom Tromey writes: > > > > Tom> David probably knows this, but for others, Jakub and Andrew put in a > > Tom> patch for this today. I think it is only on trunk, not any other > > Tom> branches. > >

Re: which opt. flags go where? - references

2007-02-10 Thread Ronny Peine
Hi, Am Donnerstag, 8. Februar 2007 13:18 schrieben Sie: > Thank you very much. After reading the abstract, I'm highly > interested in this work, because they also use GCC and SPEC CPU2000, > as I'm planning to do... > > Which benchmarks did you test on? I testet it on freebench-1.03, nbench-byte-2

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Dominique Dhumieres
I have written: > Would something like > --build=%m-apple-darwin`uname -r|cut -f1 -d.` > work? Apparently it works. Thanks Dominique

Re: problem building gcc4-4.3.0-20070209

2007-02-10 Thread Dominique Dhumieres
Daniel, Thanks for the answer. > You need to show us your configure arguments to be sure. I bet > you're specifying just --host. You are right, the configure I am using since some time is: ConfigureParams: --prefix=%p/lib/gcc4 --disable-multilib --enable-languages=c,c++,fortran,objc,java --in