Do we support Not ANSI C compiler?

Pedro Alves pedro@palves.net
Mon May 9 09:22:39 GMT 2022


On 2022-05-09 09:49, Martin Liška wrote:
> Hi.
> 
> I noticed ./include/ansidecl.h contains not ANSI C path:
> 
> #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.  */
> 
> And my question is if we really support such compilers or can we remove the hunk?

Given:

  - GCC requires C++11 nowadays,
  - GDB requires C++11 nowadays,
  - Binutils requires C99 nowadays (for over a year),

I'd think that no, we no longer support such compilers and we can remove the hunk.


More information about the Binutils mailing list