public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-206] Remove non-ANSI C path in ansidecl.h.
@ 2022-05-09 11:55 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-05-09 11:55 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1fffe45fb5497006d7bc7875bd932c9bd9670cb6
commit r13-206-g1fffe45fb5497006d7bc7875bd932c9bd9670cb6
Author: Martin Liska <mliska@suse.cz>
Date: Tue Feb 1 13:10:19 2022 +0100
Remove non-ANSI C path in ansidecl.h.
include/ChangeLog:
* ansidecl.h (PTR): Remove Not ANCI C part.
Diff:
---
include/ansidecl.h | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/include/ansidecl.h b/include/ansidecl.h
index 4275c9b9cbd..efee5b6904b 100644
--- a/include/ansidecl.h
+++ b/include/ansidecl.h
@@ -62,7 +62,6 @@ So instead we use the macro below and test it against specific values. */
#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
#endif /* GCC_VERSION */
-#if defined (__STDC__) || defined(__cplusplus) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32)
/* All known AIX compilers implement these things (but don't always
define __STDC__). The RISC/OS MIPS compiler defines these things
in SVR4 mode, but does not define __STDC__. */
@@ -89,22 +88,6 @@ So instead we use the macro below and test it against specific values. */
# endif
#endif
-#else /* Not ANSI C. */
-
-#define PTR char *
-
-/* some systems define these in header files for non-ansi mode */
-#undef const
-#undef volatile
-#undef signed
-#undef inline
-#define const
-#define volatile
-#define signed
-#define inline
-
-#endif /* ANSI C. */
-
/* Define macros for some gcc attributes. This permits us to use the
macros freely, and know that they will come into play for the
version of gcc in which they are supported. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-09 11:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 11:55 [gcc r13-206] Remove non-ANSI C path in ansidecl.h Martin Liska
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).