This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: c++0x tuple vs. pair
- From: Ian Lance Taylor <iant at google dot com>
- To: Miles Bader <miles at gnu dot org>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 16 Nov 2010 07:33:25 -0800
- Subject: Re: c++0x tuple vs. pair
- References: <buowrodsqa7.fsf@dhlpc061.dev.necel.com>
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