Go to file
Mark Mitchell 263ee05239 re PR c++/13275 (Implementation of offsetof macro)
PR c++/13275
	* c-common.h (enum rid): Add RID_OFFSETOF.
	* c-parser.in (rid_to_yy): Ignore RID_OFFSETOF.
	* ginclude/stddef.h (offsetof): Reimplement for C++, using
	__offsetof__.
	* doc/extend.texi: Document __offsetof__.

	PR c++/13275
	* lex.c (reswords): Add "__offsetof" and "__offsetof__".
	* parser.c (cp_parser): Add in_offsetof_p.
	(cp_parser_new): Initialize it.
	(cp_parser_primary_expression): Handle __offsetof__ (...).
	(cp_parser_postfix_expression): Allow casts to pointer type and
	uses of "->" in a constant expression if implementing offsetof.
	(cp_parser_unary_expression): Allow the use of "&" in a constant
	expression if implementing offsetof.

	PR c++/13275
	* g++.dg/other/offsetof2.C: Remove XFAIL.
	* g++.dg/parse/offsetof1.C: New test.
	* g++.gd/parse/offsetof2.C: Likewise.

From-SVN: r74702
2003-12-16 16:09:23 +00:00
boehm-gc * include/private/gcconfig.h: Re-install change of 2003-04-16. 2003-10-31 11:03:00 +00:00
config * gettext.m4: Properly quote arguments to AC_DEFUN. 2003-10-14 21:39:57 +00:00
contrib gcc_update (files_and_dependencies): Correct typo in the filename gnat_ug_wnt.texi. 2003-12-11 13:25:24 +00:00
fastjar Makefile.am: Define AM_MAKINFOFLAGS. 2003-12-01 02:58:36 +00:00
gcc re PR c++/13275 (Implementation of offsetof macro) 2003-12-16 16:09:23 +00:00
include obstack.h: Merge the following change from gnulib... 2003-10-22 23:28:39 +01:00
INSTALL README: Update wrt. 2001-06-13 14:51:33 +00:00
intl Makefile.tpl (configure-gcc): Depend on maybe-configure-intl. 2003-07-08 05:55:11 +00:00
libf2c * configure: Regenerate. 2003-10-14 21:01:09 +00:00
libffi cls_align_pointer.c: Cast pointers to size_t instead of int. 2003-12-10 01:43:29 -08:00
libiberty cp-demangle.c (d_print_function_type): Print the function parameters with no modifiers. 2003-12-15 23:29:31 +00:00
libjava i2003-12-16 Guilhem Lavaux <guilhem@kaffe.org> 2003-12-16 13:45:01 +00:00
libobjc re PR libobjc/11433 (Crash due to dereferencing null pointer when querying protocol) 2003-12-01 23:29:59 +00:00
libstdc++-v3 howto.html: Document shrink-to-fit reserve(). 2003-12-16 13:57:55 +00:00
maintainer-scripts * maintainer-addresses: New script. 2003-11-02 00:02:21 +00:00
zlib * libtool.m4 (LD): Correct powerpc64 host match. 2003-09-09 15:54:39 +09:30
.cvsignore configure, .cvsignore: Revert previous change... 2002-06-19 18:10:09 +00:00
ABOUT-NLS intl: New directory; see intl/ChangeLog for details. 2003-07-04 18:18:54 +00:00
ChangeLog * MAINTAINERS: Add myself as callgraph maintainer. 2003-12-16 12:45:53 +00:00
config-ml.in config-ml.in (multi-do): Pass MULTIFLAGS to subdir makes. 2003-10-17 11:22:58 +00:00
config.guess config.guess: Update to 2003-10-16 version. 2003-10-16 13:57:24 +02:00
config.if * config.if: Remove unused libc_interface determination. 2003-07-16 06:34:53 +00:00
config.rpath intl: New directory; see intl/ChangeLog for details. 2003-07-04 18:18:54 +00:00
config.sub * config.sub: Update to 2003-11-03 version. 2003-11-03 15:25:17 +00:00
configure configure.in (raw_libstdcxx_flags): Remove the leading space. 2003-12-08 21:22:06 +00:00
configure.in configure.in (raw_libstdcxx_flags): Remove the leading space. 2003-12-08 21:22:06 +00:00
COPYING COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes... 2000-12-18 21:47:20 +00:00
COPYING.LIB COPYING.LIB: Update to LGPL 2.1 from the FSF. 2001-01-29 13:32:47 +00:00
install-sh install-sh: Update to newer upstream versions (associated with aclocal 1.7). 2003-07-20 09:40:28 +00:00
libtool.m4 libtool.m4: Sync darwin bits from libtool cvs to build a gcc with shared/dylibed libraries. 2003-11-19 06:29:32 +01:00
ltcf-c.sh libtool.m4: Sync darwin bits from libtool cvs to build a gcc with shared/dylibed libraries. 2003-11-19 06:29:32 +01:00
ltcf-cxx.sh libtool.m4: Sync darwin bits from libtool cvs to build a gcc with shared/dylibed libraries. 2003-11-19 06:29:32 +01:00
ltcf-gcj.sh libtool.m4: Sync darwin bits from libtool cvs to build a gcc with shared/dylibed libraries. 2003-11-19 06:29:32 +01:00
ltconfig libtool.m4: Sync darwin bits from libtool cvs to build a gcc with shared/dylibed libraries. 2003-11-19 06:29:32 +01:00
ltmain.sh libtool.m4: Sync darwin bits from libtool cvs to build a gcc with shared/dylibed libraries. 2003-11-19 06:29:32 +01:00
MAINTAINERS * MAINTAINERS: Add myself as callgraph maintainer. 2003-12-16 12:45:53 +00:00
Makefile.def Makefile.def: Introduce flags_to_pass. 2003-06-23 20:34:26 +00:00
Makefile.in Makefile.tpl (BASE_FLAGS_TO_PASS): Pass along CONFIG_SHELL. 2003-11-21 00:39:18 +00:00
Makefile.tpl Makefile.tpl (BASE_FLAGS_TO_PASS): Pass along CONFIG_SHELL. 2003-11-21 00:39:18 +00:00
missing install-sh: Update to newer upstream versions (associated with aclocal 1.7). 2003-07-20 09:40:28 +00:00
mkdep merge with /cvs/src 2000-07-22 04:08:22 -04:00
mkinstalldirs install-sh: Update to newer upstream versions (associated with aclocal 1.7). 2003-07-20 09:40:28 +00:00
move-if-change
README * README: Remove version number. 2001-06-13 19:48:09 +01:00
README.SCO * README.SCO: New file. 2003-08-03 14:51:42 +00:00
symlink-tree * config-ml.in, symlink-tree: Add license. 2003-08-14 16:44:23 -04:00
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the file COPYING
for copying permission.  The manuals, and some of the runtime
libraries, are under different terms; see the individual source files
for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs.html for how to report bugs usefully.