gcc/libgomp
Martin Sebor 79a2c4281c PR middle-end/81824 - Warn for missing attributes with function aliases
gcc/c-family/ChangeLog:

	PR middle-end/81824
	* c-attribs.c (handle_copy_attribute): New function.

gcc/cp/ChangeLog:

	PR middle-end/81824
	* pt.c (warn_spec_missing_attributes): Move code to attribs.c.
	Call decls_mismatched_attributes.

gcc/ChangeLog:

	PR middle-end/81824
	* attribs.c (has_attribute): New helper function.
	(decls_mismatched_attributes, maybe_diag_alias_attributes): Same.
	* attribs.h (decls_mismatched_attributes): Declare.
	* cgraphunit.c (handle_alias_pairs): Call maybe_diag_alias_attributes.
	(maybe_diag_incompatible_alias): Use OPT_Wattribute_alias_.
	* common.opt (-Wattribute-alias): Take an argument.
	(-Wno-attribute-alias): New option.
	* doc/extend.texi (Common Function Attributes): Document copy.
	(Common Variable Attributes): Same.
	* doc/invoke.texi (-Wmissing-attributes): Document enhancement.
	(-Wattribute-alias): Document new option argument.

gcc/testsuite/ChangeLog:

	PR middle-end/81824
	* gcc.dg/Wattribute-alias.c: New test.
	* gcc.dg/Wmissing-attributes.c: New test.
	* gcc.dg/attr-copy.c: New test.
	* gcc.dg/attr-copy-2.c: New test.
	* gcc.dg/attr-copy-3.c: New test.
	* gcc.dg/attr-copy-4.c: New test.

From-SVN: r265980
2018-11-09 10:32:52 -07:00
..
config builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
plugin [nvptx] Remove use of CUDA unified memory in libgomp 2018-09-18 08:41:54 -07:00
testsuite workshare-reduction-1.c: New test. 2018-11-09 14:02:50 +01:00
ChangeLog workshare-reduction-1.c: New test. 2018-11-09 14:02:50 +01:00
ChangeLog.graphite Add forgotten ChangeLog entries. 2010-03-08 17:49:42 +00:00
Makefile.am builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
Makefile.in builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
acinclude.m4 Enable building libgomp with Intel CET 2017-11-17 22:22:09 +01:00
aclocal.m4 Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00
affinity-fmt.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
affinity.c Fix Solaris build with OpenMP 5.0 2018-11-08 21:39:11 +00:00
alloc.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
atomic.c Update copyright years. 2018-01-03 11:03:58 +01:00
barrier.c Update copyright years. 2018-01-03 11:03:58 +01:00
config.h.in builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
configure builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
configure.ac builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
configure.tgt builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
critical.c Update copyright years. 2018-01-03 11:03:58 +01:00
env.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
error.c Update copyright years. 2018-01-03 11:03:58 +01:00
fortran.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
hashtab.h Update copyright years. 2018-01-03 11:03:58 +01:00
icv-device.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
icv.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
iter.c Update copyright years. 2018-01-03 11:03:58 +01:00
iter_ull.c Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp-plugin.c Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp-plugin.h Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp.h PR middle-end/81824 - Warn for missing attributes with function aliases 2018-11-09 10:32:52 -07:00
libgomp.map builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
libgomp.spec.in Generally link to libgomp for -ftree-parallelize-loops=*. 2013-11-07 16:07:34 +01:00
libgomp.texi libgomp.texi (Top): Move www.openmp.org to https. 2018-06-24 20:38:14 +00:00
libgomp_f.h.in Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp_g.h builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
lock.c Update copyright years. 2018-01-03 11:03:58 +01:00
loop.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
loop_ull.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
oacc-async.c [openacc] Factor out async argument utility functions 2018-05-09 13:52:49 +00:00
oacc-cuda.c [openacc] Factor out async argument utility functions 2018-05-09 13:52:49 +00:00
oacc-host.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-init.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-int.h [openacc] Factor out async argument utility functions 2018-05-09 13:52:49 +00:00
oacc-mem.c 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com> 2018-11-06 13:09:52 +00:00
oacc-parallel.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
oacc-plugin.c [openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin 2018-05-02 17:53:56 +00:00
oacc-plugin.h [openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin 2018-05-02 17:53:56 +00:00
omp.h.in builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
omp_lib.f90.in builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
omp_lib.h.in builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
openacc.f90 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com> 2018-11-06 13:09:52 +00:00
openacc.h 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com> 2018-11-06 13:09:52 +00:00
openacc_lib.h 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com> 2018-11-06 13:09:52 +00:00
ordered.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
parallel.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
priority_queue.c Update copyright years. 2018-01-03 11:03:58 +01:00
priority_queue.h Update copyright years. 2018-01-03 11:03:58 +01:00
sections.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
secure_getenv.h Update copyright years. 2018-01-03 11:03:58 +01:00
single.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
splay-tree.c Update copyright years. 2018-01-03 11:03:58 +01:00
splay-tree.h Update copyright years. 2018-01-03 11:03:58 +01:00
target.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
task.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
taskloop.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
team.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00
teams.c Fix Solaris build with OpenMP 5.0 2018-11-08 21:39:11 +00:00
work.c builtin-types.def (BT_FN_VOID_BOOL, [...]): New. 2018-11-08 18:13:04 +01:00