mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 21:06:04 +08:00
expr.c (store_expr): When copying a string constant into an array...
* expr.c (store_expr): When copying a string constant into an array, reset the known alignment of the MEM for the section to be cleared to BITS_PER_UNIT. From-SVN: r47432
This commit is contained in:
parent
d4d73d4c5a
commit
35a53991ae
@ -1,3 +1,9 @@
|
||||
Wed Nov 28 15:36:13 2001 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* expr.c (store_expr): When copying a string constant into an
|
||||
array, reset the known alignment of the MEM for the section to
|
||||
be cleared to BITS_PER_UNIT.
|
||||
|
||||
2001-11-28 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* config/cris/cris.c: Remove whitespace at end of line.
|
||||
|
@ -4293,6 +4293,12 @@ store_expr (exp, target, want_value)
|
||||
|
||||
MEM_COPY_ATTRIBUTES (dest, target);
|
||||
|
||||
/* The residual likely does not have the same alignment
|
||||
as the original target. While we could compute the
|
||||
alignment of the residual, it hardely seems worth
|
||||
the effort. */
|
||||
set_mem_align (dest, BITS_PER_UNIT);
|
||||
|
||||
/* Be sure we can write on ADDR. */
|
||||
in_check_memory_usage = 1;
|
||||
if (current_function_check_memory_usage)
|
||||
|
Loading…
Reference in New Issue
Block a user