Re: Problems with pragma and attribute optimize.

2012-07-30 Thread Allan Sandfeld Jensen
On Wednesday 25 July 2012, Richard Guenther wrote: > On Wed, Jul 25, 2012 at 4:25 PM, Allan Sandfeld Jensen > > wrote: > > On Wednesday 25 July 2012, Richard Guenther wrote: > >> On Wed, Jul 25, 2012 at 2:23 PM, Allan Sandfeld Jensen > >> > >> wrote: > >> > Hi, > >> > > >> > I have been experi

Re: Problems with pragma and attribute optimize.

2012-07-25 Thread Richard Guenther
On Wed, Jul 25, 2012 at 4:25 PM, Allan Sandfeld Jensen wrote: > On Wednesday 25 July 2012, Richard Guenther wrote: >> On Wed, Jul 25, 2012 at 2:23 PM, Allan Sandfeld Jensen >> >> wrote: >> > Hi, >> > >> > I have been experimenting with marking specific functions to be auto- >> > vectorized in GCC

Re: Problems with pragma and attribute optimize.

2012-07-25 Thread Allan Sandfeld Jensen
On Wednesday 25 July 2012, Richard Guenther wrote: > On Wed, Jul 25, 2012 at 2:23 PM, Allan Sandfeld Jensen > > wrote: > > Hi, > > > > I have been experimenting with marking specific functions to be auto- > > vectorized in GCC, but have had problems getting it to work. > > > > It seems the opti

Re: Problems with pragma and attribute optimize.

2012-07-25 Thread Richard Guenther
On Wed, Jul 25, 2012 at 2:23 PM, Allan Sandfeld Jensen wrote: > Hi, > > I have been experimenting with marking specific functions to be auto- > vectorized in GCC, but have had problems getting it to work. > > It seems the optimize attribute works sometimes, but only if the function it > is used on

Problems with pragma and attribute optimize.

2012-07-25 Thread Allan Sandfeld Jensen
Hi, I have been experimenting with marking specific functions to be auto- vectorized in GCC, but have had problems getting it to work. It seems the optimize attribute works sometimes, but only if the function it is used on is not static, but pragma optimize never seems to work. See the attached