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: 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: 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: Is this power gcc bug?

2013-03-29 Thread Alan Modra
of > unsigned long 64. Nope, unsigned long is 32 bits for -m32. -- Alan Modra Australia Development Lab, IBM

Re: Excessive calls to iterate_phdr during exception handling

2013-05-27 Thread Alan Modra
nd_Find_registered_FDE is to support an older method of finding FDEs. Newer executables and shared libraries on linux will use PT_GNU_EH_FRAME, so don't expect _Unwind_Find_registered_FDE to do anything except waste time! google eh_frame_hdr for more info. C++ and threading is a minefield. --

Re: Excessive calls to iterate_phdr during exception handling

2013-05-28 Thread Alan Modra
n dlopen/dlclose happens in another thread. To be clear, I'm talking about a dlclose on an object that your thread doesn't access. Such a dlclose shouldn't affect your thread in any way. But if glibc's list of loaded objects was allowed to change while your thread was running dl_iterate_phdr, then dl_iterate_phdr could potentially read freed list entries. -- Alan Modra Australia Development Lab, IBM

[RS6000] strict alignment for little-endian

2013-06-06 Thread Alan Modra
C "" -#defineCC1_ENDIAN_LITTLE_SPEC "\ -%{!mstrict-align: %{!mno-strict-align: \ -%{!mcall-i960-old: \ - -mstrict-align \ -} \ -}}" +#defineCC1_ENDIAN_LITTLE_SPEC "" #defineCC1_ENDIAN_DEFAULT_SPEC "%(cc1_endian_big)" -- Alan Modra Australia Development Lab, IBM

lower-subreg and IBM long double

2013-06-10 Thread Alan Modra
cc/doc/tm.texi.in === --- gcc/doc/tm.texi.in (revision 199781) +++ gcc/doc/tm.texi.in (working copy) @@ -6375,6 +6375,12 @@ registers on machines with lots of registers. @end deftypefn +@hook TARGET_INIT_LOWER_SUBREG +This hook al

Re: lower-subreg and IBM long double

2013-06-10 Thread Alan Modra
On Mon, Jun 10, 2013 at 06:31:55PM -0700, Andrew Pinski wrote: > On Mon, Jun 10, 2013 at 6:00 PM, David Edelsohn wrote: > > On Mon, Jun 10, 2013 at 8:26 PM, Alan Modra wrote: > > > >> The following patch disables lower-subreg for double double TFmode, > >> boot

Re: g++ -Wl,--as-needed -pthread behaviour

2013-09-23 Thread Alan Modra
readed" should continue to use weak references. Solving the problem with --as-needed and libstdc++.so isn't so easy. One solution might be to split off thread support from libstdc++.so.6. Otherwise we'd need to solve the transitive reference somehow. ie. Teach the linker that a

Re: g++ -Wl,--as-needed -pthread behaviour

2013-09-24 Thread Alan Modra
On Tue, Sep 24, 2013 at 01:13:53PM +0100, Jonathan Wakely wrote: > On 24 September 2013 02:22, Alan Modra wrote: > > > > Try compiling that testcase with -static rather than -Wl,--as-needed. > > You'll hit std::system_error just like you do here. I believe that is >

Re: rs6000: load_multiple code

2013-11-22 Thread Alan Modra
On Fri, Nov 22, 2013 at 09:31:18AM +, Paulo Matos wrote: > > From: Alan Modra [mailto:amo...@gmail.com] > > On Wed, Nov 20, 2013 at 05:06:13PM +, Paulo Matos wrote: > > > I am looking into how rs6000 implements load multiple code > > [snip] > > &g

Re: gcc's obvious patch policy

2013-11-26 Thread Alan Modra
On Tue, Nov 26, 2013 at 10:01:23AM +0100, Steven Bosscher wrote: > On Tue, Nov 26, 2013 at 6:17 AM, Alan Modra wrote: > > Was Re: [buildrobot] [PATCH] mips: Really remove ENTRY_BLOCK_PTR > > On Wed, Nov 20, 2013 at 10:08:45AM +0100, Steven Bosscher wrote: > >> This patch

Re: A case where PHI-OPT pessimizes the code

2012-04-23 Thread Alan Modra
& cst) >> a; Other targets would probably benefit too. -- Alan Modra Australia Development Lab, IBM

Re: A case where PHI-OPT pessimizes the code

2012-04-23 Thread Alan Modra
On Mon, Apr 23, 2012 at 06:07:52PM +0200, Steven Bosscher wrote: > On Mon, Apr 23, 2012 at 4:43 PM, Alan Modra wrote: > > On Mon, Apr 23, 2012 at 02:50:13PM +0200, Steven Bosscher wrote: > >> csui = (ONEUL << a); > >> b = ((csui & cst) != 0); > &g

PR53914, rs6000 constraints and reload queries

2012-07-17 Thread Alan Modra
ot;*,load,store,*,*,*,fp,fpload,fpstore,mfjmpr,mtjmpr,*,vecsimple") + [(set_attr "type" "store,load,*,*,*,*,fp,fpload,fpstore,mfjmpr,mtjmpr,*,vecsimple") (set_attr "length" "4,4,4,4,4,20,4,4,4,4,4,4,4")]) ;; immediate value valid for a single instruction hiding in a const

Re: PR53914, rs6000 constraints and reload queries

2012-08-01 Thread Alan Modra
traint everywhere. For example, long long llo (long long *x) { return x[4095]; } will generate better powerpc -m32 -O2 code with your patch applied, I think. -- Alan Modra Australia Development Lab, IBM

Re: [PATCH] rs6000: Disable generation of lwa in 32-bit mode

2012-10-27 Thread Alan Modra
x27;t it? -- Alan Modra Australia Development Lab, IBM

Re: Possible GCC 4.3 driver regression caused by your patch

2008-03-02 Thread Alan Modra
ler on a native host without too much trouble. -- Alan Modra Australia Development Lab, IBM

Re: Linking very large application with GCC trunk on powerpc-linux leads to relocation error of crtbegin/end.o

2008-06-16 Thread Alan Modra
he destructor function run from .fini and crtend.o defines the constructor run from .init. It really should be the other way around, since this arrangement results in maximmum offset branches, from the .init section located before .text to a function at the end of .text, and from the .fini section located

Re: Linking very large application with GCC trunk on powerpc-linux leads to relocation error of crtbegin/end.o

2008-06-30 Thread Alan Modra
ing sections are handled specially by elf32.em. */ *(.gnu.warning) ${RELOCATING+${OTHER_TEXT_SECTIONS}} } =${NOP-0} -- Alan Modra Australia Development Lab, IBM

Re: Linking very large application with GCC trunk on powerpc-linux leads to relocation error of crtbegin/end.o

2008-08-06 Thread Alan Modra
Found it, finally. powerpc ld --relax had a bug affecting -fPIC code. See http://sourceware.org/ml/binutils/2008-08/msg00040.html -- 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: 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: 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: Modifying RTL cost model to know about long-latency loads

2020-04-11 Thread Alan Modra via Gcc
e (const_int) in another reg first then change the expression to (op (reg) (reg2)). Other places, eg. rtlanal.c:seq_cost do pass the entire SET. -- Alan Modra Australia Development Lab, IBM

Re: Transitioning to a new Xtensa Port Maintainer

2020-05-28 Thread Alan Modra via Gcc
so you could simply leave your name in binutils/MAINTAINERS where it is but put Max on the line before your entry. -- Alan Modra Australia Development Lab, IBM

Re: [RFC][top-level] Add configure test-case

2022-11-07 Thread Alan Modra via Gcc
On Mon, Nov 07, 2022 at 06:23:45PM +, Joseph Myers wrote: > On Mon, 7 Nov 2022, Alan Modra via Binutils wrote: > > > a) that top-level binutils/gdb patches don't get applied to the gcc > >git repository in a timely manner, or > > If a toplevel patch is appr

Re: CREL relocation format for ELF (was: RELLEB)

2024-03-28 Thread Alan Modra via Gcc
Your thoughts on RELLEB are welcome! Does anyone really care about relocatable object file size? If they do, wouldn't they be better off using a compressed file system? -- Alan Modra Australia Development Lab, IBM

<    1   2