Re: new triplet for x32 psABI?

2011-10-03 Thread Mike Frysinger
On Monday, October 03, 2011 23:26:25 Michael LIAO wrote: > On Mon, Oct 3, 2011 at 5:46 PM, Mike Frysinger wrote: > > in terms of asm code, it's still possible to use ifdef's to handle cases > > where you truly need different code paths. > > Yeah, we could have '#ifdef X32ABI" in assembly file to s

Re: new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
On Mon, Oct 3, 2011 at 5:53 PM, H.J. Lu wrote: > On Mon, Oct 3, 2011 at 4:47 PM, Michael LIAO wrote: >> On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger wrote: >>> On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: >>> >>> please don't top post >>> >> >> sorry, it's my first post on mailing.

Re: new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
On Mon, Oct 3, 2011 at 5:46 PM, Mike Frysinger wrote: > On Monday, October 03, 2011 19:47:57 Michael LIAO wrote: >> On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger wrote: >> > On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: >> >> Most examples would be related to tools generating code. >>

Re: new triplet for x32 psABI?

2011-10-03 Thread H.J. Lu
On Mon, Oct 3, 2011 at 4:47 PM, Michael LIAO wrote: > On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger wrote: >> On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: >> >> please don't top post >> > > sorry, it's my first post on mailing. > >>> Most examples would be related to tools generating

Re: new triplet for x32 psABI?

2011-10-03 Thread Mike Frysinger
On Monday, October 03, 2011 19:47:57 Michael LIAO wrote: > On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger wrote: > > On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: > >> Most examples would be related to tools generating code. > >> > >> Suppose you have a software package with several har

Re: new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
On Mon, Oct 3, 2011 at 4:03 PM, Mike Frysinger wrote: > On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: > > please don't top post > sorry, it's my first post on mailing. >> Most examples would be related to tools generating code. >> >> Suppose you have a software package with several ha

Re: new triplet for x32 psABI?

2011-10-03 Thread H.J. Lu
On Mon, Oct 3, 2011 at 3:57 PM, Michael LIAO wrote: > Most examples would be related to tools generating code. > > Suppose you have a software package with several hard-coded fully > optimized assembly file for different targets. Your build system need > to know the current target as well as targe

Re: new triplet for x32 psABI?

2011-10-03 Thread Mike Frysinger
On Monday, October 03, 2011 18:57:28 Michael LIAO wrote: please don't top post > Most examples would be related to tools generating code. > > Suppose you have a software package with several hard-coded fully > optimized assembly file for different targets. Your build system need > to know the cu

Re: new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
Most examples would be related to tools generating code. Suppose you have a software package with several hard-coded fully optimized assembly file for different targets. Your build system need to know the current target as well as target ABI to select the correct assembly file to build it. It even

The AST tree modification. Edited.

2011-10-03 Thread niXman
Hi everybody! It is necessary to implement a plug-in for GCC designed to collect the information on types of translation unit, and generate static const array of types rtti_ex _ on its base; // enum class type_ { char_, uchar_, short_, ushort_, int_, uint_, l

The AST tree modification.

2011-10-03 Thread niXman
Hi everybody! It is necessary to implement a plug-in for GCC designed to collect the information on types of translation unit, and generate static const array of types rtti_ex _ on its base;  // enum class type_ {    char_, uchar_, short_, ushort_, int_, uint_, l

new triplet for x32 psABI?

2011-10-03 Thread Michael LIAO
Sorry, resend with plain text format. Hi, Everyone As x32 psABI (https://sites.google.com/site/x32abi/) is invented, do we need a new triplet for system relies on triplet to figure out it's targeted on x32 environment. The new triplet would look like 'x86_64-unknown-linux-gnux32' for x32 vs 'x86_

Re: new triplet for x32 psABI?

2011-10-03 Thread Mike Frysinger
On Monday, October 03, 2011 18:25:46 Michael LIAO wrote: > As x32 psABI (https://sites.google.com/site/x32abi/) is invented, do > we need a new triplet for system relies on triplet to figure out it's > targeted on x32 environment. The new triplet would look like > 'x86_64-unknown-linux-gnux32' for

Re: missing conditional propagation in cprop.c pass

2011-10-03 Thread Steven Bosscher
Hi, > Though conditional const information "r684 <- 0" is collected by > find_implicit_sets, the conditional information is recorded as local > information of bb 97, and it is not recorded in avout of bb 96, so not > in avin of bb 97 either. To have the set in avout of bb 96 would be wrong becaus

Re: new triplet for x32 psABI?

2011-10-03 Thread Eric Blake
On 10/03/2011 04:25 PM, Michael LIAO wrote: Sorry, resend with plain text format. Hi, Everyone As x32 psABI (https://sites.google.com/site/x32abi/) is invented, do we need a new triplet for system relies on triplet to figure out it's targeted on x32 environment. The new triplet would look like

Re: GCC Wiki Write Access

2011-10-03 Thread Jonathan Wakely
On 3 October 2011 21:55, Iyer, Balaji V wrote: > Hello Everyone, >        I contributed the Cilk Plus branch of GCC and I would like to create a > page in GCC Wiki (link: http://gcc.gnu.org/wiki/HomePage) with the > information about this branch and maybe some future work. Can someone please > t

GCC Wiki Write Access

2011-10-03 Thread Iyer, Balaji V
Hello Everyone, I contributed the Cilk Plus branch of GCC and I would like to create a page in GCC Wiki (link: http://gcc.gnu.org/wiki/HomePage) with the information about this branch and maybe some future work. Can someone please tell me how I can get write access to the GCC wiki? Than

Re: Deletion of trivial insn during IRA

2011-10-03 Thread Ian Lance Taylor
pa...@matos-sorge.com (Paulo J. Matos) writes: > I am trying to find where IRA, is deleting trivial insn like: > (set r1 r1) Search for "Discard obvious no-ops" in the function reload in the file gcc/reload1.c. Ian

Re: Suboptimal __restrict optimization?

2011-10-03 Thread Ian Lance Taylor
Ulf Magnusson writes: > Is there some reason why GCC couldn't generate this code for the first > version of C::f()? Is this a failure of optimization, or am I missing > something in how __restricted works? It's a failure of optimization. Ian

Re: C++11 atomic library notes

2011-10-03 Thread Joseph S. Myers
On Mon, 3 Oct 2011, Andrew MacLeod wrote: > On 10/03/2011 01:31 PM, Richard Henderson wrote: > > On 09/30/2011 01:36 PM, Andrew MacLeod wrote: > > > http://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary > > > > >__atomic_store (size_t obj_size, T *mem, T val, enum memory_model > > > model) > > I don't

Re: C++11 atomic library notes

2011-10-03 Thread Richard Henderson
On 10/03/2011 10:54 AM, Andrew MacLeod wrote: > its a library call for arbitrary sized objects... C++ can have any > class declared atomic, so it doesn't have to map to one of those > optimized lock-free routines. Ah, I get it now. Ew. r~

Re: missing conditional propagation in cprop.c pass

2011-10-03 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/29/11 22:43, Amker.Cheng wrote: >>> >>> I believe, the optimization you may be referring to is value >>> range propagation which does predication of values based on >>> predicates of conditions. GCC definitely applies VRP at the >>> tree stage,

Re: C++11 atomic library notes

2011-10-03 Thread Andrew MacLeod
On 10/03/2011 01:31 PM, Richard Henderson wrote: On 09/30/2011 01:36 PM, Andrew MacLeod wrote: http://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary __atomic_store (size_t obj_size, T *mem, T val, enum memory_model model) I don't like this. I really cannot imagine any situation for which the comp

Re: C++11 atomic library notes

2011-10-03 Thread Richard Henderson
On 09/30/2011 01:36 PM, Andrew MacLeod wrote: > http://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary > __atomic_store (size_t obj_size, T *mem, T val, enum memory_model model) I don't like this. I really cannot imagine any situation for which the compiler can't resolve SIZE to a compile-time constant

Announce: GNU MPFR 3.1.0 is released

2011-10-03 Thread Vincent Lefevre
GNU MPFR 3.1.0 ("canard à l'orange") is now available for download from the MPFR web site: http://www.mpfr.org/mpfr-3.1.0/ and from INRIAGForge: https://gforge.inria.fr/projects/mpfr/ It will be available on the GNU FTP site in a few hours. Thanks very much to those who sent us bug reports

New bootstrap failure on sparc-sun-solaris2.10

2011-10-03 Thread Art Haas
The latest set of patches to update the Sparc platform has resulted in a build failure in stage 1 of this mornings builds: gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-

proposal: warning for incomplete multichars

2011-10-03 Thread Steve White
Hi! This concerns multiple character integer constants, e.g. 'abcd' as discussed in the C99 standard in subsection 6.4.4.4. We'll call them "multichars". First: everybody agrees multichars are non-portable and therefore to be avoided. That said, there are real-life situations where they

Deletion of trivial insn during IRA

2011-10-03 Thread Paulo J. Matos
Hi, I am trying to find where IRA, is deleting trivial insn like: (set r1 r1) The problem I am facing is that I have managed to convince GCC to handle moves that clobber RCC like: (parallel [(set reg1 reg2) (clobber rcc)]) However, I am getting loads of insn like: (parallel [(set r1 r2) (clobb