Commit 6725cc58 by Steve Ellcey Committed by Steve Ellcey

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
parent 6c1c875d
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.
2011-11-17 Andrew Pinski <apinski@cavium.com> 2011-11-17 Andrew Pinski <apinski@cavium.com>
* config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS. * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
...@@ -3585,7 +3585,7 @@ output_addr_const (FILE *file, rtx x) ...@@ -3585,7 +3585,7 @@ output_addr_const (FILE *file, rtx x)
break; break;
case CONST_INT: case CONST_INT:
fprint_w (file, INTVAL (x)); fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
break; break;
case CONST: case CONST:
...@@ -3741,33 +3741,6 @@ sprint_ul_rev (char *s, unsigned long value) ...@@ -3741,33 +3741,6 @@ sprint_ul_rev (char *s, unsigned long value)
return i; 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. */ /* Write an unsigned long as decimal to a file, fast. */
void void
......
...@@ -129,7 +129,6 @@ typedef HOST_WIDE_INT __gcc_host_wide_int__; ...@@ -129,7 +129,6 @@ typedef HOST_WIDE_INT __gcc_host_wide_int__;
#define ATTRIBUTE_ASM_FPRINTF(m, n) ATTRIBUTE_NONNULL(m) #define ATTRIBUTE_ASM_FPRINTF(m, n) ATTRIBUTE_NONNULL(m)
#endif #endif
extern void fprint_w (FILE *, HOST_WIDE_INT);
extern void fprint_whex (FILE *, unsigned HOST_WIDE_INT); extern void fprint_whex (FILE *, unsigned HOST_WIDE_INT);
extern void fprint_ul (FILE *, unsigned long); extern void fprint_ul (FILE *, unsigned long);
extern int sprint_ul (char *, unsigned long); extern int sprint_ul (char *, unsigned long);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment