Patch for "implicit declaration of fputs_unlocked" warnings
Joseph S. Myers
jsm28@cam.ac.uk
Fri Sep 29 15:44:00 GMT 2000
config.h defines a feature test macro (_GNU_SOURCE) on GNU/Linux
systems. Feature test macros must be defined before any system
headers are included; i386.c fails to do this, the symptom being many
"implicit declaration of function fputs_unlocked" warnings. (The
declaration of fputs_unlocked is exposed by _GNU_SOURCE, which is in
effect at the relevant point of configure detecting whether it is
declared.) Here's the trivial patch to fix this problem.
Bootstrapped with no regressions on i686-pc-linux-gnu. OK to commit?
2000-09-29 Joseph S. Myers <jsm28@cam.ac.uk>
* i386.c: Move include of "config.h" to before that of <setjmp.h>.
--- i386.c.orig Fri Sep 29 18:28:13 2000
+++ i386.c Fri Sep 29 18:37:49 2000
@@ -19,8 +19,8 @@
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <setjmp.h>
#include "config.h"
+#include <setjmp.h>
#include "system.h"
#include "rtl.h"
#include "tree.h"
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Gcc-patches
mailing list