This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is "FTZ/DAZ for SSE via fast math" available for x86 arch other than Linux?
- From: "Zuxy Meng" <zuxy dot meng at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 21 May 2007 14:00:54 +0800
- Subject: Re: Is "FTZ/DAZ for SSE via fast math" available for x86 arch other than Linux?
- References: <esjjlg$4gl$1@sea.gmane.org> <000001c763ae$121517a0$714861cb@anykey> <a18e06b40703110731h3a718e14vb02ffdb2efad01e6@mail.gmail.com>
Hi
"Zuxy Meng" <zuxy.meng@gmail.com> дÈëÏûÏ¢ÐÂÎÅ:a18e06b40703110731h3a718e14vb02ffdb2efad01e6@mail.gmail.com...
> Hi,
>
> 2007/3/11, Danny Smith <dannysmith@clear.net.nz>:
>>
>>
>> > -----Original Message-----
>> > From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On
>> > Behalf Of Zuxy Meng
>> > Sent: Wednesday, 7 March 2007 12:36 a.m.
>>
>> >
>> > I've uploaded a proposed patch for this bug
>> > (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13151&action=diff).
>> > Putting
>> > crtfastmath.o in the endfile section of specs causes undefined
>> reference to
>> > memset, so I moved it to the startfile section. Anyone to review this?
>> Quite
>> > trivial anyway.
>>
>> Hello Zuxy,
>>
>> crtfasmath.o is an endfile for a reason. _set_fast_math is run from the
>> .ctors section. It needs to be run before other constructors that might
>> use fastmath, so is made an end ctor (ctors are run from right to left).
>>
>> The reference to memset does not occur on trunk with optimization. It
>> can be avoided with 4.2.0 by adding -minline-all-stringops to rule for
>> (T)crtfastmath.o
>
> Maybe such optimization isn't turned on for mingw. I updated the patch
> to force this by using -minline-all-stringops.
>
> http://gcc.gnu.org/bugzilla/attachment.cgi?id=13189
Any developer to have a look at this?
--
Zuxy