Re: gcc register allocation error when reloading an asm

2011-11-22 Thread Richard Henderson
On 11/22/2011 12:11 PM, Bodart, Mitch L wrote: > Unfortunately the source change suggestion didn't work, but that's OK because > I can make the asm work by eliminating some register pressure. Hmm. Well, if you keep that "memory" clobber there, you don't actually need to represent the RW memory a

RE: gcc register allocation error when reloading an asm

2011-11-22 Thread Bodart, Mitch L
the answer is no, or atleast, nothing that's going to be fixed anytime soon. thanks again! Mitch > -Original Message- > From: Richard Henderson [mailto:r...@redhat.com] > Sent: Tuesday, November 22, 2011 11:35 AM > To: Bodart, Mitch L > Cc: gcc@gcc.gnu.org > Subject:

Re: gcc register allocation error when reloading an asm

2011-11-22 Thread Richard Henderson
On 11/22/2011 10:55 AM, Bodart, Mitch L wrote: > What aspect of inline asm processing is preventing gcc from allocating > register eax to both %0 and %1's address in the following test case? > > gcc -m32 -S foo.c > foo.c: In function 'foo': > foo.c:20: error: can't find a register in c

gcc register allocation error when reloading an asm

2011-11-22 Thread Bodart, Mitch L
Hello colleagues, I've come across a suspicious error with inline asm and register allocation, and am looking for a clarification of the rules. What aspect of inline asm processing is preventing gcc from allocating register eax to both %0 and %1's address in the following test case? gcc -m32

Re: gcc register allocation

2007-07-28 Thread Ian Lance Taylor
"Purll, Duncan" <[EMAIL PROTECTED]> writes: > DISCLAIMER: > Unless indicated otherwise, the information contained in this message is > privileged and confidential, and is intended only for the use of the > addressee(s) named above and others who have been specifically authorized to > receive it

gcc register allocation

2007-07-27 Thread Purll, Duncan
Hi I am in the process of verifying that gcc (3.3.2) produces traceable object code (ie. gcc does not introduce 'hidden' structure into the object code). I have created a file with several functions containing various combinations of C constructs and I intend to examine the resulting object code

Re: Gcc Register Allocation

2005-12-25 Thread Dueway Qi
On 12/26/05, Eric Fisher <[EMAIL PROTECTED]> wrote: > Hello, > There are some papers talking about the gcc register allocation in the > summit proceedings. I'd like to know wether the graph coloring > allocator has been used in the gcc-3.4.4. Also, where can I find some

Gcc Register Allocation

2005-12-25 Thread Eric Fisher
Hello, There are some papers talking about the gcc register allocation in the summit proceedings. I'd like to know wether the graph coloring allocator has been used in the gcc-3.4.4. Also, where can I find some reference of the gcc register allocation, besides the source codes and s