On 01.03.2018 03:43, coypu@sdf.org wrote: > 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 :-( > Looks good, ping from my point of view for maintainers. Adding defined(_*_ANSI_H) for each CPU and flavor of headers on NetBSD does not scale even for the existing set of supported architectures. NetBSD/hpcsh uses _HPCSH_ANSI_H_, NetBSD/dreamcast _DREAMCAST_ANSI_H_ etc.