public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/8420] volatile after the type specifier for an unnamed structure is rejected
       [not found] <20021101021601.8420.ehrhardt@mathematik.uni-ulm.de>
@ 2003-08-22  2:36 ` pinskia at gcc dot gnu dot org
  2003-12-02 18:31 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-22  2:36 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8420


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-22 02:36 -------
On the mainline (20030821) we get a warning which looks wrong:
pr8420.c:12: warning: declaration does not declare anything


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/8420] volatile after the type specifier for an unnamed structure is rejected
       [not found] <20021101021601.8420.ehrhardt@mathematik.uni-ulm.de>
  2003-08-22  2:36 ` [Bug c/8420] volatile after the type specifier for an unnamed structure is rejected pinskia at gcc dot gnu dot org
@ 2003-12-02 18:31 ` pinskia at gcc dot gnu dot org
  2004-06-11  0:54 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-02 18:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-02 18:31 -------
In C99 mode I also get an warning about the 2nd struct and the 3rd:
Perf-Evals-Computer:~/src/gccPRs peg$ ~/fsf-clean-nocheck/bin/gcc pr8420.c -std=c99
pr8420.c:6: warning: declaration does not declare anything
pr8420.c:10: warning: declaration does not declare anything

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-02 18:31:32
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8420


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/8420] volatile after the type specifier for an unnamed structure is rejected
       [not found] <20021101021601.8420.ehrhardt@mathematik.uni-ulm.de>
  2003-08-22  2:36 ` [Bug c/8420] volatile after the type specifier for an unnamed structure is rejected pinskia at gcc dot gnu dot org
  2003-12-02 18:31 ` pinskia at gcc dot gnu dot org
@ 2004-06-11  0:54 ` pinskia at gcc dot gnu dot org
  2004-09-09  1:26 ` cvs-commit at gcc dot gnu dot org
  2004-09-09  1:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-11  0:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-11 00:54 -------
For C99 mode it is right to rejct it as there are no such things as anonymous structs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-03-12 06:32:20         |2004-06-11 00:54:04
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8420


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/8420] volatile after the type specifier for an unnamed structure is rejected
       [not found] <20021101021601.8420.ehrhardt@mathematik.uni-ulm.de>
                   ` (2 preceding siblings ...)
  2004-06-11  0:54 ` pinskia at gcc dot gnu dot org
@ 2004-09-09  1:26 ` cvs-commit at gcc dot gnu dot org
  2004-09-09  1:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-09  1:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-09 01:25 -------
Subject: Bug 8420

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jsm28@gcc.gnu.org	2004-09-09 01:25:49

Modified files:
	gcc            : ChangeLog c-decl.c c-parse.in c-tree.h 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.dg/tls: diag-2.c 
Added files:
	gcc/testsuite/gcc.dg: anon-struct-4.c declspec-1.c declspec-2.c 
	                      declspec-3.c declspec-4.c declspec-5.c 
	                      declspec-6.c long-long-typespec-1.c 

Log message:
	PR c/8420
	* c-tree.h (struct c_declspecs): New.
	(struct c_declarator, struct c_type_name, struct c_parm): Update
	element types.
	(build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
	start_function, start_decl, build_c_parm,
	make_pointer_declarator): Update prototypes.
	(build_null_declspecs, declspecs_add_qual, declspecs_add_type,
	declspecs_add_scspec, declspecs_add_attrs): New.
	(split_specs_attrs): Remove.
	* c-parse.in (%union): Add dsptype.
	(declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
	declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
	declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
	declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
	declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
	declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
	declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
	declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
	declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
	declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
	maybe_type_quals_attrs): Change to dsptype.
	(struct c_declspec_stack): New.
	(current_declspecs, declspec_stack): Change type.
	(PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
	structures.
	(extdefs): Likewise.
	(setspecs): Likewise.
	(fndef): Use current_declspecs for empty declspecs list.
	(declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
	declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
	declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
	declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
	declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
	declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
	declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
	declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
	structures and helper functions.  Update comments.
	(typespec_nonattr): Correct comment.
	(maybe_type_quals_attrs, typename): Update to new structures.
	* c-decl.c (grokdeclarator, build_array_declarator, grokfield,
	shadow_tag, shadow_tag_warned, start_function, start_decl,
	build_c_parm, make_pointer_declarator,
	set_array_declarator_inner, groktypename): Update to new
	structures.
	(build_null_declspecs, declspecs_add_qual, declspecs_add_type,
	declspecs_add_scspec, declspecs_add_attrs): New.
	(split_specs_attrs): Remove.
	(shadow_tag_warned): Make warning for useless type names a
	pedwarn.  Give hard error for long, short, signed, unsigned or
	_Complex used with struct, union or enum in empty declaration.
	Make found_tag a bool.
	(grokdeclarator): Remove checks now done at parse time.
	
	testsuite:
	* gcc.dg/anon-struct-4.c, gcc.dg/declspec-1.c,
	gcc.dg/declspec-2.c, gcc.dg/declspec-3.c, gcc.dg/declspec-4.c,
	gcc.dg/declspec-5.c, gcc.dg/declspec-6.c,
	gcc.dg/long-long-typespec-1.c: New tests.
	* gcc.dg/tls/diag-2.c: Update expected diagnostics

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5316&r2=2.5317
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.576&r2=1.577
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-parse.in.diff?cvsroot=gcc&r1=1.237&r2=1.238
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-tree.h.diff?cvsroot=gcc&r1=1.178&r2=1.179
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4251&r2=1.4252
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/anon-struct-4.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/declspec-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/declspec-2.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/declspec-3.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/declspec-4.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/declspec-5.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/declspec-6.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/long-long-typespec-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tls/diag-2.c.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8420


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/8420] volatile after the type specifier for an unnamed structure is rejected
       [not found] <20021101021601.8420.ehrhardt@mathematik.uni-ulm.de>
                   ` (3 preceding siblings ...)
  2004-09-09  1:26 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-09  1:30 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-09  1:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-09 01:30 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8420


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-09-09  1:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20021101021601.8420.ehrhardt@mathematik.uni-ulm.de>
2003-08-22  2:36 ` [Bug c/8420] volatile after the type specifier for an unnamed structure is rejected pinskia at gcc dot gnu dot org
2003-12-02 18:31 ` pinskia at gcc dot gnu dot org
2004-06-11  0:54 ` pinskia at gcc dot gnu dot org
2004-09-09  1:26 ` cvs-commit at gcc dot gnu dot org
2004-09-09  1:30 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).