1. 12 Apr, 2011 31 commits
    • In gcc/: 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> · eb345401
      In gcc/:
      2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-parser.c (c_parser_initelt): Updated call to
      	objc_build_message_expr.
      	(c_parser_postfix_expression): Likewise.
      
      In gcc/c-family/:
      2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-objc.h (objc_build_message_expr): Updated prototype.
      	* stub-objc.c (objc_build_message_expr): Likewise.
      	
      In gcc/objc/:
      2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_build_message_expr): Accept two arguments
      	instead of one so that callers can simply pass the arguments
      	without having to create a temporary chain to hold them.
      
      In gcc/cp/:
      2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* parser.c (cp_parser_objc_message_expression): Updated call
      	to objc_build_message_expr.
      
      From-SVN: r172338
      Nicola Pero committed
    • In gcc/objc/: 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> · dc2dc512
      In gcc/objc/:
      2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (comp_proto_with_proto): Do not create and use
      	inefficient temporary argument lists.  Compare the arguments
      	directly.  (match_proto_with_proto): Removed; incorporated into
      	comp_proto_with_proto ().
      
      From-SVN: r172337
      Nicola Pero committed
    • ChangeLog gcc/ · a6c46762
      2011-04-12  Kai Tietz  <ktietz@redhat.com>
      
      	* config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
      	MASK_MS_BITFIELD_LAYOUT bit.
      
      ChangeLog gcc/testsuite
      
      2011-04-12  Kai Tietz  <ktietz@redhat.com>
      
      	* g++.dg/ext/bitfield2.C: Add for i?86/x86_64-*-mingw*
      	targets the additional -mno-ms-bitfields and
      	-Wno-packed-bitfield-compat options.
      	* g++.dg/ext/bitfield3.C: Likewise.
      	* g++.dg/ext/bitfield4.C: Likewise.
      	* g++.dg/ext/bitfield5.C: Likewise.
      	* gcc.dg/bitfld-15.c: Likewise.
      	* gcc.dg/bitfld-16.c: Likewise.
      	* gcc.dg/bitfld-17.c: Likewise.
      	* gcc.dg/bitfld-18.c: Likewise.
      
      From-SVN: r172336
      Kai Tietz committed
    • Call cgraph_get_node rather than cgraph_node. · d94faf0d
      This is for a recent change to the gcc middle-end.
      
      From-SVN: r172335
      Ian Lance Taylor committed
    • Remove _GNU_SOURCE from AM_CPPFLAGS · 51603205
      From-SVN: r172330
      Janne Blomqvist committed
    • combine.c (update_cfg_for_uncondjump): Instead of testing at_end assert it is always true. · b4ccfed9
      	* combine.c (update_cfg_for_uncondjump): Instead of testing at_end
      	assert it is always true.
      	(try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
      	moves.
      
      From-SVN: r172329
      Jakub Jelinek committed
    • In gcc/objc/: 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> · cf3caeaf
      In gcc/objc/:
      2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (printable_ivar_name): New.
      	(add_instance_variable): Call printable_ivar_name() when an error
      	message needs to be printed.  Do not prepare the instance variable
      	for printing unless there is an actual error.
      
      From-SVN: r172328
      Nicola Pero committed
    • In gcc/: 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com> · 0d8a2528
      In gcc/:
      2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-parser.c (c_lex_one_token): Rewritten conditional used when
      	compiling Objective-C to be more efficient.
      
      In gcc/objc/:
      2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_is_class_name, objc_is_id): For efficiency,
      	avoid calling identifier_global_value() multiple times.
      
      From-SVN: r172327
      Nicola Pero committed
    • opts-common.c (decode_cmdline_options_to_array): Remove variable argv_copied. · 06bd234a
      2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
      
      	* opts-common.c (decode_cmdline_options_to_array): Remove variable
      	argv_copied.
      
      From-SVN: r172325
      Axel Freyn committed
    • ChangeLog: Add the mising change log for my previous commit. · fbfbde73
      2011-04-12  Yufeng Zhang  <yufeng.zhang@arm.com>
      
      	* ChangeLog: Add the mising change log for my previous commit.
      
      From-SVN: r172324
      Yufeng Zhang committed
    • MAINTAINERS (Write After Approval): Add myself. · cb4336c0
      2011-04-12  Yufeng Zhang  <yufeng.zhang@arm.com>
      
      	* MAINTAINERS (Write After Approval): Add myself.
      
      From-SVN: r172323
      Yufeng Zhang committed
    • * recog.h, genoutput.c, optabs.c: Revert last patch. · 28569ac3
      From-SVN: r172321
      Richard Sandiford committed
    • re PR target/48090 (gcc 4.5.2 miscompilation when building on arm) · ae59e00d
      
      Fix PR target/48090
      
      2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
      
             PR target/48090
             * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
      
      From-SVN: r172318
      Ramana Radhakrishnan committed
    • recog.h (insn_operand_data): Add an "allows_mem" field. · cff1b7e0
      gcc/
      	* recog.h (insn_operand_data): Add an "allows_mem" field.
      	* genoutput.c (output_operand_data): Initialize it.
      	* optabs.c (maybe_legitimize_operand_same_code): New function.
      	(maybe_legitimize_operand): Use it when matching the original
      	op->value.
      
      From-SVN: r172316
      Richard Sandiford committed
    • genpreds.c (process_define_predicate): Move most processing to gensupport.c. · 77059241
      gcc/
      	* genpreds.c (process_define_predicate): Move most processing
      	to gensupport.c.  Continue to validate the expression.
      	* genrecog.c (did_you_mean_codes, compute_predicate_codes)
      	(process_define_predicate): Move processing to gensupport.c.
      	(main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
      	* gensupport.c (did_you_mean_codes): Moved from genrecog.c.
      	(compute_predicate_codes): Moved from genrecog.c.  Add lineno
      	argument.
      	(valid_predicate_name_p): New function, split out from old
      	genpreds.c:process_define_predicate.
      	(process_define_predicate): New function, combining code from
      	old genpreds.c and genrecog.c functions.
      	(process_rtx): Call it for DEFINE_PREDICATE and
      	DEFINE_SPECIAL_PREDICATE.
      
      From-SVN: r172315
      Richard Sandiford committed
    • arm.c (arm_print_operand): Use MEM_SIZE to get the size of a '%A' memory reference. · 6308e208
      gcc/
      	* config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
      	size of a '%A' memory reference.
      	(T_DREG, T_QREG): New neon_builtin_type_bits.
      	(arm_init_neon_builtins): Assert that the load and store operands
      	are neon_struct_operands.
      	(locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
      	(NEON_ARG_MEMORY): New builtin_arg.
      	(neon_dereference_pointer): New function.
      	(arm_expand_neon_args): Add a neon_builtin_type_bits argument.
      	Handle NEON_ARG_MEMORY.
      	(arm_expand_neon_builtin): Update after above interface changes.
      	Use NEON_ARG_MEMORY for loads and stores.
      	* config/arm/predicates.md (neon_struct_operand): New predicate.
      	* config/arm/iterators.md (V_two_elem): Tweak formatting.
      	(V_three_elem): Use BLKmode for accesses that have no associated mode.
      	(V_four_elem): Tweak formatting.
      	* config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
      	(neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
      	(neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
      	(neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
      	(neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
      	(neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
      	(neon_vst4<mode>): Replace pointer operand with a memory operand.
      	Use %A in the output template.
      	(neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
      	(neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
      	(neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
      	the width of the memory access.  Remove post-increment.
      	* config/arm/neon-testgen.ml: Allow addresses to have an alignment.
      
      gcc/testsuite/
      	* gcc.target/arm/neon-vld3-1.c: New test.
      	* gcc.target/arm/neon-vst3-1.c: New test.
      	* gcc.target/arm/neon/v*.c: Regenerate.
      
      From-SVN: r172314
      Richard Sandiford committed
    • v850.c (expand_prologue): Do not use the CALLT instruction for interrupt handlers if... · e5db8f2f
      	* config/v850/v850.c (expand_prologue): Do not use the CALLT
      	instruction for interrupt handlers if the target is the basic V850
      	architecture.
      	(expand_epilogue): Likewise.
      
      From-SVN: r172313
      Nick Clifton committed
    • re PR rtl-optimization/48549 (Combiner ICE with -g) · 74f091d6
      	PR rtl-optimization/48549
      	* combine.c (propagate_for_debug): Also stop after BB_END of
      	this_basic_block.  Process LAST and just stop processing after it.
      	(combine_instructions): If last_combined_insn has been deleted,
      	set last_combined_insn to its PREV_INSN.
      
      	* g++.dg/opt/pr48549.C: New test.
      
      From-SVN: r172311
      Jakub Jelinek committed
    • re PR tree-optimization/46076 (constant propagation and compile-time math no… · f20ca725
      re PR tree-optimization/46076 (constant propagation and compile-time math no longer happening versus 4.4 and 4.5)
      
      2011-04-12  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/46076
      	* gimple.h (struct gimple_statement_call): Add fntype field.
      	(gimple_call_fntype): Adjust.
      	(gimple_call_set_fntype): New function.
      	* gimple.c (gimple_build_call_1): Set the call function type.
      	* gimplify.c (gimplify_call_expr): Preserve the function
      	type the frontend used for the call.
      	(gimplify_modify_expr): Likewise.
      	* lto-streamer-in.c (input_gimple_stmt): Input the call stmts
      	function type.
      	* lto-streamer-out.c (output_gimple_stmt): Output the call stmts
      	function type.
      	* tree-ssa.c (useless_type_conversion_p): Function pointer
      	conversions are useless.
      
      	* gcc.dg/tree-ssa/pr46076.c: Un-XFAIL.
      
      From-SVN: r172310
      Richard Guenther committed
    • re PR libstdc++/48476 ([C++0x] conversion between std::tuple which have… · 78a869ec
      re PR libstdc++/48476 ([C++0x] conversion between std::tuple which have reference member is rejected)
      
      2011-04-12  Takaya Saito  <gintensubaru@gmail.com>
      
      	PR libstdc++/48476
      	* include/std/tuple (_Tuple_impl<>::_Tuple_impl(_Tuple_impl<>&&),
      	_Tuple_impl<>::operator=(_Tuple_impl&&), _Tuple_impl<>::operator=
      	(_Tuple_impl<>&&), tuple_cat): Use std::forward where appropriate.
      	* testsuite/20_util/tuple/cons/48476.cc: New.
      	* testsuite/20_util/tuple/48476.cc: Likewise.
      	* testsuite/20_util/tuple/creation_functions/48476.cc: Likewise.
      
      From-SVN: r172309
      Takaya Saito committed
    • class.c (cp_fold_obj_type_ref): Call cgraph_get_node instead of cgraph_get_create_node. · 0fa1f9b7
      2011-04-12  Martin Jambor  <mjambor@suse.cz>
      
      gcc/cp/
      	* class.c (cp_fold_obj_type_ref): Call cgraph_get_node instead of
      	cgraph_get_create_node.
      	* decl2.c (cp_write_global_declarations): Call cgraph_get_node
      	instead of cgraph_get_create_node.
      	* method.c (make_alias_for_thunk): Call cgraph_get_node
      	instead of cgraph_get_create_node, assert it returns non-NULL.
      	(use_thunk): Likewise.
      	* optimize.c (maybe_clone_body): Call cgraph_same_body_alias only
      	when flag_syntax_only is not set.  Call cgraph_get_node instead of
      	cgraph_get_create_node.
      	(maybe_clone_body): Call cgraph_get_node instead of
      	cgraph_get_create_node.
      
      From-SVN: r172308
      Martin Jambor committed
    • cgraph.h (cgraph_node): Remove function declaration. · a358e188
      2011-04-12  Martin Jambor  <mjambor@suse.cz>
      
      	* cgraph.h (cgraph_node): Remove function declaration.
      	(cgraph_create_node): Declare.
      	(cgraph_get_create_node): Likewise.
      	* cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
      	Updated all callers.
      	(cgraph_node): Renamed to cgraph_create_node, assert that a node for
      	the decl does not already exist.  Call cgraph_get_create_node instead
      	of cgraph_node.
      	(cgraph_get_create_node): New function.
      	(cgraph_same_body_alias): Update comment.
      	(cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
      	assert it does not return NULL.
      	(cgraph_update_edges_for_call_stmt): Likewise.
      	(cgraph_clone_edge): Likewise.
      	(cgraph_create_virtual_clone): Likewise.
      	(cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
      	instead of cgraph_node.
      	(cgraph_add_new_function): Call cgraph_create_node or
      	cgraph_get_create_node instead of cgraph_node.
      	* cgraphbuild.c (record_reference): Call cgraph_get_create_node
      	instead of cgraph_node.
      	(record_eh_tables): Likewise.
      	(mark_address): Likewise.
      	(mark_load): Likewise.
      	(build_cgraph_edges): Call cgraph_get_create_node instead
      	of cgraph_node.
      	(rebuild_cgraph_edges): Likewise.
      	* cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
      	instead of cgraph_node.
      	(cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
      	cgraph_node.
      	* lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
      	cgraph_create_node instead of cgraph_node.
      	* c-decl.c (finish_function): Call cgraph_get_create_node instead
      	of cgraph_node.
      	* lto-cgraph.c (input_node): Likewise.
      	* lto-streamer-in.c (input_function): Likewise.
      	* varasm.c (mark_decl_referenced): Likewise.
      	(assemble_alias): Likewise.
      
      gcc/c-family/
      	* c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
      	of cgraph_node.
      
      gcc/cp/
      	* cp/class.c (cp_fold_obj_type_ref): Call cgraph_get_create_node
      	instead of cgraph_node.
      	* cp/decl2.c (cxx_callgraph_analyze_expr): Likewise.
      	(cp_write_global_declarations): Likewise.
      	* cp/optimize.c (maybe_clone_body): Likewise.
      	* cp/semantics.c (maybe_add_lambda_conv_op): Likewise.
      	* cp/mangle.c (mangle_decl): Likewise.
      	* cp/method.c (make_alias_for_thunk): Likewise.
      	(use_thunk): Likewise.
      
      gcc/ada/
      	* gcc-interface/utils.c (end_subprog_body): Call
      	cgraph_get_create_node instead of cgraph_node.
      
      gcc/fortran/
      	* trans-decl.c (gfc_generate_function_code): Call
      	cgraph_get_create_node instead of cgraph_node.
      
      gcc/objc/
      	* objc-act.c (mark_referenced_methods): Call cgraph_get_create_node
      	instead of cgraph_node.
      
      From-SVN: r172307
      Martin Jambor committed
    • tree-inline.c (tree_function_versioning): Call cgraph_get_node instead of… · fe660d7b
      tree-inline.c (tree_function_versioning): Call cgraph_get_node instead of cgraph_node and assert it does not return NULL.
      
      2011-04-12  Martin Jambor  <mjambor@suse.cz>
      
      	* tree-inline.c (tree_function_versioning): Call cgraph_get_node
      	instead of cgraph_node and assert it does not return NULL.
      	* lto-streamer-in.c (lto_read_body): Likewise.
      	* omp-low.c (new_omp_context): Likewise.
      	(create_task_copyfn): Likewise.
      	* tree-emutls.c (lower_emutls_function_body): Likewise.
      	* matrix-reorg.c (transform_allocation_sites): Likewise.
      
      From-SVN: r172306
      Martin Jambor committed
    • re PR libstdc++/48566 (libstdc++-v3 testsuite failures due to missing includes) · 237526dd
      2011-04-12  Allan McRae  <allan@archlinux.org>
      
      	PR libstdc++/48566
      	* testsuite/tr1/6_containers/unordered_map/requirements/
      	iterator_null_neg.cc: Include <cstddef>.
      	* testsuite/tr1/6_containers/unordered_set/requirements/
      	iterator_null_neg.cc: Likewise.
      	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/4.cc: Include
      	<cstring>.
      	* testsuite/util/testsuite_common_types.h: Include <limits>.
      	* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
      	Adjust dg-error line numbers.
      	* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
      	* testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
      	Likewise.
      	* testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
      	Likewise.
      	* testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
      	Likewise.
      	* testsuite/29_atomics/atomic/cons/assign_neg.cc: Likewise.
      	* testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.
      
      From-SVN: r172303
      Paolo Carlini committed
    • re PR testsuite/21164 (libjava tests uses absolute paths) · c9c0db83
      	libjava:
      	PR testsuite/21164
      	* testsuite/lib/libjava.exp: Load dg.exp.
      	* testsuite/libjava.jar/jar.exp (gcj_jar_interpret): Strip srcdir
      	from jarfile.
      	Use result for messages.
      	* testsuite/libjava.loader/loader.exp (gcj_loader_test_one): Pass
      	errname to libjava_invoke, fix testname.
      
      	gcc:
      	PR testsuite/21164
      	* lib/compat.exp (compat-execute): Declare unsupported after
      	stripping path from src1.
      	* lib/lto.exp (lto-execute): Likewise.
      
      From-SVN: r172302
      Rainer Orth committed
    • re PR c/48517 (ICE in build_unary_op, at c-typeck.c:3786) · e30ecc5d
      	PR c/48517
      	* c-typeck.c (store_init_value): Set TREE_TYPE (decl) to
      	qualified type.
      
      	* gcc.c-torture/compile/pr48517.c: New test.
      
      From-SVN: r172299
      Jakub Jelinek committed
    • re PR c/48552 (ICE with void type expressions in asm inputs/outputs) · bae5cddf
      	PR c/48552
      	* c-typeck.c (build_asm_expr): Error out on attempts to use
      	void type outputs or inputs for constraints that allow reg or
      	don't allow memory.
      
      	* gcc.dg/pr48552-1.c: New test.
      	* gcc.dg/pr48552-2.c: New test.
      
      From-SVN: r172298
      Jakub Jelinek committed
    • re PR target/48250 (ICE in reload_cse_simplify_operands, at postreload.c:403) · 06eb52ca
      2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
      	    Richard Earnshaw  <rearnsha@arm.com>
      
      	PR target/48250
      	* config/arm/arm.c (arm_legitimize_reload_address): Update cases
      	to use sign-magnitude offsets. Reject unsupported unaligned
      	cases. Add detailed description in comments.
      	* config/arm/arm.md (reload_outdf): Disable for ARM mode; change
      	condition from TARGET_32BIT to TARGET_ARM.
      
      Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>
      
      From-SVN: r172297
      Chung-Lin Tang committed
    • tree.h (struct typed_tree): New. · 648a616b
      	* tree.h (struct typed_tree): New.
      	(struct tree_common): Include it instead of tree_base.
      	(TREE_TYPE): Update for new location of type field.
      	(TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
      	(DECL_USER_ALIGN, DECL_PACKED): Likewise.
      	(union tree_node): Add typed field.
      	* treestruct.def (TS_TYPED): New.
      	* lto-streamer.c (check_handled_ts_structures): Handle it.
      	* tree.c (MARK_TS_TYPED): New macro.
      	(MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
      
      From-SVN: r172295
      Nathan Froyd committed
    • Daily bump. · fa21c1fa
      From-SVN: r172292
      GCC Administrator committed
  2. 11 Apr, 2011 9 commits