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
use a different size for cr as that would break unwinding through
normal stack frames that save cr.
--
Alan Modra
Australia Development Lab, IBM
-mminimal-toc. -mminimal-toc is actually
orthogonal to the linker's toc splitting at file boundaries.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
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
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
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
> > 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
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
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
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
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
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
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
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
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
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
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.
&
+ (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
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
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
_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
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
. 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
ror_handler ("section %d is called %A", sec, 1);
--
Alan Modra
IBM OzLabs - Linux Technology Centre
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
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
y. eg. string merging, relaxation.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
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
for things that really do need
to override other options.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
101 - 129 of 129 matches
Mail list logo