Register Allocation issues with microblaze-elf

2013-02-12 Thread Michael Eager
Hi -- I'm seeing register allocation problems and code size increases with gcc-4.6.2 (and gcc-head) compared with older (gcc-4.1.2). Both are compiled using -O3. One test case that I have has a long series of nested if's each with the same comparison and similar computation. if (n

Re: gcc : c++11 : full support : eta?

2013-02-12 Thread Chris Lattner
On Feb 8, 2013, at 8:24 AM, Jeff Law wrote: >> I'm not quite sure that this clean split is possible, even after making >> amends for template instantiation. It's great for syntax-driven tools, >> but once you move beyond that, you tend to ignore stuff like destructors >> (or the cleanup attribute

Re: CPIC for mips

2013-02-12 Thread Andrew Pinski
On Tue, Feb 12, 2013 at 2:48 PM, reed kotler wrote: > CPIC is added to .o files for mips a lot. This is a better question for the binutils mailing list rather than the gcc list. > > Is that needed? > > What is it for? It says if the object file will call into PIC code. http://sourceware.org/ml

Re: Could not identify that register is clobbered already

2013-02-12 Thread Georg-Johann Lay
[Removing avr-gcc-list from CC because there is no need to cross-post] S, Pitchumani wrote: I was analyzing an issue for avr target (gcc-4.7.2). Issue is that already clobbered register is used after the transformation in post reload pass. insns after reload pass: set (reg:HI r24 (const:

CPIC for mips

2013-02-12 Thread reed kotler
CPIC is added to .o files for mips a lot. Is that needed? What is it for? Tia. Reed rkotler@ubuntu-rkotler:~/testmips16$ mips-linux-gnu-gcc null.c -c mipsrkotler@ubuntu-rkotler:~/testmips16$ mips-linux-gnu-objdump -x null.o null.o: file format elf32-tradbigmips null.o architecture: mips:

Re: expansion of vector shifts...

2013-02-12 Thread David Miller
From: David Miller Date: Fri, 16 Nov 2012 00:33:05 -0500 (EST) > From: Richard Sandiford > Date: Mon, 29 Oct 2012 10:14:53 + > >> ...given that the code is like you say written: >> >> if (SHIFT_COUNT_TRUNCATED) >> { >> if (CONST_INT_P (op1) >> ... >> else if (GET_

Re: CPATH, LIBRARY_PATH, and cross-compilers

2013-02-12 Thread Ludovic Courtès
Joel Sherrill skribis: > But it still doesn't address the situation where you have multiple > cross compilers in your PATH all for different targets. Yeah, I thought about it, but couldn’t come up with a practical use case where you’d need to use different cross-compilers in a single build. Lud

Re: CPATH, LIBRARY_PATH, and cross-compilers

2013-02-12 Thread Joel Sherrill
On 2/12/2013 12:48 PM, Ludovic Courtès wrote: Hi, GCC honors CPATH, LIBRARY_PATH, & co. regardless of whether it’s built as a cross-compiler. Consequently, when cross-compiling a package that contains both support tools to be compiled natively and the main code to be cross-compiled, these varia

CPATH, LIBRARY_PATH, and cross-compilers

2013-02-12 Thread Ludovic Courtès
Hi, GCC honors CPATH, LIBRARY_PATH, & co. regardless of whether it’s built as a cross-compiler. Consequently, when cross-compiling a package that contains both support tools to be compiled natively and the main code to be cross-compiled, these variables are useless because they don’t allow host a

Could not identify that register is clobbered already

2013-02-12 Thread S, Pitchumani
Hi, I was analyzing an issue for avr target (gcc-4.7.2). Issue is that already clobbered register is used after the transformation in post reload pass. insns after reload pass: set (reg:HI r24 (const:HI (plus:HI (symbol_ref:HI ("array")) (const_int 4)) )) ... para