]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR ipa/60761 (Improve dump_decl for clones)
authorRichard Biener <rguenther@suse.de>
Thu, 10 Apr 2014 16:20:07 +0000 (16:20 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Apr 2014 16:20:07 +0000 (18:20 +0200)
PR ipa/60761
* error.c (dump_decl) <case FUNCTION_DECL>: If
DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not,
recurse on DECL_ABSTRACT_ORIGIN instead of printing
<built-in>.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r209278

gcc/cp/ChangeLog
gcc/cp/error.c

index 3c09daa3f6490625c6aafd46a674d41b4295b34a..afbf24ace9505af4a8f84f8ea1d2025d560ac4c5 100644 (file)
@@ -1,3 +1,12 @@
+2014-04-10  Richard Biener  <rguenther@suse.de>
+           Jakub Jelinek  <jakub@redhat.com>
+
+       PR ipa/60761
+       * error.c (dump_decl) <case FUNCTION_DECL>: If
+       DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not,
+       recurse on DECL_ABSTRACT_ORIGIN instead of printing
+       <built-in>.
+
 2014-04-09  Fabien ChĂȘne  <fabien@gcc.gnu.org>
 
        * pt.c (check_template_variable): Check for the return of pedwarn
index 454feb519897f338be34dc9e2651cf8ae059dac8..699d5458a40f0b82145c18b563f2fd622af02c88 100644 (file)
@@ -1145,7 +1145,12 @@ dump_decl (cxx_pretty_printer *pp, tree t, int flags)
 
     case FUNCTION_DECL:
       if (! DECL_LANG_SPECIFIC (t))
-       pp_string (pp, M_("<built-in>"));
+       {
+         if (DECL_ABSTRACT_ORIGIN (t))
+           dump_decl (pp, DECL_ABSTRACT_ORIGIN (t), flags);
+         else
+           pp_string (pp, M_("<built-in>"));
+       }
       else if (DECL_GLOBAL_CTOR_P (t) || DECL_GLOBAL_DTOR_P (t))
        dump_global_iord (pp, t);
       else