Ping: PR preprocessor/22168

Ian Lance Taylor iant@google.com
Tue May 13 14:05:00 GMT 2008


Tom Tromey <tromey@redhat.com> writes:

> libcpp/ChangeLog:
> 2008-04-24  Tom Tromey  <tromey@redhat.com>
>
> 	PR preprocessor/22168:
> 	* include/cpplib.h (struct cpp_options) <objc>: Update
> 	documentation.
> 	* expr.c (eval_token): Warn for use of assertions.
> 	* directives.c (directive_diagnostics): Warn about extensions.
> 	(DEPRECATED): New define.
> 	(DIRECTIVE_TABLE): Use it.
>
> gcc/ChangeLog:
> 2008-04-25  Tom Tromey  <tromey@redhat.com>
>
> 	PR preprocessor/22168:
> 	* doc/cpp.texi (Top): Update menu.
> 	(Alternatives to Wrapper #ifndef): New node.
> 	(Other Directives): Document deprecation.
> 	(Obsolete Features): Remove menu.
> 	(Assertions): Merge node into Obsolete Features.
> 	(Obsolete once-only headers): Move earlier; rename to Alternatives
> 	to Wrapper #ifndef.
> 	* doc/cppopts.texi: Update.
> 	* c.opt (Wdeprecated): Enable for C and ObjC.
> 	* doc/invoke.texi (Option Summary): Move -Wno-deprecated.
> 	(C++ Dialect Options): Move -Wno-deprecated from here to...
> 	(Warning Options): ... here.
>
> gcc/testsuite/ChangeLog:
> 2008-04-25  Tom Tromey  <tromey@redhat.com>
>
> 	PR preprocessor/22168:
> 	* gcc.dg/pch/import-2.hs: Add -Wno-deprecated.
> 	* gcc.dg/pch/import-1.hs: Add -Wno-deprecated.
> 	* gcc.dg/pch/import-2.c: Add -Wno-deprecated.
> 	* gcc.dg/pch/import-1.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/import2.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/import1.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/trad/assert3.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/trad/assert2.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/trad/assert1.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/ident.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/ident-1.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/extratokens.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/assert3.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/assert2.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/assert1.c: Add -Wno-deprecated.
> 	* gcc.dg/cpp/assert4.c: Compile with -ansi and not -pedantic.  Add
> 	-Wno-deprecated.
> 	* gcc.dg/cpp/pr22168.c: New file.
> 	* gcc.dg/cpp/pr22168-2.c: New file.


This is OK.


> Index: libcpp/expr.c
> ===================================================================
> --- libcpp/expr.c	(revision 134506)
> +++ libcpp/expr.c	(working copy)
> @@ -1,6 +1,6 @@
>  /* Parse C expressions for cpplib.
>     Copyright (C) 1987, 1992, 1994, 1995, 1997, 1998, 1999, 2000, 2001,
> -   2002, 2004 Free Software Foundation.
> +   2002, 2004, 2006 Free Software Foundation.
>     Contributed by Per Bothner, 1994.

I think that you want to change 2006 to 2008.


As a followup patch, can you please clean up -Wimport in the manual?
It still says that it warns about #import directives, but it is in
fact a nop and has been for many years.

Thanks.

Ian



More information about the Gcc-patches mailing list