public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-10019] [testsuite] [analyzer] avoid vxworks libc mode_t
@ 2024-04-18 11:15 Alexandre Oliva
0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2024-04-18 11:15 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:76a1bcc05f152da17770e94eaaf7aa491af2ff01
commit r14-10019-g76a1bcc05f152da17770e94eaaf7aa491af2ff01
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Apr 18 08:01:07 2024 -0300
[testsuite] [analyzer] avoid vxworks libc mode_t
Define macro that prevents mode_t from being defined by vxworks'
headers as well.
for gcc/testsuite/ChangeLog
* gcc.dg/analyzer/fd-4.c: Define macro to avoid mode_t on
vxworks.
Diff:
---
gcc/testsuite/gcc.dg/analyzer/fd-4.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/gcc.dg/analyzer/fd-4.c b/gcc/testsuite/gcc.dg/analyzer/fd-4.c
index 880de3d7896..d104bfdad54 100644
--- a/gcc/testsuite/gcc.dg/analyzer/fd-4.c
+++ b/gcc/testsuite/gcc.dg/analyzer/fd-4.c
@@ -1,4 +1,5 @@
/* { dg-additional-options "-D_MODE_T_DECLARED=1" { target newlib } } */
+/* { dg-additional-options "-D_DEFINED_mode_t" { target *-*-vxworks* } } */
#if defined(_AIX) || defined(__hpux)
#define _MODE_T
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-18 11:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18 11:15 [gcc r14-10019] [testsuite] [analyzer] avoid vxworks libc mode_t Alexandre Oliva
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).