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: c++0x tuple vs. pair


Ian Lance Taylor <iant@google.com> writes:
>>    tuple_test(std::tuple<A> const&):
>>            movq	(%rdi), %rax
>>            movq	(%rax), %rax
>>            jmp	*%rax
>
> This is pretty hard to justify.  Please consider filing a
> missed-optimization bug report.  Thanks.

Ok, I filed a bug.

Strangely, when I tried this test again today (same compiler version and
options, different machine), the final "extern_tuple_test" function,
which did get correctly optimized to a direct jump yesterday, resulted
in an indirect call today !  So something seems weird...

Thanks,

-Miles

-- 
"1971 pickup truck; will trade for guns"


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