]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/tradcpp.c
cpperror.c (print_file_and_line): If line is (unsigned int)-1, print just the filename.
[gcc.git] / gcc / tradcpp.c
index 5e88c02298932ea8b55946c384e04126c9a82ca1..125e2cbe602695de7228526ba1bc119c95e35b08 100644 (file)
@@ -711,14 +711,11 @@ main (argc, argv)
      and option processing.  */
   initialize_builtins ();
 
-  /* Do defines specified with -D.  */
+  /* Do defines specified with -D and undefines specified with -U.  */
   for (i = 1; i < argc; i++)
     if (pend_defs[i])
       make_definition ((U_CHAR *)pend_defs[i]);
-
-  /* Do undefines specified with -U.  */
-  for (i = 1; i < argc; i++)
-    if (pend_undefs[i])
+    else if (pend_undefs[i])
       make_undef ((U_CHAR *)pend_undefs[i]);
 
   /* Unless -fnostdinc,
This page took 0.030929 seconds and 5 git commands to generate.