aboutsummaryrefslogtreecommitdiff
path: root/libiberty
AgeCommit message (Collapse)AuthorFilesLines
2009-12-08* pex-unix.c (pex_unix_exec_child): Save/restore environ.Doug Evans2-1/+24
From-SVN: r155079
2009-11-26configure.ac (AC_CHECK_FUNCS): Sort into alphabetical order.Ben Elliston3-18/+37
* configure.ac (AC_CHECK_FUNCS): Sort into alphabetical order. * configure: Regenerate. From-SVN: r154660
2009-11-25* functions.texi: Rebuild.Ben Elliston2-6/+23
From-SVN: r154546
2009-11-25README: Mention changes to Makefile.in and functions.texi.Manuel López-Ibáñez3-3/+15
* README: Mention changes to Makefile.in and functions.texi. * gather-docs: Mention 'make stamp-functions' in the header. Co-Authored-By: Ben Elliston <bje@au.ibm.com> From-SVN: r154545
2009-11-23pex-unix.c (pex_child_error): Improve warning avoidance by checking the ↵Ben Elliston2-2/+11
results of write(3) and exiting with... * pex-unix.c (pex_child_error): Improve warning avoidance by checking the results of write(3) and exiting with -2 if any write returns a negative value. Co-Authored-By: Ian Lance Taylor <iant@google.com> From-SVN: r154431
2009-11-22dyn-string.c (dyn_string_append_char): Fix typo in comment.Steve Ward2-1/+5
2009-11-22 Steve Ward <planet36@gmail.com> * dyn-string.c (dyn_string_append_char): Fix typo in comment. From-SVN: r154425
2009-11-20pex-unix.c (pex_child_error): Define writeerr macro to avoid unused result ↵Ben Elliston2-1/+8
warnings from write(3) calls. * pex-unix.c (pex_child_error): Define writeerr macro to avoid unused result warnings from write(3) calls. Undefine writeerr after all uses. From-SVN: r154344
2009-10-08argv.c (consume_whitespace): New function.Daniel Gutson3-12/+80
2009-10-08 Daniel Gutson <dgutson@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> Pedro Alves <pedro@codesourcery.com> libiberty/ * argv.c (consume_whitespace): New function. (only_whitespace): New function. (buildargv): Always use ISSPACE by calling consume_whitespace. (expandargv): Skip empty files. Do not stop at the first empty argument (calling only_whitespace).. * testsuite/test-expandargv.c: (test_data): Test empty lines and empty arguments. (run_tests): Fix false positives due to shorter arguments. Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com> Co-Authored-By: Pedro Alves <pedro@codesourcery.com> From-SVN: r152560
2009-10-01regex.c (byte_re_match_2_internal): Split declaration and assignment to ↵Martin Thuresson2-2/+10
avoid -Wc++-compat warning due to goto. 2009-09-30 Martin Thuresson <martint@google.com> * regex.c (byte_re_match_2_internal): Split declaration and assignment to avoid -Wc++-compat warning due to goto. From-SVN: r152354
2009-09-29merge in cxx0x-lambdas-branch@152308Jason Merrill4-68/+274
From-SVN: r152318
2009-09-23(Fix missing space).Tristan Gingold1-1/+1
From-SVN: r152062
2009-09-23cplus-dem.c (ada_demangle): Ensure demangled is freed.Matthew Gingell2-1/+8
2009-09-23 Matthew Gingell <gingell@adacore.com> * cplus-dem.c (ada_demangle): Ensure demangled is freed. From-SVN: r152060
2009-09-22choose-temp.c: Include unistd.h for mingw targets.Ozkan Sezer2-0/+8
2009-09-22 Ozkan Sezer <sezeroz@gmail.com> * choose-temp.c: Include unistd.h for mingw targets. From-SVN: r152029
2009-09-16* hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.Rainer Orth2-0/+7
From-SVN: r151739
2009-09-15config.h-vms (intptr_t): Define to compile hashtab.cTristan Gingold2-0/+7
2009-09-15 Tristan Gingold <gingold@adacore.com> * config.h-vms (intptr_t): Define to compile hashtab.c From-SVN: r151716
2009-09-04re PR target/39065 (libiberty hashtab.c:hash_pointer() needs intptr_t)Ozkan Sezer4-28/+90
2009-09-04 Ozkan Sezer <sezeroz@gmail.com> PR target/39065 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T. * config.in: Regenerated. * configure: Regenerated. From-SVN: r151423
2009-09-03re PR target/39065 (libiberty hashtab.c:hash_pointer() needs intptr_t)Ozkan Sezer5-1/+25
2009-09-03 Ozkan Sezer <sezeroz@gmail.com> PR target/39065 * configure.ac: Also check for intptr_t. * config.h.in: Regenerated. * configure: Regenerated. * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t instead of of long. From-SVN: r151386
2009-09-02(Reflect changes from binutils):Tristan Gingold4-172/+49
2009-09-02 Tristan Gingold <gingold@adacore.com> * vmsbuild.com: Removed as unused and superceeded by makefile.vms. * makefile.vms: Ported to Itanium VMS. Remove useless targets and dependencies. Remove unused FORMAT variable. * configure.com: New file to create build.com DCL script for Itanium VMS or Alpha VMS. From-SVN: r151333
2009-08-24Update AC_PREREQ entries to 2.64Ralf Wildenhues2-1/+5
/: * configure.ac (AC_PREREQ): Bump to 2.64. intl/: * configure.ac (AC_PREREQ): Bump to 2.64. libdecnumber/: * configure.ac (AC_PREREQ): Bump to 2.64. libiberty/: * configure.ac (AC_PREREQ): Bump to 2.64. libjava/classpath/: * configure.ac (AC_PREREQ): Bump to 2.64. libjava/: * configure.ac (AC_PREREQ): Bump to 2.64. libjava/libltdl/: * configure.ac (AC_PREREQ): Bump to 2.64. Remove FIXME. libssp/: * configure.ac (AC_PREREQ): Bump to 2.64. libobjc/: * configure.ac (AC_PREREQ): Bump to 2.64. libstdc++-v3/: * configure.ac (AC_PREREQ): Bump to 2.64. libada/: * configure.ac (AC_PREREQ): Bump to 2.64. libgcc/: * configure.ac (AC_PREREQ): Bump to 2.64. libgfortran/: * configure.ac (AC_PREREQ): Bump to 2.64. boehm-gc/: * configure.ac (AC_PREREQ): Bump to 2.64. gnattools/: * configure.ac (AC_PREREQ): Bump to 2.64. gcc/: * configure.ac (AC_PREREQ): Bump to 2.64. fixincludes/: * configure.ac (AC_PREREQ): Bump to 2.64. libmudflap/: * configure.ac (AC_PREREQ): Bump to 2.64. zlib/: * configure.ac (AC_PREREQ): Bump to 2.64. libffi/: * configure.ac (AC_PREREQ): Bump to 2.64. libcpp/: * configure.ac (AC_PREREQ): Bump to 2.64. libgomp/: * configure.ac (AC_PREREQ): Bump to 2.64. From-SVN: r151059
2009-08-23re PR rtl-optimization/10536 (Linux kernel miscompiled on s390)H.J. Lu2-27/+7
2009-08-23 H.J. Lu <hongjiu.lu@intel.com> PR ld/10536 * Makefile.in (install-html-recursive): Removed. From-SVN: r151037
2009-08-22Regenerate tree using Autoconf 2.64 and Automake 1.11.Ralf Wildenhues3-6898/+4329
config/: * override.m4 (_GCC_AUTOCONF_VERSION): Bump to 2.64. : * configure: Regenerate. intl/: * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. libiberty/: * config.in: Regenerate. * configure: Regenerate. boehm-gc/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. * include/Makefile.in: Regenerate. * include/gc_config.h.in: Regenerate. fixincludes/: * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. gcc/: * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate. libgcc/: * configure: Regenerate. gnattools/: * configure: Regenerate. libada/: * configure: Regenerate. libcpp/: * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate. libdecnumber/: * aclocal.m4: Regenerate. * configure: Regenerate. * config.in: Regenerate. libffi/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. * fficonfig.h.in: Regenerate. * include/Makefile.in: Regenerate. * man/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. libgfortran/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. libgomp/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * testsuite/Makefile.in: Regenerate. libjava/classpath/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. * doc/api/Makefile.in: Regenerate. * examples/Makefile.in: Regenerate. * external/Makefile.in: Regenerate. * external/jsr166/Makefile.in: Regenerate. * external/relaxngDatatype/Makefile.in: Regenerate. * external/sax/Makefile.in: Regenerate. * external/w3c_dom/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * include/config.h.in: Regenerate. * lib/Makefile.in: Regenerate. * native/Makefile.in: Regenerate. * native/fdlibm/Makefile.in: Regenerate. * native/jawt/Makefile.in: Regenerate. * native/jni/Makefile.in: Regenerate. * native/jni/classpath/Makefile.in: Regenerate. * native/jni/gconf-peer/Makefile.in: Regenerate. * native/jni/gstreamer-peer/Makefile.in: Regenerate. * native/jni/gtk-peer/Makefile.in: Regenerate. * native/jni/java-io/Makefile.in: Regenerate. * native/jni/java-lang/Makefile.in: Regenerate. * native/jni/java-math/Makefile.in: Regenerate. * native/jni/java-net/Makefile.in: Regenerate. * native/jni/java-nio/Makefile.in: Regenerate. * native/jni/java-util/Makefile.in: Regenerate. * native/jni/midi-alsa/Makefile.in: Regenerate. * native/jni/midi-dssi/Makefile.in: Regenerate. * native/jni/native-lib/Makefile.in: Regenerate. * native/jni/qt-peer/Makefile.in: Regenerate. * native/jni/xmlj/Makefile.in: Regenerate. * native/plugin/Makefile.in: Regenerate. * resource/Makefile.in: Regenerate. * scripts/Makefile.in: Regenerate. * tools/Makefile.in: Regenerate. libjava/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * include/config.h.in: Regenerate. * testsuite/Makefile.in: Regenerate. libjava/libltdl/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config-h.in: Regenerate. * configure: Regenerate. libmudflap/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * testsuite/Makefile.in: Regenerate. libobjc/: * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. libssp/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. libstdc++-v3/: * Makefile.in: Regenerate. * acinclude.m4: Regenerate. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * libsupc++/Makefile.in: Regenerate. * po/Makefile.in: Regenerate. * python/Makefile.in: Regenerate. * src/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. zlib/: * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r151014
2009-07-30Makefile.in (AUTOCONF, [...]): New variables.Ralf Wildenhues2-0/+15
fixincludes/ * Makefile.in (AUTOCONF, AUTOHEADER, ACLOCAL, ACLOCAL_AMFLAGS): New variables. ($(srcdir)/configure, $(srcdir)/config.h.in, $(srcdir)/aclocal.m4): Use them. gcc/ * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps): New variables. ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules. (AUTOHEADER): New variable. ($(srcdir)/cstamp-h.in): Use it. gnattools/ * Makefile.in (AUTOCONF, configure_deps): New variables. ($(srcdir)/configure): Use them. libada/ * Makefile.in (AUTOCONF, configure_deps): New variables. ($(srcdir)/configure)): Use them. Also depend on multi.m4. libgcc/ * configure.ac: Add snippet for maintainer-mode. * configure: Regenerate. * Makefile.in (AUTOCONF, configure_deps): New variables. ($(srcdir)/configure)): New rule, active only with maintainer mode turned on. libiberty/ * Makefile.in (AUTOCONF, configure_deps): New variables. ($(srcdir)/configure): New rule, active only in maintainer mode. libobjc/ * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps): New variables. ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules. intl/ * Makefile.in (aclocal_deps): New variable. ($(srcdir)/aclocal.m4): Use it, for portable makefile syntax. libdecnumber/ * Makefile.in (aclocal_deps): New variable. ($(srcdir)/aclocal.m4): Use it, for portable makefile syntax. From-SVN: r150277
2009-07-29make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.Douglas B Rupp2-1/+10
* make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS. From-SVN: r150221
2009-07-27pex-unix.c (vfork): Remove VMS specific definition (get from header file ↵Douglas B Rupp2-7/+43
instead). * pex-unix.c (vfork): Remove VMS specific definition (get from header file instead). (to_ptr32): New function. (pex_unix_exec_child): Use it. From-SVN: r150130
2009-07-25re PR bootstrap/40854 (Conflicting crc32 functions in libiberty and zlib)Ian Lance Taylor2-1/+19
include/: PR bootstrap/40854 * libiberty.h (xcrc32): Rename from crc32. libiberty/: PR bootstrap/40854 * crc32.c (xcrc32): Rename from crc32. From-SVN: r150075
2009-07-24crc32.c: New file.Ian Lance Taylor4-17/+217
libiberty/: * crc32.c: New file. * Makefile.in: Rebuild dependencies. (CFILES): Add crc32.c. (REQUIRED_OFILES): Add ./crc32.o. * functions.texi: Rebuild. include/: * libiberty.h (crc32): Declare. From-SVN: r150067
2009-07-17demangle.h (enum demangle_component_type ↵Jan Kratochvil2-18/+52
<DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) (enum demangle_component_type <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS>): New. include 2009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> * demangle.h (enum demangle_component_type <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) (enum demangle_component_type <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS>): New. libiberty 2009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. (d_demangle_callback): The variable type is now declared as enum. Replace parser of _GLOBAL_ symbols by a d_make_comp call. From-SVN: r149756
2009-06-21hashtab.c (htab_traverse): Don't call htab_expand for nearly empty hashtabs ↵Jakub Jelinek2-2/+8
with sizes 7, 13 or 31. * hashtab.c (htab_traverse): Don't call htab_expand for nearly empty hashtabs with sizes 7, 13 or 31. From-SVN: r148759
2009-06-16re PR fortran/10197 (direct acces files not unformatted by default)Nick Clifton2-5/+11
PR 10197 * testsuite/test-demangle.c: Rename getline to get_line to avoid conflicts with system function of the same name. From-SVN: r148526
2009-05-30snprintf.c: Doc fix.Eli Zaretskii3-14/+24
* snprintf.c: Doc fix. * vsnprintf.c: Doc fix. From-SVN: r147998
2009-05-29pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.Kai Tietz2-0/+9
2009-05-29 Kai Tietz <kai.tietz@onevision.com> * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false. From-SVN: r147984
2009-05-29fibheap.c (fibheap_replace_key_data): Make sure we don't early out when ↵Michael Matz2-1/+15
forcing the minimum. * fibheap.c (fibheap_replace_key_data): Make sure we don't early out when forcing the minimum. (fibheap_delete_node): Assert that we managed to force the minimum. From-SVN: r147968
2009-05-25makefile.vms: New file to compile gas on VMS.Tristan Gingold3-18/+32
2009-05-25 Tristan Gingold <gingold@adacore.com> * makefile.vms: New file to compile gas on VMS. * configure.com: New file to do configuration on VMS with DCL. From-SVN: r147847
2009-05-19cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.Ian Lance Taylor2-4/+10
* cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug. (cplus_demangle_fill_dtor): Likewise. Co-Authored-By: Ben Elliston <bje@au.ibm.com> From-SVN: r147699
2009-05-17pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing standard ↵Julian Brown2-8/+14
handles (stdin, stdout, stderr) in parent. libiberty/ * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing standard handles (stdin, stdout, stderr) in parent. From-SVN: r147634
2009-04-29pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.Julian Brown2-6/+35
* pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT. (pex_win32_exec_child): Ensure each process has only one handle open on pipe endpoints. Close standard input after creating child for symmetry with standard output/standard error. From-SVN: r146953
2009-04-25Makefile.in (needed-list): Target removed (not used in GCC 3.0 and later).Eli Zaretskii2-19/+9
* Makefile.in (needed-list): Target removed (not used in GCC 3.0 and later). All references deleted. (mostlyclean): Remove references to needed.awk and needed2.awk. From-SVN: r146793
2009-04-14configure.ac (setobjs, msdosdjgpp): Move a-priori setting of existing and ↵Eli Zaretskii3-37/+83
required library functions to... * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of existing and required library functions to with_target_subdir section, so that the native build does detect them at configure time. * configure: Regenerated. From-SVN: r146056
2009-04-13re PR target/39397 (libiberty/pex-*, inconsistent/incorrect pid_t usage)Ozkan Sezer6-12/+23
2009-04-13 Ozkan Sezer <sezeroz@gmail.com> PR target/39397 * pex-common.h (struct pex_obj): Store pid values as pid_t, not as long (members *children and (*wait)) * pex-common.c (pex_run_in_environment): Likewise. * pex-win32.c (pex_win32_wait): Return pid_t and properly check returned pid value. * pex-djgpp.c (pex_djgpp_wait): Return pid_t. * pex-msdos.c (pex_msdos_wait): Likewise. From-SVN: r146001
2009-04-08configure.ac: Fix Linux/MIPS matching rule.Arnaud Patard3-2/+7
2009-04-07 Arnaud Patard <apatard@mandriva.com> * libiberty/configure.ac: Fix Linux/MIPS matching rule. * libiberty/configure: Regenerate. From-SVN: r145726
2009-03-27memmem.c: New file, from gnulib.Ian Lance Taylor7-8/+109
* memmem.c: New file, from gnulib. * configure.ac: Add memmem to list of functions provided if they are not available on the host. * Makefile.in: Rebuild dependencies. (CFILES): Add memmem.c. (CONFIGURED_OFILES): Add memmem.o. * configure, config.in, functions.texi: Rebuild. From-SVN: r145139
2009-03-23pt.c (make_fnparm_pack): Split out from...Jason Merrill3-6/+36
* gcc/cp/pt.c (make_fnparm_pack): Split out from... (instantiate_decl): ...here. (tsubst_pack_expansion): Handle being called in a late-specified return type. * libiberty/cp-demangle.c (d_expression): Handle pack expansion. (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM. (d_print_subexpr): Don't wrap function parms in (). (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle not finding a pack. From-SVN: r145013
2009-03-17decl.c (grokfndecl): Set DECL_CONTEXT on parms.Jason Merrill3-15/+86
cp/: * decl.c (grokfndecl): Set DECL_CONTEXT on parms. (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms. * pt.c (check_explicit_specialization): Likewise. (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a local specialization. * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name. * decl2.c (parm_index): New fn. * semantics.c (finish_decltype_type): Don't use describable_type. * mangle.c (write_expression): Likewise. Mangle ALIGNOF_EXPR. Give a sorry for unsupported codes rather than crash. Mangle conversions with other than 1 operand. New mangling for PARM_DECL. * operators.def (ALIGNOF_EXPR): Mangle as az. * include/demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_FUNCTION_PARAM. * libiberty/cp-demangle.c (d_make_function_param): new fn. (cplus_demangle_mangled_name): Work around abi v2 bug. (d_expr_primary): Likewise. (cplus_demangle_operators): Add alignof ops. (d_expression): Handle function parameters and conversions with other than 1 operand. (d_print_comp): Handle function parameters. Fix bug with function used in type of function. From-SVN: r144924
2009-02-22make-temp-file.c (<windows.h>): Include on Windows.Mark Mitchell2-31/+61
* make-temp-file.c (<windows.h>): Include on Windows. (choose_tmpdir): On Windows, use GetTempPath. From-SVN: r144375
2009-01-18configure.ac (funcs, [...]): Don't munge on Cygwin, as it no longer shares ↵Dave Korn3-53/+6
libiberty object files. * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin, as it no longer shares libiberty object files. * configure: Regenerated. From-SVN: r143487
2009-01-07* cp-demangle.c (d_expression): Remove mangling for zero-op casts.Jason Merrill2-12/+6
From-SVN: r143161
2009-01-06cp-demangle.c (cplus_demangle_type): Return NULL if the character following ↵Ben Elliston2-0/+8
a 'D' cannot be recognised. * cp-demangle.c (cplus_demangle_type): Return NULL if the character following a 'D' cannot be recognised. From-SVN: r143098
2008-12-18re PR c++/38561 (Revision 142799 may cause C++ demangle failures)Jason Merrill2-11/+20
PR c++/38561 * cp-demangle.c (d_expression, d_print_comp): Revert cast changes. From-SVN: r142814
2008-12-17semantics.c (describable_type): New function.Jason Merrill2-15/+26
gcc/cp: * semantics.c (describable_type): New function. (finish_decltype_type): Use it for dependent exprs. * cp-tree.h: Declare it. * mangle.c (write_type) [DECLTYPE_TYPE]: Set skip_evaluation. (write_expression): If skip_evaluation, use type stubs. * tree.c (cp_tree_equal): Handle PARM_DECLs from different declarations of a function. * init.c (build_new): Do auto deduction if type is describable. * decl.c (cp_finish_decl): Likewise. * parser.c (cp_parser_omp_for_loop): Likewise. gcc/testsuite: * g++.dg/cpp0x/auto6.C: Test more stuff. * g++.dg/cpp0x/auto12.C: New test. libiberty: * cp-demangle.c (d_expression): Handle rvalue stubs too. [DEMANGLE_COMPONENT_CAST]: Update mangling. (d_print_comp): Avoid extra ", " with empty template argument packs. Remove handling for obsolete T() mangling. From-SVN: r142799
2008-12-10re PR c++/35319 (ICE throwing fixed-point types)Jason Merrill2-0/+37
PR c++/35319 * mangle.c (write_builtin_type): Add mangling for decimal floating point and fixed point types. (write_type): Pass FIXED_POINT_TYPE along. * cp-demangle.c (cplus_demangle_type): Support fixed-point types. (d_print_comp, d_dump): Likewise. From-SVN: r142661