Skip to content
Snippets Groups Projects
  1. Nov 20, 2009
    • Jonathan Wakely's avatar
      re PR libstdc++/42019 (shared_ptr can not be used with -fno-rtti) · 70826946
      Jonathan Wakely authored
      2009-11-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	PR libstdc++/42019
      	* include/tr1/shared_ptr.h: Only use typeid when RTTI is enabled.
      	* include/bits/shared_ptr_base.h: Likewise.
      	* include/bits/shared_ptr.h: Likewise.
      	* testsuite/tr1/2_general_utilities/shared_ptr/misc/42019.cc: New.
      	* testsuite/20_util/shared_ptr/misc/42019.cc: New.
      
      From-SVN: r154377
      70826946
    • Paul Brook's avatar
      invoke.texi: Document ARM -mcpu=cortex-a5. · d5473643
      Paul Brook authored
      2009-11-20  Paul Brook  <paul@codesourcery.com>
      
      	gcc/
      	* doc/invoke.texi: Document ARM -mcpu=cortex-a5.
      	* config/arm/arm-cores.def: Add cortex-a5.
      	* config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
      	* config/arm/arm-tune.md: Regenerate.
      
      From-SVN: r154375
      d5473643
    • Olga Golovanevsky's avatar
      re PR tree-optimization/39960 (struct-reorg is broken) · eed8fcad
      Olga Golovanevsky authored
      2009-11-17 Olga Golovanevsky <olga@il.ibm.com>
      
      	PR middle-end/39960
      	* ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
      	(ref_pos): New field in structure.
      	(insert_new_var_in_stmt): New function.
      
      From-SVN: r154374
      eed8fcad
    • Rainer Orth's avatar
      config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint. · 25bcd7ea
      Rainer Orth authored
      	gcc:
      	* config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
      	* config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
      	(INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
      	(UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
      	(INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
      	(INT_LEAST64_TYPE): Define.
      	(UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
      	UINT_LEAST64_TYPE): Define.
      	(INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
      	INT_FAST64_TYPE): Define.
      	(UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
      	UINT_FAST64_TYPE): Define.
      	(INTPTR_TYPE, UINTPTR_TYPE): Define.
      
      	gcc/testsuite:
      	* gcc.dg/c99-stdint-6.c: Set dg-options for alpha*-dec-osf5*.
      	Wrap *int_least*_t tests in !NO_LEAST_TYPES.
      	Wrap *intmax_t tests in !NO_MAX_TYPES.
      
      From-SVN: r154373
      25bcd7ea
    • Julian Brown's avatar
      arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM specially for Thumb-1. · 2ee67fbb
      Julian Brown authored
      	gcc/
      	* config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
      	specially for Thumb-1.
      	(ASM_OUTPUT_REG_POP): Likewise.
      
      From-SVN: r154372
      2ee67fbb
    • Paolo Carlini's avatar
      re PR c++/42060 ([c++0x] ICE throwing array with initializer list) · 10d3a72a
      Paolo Carlini authored
      cp/
      2009-11-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/42060
      	* except.c (build_throw): Check the tree returned by
      	decay_conversion for error_mark_node.
      
      testsuite/
      2009-11-20  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/42060
      	* g++.dg/cpp0x/initlist28.C: New.
      
      From-SVN: r154371
      10d3a72a
    • Janus Weil's avatar
      intrinsic.texi (C_F_PROCPOINTER): Remove obsolete comment. · 2848dbd3
      Janus Weil authored
      2009-11-20  Janus Weil  <janus@gcc.gnu.org>
      
      	* intrinsic.texi (C_F_PROCPOINTER): Remove obsolete comment.
      
      From-SVN: r154370
      2848dbd3
    • H.J. Lu's avatar
      Remove testsuite/ from pathname. · fbbb752e
      H.J. Lu authored
      From-SVN: r154365
      fbbb752e
    • H.J. Lu's avatar
      proc_ptr_comp_23.f90: Add a missing space. · aeb1da2e
      H.J. Lu authored
      2009-11-20  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* gfortran.dg/proc_ptr_comp_23.f90: Add a missing space.
      
      From-SVN: r154364
      aeb1da2e
    • Andreas Krebbel's avatar
      vrp47.c: Skip on S/390. · b5308c02
      Andreas Krebbel authored
      2009-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* gcc.dg/tree-ssa/vrp47.c: Skip on S/390.
      
      From-SVN: r154363
      b5308c02
    • Paolo Carlini's avatar
      compatibility-c++0x.cc (_Fnv_hash<4>, [...]): Add. · 3d68714e
      Paolo Carlini authored
      2009-11-21  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* src/compatibility-c++0x.cc (_Fnv_hash<4>, _Fnv_hash<8>): Add.
      
      From-SVN: r154361
      3d68714e
    • Shujing Zhao's avatar
      re PR c++/29017 (%s substituted with different untranslated words can't be properly translated) · c86818cf
      Shujing Zhao authored
      /cp
      2009-11-20  Shujing Zhao  <pearly.zhao@oracle.com>
      
      	PR c++/29017
      	* cp-tree.h (composite_pointer_operation): New type.
      	(composite_pointer_type): Adjust prototype with new argument.
      	* typeck.c (composite_pointer_type): Accept
      	composite_pointer_operation as argument and emit diagnostic to be
      	visible to gettext and checked at compile time.
      	(composite_pointer_type_r): Likewise.
      	(common_pointer_type): Update call to composite_pointer_type.
      	(cp_build_binary_op): Likewise.
      	* call.c (build_conditional_expr): Likewise.
      
      /testsuite
      2009-11-20  Shujing Zhao  <pearly.zhao@oracle.com>
      
      	* g++.old-deja/g++.jason/rfg20.C: Make expected dg-error strings
      	explicit.
      	* g++.old-deja/g++.rfg/00321_01-.C: Likewise.
      	* g++.old-deja/g++.rfg/00324_02-.C: Likewise.
      	* g++.old-deja/g++.law/typeck1.C: Likewise.
      	* g++.old-deja/g++.bugs/900324_02.C: Likewise.
      	* g++.dg/conversion/ptrmem9.C: Likewise.
      	* g++.dg/expr/cond2.C: Likewise.
      
      From-SVN: r154360
      c86818cf
    • Arnaud Charlet's avatar
      macro.c (enter_macro_context): Call cb.used callback if defined. · 3de8a540
      Arnaud Charlet authored
      	* macro.c (enter_macro_context): Call cb.used callback if defined.
      	* directives.c (do_idef, do_ifndef): Ditto.
      	* include/cpplib.h (struct cpp_callbacks): Add used callback.
      
      From-SVN: r154359
      3de8a540
    • Paul Thomas's avatar
      re PR fortran/42104 ([F03] runtime segfault with procedure pointer component) · 9f29c05e
      Paul Thomas authored
      
      2009-11-20  Paul Thomas  <pault@gcc.gnu.org>
      	    Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/42104
      	* trans-expr.c (gfc_conv_procedure_call): If procedure pointer
      	component call, use the component's 'always_explicit' attr
      	for array arguments.
      
      2009-11-20  Paul Thomas  <pault@gcc.gnu.org>
      	    Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/42104
      	* gfortran.dg/proc_ptr_comp_23.f90 : New test.
      
      
      Co-Authored-By: default avatarJanus Weil <janus@gcc.gnu.org>
      
      From-SVN: r154358
      9f29c05e
    • Jason Merrill's avatar
      re PR c++/42115 (r154072 & r154073 break build of ppl, non-placement deallocation issue) · 5cd25f07
      Jason Merrill authored
      	PR c++/42115
      	* call.c (build_op_delete_call): Don't complain about using
      	op delete (void *, size_t) for placement delete if there's an
      	op delete (void *).
      
      From-SVN: r154357
      5cd25f07
    • Jason Merrill's avatar
      DR 176 permissiveness · 98fba7f7
      Jason Merrill authored
      	DR 176 permissiveness
      gcc/
      	* dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
      gcc/cp/
      	* class.c (build_self_reference): Call set_underlying_type.
      	* decl.c (check_elaborated_type_specifier): Don't complain about
      	injected-class-name.
      	(type_is_deprecated): Use TYPE_MAIN_VARIANT.
      	* pt.c (convert_template_argument): Handle injected-class-name used
      	as template template argument.
      	* typeck2.c (abstract_virtuals_error): Use TYPE_MAIN_VARIANT.
      
      From-SVN: r154354
      98fba7f7
    • GCC Administrator's avatar
      Daily bump. · 2fc9ae76
      GCC Administrator authored
      From-SVN: r154353
      2fc9ae76
  2. Nov 19, 2009
    • Ben Elliston's avatar
      * config.guess: Update from upstream sources. · 5ca0106a
      Ben Elliston authored
      From-SVN: r154349
      5ca0106a
    • Andy Hutchinson's avatar
      pr40204.c: Test only for int32 target. · 7787fb8c
      Andy Hutchinson authored
      *gcc.c-torture/compile/pr40204.c: Test only for int32 target.
      *gcc.c-torture/compile/pr41181.c: Skip test for avr target.
      
      From-SVN: r154346
      7787fb8c
    • Andy Hutchinson's avatar
      raw-string-1.c: Skip test for avr target. · de2b7132
      Andy Hutchinson authored
      * gcc-dg/raw-string-1.c: Skip test for avr target.
      * gcc-dg/utf-array-short-wchar.c: Ditto.
      * gcc-dg/utf-array.c: Ditto.
      * gcc-dg/utf8-2.c: Ditto.
      
      From-SVN: r154345
      de2b7132
    • Ben Elliston's avatar
      pex-unix.c (pex_child_error): Define writeerr macro to avoid unused result... · c22c44ba
      Ben Elliston authored
      pex-unix.c (pex_child_error): Define writeerr macro to avoid unused result 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
      c22c44ba
    • Janne Blomqvist's avatar
      Move includes after include guards · 872d2094
      Janne Blomqvist authored
      From-SVN: r154343
      872d2094
    • Rafael Espindola's avatar
      [multiple changes] · e4d5031c
      Rafael Espindola authored
      2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
      
      	* g++.dg/plugin/selfassign.c: Include plugin-version.h.
      	(plugin_init): Pass correct version to plugin_default_version_check.
      	* gcc.dg/plugin/ggcplug.c: Include plugin-version.h.
      	(plugin_init): Pass correct version to plugin_default_version_check.
      	* gcc.dg/plugin/selfassign.c: Include plugin-version.h.
      	(plugin_init): Pass correct version to plugin_default_version_check.
      
      
      2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
                  Rafael Avila de Espindola  <espindola@google.com>
      
      	* doc/plugins.texi (Plugin initialization): Added advices for
      	retrieving the version of GCC at plugin compilation and loading
      	times.
      
      From-SVN: r154342
      e4d5031c
    • Benjamin Kosnik's avatar
      pool_allocator.cc: Adjust catch blocks. · bf4967a1
      Benjamin Kosnik authored
      2009-11-19  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* src/pool_allocator.cc: Adjust catch blocks.
      	* src/bitmap_allocator.cc: Same.
      	* src/localename.cc: Same.
      	* src/ios.cc: Same.
      
      	* libsupc++/cxxabi-forced.h: Adjust comments, markup.
      
      	* testsuite/util/testsuite_hooks.h (copy_constructor::copyCount):
      	Remove.
      	(copy_constructor::dtorCount): Remove.
      	* testsuite/23_containers/list/modifiers/1.h: Adjust.
      	* testsuite/23_containers/list/modifiers/2.h: Same.
      	* testsuite/23_containers/list/modifiers/3.h: Same.
      
      From-SVN: r154341
      bf4967a1
    • Basile Starynkevitch's avatar
      plugin.c (FMT_FOR_PLUGIN_EVENT): added definition. · fdabb520
      Basile Starynkevitch authored
      2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* gcc/plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
      	(dump_active_plugins): output to file everything. Use
      	internationalized dump & FMT_FOR_PLUGIN_EVENT.
      
      From-SVN: r154337
      fdabb520
    • Jason Merrill's avatar
      re PR c++/561 (std:unclear about Overloaded Function Pointer resolution) · 7bead48f
      Jason Merrill authored
      	PR c++/561
      	* decl.c (static_fn_type): Split out...
      	(revert_static_member_fn): ...from here.
      	* cp-tree.h: Declare it.
      	* class.c (resolve_address_of_overloaded_function): Use it to compare
      	pointers to member functions.
      	* typeck.c (build_static_cast_1): Call instantiate_type.
      
      From-SVN: r154336
      7bead48f
    • Paolo Carlini's avatar
      re PR libstdc++/41622 ([DR 1245] [c++0x] std::hash<std::string>::operator() copies its argument) · 4a85780b
      Paolo Carlini authored
      2009-11-19  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/41622
      	* include/bits/functional_hash.h: Implement inline the various
      	std::hash specializations, using, when appropriate, pass by
      	const ref too, per DR 1245.
      	* include/tr1_impl/functional_hash.h: Remove, move its contents...
      	* include/tr1/functional_hash.h: ... here.
      	* include/std/functional: Tweak includes.
      	* src/hash_c++0x: Rename to...
      	* src/compatibility-c++0x.cc: ... this, implementing compatibility
      	std::hash<>::operator() specializations.
      	* src/hash.cc: Do not mark specializations as throw().
      	* src/Makefile.am: Adjust.
      	* include/Makefile.am: Likewise.
      	* src/Makefile.in: Regenerate.
      	* include/Makefile.in: Likewise.
      	* testsuite/util/testsuite_api.h: Define a dummy hash for
      	NonDefaultConstructible.
      	* testsuite/23_containers/unordered_map/requirements/
      	explicit_instantiation/2.cc: Use it.
      	* testsuite/23_containers/unordered_multimap/requirements/
      	explicit_instantiation/2.cc: Likewise.
      	* testsuite/23_containers/unordered_set/requirements/
      	explicit_instantiation/2.cc: Likewise.
      	* testsuite/23_containers/unordered_multiset/requirements/
      	explicit_instantiation/2.cc: Likewise.
      
      From-SVN: r154335
      4a85780b
    • Johannes Singler's avatar
      partition.h (__parallel_partition): Correctly initialize chunk size. · d95ba652
      Johannes Singler authored
      2009-11-19  Johannes Singler  <singler@kit.edu>
      
              * include/parallel/partition.h (__parallel_partition): Correctly
              initialize chunk size.
              (__parallel_nth_element): Respect nth_element_minimal_n.  Use
              sequential nth_element as base case, instead of sequential sort.
      
      From-SVN: r154333
      d95ba652
    • Richard Guenther's avatar
      gimple.c (canonicalize_cond_expr_cond): Strip conversions around truth-valued expressions. · b66a1bac
      Richard Guenther authored
      2009-11-19  Richard Guenther  <rguenther@suse.de>
      
      	* gimple.c (canonicalize_cond_expr_cond): Strip conversions
      	around truth-valued expressions.
      	* tree.c (free_lang_data): Untangle check for LTO frontend.
      
      From-SVN: r154332
      b66a1bac
    • Rafael Avila de Espindola's avatar
      re PR bootstrap/42096 (lto.c:289:7: error: implicit declaration of function 'strtoll') · 92fa7608
      Rafael Avila de Espindola authored
      2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
      
      	PR bootstrap/42096
      	* lto-plugin.c (claim_file_handler): Print offsets in hex.
      
      2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
      
      	PR bootstrap/42096
      	* lto-elf.c (lto_elf_file_open): Use lto_parse_hex.
      	* lto.c (lto_parse_hex): New.
      	(lto_resolution_read): Use lto_parse_hex.
      	* lto.h (lto_parse_hex): New.
      
      From-SVN: r154330
      92fa7608
    • Jakub Jelinek's avatar
      tree.c (need_assembler_name_p): Use cgraph_get_node instead of cgraph_node_for_decl. · 986ad133
      Jakub Jelinek authored
      	* tree.c (need_assembler_name_p): Use cgraph_get_node instead
      	of cgraph_node_for_decl.
      	* cgraph.h (cgraph_node_for_decl): Remove prototype.
      	* cgraph.c (cgraph_node_for_decl): Remove.
      	(cgraph_get_node): Just return NULL if !cgraph_hash.
      
      From-SVN: r154329
      986ad133
    • Paul Brook's avatar
      config.gcc: Add new ARM --with-fpu options. · 1abed66b
      Paul Brook authored
      2009-11-19  Paul Brook  <paul@codesourcery.com>
      
      	gcc/
      	* config.gcc: Add new ARM --with-fpu options.
      	* doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
      	* config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
      
      From-SVN: r154328
      1abed66b
    • Janus Weil's avatar
      trans-expr.c (conv_isocbinding_procedure): New function. · 08fbe2fe
      Janus Weil authored
      2009-11-19  Janus Weil  <janus@gcc.gnu.org>
      
      	* trans-expr.c (conv_isocbinding_procedure): New function.
      	(gfc_conv_procedure_call): Move ISO_C_BINDING stuff to
      	separate function.
      
      From-SVN: r154327
      08fbe2fe
    • Tobias Burnus's avatar
      gfortran.texi (Interoperable Subroutines and Functions): Fix example. · dae5882f
      Tobias Burnus authored
      2009-11-19  Tobias Burnus  <burnus@net-b.de>
      
             * gfortran.texi (Interoperable Subroutines and Functions): Fix
             example.
      
      From-SVN: r154326
      dae5882f
    • Nick Clifton's avatar
      20091002-1_0.C: Replace -shared with -r -nostlib. · 87af78d4
      Nick Clifton authored
              * g++.dg/lto/20091002-1_0.C: Replace -shared with -r -nostlib.
              * g++.dg/lto/20081120-1_0.C: Likewise.
              * g++.dg/lto/20091002-2_0.C: Likewise.
              * g++.dg/lto/20081120-2_0.C: Likewise.
              * g++.dg/lto/20091002-3_0.C: Likewise.
              * g++.dg/lto/20081123_0.C: Likewise.
              * g++.dg/lto/20090313_0.C: Likewise.
              * g++.dg/lto/20081109-1_0.C: Likewise.
              * g++.dg/lto/20081219_0.C: Likewise.
              * g++.dg/lto/20081204-1_0.C: Likewise.
              * g++.dg/lto/20090302_0.C: Likewise.
              * g++.dg/lto/20081119-1_0.C: Likewise.
              * g++.dg/lto/20081118_0.C: Likewise.
      
      From-SVN: r154325
      87af78d4
    • Jerry DeLisle's avatar
      re PR fortran/42090 (I/O: Problems when reading partial records in formatted direct access files) · 9cfb4eba
      Jerry DeLisle authored
      2009-11-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/42090
      	* gfortran.dg/direct_io_11.f90: New test.
      
      From-SVN: r154317
      9cfb4eba
    • Jerry DeLisle's avatar
      re PR fortran/42090 (I/O: Problems when reading partial records in formatted direct access files) · 0b4d979f
      Jerry DeLisle authored
      2009-11-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/42090
      	* io/transfer.c (skip_record): Set bytes_left_subrecord to zero after
      	skipping the remaining bytes in the record.
      	(next_record_r): Call skip_record with the number of bytes_left to be
      	skipped.
      
      From-SVN: r154316
      0b4d979f
    • GCC Administrator's avatar
      Daily bump. · 271cb024
      GCC Administrator authored
      From-SVN: r154311
      271cb024
  3. Nov 18, 2009
    • Richard Guenther's avatar
      gimple.h (union gimple_statement_d): Add gsmembase member. · bb4efb4d
      Richard Guenther authored
      2009-11-18  Richard Guenther  <rguenther@suse.de>
      
      	* gimple.h (union gimple_statement_d): Add gsmembase member.
      	(gimple_vuse_op): Use gsmembase for access.
      	(gimple_vdef_op): Likewise.
      	(gimple_vuse): Likewise.
      	(gimple_vdef): Likewise.
      	(gimple_vuse_ptr): Likewise.
      	(gimple_vdef_ptr): Likewise.
      	(gimple_set_vuse): Likewise.
      	(gimple_set_vdef): Likewise.
      	* gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
      
      From-SVN: r154306
      bb4efb4d
    • H.J. Lu's avatar
      linkage.exp: Also check -m32 for i*86-*-linux*. · 76425f89
      H.J. Lu authored
      2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* gcc.misc-tests/linkage.exp: Also check -m32 for i*86-*-linux*.
      
      From-SVN: r154303
      76425f89
Loading