mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
gccrs: Rename libproc_macro to libproc_macro_internal
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>
This commit is contained in:
parent
b7809f89fb
commit
fd73cf8c31
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 {
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
6
libgrust/configure
vendored
6
libgrust/configure
vendored
@ -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$$
|
||||
|
@ -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
|
||||
|
@ -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@
|
||||
|
@ -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*) \
|
Loading…
Reference in New Issue
Block a user