Ciaran McCreesh wrote:
On Sat, 31 May 2008 01:13:58 +0200
Luca Barbato <[EMAIL PROTECTED]> wrote:
I know exactly which standard -ffast-math violates (IEEE/ISO floating point spec) and how (the man page is quite complete about this), --as-needed doesn't have any warning about this, there isn't any standard that it violates since it's the default behavior at least
for 2 platform (one from those who wrote most of the ELF spec...).
Point the spec, and the paragraph violated.

ISO/IEC 14882:1998 section 3.7.1 paragraph 2.


"If an object of static storage duration has initialization or a destructor with side effects, it shall not be eliminated even if
it appears to be unused, except that a class object or its copy
may be eliminated as specified in 12.8."

Unchanged in the 2003 revision.

Is that related to linking? I don't think so. Still, PE and ELF are older than the first C++ spec so, IFF your reading of this chapter is correct, C++ is broken by design.

lu

--

Luca Barbato
Gentoo Council Member
Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero

--
gentoo-dev@lists.gentoo.org mailing list


Reply via email to