diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-11-02 13:30:19 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-11-02 13:30:19 +0000 |
commit | 5acf2e2cb412b7ceba599c6f5af43aa53e3fe04d (patch) | |
tree | 21b153196ae7e15dfd9a02987bd580cee9dfadc0 /debug | |
parent | bb21d92c368e80e22a8f16f5313ff259087daca1 (diff) | |
download | glibc-5acf2e2cb412b7ceba599c6f5af43aa53e3fe04d.tar.gz glibc-5acf2e2cb412b7ceba599c6f5af43aa53e3fe04d.tar.xz glibc-5acf2e2cb412b7ceba599c6f5af43aa53e3fe04d.zip |
* include/features.h (__USE_FORTIFY_LEVEL): Also set for Red Hat
GCC 3.4.x-RH >= 3.4.2-8. * libio/bits/features.h (printf, fprintf, vprintf, vfprintf): For GCC 3.4.x-RH use __builtin___{,v}{,f}printf_chk instead of __{,v}{,f}printf_chk. * debug/tst-chk1.c (do_test): Deal with GCC 3.4.x-RH not being able to recognize subobjects.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/tst-chk1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/tst-chk1.c b/debug/tst-chk1.c index 639da3847c..27b4f15346 100644 --- a/debug/tst-chk1.c +++ b/debug/tst-chk1.c @@ -201,7 +201,7 @@ do_test (void) if (memcmp (a.buf1, "aabcdabcjj", 10)) FAIL (); -#if __USE_FORTIFY_LEVEL < 2 +#if __USE_FORTIFY_LEVEL < 2 || !__GNUC_PREREQ (4, 0) /* The following tests are supposed to crash with -D_FORTIFY_SOURCE=2 and sufficient GCC support, as the string operations overflow from a.buf1 into a.buf2. */ @@ -300,7 +300,7 @@ do_test (void) memset (a.buf1 + 9, 'j', l0 + 2); CHK_FAIL_END -#if __USE_FORTIFY_LEVEL >= 2 +#if __USE_FORTIFY_LEVEL >= 2 && __GNUC_PREREQ (4, 0) # define O 0 #else # define O 1 |