/contrib/toolchain/gcc/5x/libstdc++-v3/Makefile |
---|
35,13 → 35,13 |
src/c++98/compatibility-debug_list-2.cc |
cxx11_sources = \ |
compatibility-c++0x.cc \ |
compatibility-atomic-c++0x.cc \ |
compatibility-thread-c++0x.cc \ |
compatibility-chrono.cc \ |
compatibility-condvar.cc |
src/c++11/compatibility-c++0x.cc \ |
src/c++11/compatibility-atomic-c++0x.cc \ |
src/c++11/compatibility-thread-c++0x.cc \ |
src/c++11/compatibility-chrono.cc \ |
src/c++11/compatibility-condvar.cc |
compat_sources = $(cxx98_sources) |
compat_sources = $(cxx98_sources) $(cxx11_sources) |
cow_string_host_sources = \ |
src/c++98/collate_members_cow.cc \ |
244,8 → 244,20 |
src/c++11/hashtable_c++0x.o: src/c++11/hashtable_c++0x.cc |
$(CXXCOMPILE) -fimplicit-templates -o $@ $< |
$(CXXCOMPILE) -std=gnu++11 -fimplicit-templates -o $@ $< |
src/c++11/compatibility-c++0x.o: src/c++11/compatibility-c++0x.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
src/c++11/compatibility-thread-c++0x.o: src/c++11/compatibility-thread-c++0x.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
src/c++11/compatibility-chrono.o: src/c++11/compatibility-chrono.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
src/c++11/compatibility-condvar.o: src/c++11/compatibility-condvar.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
clean: |
-rm -f *.o |
/contrib/toolchain/gcc/5x/libstdc++-v3/libsupc++/gthr_mutex.c |
---|
File deleted |
/contrib/toolchain/gcc/5x/libstdc++-v3/libsupc++/vterminate.idb |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/contrib/toolchain/gcc/5x/libstdc++-v3/libsupc++/Makefile |
---|
6,68 → 6,81 |
CPP= kos32-g++ |
STRIP = kos32-strip |
INSTALLDIR:= /home/autobuild/tools/win32/mingw32/lib |
export SDK_DIR:= $(abspath ../../../../../sdk) |
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer |
CPPFLAGS = -fno-rtti |
CFLAGSCPP = -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi |
CFLAGSCPP+= -fdiagnostics-show-location=once -ffunction-sections -fdata-sections |
ARFLAGS= crs |
INCLUDES= -I. -I../include/mingw32 -I../include -I../../newlib/libc/include -I/home/autobuild/tools/win32/include |
GLIBCXX_INCLUDE_DIR= ../include |
INCLUDES= -I../include/mingw32 -I../include -I./ -I$(SDK_DIR)/sources/newlib/libc/include |
LIBS:= -ldll -lc.dll |
DEFINES= -D_GLIBCXX_HAVE_TLS |
DEFINES= -DHAVE_CONFIG_H -DIN_GCC -DIN_GLIBCPP_V3 -DUSE_EMUTLS=1 -D_GLIBCXX_HAVE_TLS |
C_COMPILE= $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) |
CXXCOMPILE= $(CPP) $(CFLAGS) $(CFLAGSCPP) $(INCLUDES) $(DEFINES) |
SOURCES = \ |
cp-demangle.c \ |
array_type_info.cc \ |
atexit_thread.cc \ |
bad_alloc.cc \ |
bad_cast.cc \ |
bad_typeid.cc \ |
class_type_info.cc \ |
del_op.cc \ |
del_opnt.cc \ |
del_opv.cc \ |
del_opvnt.cc \ |
dyncast.cc \ |
eh_alloc.cc \ |
eh_aux_runtime.cc \ |
eh_call.cc \ |
eh_catch.cc \ |
eh_exception.cc \ |
eh_globals.cc \ |
eh_personality.cc \ |
eh_ptr.cc \ |
eh_term_handler.cc \ |
eh_terminate.cc \ |
eh_throw.cc \ |
eh_tm.cc \ |
eh_type.c \ |
eh_unex_handler.cc \ |
enum_type_info.cc \ |
function_type_info.cc \ |
fundamental_type_info.cc \ |
guard.cc \ |
guard_error.cc \ |
hash_bytes.cc \ |
nested_exception.cc \ |
new_handler.cc \ |
new_op.cc \ |
new_opnt.cc \ |
new_opv.cc \ |
new_opvnt.cc \ |
pbase_type_info.cc \ |
pmem_type_info.cc \ |
pointer_type_info.cc \ |
pure.cc \ |
si_class_type_info.cc \ |
tinfo.cc \ |
tinfo2.cc \ |
vec.cc \ |
vmi_class_type_info.cc \ |
vterminate.cc |
cp-demangle.c \ |
array_type_info.cc \ |
atexit_arm.cc \ |
atexit_thread.cc \ |
bad_alloc.cc \ |
bad_array_length.cc \ |
bad_array_new.cc \ |
bad_cast.cc \ |
bad_typeid.cc \ |
class_type_info.cc \ |
del_op.cc \ |
del_ops.cc \ |
del_opnt.cc \ |
del_opv.cc \ |
del_opvs.cc \ |
del_opvnt.cc \ |
dyncast.cc \ |
eh_alloc.cc \ |
eh_arm.cc \ |
eh_aux_runtime.cc \ |
eh_call.cc \ |
eh_catch.cc \ |
eh_exception.cc \ |
eh_globals.cc \ |
eh_personality.cc \ |
eh_ptr.cc \ |
eh_term_handler.cc \ |
eh_terminate.cc \ |
eh_tm.cc \ |
eh_throw.cc \ |
eh_type.cc \ |
eh_unex_handler.cc \ |
enum_type_info.cc \ |
function_type_info.cc \ |
fundamental_type_info.cc \ |
guard.cc \ |
guard_error.cc \ |
hash_bytes.cc \ |
nested_exception.cc \ |
new_handler.cc \ |
new_op.cc \ |
new_opnt.cc \ |
new_opv.cc \ |
new_opvnt.cc \ |
pbase_type_info.cc \ |
pmem_type_info.cc \ |
pointer_type_info.cc \ |
pure.cc \ |
si_class_type_info.cc \ |
tinfo.cc \ |
tinfo2.cc \ |
vec.cc \ |
vmi_class_type_info.cc \ |
vterminate.cc |
OBJECTS = $(patsubst %.cc, %.o, $(patsubst %.c, %.o, $(SOURCES))) |
76,30 → 89,61 |
all:$(LIBRARY).a |
$(LIBRARY).a: $(OBJECTS) Makefile |
$(AR) $(ARFLAGS) $(LIBRARY).a $(OBJECTS) |
mv -f $(LIBRARY).a ../../../lib |
$(AR) $(ARFLAGS) $(LIBRARY).a $(OBJECTS) |
mv -f $(LIBRARY).a $(INSTALLDIR) |
%.o : %.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
%.o : %.cc Makefile |
$(CPP) $(CFLAGS) $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
$(CXXCOMPILE) -o $@ $< |
eh_ptr.o: eh_ptr.cc |
$(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
cp-demangle.o: cp-demangle.c |
$(C_COMPILE) -DHAVE_CONFIG_H -D_USE_32BIT_TIME_T -DIN_GLIBCPP_V3 -Wno-error -o $@ $< |
bad_array_length.o: bad_array_length.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
bad_array_new.o: bad_array_new.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
eh_aux_runtime.o: eh_aux_runtime.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
eh_ptr.o: eh_ptr.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
eh_terminate.o: eh_terminate.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
eh_throw.o: eh_throw.cc |
$(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
guard.o: guard.cc |
$(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
guard.o: guard.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
atexit_thread.o: atexit_thread.cc |
$(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
atexit_thread.o: atexit_thread.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
nested_exception.o: nested_exception.cc |
$(CPP) $(CFLAGS) -std=gnu++0x $(CPPFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
nested_exception.o: nested_exception.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
new_handler.o: new_handler.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
new_op.o: new_op.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
new_opnt.o: new_opnt.cc |
$(CXXCOMPILE) -std=gnu++11 -o $@ $< |
del_ops.o: del_ops.cc |
$(CXXCOMPILE) -std=gnu++14 -o $@ $< |
del_opvs.o: del_opvs.cc |
$(CXXCOMPILE) -std=gnu++14 -o $@ $< |
clean: |
-rm -f *.o |
/contrib/toolchain/gcc/5x/libstdc++-v3/libsupc++/cp-demangle.c |
---|
2302,7 → 2302,7 |
*pret = d_function_type (di); |
} |
else |
*pret = cplus_demangle_type (di); |
*pret = cplus_demangle_type (di); |
if (!*pret) |
return NULL; |
if ((*pret)->type == DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS |
2397,11 → 2397,11 |
candidate. */ |
if (! di->is_conversion) |
{ |
if (! d_add_substitution (di, ret)) |
return NULL; |
ret = d_make_comp (di, DEMANGLE_COMPONENT_TEMPLATE, ret, |
d_template_args (di)); |
} |
if (! d_add_substitution (di, ret)) |
return NULL; |
ret = d_make_comp (di, DEMANGLE_COMPONENT_TEMPLATE, ret, |
d_template_args (di)); |
} |
else |
{ |
struct demangle_component *args; |
4109,7 → 4109,7 |
* sizeof (*dpi.copy_templates)); |
#endif |
d_print_comp (&dpi, options, dc); |
d_print_comp (&dpi, options, dc); |
} |
d_print_flush (&dpi); |
4334,7 → 4334,7 |
static void |
d_print_comp_inner (struct d_print_info *dpi, int options, |
const struct demangle_component *dc) |
const struct demangle_component *dc) |
{ |
/* Magic variable to let reference smashing skip over the next modifier |
without needing to modify *dc. */ |
5785,9 → 5785,9 |
static void |
d_print_cast (struct d_print_info *dpi, int options, |
const struct demangle_component *dc) |
const struct demangle_component *dc) |
{ |
d_print_comp (dpi, options, d_left (dc)); |
d_print_comp (dpi, options, d_left (dc)); |
} |
/* Print a conversion operator. */ |
5821,7 → 5821,7 |
parameters from scope after printing the operator name, |
so we need to handle the template printing here. */ |
if (dpi->current_template != NULL) |
dpi->templates = dpt.next; |
dpi->templates = dpt.next; |
if (d_last_char (dpi) == '<') |
d_append_char (dpi, ' '); |
/contrib/toolchain/gcc/5x/libstdc++-v3/libsupc++/cp-demangle.h |
---|
122,6 → 122,11 |
mangled name to the demangled name, such as standard |
substitutions and builtin types. */ |
int expansion; |
/* Non-zero if we are parsing an expression. */ |
int is_expression; |
/* Non-zero if we are parsing the type operand of a conversion |
operator, but not when in an expression. */ |
int is_conversion; |
}; |
/* To avoid running past the ending '\0', don't: |
/contrib/toolchain/gcc/5x/libstdc++-v3/libsupc++/demangle.h |
---|
63,9 → 63,10 |
#define DMGL_EDG (1 << 13) |
#define DMGL_GNU_V3 (1 << 14) |
#define DMGL_GNAT (1 << 15) |
#define DMGL_DLANG (1 << 16) |
/* If none of these are set, use 'current_demangling_style' as the default. */ |
#define DMGL_STYLE_MASK (DMGL_AUTO|DMGL_GNU|DMGL_LUCID|DMGL_ARM|DMGL_HP|DMGL_EDG|DMGL_GNU_V3|DMGL_JAVA|DMGL_GNAT) |
#define DMGL_STYLE_MASK (DMGL_AUTO|DMGL_GNU|DMGL_LUCID|DMGL_ARM|DMGL_HP|DMGL_EDG|DMGL_GNU_V3|DMGL_JAVA|DMGL_GNAT|DMGL_DLANG) |
/* Enumeration of possible demangling styles. |
87,7 → 88,8 |
edg_demangling = DMGL_EDG, |
gnu_v3_demangling = DMGL_GNU_V3, |
java_demangling = DMGL_JAVA, |
gnat_demangling = DMGL_GNAT |
gnat_demangling = DMGL_GNAT, |
dlang_demangling = DMGL_DLANG |
} current_demangling_style; |
/* Define string names for the various demangling styles. */ |
102,6 → 104,7 |
#define GNU_V3_DEMANGLING_STYLE_STRING "gnu-v3" |
#define JAVA_DEMANGLING_STYLE_STRING "java" |
#define GNAT_DEMANGLING_STYLE_STRING "gnat" |
#define DLANG_DEMANGLING_STYLE_STRING "dlang" |
/* Some macros to test what demangling style is active. */ |
115,6 → 118,7 |
#define GNU_V3_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_GNU_V3) |
#define JAVA_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_JAVA) |
#define GNAT_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_GNAT) |
#define DLANG_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_DLANG) |
/* Provide information about the available demangle styles. This code is |
pulled from gdb into libiberty because it is useful to binutils also. */ |
169,10 → 173,17 |
char * |
ada_demangle (const char *mangled, int options); |
extern char * |
dlang_demangle (const char *mangled, int options); |
enum gnu_v3_ctor_kinds { |
gnu_v3_complete_object_ctor = 1, |
gnu_v3_base_object_ctor, |
gnu_v3_complete_object_allocating_ctor, |
/* These are not part of the V3 ABI. Unified constructors are generated |
as a speed-for-space optimization when the -fdeclone-ctor-dtor option |
is used, and are always internal symbols. */ |
gnu_v3_unified_ctor, |
gnu_v3_object_ctor_group |
}; |
188,6 → 199,10 |
gnu_v3_deleting_dtor = 1, |
gnu_v3_complete_object_dtor, |
gnu_v3_base_object_dtor, |
/* These are not part of the V3 ABI. Unified destructors are generated |
as a speed-for-space optimization when the -fdeclone-ctor-dtor option |
is used, and are always internal symbols. */ |
gnu_v3_unified_dtor, |
gnu_v3_object_dtor_group |
}; |
365,6 → 380,10 |
/* A typecast, represented as a unary operator. The one subtree is |
the type to which the argument should be cast. */ |
DEMANGLE_COMPONENT_CAST, |
/* A conversion operator, represented as a unary operator. The one |
subtree is the type to which the argument should be converted |
to. */ |
DEMANGLE_COMPONENT_CONVERSION, |
/* A nullary expression. The left subtree is the operator. */ |
DEMANGLE_COMPONENT_NULLARY, |
/* A unary expression. The left subtree is the operator, and the |