Skip to content

Commit

Permalink
* debug/tst-chk1.c (ret): New volatile variable.
Browse files Browse the repository at this point in the history
	(CHK_FAIL_END): Remove redundant ret setting.
	(do_test): Remote ret variable.
  • Loading branch information
Roland McGrath committed Nov 3, 2004
1 parent 27bbfab commit c4d7bd3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 1 addition & 3 deletions debug/tst-chk1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
1 change: 1 addition & 0 deletions nptl/sysdeps/unix/sysv/linux/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c4d7bd3

Please sign in to comment.