* c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
From-SVN: r140604
This commit is contained in:
parent
8839907955
commit
c9891b7058
4 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
|
||||
|
||||
2008-09-23 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
|
||||
|
|
|
@ -406,6 +406,8 @@ cb_used_define (cpp_reader *pfile, source_location line ATTRIBUTE_UNUSED,
|
|||
cpp_hashnode *node)
|
||||
{
|
||||
macro_queue *q;
|
||||
if (node->flags & NODE_BUILTIN)
|
||||
return;
|
||||
q = XNEW (macro_queue);
|
||||
q->macro = xstrdup ((const char *) cpp_macro_definition (pfile, node));
|
||||
q->next = define_queue;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* gcc.dg/cpp/cmdlne-dU-23.c: New test.
|
||||
|
||||
2008-09-23 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* gcc.dg/Walways-true-1.c: Test column numbers.
|
||||
|
|
5
gcc/testsuite/gcc.dg/cpp/cmdlne-dU-23.c
Normal file
5
gcc/testsuite/gcc.dg/cpp/cmdlne-dU-23.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
/* { dg-do preprocess } */
|
||||
/* { dg-options "-P -dU" } */
|
||||
/* { dg-final { scan-file-not cmdlne-dU-23.i "__FILE__" } } */
|
||||
#ifdef __FILE__
|
||||
#endif
|
Loading…
Add table
Reference in a new issue