From: Richard Henderson Date: Fri, 21 Dec 2001 18:03:25 +0000 (-0800) Subject: * g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c0a049e581d0e4627d391cbcc98a92b7fcb4ae5;p=gcc.git * g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo. From-SVN: r48246 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f55a4f24de2..157c1a83872 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-12-21 Richard Henderson + + * g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo. + 2001-12-20 Jakub Jelinek * gcc.c-torture/compile/20011218-1.c: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C b/gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C index 806856f24b1..19ec3c1f0b6 100644 --- a/gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C +++ b/gcc/testsuite/g++.old-deja/g++.eh/badalloc1.C @@ -36,7 +36,7 @@ extern "C" void *malloc (size_t size) return 0; p->size = size; - size = (size + __alignof__(object) + 1) & - __alignof__(object); + size = (size + __alignof__(object) - 1) & - __alignof__(object); pos += size + sizeof(object); // Verify that we didn't run out of memory before getting initialized.