aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2011-06-27 14:54:09 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-06-27 14:54:09 +0000
commit353b39fa9d51efa6213cf277a036548c32cf655a (patch)
treec502659c344547c4e21d4e3ea174d3288dd3fb79
parenta7af037b11a17b98365306466eaa568b8c01ca89 (diff)
downloadgcc-353b39fa9d51efa6213cf277a036548c32cf655a.zip
gcc-353b39fa9d51efa6213cf277a036548c32cf655a.tar.gz
gcc-353b39fa9d51efa6213cf277a036548c32cf655a.tar.bz2
* dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
From-SVN: r175535
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/dwarf2out.c14
2 files changed, 11 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e0abefe..199b653 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
+ * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
+
+2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
+
PR lto/48492
* dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
to a NULL parent.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 63ac527..3d63d7b 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -6207,19 +6207,19 @@ skeleton_chain_node;
#endif
/* Define a macro which returns nonzero for a TYPE_DECL which was
- implicitly generated for a tagged type.
+ implicitly generated for a type.
- Note that unlike the gcc front end (which generates a NULL named
- TYPE_DECL node for each complete tagged type, each array type, and
- each function type node created) the g++ front end generates a
- _named_ TYPE_DECL node for each tagged type node created.
+ Note that, unlike the C front-end (which generates a NULL named
+ TYPE_DECL node for each complete tagged type, each array type,
+ and each function type node created) the C++ front-end generates
+ a _named_ TYPE_DECL node for each tagged type node created.
These TYPE_DECLs have DECL_ARTIFICIAL set, so we know not to
- generate a DW_TAG_typedef DIE for them. */
+ generate a DW_TAG_typedef DIE for them. Likewise with the Ada
+ front-end, but for each type, tagged or not. */
#define TYPE_DECL_IS_STUB(decl) \
(DECL_NAME (decl) == NULL_TREE \
|| (DECL_ARTIFICIAL (decl) \
- && is_tagged_type (TREE_TYPE (decl)) \
&& ((decl == TYPE_STUB_DECL (TREE_TYPE (decl))) \
/* This is necessary for stub decls that \
appear in nested inline functions. */ \