* debug/tst-chk1.c (ret): New volatile variable.

(CHK_FAIL_END): Remove redundant ret setting.
	(do_test): Remote ret variable.
This commit is contained in:
Roland McGrath 2004-11-03 20:31:21 +00:00
parent 27bbfab0b7
commit c4d7bd3907
4 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2004-11-02 Jakub Jelinek <jakub@redhat.com>
* debug/tst-chk1.c (ret): New volatile variable.
(CHK_FAIL_END): Remove redundant ret setting.
(do_test): Remote ret variable.
2004-01-03 Paolo Bonzini <bonzini@gnu.org>
* posix/regex_internal.h (__regfree) [!_LIBC]: Define to regfree.

View File

@ -50,7 +50,7 @@ do_prepare (void)
}
}
volatile int chk_fail_ok;
volatile int chk_fail_ok, ret;
jmp_buf chk_fail_buf;
static void
@ -86,7 +86,6 @@ int num2 = 987654;
#define CHK_FAIL_END \
chk_fail_ok = 0; \
FAIL (); \
ret = 1; \
}
#if __USE_FORTIFY_LEVEL >= 2
#define CHK_FAIL2_START CHK_FAIL_START
@ -99,7 +98,6 @@ int num2 = 987654;
static int
do_test (void)
{
int ret = 0;
struct sigaction sa;
sa.sa_handler = handler;
sa.sa_flags = 0;

View File

@ -1,3 +1,7 @@
2004-11-02 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/smp.h: Include <errno.h>.
2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait):

View File

@ -17,6 +17,7 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <sys/sysctl.h>