mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 03:50:26 +08:00
re PR debug/45673 (-fcompare-debug failure with minor difference in dumps)
PR debug/45673 PR debug/45604 PR debug/45419 PR debug/45408 * tree-pretty-print.c (dump_generic_node): Explicitly dump the type of MEM_REFs to INTEGER_CSTs. From-SVN: r165149
This commit is contained in:
parent
5bd84829f7
commit
7de9e0a108
@ -1,3 +1,12 @@
|
||||
2010-10-08 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
PR debug/45673
|
||||
PR debug/45604
|
||||
PR debug/45419
|
||||
PR debug/45408
|
||||
* tree-pretty-print.c (dump_generic_node): Explicitly dump the
|
||||
type of MEM_REFs to INTEGER_CSTs.
|
||||
|
||||
2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
|
||||
|
||||
* config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
|
||||
|
@ -801,6 +801,10 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
|
||||
case MEM_REF:
|
||||
{
|
||||
if (integer_zerop (TREE_OPERAND (node, 1))
|
||||
/* Dump the types of INTEGER_CSTs explicitly, for we can't
|
||||
infer them and MEM_ATTR caching will share MEM_REFs
|
||||
with differently-typed op0s. */
|
||||
&& TREE_CODE (TREE_OPERAND (node, 0)) != INTEGER_CST
|
||||
/* Same pointer types, but ignoring POINTER_TYPE vs.
|
||||
REFERENCE_TYPE. */
|
||||
&& (TREE_TYPE (TREE_TYPE (TREE_OPERAND (node, 0)))
|
||||
@ -1163,6 +1167,10 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
|
||||
|| (TREE_CODE (op0) == MEM_REF
|
||||
&& TREE_CODE (TREE_OPERAND (op0, 0)) != ADDR_EXPR
|
||||
&& integer_zerop (TREE_OPERAND (op0, 1))
|
||||
/* Dump the types of INTEGER_CSTs explicitly, for we
|
||||
can't infer them and MEM_ATTR caching will share
|
||||
MEM_REFs with differently-typed op0s. */
|
||||
&& TREE_CODE (TREE_OPERAND (op0, 0)) != INTEGER_CST
|
||||
/* Same pointer types, but ignoring POINTER_TYPE vs.
|
||||
REFERENCE_TYPE. */
|
||||
&& (TREE_TYPE (TREE_TYPE (TREE_OPERAND (op0, 0)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user