From owner-freebsd-bugs@freebsd.org Sat Aug 13 21:26:18 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA99DBB6B12 for ; Sat, 13 Aug 2016 21:26:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1D561656 for ; Sat, 13 Aug 2016 21:26:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7DLQIXB089421 for ; Sat, 13 Aug 2016 21:26:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 211818] contrib/ntp/ntpdc/ntpdc.h redefines machine/frame.h's MOREARGS macro (TARGET_ARCH=powerpc example) Date: Sat, 13 Aug 2016 21:26:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2016 21:26:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211818 Bug ID: 211818 Summary: contrib/ntp/ntpdc/ntpdc.h redefines machine/frame.h's MOREARGS macro (TARGET_ARCH=3Dpowerpc example) Product: Base System Version: 11.0-STABLE Hardware: ppc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: markmi@dsl-only.net In file included from /usr/src/usr.sbin/ntp/ntpdc/../../../contrib/ntp/ntpdc/ntpdc.c:22: /usr/src/usr.sbin/ntp/ntpdc/../../../contrib/ntp/ntpdc/ntpdc.h:14:9: warnin= g: 'MOREARGS' macro redefined [-Wmacro-redefined] #define MOREARGS 10 ^ /usr/obj/clang_world/powerpc.powerpc/usr/src/tmp/usr/include/machine/frame.= h:112:9: note: previous definition is here #define MOREARGS(sp) ((caddr_t)((uintptr_t)(sp) + \ ^ machine/frame.h for powerpc seems to have chosen a name (MOREARGS) that is = not that unlikely for having conflicts with other code: a form of name space pollution. Context: # svnlite info /usr/src/ | grep "Rev[i:]" Revision: 304029 Last Changed Rev: 304029 # uname -apKU FreeBSD FreeBSDx64 11.0-PRERELEASE FreeBSD 11.0-PRERELEASE #4 r304029M: Sat= Aug 13 00:40:30 PDT 2016=20=20=20=20 markmi@FreeBSDx64:/usr/obj/clang/amd64.amd64/usr/src/sys/GENERIC-NODBG amd= 64 amd64 1100500 1100500 I noticed the warnings while cross compiling buildworld for TARGET_ARCH=3Dp= owerpc via the system clang 3.8.0 . (Not that the result respects the FreeBSD powe= rpc ABI requirements for stack pointer handling: the generated code requires a so-called red-zone. It has other problems as well.) --=20 You are receiving this mail because: You are the assignee for the bug.=