===================================================================
@@ -1054,7 +1054,7 @@ eval_token (cpp_reader *pfile, const cpp
result.low = 0;
if (CPP_OPTION (pfile, warn_undef) && !pfile->state.skip_eval)
cpp_warning_with_line (pfile, CPP_W_UNDEF, virtual_location, 0,
- "\"%s\" is not defined",
+ "\"%s\" is not defined, evaluates to 0",
NODE_NAME (token->val.node.node));
}
break;
===================================================================
@@ -1,5 +1,5 @@
// { dg-do preprocess }
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=undef" }
/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
-#if x // { dg-error "\"x\" is not defined .-Werror=undef." }
+#if x // { dg-error "\"x\" is not defined, evaluates to 0 .-Werror=undef." }
#endif
===================================================================
@@ -1,5 +1,5 @@
// { dg-do preprocess }
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Wundef" }
-#if x // { dg-warning "\"x\" is not defined .-Wundef." }
+#if x // { dg-warning "\"x\" is not defined, evaluates to 0 .-Wundef." }
#endif