From ripley at stats.ox.ac.uk  Thu Dec 18 10:52:14 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 18 Dec 2008 09:52:14 +0000 (GMT)
Subject: [Rd] Tip for removing -c99 when compiling with icc
In-Reply-To: <s3socz926c8.fsf@slagelg.uio.no>
References: <s3socz926c8.fsf@slagelg.uio.no>
Message-ID: <alpine.LFD.2.00.0812180939560.1422@gannet.stats.ox.ac.uk>

On Thu, 18 Dec 2008, Bj?rn-Helge Mevik wrote:

> Dear developeRs,
>
> As of icc 10, the -c99 option is deprecated, and generates a lot of
> warnings when compiling R or R packages.
>
> If you use CC="icc -std=c99" instead of just CC="icc", R's configure
> will not add the -c99 option, and the code seems to compile and run just
> fine.

It's not really R, but autoconf's macro (I believe called from AC_PROG_CC) 
which does

for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99

One day autoconf will catch up with icc and try -std=c99 as well.  (It may 
already have done so: we are using the 3-year-old 2.61 as PD has that on 
the release system, Mac OS X still does ....)

> (Please don't hesitate to let me know if this is a bad idea. :-)

It is fine: I'll add a note to the manual.

>
> -- 
> Regards,
> Bj?rn-Helge Mevik
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] Tip for removing -c99 when compiling with icc
Prof Brian Ripley