On Mon, Oct 04, 2010 at 11:54:19PM +0200, Sylvestre Ledru wrote:
> > Dear Sylvestre,
> > 
> > Given that the gcc upstream has said that it is infeasible to fix this
> > bug in gcc-4.4, and that gcc-4.3 is going to be part of squeeze (it is
> > used to build the kernel), I was wondering what you felt about
> > going back to building blas with -O3 and gcc-4.3. Do you feel strongly
> > against this, or are you open to this consideration?
> I am open. However, I am not planning to implement your suggestion
> because other might felt into this bug ;)
> 
> I would like to do something like:
> if GCCversion == 4.3 && arch=*amd64
> CFLAGS=-O2
> else
> CFLAGS=-O3
> endif
> 
> However, I don't know if there is a clean way to detect the gcc
> version ?!

How about this:

gfortran -v 2>&1|awk '/gcc version/ { print $3 }'

Again, this is ugly; this problem is a rather sad one, so no solution
seems good. :-(

Kumar
-- 
Hesitating to act because the whole vision might not be achieved, or
because others do not yet share it, is an attitude that only hinders
progress.
  -- Mahatma Gandhi

Attachment: signature.asc
Description: Digital signature

Reply via email to