Re: [PATCH, alpha] Move linux-specific specfile definitions to linux.h

2017-11-19 Thread Jeff Law
On 10/24/2017 07:26 PM, co...@sdf.org wrote:
> On Fri, Oct 13, 2017 at 11:13:52AM -0600, Jeff Law wrote:
>> So we can't depend on patches that OpenBSD applies.  What's important is
>> what is in the official GCC sources.
>>
>> I'd like to see some discussion about what these macros should look like
>> for the *bsd ports.  Merely removing them from elf.h without providing
>> something for the *bsd ports seems wrong to me.
> 
> Hi Jeff,
> 
> OpenBSD has no crt1.o, crtn.o, and crtfastmath.o Linking to those
> would fail.  As testimony: they are overriding it locally.
> 
> And journalists may say, "OpenBSD has declined to comment on this patch".
But it does have other crt files such as crt0.o, crtend.o, crtbegin.o
that are supposed to be handled by the SPEC files.

Pulling these out of elf.h *may* still be sensible, but it really
doesn't seem to address the problem of what the proper definition should
be for OpenBSD.

jeff



Re: [PATCH, alpha] Move linux-specific specfile definitions to linux.h

2017-10-24 Thread coypu
On Fri, Oct 13, 2017 at 11:13:52AM -0600, Jeff Law wrote:
> So we can't depend on patches that OpenBSD applies.  What's important is
> what is in the official GCC sources.
> 
> I'd like to see some discussion about what these macros should look like
> for the *bsd ports.  Merely removing them from elf.h without providing
> something for the *bsd ports seems wrong to me.

Hi Jeff,

OpenBSD has no crt1.o, crtn.o, and crtfastmath.o Linking to those
would fail.  As testimony: they are overriding it locally.

And journalists may say, "OpenBSD has declined to comment on this patch".


Re: [PATCH, alpha] Move linux-specific specfile definitions to linux.h

2017-10-13 Thread Jeff Law
On 09/03/2017 09:47 AM, Maya Rashish wrote:
> Hi, in my first attempt to fix a build issue I found that the order of
> tm files matters, would prefer to move linux-looking parts of elf.h to
> linux.h.
> 
> other targets that include alpha/elf.h besides linux:
> openbsd:  provides their own STARTFILE_SPEC and ENDFILE_SPEC in later file:
> https://github.com/openbsd/ports/blob/master/lang/gcc/6/patches/patch-gcc_config_alpha_openbsd_h
> freebsd:  dropped alpha in freebsd 7.0 (2008)
> 
> Built trunk on netbsd/alpha (until I out of spaced with a working stage3
> after two days :-)) with some extra modifications.
So we can't depend on patches that OpenBSD applies.  What's important is
what is in the official GCC sources.

I'd like to see some discussion about what these macros should look like
for the *bsd ports.  Merely removing them from elf.h without providing
something for the *bsd ports seems wrong to me.


Jeff