Commit Graph

39 Commits

Author SHA1 Message Date
Pedro Alves b4f6af8ee2 FINAL/OVERRIDE: Define to empty on g++ < 4.7
final/override were only implemented in g++ 4.7.

include/ChangeLog
2016-10-14  Pedro Alves  <palves@redhat.com>

	* ansidecl.h [__cplusplus >= 201103 && GCC_VERSION < 4007] (FINAL,
	OVERRIDE): Define as empty.
	[__cplusplus < 201103 && GCC_VERSION < 4007] (FINAL): Define as
	__final.
	[__cplusplus < 201103 && GCC_VERSION >= 4007] (OVERRIDE): Define as
	empty.
2016-10-14 17:03:16 +01:00
Pedro Alves d118ee3761 Move OVERRIDE/FINAL from gcc/coretypes.h to include/ansidecl.h
So that GDB and other projects that share the top level can use them.

Bootstrapped with all default languages + jit on x86-64 Fedora 23.

gcc/ChangeLog:
2016-10-14  Pedro Alves  <palves@redhat.com>

	* coretypes.h (OVERRIDE, FINAL): Delete, moved to
	include/ansidecl.h.

include/ChangeLog:
2016-10-14  Pedro Alves  <palves@redhat.com>

	* ansidecl.h (GCC_FINAL): Delete.
	(OVERRIDE, FINAL): New, moved from gcc/coretypes.h.
2016-10-14 17:03:16 +01:00
Alan Modra 6f2750feaf Copyright update for binutils 2016-01-01 23:00:01 +10:30
H.J. Lu dd419f3aac Sync ansidecl.h with GCC
Sync with GCC
	2015-08-11  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* ansidecl.h (GCC_FINAL): New macro.
2015-08-12 05:02:21 -07:00
H.J. Lu 4d6404f01d Sync ansidecl.h with GCC
Sync with GCC
	2015-03-02  Markus Trippelsdorf  <markus@trippelsdorf.de>

	PR target/65261
	* ansidecl.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro.
2015-07-14 09:18:16 -07:00
Alan Modra b90efa5b79 ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
tromey 281e9aa624 [PATCH] include * ansidecl.h (ANSI_PROTOTYPES, PTRCONST, LONG_DOUBLE, PARAMS) (VPARAMS, VA_START, VA_OPEN, VA_CLOSE, VA_FIXEDARG, CONST) (VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID, AND, DOTS) (NOARGS): Don't define. * libiberty.h (expandargv, writeargv): Don't use PARAMS. libiberty * _doprint.c (checkit): Use stdarg, not VA_* macros. * asprintf.c (asprintf): Use stdarg, not VA_* macros. * concat.c (concat_length, concat_copy, concat_copy2, concat) (reconcat): Use stdarg, not VA_* macros. * snprintf.c (snprintf): Use stdarg, not VA_* macros. * vasprintf.c (checkit): Use stdarg, not VA_* macros. * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206881 138bc75d-0d04-0410-961f-82ee72b054a4
2014-01-21 08:52:09 -07:00
glisse 689a1abf0d 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/58689
include/
	* ansidecl.h (ATTRIBUTE_RETURNS_NONNULL): New macro.
	* libiberty.h (basename, lbasename, dos_lbasename, unix_lbasename,
	concat_copy): Mark with attributes nonnull(1) and returns_nonnull.
	(concat, reconcat, concat_copy2, choose_temp_base, xstrerror,
	xmalloc, xrealloc, xcalloc, xstrdup, xstrndup, xmemdup, pex_init):
	Mark with attribute returns_nonnull.

libiberty/
	* concat.c: Remove note about xmalloc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204159 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 11:11:41 -07:00
DJ Delorie ddd27bdefd merge from gcc 2012-12-18 17:41:27 +00:00
DJ Delorie 006d5c8857 * obstack.h [!GNUC] (obstack_free): Avoid cast to int.
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++
2011-10-22 01:35:29 +00:00
Jan Kratochvil 1ae0d051e5 gdb/
* defs.h (ENUM_BITFIELD): Remove.

include/
	* bfdlink.h (ENUM_BITFIELD): Remove.

merge from gcc:
include/
	* ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.
2011-04-25 18:28:53 +00:00
DJ Delorie 43e85a8f54 merge from gcc 2010-01-05 21:10:30 +00:00
DJ Delorie 671f4ed1aa merge from gcc 2009-06-16 13:21:26 +00:00
DJ Delorie 8466c6d4d3 merge from gcc 2009-06-03 21:02:16 +00:00
DJ Delorie 52d6785fd9 merge from gcc 2009-06-01 19:40:44 +00:00
DJ Delorie e04d761119 merge from gcc 2007-03-06 19:00:57 +00:00
DJ Delorie ce493bd98d merge from gcc 2006-12-06 19:28:41 +00:00
Nick Clifton 4fd454c89d Define ATTRIBUTE_PACKED and use as necessary. 2006-12-06 14:36:41 +00:00
DJ Delorie 6ba85b8caf merge from gcc 2005-07-03 19:16:20 +00:00
DJ Delorie e947292179 merge from gcc 2005-05-30 01:12:16 +00:00
DJ Delorie abf6a75b42 merge from gcc 2005-05-24 21:01:33 +00:00
Nick Clifton e172dbf8aa Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
DJ Delorie 8adce22da6 merge from gcc 2005-02-14 12:10:25 +00:00
DJ Delorie a5ecc6a5f5 merge from gcc 2004-09-05 06:04:05 +00:00
DJ Delorie d5b4094f38 merge from gcc 2004-07-24 18:04:39 +00:00
DJ Delorie a35b6b049e merge from gcc 2004-07-21 17:27:07 +00:00
DJ Delorie 5cb2c7c447 merge from gcc 2003-06-17 16:31:07 +00:00
DJ Delorie bf8db3d48e merge from gcc 2003-03-17 23:09:54 +00:00
DJ Delorie 995a8435c8 merge from gcc 2002-10-25 00:01:55 +00:00
DJ Delorie f2e55dc2f4 merge from gcc 2001-08-29 20:03:08 +00:00
DJ Delorie 8a423cb3d6 merge from gcc 2001-08-27 20:05:03 +00:00
DJ Delorie 562c4c36aa merge from gcc 2001-08-18 23:47:14 +00:00
DJ Delorie 6112b8746a merge from gcc 2001-05-11 20:22:28 +00:00
DJ Delorie d969735448 merge from gcc 2001-04-04 01:16:27 +00:00
Nick Clifton 4f1d9bd8e2 Fix typos in ChangeLogs; add coff/external.h; fix copyright dates 2001-03-14 02:27:44 +00:00
H.J. Lu f1d95f4b62 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
* ansidecl.h: #define __extension__ to nothing if
 	GCC_VERSION < 2008.
2000-06-17 15:51:55 +00:00
Ian Lance Taylor 4597ba0f94 merge with include from egcs 2000-02-22 2000-02-22 16:40:36 +00:00
Ian Lance Taylor 893e959397 * ansidecl.h: Copy attribute support macros from egcs. 1999-07-11 19:15:01 +00:00
Richard Henderson 252b5132c7 19990502 sourceware import 1999-05-03 07:29:11 +00:00