Commit 4bcfa7a8 by Catherine Moore Committed by Catherine Moore

varasm.c (assemble_variable): Emit alignment warning.

Mon Jun 22 11:10:00 1998  Catherine Moore  <clm@cygnus.com>
        * varasm.c (assemble_variable):  Emit alignment warning.

From-SVN: r20655
parent cd1661d6
Mon Jun 22 11:10:00 1998 Catherine Moore <clm@cygnus.com>
* varasm.c (assemble_variable): Emit alignment warning.
Mon Jun 22 08:18:46 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Mon Jun 22 08:18:46 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (varasm.o): Depend on sdbout.h. * Makefile.in (varasm.o): Depend on sdbout.h.
......
...@@ -1333,7 +1333,13 @@ assemble_variable (decl, top_level, at_end, dont_output_data) ...@@ -1333,7 +1333,13 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
rounded += (BIGGEST_ALIGNMENT / BITS_PER_UNIT) - 1; rounded += (BIGGEST_ALIGNMENT / BITS_PER_UNIT) - 1;
rounded = (rounded / (BIGGEST_ALIGNMENT / BITS_PER_UNIT) rounded = (rounded / (BIGGEST_ALIGNMENT / BITS_PER_UNIT)
* (BIGGEST_ALIGNMENT / BITS_PER_UNIT)); * (BIGGEST_ALIGNMENT / BITS_PER_UNIT));
#if !defined(ASM_OUTPUT_ALIGNED_COMMON) && !defined(ASM_OUTPUT_ALIGNED_BSS)
if (warn_bss_align && (DECL_ALIGN (decl) / BITS_PER_UNIT) > rounded)
warning_with_decl
(decl, "requested alignment for %s is greater than implemented alignment of %d.",rounded);
#endif
#ifdef DBX_DEBUGGING_INFO #ifdef DBX_DEBUGGING_INFO
/* File-scope global variables are output here. */ /* File-scope global variables are output here. */
if (write_symbols == DBX_DEBUG && top_level) if (write_symbols == DBX_DEBUG && top_level)
......
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