Commit a90110c3 by Jie Zhang Committed by Jie Zhang

re PR debug/42767 (ICE in mem_loc_descriptor)

	PR debug/42767
	* dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
	and US_TRUNCATE.

	testsuite/
	PR debug/42767
	* gcc.dg/debug/pr42767.c: New.

From-SVN: r155974
parent 5eb7ce91
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> 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
* doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
......
/* Output Dwarf2 format symbol table information from GCC. /* Output Dwarf2 format symbol table information from GCC.
Copyright (C) 1992, 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 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). Contributed by Gary Funck (gary@intrepid.com).
Derived from DWARF 1 implementation of Ron Guilmette (rfg@monkeys.com). Derived from DWARF 1 implementation of Ron Guilmette (rfg@monkeys.com).
Extensively modified by Jason Merrill (jason@cygnus.com). Extensively modified by Jason Merrill (jason@cygnus.com).
...@@ -13438,6 +13438,8 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode, ...@@ -13438,6 +13438,8 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode,
/* In theory, we could implement the above. */ /* In theory, we could implement the above. */
/* DWARF cannot represent the unsigned compare operations /* DWARF cannot represent the unsigned compare operations
natively. */ natively. */
case SS_TRUNCATE:
case US_TRUNCATE:
case SS_MULT: case SS_MULT:
case US_MULT: case US_MULT:
case SS_DIV: case SS_DIV:
......
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> 2010-01-15 Jason Merrill <jason@redhat.com>
PR c++/42761 PR c++/42761
......
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment