From 5ea9766afab2d535623003367a1cebc2faab4d2c Mon Sep 17 00:00:00 2001 From: sje Date: Thu, 17 Nov 2011 21:22:11 +0000 Subject: 2011-11-17 Steve Ellcey PR middle-end/51144 * output.h (fprint_w): Remove. * final.c (fprint_w): Remove. (output_addr_const): Change fprint_w back to fprintf. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181457 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/final.c | 29 +---------------------------- gcc/output.h | 1 - 3 files changed, 8 insertions(+), 29 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c34126eacb0..2368d46bf53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2011-11-17 Steve Ellcey + + PR middle-end/51144 + * output.h (fprint_w): Remove. + * final.c (fprint_w): Remove. + (output_addr_const): Change fprint_w back to fprintf. + 2011-11-17 Andrew Pinski * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS. diff --git a/gcc/final.c b/gcc/final.c index cc3a199692e..60df6fa70a6 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -3585,7 +3585,7 @@ output_addr_const (FILE *file, rtx x) break; case CONST_INT: - fprint_w (file, INTVAL (x)); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x)); break; case CONST: @@ -3741,33 +3741,6 @@ sprint_ul_rev (char *s, unsigned long value) return i; } -/* Write a signed HOST_WIDE_INT as decimal to a file, fast. */ - -void -fprint_w (FILE *f, HOST_WIDE_INT value) -{ - /* python says: len(str(2**64)) == 20 */ - char s[20]; - int i; - - if (value >= 0) - i = sprint_ul_rev (s, (unsigned long) value); - else - { - /* Cast to long long to output max negative correctly! */ - i = sprint_ul_rev (s, ((unsigned long long) value) * -1); - putc('-', f); - } - - /* It's probably too small to bother with string reversal and fputs. */ - do - { - i--; - putc (s[i], f); - } - while (i != 0); -} - /* Write an unsigned long as decimal to a file, fast. */ void diff --git a/gcc/output.h b/gcc/output.h index e73c4a4c6bc..2cabaaa4499 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -129,7 +129,6 @@ typedef HOST_WIDE_INT __gcc_host_wide_int__; #define ATTRIBUTE_ASM_FPRINTF(m, n) ATTRIBUTE_NONNULL(m) #endif -extern void fprint_w (FILE *, HOST_WIDE_INT); extern void fprint_whex (FILE *, unsigned HOST_WIDE_INT); extern void fprint_ul (FILE *, unsigned long); extern int sprint_ul (char *, unsigned long); -- cgit v1.2.1