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


Miles Bader <miles@gnu.org> 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.

The tuple support relies on very new code in the C++ frontend, for
variadic templates, so it's not surprising that there are some problems.
The std::pair class is just a struct with two elements.

Ian


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