On Thu, May 5, 2022 at 2:19 PM Martin Liška <mli...@suse.cz> wrote:
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> Ready to be installed?
> Thanks,
> Martin
>
> include/ChangeLog:
>
>         * ansidecl.h (PTR): Remove Not ANCI C part.
> ---
>  include/ansidecl.h | 16 +---------------
>  1 file changed, 1 insertion(+), 15 deletions(-)
>
> diff --git a/include/ansidecl.h b/include/ansidecl.h
> index 4275c9b9cbd..f42c6afc7e9 100644
> --- a/include/ansidecl.h
> +++ b/include/ansidecl.h
> @@ -89,21 +89,7 @@ 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.  */

You'd have to ask the sourceware side as well (binutils), but for sure
either the
guarding #if should be removed or the #else path should contain an #error.

Richard.

> +#endif
>
>  /* Define macros for some gcc attributes.  This permits us to use the
>     macros freely, and know that they will come into play for the
> --
> 2.36.0
>

Reply via email to