diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-24 14:59:52 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-24 14:59:52 +0000 |
commit | fac0decdb8606ec3ce2868bb1ef42bb06f22863f (patch) | |
tree | cf28fb3defed196f12a1455c0263d8202b8f961d | |
parent | a5650c86908b3048c79602aadbcc619a603410b4 (diff) | |
download | gcc-fac0decdb8606ec3ce2868bb1ef42bb06f22863f.tar.gz |
PR c++/58561
* dbxout.c: Include stringpool.h
(dbxout_type) [default]: Ignore auto type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218020 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/dbxout.c | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cadd82f65c7..6bc1bb13adb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-24 David Edelsohn <dje.gcc@gmail.com> + + PR c++/58561 + * dbxout.c: Include stringpool.h + (dbxout_type) [default]: Ignore auto type. + 2014-11-24 Richard Biener <rguenther@suse.de> PR tree-optimization/63679 diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 1f04f72cbb5..207db1094d5 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -103,6 +103,7 @@ along with GCC; see the file COPYING3. If not see #include "plugin-api.h" #include "ipa-ref.h" #include "cgraph.h" +#include "stringpool.h" #ifdef XCOFF_DEBUGGING_INFO #include "xcoffout.h" @@ -2329,6 +2330,17 @@ dbxout_type (tree type, int full) break; default: + /* A C++ function with deduced return type can have a TEMPLATE_TYPE_PARM + named 'auto' in its type. + No debug info for TEMPLATE_TYPE_PARM type supported yet. */ + if (lang_GNU_CXX ()) + { + tree name = TYPE_IDENTIFIER (type); + if (name == get_identifier ("auto") + || name == get_identifier ("decltype(auto)")) + break; + } + gcc_unreachable (); } } |