Re: Modulo operation in C for -ve values

2007-11-15 Thread Alan Modra
On Fri, Nov 16, 2007 at 09:27:22AM +0530, Deepak Gaur wrote: > The Modulo operation as specified in > http://xenia.media.mit.edu/~bdenckla/thesis/texts/htthe/node13.html This is not the C % operator. google "ISO/IEC 9899:1999" for a clue. -- Alan Modra Australia Development Lab, IBM

Re: Bad unwinder data for __kernel_sigtramp_rt64 in PPC 64 vDSO corrupts Condition Register

2007-10-16 Thread Alan Modra
use a different size for cr as that would break unwinding through normal stack frames that save cr. -- Alan Modra Australia Development Lab, IBM

Re: ppc64 __attribute__((visibility ("hidden"))) and multiple TOCs

2007-06-25 Thread Alan Modra
-mminimal-toc. -mminimal-toc is actually orthogonal to the linker's toc splitting at file boundaries. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: Configure test hangs on powerpc64-linux

2006-11-26 Thread Alan Modra
igure ought to be able to test for a hang in ld. If that's too hard, then I suppose you could fail this test for powerpc64 based on ld version. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: BFD Error a regression?

2006-09-17 Thread Alan Modra
m OK here. I suspect ar or ranlib is trying to read an object file that hasn't been completely written. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: optimizing calling conventions for function return

2006-05-25 Thread Alan Modra
oided, particularly since the register restores can cause load-hit-store cache stalls. Both of these problems could be solved (at least for static functions) by some sort of partial function inlining. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: GCC 4.1 and R_PPC64_ADDR32 out of range

2006-04-26 Thread Alan Modra
> > jack_client_thread, client)) { > > return -1; > > } > > #endif > > ppc64 function pointers point to a function descriptor, which > specifies both the entry point and TOC for the function. > > I'm guessing the problem may be with the desriptor, but I'll bow out > now to let the PPC experts answer. But these don't use R_PPC64_ADDR32 relocs. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: Legitimacy of replacing divide-by-power-of-2 with right shifts.

2006-04-20 Thread Alan Modra
On Thu, Apr 20, 2006 at 04:52:14PM +0100, Dave Korn wrote: > Yet it would seem to me at first glance that, since dividing unsigned by an > exact power-of-2 can be optimised to a right shift, and since we can deduce You might like to build yourself a new compiler. :) 2006-04-19 Alan

Re: Qemu and GCC-3.4 on powerpc

2006-03-30 Thread Alan Modra
that the 3.4 branch > is definitely closed. I've not found anything remotely similar > from bugzilla. > > > > > But if I copy the function stl_le_p to a seperate file, the function > > will compile with GCC 3.4. Check preprocessor output. My guess is that you have some unexpected substitution. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: R_PPC_REL24 overflow

2006-03-30 Thread Alan Modra
ing at the wrong asm. unlock vs. lock (and underscore difference too). As rth said, you need R_PPC_PLTREL24. My guess is that you have some buggy asm somewhere lacking @plt on the call. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: Installing libgcj consumes huge amounts of memory

2005-12-04 Thread Alan Modra
On Sun, Dec 04, 2005 at 11:45:21AM +, Andrew Haley wrote: > Alan Modra writes: > > On Sun, Dec 04, 2005 at 12:35:31AM +0100, Gerald Pfeifer wrote: > > > spawns a recursive make (GNU make 3.80) that consumes some 450MB of > memory > > > and triggers a

Re: Installing libgcj consumes huge amounts of memory

2005-12-03 Thread Alan Modra
12MB + 1GB swap, this time running > FreeBSD 5.3, I cannot install GCC any longer. I noticed something similar on a Linux machine with 512M + 1G swap when remaking libjava after editing some files. Thrashing for around 15 minutes before finally proceeding. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: LEGITIMIZE_RELOAD_ADDRESS vs address_reloaded

2005-11-27 Thread Alan Modra
p] > > Overall, I'd tend to prefer something along the lines of (c), in > particular as it would also catch the cases where > LEGITIMIZE_RELOAD_ADDRESS isn't actually involved, as you note: Thanks. I went ahead and implemented this, and yes, the testcase in pr24997 has be

LEGITIMIZE_RELOAD_ADDRESS vs address_reloaded

2005-11-24 Thread Alan Modra
the reload substitution with a dummy reg. I fear this isn't proper, even though it seems to work.. (*) This is exactly what code in find_reloads_address does on encoutering invalid indexed address. The trouble is that its transformation isn't valid until the reloads are done, and we check

Re: overcoming info build failures

2005-11-23 Thread Alan Modra
building binutils. I found I needed to delete ${srcdir}/gas/doc/asconfig.texi and ${srcdir}/ld/configdoc.texi. "make clean" doesn't delete these files for you. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: [PowerPC] PR23774 stack backchain broken saga

2005-09-13 Thread Alan Modra
chain is written before updating sp. Hmm, on powerpc64-linux you could even alloc up to 288 bytes without an atomic update, since 288 bytes below the current sp is available for use. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: [PowerPC] PR23774 stack backchain broken saga

2005-09-09 Thread Alan Modra
On Fri, Sep 09, 2005 at 05:03:48PM -0700, Richard Henderson wrote: > On Sat, Sep 10, 2005 at 01:00:04AM +0930, Alan Modra wrote: > > 2) Next, I defined parallels to keep things together. Like the > > following, with another for DImode. > > This seems most reasonable to me. &

[PowerPC] PR23774 stack backchain broken saga

2005-09-09 Thread Alan Modra
+ (match_dup 3)) + (trap_if (const_int 2) (const_int 0))])] "" " { - rtx temp = gen_reg_rtx (Pmode); - int units_per_word = (TARGET_32BIT) ? 4 : 8; + int units_per_word = TARGET_32BIT ? 4 : 8; - /* Restore the backchain from the first word, sp from the second. */ - emit_move_insn (temp, - adjust_address_nv (operands[1], Pmode, 0)); - emit_move_insn (operands[0], - adjust_address_nv (operands[1], Pmode, units_per_word)); - emit_move_insn (gen_rtx_MEM (Pmode, operands[0]), temp); - DONE; + operands[2] = gen_reg_rtx (Pmode); + operands[3] = gen_reg_rtx (Pmode); + operands[1] = adjust_address_nv (operands[1], Pmode, 0); + operands[4] = adjust_address_nv (operands[1], Pmode, units_per_word); + /* We don't want the backchain write to be recognized as non-trapping, + so don't use gen_frame_mem here. */ + operands[5] = gen_rtx_MEM (Pmode, operands[3]); }") ;; TOC register handling. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: var_args for rs6000 backend

2005-09-06 Thread Alan Modra
On Wed, Sep 07, 2005 at 11:14:28AM +0800, Yao Qi qi wrote: > I just have to concentrate on ABI_V4 if I work on gcc develoment on > powerpc-linux, am I right ? Yes, and take care not to break code for the other ABIs. :-) Incidentally, powerpc64-linux is ABI_AIX. -- Alan Modra IBM

Re: [mainline/tree-profiling] CFG transparend finish_eh_generation

2005-09-02 Thread Alan Modra
On Fri, Sep 02, 2005 at 06:28:08PM +0930, Alan Modra wrote: > I propose using this instead: > > for (fn_begin = get_insns (); ; fn_begin = NEXT_INSN (fn_begin)) > if (NOTE_P (fn_begin) > && NOTE_LINE_NUMBER (fn_begin) == NOTE_INSN_FUNC

Re: [mainline/tree-profiling] CFG transparend finish_eh_generation

2005-09-02 Thread Alan Modra
_LINE_NUMBER (fn_begin) == NOTE_INSN_FUNCTION_BEG) > ! break; > ! emit_insn_after (seq, fn_begin); > ! } > } > > /* Call back from expand_function_end to know where we should put -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: [PATCH]: Proof-of-concept for dynamic format checking

2005-08-18 Thread Alan Modra
s%B %s%B %s%B %s%B %%%d%s%B%s%B %s%B%s%B %s%s%B%B %s%B%A%B %s%B%B %s%B%A%B %s%B%B%A %B%lx%lx%lx%A %u%s%B%u%B %s%lu%B%lu%B %B%s%s%B %B%s%A %X%s%A%B%A %B%lx%A %B%s%s%lx%A%lx It's a great pity that vfprintf doesn't return its va_list arg. If it did, you could chop the format string into pieces and have vprintf process the normal parts, consuming args as it goes. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: [PATCH]: Proof-of-concept for dynamic format checking

2005-08-18 Thread Alan Modra
. I couldn't think of a way to do that without incorporating a whole lot of knowledge about printf into the bfd function. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: [PATCH]: Proof-of-concept for dynamic format checking

2005-08-17 Thread Alan Modra
ror_handler ("section %d is called %A", sec, 1); -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: RFH: libgcc_s.so being unnecessarily linked for mipsel-linux crosscompiler...

2005-07-28 Thread Alan Modra
Forcing the sym local should cure it. > and rebuild the world. But that > would be much more work. > > David Daney. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: What is wrong with Bugzilla? [Was: Re: GCC and Floating-Point]

2005-05-31 Thread Alan Modra
wonder about even that; why do: > > > > 2004-02-07 Alan Modra <[EMAIL PROTECTED]> > > > > * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin- > > ldouble.c. > > > > powerpc64-*-linux*) > > Hmm... this is powerpc64. Yes. powerpc64-lin

Re: GCC 4.1: Buildable on GHz machines only?

2005-05-04 Thread Alan Modra
y. eg. string merging, relaxation. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: PowerPC 64 x 32 bits performance

2005-03-06 Thread Alan Modra
nt can be calculated in at most 2 instructions. A 64-bit address takes up to 5 instructions to calculate in-line, or a TOC memory load. -- Alan Modra IBM OzLabs - Linux Technology Centre

Re: Implicit altivec vs. linux kernel build

2005-02-27 Thread Alan Modra
for things that really do need to override other options. -- Alan Modra IBM OzLabs - Linux Technology Centre

<    1   2