This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] Untangle stddef.h a little
- From: coypu at sdf dot org
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 1 Mar 2018 02:43:42 +0000
- Subject: Re: [PATCH 1/2] Untangle stddef.h a little
- Authentication-results: sourceware.org; auth=none
- References: <20180204073846.GA17915@SDF.ORG>
hi gcc-patches,
as part of pinging, i'll explain the story of this patch.
I want to make sure all netbsd archs work with upstream gcc.
in this case, netbsd/arm's EABI support.
I try to break up my changes into digestible chunks that are rational,
which is why this change came first.
building netbsd/arm gcc-trunk, I had a build error in libstdc++, because
this stddef.h relies on include guards:
#if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) || defined(_X86_64_ANSI_H_) || defined(_I386_ANSI_H_)
In theory I could have just added:
|| _ARM_ANSI_H_
this felt gross, so I tried a better solution.
the file even comes with comments like:
/* Why is this file so hard to maintain properly?
so I try my best to help.
Please let me upstream local changes. there are a lot of them. and I
feel unable to get them across.
I have so many changes that it feels inappropriate to ask for help with
hard problems like internal compiler errors because upstream GCC hit a
different problem. I'm not familiar with stuff so this is hard :-(