[patch] fix bootstrap on FreeBSD i386/arm

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Fri May 29 10:39:00 GMT 2015


Eric Botcazou <ebotcazou@adacore.com> writes:

>> Only Solaris 10, actually: Solaris 11 isn't affected since it has
>> clearenv(3C).
>
> That's not the only problem AFAICS:
>
> /usr/include/sys/resource.h: At global scope:
> /usr/include/sys/resource.h:79:25: error: declaration does not declare 
> anything [-fpermissive]

I didn't see this: my <sys/resource.h> has

typedef u_longlong_t    rlim_t;

on line 79.

> /homes/botcazou/gcc-head/src/gcc/system.h:469:48: error: 'char* strstr(const 
> char*, const char*)' conflicts with previous using declaration 'const char* 
> std::strstr(const char*, const char*)'
>
> and so on.  It's SPARC/Solaris 10.

Not during a Solaris 10/x86 bootstrap: <iso/string_iso.h> has

extern const char *strstr(const char *, const char *);

#if __cplusplus >= 199711L.  Maybe this changed sometime after S10 FCS.

>> OTOH, why use sun in this place instead of __sun__ (or rather __sun__ &&
>> __svr4__) like any other platform?
>
> Yes, I can change that, but it's probably not the only case.

Possibly not.  Still, it would be good to be consistent here.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University



More information about the Gcc-patches mailing list