* cpperror.c (cpp_file_line_for_message): If 'line' is zero,
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 Jan 2000 03:31:59 +0000 (03:31 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 Jan 2000 03:31:59 +0000 (03:31 +0000)
commit2b9117afd21ac57a437e5b907d0ee4d91698af93
tree79fd63777562408a7a168cbfdeed51b0d2eb1186
parent0748bb79d63eb853a969df6be759fcbe644f13d9
* cpperror.c (cpp_file_line_for_message): If 'line' is zero,
just print "<command line>".  If 'filename' is null or an
empty string, print "<stdin>" for the filename.
* cpplib.c (do_define): Don't print the 'location of the
previous definition' message if we're still parsing the
command line.
(cpp_pedwarn_with_file_and_line): Always call
cpp_file_line_for_message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31697 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cpperror.c
gcc/cpplib.c