]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r339019: clang: allow ifunc resolvers to accept arguments
authoremaste <emaste@FreeBSD.org>
Wed, 10 Oct 2018 15:37:10 +0000 (15:37 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 10 Oct 2018 15:37:10 +0000 (15:37 +0000)
commitd10325d074c2f9aeff283511c3acb06b3c1fcb5a
treead04b9f27d61ec09002757c35ecc55350253f151
parenta511c156ae29f8eec252ee19b5a09964025db407
MFC r339019: clang: allow ifunc resolvers to accept arguments

Previously Clang required ifunc resolution functions to take no
arguments, presumably because GCC documented ifunc resolvers as taking
no arguments.  However, GCC accepts resolvers accepting arguments, and
our rtld passes CPU ID information (cpuid, hwcap, etc.) to ifunc
resolvers.  Just remove the check from the in-tree compiler for our in-
tree compiler.

Sponsored by: The FreeBSD Foundation
contrib/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp
lib/clang/freebsd_cc_version.h