This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix misplaced c-family headers in plugin include directory


Hello,

* Ehren Metcalfe wrote on Tue, Nov 30, 2010 at 06:40:33AM CET:
> In addition to the problems addressed by
> http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02752.html, there is an
> issue with c-family headers being put in the main plugin include
> directory rather than the c-family subdir. This breaks all headers
> like cp-tree.h etc that #include "c-family/blah.h". Also, the
> testsuite plugin examples have already been updated to use the
> c-family dir (so with this and Mingjie Xing's patch they'll work
> again).

This needs a ChangeLog entry, I suggest something like

gcc/ChangeLog:
2010-11-30  Ehren Metcalfe  <ehren.m@...>

        * Makefile.in (install-plugin): Do not flatten c-family subdir.


and I'm not sure if there is a required testing procedure for plugin
patches, but if there's one, that should be tested too.  Patch looks ok
otherwise.  Do you need someone to commit it for you?

Thanks,
Ralf

> --- gcc/Makefile.in (revision 167286)
> +++ gcc/Makefile.in (working copy)
> @@ -4576,8 +4576,8 @@
> 
>  # Install the headers needed to build a plugin.
>  install-plugin: installdirs lang.install-plugin s-header-vars
> -# We keep the directory structure for files in config and .def files. All
> -# other files are flattened to a single directory.
> +# We keep the directory structure for files in config, c-family and
> +# .def files. All other files are flattened to a single directory.
>   $(mkinstalldirs) $(DESTDIR)$(plugin_includedir)
>   headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`; \
>   srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
> @@ -4589,7 +4589,7 @@
>     else continue; \
>     fi; \
>     case $$path in \
> -   "$(srcdir)"/config/* | "$(srcdir)"/*.def ) \
> +   "$(srcdir)"/config/* | "$(srcdir)"/c-family/* | "$(srcdir)"/*.def ) \
>       base=`echo "$$path" | sed -e "s|$$srcdirstrip/||"`;; \
>     *) base=`basename $$path` ;; \
>     esac; \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]