Question on TARGET_MMX and X86_TUNE_GENERAL_REGS_SSE_SPILL

2016-04-13 Thread Kumar, Venkataramanan
Hi, X86_TUNE_GENERAL_REGS_SSE_SPILL: Try to spill general regs to SSE regs instead of memory. I tried enabling the above tuning with -march=bdver4 -Ofast -mtune-ctrl=general_regs_sse_spill. I did not find any code differences. Looking at the below code to enable this tune, mmx ISA needs to b

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-13 Thread Prathamesh Kulkarni
On 12 April 2016 at 22:41, Richard Biener wrote: > On April 12, 2016 3:47:19 PM GMT+02:00, Prathamesh Kulkarni > wrote: >>Hi, >>How to check if two symbols are from same source file during WPA ? >>Is symbol1->lto_file_data == symbol2->lto_file_data true if symbol1 >>and symbol2 are from same >>s

Re: Re: Re: Adding a new thread model to GCC

2016-04-13 Thread lh_mouse
And don't forget that --enable-threads=win32 also enables emulated TLS, which is completely unnecessary if we have some kind of TLS support. Because pthread_key_create() requires a destructor, TLS must still be emulated on x86 because there is no native support. The fiber local storage (FLS) API

Re: Re: Adding a new thread model to GCC

2016-04-13 Thread Dongsheng Song
Currently, --enable-threads=win32 map to gthr-win32.{h|c}, could we map --enable-threads=win32-vista --enable-threads=win32-win7 // Windows 7 and Windows Server 2008 R2 --enable-threads=win32-win8 // Windows 8 and Windows Server 2012 --enable-threads=win32-win8.1 // Windows 8.1 and Windows Ser

Re: Re: Adding a new thread model to GCC

2016-04-13 Thread lh_mouse
Yes I learnt those *ByAddress* functions a few months ago and was shocked that Microsoft had plagiarized futex from Linux. As you have pointed out already, those APIs are only available on Windows 8 and later. If we need fuex semantics on Windows 7 and earlier, we must simulate it. However, sin

gcc-4.9-20160413 is now available

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

Re: Adding a new thread model to GCC

2016-04-13 Thread Torvald Riegel
On Wed, 2016-04-13 at 17:17 +0800, lh_mouse wrote: > Hi all, > > The 'win32' thread model of gcc has been there since long long ago, being > compatible with very old Windows versions, also having a number of drawbacks: > 0) its implementation is very inefficient, and > 1) its mutexes and cond

Re: Unnecessary check on phi node in tree if-conversion?

2016-04-13 Thread Jeff Law
On 04/06/2016 12:21 PM, Bin.Cheng wrote: On Wed, Apr 6, 2016 at 5:07 PM, Bin.Cheng wrote: Hi, Function if_convertible_phi_p has below check on virtual PHI nodes: if (any_mask_load_store) return true; /* When there were no if-convertible stores, check that there are no memory

SafeStack proposal in GCC

2016-04-13 Thread Cristina Georgiana Opriceana
Hello, I bring to your attention SafeStack, part of a bigger research project - CPI/CPS [1], which offers complete protection against stack-based control flow hijacks. I am interested in developing SafeStack for GCC and I would like to ask for your feedback on this proposal. SafeStack is a secur

Re: Re: Adding a new thread model to GCC

2016-04-13 Thread lh_mouse
Thanks for your reply. :> However I am still having problems building GCC. (Yesterday stage 1 was ok, but during stage 2 autoconf just failed to find any standard headers. I am still struggling with it.) Once I build gcc successfully I will have a look at that configure.ac. Wish me luck. (btw t

Re: Adding a new thread model to GCC

2016-04-13 Thread Jonathan Wakely
On 13 April 2016 at 10:17, lh_mouse wrote: > Hi all, > > The 'win32' thread model of gcc has been there since long long ago, being > compatible with very old Windows versions, also having a number of drawbacks: > 0) its implementation is very inefficient, and > 1) its mutexes and condition var

Adding a new thread model to GCC

2016-04-13 Thread lh_mouse
Hi all, The 'win32' thread model of gcc has been there since long long ago, being compatible with very old Windows versions, also having a number of drawbacks: 0) its implementation is very inefficient, and 1) its mutexes and condition variables require dynamic initialization and are unusabl