[Bug preprocessor/91639] [10 Regression] FAIL: gcc.dg/plugin/location-overflow-test-pr83173.c -fplugin=./location_overflo w_plugin.so scan-file-not # (?!1 [^\r\n]+location-overflow-test-pr83173-1.h"

2019-09-05 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91639

--- Comment #3 from Nathan Sidwell  ---
Author: nathan
Date: Thu Sep  5 11:23:48 2019
New Revision: 275402

URL: https://gcc.gnu.org/viewcvs?rev=275402&root=gcc&view=rev
Log:
[preprocessor/91639] #includes at EOF

https://gcc.gnu.org/ml/gcc-patches/2019-09/msg00280.html
libcpp/
PR preprocessor/91639
* directives.c (do_include_common): Tell lexer we're a #include.
* files.c (_cpp_stack_file): Lexer will have always incremented.
* internal.h (struct cpp_context): Extend in_directive's
semantics.
* lex.c (_cpp_lex_direct): Increment line for final \n when lexing
for an ISO #include.
* line-map.c (linemap_line_start): Remember if we overflowed.

gcc/testsuite/
PR preprocessor/91639
* c-c++-common/cpp/pr91639.c: New.
* c-c++-common/cpp/pr91639-one.h: New.
* c-c++-common/cpp/pr91639-two.h: New.

Added:
trunk/gcc/testsuite/c-c++-common/cpp/pr91639-one.h
trunk/gcc/testsuite/c-c++-common/cpp/pr91639-two.h
trunk/gcc/testsuite/c-c++-common/cpp/pr91639.c
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/directives.c
trunk/libcpp/files.c
trunk/libcpp/internal.h
trunk/libcpp/lex.c
trunk/libcpp/line-map.c

[Bug preprocessor/91639] [10 Regression] FAIL: gcc.dg/plugin/location-overflow-test-pr83173.c -fplugin=./location_overflo w_plugin.so scan-file-not # (?!1 [^\r\n]+location-overflow-test-pr83173-1.h"

2019-09-05 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91639

Nathan Sidwell  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Nathan Sidwell  ---
Fixed r275402

[Bug preprocessor/91639] [10 Regression] FAIL: gcc.dg/plugin/location-overflow-test-pr83173.c -fplugin=./location_overflo w_plugin.so scan-file-not # (?!1 [^\r\n]+location-overflow-test-pr83173-1.h"

2019-09-04 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91639

Nathan Sidwell  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-09-04
   Assignee|unassigned at gcc dot gnu.org  |nathan at gcc dot 
gnu.org
 Ever confirmed|0   |1

[Bug preprocessor/91639] [10 Regression] FAIL: gcc.dg/plugin/location-overflow-test-pr83173.c -fplugin=./location_overflo w_plugin.so scan-file-not # (?!1 [^\r\n]+location-overflow-test-pr83173-1.h"

2019-09-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91639

Jakub Jelinek  changed:

   What|Removed |Added

 Target|hppa-unknown-linux-gnu  |
 CC||jakub at gcc dot gnu.org,
   ||nathan at gcc dot gnu.org
   Host|hppa-unknown-linux-gnu  |
  Build|hppa-unknown-linux-gnu  |

--- Comment #1 from Jakub Jelinek  ---
Broken by r275034 everywhere, not just hppa.
location-overflow-test-pr83173.i used to contain:
# 1 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c"
# 1 ""
# 1 ""
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "" 2
# 1 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c"





# 1 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h"
1
# 1
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-1.h" 1

# 2 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h"
2
# 1
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-2.h" 1

# 3 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h"
2
# 7 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c"
2

int
main ()
{
 return 0;
}

but after the change it is:
# 1 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c"
# 1 ""
# 1 ""
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "" 2
# 1 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c"





# 1 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h"
1
# 1
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-1.h" 1

# 2 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h"
2
# 2
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-1.h"
# 1
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-2.h" 1

# 3
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-1.h" 2
# 2 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h"
2

int
main ()
{
 return 0;
}
# 7 "/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c"
2

The difference:
--- location-overflow-test-pr83173.i.r2750332019-09-03 13:39:33.352482636
+0200
+++ location-overflow-test-pr83173.i.r2750342019-09-03 13:37:10.754649084
+0200
@@ -13,13 +13,15 @@
 # 1
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-1.h" 1

 # 2
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h" 2
+# 2
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-1.h"
 # 1
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-2.h" 1

-# 3
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h" 2
-# 7
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c" 2
+# 3
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173-1.h" 2
+# 2
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.h" 2

 int
 main ()
 {
  return 0;
 }
+# 7
"/usr/src/gcc/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c" 2

[Bug preprocessor/91639] [10 Regression] FAIL: gcc.dg/plugin/location-overflow-test-pr83173.c -fplugin=./location_overflo w_plugin.so scan-file-not # (?!1 [^\r\n]+location-overflow-test-pr83173-1.h"

2019-09-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91639

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |10.0