Bug#571572: Revert to gcc-4.3 with -O3?

Kumar Appaiah a.kumar at alumni.iitm.ac.in
Mon Oct 4 23:51:43 UTC 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20101004/57392488/attachment.pgp>


More information about the debian-science-maintainers mailing list