common.opt (undef): New.

* common.opt (undef): New.

testsuite:
	* gcc.dg/cpp/undef-opt-1.c: New test.

From-SVN: r164599
This commit is contained in:
Joseph Myers 2010-09-24 16:14:40 +01:00 committed by Joseph Myers
parent 3fdb885199
commit 5642f5d5d5
4 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-09-24 Joseph Myers <joseph@codesourcery.com>
* common.opt (undef): New.
2010-09-24 Jakub Jelinek <jakub@redhat.com>
PR middle-end/45234

View File

@ -1924,6 +1924,10 @@ Driver JoinedOrMissing
u
Driver Joined Separate
undef
Driver
; C option, but driver must not handle as "-u ndef".
v
Driver

View File

@ -1,3 +1,7 @@
2010-09-24 Joseph Myers <joseph@codesourcery.com>
* gcc.dg/cpp/undef-opt-1.c: New test.
2010-09-24 Jason Merrill <jason@redhat.com>
* g++.dg/other/error10.C: Adjust expected output.

View File

@ -0,0 +1,8 @@
/* Test -undef. A bug in its handling broke glibc builds because
"linux" was wrongly defined. */
/* { dg-do preprocess } */
/* { dg-options "-undef" } */
#ifdef linux
#error -undef broken
#endif