diff options
| author | jiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-17 10:19:22 +0000 |
|---|---|---|
| committer | jiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-17 10:19:22 +0000 |
| commit | 40dbcb16da5ec49099c627c8b9eaddbab1dc22d7 (patch) | |
| tree | 812b8c4586dace657567c5fb483ad563bdda378c | |
| parent | c3d15dba88361e996cde4beb76ef2e4f44e3fa7d (diff) | |
| download | ppe42-gcc-40dbcb16da5ec49099c627c8b9eaddbab1dc22d7.tar.gz ppe42-gcc-40dbcb16da5ec49099c627c8b9eaddbab1dc22d7.zip | |
PR debug/42767
* dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
and US_TRUNCATE.
testsuite/
PR debug/42767
* gcc.dg/debug/pr42767.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155974 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/dwarf2out.c | 4 | ||||
| -rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/debug/pr42767.c | 18 |
4 files changed, 32 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a313c02fbb..6a24e59480c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-01-17 Jie Zhang <jie.zhang@analog.com> + + PR debug/42767 + * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE + and US_TRUNCATE. + 2010-01-17 Joern Rennecke <amylaar@spamcop.net> * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 02c0afd1171..11a496034a4 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -1,6 +1,6 @@ /* Output Dwarf2 format symbol table information from GCC. Copyright (C) 1992, 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by Gary Funck (gary@intrepid.com). Derived from DWARF 1 implementation of Ron Guilmette (rfg@monkeys.com). Extensively modified by Jason Merrill (jason@cygnus.com). @@ -13438,6 +13438,8 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode, /* In theory, we could implement the above. */ /* DWARF cannot represent the unsigned compare operations natively. */ + case SS_TRUNCATE: + case US_TRUNCATE: case SS_MULT: case US_MULT: case SS_DIV: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8c45d483af0..1302d42db3a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-01-17 Jie Zhang <jie.zhang@analog.com> + + PR debug/42767 + * gcc.dg/debug/pr42767.c: New. + 2010-01-15 Jason Merrill <jason@redhat.com> PR c++/42761 diff --git a/gcc/testsuite/gcc.dg/debug/pr42767.c b/gcc/testsuite/gcc.dg/debug/pr42767.c new file mode 100644 index 00000000000..1f0e25fe58e --- /dev/null +++ b/gcc/testsuite/gcc.dg/debug/pr42767.c @@ -0,0 +1,18 @@ +/* PR debug/42767 */ +/* { dg-do compile } */ +/* { dg-options "-O1 -g" } */ + +struct lineno_cache_entry +{ + unsigned long size; +}; +_bfd_link_section_stabs (struct lineno_cache_entry * stabsec) +{ + unsigned long count; + unsigned char *sym; + unsigned char *symend; + unsigned long skip; + count = stabsec->size / 12; + for (; sym < symend; sym += 1); + stabsec->size = (count - skip) * 12; +} |

