diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-06-22 05:32:38 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-06-22 05:32:38 +0000 |
commit | e016950d0c095ffdb36c918c7965148e344ca617 (patch) | |
tree | cad4049526361147cf85cf7b5d756642a9cf9c67 /gcc/varasm.c | |
parent | 296433e1a9e3c644fec1f1805dd595555683d9a0 (diff) | |
download | gcc-e016950d0c095ffdb36c918c7965148e344ca617.zip gcc-e016950d0c095ffdb36c918c7965148e344ca617.tar.gz gcc-e016950d0c095ffdb36c918c7965148e344ca617.tar.bz2 |
Warning fixes:
* reload1.c (reload_cse_regs): Cast first arg of `bzero' to char *.
* sdbout.c: Include output.h and toplev.h.
(PUT_SDB_INT_VAL): Use HOST_WIDE_INT_PRINT_DEV to print argument
`a'. Cast `a' to HOST_WIDE_INT to force it to always be so.
(PUT_SDB_SIZE): Likewise.
* sdbout.h (sdbout_mark_begin_function): Add prototype.
* stmt.c (check_for_full_enumeration_handling): Cast argument of
`warning' to long and use %ld specifier.
* toplev.c (main): Likewise for `fprintf'.
* toplev.h (output_file_directive): Add prototype.
* unroll.c (unroll_loop): Use HOST_WIDE_INT_PRINT_DEC specifier in
call to `fprintf'.
(precondition_loop_p): Likewise.
* varasm.c Include sdbout.h.
(assemble_static_space): Move sometimes-unused variable `rounded'
into the scope in which it is used.
From-SVN: r20651
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 22b752d..2d595d4 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -43,6 +43,7 @@ Boston, MA 02111-1307, USA. */ #include "real.h" #include "toplev.h" #include "dbxout.h" +#include "sdbout.h" #include "obstack.h" #include "c-pragma.h" @@ -1683,13 +1684,6 @@ assemble_static_space (size) char name[12]; char *namestring; rtx x; -#ifndef ASM_OUTPUT_ALIGNED_LOCAL - /* Round size up to multiple of BIGGEST_ALIGNMENT bits - so that each uninitialized object starts on such a boundary. */ - int rounded = ((size + (BIGGEST_ALIGNMENT / BITS_PER_UNIT) - 1) - / (BIGGEST_ALIGNMENT / BITS_PER_UNIT) - * (BIGGEST_ALIGNMENT / BITS_PER_UNIT)); -#endif #if 0 if (flag_shared_data) @@ -1712,7 +1706,14 @@ assemble_static_space (size) #ifdef ASM_OUTPUT_ALIGNED_LOCAL ASM_OUTPUT_ALIGNED_LOCAL (asm_out_file, name, size, BIGGEST_ALIGNMENT); #else - ASM_OUTPUT_LOCAL (asm_out_file, name, size, rounded); + { + /* Round size up to multiple of BIGGEST_ALIGNMENT bits + so that each uninitialized object starts on such a boundary. */ + int rounded = ((size + (BIGGEST_ALIGNMENT / BITS_PER_UNIT) - 1) + / (BIGGEST_ALIGNMENT / BITS_PER_UNIT) + * (BIGGEST_ALIGNMENT / BITS_PER_UNIT)); + ASM_OUTPUT_LOCAL (asm_out_file, name, size, rounded); + } #endif #endif return x; |