OSDN Git Service

* reg-stack.c (reg_to_stack): Add missing braces in memset
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Nov 2008 18:01:18 +0000 (18:01 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Nov 2008 18:01:18 +0000 (18:01 +0000)
size calculation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141654 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reg-stack.c
gcc/testsuite/ChangeLog

index 2c1a054..40b0dcb 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-06  Uros Bizjak  <ubizjak@gmail.com>
+
+       * reg-stack.c (reg_to_stack): Add missing braces in memset
+       size calculation.
+
 2008-11-06  Andrew Stubbs  <ams@codesourcery.com>
 
        * config/arm/bpabi.h (PROFILE_HOOK): New undef.
@@ -12,8 +17,7 @@
 
        PR target/35574
        * config/sparc/constraints.md (D): New.
-       * config/sparc/predicates.md (const_double_or_vector_operand):
-       New.
+       * config/sparc/predicates.md (const_double_or_vector_operand): New.
        * config/sparc/sparc.c (sparc_extra_constraint_check): Handle the
        'D' constraint.
        * config/sparc/sparc.md (*movdf_insn_sp32_v9, *movdf_insn_sp64):
index 7511d18..181238f 100644 (file)
@@ -3198,7 +3198,7 @@ reg_to_stack (void)
   max_uid = get_max_uid ();
   stack_regs_mentioned_data = VEC_alloc (char, heap, max_uid + 1);
   memset (VEC_address (char, stack_regs_mentioned_data),
-         0, sizeof (char) * max_uid + 1);
+         0, sizeof (char) * (max_uid + 1));
 
   convert_regs ();
 
index 04ec162..c4963d0 100644 (file)
@@ -18,8 +18,8 @@
 2008-11-05  Hans-Peter Nilsson  <hp@axis.com>
 
        PR target/38016
-       * gcc.c-torture/execute/ieee/pr38016.c,
-       gcc.c-torture/execute/ieee/pr38016.c: New test.
+       * gcc.c-torture/execute/ieee/pr38016.c: New test.
+       * gcc.c-torture/execute/ieee/pr38016.x: New file.
 
 2008-11-05  Martin Jambor  <mjambor@suse.cz>