public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] gcc.c-torture/execute/builtins/fputs.c: Define _GNU_SOURCE
@ 2023-10-22  7:47 Florian Weimer
  2023-10-22 13:44 ` Jeff Law
  2023-10-22 16:09 ` Andrew Pinski
  0 siblings, 2 replies; 7+ messages in thread
From: Florian Weimer @ 2023-10-22  7:47 UTC (permalink / raw)
  To: gcc-patches

Current glibc headers only declare fputs_unlocked for _GNU_SOURCE.
Defining the macro avoids an implicit function declaration.

gcc/testsuite/

	* gcc.c-torture/execute/builtins/fputs.c (_GNU_SOURCE):
	Define.

---
 gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c b/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c
index 93fa9736449..13e30724355 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/fputs.c
@@ -5,6 +5,7 @@
 
    Written by Kaveh R. Ghazi, 10/30/2000.  */
 
+#define _GNU_SOURCE /* For fputs_unlocked.  */
 #include <stdio.h>
 extern void abort(void);
 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-23  8:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-22  7:47 [PATCH] gcc.c-torture/execute/builtins/fputs.c: Define _GNU_SOURCE Florian Weimer
2023-10-22 13:44 ` Jeff Law
2023-10-22 16:09 ` Andrew Pinski
2023-10-22 19:45   ` Jeff Law
2023-10-22 20:02     ` rep.dot.nop
2023-10-23  5:57       ` Eric Gallager
2023-10-23  8:39   ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).