]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove non-ANSI C path in ansidecl.h.
authorMartin Liska <mliska@suse.cz>
Tue, 1 Feb 2022 12:10:19 +0000 (13:10 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 9 May 2022 11:50:09 +0000 (13:50 +0200)
include/ChangeLog:

* ansidecl.h (PTR): Remove Not ANCI C part.

include/ansidecl.h

index 4275c9b9cbd37ce64e0f50ffcdb8d2f7a24a855b..efee5b6904b3593e36159cd4c09f6cb6e45b577e 100644 (file)
@@ -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.  */