Re: 32 bit jump instruction.

2006-12-12 Thread Ian Lance Taylor
"Rohit Arul Raj" <[EMAIL PROTECTED]> writes: > > If you can't afford to lose a register, then I think your only option > > is to pick some callee-saved register and have each branch instruction > > explicitly clobber it. Then it will be available for use in a long > > branch, and it will be avail

Re: 32 bit jump instruction.

2006-12-12 Thread Rohit Arul Raj
On 06 Dec 2006 23:13:35 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: David Daney <[EMAIL PROTECTED]> writes: > > I am working on a private target where jump instruction patterns are > > similiar to this > > > > jmp <24 bit offset> > > jmp for 32 bit offsets > > > > if my offset is greater

Re: [PATCH] Relocated compiler should not look in $prefix.

2006-12-12 Thread Mark Mitchell
Andrew Pinski wrote: > But other non user-visible changes are mentioned on changes.html already. > Forward prop in 4.3. > Incompatible changes to the build system in 4.2 which seems very related to > stuff like > this. If you want to make a patch, and Gerald approves it, it's fine by me. But, fw

Re: [PATCH] Relocated compiler should not look in $prefix.

2006-12-12 Thread Andrew Pinski
> > Andrew Pinski wrote: > >> What are the contents of t.c? What if you set GCC_EXEC_PREFIX? > > > > t.c: > > > > #include > > int main(void) > > { > > printf("Hello World\n"); > > return 0; > > } > > > > -- > > No I did not set GCC_EXEC_PREFIX as I did not know I have to set that now.

Re: [PATCH] Relocated compiler should not look in $prefix.

2006-12-12 Thread Mark Mitchell
Andrew Pinski wrote: >> What are the contents of t.c? What if you set GCC_EXEC_PREFIX? > > t.c: > > #include > int main(void) > { > printf("Hello World\n"); > return 0; > } > > -- > No I did not set GCC_EXEC_PREFIX as I did not know I have to set that now. > Seems like a change like this

Re: [PATCH] Relocated compiler should not look in $prefix.

2006-12-12 Thread Andrew Pinski
What are the contents of t.c? What if you set GCC_EXEC_PREFIX? t.c: #include int main(void) { printf("Hello World\n"); return 0; } -- No I did not set GCC_EXEC_PREFIX as I did not know I have to set that now. Seems like a change like this should be mentioned on http://gcc.gnu.org/gcc-4

Re: 32bit Calling conventions on linux/ppc.

2006-12-12 Thread Dale Johannesen
On Dec 12, 2006, at 12:07 PM, David Edelsohn wrote: Dale Johannesen writes: Dale> It may have been intended to allow the callee to be a K&R- style or Dale> varargs function, where all float args get promoted to double. Dale> In particular, printf was often called without being declared in

Re: 32bit Calling conventions on linux/ppc.

2006-12-12 Thread David Edelsohn
> Dale Johannesen writes: Dale> It may have been intended to allow the callee to be a K&R-style or Dale> varargs function, where all float args get promoted to double. Dale> In particular, printf was often called without being declared in K&R- Dale> era code. This is one way to make that c

Re: 32bit Calling conventions on linux/ppc.

2006-12-12 Thread Dale Johannesen
On Dec 12, 2006, at 11:42 AM, David Edelsohn wrote: Joslwah writes: Joslwah> Looking at the Linux 32bit PowerPC ABI spec, it appears to me that Joslwah> floats in excess of those that are passed in registers are supposed to Joslwah> be promoted to doubles and passed on the stack. Examin

Re: 32bit Calling conventions on linux/ppc.

2006-12-12 Thread David Edelsohn
> Joslwah writes: Joslwah> Looking at the Linux 32bit PowerPC ABI spec, it appears to me that Joslwah> floats in excess of those that are passed in registers are supposed to Joslwah> be promoted to doubles and passed on the stack. Examing the resulting Joslwah> stack from a gcc generated C c

Profiling broken in GCC 4.1.0 for DJGPP

2006-12-12 Thread Gordon . Schumacher
I've come across an issue with using the -pg switch for profiling on the DJGPP DOS platform, using GCC 4.1.0. After some digging through disassembly, I found that the part of the function prologue for main() before the call to mcount() is using the ECX register, and the call to the mcount() funct

Re: [PATCH] Relocated compiler should not look in $prefix.

2006-12-12 Thread Mark Mitchell
Andrew Pinski wrote: > On Fri, 2006-10-13 at 12:51 -0400, Carlos O'Donell wrote: >> A relocated compiler should not look in $prefix. >> Comments? >> OK for Stage1? > > I do have another issue with these set of patches which I did not notice > until today. > I can no longer do inside a just built G

gcc-4.2-20061212 is now available

2006-12-12 Thread gccadmin
Snapshot gcc-4.2-20061212 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.2-20061212/ 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: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Mark Kettenis
> Ian Lance Taylor writes: > > Andrew Haley <[EMAIL PROTECTED]> writes: > > > > > In practice, %ebp either points to a call frame -- not necessarily > the > > > most recent one -- or is null. I don't think that having an optional > > > frame pointer mees you can use %ebp for anything r

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Andrew Haley
Ian Lance Taylor writes: > Andrew Haley <[EMAIL PROTECTED]> writes: > > > In practice, %ebp either points to a call frame -- not necessarily the > > most recent one -- or is null. I don't think that having an optional > > frame pointer mees you can use %ebp for anything random at all, but we

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Ian Lance Taylor
Andrew Haley <[EMAIL PROTECTED]> writes: > In practice, %ebp either points to a call frame -- not necessarily the > most recent one -- or is null. I don't think that having an optional > frame pointer mees you can use %ebp for anything random at all, but we > need to make a clarification request

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Jakub Jelinek
On Tue, Dec 12, 2006 at 03:26:34PM +, Andrew Haley wrote: > Ulrich Drepper writes: > > Andrew Haley wrote: > > > Null-terminating the call stack is too well-established practice to be > > > changed now. > > > > Which does not mean that the mistake should hold people back. > > Sure it doe

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Jakub Jelinek
On Mon, Dec 11, 2006 at 02:40:22PM -0800, Roland McGrath wrote: > My reading is that the "ABI authoring body" for GNU systems or the > "compilation system authoring body" for GNU compilers already specifies > that the default rule is same_value for callee-saves registers (as chosen > by each partic

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Jan Kratochvil
On Tue, 12 Dec 2006 16:26:34 +0100, Andrew Haley wrote: ... > It's certainly an inconsistency in the specification, which says that > null-termination is supported, and this implies that you can't put a zero in > there. I tested now that you can put the zero there for both the libgcc unwinder and

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Ulrich Drepper
Andrew Haley wrote: Sure it does. Not breaking things is an excellent reason, probably one of the the best reasons you can have. Nothing breaks if the responsible tools are updated in unison. Really? Well, that's one interpretation. I don't believe that, though. It's certainly an inconsi

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Andrew Haley
Ulrich Drepper writes: > Andrew Haley wrote: > > Null-terminating the call stack is too well-established practice to be > > changed now. > > Which does not mean that the mistake should hold people back. Sure it does. Not breaking things is an excellent reason, probably one of the the best r

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Ulrich Drepper
Andrew Haley wrote: Null-terminating the call stack is too well-established practice to be changed now. Which does not mean that the mistake should hold people back. This is just one of the mistakes in the x86-64 ABI. It was copied from x86 and it was wrong there already. In practice, %

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Andrew Haley
Mark Kettenis writes: > > Jan Kratochvil writes: > > > > > currently (on x86_64) the gdb backtrace does not properly stop at > > > the outermost frame: > > > > > > #3 0x0036ddb0610a in start_thread () from > > /lib64/tls/libpthread.so.0 > > > #4 0x0036dd0c68c3 in clone

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Mark Kettenis
> Jan Kratochvil writes: > > > currently (on x86_64) the gdb backtrace does not properly stop at > > the outermost frame: > > > > #3 0x0036ddb0610a in start_thread () from > /lib64/tls/libpthread.so.0 > > #4 0x0036dd0c68c3 in clone () from /lib64/tls/libc.so.6 > > #5 0x

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Andrew Haley
Jan Kratochvil writes: > currently (on x86_64) the gdb backtrace does not properly stop at > the outermost frame: > > #3 0x0036ddb0610a in start_thread () from /lib64/tls/libpthread.so.0 > #4 0x0036dd0c68c3 in clone () from /lib64/tls/libc.so.6 > #5 0x in ?? () >