summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-11-02 13:30:19 +0000
committerJakub Jelinek <jakub@redhat.com>2004-11-02 13:30:19 +0000
commit5acf2e2cb412b7ceba599c6f5af43aa53e3fe04d (patch)
tree21b153196ae7e15dfd9a02987bd580cee9dfadc0 /include
parentbb21d92c368e80e22a8f16f5313ff259087daca1 (diff)
* 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 'include')
-rw-r--r--include/features.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/features.h b/include/features.h
index 7551dcc5cc..ff1de8f472 100644
--- a/include/features.h
+++ b/include/features.h
@@ -264,7 +264,11 @@
#if _FORTIFY_SOURCE > 0 && __OPTIMIZE__ > 0 \
&& (__GNUC_PREREQ (4, 1) \
- || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)))
+ || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \
+ || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \
+ && __GNUC_MINOR__ == 4 \
+ && (__GNUC_PATCHLEVEL__ > 2 \
+ || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8))))
# if _FORTIFY_SOURCE == 1
# define __USE_FORTIFY_LEVEL 1
# elif _FORTIFY_SOURCE > 1