diff options
author | Steve Ellcey <sje@cup.hp.com> | 2011-11-17 21:22:11 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2011-11-17 21:22:11 +0000 |
commit | 6725cc583ff4b3b01f8a6ff3feaf9cb8a6c50b8b (patch) | |
tree | daa145a85b38888d8f506a71b318ec811eefc6ca /gcc/final.c | |
parent | 6c1c875d6e70f6577790911cb6df5e0e60a34c9f (diff) | |
download | gcc-6725cc583ff4b3b01f8a6ff3feaf9cb8a6c50b8b.zip gcc-6725cc583ff4b3b01f8a6ff3feaf9cb8a6c50b8b.tar.gz gcc-6725cc583ff4b3b01f8a6ff3feaf9cb8a6c50b8b.tar.bz2 |
re PR middle-end/51144 (r181279 possibly miscompilation of genmddeps)
2011-11-17 Steve Ellcey <sje@cup.hp.com>
PR middle-end/51144
* output.h (fprint_w): Remove.
* final.c (fprint_w): Remove.
(output_addr_const): Change fprint_w back to fprintf.
From-SVN: r181457
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/gcc/final.c b/gcc/final.c index cc3a199..60df6fa 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 |