-traditional.
* doc/invoke.texi (-traditional): Note that this option is
deprecated.
testsuite:
* gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/tr-paste.c,
gcc.dg/cpp/tr-str.c: Use -traditional-cpp instead of -traditional.
* gcc.dg/ext-glob.c: Expect -traditional deprecation warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47147
138bc75d-0d04-0410-961f-
82ee72b054a4
+2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * c-decl.c (c_decode_option): Give deprecation warning for
+ -traditional.
+ * doc/invoke.texi (-traditional): Note that this option is
+ deprecated.
+
Sun Nov 18 07:40:07 2001 Douglas B. Rupp <rupp@gnat.com>
* config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
if (!strcmp (p, "-ftraditional") || !strcmp (p, "-traditional"))
{
+ warning ("-traditional is deprecated and may be removed");
flag_traditional = 1;
flag_writable_strings = 1;
}
representation of a character, and @samp{\a} produces a bell.
@end itemize
+This option is deprecated and may be removed.
+
You may wish to use @option{-fno-builtin} as well as @option{-traditional}
if your program uses names that are normally GNU C built-in functions for
other purposes of its own.
2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
+ * gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/tr-paste.c,
+ gcc.dg/cpp/tr-str.c: Use -traditional-cpp instead of -traditional.
+ * gcc.dg/ext-glob.c: Expect -traditional deprecation warning.
+
+2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
+
* gcc.dg/no-builtin-1.c: New test.
2001-11-16 Jakub Jelinek <jakub@redhat.com>
/* Basic tests of the #assert preprocessor extension. */
/* { dg-do compile } */
-/* { dg-options "-traditional" } */
+/* { dg-options "-traditional-cpp" } */
/* #define def unused expansion */ /* tradcpp can't handle macros in answers. */
#define fail int failit
Test case by Jason R. Thorpe <thorpej@zembu.com>. */
/* { dg-do compile } */
-/* { dg-options "-traditional" } */
+/* { dg-options "-traditional-cpp" } */
#define A(name) X/**/name
/* Test whether traditional stringify works. */
/* { dg-do run } */
-/* { dg-options "-traditional" } */
+/* { dg-options "-traditional-cpp" } */
#define foo(a, b) c="a"; d="b";
extern void abort ();
/* { dg-do compile } */
/* { dg-options -traditional } */
+/* { dg-warning "-traditional is deprecated" "deprecation warning" { target *-*-* } 0 } */
int
main ()