mirror of git://gcc.gnu.org/git/gcc.git
hwint.h (HOST_WIDE_INT_PRINT, [...]): New macros.
* hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros. (HOST_WIDE_INT_PRINT_DEC_SPACE, HOST_WIDE_INT_PRINT_UNSIGNED_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete. (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C, HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C. * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT. * ra-debug.c (dump_static_insn_cost): Likewise. From-SVN: r68489
This commit is contained in:
parent
2784775405
commit
85f015e120
|
|
@ -1,3 +1,17 @@
|
||||||
|
2003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
|
* hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
|
||||||
|
(HOST_WIDE_INT_PRINT_DEC_SPACE,
|
||||||
|
HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
|
||||||
|
HOST_WIDEST_INT_PRINT_DEC_SPACE,
|
||||||
|
HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
|
||||||
|
(HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
|
||||||
|
HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
|
||||||
|
terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
|
||||||
|
|
||||||
|
* final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
|
||||||
|
* ra-debug.c (dump_static_insn_cost): Likewise.
|
||||||
|
|
||||||
2003-06-26 Nick Clifton <nickc@redhat.com>
|
2003-06-26 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
|
* config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
|
||||||
|
|
|
||||||
13
gcc/final.c
13
gcc/final.c
|
|
@ -3419,17 +3419,8 @@ asm_fprintf (FILE *file, const char *p, ...)
|
||||||
'o' cases, but we do not check for those cases. It
|
'o' cases, but we do not check for those cases. It
|
||||||
means that the value is a HOST_WIDE_INT, which may be
|
means that the value is a HOST_WIDE_INT, which may be
|
||||||
either `long' or `long long'. */
|
either `long' or `long long'. */
|
||||||
|
memcpy (q, HOST_WIDE_INT_PRINT, strlen (HOST_WIDE_INT_PRINT));
|
||||||
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
|
q += strlen (HOST_WIDE_INT_PRINT);
|
||||||
#else
|
|
||||||
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
|
|
||||||
*q++ = 'l';
|
|
||||||
#else
|
|
||||||
*q++ = 'l';
|
|
||||||
*q++ = 'l';
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
*q++ = *p++;
|
*q++ = *p++;
|
||||||
*q = 0;
|
*q = 0;
|
||||||
fprintf (file, buf, va_arg (argptr, HOST_WIDE_INT));
|
fprintf (file, buf, va_arg (argptr, HOST_WIDE_INT));
|
||||||
|
|
|
||||||
27
gcc/hwint.h
27
gcc/hwint.h
|
|
@ -64,12 +64,8 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1];
|
||||||
/* Various printf format strings for HOST_WIDE_INT. */
|
/* Various printf format strings for HOST_WIDE_INT. */
|
||||||
|
|
||||||
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
|
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
|
||||||
# define HOST_WIDE_INT_PRINT_DEC "%ld"
|
# define HOST_WIDE_INT_PRINT "l"
|
||||||
# define HOST_WIDE_INT_PRINT_DEC_C "%ldL"
|
# define HOST_WIDE_INT_PRINT_C "L"
|
||||||
# define HOST_WIDE_INT_PRINT_DEC_SPACE "% *ld"
|
|
||||||
# define HOST_WIDE_INT_PRINT_UNSIGNED "%lu"
|
|
||||||
# define HOST_WIDE_INT_PRINT_UNSIGNED_SPACE "% *lu"
|
|
||||||
# define HOST_WIDE_INT_PRINT_HEX "0x%lx"
|
|
||||||
/* 'long' might be 32 or 64 bits, and the number of leading zeroes
|
/* 'long' might be 32 or 64 bits, and the number of leading zeroes
|
||||||
must be tweaked accordingly. */
|
must be tweaked accordingly. */
|
||||||
# if HOST_BITS_PER_WIDE_INT == 64
|
# if HOST_BITS_PER_WIDE_INT == 64
|
||||||
|
|
@ -78,15 +74,16 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1];
|
||||||
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx"
|
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx"
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define HOST_WIDE_INT_PRINT_DEC "%lld"
|
# define HOST_WIDE_INT_PRINT "ll"
|
||||||
# define HOST_WIDE_INT_PRINT_DEC_C "%lldLL"
|
# define HOST_WIDE_INT_PRINT_C "LL"
|
||||||
# define HOST_WIDE_INT_PRINT_DEC_SPACE "% *lld"
|
|
||||||
# define HOST_WIDE_INT_PRINT_UNSIGNED "%llu"
|
|
||||||
# define HOST_WIDE_INT_PRINT_UNSIGNED_SPACE "% *llu"
|
|
||||||
# define HOST_WIDE_INT_PRINT_HEX "0x%llx"
|
|
||||||
/* We can assume that 'long long' is at least 64 bits. */
|
/* We can assume that 'long long' is at least 64 bits. */
|
||||||
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%llx%016llx"
|
# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%llx%016llx"
|
||||||
#endif
|
#endif /* HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG */
|
||||||
|
|
||||||
|
#define HOST_WIDE_INT_PRINT_DEC "%" HOST_WIDE_INT_PRINT "d"
|
||||||
|
#define HOST_WIDE_INT_PRINT_DEC_C HOST_WIDE_INT_PRINT_DEC HOST_WIDE_INT_PRINT_C
|
||||||
|
#define HOST_WIDE_INT_PRINT_UNSIGNED "%" HOST_WIDE_INT_PRINT "u"
|
||||||
|
#define HOST_WIDE_INT_PRINT_HEX "0x%" HOST_WIDE_INT_PRINT "x"
|
||||||
|
|
||||||
/* Set HOST_WIDEST_INT. This is a 64-bit type unless the compiler
|
/* Set HOST_WIDEST_INT. This is a 64-bit type unless the compiler
|
||||||
in use has no 64-bit type at all; in that case it's 32 bits. */
|
in use has no 64-bit type at all; in that case it's 32 bits. */
|
||||||
|
|
@ -97,9 +94,7 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1];
|
||||||
# define HOST_BITS_PER_WIDEST_INT HOST_BITS_PER_WIDE_INT
|
# define HOST_BITS_PER_WIDEST_INT HOST_BITS_PER_WIDE_INT
|
||||||
# define HOST_WIDEST_INT_PRINT_DEC HOST_WIDE_INT_PRINT_DEC
|
# define HOST_WIDEST_INT_PRINT_DEC HOST_WIDE_INT_PRINT_DEC
|
||||||
# define HOST_WIDEST_INT_PRINT_DEC_C HOST_WIDE_INT_PRINT_DEC_C
|
# define HOST_WIDEST_INT_PRINT_DEC_C HOST_WIDE_INT_PRINT_DEC_C
|
||||||
# define HOST_WIDEST_INT_PRINT_DEC_SPACE HOST_WIDE_INT_PRINT_DEC_SPACE
|
|
||||||
# define HOST_WIDEST_INT_PRINT_UNSIGNED HOST_WIDE_INT_PRINT_UNSIGNED
|
# define HOST_WIDEST_INT_PRINT_UNSIGNED HOST_WIDE_INT_PRINT_UNSIGNED
|
||||||
# define HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE HOST_WIDE_INT_PRINT_UNSIGNED_SPACE
|
|
||||||
# define HOST_WIDEST_INT_PRINT_HEX HOST_WIDE_INT_PRINT_HEX
|
# define HOST_WIDEST_INT_PRINT_HEX HOST_WIDE_INT_PRINT_HEX
|
||||||
# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX HOST_WIDE_INT_PRINT_DOUBLE_HEX
|
# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX HOST_WIDE_INT_PRINT_DOUBLE_HEX
|
||||||
#else
|
#else
|
||||||
|
|
@ -116,9 +111,7 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1];
|
||||||
# endif
|
# endif
|
||||||
# define HOST_WIDEST_INT_PRINT_DEC "%lld"
|
# define HOST_WIDEST_INT_PRINT_DEC "%lld"
|
||||||
# define HOST_WIDEST_INT_PRINT_DEC_C "%lldLL"
|
# define HOST_WIDEST_INT_PRINT_DEC_C "%lldLL"
|
||||||
# define HOST_WIDEST_INT_PRINT_DEC_SPACE "% *lld"
|
|
||||||
# define HOST_WIDEST_INT_PRINT_UNSIGNED "%llu"
|
# define HOST_WIDEST_INT_PRINT_UNSIGNED "%llu"
|
||||||
# define HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE "% *llu"
|
|
||||||
# define HOST_WIDEST_INT_PRINT_HEX "0x%llx"
|
# define HOST_WIDEST_INT_PRINT_HEX "0x%llx"
|
||||||
# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX "0x%llx%016llx"
|
# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX "0x%llx%016llx"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -985,21 +985,16 @@ dump_static_insn_cost (file, message, prefix)
|
||||||
if (!prefix)
|
if (!prefix)
|
||||||
prefix = "";
|
prefix = "";
|
||||||
fprintf (file, "static insn cost %s\n", message ? message : "");
|
fprintf (file, "static insn cost %s\n", message ? message : "");
|
||||||
fprintf (file, " %soverall:\tnum=%6d\tcost="
|
fprintf (file, " %soverall:\tnum=%6d\tcost=% 8" HOST_WIDE_INT_PRINT "d\n",
|
||||||
HOST_WIDE_INT_PRINT_DEC_SPACE "\n",
|
prefix, overall.count, overall.cost);
|
||||||
prefix, overall.count, 8, overall.cost);
|
fprintf (file, " %sloads:\tnum=%6d\tcost=% 8" HOST_WIDE_INT_PRINT "d\n",
|
||||||
fprintf (file, " %sloads:\tnum=%6d\tcost="
|
prefix, load.count, load.cost);
|
||||||
HOST_WIDE_INT_PRINT_DEC_SPACE "\n",
|
fprintf (file, " %sstores:\tnum=%6d\tcost=% 8" HOST_WIDE_INT_PRINT "d\n",
|
||||||
prefix, load.count, 8, load.cost);
|
prefix, store.count, store.cost);
|
||||||
fprintf (file, " %sstores:\tnum=%6d\tcost="
|
fprintf (file, " %sregcopy:\tnum=%6d\tcost=% 8" HOST_WIDE_INT_PRINT "d\n",
|
||||||
HOST_WIDE_INT_PRINT_DEC_SPACE "\n",
|
prefix, regcopy.count, regcopy.cost);
|
||||||
prefix, store.count, 8, store.cost);
|
fprintf (file, " %sselfcpy:\tnum=%6d\tcost=% 8" HOST_WIDE_INT_PRINT "d\n",
|
||||||
fprintf (file, " %sregcopy:\tnum=%6d\tcost="
|
prefix, selfcopy.count, selfcopy.cost);
|
||||||
HOST_WIDE_INT_PRINT_DEC_SPACE "\n",
|
|
||||||
prefix, regcopy.count, 8, regcopy.cost);
|
|
||||||
fprintf (file, " %sselfcpy:\tnum=%6d\tcost="
|
|
||||||
HOST_WIDE_INT_PRINT_DEC_SPACE "\n",
|
|
||||||
prefix, selfcopy.count, 8, selfcopy.cost);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns nonzero, if WEB1 and WEB2 have some possible
|
/* Returns nonzero, if WEB1 and WEB2 have some possible
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue