Skip to content
Snippets Groups Projects
  1. Nov 21, 2009
    • Andy Hutchinson's avatar
      Nit. · 36fd5b87
      Andy Hutchinson authored
      From-SVN: r154409
      36fd5b87
    • Eric Botcazou's avatar
      s-osinte-linux.ads (struct_timeval, [...]): Delete. · 435697aa
      Eric Botcazou authored
      
      2009-11-21  Eric Botcazou  <ebotcazou@adacore.com>
                  Laurent GUERBY  <laurent@guerby.net>
      
              * s-osinte-linux.ads (struct_timeval, To_Duration, To_Timeval,
              gettimeofday): Delete.
              * s-osinte-posix.adb (To_Duration, To_Timeval): Delete.
              * s-osprim-posix.adb (struct_timezone, struct_timeval, 
              gettimeofday): Delete.
              (Clock): Use cal.c timeval_to_duration.
              * s-taprop-linux.adb (Monotonic_Clock): Likewise.
      
      
      Co-Authored-By: default avatarLaurent GUERBY <laurent@guerby.net>
      
      From-SVN: r154407
      435697aa
    • Ben Elliston's avatar
      gengtype-lex.l: Enable noinput flex option. · e81f2ecf
      Ben Elliston authored
      	* gengtype-lex.l: Enable noinput flex option.
      	(YY_NO_INPUT): Remove define.
      
      From-SVN: r154406
      e81f2ecf
    • Andreas Krebbel's avatar
      vrp47.c: Fix target check. · 3d53a245
      Andreas Krebbel authored
      2009-11-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* gcc.dg/tree-ssa/vrp47.c: Fix target check.
      
      From-SVN: r154404
      3d53a245
    • Jason Merrill's avatar
      PR c++/9050, DR 147, DR 318 · abd5730b
      Jason Merrill authored
      	PR c++/9050, DR 147, DR 318
      	* parser.c (cp_parser_lookup_name): If the name matches the explicit
      	class scope, we're naming the constructor.
      	(cp_parser_constructor_declarator_p): Just use cp_parser_unqualified_id
      	if we have a nested-name-specifier.
      	(cp_parser_direct_declarator): Handle getting an overload set as a
      	constructor declarator.
      	(cp_parser_unqualified_id): Avoid looking up the constructor when
      	naming the destructor.
      	(cp_parser_diagnose_invalid_type_name): Give good
      	diagnostic for improper use of constructor as template.
      	* typeck.c (finish_class_member_access_expr): Give good diagnostic
      	about calling constructor.
      
      	* error.c (dump_aggr_type): Don't print A::A for injected-class-name.
      
      From-SVN: r154403
      abd5730b
    • Alexandre Oliva's avatar
      tree-ssa.c (find_released_ssa_name): Handle NULL wi. · 42a06e46
      Alexandre Oliva authored
      * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
      (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
      (insert_debug_temps_for_defs): Handle PHI nodes.
      * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
      SSA names.
      
      From-SVN: r154402
      42a06e46
    • Alexandre Oliva's avatar
      tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs after remove_phi_node. · b70fdfe4
      Alexandre Oliva authored
      * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
      after remove_phi_node.
      
      From-SVN: r154401
      b70fdfe4
    • Alexandre Oliva's avatar
      re PR tree-optimization/42078 (ICE in gimple_assign_set_rhs_code) · 21cf7180
      Alexandre Oliva authored
      gcc/ChangeLog:
      PR tree-optimization/42078
      * gimple.h (gimple_replace_lhs): New declaration.
      * gimple.c (gimple_replace_lhs): New function.
      * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
      modifying the call.
      gcc/testsuite/ChangeLog:
      PR tree-optimization/42078
      * gcc.dg/pr42078.c: New test.
      
      From-SVN: r154400
      21cf7180
    • Sebastian Pop's avatar
      Remove use of reg_mentioned_p. · 04482dd1
      Sebastian Pop authored
      2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
      	(xop_mulv2div2di3_low): Same.
      	(*xop_pmacsdqh_mem): Same.
      
      From-SVN: r154399
      04482dd1
    • Andy Hutchinson's avatar
      re PR c/42114 (c99-stdint test fails for ptrdiff test) · 842dffa5
      Andy Hutchinson authored
      PR Testsuite/42114
      * gcc-dg/c99-stdint-1.c: Condition test for target without signal.h. XFAIL ptrdiff range test for avr.
      * gcc-dg/c99-stdint-2.c: XFAIL for avr target.
      * gcc-dg/c99-stdint-5.c: Condition test for target without signal.h.
      * gcc-dg/c99-stdint-6.c: Ditto.
      
      From-SVN: r154392
      842dffa5
    • GCC Administrator's avatar
      Daily bump. · b0460291
      GCC Administrator authored
      From-SVN: r154391
      b0460291
  2. Nov 20, 2009
    • Richard Henderson's avatar
      i386-builtin-types.awk: New file. · fe40daa0
      Richard Henderson authored
      	* config/i386/i386-builtin-types.awk: New file.
      	* config/i386/i386-builtin-types.def: New file.
      	* config/i386/t-i386: Use them to build i386-builtin-types.inc.
      	* config/i386/i386.c: Include it.
      	(ix86_builtin_type_tab, ix86_get_builtin_type): New.
      	(ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
      	(struct builtin_isa): Remove GTY marker.  Replace tree type with
      	ix86_builtin_func_type; add set_and_not_built_p.
      	(def_builtin): Change type parameter to tcode; use
      	ix86_get_builtin_func_type; update all callers.  Accept zero mask
      	to mean the builtin is unconditionally available.
      	(ix86_add_new_builtins): Use set_and_not_built_p instead of type
      	being set to NULL.
      	(enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
      	Update some users to rationalized enumeration codes from new include.
      	(enum multi_arg_type): Remove.  Replace all enumeration values
      	with defines to new ix86_builtin_func_type.
      	(ix86_init_mmx_sse_builtins): Don't build any types here.  Defer
      	all type resolution to def_builtin.
      	(ix86_init_builtin_types): Split out from ...
      	(ix86_init_builtins): ... here.  Use ix86_get_builtin_func_type.
      
      From-SVN: r154388
      fe40daa0
    • Michael Meissner's avatar
      Undo part of 2009-10-23 change · 497d3834
      Michael Meissner authored
      From-SVN: r154380
      497d3834
    • Simon Martin's avatar
      re PR c++/38646 (ICE with invalid specialization of variadic template) · 2282976b
      Simon Martin authored
      gcc/cp/
      
      2009-11-20  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/38646
      	* pt.c (process_partial_specialization): Do not turn wrongly located
      	parameter pack arguments into error_mark_node.
      	Split too long lines into two.
      
      gcc/testsuite/
      
      2009-11-20  Simon Martin  <simartin@users.sourceforge.net>
      
      	PR c++/38646
      	* g++.dg/cpp0x/pr38646.C: New test.
      
      From-SVN: r154378
      2282976b
    • 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
  3. 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
Loading