aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2001-06-05 20:32:41 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-06-05 20:32:41 +0000
commitd558416ef32eb82c6cf3b8fa446709690567c777 (patch)
treeada42d35b4befac7e457d3454c5ec417007a605d /gcc/print-rtl.c
parentb0317102a8643b027df3e93988c0b3d6146cbfc6 (diff)
downloadgcc-d558416ef32eb82c6cf3b8fa446709690567c777.zip
gcc-d558416ef32eb82c6cf3b8fa446709690567c777.tar.gz
gcc-d558416ef32eb82c6cf3b8fa446709690567c777.tar.bz2
print-rtl.c (xspaces): Remove.
* print-rtl.c (xspaces): Remove. (print_rtx): Use printf field-width, rather than xpsaces, to indent. * toplev.c (main): Disable sibling-call optimization if we are handling exceptions. * reload1.c (reload): Delete all USEs generated during reload. From-SVN: r42917
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index aeae71e..1c4e6f3 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -47,8 +47,6 @@ const char * reg_names[] = REGISTER_NAMES;
static FILE *outfile;
-static const char xspaces[] = " ";
-
static int sawclose = 0;
static int indent;
@@ -91,9 +89,8 @@ print_rtx (in_rtx)
if (flag_simple)
fputc (' ', outfile);
else
- fprintf (outfile, "\n%s%s",
- print_rtx_head,
- (xspaces + (sizeof xspaces - 1 - indent * 2)));
+ fprintf (outfile, "\n%s%*s",
+ print_rtx_head, indent * 2, "");
sawclose = 0;
}
@@ -282,9 +279,8 @@ print_rtx (in_rtx)
indent += 2;
if (sawclose)
{
- fprintf (outfile, "\n%s%s",
- print_rtx_head,
- (xspaces + (sizeof xspaces - 1 - indent * 2)));
+ fprintf (outfile, "\n%s%*s",
+ print_rtx_head, indent * 2, "");
sawclose = 0;
}
fputs ("[ ", outfile);
@@ -300,9 +296,8 @@ print_rtx (in_rtx)
indent -= 2;
}
if (sawclose)
- fprintf (outfile, "\n%s%s",
- print_rtx_head,
- (xspaces + (sizeof xspaces - 1 - indent * 2)));
+ fprintf (outfile, "\n%s%*s",
+ print_rtx_head, indent * 2, "");
fputs ("] ", outfile);
sawclose = 1;