]> gcc.gnu.org Git - gcc.git/commitdiff
gccrs: Rename libproc_macro to libproc_macro_internal
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 28 Aug 2023 15:08:40 +0000 (17:08 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:04:31 +0000 (19:04 +0100)
The name was a bit misleading since libproc_macro is a rust library that
should we should be able to link against some rust code. This cpp
library was the layer below the libproc_macro library, the "real" gcc
libproc_macro act as a translation layer for the internal library.

gcc/rust/ChangeLog:

* expand/rust-macro-expand.h: Change include directive with the
new name.
* expand/rust-proc-macro.h (RUST_PROC_MACRO_H): Likewise.
* util/rust-hir-map.h: Likewise.
* util/rust-token-converter.h: Likewise.
* util/rust-token-converter.cc: Remove useless include
directive.
* Make-lang.in: Rename library.

libgrust/ChangeLog:

* Makefile.am: Change library name.
* Makefile.in: Likewise.
* configure.ac: Likewise.
* configure: Regenerate.
* libproc_macro/Makefile.am: Moved to...
* libproc_macro_internal/Makefile.am: ...here.
* libproc_macro/Makefile.in: Moved to...
* libproc_macro_internal/Makefile.in: ...here.
* libproc_macro/bridge.h: Moved to...
* libproc_macro_internal/bridge.h: ...here.
* libproc_macro/ffistring.cc: Moved to...
* libproc_macro_internal/ffistring.cc: ...here.
* libproc_macro/ffistring.h: Moved to...
* libproc_macro_internal/ffistring.h: ...here.
* libproc_macro/group.cc: Moved to...
* libproc_macro_internal/group.cc: ...here.
* libproc_macro/group.h: Moved to...
* libproc_macro_internal/group.h: ...here.
* libproc_macro/ident.cc: Moved to...
* libproc_macro_internal/ident.cc: ...here.
* libproc_macro/ident.h: Moved to...
* libproc_macro_internal/ident.h: ...here.
* libproc_macro/literal.cc: Moved to...
* libproc_macro_internal/literal.cc: ...here.
* libproc_macro/literal.h: Moved to...
* libproc_macro_internal/literal.h: ...here.
* libproc_macro/proc_macro.cc: Moved to...
* libproc_macro_internal/proc_macro.cc: ...here.
* libproc_macro/proc_macro.h: Moved to...
* libproc_macro_internal/proc_macro.h: ...here.
* libproc_macro/punct.cc: Moved to...
* libproc_macro_internal/punct.cc: ...here.
* libproc_macro/punct.h: Moved to...
* libproc_macro_internal/punct.h: ...here.
* libproc_macro/registration.h: Moved to...
* libproc_macro_internal/registration.h: ...here.
* libproc_macro/rust/bridge.rs: Moved to...
* libproc_macro_internal/rust/bridge.rs: ...here.
* libproc_macro/rust/bridge/ffistring.rs: Moved to...
* libproc_macro_internal/rust/bridge/ffistring.rs: ...here.
* libproc_macro/rust/bridge/group.rs: Moved to...
* libproc_macro_internal/rust/bridge/group.rs: ...here.
* libproc_macro/rust/bridge/ident.rs: Moved to...
* libproc_macro_internal/rust/bridge/ident.rs: ...here.
* libproc_macro/rust/bridge/literal.rs: Moved to...
* libproc_macro_internal/rust/bridge/literal.rs: ...here.
* libproc_macro/rust/bridge/punct.rs: Moved to...
* libproc_macro_internal/rust/bridge/punct.rs: ...here.
* libproc_macro/rust/bridge/span.rs: Moved to...
* libproc_macro_internal/rust/bridge/span.rs: ...here.
* libproc_macro/rust/bridge/token_stream.rs: Moved to...
* libproc_macro_internal/rust/bridge/token_stream.rs: ...here.
* libproc_macro/rust/group.rs: Moved to...
* libproc_macro_internal/rust/group.rs: ...here.
* libproc_macro/rust/ident.rs: Moved to...
* libproc_macro_internal/rust/ident.rs: ...here.
* libproc_macro/rust/lib.rs: Moved to...
* libproc_macro_internal/rust/lib.rs: ...here.
* libproc_macro/rust/literal.rs: Moved to...
* libproc_macro_internal/rust/literal.rs: ...here.
* libproc_macro/rust/punct.rs: Moved to...
* libproc_macro_internal/rust/punct.rs: ...here.
* libproc_macro/rust/span.rs: Moved to...
* libproc_macro_internal/rust/span.rs: ...here.
* libproc_macro/rust/token_stream.rs: Moved to...
* libproc_macro_internal/rust/token_stream.rs: ...here.
* libproc_macro/span.cc: Moved to...
* libproc_macro_internal/span.cc: ...here.
* libproc_macro/span.h: Moved to...
* libproc_macro_internal/span.h: ...here.
* libproc_macro/tokenstream.cc: Moved to...
* libproc_macro_internal/tokenstream.cc: ...here.
* libproc_macro/tokenstream.h: Moved to...
* libproc_macro_internal/tokenstream.h: ...here.
* libproc_macro/tokentree.cc: Moved to...
* libproc_macro_internal/tokentree.cc: ...here.
* libproc_macro/tokentree.h: Moved to...
* libproc_macro_internal/tokentree.h: ...here.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
47 files changed:
gcc/rust/Make-lang.in
gcc/rust/expand/rust-macro-expand.h
gcc/rust/expand/rust-proc-macro.h
gcc/rust/util/rust-hir-map.h
gcc/rust/util/rust-token-converter.cc
gcc/rust/util/rust-token-converter.h
libgrust/Makefile.am
libgrust/Makefile.in
libgrust/configure
libgrust/configure.ac
libgrust/libproc_macro_internal/Makefile.am [moved from libgrust/libproc_macro/Makefile.am with 97% similarity]
libgrust/libproc_macro_internal/Makefile.in [moved from libgrust/libproc_macro/Makefile.in with 98% similarity]
libgrust/libproc_macro_internal/bridge.h [moved from libgrust/libproc_macro/bridge.h with 100% similarity]
libgrust/libproc_macro_internal/ffistring.cc [moved from libgrust/libproc_macro/ffistring.cc with 100% similarity]
libgrust/libproc_macro_internal/ffistring.h [moved from libgrust/libproc_macro/ffistring.h with 100% similarity]
libgrust/libproc_macro_internal/group.cc [moved from libgrust/libproc_macro/group.cc with 100% similarity]
libgrust/libproc_macro_internal/group.h [moved from libgrust/libproc_macro/group.h with 100% similarity]
libgrust/libproc_macro_internal/ident.cc [moved from libgrust/libproc_macro/ident.cc with 100% similarity]
libgrust/libproc_macro_internal/ident.h [moved from libgrust/libproc_macro/ident.h with 100% similarity]
libgrust/libproc_macro_internal/literal.cc [moved from libgrust/libproc_macro/literal.cc with 100% similarity]
libgrust/libproc_macro_internal/literal.h [moved from libgrust/libproc_macro/literal.h with 100% similarity]
libgrust/libproc_macro_internal/proc_macro.cc [moved from libgrust/libproc_macro/proc_macro.cc with 100% similarity]
libgrust/libproc_macro_internal/proc_macro.h [moved from libgrust/libproc_macro/proc_macro.h with 100% similarity]
libgrust/libproc_macro_internal/punct.cc [moved from libgrust/libproc_macro/punct.cc with 100% similarity]
libgrust/libproc_macro_internal/punct.h [moved from libgrust/libproc_macro/punct.h with 100% similarity]
libgrust/libproc_macro_internal/registration.h [moved from libgrust/libproc_macro/registration.h with 100% similarity]
libgrust/libproc_macro_internal/rust/bridge.rs [moved from libgrust/libproc_macro/rust/bridge.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/bridge/ffistring.rs [moved from libgrust/libproc_macro/rust/bridge/ffistring.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/bridge/group.rs [moved from libgrust/libproc_macro/rust/bridge/group.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/bridge/ident.rs [moved from libgrust/libproc_macro/rust/bridge/ident.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/bridge/literal.rs [moved from libgrust/libproc_macro/rust/bridge/literal.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/bridge/punct.rs [moved from libgrust/libproc_macro/rust/bridge/punct.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/bridge/span.rs [moved from libgrust/libproc_macro/rust/bridge/span.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/bridge/token_stream.rs [moved from libgrust/libproc_macro/rust/bridge/token_stream.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/group.rs [moved from libgrust/libproc_macro/rust/group.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/ident.rs [moved from libgrust/libproc_macro/rust/ident.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/lib.rs [moved from libgrust/libproc_macro/rust/lib.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/literal.rs [moved from libgrust/libproc_macro/rust/literal.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/punct.rs [moved from libgrust/libproc_macro/rust/punct.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/span.rs [moved from libgrust/libproc_macro/rust/span.rs with 100% similarity]
libgrust/libproc_macro_internal/rust/token_stream.rs [moved from libgrust/libproc_macro/rust/token_stream.rs with 100% similarity]
libgrust/libproc_macro_internal/span.cc [moved from libgrust/libproc_macro/span.cc with 100% similarity]
libgrust/libproc_macro_internal/span.h [moved from libgrust/libproc_macro/span.h with 100% similarity]
libgrust/libproc_macro_internal/tokenstream.cc [moved from libgrust/libproc_macro/tokenstream.cc with 100% similarity]
libgrust/libproc_macro_internal/tokenstream.h [moved from libgrust/libproc_macro/tokenstream.h with 100% similarity]
libgrust/libproc_macro_internal/tokentree.cc [moved from libgrust/libproc_macro/tokentree.cc with 100% similarity]
libgrust/libproc_macro_internal/tokentree.h [moved from libgrust/libproc_macro/tokentree.h with 100% similarity]

index ad41a56523f00829405b2c87341625dd528157a0..25ead232c8314b4e959f87bec4ae87a39c01eeea 100644 (file)
@@ -195,14 +195,14 @@ RUST_ALL_OBJS = $(GRS_OBJS) $(RUST_TARGET_OBJS)
 
 rust_OBJS = $(RUST_ALL_OBJS) rust/rustspec.o
 
-RUST_LDFLAGS = $(LDFLAGS) -L./../libgrust/libproc_macro
-RUST_LIBDEPS = $(LIBDEPS) ../libgrust/libproc_macro/libproc_macro.a
+RUST_LDFLAGS = $(LDFLAGS) -L./../libgrust/libproc_macro_internal
+RUST_LIBDEPS = $(LIBDEPS) ../libgrust/libproc_macro_internal/libproc_macro_internal.a
 
 # The compiler itself is called crab1
 crab1$(exeext): $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(RUST_LIBDEPS) $(rust.prev)
        @$(call LINK_PROGRESS,$(INDEX.rust),start)
        +$(LLINKER) $(ALL_LINKERFLAGS) $(RUST_LDFLAGS) -o $@ \
-             $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBS) ../libgrust/libproc_macro/libproc_macro.a $(BACKENDLIBS)
+             $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBS) ../libgrust/libproc_macro_internal/libproc_macro_internal.a $(BACKENDLIBS)
        @$(call LINK_PROGRESS,$(INDEX.rust),end)
 
 # Build hooks.
index 34fc01f0d0b049c038ab688bc0e80a7ed0ae5ea4..04660469a7d5ca26a3ef071d4204f69d99d7711d 100644 (file)
@@ -33,7 +33,7 @@
 #include "rust-token-converter.h"
 #include "rust-ast-collector.h"
 #include "rust-system.h"
-#include "libproc_macro/proc_macro.h"
+#include "libproc_macro_internal/proc_macro.h"
 
 // Provides objects and method prototypes for macro expansion
 
index 7e9d7ecb609eab8b35a119613ba8d9c159d0f762..08d80ee35d956c1a3495e2e6ccdd0c245877a065 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef RUST_PROC_MACRO_H
 #define RUST_PROC_MACRO_H
 
-#include "libproc_macro/proc_macro.h"
+#include "libproc_macro_internal/proc_macro.h"
 
 namespace Rust {
 /**
index f62885faee94dd493f488261b085bae43030f63c..31f8a1bea5950e04b2b73bb66a182ad5d9049c71 100644 (file)
@@ -28,7 +28,7 @@
 #include "rust-hir-full-decls.h"
 #include "rust-lang-item.h"
 #include "rust-privacy-common.h"
-#include "libproc_macro/proc_macro.h"
+#include "libproc_macro_internal/proc_macro.h"
 
 namespace Rust {
 namespace Analysis {
index 67d073d5e1534e696a40cd93b02f5ddcdf4a5b68..537bca3a3f7a541577cb11fbba57737cb7cf993f 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "rust-lex.h"
 #include "rust-token-converter.h"
-#include "libproc_macro/proc_macro.h"
 #include "bi-map.h"
 #include "line-map.h"
 
index 3e9feebd0585401218a06ae4a2e9385a7dd5300e..0498041b46c6f156a4f4630d7ca7fcc61020aa79 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <vector>
 #include "rust-token.h"
-#include "libproc_macro/proc_macro.h"
+#include "libproc_macro_internal/proc_macro.h"
 
 namespace Rust {
 
index 38ee48a80036ebf0b1e1de12abbb590dc57e078b..5b38c8842cb44c9ecd88b2a44a21587309a66200 100644 (file)
@@ -11,7 +11,7 @@ TOP_GCCDIR := $(shell cd $(top_srcdir) && cd .. && pwd)
 GCC_DIR = $(TOP_GCCDIR)/gcc
 RUST_SRC = $(GCC_DIR)/rust
 
-SUBDIRS = libproc_macro
+SUBDIRS = libproc_macro_internal
 
 RUST_BUILDDIR := $(shell pwd)
 
index e9a410b9009de7f02de371ccbae1ff6a0c3a5d90..d065584d196fa37648494d075a94cccd67fdd767 100644 (file)
@@ -308,7 +308,7 @@ AM_CFLAGS = -I $(srcdir)/../libgcc -I $(MULTIBUILDTOP)../../gcc/include
 TOP_GCCDIR := $(shell cd $(top_srcdir) && cd .. && pwd)
 GCC_DIR = $(TOP_GCCDIR)/gcc
 RUST_SRC = $(GCC_DIR)/rust
-SUBDIRS = libproc_macro
+SUBDIRS = libproc_macro_internal
 RUST_BUILDDIR := $(shell pwd)
 
 # Work around what appears to be a GNU make bug handling MAKEFLAGS
index e778a25391572d33b37e3cb3a9ec5340b73137e4..dcdc3142fa2e8cd3c2c4470c8ecff88ac0e481db 100755 (executable)
@@ -16193,7 +16193,7 @@ esac
 
 
 
-ac_config_files="$ac_config_files libproc_macro/Makefile"
+ac_config_files="$ac_config_files libproc_macro_internal/Makefile"
 
 
 
@@ -17348,7 +17348,7 @@ do
     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
-    "libproc_macro/Makefile") CONFIG_FILES="$CONFIG_FILES libproc_macro/Makefile" ;;
+    "libproc_macro_internal/Makefile") CONFIG_FILES="$CONFIG_FILES libproc_macro_internal/Makefile" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
@@ -18689,7 +18689,7 @@ compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 _LT_EOF
 
  ;;
-    "libproc_macro/Makefile":F)  cat > vpsed$$ << \_EOF
+    "libproc_macro_internal/Makefile":F)  cat > vpsed$$ << \_EOF
 s!`test -f '$<' || echo '$(srcdir)/'`!!
 _EOF
    sed -f vpsed$$ $ac_file > tmp$$
index adfb3500fb30da54e2109965f47e8208ae5eb4d0..d55e698fdd825f2861822bf45d6150a604ff2c7c 100644 (file)
@@ -104,7 +104,7 @@ AC_SUBST(toolexecdir)
 AC_SUBST(toolexeclibdir)
 
 
-AC_CONFIG_FILES(AC_FOREACH([DIR], [libproc_macro], [DIR/Makefile ]),
+AC_CONFIG_FILES(AC_FOREACH([DIR], [libproc_macro_internal], [DIR/Makefile ]),
  [ cat > vpsed$$ << \_EOF
 s!`test -f '$<' || echo '$(srcdir)/'`!!
 _EOF
similarity index 97%
rename from libgrust/libproc_macro/Makefile.am
rename to libgrust/libproc_macro_internal/Makefile.am
index 24945a40fa8423b7bd93800a93d20934fa45b562..da996103b22fb07352aa0693e92b5f64b5d6c004 100644 (file)
@@ -47,7 +47,8 @@ AM_MAKEFLAGS = \
        "WERROR=$(WERROR)" \
         "TARGET_LIB_PATH=$(TARGET_LIB_PATH)"
 
-TARGETLIB = ./libproc_macro.a
+
+TARGETLIB = ./libproc_macro_internal.a
 LIBOBJS = @LIBOBJS@
 objext = @OBJEXT@
 
similarity index 98%
rename from libgrust/libproc_macro/Makefile.in
rename to libgrust/libproc_macro_internal/Makefile.in
index db5f2d4f62f80a36e577751faf87d09362ed66c7..68aa4610689987c0eb0c32e514a2a949630c6a83 100644 (file)
@@ -88,7 +88,7 @@ POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
 target_triplet = @target@
-subdir = libproc_macro
+subdir = libproc_macro_internal
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
        $(top_srcdir)/../config/cet.m4 \
@@ -308,7 +308,7 @@ AM_MAKEFLAGS = \
        "WERROR=$(WERROR)" \
         "TARGET_LIB_PATH=$(TARGET_LIB_PATH)"
 
-TARGETLIB = ./libproc_macro.a
+TARGETLIB = ./libproc_macro_internal.a
 objext = @OBJEXT@
 REQUIRED_OFILES = \
        ./proc_macro.$(objext) \
@@ -334,9 +334,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__confi
              exit 1;; \
          esac; \
        done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libproc_macro/Makefile'; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libproc_macro_internal/Makefile'; \
        $(am__cd) $(top_srcdir) && \
-         $(AUTOMAKE) --foreign libproc_macro/Makefile
+         $(AUTOMAKE) --foreign libproc_macro_internal/Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
        @case '$?' in \
          *config.status*) \
This page took 0.106169 seconds and 5 git commands to generate.