]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
builtins.def (BUILT_IN_PUTC, [...]): New.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Thu, 1 Dec 2005 22:46:14 +0000 (22:46 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Thu, 1 Dec 2005 22:46:14 +0000 (22:46 +0000)
* builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.

* config/pa/pa.c (pa_init_builtins): If we detect
DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
putc_unlocked.

From-SVN: r107833

gcc/ChangeLog
gcc/builtins.def
gcc/config/pa/pa.c

index b7ba1b67c7447587acda5693a62b73dc83106185..7eb20a31c42c43d8307a16a5b19518c6aa0b2265 100644 (file)
@@ -1,3 +1,11 @@
+2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
+
+       * config/pa/pa.c (pa_init_builtins): If we detect
+       DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
+       putc_unlocked.
+
 2005-12-01  Richard Guenther  <rguenther@suse.de>
 
        * fold-const.c (fold_binary): Use fold_build2, not
index e7b7a455546e1acf0d7e9278bee3e0db290af5eb..063ca1cd9e60eaef375e98a994b74744c276ed3d 100644 (file)
@@ -510,6 +510,8 @@ DEF_LIB_BUILTIN        (BUILT_IN_STRSTR, "strstr", BT_FN_STRING_CONST_STRING_CON
 /* Category: stdio builtins.  */
 DEF_LIB_BUILTIN        (BUILT_IN_FPRINTF, "fprintf", BT_FN_INT_FILEPTR_CONST_STRING_VAR, ATTR_FORMAT_PRINTF_2_3)
 DEF_EXT_LIB_BUILTIN    (BUILT_IN_FPRINTF_UNLOCKED, "fprintf_unlocked", BT_FN_INT_FILEPTR_CONST_STRING_VAR, ATTR_FORMAT_PRINTF_2_3)
+DEF_LIB_BUILTIN        (BUILT_IN_PUTC, "putc", BT_FN_INT_INT_FILEPTR, ATTR_NONNULL_LIST)
+DEF_EXT_LIB_BUILTIN    (BUILT_IN_PUTC_UNLOCKED, "putc_unlocked", BT_FN_INT_INT_FILEPTR, ATTR_NONNULL_LIST)
 DEF_LIB_BUILTIN        (BUILT_IN_FPUTC, "fputc", BT_FN_INT_INT_FILEPTR, ATTR_NONNULL_LIST)
 DEF_EXT_LIB_BUILTIN    (BUILT_IN_FPUTC_UNLOCKED, "fputc_unlocked", BT_FN_INT_INT_FILEPTR, ATTR_NONNULL_LIST)
 DEF_LIB_BUILTIN        (BUILT_IN_FPUTS, "fputs", BT_FN_INT_CONST_STRING_FILEPTR, ATTR_NONNULL_LIST)
index 4dcd828098f1df0ab6140f0f141eae759380de65..595577d0cc06419e3388a00581ae66ff0fad8ef6 100644 (file)
@@ -501,8 +501,10 @@ static void
 pa_init_builtins (void)
 {
 #ifdef DONT_HAVE_FPUTC_UNLOCKED
-  built_in_decls[(int) BUILT_IN_FPUTC_UNLOCKED] = NULL_TREE;
-  implicit_built_in_decls[(int) BUILT_IN_FPUTC_UNLOCKED] = NULL_TREE;
+  built_in_decls[(int) BUILT_IN_FPUTC_UNLOCKED] =
+    built_in_decls[(int) BUILT_IN_PUTC_UNLOCKED];
+  implicit_built_in_decls[(int) BUILT_IN_FPUTC_UNLOCKED]
+    = implicit_built_in_decls[(int) BUILT_IN_PUTC_UNLOCKED];
 #endif
 }