[trans-mem] merge from trunk @ 156607

2010-02-10 Thread Aldy Hernandez
Nothing major. Two minor changes: Edge frequencies are now compared with BB frequencies in verify_cgraph_node(). This showed an inconsistency in the edge created in ipa_tm_insert_gettmclone_call(). Fixed. The function free_lang_data():tree.c no longer runs for all front-ends, so lang_hooks.dec

New C++0x initializer_list/variadic template benchmark

2010-02-10 Thread Niels Dekker - address until 2010-10-10
Hereby I would like to inform you all that I'm doing a benchmark test, comparing min(std::initializer_list) to a variadic template min(const T&, const T&, const Args&...). I'm using GCC 4.4.1 on Ubuntu. The results are quite different from http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008

Looking To Purchase - Networking and Telephony

2010-02-10 Thread Chris james Perry
Hello, I am trying to reach the person in your company responsible for the disposal of IT assets no longer in use. Specifically, we buy all types of used, excess and idle Networking, Telephony, Server and Storage equipment manufactured by such companies as: Cisco, Nortel, Avaya, Alcatel-Luc

Re: porting GCC to a micro with a very limited addressing mode --- enforcing a 'register indirect memory operand' through a constraint in md

2010-02-10 Thread Sergio Ruocco
I found the source of my problems! The prologue()/epilogue() functions (*) I took from the tutorial written for SPIM/MIPS emit a number of move insn to/from "invalid" memory addresses (reg+off) that do not go through LEGITIMIZE_ADDRESS(), and this freaks out GCC, so I have to rewrite these in som

Re: insn length attribute and code size optimization

2010-02-10 Thread Daniel Jacobowitz
On Wed, Feb 10, 2010 at 09:55:25AM -0600, Quentin Neill wrote: > GAS knows this information for each insn. That's not the problem. GCC knows the lengths by the time it's a whole instruction. The problem is figuring out what instruction (plus (reg) (reg)) will expand to - before you even know wha

Re: insn length attribute and code size optimization

2010-02-10 Thread Quentin Neill
On Tue, Feb 9, 2010 at 5:02 PM, Richard Sandiford wrote: > Daniel Jacobowitz writes: >> On Wed, Feb 03, 2010 at 06:23:19AM -0800, Ian Lance Taylor wrote: >>> fanqifei writes: >>> >>> > According to the internal manual, insn length attribute can be used to >>> > to calculate the length of emitted

how to identify a part of a multi-word register

2010-02-10 Thread Mohamed Shafi
Hi, I am doing a port for a 32bit target in GCC 4.4.0. I need a way to identify that a register is part of a multiword register. I need to emit an instruction that works on LSW of the double word register on move instructions. Currently the target splits the DImode and DFmode moves after reloading

Re: porting GCC to a micro with a very limited addressing mode --- enforcing a 'register indirect memory operand' through a constraint in md

2010-02-10 Thread Sergio Ruocco
Thanks Micheal for your code, I will try it... however, I think the problem that crashes my compiler may not lie in my LEGITIMATE/LEGITIMIZE ADDRESS macros, which are equivalent to many others (yours included), but in the GCC which - in some corner cases - does not like being told that an registe

Re: porting GCC to a micro with a very limited addressing mode --- success with LEGITIMATE / LEGITIMIZE_ADDRESS, stuck with ICE !

2010-02-10 Thread Michael Hope
Hi Sergio. Here's the interesting parts from my port. The code's a bit funny looking as I've edited it for this post. In .h: #define BASE_REG_CLASS ADDR_REGS #define INDEX_REG_CLASS NO_REGS #ifdef REG_OK_STRICT # define _REG_OK_STRICT 1 #else # define _REG_OK_STRICT 0 #endif #define REGNO_OK