gcc/libcpp
Martin Sebor ad1539d555 PR c/66970 - Add __has_builtin() macro
gcc/ChangeLog:

	PR c/66970
	* doc/cpp.texi (__has_builtin): Document.
	* doc/extend.texi (__builtin_frob_return_addr): Correct spelling.

gcc/c/ChangeLog:

	PR c/66970
	* c-decl.c (names_builtin_p): Define a new function.

gcc/c-family/ChangeLog:

	PR c/66970
	* c-common.c (c_common_nodes_and_builtins): Call c_define_builtins
	even when only preprocessing.
	* c-common.h (names_builtin_p): Declare new function.
	* c-lex.c (init_c_lex): Set has_builtin.
	(c_common_has_builtin): Define a new function.
	* c-ppoutput.c (init_pp_output): Set has_builtin.

gcc/cp/ChangeLog:

	PR c/66970
	* cp-objcp-common.c (names_builtin_p): Define new function.

gcc/testsuite/ChangeLog:

	PR c/66970
	* c-c++-common/cpp/has-builtin-2.c: New test.
	* c-c++-common/cpp/has-builtin-3.c: New test.
	* c-c++-common/cpp/has-builtin.c: New test.

From-SVN: r277544
2019-10-28 16:46:28 -06:00
..
include PR c/66970 - Add __has_builtin() macro 2019-10-28 16:46:28 -06:00
po
aclocal.m4
ChangeLog [linemap PATCH] Constify lookup 2019-10-15 12:03:04 +00:00
ChangeLog.jit
charset.c charset.c (UCS_LIMIT): New macro. 2019-09-26 21:43:51 +00:00
config.in
configure
configure.ac
directives-only.c [Preprocessor] small cleanups 2019-08-28 18:43:37 +00:00
directives.c [preprocessor] Popping "" file names 2019-09-06 12:54:19 +00:00
errors.c
expr.c Support decimal floating-point constants in C2x. 2019-10-11 23:22:52 +01:00
files.c [preprocessor/91639] #includes at EOF 2019-09-05 11:23:48 +00:00
identifiers.c
init.c PR c/66970 - Add __has_builtin() macro 2019-10-28 16:46:28 -06:00
internal.h internal.h (enum include_type): Remove trailing comma. 2019-10-02 10:22:05 +00:00
lex.c Handle :: tokens in C for C2x. 2019-10-02 01:08:40 +01:00
line-map.c [linemap PATCH] Constify lookup 2019-10-15 12:03:04 +00:00
location-example.txt
macro.c PR c/66970 - Add __has_builtin() macro 2019-10-28 16:46:28 -06:00
Makefile.in
makeucnid.c
mkdeps.c
pch.c
symtab.c
system.h
traditional.c PR c/66970 - Add __has_builtin() macro 2019-10-28 16:46:28 -06:00
ucnid.h
ucnid.tab