gcc/libcpp
Jason Merrill 7b8b96a327 libcpp: add .c++-header-unit target
The dependency output for header unit modules is based on the absolute
pathname of the header file, but that's not something that a makefile can
portably refer to.  This patch adds a .c++-header-unit target based on the
header name relative to an element of the include path.

libcpp/ChangeLog:

	* internal.h (_cpp_get_file_dir): Declare.
	* files.cc (_cpp_get_file_dir): New fn.
	* mkdeps.cc (make_write): Use it.

gcc/testsuite/ChangeLog:

	* g++.dg/modules/dep-4.H: New test.
2024-11-18 09:18:17 +01:00
..
include c: Implement C2Y N3298 - Introduce complex literals [PR117029] 2024-11-13 09:41:41 +01:00
po Daily bump. 2024-09-20 17:36:00 +00:00
aclocal.m4 libcpp: Regenerate aclocal.m4 and configure [PR 114748] 2024-04-17 14:08:34 +00:00
ChangeLog Daily bump. 2024-11-18 00:17:28 +00:00
ChangeLog.jit
charset.cc non-gcc: Remove trailing whitespace 2024-10-25 10:03:17 +02:00
combining-chars.inc
config.in libcpp: replace SSE4.2 helper with an SSSE3 one 2024-08-20 14:09:12 +03:00
configure libcpp: replace SSE4.2 helper with an SSSE3 one 2024-08-20 14:09:12 +03:00
configure.ac libcpp: replace SSE4.2 helper with an SSSE3 one 2024-08-20 14:09:12 +03:00
directives.cc non-gcc: Remove trailing whitespace 2024-10-25 10:03:17 +02:00
errors.cc non-gcc: Remove trailing whitespace 2024-10-25 10:03:17 +02:00
expr.cc c: Add _Decimal64x support 2024-11-15 08:43:48 +01:00
files.cc libcpp: add .c++-header-unit target 2024-11-18 09:18:17 +01:00
generated_cpp_wcwidth.h contrib, libcpp, libstdc++: Update to Unicode 16.0 2024-10-08 10:01:47 +02:00
identifiers.cc Update copyright years. 2024-01-03 12:19:35 +01:00
init.cc c-family: add -fsearch-include-path 2024-11-17 16:23:21 +01:00
internal.h libcpp: add .c++-header-unit target 2024-11-18 09:18:17 +01:00
lex.cc c++: Attempt to implement C++26 P3034R1 - Module Declarations Shouldn't be Macros [PR114461] 2024-11-01 19:42:28 +01:00
line-map.cc non-gcc: Remove trailing whitespace 2024-10-25 10:03:17 +02:00
location-example.txt
macro.cc c++: Attempt to implement C++26 P3034R1 - Module Declarations Shouldn't be Macros [PR114461] 2024-11-01 19:42:28 +01:00
Makefile.in libcpp, genmatch: Use gcc_diag instead of printf for libcpp diagnostics 2024-10-12 10:50:41 +02:00
makeucnid.cc non-gcc: Remove trailing whitespace 2024-10-25 10:03:17 +02:00
makeuname2c.cc contrib, libcpp, libstdc++: Update to Unicode 16.0 2024-10-08 10:01:47 +02:00
mkdeps.cc libcpp: add .c++-header-unit target 2024-11-18 09:18:17 +01:00
pch.cc libcpp, genmatch: Use gcc_diag instead of printf for libcpp diagnostics 2024-10-12 10:50:41 +02:00
printable-chars.inc
symtab.cc Update copyright years. 2024-01-03 12:19:35 +01:00
system.h non-gcc: Remove trailing whitespace 2024-10-25 10:03:17 +02:00
traditional.cc non-gcc: Remove trailing whitespace 2024-10-25 10:03:17 +02:00
ucnid.h contrib, libcpp, libstdc++: Update to Unicode 16.0 2024-10-08 10:01:47 +02:00
ucnid.tab Update copyright years. 2024-01-03 12:19:35 +01:00
uname2c.h contrib, libcpp, libstdc++: Update to Unicode 16.0 2024-10-08 10:01:47 +02:00