public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] c++: install cp-trait.def as part of plugin headers [PR107136]
@ 2022-10-04  0:42 Patrick Palka
  2022-10-04 15:43 ` Jason Merrill
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Palka @ 2022-10-04  0:42 UTC (permalink / raw)
  To: gcc-patches; +Cc: jason, Patrick Palka

This is apparently needed since we include cp-trait.def from cp-tree.h
(in order to define the cp_trait_kind enum), as with operators.def.

Tested on x86_64-pc-linux-gnu by doing make install and verifying
cp-trait.def appears in

  $prefix/lib/gcc/x86_64-pc-linux-gnu/13.0.0/plugin/include/cp/

Does this look OK for trunk?

	PR c++/107136

gcc/cp/ChangeLog:

	* Make-lang.in (CP_PLUGIN_HEADERS): Add cp-trait.def.
---
 gcc/cp/Make-lang.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index 38d8eeed1f0..aa84d6827be 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -39,7 +39,7 @@ CXX_INSTALL_NAME := $(shell echo c++|sed '$(program_transform_name)')
 GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
 CXX_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo c++|sed '$(program_transform_name)')
 GXX_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo g++|sed '$(program_transform_name)')
-CP_PLUGIN_HEADERS := cp-tree.h cxx-pretty-print.h name-lookup.h type-utils.h operators.def
+CP_PLUGIN_HEADERS := cp-tree.h cxx-pretty-print.h name-lookup.h type-utils.h operators.def cp-trait.def
 
 #\f
 # Define the names for selecting c++ in LANGUAGES.
-- 
2.38.0.rc2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] c++: install cp-trait.def as part of plugin headers [PR107136]
  2022-10-04  0:42 [PATCH] c++: install cp-trait.def as part of plugin headers [PR107136] Patrick Palka
@ 2022-10-04 15:43 ` Jason Merrill
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2022-10-04 15:43 UTC (permalink / raw)
  To: Patrick Palka, gcc-patches

On 10/3/22 20:42, Patrick Palka wrote:
> This is apparently needed since we include cp-trait.def from cp-tree.h
> (in order to define the cp_trait_kind enum), as with operators.def.
> 
> Tested on x86_64-pc-linux-gnu by doing make install and verifying
> cp-trait.def appears in
> 
>    $prefix/lib/gcc/x86_64-pc-linux-gnu/13.0.0/plugin/include/cp/
> 
> Does this look OK for trunk?

OK.

> 	PR c++/107136
> 
> gcc/cp/ChangeLog:
> 
> 	* Make-lang.in (CP_PLUGIN_HEADERS): Add cp-trait.def.
> ---
>   gcc/cp/Make-lang.in | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
> index 38d8eeed1f0..aa84d6827be 100644
> --- a/gcc/cp/Make-lang.in
> +++ b/gcc/cp/Make-lang.in
> @@ -39,7 +39,7 @@ CXX_INSTALL_NAME := $(shell echo c++|sed '$(program_transform_name)')
>   GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
>   CXX_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo c++|sed '$(program_transform_name)')
>   GXX_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo g++|sed '$(program_transform_name)')
> -CP_PLUGIN_HEADERS := cp-tree.h cxx-pretty-print.h name-lookup.h type-utils.h operators.def
> +CP_PLUGIN_HEADERS := cp-tree.h cxx-pretty-print.h name-lookup.h type-utils.h operators.def cp-trait.def
>   
>   #\f
>   # Define the names for selecting c++ in LANGUAGES.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-04 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04  0:42 [PATCH] c++: install cp-trait.def as part of plugin headers [PR107136] Patrick Palka
2022-10-04 15:43 ` Jason Merrill

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