This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PR53135] Use block4 form for large debug expressions
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 02 Oct 2012 16:02:57 -0300
- Subject: [PR53135] Use block4 form for large debug expressions
This patch fixes a crash in dwarf2out because of a too-large debug
expression. Jakub approved it for trunk and 4.7 branches in bugzilla.
I'm installing it in the trunk momentarily, and later today on 4.7 after
I give it a spin there. Regstrapped on x86_64-linux-gnu and
i686-linux-gnu.
I'm keeping the testcase open because we still have an underlying
problem and other improvements to make.
Use block4 form for large debug expressions.
From: Alexandre Oliva <aoliva@redhat.com>
for gcc/ChangeLog
PR debug/53135
* dwarf2out.c (value_format): Use block4 for dw_val_class_loc
when needed.
---
gcc/dwarf2out.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index c776f68..25f57c0 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -7491,6 +7491,8 @@ value_format (dw_attr_ref a)
return DW_FORM_block1;
case 2:
return DW_FORM_block2;
+ case 4:
+ return DW_FORM_block4;
default:
gcc_unreachable ();
}
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer