https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81056
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed||2017-06-12
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely ---
(In reply to John David Anglin from comment #0)
> These errors are caused by following header issues on hpux:
>
> /mnt/gnu/gcc/objdir/./gcc/include-fixed/sys/types.h:
>typedef struct _physadr { intptr_t r[1]; } *physadr;
>
> /mnt/gnu/gcc/objdir/./gcc/include-fixed/stdlib.h:
> _NAMESPACE_STD_START
> inline int abs(int d) { return (d>0)?d:-d; }
> _NAMESPACE_STD_END
>
> Probably, the use of `r' and `d' in the above circumstances is not a
> problem. So, I think the test should be adjusted as on AIX. See attached
> fix.
It's a problem because it means some valid C++ programs that include
won't compile, but only programs that use 'r' and 'd' as macros, which is
insane. So simply adjusting the test is fine.
The patch is OK for trunk - thanks.