Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Alan Modra
On Thu, Feb 12, 2015 at 06:55:30PM -0500, Rich Felker wrote: > On Fri, Feb 13, 2015 at 10:12:11AM +1030, Alan Modra wrote: > > I posted support for TLSDESC on powerpc back in 2009 (search for > > powerpc _tls_get_addr call optimization). The patch wasn't reviewed, > > and I didn't push it because

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Rich Felker
On Fri, Feb 13, 2015 at 10:12:11AM +1030, Alan Modra wrote: > On Thu, Feb 12, 2015 at 12:07:24PM -0500, Rich Felker wrote: > > On Thu, Feb 12, 2015 at 08:56:26AM -0800, H.J. Lu wrote: > > > On Thu, Feb 12, 2015 at 8:11 AM, Jakub Jelinek wrote: > > > > On Thu, Feb 12, 2015 at 11:09:59AM -0500, Rich

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Alan Modra
On Thu, Feb 12, 2015 at 12:07:24PM -0500, Rich Felker wrote: > On Thu, Feb 12, 2015 at 08:56:26AM -0800, H.J. Lu wrote: > > On Thu, Feb 12, 2015 at 8:11 AM, Jakub Jelinek wrote: > > > On Thu, Feb 12, 2015 at 11:09:59AM -0500, Rich Felker wrote: > > >> On Thu, Feb 12, 2015 at 04:18:57PM +0100, Ulri

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Rich Felker
On Thu, Feb 12, 2015 at 06:23:12PM +, Andrew Haley wrote: > On 02/12/2015 04:16 PM, Rich Felker wrote: > > On Thu, Feb 12, 2015 at 05:11:45PM +0100, Jakub Jelinek wrote: > >> On Thu, Feb 12, 2015 at 11:09:59AM -0500, Rich Felker wrote: > >>> > >>> This usage is supposed to be deprecated. Why is

Re: Postpone expanding va_arg until pass_stdarg

2015-02-12 Thread Tom de Vries
On 12-02-15 14:57, Michael Matz wrote: Hi, On Wed, 11 Feb 2015, Tom de Vries wrote: My idea was to not generate temporaries and hence copies for non-scalar types, but rather construct the "result" of va_arg directly into the original LHS (that would then also trivially solve the problem of nno

gcc-4.8-20150212 is now available

2015-02-12 Thread gccadmin
Snapshot gcc-4.8-20150212 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.8-20150212/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.8 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Andrew Haley
On 02/12/2015 04:16 PM, Rich Felker wrote: > On Thu, Feb 12, 2015 at 05:11:45PM +0100, Jakub Jelinek wrote: >> On Thu, Feb 12, 2015 at 11:09:59AM -0500, Rich Felker wrote: >>> >>> This usage is supposed to be deprecated. Why isn't libgomp using >>> TLSDESC/gnu2 model? >> >> Because it is significan

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Rich Felker
On Thu, Feb 12, 2015 at 08:56:26AM -0800, H.J. Lu wrote: > On Thu, Feb 12, 2015 at 8:11 AM, Jakub Jelinek wrote: > > On Thu, Feb 12, 2015 at 11:09:59AM -0500, Rich Felker wrote: > >> On Thu, Feb 12, 2015 at 04:18:57PM +0100, Ulrich Weigand wrote: > >> > Hello, > >> > > >> > we're running into a pr

Re: Function outlining and partial Inlining

2015-02-12 Thread Jan Hubicka
> Hello All: > > The large functions are the important part of high performance application. > They contribute to performance bottleneck with many > respect. Some of the large hot functions are frequently executed but many > regions inside the functions are cold regions. The large > Function blo

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread H.J. Lu
On Thu, Feb 12, 2015 at 8:11 AM, Jakub Jelinek wrote: > On Thu, Feb 12, 2015 at 11:09:59AM -0500, Rich Felker wrote: >> On Thu, Feb 12, 2015 at 04:18:57PM +0100, Ulrich Weigand wrote: >> > Hello, >> > >> > we're running into a problem related to use of initial-exec access to >> > TLS variables in

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Rich Felker
On Thu, Feb 12, 2015 at 05:11:45PM +0100, Jakub Jelinek wrote: > On Thu, Feb 12, 2015 at 11:09:59AM -0500, Rich Felker wrote: > > On Thu, Feb 12, 2015 at 04:18:57PM +0100, Ulrich Weigand wrote: > > > Hello, > > > > > > we're running into a problem related to use of initial-exec access to > > > TLS

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Jakub Jelinek
On Thu, Feb 12, 2015 at 11:09:59AM -0500, Rich Felker wrote: > On Thu, Feb 12, 2015 at 04:18:57PM +0100, Ulrich Weigand wrote: > > Hello, > > > > we're running into a problem related to use of initial-exec access to > > TLS variables in dynamically-loaded libraries. Now, in general, this > > is a

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Rich Felker
On Thu, Feb 12, 2015 at 04:18:57PM +0100, Ulrich Weigand wrote: > Hello, > > we're running into a problem related to use of initial-exec access to > TLS variables in dynamically-loaded libraries. Now, in general, this > is actually not supported. However, there seems to an "inofficial" > extensi

Re: GCC 5.0 and OpenMP 4.0 accelerator : Adapteva/Parallella board

2015-02-12 Thread Jakub Jelinek
On Thu, Feb 12, 2015 at 06:42:17PM +0300, Ilya Verbin wrote: > Hi, > > On Wed, Feb 11, 2015 at 21:33:47 -0800, Nicholas Yue wrote: > > I would like to find out if this is the correct forum to > > ask/discuss about GCC 5's OpenMP 4.0 implementation, in particular > > the new accelerator feature

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Ulrich Weigand
Alexander Monakov wrote: > > There's a pending patch for glibc that addresses this issue among others: > https://sourceware.org/ml/libc-alpha/2014-11/msg00469.html > > ([BZ#17090/17620/17621]: fix DTV race, assert, and DTV_SURPLUS Static TLS > limit) Ah, indeed, that would fix the issue! Thanks

Re: GCC 5.0 and OpenMP 4.0 accelerator : Adapteva/Parallella board

2015-02-12 Thread Ilya Verbin
Hi, On Wed, Feb 11, 2015 at 21:33:47 -0800, Nicholas Yue wrote: > I would like to find out if this is the correct forum to > ask/discuss about GCC 5's OpenMP 4.0 implementation, in particular > the new accelerator feature which from what I understand, allows the > compute to be offloaded to ex

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Alexander Monakov
There's a pending patch for glibc that addresses this issue among others: https://sourceware.org/ml/libc-alpha/2014-11/msg00469.html ([BZ#17090/17620/17621]: fix DTV race, assert, and DTV_SURPLUS Static TLS limit) Alexander

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Ramana Radhakrishnan
On Thu, Feb 12, 2015 at 3:18 PM, Ulrich Weigand wrote: > Hello, > > we're running into a problem related to use of initial-exec access to > TLS variables in dynamically-loaded libraries. Now, in general, this > is actually not supported. However, there seems to an "inofficial" > extension that a

Re: Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Jakub Jelinek
On Thu, Feb 12, 2015 at 04:18:57PM +0100, Ulrich Weigand wrote: > we're running into a problem related to use of initial-exec access to > TLS variables in dynamically-loaded libraries. Now, in general, this > is actually not supported. However, there seems to an "inofficial" > extension that allo

Failure to dlopen libgomp due to static TLS data

2015-02-12 Thread Ulrich Weigand
Hello, we're running into a problem related to use of initial-exec access to TLS variables in dynamically-loaded libraries. Now, in general, this is actually not supported. However, there seems to an "inofficial" extension that allows selected system libraries to use small amounts of static TLS

unaligned memory access for vectorization

2015-02-12 Thread Ajit Kumar Agarwal
Hello All: The unaligned array access are the blocking factor in the vectorization. This is due to unaligned load and stores with respect to SIMD instructions are costly operations. To enable the vectorizations for unaligned array access the loop peeling is done to make the multiversioning of

Re: Postpone expanding va_arg until pass_stdarg

2015-02-12 Thread Michael Matz
Hi, On Wed, 11 Feb 2015, Tom de Vries wrote: > > My idea was to not generate temporaries and hence copies for > > non-scalar types, but rather construct the "result" of va_arg directly > > into the original LHS (that would then also trivially solve the > > problem of nno-copyable types). > >

Function outlining and partial Inlining

2015-02-12 Thread Ajit Kumar Agarwal
Hello All: The large functions are the important part of high performance application. They contribute to performance bottleneck with many respect. Some of the large hot functions are frequently executed but many regions inside the functions are cold regions. The large Function blocks the functi

libcc1 depencies

2015-02-12 Thread la...@chello.at
Hello, I am trying to build a cross-compiler for arm, like I did so for years. I am keen on not having depencies on libraries, so that the compiler can be used on multiple systems. Up until 4.9 the only depency is libc, I tried using the gcc-5-20150208 snapshot, and now I get depencies on the buil

Re: Unrolling factor heuristics for Loop Unrolling

2015-02-12 Thread Oleg Endo
On Thu, 2015-02-12 at 10:09 +, Ajit Kumar Agarwal wrote: > Hello All: > > The Loop unrolling without good unrolling factor heuristics becomes the > performance bottleneck. The Unrolling factor heuristics based on minimum > Initiation interval is quite useful with respect to better ILP. The

Unrolling factor heuristics for Loop Unrolling

2015-02-12 Thread Ajit Kumar Agarwal
Hello All: The Loop unrolling without good unrolling factor heuristics becomes the performance bottleneck. The Unrolling factor heuristics based on minimum Initiation interval is quite useful with respect to better ILP. The minimum Initiation interval based on recurrence and resource calculati