Re: mac68k kern-INSTALL vs GCC7?

Jaromír Doleček <[email protected]> Fri, 15 Feb 2019 18:38:48 +0100
Newsgroups gmane.os.netbsd.current,gmane.os.netbsd.ports.mac68k
Message-ID <CAMnsW57WNpzZi0rrx+RAEYHDZX6jK2AZ=gaO+cw-T2ZgWX9iYQ@mail.gmail.com>
Le ven. 15 févr. 2019 à 17:33, John D. Baker
<[email protected]> a écrit :
>
> Building for mac68k with -V HAVE_GCC=7 produces the following error:
>
> /x/current/src/sys/arch/mac68k/mac68k/intr.c:135:2: note: in expansion of macro 'memcpy'
>   memcpy(g_inames, inames, MAX_INAME_LENGTH);
>   ^~~~~~
> cc1: all warnings being treated as errors
> *** [intr.o] Error code 1
> nbmake[2]: stopped in /r0/build/current/obj/mac68k/sys/arch/mac68k/compile/INSTALL
> 1 error
> nbmake[2]: stopped in /r0/build/current/obj/mac68k/sys/arch/mac68k/compile/INSTALL
> [...]

The code there boilds down to memcpy(&intrnames, "somestring", 53);
which while actually being (upon inspection) fine, it is very
difficult to parse and compiler warns correctly.

Maybe something like this?

https://www.netbsd.org/~jdolecek/mac68k_intr_gcc7.diff

Jaromir