public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
@ 2021-06-04 16:22 burnus at gcc dot gnu.org
2021-06-07 9:09 ` [Bug preprocessor/100904] [9/10/11/12 " rguenth at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-06-04 16:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
Bug ID: 100904
Summary: [9/10/11 Regression] Wrong line location #include
error "No such file or directory" – line + 1
[traditional mode as used by gfortran]
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
Target Milestone: ---
Working: GCC 6
Failing since: GCC 7
* * *
echo '#include "nonExisting.h"' > file.c
echo '#include "nonExisting.h"' > file.F90
will give the wrong error location with:
gfortran file.F90
or
gcc -traditional-cpp file.c
Namely:
file.c:2:2: fatal error: nonExisting.h: No such file or directory
Expected:
Some line location in line 1.
For instance, GCC 6 shows:
file.c:1:0: fatal error: nonExisting.h: No such file or directory
#include "nonexisting.h"
* * *
NOTE: gfortran only supports the traditional mode (as Fortran syntax and C
syntax does not mix well without additional cpp tweaking).
In C/C++, it works in non-traditional mode.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug preprocessor/100904] [9/10/11/12 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
@ 2021-06-07 9:09 ` rguenth at gcc dot gnu.org
2021-06-08 17:21 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-07 9:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libgcc |preprocessor
Summary|[9/10/11 Regression] Wrong |[9/10/11/12 Regression]
|line location #include |Wrong line location
|error "No such file or |#include error "No such
|directory" – line + 1 |file or directory" – line +
|[traditional mode as used |1 [traditional mode as used
|by gfortran] |by gfortran]
Target Milestone|--- |9.5
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug preprocessor/100904] [9/10/11/12 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
2021-06-07 9:09 ` [Bug preprocessor/100904] [9/10/11/12 " rguenth at gcc dot gnu.org
@ 2021-06-08 17:21 ` jakub at gcc dot gnu.org
2021-06-08 18:28 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-06-08 17:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-06-08
CC| |jakub at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r7-1651-gac81cf0b2bf5efdd716d10d1c218eb5a17e1035b
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug preprocessor/100904] [9/10/11/12 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
2021-06-07 9:09 ` [Bug preprocessor/100904] [9/10/11/12 " rguenth at gcc dot gnu.org
2021-06-08 17:21 ` jakub at gcc dot gnu.org
@ 2021-06-08 18:28 ` jakub at gcc dot gnu.org
2021-06-10 0:25 ` dmalcolm at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-06-08 18:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmalcolm at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
David, can you please have a look? Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug preprocessor/100904] [9/10/11/12 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
` (2 preceding siblings ...)
2021-06-08 18:28 ` jakub at gcc dot gnu.org
@ 2021-06-10 0:25 ` dmalcolm at gcc dot gnu.org
2022-01-20 12:58 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-06-10 0:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
FWIW the following hackish workaround seems to fix it, though am still
investigating why this is happening.
diff --git a/libcpp/directives.c b/libcpp/directives.c
index f4aa17d1156..b5bdd443a5a 100644
--- a/libcpp/directives.c
+++ b/libcpp/directives.c
@@ -850,6 +850,9 @@ do_include_common (cpp_reader *pfile, enum include_type
type)
pfile->directive->name, fname, angle_brackets,
buf);
+ if (CPP_OPTION (pfile, traditional))
+ location = pfile->directive_line;
+
_cpp_stack_include (pfile, fname, angle_brackets, type, location);
}
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug preprocessor/100904] [9/10/11/12 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
` (3 preceding siblings ...)
2021-06-10 0:25 ` dmalcolm at gcc dot gnu.org
@ 2022-01-20 12:58 ` rguenth at gcc dot gnu.org
2022-05-27 9:45 ` [Bug preprocessor/100904] [10/11/12/13 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-20 12:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2021-06-08 00:00:00 |2022-1-20
Priority|P3 |P2
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Re-confirmed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug preprocessor/100904] [10/11/12/13 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
` (4 preceding siblings ...)
2022-01-20 12:58 ` rguenth at gcc dot gnu.org
@ 2022-05-27 9:45 ` rguenth at gcc dot gnu.org
2022-06-28 10:45 ` jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug preprocessor/100904] [11/12/13/14 " rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug preprocessor/100904] [10/11/12/13 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
` (5 preceding siblings ...)
2022-05-27 9:45 ` [Bug preprocessor/100904] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:45 ` jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug preprocessor/100904] [11/12/13/14 " rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug preprocessor/100904] [11/12/13/14 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran]
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
` (6 preceding siblings ...)
2022-06-28 10:45 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:40 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100904
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-07-07 10:40 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 16:22 [Bug libgcc/100904] New: [9/10/11 Regression] Wrong line location #include error "No such file or directory" – line + 1 [traditional mode as used by gfortran] burnus at gcc dot gnu.org
2021-06-07 9:09 ` [Bug preprocessor/100904] [9/10/11/12 " rguenth at gcc dot gnu.org
2021-06-08 17:21 ` jakub at gcc dot gnu.org
2021-06-08 18:28 ` jakub at gcc dot gnu.org
2021-06-10 0:25 ` dmalcolm at gcc dot gnu.org
2022-01-20 12:58 ` rguenth at gcc dot gnu.org
2022-05-27 9:45 ` [Bug preprocessor/100904] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:45 ` jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug preprocessor/100904] [11/12/13/14 " rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).