PR exp/9514:

* parser-defs.h (insert_type, insert_type_address_space): Declare.
	(push_type_address_space): Remove.
	* parse.c (insert_into_type_stack): New function.
	(insert_type): Likewise.
	(insert_type_address_space): Rename from push_type_address_space.
	Insert tp_space_identifier.
	* c-exp.y (ptr_operator): New production.
	(abs_decl): Use ptr_operator.
	(space_identifier): Call insert_type_address_space.
	(ptype): Don't use const_or_volatile_or_space_identifier.
	(const_or_volatile_noopt): Call insert_type.
	(conversion_type_id, conversion_declarator): New productions.
	(operator): Use conversion_type_id.
testsuite
	* gdb.base/whatis.exp: Add tests.
This commit is contained in:
Tom Tromey 2012-06-19 19:49:42 +00:00
parent e910f0b61f
commit 95c391b64a
6 changed files with 138 additions and 20 deletions

View file

@ -192,11 +192,13 @@ extern int end_arglist (void);
extern char *copy_name (struct stoken);
extern void insert_type (enum type_pieces);
extern void push_type (enum type_pieces);
extern void push_type_int (int);
extern void push_type_address_space (char *);
extern void insert_type_address_space (char *);
extern enum type_pieces pop_type (void);