-
- Downloads
cpperror.c (cpp_error): For traditional CPP, default to diagnostics on pfile->line.
* cpperror.c (cpp_error): For traditional CPP, default to diagnostics on pfile->line. * cpplib.c (prepare_directive_trad): Set line number for diagnostics for #define too. * cpptrad.c (skip_whitespace): Skip comments properly. (_cpp_expansions_different_trad): Initialize quote2. testsuite: * gcc.dg/cpp/trad: New directory with traditional tests copied from parent directory. * 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: Move to trad/ and rename. * gcc.dg/cpp/trad/__STDC__.c, gcc.dg/cpp/trad/comment.c, gcc.dg/cpp/trad/escaped-eof.c, gcc.dg/cpp/trad/redef1.c, gcc.dg/cpp/trad/redef2.c: New tests. * gcc.dg/cpp/trad/trad.exp: New driver. From-SVN: r54870
Showing
- gcc/ChangeLog 9 additions, 0 deletionsgcc/ChangeLog
- gcc/cpperror.c 10 additions, 2 deletionsgcc/cpperror.c
- gcc/cpplib.c 3 additions, 2 deletionsgcc/cpplib.c
- gcc/cpptrad.c 2 additions, 2 deletionsgcc/cpptrad.c
- gcc/testsuite/ChangeLog 14 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/cpp/trad/__STDC__.c 7 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/__STDC__.c
- gcc/testsuite/gcc.dg/cpp/trad/assert1.c 46 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/assert1.c
- gcc/testsuite/gcc.dg/cpp/trad/assert2.c 23 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/assert2.c
- gcc/testsuite/gcc.dg/cpp/trad/assert3.c 10 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/assert3.c
- gcc/testsuite/gcc.dg/cpp/trad/comment.c 5 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/comment.c
- gcc/testsuite/gcc.dg/cpp/trad/define.c 2 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/define.c
- gcc/testsuite/gcc.dg/cpp/trad/defined.c 78 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/defined.c
- gcc/testsuite/gcc.dg/cpp/trad/directive.c 10 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/directive.c
- gcc/testsuite/gcc.dg/cpp/trad/escaped-eof.c 6 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/escaped-eof.c
- gcc/testsuite/gcc.dg/cpp/trad/hash.c 14 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/hash.c
- gcc/testsuite/gcc.dg/cpp/trad/num-sign.c 16 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/num-sign.c
- gcc/testsuite/gcc.dg/cpp/trad/paste.c 16 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/paste.c
- gcc/testsuite/gcc.dg/cpp/trad/redef1.c 36 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/redef1.c
- gcc/testsuite/gcc.dg/cpp/trad/redef2.c 32 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/redef2.c
- gcc/testsuite/gcc.dg/cpp/trad/strify.c 17 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/trad/strify.c
Loading
Please register or sign in to comment