aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-07-06 08:38:40 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2007-07-06 08:38:40 +0000
commit042f720de169cce9094e54e01e2f3b4bde4b63b3 (patch)
tree46920a8f96b836cac54ab800938b6cab2a3a5d33
parentd340d4cd03fb64cd63b820c60e3826d098be4234 (diff)
downloadgcc-042f720de169cce9094e54e01e2f3b4bde4b63b3.zip
gcc-042f720de169cce9094e54e01e2f3b4bde4b63b3.tar.gz
gcc-042f720de169cce9094e54e01e2f3b4bde4b63b3.tar.bz2
re PR debug/23551 (dwarf records for inlines appear incomplete)
PR debug/23551 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Disregard DECL_FROM_INLINE. From-SVN: r126402
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-copyrename.c16
2 files changed, 10 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6c867eb..17a2edf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-06 Alexandre Oliva <aoliva@redhat.com>
+
+ PR debug/23551
+ * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
+ Disregard DECL_FROM_INLINE.
+
2007-07-05 Adam Nemet <anemet@caviumnetworks.com>
* rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
diff --git a/gcc/tree-ssa-copyrename.c b/gcc/tree-ssa-copyrename.c
index 812ebe1..c0945d4 100644
--- a/gcc/tree-ssa-copyrename.c
+++ b/gcc/tree-ssa-copyrename.c
@@ -191,20 +191,12 @@ copy_rename_partition_coalesce (var_map map, tree var1, tree var2, FILE *debug)
ign1 = TREE_CODE (root1) == VAR_DECL && DECL_IGNORED_P (root1);
ign2 = TREE_CODE (root2) == VAR_DECL && DECL_IGNORED_P (root2);
- /* Never attempt to coalesce 2 user variables unless one is an inline
- variable. */
+ /* Never attempt to coalesce 2 user variables. */
if (!ign1 && !ign2)
{
- if (DECL_FROM_INLINE (root2))
- ign2 = true;
- else if (DECL_FROM_INLINE (root1))
- ign1 = true;
- else
- {
- if (debug)
- fprintf (debug, " : 2 different USER vars. No coalesce.\n");
- return false;
- }
+ if (debug)
+ fprintf (debug, " : 2 different USER vars. No coalesce.\n");
+ return false;
}
/* Don't coalesce if there are two different memory tags. */