This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: surprising optimization of comparison operations for __int128_t


On Fri, Jul 9, 2010 at 12:35 PM, Andrew Haley <aph@redhat.com> wrote:
>> things). Do you know of a way to convince gcc to not generate this
>> specialization so that I really measure the generic comparison
>> function ? I guess that I could pull the constant values from the
>> command line to ensure that gcc does not generate this specialization
>> but is there a better way ?
>
> Sure, just don't use constants for 1 and 2. ÂPutting them as variables
> in file scope ought to do it.
>
> int one = 1;

that did not work: I had to pull them explicitely from the command-line.

> P.S. ÂPlease cc: me on copies, don't send a separate mail.

Yes: I need to get used to that stupid gmail, sorry for that :/

Mathieu
-- 
Mathieu Lacage <mathieu.lacage@gmail.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]