Aliasing of arrays

2016-11-30 Thread Alexander Cherepanov
Hi! Pascal Cuoq communicated to me the following example: int ar1(int (*p)[3], int (*q)[3]) { (*p)[0] = 1; (*q)[1] = 2; return (*p)[0]; } gcc of versions 4.9.2 and 7.0.0 20161129 optimize it with -O2 on the premise that elements with different indices don't alias: :

Re: Aliasing of arrays

2016-11-30 Thread Richard Biener
On Wed, Nov 30, 2016 at 2:19 PM, Alexander Cherepanov wrote: > Hi! > > Pascal Cuoq communicated to me the following example: > > int ar1(int (*p)[3], int (*q)[3]) > { > (*p)[0] = 1; > (*q)[1] = 2; > return (*p)[0]; > } > > gcc of versions 4.9.2 and 7.0.0 20161129 optimize it with -O2 on the

Re: [libgomp] No references to env.c -> no libgomp construction

2016-11-30 Thread Sebastian Huber
- Alexander Monakov schrieb: > Hello, > > On Tue, 29 Nov 2016, Sebastian Huber wrote: > > * env.c: Split out ICV definitions into... > > * icv.c: ...here (new file) and... > > * icv-device.c: ...here. New file. > > > > the env.c contains now only local symbols (at le

Re: Aliasing of arrays

2016-11-30 Thread Joseph Myers
On Wed, 30 Nov 2016, Richard Biener wrote: > but that probably shouldn't apply to array types. The idea is that > objects of the same type cannot overlap. Maybe Joseph can clarify whether > and array object of known size really constitutes an object in that sense. This is one of the ambiguous c

Re: [RFC] GCC port for ARM's Scalable Vector Extension

2016-11-30 Thread Richard Sandiford
Richard Sandiford writes: > We have various other changes that aren't yet in the branch. The two > main ones are: > > (a) Support for gather loads and scatter stores. This includes support > for using gathers and scatters for strided loads and stores, or for > grouped loads and stores wh

Question about PR preprocessor/60723

2016-11-30 Thread Steve Ellcey
I am trying to understand the status of this bug and the patch that fixes it. It looks like a patch was submitted and checked in for 5.0 to fix the problem reported and I see the new behavior caused by the patch in GCC 5.X compilers. This behavior caused a number of issues with configures and sc