This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: where is math function inlining decision done?
- From: FX <fxcoudert at gmail dot com>
- To: IainS <developer at sandoe-acoustics dot co dot uk>
- Cc: Fortran List <fortran at gcc dot gnu dot org>
- Date: Fri, 20 Jun 2008 13:03:54 +0100
- Subject: Re: where is math function inlining decision done?
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=FqLVjwPXzxWpeckrpo2884KruEAO+xFvAQxgv1XmPfc=; b=wLefxQqoZbe3nF3Lz4BFS97YgI2VblypYrlTCHmB1QDPXE0sNxF6s82y0Y8tcHyFp9 92RtkCIhezPrwWIUnZ7DcoKgU9IShjg5oPNeB6N0oNjNDJFYknPnRzsUIvJaRchwgaTF ovEqqRUj7FKM7hs4O6UTAeSr4DZI9MApQ4/Xw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=W6dYZD3poTP0wilMPPzF6Tggqdvry0fZzXd11rpMM4gABU/w+J+achTMLpqzeG+Yyf y67Mdu7dP9XudLoYPU56xzlhvnaQMWntzykcJnzOe+45FM204yDSeo+Eyza2doRtnfje +nd++5rrxC2LdE5SIt8MqHgyOuARz8lL5idbo=
- References: <5875D8A7-5891-4E15-9928-40621E0891C6@sandoe-acoustics.co.uk>
In the case of one processor __builtin_fmod is getting replaced by
an inline
In the case of the other __builtin_fmod is generating a call to libm.
Where does gcc decide how to replace __builtin_fmod ?
What are your compilation options? Do both processors use the same fp
unit (ie, i387 or sse)?
FX
--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/