public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5899] analyzer: install header files for use by plugins [PR109077]
@ 2023-11-28  8:21 David Malcolm
  0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2023-11-28  8:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:594ef1ff707866bcdc1f077c5d078a5bd250320f

commit r14-5899-g594ef1ff707866bcdc1f077c5d078a5bd250320f
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Tue Nov 28 03:20:02 2023 -0500

    analyzer: install header files for use by plugins [PR109077]
    
    PLUGIN_ANALYZER_INIT was added in r11-5583-g66dde7bc64b75d, but we
    haven't been installing the analyzer's headers files.
    
    Fixed thusly.
    
    gcc/ChangeLog:
            PR analyzer/109077
            * Makefile.in (PLUGIN_HEADERS): Add analyzer headers.
            (install-plugin): Keep the directory structure for files in
            "analyzer".
    
    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

Diff:
---
 gcc/Makefile.in | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 753f2f36618..b79421e7252 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3821,7 +3821,7 @@ PLUGIN_HEADERS = $(TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
   hash-set.h dominance.h cfg.h cfgrtl.h cfganal.h cfgbuild.h cfgcleanup.h \
   lcm.h cfgloopmanip.h file-prefix-map.h builtins.def $(INSN_ATTR_H) \
   pass-instances.def params.list $(srcdir)/../include/gomp-constants.h \
-  $(EXPR_H)
+  $(EXPR_H) $(srcdir)/analyzer/*.h
 
 # generate the 'build fragment' b-header-vars
 s-header-vars: Makefile
@@ -3844,8 +3844,9 @@ install-gengtype: installdirs gengtype$(exeext) gtype.state
 
 # Install the headers needed to build a plugin.
 install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype
-# We keep the directory structure for files in config, common/config or
-# c-family and .def files. All other files are flattened to a single directory.
+# We keep the directory structure for files in analyzer, config, common/config
+# or c-family and .def files.
+# All other files are flattened to a single directory.
 	$(mkinstalldirs) $(DESTDIR)$(plugin_includedir)
 	headers=`echo $(sort $(PLUGIN_HEADERS)) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \
 	srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
@@ -3857,7 +3858,8 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype
 	  else continue; \
 	  fi; \
 	  case $$path in \
-	  "$(srcdir)"/config/* | "$(srcdir)"/common/config/* \
+	  "$(srcdir)"/analyzer/* \
+	  | "$(srcdir)"/config/* | "$(srcdir)"/common/config/* \
 	  | "$(srcdir)"/c-family/* | "$(srcdir)"/*.def ) \
 	    base=`echo "$$path" | sed -e "s|$$srcdirstrip/||"`;; \
 	  *) base=`basename $$path` ;; \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-28  8:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28  8:21 [gcc r14-5899] analyzer: install header files for use by plugins [PR109077] David Malcolm

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).