Re: 32 bit jump instruction.

2006-12-13 Thread amylaar
Quoting Steven Bosscher <[EMAIL PROTECTED]>: > On 12/13/06, Joern Rennecke <[EMAIL PROTECTED]> wrote: > > In http://gcc.gnu.org/ml/gcc/2006-12/msg00328.html, you wrote: > > However, because the SH has delayed branches, there is always a guaranteed > way > > to find a register - one can be saved, a

Re: matching constraints in asm operands question

2005-03-04 Thread amylaar
> static __inline__ void atomic_add(atomic_t *v, int i) > { > __asm__ __volatile__("addl %1,%0" : "+m" (*v) : "d" (i)); > } > > Then the compiler complains with: > > /asm/atomic.h:33: warning: read-write constraint does not allow a register > > So is the warning wrong? Yes, the warning is wr

Re: matching constraints in asm operands question

2005-03-05 Thread amylaar
Quoting Jason Merrill <[EMAIL PROTECTED]>: > Well, I assumed the same thing when I started poking at that code, but then > someone pointed out that it didn't actually work that way, and as I recall > the code does in fact assume a register. I certainly would not object to > making '+' work proper

Re: diffing directories with merged-as-deleted files?

2005-11-03 Thread amylaar
>> cvs would never do such nonsense. >Absolutely! It would just print all the directory names in the middle of the >diffs. I call that nonsense as well. But the directory names go to stderr. When you redirect stdout to a file, a diff without the directory names is written to that file, while yo

Re: Use of FLAGS_REGNUM clashes with generates insn

2011-09-23 Thread amylaar
Quoting "Paulo J. Matos" : That's seriously annoying. The idea was to ditch cc0 and explicitly represent CC in a register to perform optimizations like splitting add and addc for a double word addition. If by hiding my register flags means going back to cc0, then it seems that the only way to go

Re: Use of FLAGS_REGNUM clashes with generates insn

2011-10-18 Thread amylaar
Quoting Hans-Peter Nilsson : On Fri, 23 Sep 2011, Joern Rennecke wrote: Quoting "Paulo J. Matos" : > My addition instruction sets all the flags. So I have: This is annoying, but can be handled. Been there, done that. dse.c needs a small patch, which I intend to submit sometime in the future

RE: Feature request concerning opcodes in the function prolog

2009-01-08 Thread amylaar
Quoting Stefan Dösinger : I talked to Alexandre again, and his main concern wasn't so much the global flag, but that the existance of the push %ebp; mov %esp, %ebp was still up to the feelings of the compiler and the moon phase. So what he wants is something like a msvc_prolog attribute that ma

RE: Feature request concerning opcodes in the function prolog

2009-01-08 Thread amylaar
Quoting Stefan Dösinger : If the frame pointer is not needed: mov.s %edi, %edi push %ebp mov.s %esp, %ebp pop %ebp ; Continue normally here. I think that case can't be improved too much, since the msvc_prolog stuff modifies the base pointer. If ebp needs to be saved because it contains a use

RE: Feature request concerning opcodes in the function prolog

2009-01-12 Thread amylaar
Quoting Stefan Dösinger : Here's some code attached that actually works, but is far from perfect. The 'msvc_prologue' attribute is limited to 32 bit. None of the applications that try to place hooks are ported to Win64 yet, so it is impossible to tell what they'll need. Besides, maybe I am luck

Re: New GCC Runtime Library Exception: not fit for purpose

2009-01-29 Thread amylaar
Quoting Ian Lance Taylor : Joern Rennecke writes: Quoting Manuel López-Ibáñez : 2009/1/29 Joern Rennecke : The runtime library license says that you can link libgcc with proprietary code, whether that proprietary code was compiled with gcc or whether it was compiled with some non-gcc pro

Re: Pushing the limits on vector modes

2013-05-17 Thread amylaar
Quoting Paulo Matos : Hello, I am trying to model a predicate register mode that acts like a vector. We have a few predicate registers that have 8 bits in size but they are set accordingly to the mode of operation (not necessarily a comparison). Word size is 64. Yes need some surgery

Re: Combine pass with reused sources

2013-08-14 Thread amylaar
Quoting "Lu, John" : However, if I modify the function so that one of the factors is reused, long f1(long a, long b, long c) { res0=((long long) a)*((long long) b); res1=((long long) c)*((long long) b); } combine will not fuse the reused sign-extension result to generate th

Re: type argument in FUNCTION_ARG macro

2012-05-04 Thread amylaar
Quoting BELBACHIR Selim : Any ideas on how to get around this problem? You can look at the name of library functions.

Re: Will backend ever see an memory operand with address wrap around?

2012-05-13 Thread amylaar
Quoting "H.J. Lu" : What is the expect run-time behavior when a + b has overflow/underflow? The expectation is wrap-around. Note that loop strenght reduction can cause assumed wrap-around semantics in RTL for strictly conforming C input where no such wrap-around is in evidence.

Re: Will backend ever see an memory operand with address wrap around?

2012-05-13 Thread amylaar
Quoting "H.J. Lu" : What is the run-time result when overflow happens? Assuming you use a 32 bit unsigned base address, and the space beyond 4G is unmapped, you'll get a SEGV.

Fwd: Re: [PATCH][4.3] Deprecate -ftrapv

2008-03-04 Thread amylaar
Somehow this got stuck in the spam filter. - Forwarded message from [EMAIL PROTECTED] - Date: Sat, 01 Mar 2008 09:21:21 -0500 From: Joern Rennecke <[EMAIL PROTECTED]> Reply-To: Joern Rennecke <[EMAIL PROTECTED]> Subject: Re: [PATCH][4.3] Deprecate -ftrapv To: gcc@gcc.gnu.or