This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/53756 (-g and C++1y auto)
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jason Merrill <jason at redhat dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 29 Jan 2014 17:48:13 +0100
- Subject: Re: C++ PATCH for c++/53756 (-g and C++1y auto)
- Authentication-results: sourceware.org; auth=none
- References: <52E7E353 dot 3020604 at redhat dot com> <52E7F80B dot 7000202 at oracle dot com> <52E81B01 dot 6090401 at redhat dot com> <52E8229D dot 8010502 at oracle dot com> <52E92F89 dot 7070304 at redhat dot com>
On 01/29/2014 05:42 PM, Jason Merrill wrote:
On 01/28/2014 04:35 PM, Paolo Carlini wrote:
+ if (is_cxx ())
+ {
+ tree name = TYPE_NAME (type);
+ if (TREE_CODE (name) == TYPE_DECL)
+ name = DECL_NAME (name);
+ if (name == get_identifier ("auto"))
+ return 0;
Rather than duplicate this code, let's factor it out into a separate
function.
Yeah, you are totally right, we have at least 3/4 uses of that. Care to
propose a name?
Also, your ChangeLog has nothing to do with the patch. :)
:) I attached 58581 instead of 58561.
Paolo.