aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2005-04-19 12:37:08 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2005-04-19 12:37:08 +0000
commit042630ad4aaa8f3472e94adbe0ca751377798d69 (patch)
treef28c589b61e9abc00adb693ec85b1d582427aa47
parent18e479e2131f9931dce25de735d333710ee4814d (diff)
downloadgcc-042630ad4aaa8f3472e94adbe0ca751377798d69.zip
gcc-042630ad4aaa8f3472e94adbe0ca751377798d69.tar.gz
gcc-042630ad4aaa8f3472e94adbe0ca751377798d69.tar.bz2
system.h (fopen, [...]): Define these to the unlocked libiberty functions.
fixincludes: * system.h (fopen, fdopen, freopen): Define these to the unlocked libiberty functions. gcc: * system.h (fopen, fdopen, freopen): Define these to the unlocked libiberty functions. libcpp: * system.h (fopen, fdopen, freopen): Define these to the unlocked libiberty functions. From-SVN: r98407
-rw-r--r--fixincludes/ChangeLog5
-rw-r--r--fixincludes/system.h5
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/system.h5
-rw-r--r--libcpp/ChangeLog5
-rw-r--r--libcpp/system.h5
6 files changed, 30 insertions, 0 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index d6129d6..36300e4 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * system.h (fopen, fdopen, freopen): Define these to the unlocked
+ libiberty functions.
+
2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.ac (fixincludes_UNLOCKED_FUNCS): New.
diff --git a/fixincludes/system.h b/fixincludes/system.h
index 4873d09..602654e 100644
--- a/fixincludes/system.h
+++ b/fixincludes/system.h
@@ -38,6 +38,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define NULL 0
#endif
+/* Use the unlocked open routines from libiberty. */
+#define fopen(PATH,MODE) fopen_unlocked(PATH,MODE)
+#define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE)
+#define freopen(PATH,MODE,STREAM) freopen_unlocked(PATH,MODE,STREAM)
+
/* fixincludes is not a multi-threaded application and therefore we
do not have to use the locking functions. In fact, using the locking
functions can cause the compiler to be significantly slower under
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 844197d..e1b7265 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * system.h (fopen, fdopen, freopen): Define these to the unlocked
+ libiberty functions.
+
2005-04-19 Kazu Hirata <kazu@cs.umass.edu>
PR tree-optimization/21096
diff --git a/gcc/system.h b/gcc/system.h
index dc009d1..62b8c04 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -46,6 +46,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define NULL 0
#endif
+/* Use the unlocked open routines from libiberty. */
+#define fopen(PATH,MODE) fopen_unlocked(PATH,MODE)
+#define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE)
+#define freopen(PATH,MODE,STREAM) freopen_unlocked(PATH,MODE,STREAM)
+
/* The compiler is not a multi-threaded application and therefore we
do not have to use the locking functions. In fact, using the locking
functions can cause the compiler to be significantly slower under
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 6151186..7050d65 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * system.h (fopen, fdopen, freopen): Define these to the unlocked
+ libiberty functions.
+
2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.ac (libcpp_UNLOCKED_FUNCS): New.
diff --git a/libcpp/system.h b/libcpp/system.h
index 560fa18..98ac118 100644
--- a/libcpp/system.h
+++ b/libcpp/system.h
@@ -38,6 +38,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define NULL 0
#endif
+/* Use the unlocked open routines from libiberty. */
+#define fopen(PATH,MODE) fopen_unlocked(PATH,MODE)
+#define fdopen(FILDES,MODE) fdopen_unlocked(FILDES,MODE)
+#define freopen(PATH,MODE,STREAM) freopen_unlocked(PATH,MODE,STREAM)
+
/* The compiler is not a multi-threaded application and therefore we
do not have to use the locking functions. In fact, using the locking
functions can cause the compiler to be significantly slower under