This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Do not put decl-specifiers in GCable memory
- From: Andreas Schwab <schwab at suse dot de>
- To: mark at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 Jun 2004 11:34:52 +0200
- Subject: Re: C++ PATCH: Do not put decl-specifiers in GCable memory
- References: <200406240653.i5O6r3fV006502@sirius.codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
> *************** extern GTY(()) operator_name_info_t oper
> *** 3506,3515 ****
> --- 3501,3578 ----
> [(int) LAST_CPLUS_TREE_CODE];
> /* Similar, but for assignment operators. */
> extern GTY(()) operator_name_info_t assignment_operator_name_info
> [(int) LAST_CPLUS_TREE_CODE];
>
> + /* A storage class. */
> +
> + typedef enum cp_storage_class {
> + /* sc_none must be zero so that zeroing a cp_decl_specifier_seq
> + sets the storage_class field to sc_none. */
> + sc_none = 0,
> + sc_auto,
> + sc_register,
> + sc_static,
> + sc_extern,
> + sc_mutable,
> + } cp_storage_class;
Fixed like this:
2004-06-24 Andreas Schwab <schwab@suse.de>
* cp-tree.h (enum cp_storage_class): Remove trailing comma.
--- gcc/cp/cp-tree.h 24 Jun 2004 10:02:33 +0200 1.987
+++ gcc/cp/cp-tree.h 24 Jun 2004 10:53:47 +0200
@@ -3513,7 +3513,7 @@ typedef enum cp_storage_class {
sc_register,
sc_static,
sc_extern,
- sc_mutable,
+ sc_mutable
} cp_storage_class;
/* An individual decl-specifier. */
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."