gcc/cp/ * cp-tree.h (enum tsubst_flags): Add tf_fndecl_type. (flag_noexcept_type, ce_type): New. * call.c (build_conv): Add ck_fnptr. (enum conversion_kind): Change ck_tsafe to ck_fnptr. (convert_like_real): Likewise. (standard_conversion): Likewise. Allow function pointer conversions for pointers to member functions. (reference_compatible_p): Allow function pointer conversions. (direct_reference_binding): Likewise. (reference_binding): Reference-compatible is no longer a subset of reference-related. (is_subseq): Also strip ck_lvalue after next_conversion. * class.c (instantiate_type): Check fnptr_conv_p. (resolve_address_of_overloaded_function): Likewise. * cvt.c (can_convert_tx_safety): Now static. (noexcept_conv_p, fnptr_conv_p, strip_fnptr_conv): New. * decl.c (flag_noexcept_type): Define. (cxx_init_decl_processing): Set it. (bad_specifiers): Check it. (grokdeclarator) [cdk_function]: Add exception-spec to type here. * lambda.c (maybe_add_lambda_conv_op): Add exception-spec to returned pointer. * mangle.c (struct globals): Add need_cxx1z_warning. (mangle_decl): Check it. (write_exception_spec): New. (write_function_type): Call it. (canonicalize_for_substitution): Handle exception spec. (write_type): Likewise. (write_encoding): Set processing_template_decl across mangling of partially-instantiated type. * pt.c (determine_specialization): Pass tf_fndecl_type. (tsubst_decl, fn_type_unification): Likewise. (tsubst): Strip tf_fndecl_type, pass it to tsubst_exception_specification. (convert_nontype_argument_function): Handle function pointer conversion. (convert_nontype_argument): Likewise. (unify, for_each_template_parm_r): Walk into noexcept-specifier. * rtti.c (ptr_initializer): Encode noexcept. * tree.c (canonical_eh_spec): New. (build_exception_variant): Use it. * typeck.c (composite_pointer_type): Handle fnptr conversion. (comp_except_specs): Compare canonical EH specs. (structural_comptypes): Call it. gcc/c-family/ * c.opt (Wc++1z-compat): New. * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type. libstdc++-v3/ * include/bits/c++config (_GLIBCXX_NOEXCEPT_PARM) (_GLIBCXX_NOEXCEPT_QUAL): New. * include/std/type_traits (is_function): Use them. * libsubc++/new (launder): Likewise. * libsupc++/cxxabi.h (__pbase_type_info::__masks): Add __noexcept_mask. * libsupc++/pbase_type_info.cc (__do_catch): Handle function pointer conversion. libiberty/ * cp-demangle.c (is_fnqual_component_type): New. (d_encoding, d_print_comp_inner, d_print_mod_list): Use it. (FNQUAL_COMPONENT_CASE): New. (d_make_comp, has_return_type, d_print_comp_inner) (d_print_function_type): Use it. (next_is_type_qual): New. (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec. include/ * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_NOEXCEPT, DEMANGLE_COMPONENT_THROW_SPEC. From-SVN: r241944
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config | Loading commit data... | |
testsuite | Loading commit data... | |
.gitignore | Loading commit data... | |
COPYING.LIB | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog.jit | Loading commit data... | |
Makefile.in | Loading commit data... | |
README | Loading commit data... | |
_doprnt.c | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
alloca.c | Loading commit data... | |
argv.c | Loading commit data... | |
asprintf.c | Loading commit data... | |
at-file.texi | Loading commit data... | |
atexit.c | Loading commit data... | |
basename.c | Loading commit data... | |
bcmp.c | Loading commit data... | |
bcopy.c | Loading commit data... | |
bsearch.c | Loading commit data... | |
bzero.c | Loading commit data... | |
calloc.c | Loading commit data... | |
choose-temp.c | Loading commit data... | |
clock.c | Loading commit data... | |
concat.c | Loading commit data... | |
config.h-vms | Loading commit data... | |
config.in | Loading commit data... | |
configure | Loading commit data... | |
configure.ac | Loading commit data... | |
configure.com | Loading commit data... | |
copying-lib.texi | Loading commit data... | |
copysign.c | Loading commit data... | |
cp-demangle.c | Loading commit data... | |
cp-demangle.h | Loading commit data... | |
cp-demint.c | Loading commit data... | |
cplus-dem.c | Loading commit data... | |
crc32.c | Loading commit data... | |
d-demangle.c | Loading commit data... | |
dwarfnames.c | Loading commit data... | |
dyn-string.c | Loading commit data... | |
fdmatch.c | Loading commit data... | |
ffs.c | Loading commit data... | |
fibheap.c | Loading commit data... | |
filename_cmp.c | Loading commit data... | |
floatformat.c | Loading commit data... | |
fnmatch.c | Loading commit data... | |
fnmatch.txh | Loading commit data... | |
fopen_unlocked.c | Loading commit data... | |
functions.texi | Loading commit data... | |
gather-docs | Loading commit data... | |
getcwd.c | Loading commit data... | |
getopt.c | Loading commit data... | |
getopt1.c | Loading commit data... | |
getpagesize.c | Loading commit data... | |
getpwd.c | Loading commit data... | |
getruntime.c | Loading commit data... | |
gettimeofday.c | Loading commit data... | |
hashtab.c | Loading commit data... | |
hex.c | Loading commit data... | |
index.c | Loading commit data... | |
insque.c | Loading commit data... | |
lbasename.c | Loading commit data... | |
libiberty.texi | Loading commit data... | |
lrealpath.c | Loading commit data... | |
maint-tool | Loading commit data... | |
make-relative-prefix.c | Loading commit data... | |
make-temp-file.c | Loading commit data... | |
makefile.vms | Loading commit data... | |
md5.c | Loading commit data... | |
memchr.c | Loading commit data... | |
memcmp.c | Loading commit data... | |
memcpy.c | Loading commit data... | |
memmem.c | Loading commit data... | |
memmove.c | Loading commit data... | |
mempcpy.c | Loading commit data... | |
memset.c | Loading commit data... | |
mkstemps.c | Loading commit data... | |
msdos.c | Loading commit data... | |
objalloc.c | Loading commit data... | |
obstack.c | Loading commit data... | |
obstacks.texi | Loading commit data... | |
partition.c | Loading commit data... | |
pex-common.c | Loading commit data... | |
pex-common.h | Loading commit data... | |
pex-djgpp.c | Loading commit data... | |
pex-msdos.c | Loading commit data... | |
pex-one.c | Loading commit data... | |
pex-unix.c | Loading commit data... | |
pex-win32.c | Loading commit data... | |
pexecute.c | Loading commit data... | |
pexecute.txh | Loading commit data... | |
physmem.c | Loading commit data... | |
putenv.c | Loading commit data... | |
random.c | Loading commit data... | |
regex.c | Loading commit data... | |
rename.c | Loading commit data... | |
rindex.c | Loading commit data... | |
safe-ctype.c | Loading commit data... | |
setenv.c | Loading commit data... | |
setproctitle.c | Loading commit data... | |
sha1.c | Loading commit data... | |
sigsetmask.c | Loading commit data... | |
simple-object-coff.c | Loading commit data... | |
simple-object-common.h | Loading commit data... | |
simple-object-elf.c | Loading commit data... | |
simple-object-mach-o.c | Loading commit data... | |
simple-object-xcoff.c | Loading commit data... | |
simple-object.c | Loading commit data... | |
simple-object.txh | Loading commit data... | |
snprintf.c | Loading commit data... | |
sort.c | Loading commit data... | |
spaces.c | Loading commit data... | |
splay-tree.c | Loading commit data... | |
stack-limit.c | Loading commit data... | |
stpcpy.c | Loading commit data... | |
stpncpy.c | Loading commit data... | |
strcasecmp.c | Loading commit data... | |
strchr.c | Loading commit data... | |
strdup.c | Loading commit data... | |
strerror.c | Loading commit data... | |
strncasecmp.c | Loading commit data... | |
strncmp.c | Loading commit data... | |
strndup.c | Loading commit data... | |
strnlen.c | Loading commit data... | |
strrchr.c | Loading commit data... | |
strsignal.c | Loading commit data... | |
strstr.c | Loading commit data... | |
strtod.c | Loading commit data... | |
strtol.c | Loading commit data... | |
strtoll.c | Loading commit data... | |
strtoul.c | Loading commit data... | |
strtoull.c | Loading commit data... | |
strverscmp.c | Loading commit data... | |
timeval-utils.c | Loading commit data... | |
tmpnam.c | Loading commit data... | |
unlink-if-ordinary.c | Loading commit data... | |
vasprintf.c | Loading commit data... | |
vfork.c | Loading commit data... | |
vfprintf.c | Loading commit data... | |
vprintf-support.c | Loading commit data... | |
vprintf-support.h | Loading commit data... | |
vprintf.c | Loading commit data... | |
vsnprintf.c | Loading commit data... | |
vsprintf.c | Loading commit data... | |
waitpid.c | Loading commit data... | |
xasprintf.c | Loading commit data... | |
xatexit.c | Loading commit data... | |
xexit.c | Loading commit data... | |
xmalloc.c | Loading commit data... | |
xmemdup.c | Loading commit data... | |
xstrdup.c | Loading commit data... | |
xstrerror.c | Loading commit data... | |
xstrndup.c | Loading commit data... | |
xvasprintf.c | Loading commit data... |