public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/11839] New: [3.4 Regression] GCC cannot find t/t.h if t is a file and t/t.h is in subdirectory temp
@ 2003-08-07 0:04 pinskia at physics dot uc dot edu
2003-08-07 0:06 ` [Bug preprocessor/11839] " pinskia at physics dot uc dot edu
2003-08-07 0:14 ` pinskia at physics dot uc dot edu
0 siblings, 2 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-07 0:04 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11839
Summary: [3.4 Regression] GCC cannot find t/t.h if t is a file
and t/t.h is in subdirectory temp
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: critical
Priority: P2
Component: preprocessor
AssignedTo: neil at gcc dot gnu dot org
ReportedBy: pinskia at physics dot uc dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: *-*-*
When a file with the same name as a directory which you want to lookup, the
preprocessor now rejects this:
touch t
mkdir temp
mkdir temp/t
echo "HELLO">temp/t/t.h
echo "#include \"t/t.h\"">t.c
gcc -I. -Itemp t.c
t.c:1:17: t/t.h: Not a directory
This cause gdbtk to not be able to build.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/11839] [3.4 Regression] GCC cannot find t/t.h if t is a file and t/t.h is in subdirectory temp
2003-08-07 0:04 [Bug preprocessor/11839] New: [3.4 Regression] GCC cannot find t/t.h if t is a file and t/t.h is in subdirectory temp pinskia at physics dot uc dot edu
@ 2003-08-07 0:06 ` pinskia at physics dot uc dot edu
2003-08-07 0:14 ` pinskia at physics dot uc dot edu
1 sibling, 0 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-07 0:06 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11839
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-07 00:06 -------
The line with the include should be echo '#include "t/t.h"' > t.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug preprocessor/11839] [3.4 Regression] GCC cannot find t/t.h if t is a file and t/t.h is in subdirectory temp
2003-08-07 0:04 [Bug preprocessor/11839] New: [3.4 Regression] GCC cannot find t/t.h if t is a file and t/t.h is in subdirectory temp pinskia at physics dot uc dot edu
2003-08-07 0:06 ` [Bug preprocessor/11839] " pinskia at physics dot uc dot edu
@ 2003-08-07 0:14 ` pinskia at physics dot uc dot edu
1 sibling, 0 replies; 5+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-07 0:14 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11839
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-08-07 00:14:48
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-07 00:14 -------
This is almost definitally caused by:
2003-07-29 Neil Booth
PR preprocessor/11569
PR preprocessor/11649
* Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
* cppfiles.c: Completely rewritten.
* c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
struct cpp_path is now struct cpp_dir.
(remove_duplicates): Don't simplify path names.
* c-opts.c (c_common_parse_file): cpp_read_next_file renamed
cpp_stack_file.
* cpphash.h: Include hashtab.h.
(_cpp_file): Declare.
(struct cpp_buffer): struct include_file is now struct _cpp_file,
and struct cpp_path is now struct cpp_dir. Rename members.
(struct cpp_reader): Similarly. New members once_only_files,
file_hash, file_hash_entries, quote_ignores_source_dir,
no_search_path, saw_pragma_once. Remove all_include_files and
max_include_len. Make some members bool.
(_cpp_mark_only_only): Renamed from _cpp_never_reread.
(_cpp_stack_file): Renamed from _cpp_read_file.
(_cpp_stack_include): Renamed from _cpp_execute_include.
(_cpp_init_files): Renamed from _cpp_init_includes.
(_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
* cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
(cpp_read_next_file): Rename and move to cppfiles.c.
(cpp_read_main_file): Update.
* cpplib.c (run_directive): Update for renamed members.
(do_include_common, _cpp_pop_buffer): Update.
(do_import): Undeprecate #import.
(do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
* cpplib.h: Remove file_name_map_list.
(cpp_options): Remove map_list.
(cpp_dir): Rename from cpp_path. New datatype for name_map.
(cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20030807000409.11839.pinskia@gcc.gnu.org>]
end of thread, other threads:[~2003-08-09 8:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-07 0:04 [Bug preprocessor/11839] New: [3.4 Regression] GCC cannot find t/t.h if t is a file and t/t.h is in subdirectory temp pinskia at physics dot uc dot edu
2003-08-07 0:06 ` [Bug preprocessor/11839] " pinskia at physics dot uc dot edu
2003-08-07 0:14 ` pinskia at physics dot uc dot edu
[not found] <20030807000409.11839.pinskia@gcc.gnu.org>
2003-08-09 8:53 ` cvs-commit at gcc dot gnu dot org
2003-08-09 8:55 ` neil at gcc dot gnu dot 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).