How to avoid sign or zero extension

2012-06-02 Thread i-love-spam
I'm writing some optimized functions for gcc-arm in a library that obuses shorts. So the problem I have is that in extremely many places resutls of my optimized functions are needlessly sign or zero extended. That is, gcc adds UXTH or SXTH opcode. For example, imagine if I use clz instructions

Re: Option -pthread in test suite with cross compilers

2012-06-02 Thread Hans-Peter Nilsson
On Fri, 18 May 2012, Ian Lance Taylor wrote: > Joel Sherrill writes: > > > On 05/18/2012 08:27 AM, Ian Lance Taylor wrote: > >> Ralf Corsepius writes: > >> > >>> I am not sure, but AFAICT, -pthread is Linux-specific. > >> It's not properly documented, but -pthread works on a number of hosts, > >>

Re: Option -pthread in test suite with cross compilers

2012-06-02 Thread Hans-Peter Nilsson
On Fri, 18 May 2012, Joel Sherrill wrote: > I don't mind having -pthread be a noop but the leap > from a having a header file to having a specific gcc > option is a stretch IMO. Unless EVERY gcc target with > pthread support is required by gcc to have that option. > Is that the undocumented(?) inte

Re: Option -pthread in test suite with cross compilers

2012-06-02 Thread Hans-Peter Nilsson
On Fri, 18 May 2012, Ralf Corsepius wrote: > On 05/18/2012 09:24 AM, Sebastian Huber wrote: > > Hi, > > > > if I run the ARM GCC test suite for C and C++ with the arm-rtemseabi4.11 > > target, then I get several unexpected errors due to: > > > > gcc/testsuite/gcc/gcc.log:xgcc: error: unrecognized c

The Point

2012-06-02 Thread Gmail
Lemmings, What is the point of putting such an immense list of fragments of the manual online? What if we loose out internet? Do you hate the thought of making one whole file containing the whole manual available because no one else does it that way? Are you lost in the world if you do not fol

Re: Fixincludes

2012-06-02 Thread Jeremy Huntwork
On 6/2/12 5:34 PM, Eric Botcazou wrote: What are you after, exactly? Even on modern OSes, there might be glitches or small incompatibilities that woud need to be fixed in order for GCC to work properly, and fixincludes is the tried and proven tool to do that. It is designed to modify only what

gcc-4.7-20120602 is now available

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

Re: Fixincludes

2012-06-02 Thread Eric Botcazou
> OK, thanks for this reply. For a situation when the only available > headers are the sanitized Linux headers and those from recent glibc > (or some other modern libc) am I correct in assuming that this script > is unnecessary and could, conceivably alter something that shouldn't > be altered? Wh

Re: Traversing trees in a plugin...

2012-06-02 Thread Basile Starynkevitch
On Sat, 2 Jun 2012 11:47:51 -0700 Brett Foster wrote: > On Sat, Jun 2, 2012 at 11:31 AM, Basile Starynkevitch > wrote: > > In the MELT meta-plugin (recall that MELT is a high-level domain specific > > language to > > extend GCC, see http://gcc-melt.org/ for more) we extensively use > > associa

Re: Traversing trees in a plugin...

2012-06-02 Thread Brett Foster
On Sat, Jun 2, 2012 at 11:31 AM, Basile Starynkevitch wrote: > In the MELT meta-plugin (recall that MELT is a high-level domain specific > language to > extend GCC, see http://gcc-melt.org/ for more) we extensively use associative > hash-tables > for that. MELT offers homogeneous hash-tables, e.

Re: Traversing trees in a plugin...

2012-06-02 Thread Basile Starynkevitch
On Sat, 2 Jun 2012 20:31:26 +0200 Basile Starynkevitch wrote: > In a few words, plugins cannot extend existing GCC data structures, but can > associate them > to their own data. I forgot to mention that gimple-s (but not tree-s) give you a unsigned client number called a uid, which a single pas

Re: Traversing trees in a plugin...

2012-06-02 Thread Basile Starynkevitch
On Sat, 2 Jun 2012 10:48:47 -0700 Brett Foster wrote: > Hi all, > > I'm working on a GCC plugin, having made a lot of progress on that > front. So far running my plugin works 'more or less' on things like > the linux kernel. On the other hand running it on the plugin itself > causes problems. Gi

Re: Fixincludes

2012-06-02 Thread Jeremy Huntwork
On May 28, 2012, at 7:25 PM, Jonathan Wakely wrote: > The "upstream packages" might be a third-party OS vendor who supply > their own compiler and have no interest in supporting GCC. Even if the > OS system headers get changed, that doesn't help users who have the > unchanged version (e.g. someon

Traversing trees in a plugin...

2012-06-02 Thread Brett Foster
Hi all, I'm working on a GCC plugin, having made a lot of progress on that front. So far running my plugin works 'more or less' on things like the linux kernel. On the other hand running it on the plugin itself causes problems. Given that some of the data structures are pretty complicated in GCC I