diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-11-04 02:40:39 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-11-04 02:40:39 +0000 |
commit | 55710451f2f81d39b82472cfb3d7be7bd4ea98a2 (patch) | |
tree | e579e09abc940fe84b8a5b26cb42b617f7fe5510 /gcc/config/convex/convex.c | |
parent | 40cdfca60cab2c798fe7138a2d633b93bfd52c4f (diff) | |
download | gcc-55710451f2f81d39b82472cfb3d7be7bd4ea98a2.zip gcc-55710451f2f81d39b82472cfb3d7be7bd4ea98a2.tar.gz gcc-55710451f2f81d39b82472cfb3d7be7bd4ea98a2.tar.bz2 |
convex.c (convex_output_function_prologue): Fix format specifier warning.
* convex.c (convex_output_function_prologue): Fix format specifier
warning.
(asm_declare_function_name): Fix signed/unsigned warning.
(print_operand): Fix format specifier warning.
* convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
* dsp16xx-protos.h (uns_comparison_operator,
num_1600_core_shifts): Prototype.
* dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
(frame_size, frame_pointer_offset): Delete.
(dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
Make static. Fix format specifier warnings.
* dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
(EXTRA_SECTION_FUNCTIONS): Prototype const_section.
* dsp16xx.md: Add default case in switches.
* fr30.h (IN_RANGE): Delete.
* ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
* mcore-protos.h (mcore_output_cmov): Const-ify.
* mcore.c (mcore_output_cmov): Likewise.
* mcore.h (switch_to_section): Make static and prototype.
* mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
unsigned>=0 warnings.
* mn10300.h (REGNO_IN_RANGE_P): Likewise.
* rs6000-protos.h (read_only_data_section,
read_only_private_data_section): Prototype.
* rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
* sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
* sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
From-SVN: r46758
Diffstat (limited to 'gcc/config/convex/convex.c')
-rw-r--r-- | gcc/config/convex/convex.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gcc/config/convex/convex.c b/gcc/config/convex/convex.c index 6f965a2..6d38831 100644 --- a/gcc/config/convex/convex.c +++ b/gcc/config/convex/convex.c @@ -94,7 +94,11 @@ convex_output_function_prologue (file, size) { size = ((size) + 7) & -8; if (size) - fprintf (file, "\tsub.w #%d,sp\n", size); + { + fprintf (file, "\tsub.w #"); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, size); + fprintf (file, ",sp\n"); + } } /* This function generates the assembly code for function exit. @@ -568,7 +572,7 @@ asm_declare_function_name (file, name, decl) p = version_string; for (i = 0; i < 3; ) { c = *p; - if (c - '0' < (unsigned) 10) + if (ISDIGIT (c)) vers[i++] = c; if (c == 0 || c == ' ') vers[i++] = '0'; @@ -639,9 +643,15 @@ print_operand (file, x, code) break; default: if (code == 'u') - fprintf (file, "#%d", CONST_DOUBLE_HIGH (x)); + { + fprintf (file, "#"); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, CONST_DOUBLE_HIGH (x)); + } else - fprintf (file, "#%d", CONST_DOUBLE_LOW (x)); + { + fprintf (file, "#"); + fprintf (file, HOST_WIDE_INT_PRINT_DEC, CONST_DOUBLE_LOW (x)); + } } break; |