Hi Gaius,
> This patch makes it easier to add third party modules.
> cc1gm2 now appends the search directory prefix/include/m2
> to the search path for non dialect specific modules.
> Prior to this it appends the dialect specific subdirectories
> {m2pim,m2iso,m2log,m2min} with the appropriate dialect pathname.
> The patch also includes a new option -fm2-pathname-root=prefix
> which allow additional prefix/m2 directories to be searched
> before the default.
this patch broke macOS bootstrap:
/vol/gcc/src/hg/master/darwin/gcc/m2/gm2-lang.cc: In function 'void
add_default_include_paths(const char*)':
/vol/gcc/src/hg/master/darwin/gcc/m2/gm2-lang.cc:547:39: error:
'PREFIX_INCLUDE_DIR' was not declared in this scope
547 | foreach_lib_gen_import_path (flibs, PREFIX_INCLUDE_DIR);
|
This is due to this snippet in gcc/configure.ac:
if test x$with_sysroot = x && test x$host = x$target \
&& test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
&& test "$prefix" != "NONE"; then
AC_DEFINE_UNQUOTED(PREFIX_INCLUDE_DIR, "$prefix/include",
[Define to PREFIX/include if cpp should also search that directory.])
fi
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University