Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2017 20:27:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 215947] head -r311147 (e.g.) for powerpc/powerpc64: gcc 4.2.1 requires -mlongcall but clang does not need it (and various versions do not have it)
Message-ID:  <bug-215947-8-fXDyLRolSP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-215947-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-215947-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215947

--- Comment #4 from Mark Millard <markmi@dsl-only.net> ---
Comment on attachment 178726
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D178726
avoid -mlongcall use for clang; use it for gcc

An alternate if it is supported for lib/csu/powerpc64/Makefile is use of:

CFLAGS+=3D        -I${.CURDIR}/../common \
                -I${.CURDIR}/../../libc/include

CFLAGS.gcc+=3D -mlongcall

without the conditional logic for compiler type.

Similarly for sys/conf/kmod.mk if supported there:

CFLAGS+=3D        -fno-omit-frame-pointer
CFLAGS.gcc+=3D    -mlongcall

again without the conditional logic for compiler type.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215947-8-fXDyLRolSP>