Blame glibc-fedora-test-debug-gnuc-compat.patch
|
|
fb633ea |
From 8c508c82e7ded8bb87e2784e25be9d9f8871d6b9 Mon Sep 17 00:00:00 2001
|
|
|
fb633ea |
From: Jakub Jelinek <jakub@redhat.com>
|
|
|
fb633ea |
Date: Mon, 15 Nov 2004 13:15:02 +0000
|
|
|
fb633ea |
Subject: [PATCH] Restore change unintentionally killed during merge.
|
|
|
fb633ea |
|
|
|
fb633ea |
---
|
|
|
fb633ea |
debug/tst-chk1.c | 4 ++--
|
|
|
fb633ea |
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
fb633ea |
|
|
|
fb633ea |
diff --git a/debug/tst-chk1.c b/debug/tst-chk1.c
|
|
|
fb633ea |
index 37320c3..0e5ba88 100644
|
|
|
fb633ea |
--- a/debug/tst-chk1.c
|
|
|
fb633ea |
+++ b/debug/tst-chk1.c
|
|
|
fb633ea |
@@ -244,7 +244,7 @@ do_test (void)
|
|
|
fb633ea |
if (memcmp (a.buf1, "aabcdabcjj", 10))
|
|
|
fb633ea |
FAIL ();
|
|
|
fb633ea |
|
|
|
fb633ea |
-#if __USE_FORTIFY_LEVEL < 2
|
|
|
fb633ea |
+#if __USE_FORTIFY_LEVEL < 2 || !__GNUC_PREREQ (4, 0)
|
|
|
fb633ea |
/* The following tests are supposed to crash with -D_FORTIFY_SOURCE=2
|
|
|
fb633ea |
and sufficient GCC support, as the string operations overflow
|
|
|
fb633ea |
from a.buf1 into a.buf2. */
|
|
|
fb633ea |
@@ -359,7 +359,7 @@ do_test (void)
|
|
|
fb633ea |
memset (a.buf1 + 9, 'j', l0 + 2);
|
|
|
fb633ea |
CHK_FAIL_END
|
|
|
fb633ea |
|
|
|
fb633ea |
-# if __USE_FORTIFY_LEVEL >= 2
|
|
|
fb633ea |
+# if __USE_FORTIFY_LEVEL >= 2 && __GNUC_PREREQ (4, 0)
|
|
|
fb633ea |
# define O 0
|
|
|
fb633ea |
# else
|
|
|
fb633ea |
# define O 1
|