Re: basic asm and memory clobbers

2015-11-20 Thread Andrew Haley
On 20/11/15 01:23, David Wohlferd wrote: > I tried to picture the most basic case I can think of that uses > something clobber-able: > > for (int x=0; x < 1000; x++) >asm("#stuff"); > > This generates very simple and highly performant code: > > movl$1000, %eax > .L2: >

Re: basic asm and memory clobbers

2015-11-20 Thread David Wohlferd
On 11/20/2015 2:17 AM, Andrew Haley wrote: On 20/11/15 01:23, David Wohlferd wrote: I tried to picture the most basic case I can think of that uses something clobber-able: for (int x=0; x < 1000; x++) asm("#stuff"); This generates very simple and highly performant code:

Re: basic asm and memory clobbers

2015-11-20 Thread David Wohlferd
On 11/19/2015 7:14 PM, Segher Boessenkool wrote: On Thu, Nov 19, 2015 at 05:23:55PM -0800, David Wohlferd wrote: For that reason, I'd like to propose adding 2 new clobbers to extended asm as part of this work: "clobberall" - This gives extended the same semantics as whatever the new basic asm w

Re: basic asm and memory clobbers

2015-11-20 Thread Andrew Haley
On 20/11/15 10:37, David Wohlferd wrote: > The intent for 24414 is to change basic asm such that it will become > (quoting jeff) "an opaque blob that read/write/clobber any register or > memory location." Such being the case, "memory" is not sufficient: > > #define CLOBBERALL "eax", "ebx", "ecx

Re: basic asm and memory clobbers

2015-11-20 Thread David Wohlferd
On 11/20/2015 3:14 AM, Andrew Haley wrote: On 20/11/15 10:37, David Wohlferd wrote: The intent for 24414 is to change basic asm such that it will become (quoting jeff) "an opaque blob that read/write/clobber any register or memory location." Such being the case, "memory" is not sufficient: #de

GCC 5.3 Status Report (2015-11-20)

2015-11-20 Thread Richard Biener
Status == We plan to do a GCC 5.3 release candidate at the end of next week followed by the actual release a week after that. So now is the time to look at your regression bugs in bugzilla and do some backporting for things already fixed on trunk. Quality Data Priority

Re: basic asm and memory clobbers

2015-11-20 Thread Richard Henderson
On 11/20/2015 01:38 PM, David Wohlferd wrote: On 11/20/2015 3:14 AM, Andrew Haley wrote: On 20/11/15 10:37, David Wohlferd wrote: The intent for 24414 is to change basic asm such that it will become (quoting jeff) "an opaque blob that read/write/clobber any register or memory location." Such b

Broken Link

2015-11-20 Thread melissa . holmes
Hey, I wanted to reach out and let you know about this link which isn’t working - http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/, I found it on this page - http://gd.tuwien.ac.at/.vhost/www.gnu.org/software/gcc/readings.html. You’re link includes this text - "Objective

Re: GCC 5.3 Status Report (2015-11-20)

2015-11-20 Thread David Edelsohn
On Fri, Nov 20, 2015 at 7:53 AM, Richard Biener wrote: > > Status > == > > We plan to do a GCC 5.3 release candidate at the end of next week > followed by the actual release a week after that. > > So now is the time to look at your regression bugs in bugzilla and > do some backporting for thin

Re: Broken Link

2015-11-20 Thread Jonathan Wakely
On 20 November 2015 at 13:12, wrote: > Hey, > > I wanted to reach out and let you know about this link which isn’t working - > http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/, I > found it on this page - > http://gd.tuwien.ac.at/.vhost/www.gnu.org/software/gcc/readings.html.

Re: basic asm and memory clobbers

2015-11-20 Thread Segher Boessenkool
On Fri, Nov 20, 2015 at 02:45:05AM -0800, David Wohlferd wrote: > On 11/19/2015 7:14 PM, Segher Boessenkool wrote: > >On Thu, Nov 19, 2015 at 05:23:55PM -0800, David Wohlferd wrote: > >>For that reason, I'd like to propose adding 2 new clobbers to extended > >>asm as part of this work: > >> > >>"cl

Re: basic asm and memory clobbers

2015-11-20 Thread Segher Boessenkool
On Fri, Nov 20, 2015 at 02:05:01PM +0100, Richard Henderson wrote: > I'd be perfectly happy to deprecate and later completely remove basic asm > within functions. > > Because IMO it's essentially useless. It has no inputs, no outputs, and no > way to tell the compiler what machine state has bee

Re: basic asm and memory clobbers

2015-11-20 Thread Richard Henderson
On 11/20/2015 04:20 PM, Segher Boessenkool wrote: On Fri, Nov 20, 2015 at 02:05:01PM +0100, Richard Henderson wrote: I'd be perfectly happy to deprecate and later completely remove basic asm within functions. Because IMO it's essentially useless. It has no inputs, no outputs, and no way to tel

Graphite header order

2015-11-20 Thread David Edelsohn
Sebastian, I have tried to build GCC with Graphite and ISL on AIX and encountered two problems: (1) isl/ctx.h typedef enum { isl_stat_error = -1, isl_stat_ok = 0, } isl_stat; GCC complains about the comma in "isl_stat_ok = 0,". This seems like a general bug that should appear o

Re: basic asm and memory clobbers

2015-11-20 Thread Jakub Jelinek
On Fri, Nov 20, 2015 at 04:29:50PM +0100, Richard Henderson wrote: > On 11/20/2015 04:20 PM, Segher Boessenkool wrote: > >On Fri, Nov 20, 2015 at 02:05:01PM +0100, Richard Henderson wrote: > >>I'd be perfectly happy to deprecate and later completely remove basic asm > >>within functions. > >> > >>B

Re: basic asm and memory clobbers

2015-11-20 Thread Richard Henderson
On 11/20/2015 04:34 PM, Jakub Jelinek wrote: Isn't that going to break too much code though? I mean, e.g. including libgcc... I don't know. My suspicion is very little. But that's actually what I'd like to know before we start adjusting code in other ways wrt basic asms. r~

Re: Graphite header order

2015-11-20 Thread Sebastian Pop
On Fri, Nov 20, 2015 at 9:31 AM, David Edelsohn wrote: > Sebastian, > > I have tried to build GCC with Graphite and ISL on AIX and encountered > two problems: > > (1) isl/ctx.h > > typedef enum { > isl_stat_error = -1, > isl_stat_ok = 0, > } isl_stat; > > GCC complains about the co

Re: basic asm and memory clobbers

2015-11-20 Thread Segher Boessenkool
On Fri, Nov 20, 2015 at 04:29:50PM +0100, Richard Henderson wrote: > >>It seems to me that it would be better to remove the feature, forcing what > >>must be an extremely small number of users to audit and update to extended > >>asm. > > > >Should asm("bla"); then be an extended asm with no input

Re: Graphite header order

2015-11-20 Thread Sven Verdoolaege
On Fri, Nov 20, 2015 at 10:14:47AM -0600, Sebastian Pop wrote: > On Fri, Nov 20, 2015 at 9:31 AM, David Edelsohn wrote: > > Sebastian, > > > > I have tried to build GCC with Graphite and ISL on AIX and encountered > > two problems: > > > > (1) isl/ctx.h > > > > typedef enum { > > isl_stat_

Re: Graphite header order

2015-11-20 Thread Sebastian Pop
Thanks David for reporting these problems. On Fri, Nov 20, 2015 at 9:31 AM, David Edelsohn wrote: > (2) All of the graphite*.c files include ISL headers first. This > order is not supported by GCC development and creates conflicts for > types and definitions provided / overridden by GCC headers,

Re: Graphite header order

2015-11-20 Thread Sebastian Pop
On Fri, Nov 20, 2015 at 10:23 AM, Sven Verdoolaege wrote: > On Fri, Nov 20, 2015 at 10:14:47AM -0600, Sebastian Pop wrote: >> On Fri, Nov 20, 2015 at 9:31 AM, David Edelsohn wrote: >> > Sebastian, >> > >> > I have tried to build GCC with Graphite and ISL on AIX and encountered >> > two problems:

Re: Graphite header order

2015-11-20 Thread David Edelsohn
On Fri, Nov 20, 2015 at 11:31 AM, Sebastian Pop wrote: > On Fri, Nov 20, 2015 at 10:23 AM, Sven Verdoolaege > wrote: >> On Fri, Nov 20, 2015 at 10:14:47AM -0600, Sebastian Pop wrote: >>> On Fri, Nov 20, 2015 at 9:31 AM, David Edelsohn wrote: >>> > Sebastian, >>> > >>> > I have tried to build GC

Re: basic asm and memory clobbers

2015-11-20 Thread Jeff Law
On 11/20/2015 04:14 AM, Andrew Haley wrote: On 20/11/15 10:37, David Wohlferd wrote: The intent for 24414 is to change basic asm such that it will become (quoting jeff) "an opaque blob that read/write/clobber any register or memory location." Such being the case, "memory" is not sufficient: #d

Re: Graphite header order

2015-11-20 Thread David Edelsohn
On Fri, Nov 20, 2015 at 11:28 AM, Sebastian Pop wrote: > Thanks David for reporting these problems. > > On Fri, Nov 20, 2015 at 9:31 AM, David Edelsohn wrote: >> (2) All of the graphite*.c files include ISL headers first. This >> order is not supported by GCC development and creates conflicts fo

Re: Graphite header order

2015-11-20 Thread Sebastian Pop
On Fri, Nov 20, 2015 at 10:43 AM, David Edelsohn wrote: > On Fri, Nov 20, 2015 at 11:28 AM, Sebastian Pop wrote: >> Thanks David for reporting these problems. >> >> On Fri, Nov 20, 2015 at 9:31 AM, David Edelsohn wrote: >>> (2) All of the graphite*.c files include ISL headers first. This >>> or

Re: [RFC] MIPS ABI Extension for IEEE Std 754 Non-Compliant Interlinking

2015-11-20 Thread Maciej W. Rozycki
On Tue, 17 Nov 2015, Joseph Myers wrote: > > Any or all of these options may have effects beyond propagating the IEEE > > Std 754 compliance mode down to the assembler and the linker. In > > particular `-mieee=strict' is expected to guarantee code generated to > > fully comply to IEEE Std 754 ra

Re: basic asm and memory clobbers

2015-11-20 Thread Jeff Law
On 11/20/2015 06:05 AM, Richard Henderson wrote: I'd be perfectly happy to deprecate and later completely remove basic asm within functions. Because IMO it's essentially useless. It has no inputs, no outputs, and no way to tell the compiler what machine state has been changed. We can say tha

Re: [RFC] MIPS ABI Extension for IEEE Std 754 Non-Compliant Interlinking

2015-11-20 Thread Joseph Myers
On Fri, 20 Nov 2015, Maciej W. Rozycki wrote: > The target audience for the `-mieee=strict' option is in my idea a > non-technical user, say a physicist, who does not necessarily know or is > fluent with the guts of computer hardware and who has the need to build > and reliably run their softw

Re: basic asm and memory clobbers

2015-11-20 Thread Paul_Koning
> On Nov 20, 2015, at 1:24 PM, Jeff Law wrote: > > On 11/20/2015 06:05 AM, Richard Henderson wrote: > >> ... >> It seems to me that it would be better to remove the feature, forcing >> what must be an extremely small number of users to audit and update to >> extended asm. > That might be a litt

Re: basic asm and memory clobbers

2015-11-20 Thread Jeff Law
On 11/20/2015 07:56 AM, Segher Boessenkool wrote: When basic asm changes, I expect that having a way to "just do what it used to do" is going to be useful for some people. 24414 says the documented behaviour hasn't been true for at least fourteen years. It isn't likely anyone is relying on tha

Re: basic asm and memory clobbers

2015-11-20 Thread Paul_Koning
> On Nov 20, 2015, at 3:01 PM, Jeff Law wrote: > > On 11/20/2015 07:56 AM, Segher Boessenkool wrote: > > When basic asm changes, I expect that having a way to "just do what it > used to do" is going to be useful for some people. 24414 says the documented behaviour hasn't been true

Re: basic asm and memory clobbers

2015-11-20 Thread David Wohlferd
On 11/20/2015 8:14 AM, Richard Henderson wrote: On 11/20/2015 04:34 PM, Jakub Jelinek wrote: Isn't that going to break too much code though? I mean, e.g. including libgcc... I don't know. My suspicion is very little. But that's actually what I'd like to know before we start adjusting code