quick format change

Zagorodnev, Grigory grigory.zagorodnev@intel.com
Tue Apr 5 21:41:00 GMT 2005


Andrew,
Similar changes must be applied to tree-ssa-operands.c. Otherwise
mainline GCC bootstrap fails at IPF (like at other 64-bit platforms).

Would you commit this fix as well, please?

Thanks.
---
Grigory Zagorodnev
Intel Corporation


Index: tree-ssa-operands.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/tree-ssa-operands.c,v
retrieving revision 2.71
diff -c -r2.71 tree-ssa-operands.c
*** tree-ssa-operands.c 5 Apr 2005 19:05:10 -0000       2.71
--- tree-ssa-operands.c 5 Apr 2005 21:31:28 -0000
***************
*** 2185,2196 ****
      {
        if (stmt_modified_p(stmt))
        {
!         fprintf (f, " STMT MODIFIED. - <0x%x> ", (unsigned int)stmt);
          print_generic_stmt (f, stmt, TDF_SLIM);
        }
      }
!   fprintf (f, " IMM ERROR : (use_p : tree: 0x%X:0x%x)", (unsigned
int)var, 
!          (unsigned int)var->use);
    print_generic_expr (f, USE_FROM_PTR (var), TDF_SLIM);
    fprintf(f, "\n");
  }
--- 2185,2196 ----
      {
        if (stmt_modified_p(stmt))
        {
!         fprintf (f, " STMT MODIFIED. - <0x%p> ", (void *)stmt);
          print_generic_stmt (f, stmt, TDF_SLIM);
        }
      }
!   fprintf (f, " IMM ERROR : (use_p : tree: 0x%p:0x%p)", (void *)var, 
!          (void *)var->use);
    print_generic_expr (f, USE_FROM_PTR (var), TDF_SLIM);
    fprintf(f, "\n");
  }



>-----Original Message-----
>From: gcc-patches-owner@gcc.gnu.org
[mailto:gcc-patches-owner@gcc.gnu.org]
>On Behalf Of Andrew MacLeod
>Sent: Wednesday, April 06, 2005 12:45 AM
>To: gcc-patches
>Subject: quick format change
>
>Apparently obvious :-)  checked in.
>
>Andrew
>
>
>
>2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
>
>	* tree-pretty-print.c (dump_generic_node): Use %p for pointer.
>
>
>Index: tree-pretty-print.c
>===================================================================
>RCS file: /cvs/gcc/gcc/gcc/tree-pretty-print.c,v
>retrieving revision 2.54
>diff -c -p -r2.54 tree-pretty-print.c
>*** tree-pretty-print.c	5 Apr 2005 19:05:03 -0000	2.54
>--- tree-pretty-print.c	5 Apr 2005 20:38:27 -0000
>*************** dump_generic_node (pretty_printer *buffe
>*** 272,278 ****
>      dump_vops (buffer, node, spc, flags);
>
>    if (is_stmt && (flags & TDF_STMTADDR))
>!     pp_printf (buffer, "<&0x%x> ", (unsigned int)node);
>
>    if (dumping_stmts
>        && (flags & TDF_LINENO)
>--- 272,278 ----
>      dump_vops (buffer, node, spc, flags);
>
>    if (is_stmt && (flags & TDF_STMTADDR))
>!     pp_printf (buffer, "<&%p> ", (void *)node);
>
>    if (dumping_stmts
>        && (flags & TDF_LINENO)
>



More information about the Gcc-patches mailing list