[PATCH]: fix hpux fputc_unlocked problem on main
John David Anglin
dave@hiauly1.hia.nrc.ca
Thu Jun 5 17:11:00 GMT 2003
In my original patch to fix PR 9986, I missed the fact that the
trunk uses implicit_built_in_decls instead of built_in_decls in
performing optimizations using fputc_unlocked.
Tested on hppa1.1-hp-hpux10.20 on trunk. Installed to trunk.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/9986
* pa.c (pa_init_builtins): Also set implicit_built_in_decls for
BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
Index: config/pa/pa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa.c,v
retrieving revision 1.188.2.11
diff -u -3 -p -r1.188.2.11 pa.c
--- config/pa/pa.c 16 Apr 2003 17:33:39 -0000 1.188.2.11
+++ config/pa/pa.c 5 Jun 2003 16:29:04 -0000
@@ -334,6 +334,7 @@ pa_init_builtins ()
{
#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;
#endif
}
More information about the Gcc-patches
mailing list