From 17df7fec6c741af0a6acf8a1760d66e4e65cef94 Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 20 Jun 2002 20:34:19 +0000 Subject: * cppexp.c (cpp_interpret_integer): Don't force traditional numbers to be unsigned. * cpplib.c (prepare_directive_trad): Set line number for diagnostics. * cpptrad.c (scan_out_logical_line): Continue scanning out at start of buffer. * gcc.c (trad_capable_cpp): Use cc1 always. f: * lang-specs.h: Use cc1 for traditional preprocessing. testsuite: * gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/assert_trad2.c, gcc.dg/cpp/assert_trad3.c, gcc.dg/cpp/defined_trad.c, gcc.dg/cpp/hash2.c, gcc.dg/cpp/tr-define.c, gcc.dg/cpp/tr-direct.c, gcc.dg/cpp/tr-sign.c, gcc.dg/cpp/tr-str.c, gcc.dg/cpp/uchar-2.c: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54856 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cpplib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cpplib.c') diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 4ee97e81a05..d3c95e75c86 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -303,6 +303,8 @@ prepare_directive_trad (pfile) pfile->state.skipping = was_skipping; _cpp_overlay_buffer (pfile, pfile->out.base, pfile->out.cur - pfile->out.base); + /* Report diagnostics on the line of the directive. */ + pfile->line = pfile->directive_line; } /* Stop ISO C from expanding anything. */ -- cgit v1.2.3