* c-ppoutput.c (cb_used_define): Do nothing for a builtin node.

From-SVN: r140604
This commit is contained in:
Eric Botcazou 2008-09-23 17:47:32 +00:00 committed by Eric Botcazou
parent 8839907955
commit c9891b7058
4 changed files with 15 additions and 0 deletions

View File

@ -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,

View File

@ -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;

View File

@ -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.

View 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