This is the mail archive of the
mailing list for the GCC project.
Re: VAX PATCH: remove FILE_NAME_NONDIRECTORY
- To: lars at nocrew dot org (Lars Brinkhoff)
- Subject: Re: VAX PATCH: remove FILE_NAME_NONDIRECTORY
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Wed, 21 Feb 2001 13:25:35 -0500 (EST)
- Cc: dave dot anglin at nrc dot ca, gcc-patches at gcc dot gnu dot org
> Ever since this:
> 1997-10-31 Brendan Kehoe <firstname.lastname@example.org>
> * lex.c (FILE_NAME_NONDIRECTORY): Delete macro.
> (file_name_nondirectory): New function, doing the same
> as the macro.
> (set_typedecl_interface_info): Use it instead of the macro.
> (check_newline): Likewise.
> (handle_cp_pragma): Likewise.
> the macro FILE_NAME_NONDIRECTORY in gcc/config/vax/xm-vms.h seems to
> be unused.
My initial thought is the patch by Brendan Kehoe broke the VMS port.
The VMS port overrode the define for this macro because it needed
special handling to extract a file name. The current version of
file_name_nondirectory in toplev.c is not appropriate for VMS.
Thus, we need instead to redefine the macro and change all calls to
file_name_nondirectory to fix the problem. There are protos for
file_name_nondirectory in toplev.h and cp/cp-tree.h. There are calls
in dwarf2out.c, cp/lex.c and cp/repo.c. Unfortunately, I don't have
a VMS system to try it on. Can you try this?
J. David Anglin email@example.com
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)