summaryrefslogtreecommitdiff
path: root/gcc/testsuite
Commit message (Collapse)AuthorAgeFilesLines
...
* PR debug/53363jason2013-03-062-0/+8
| | | | | | * g++.dg/debug/dwarf2/thunk1.C: Skip on darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196493 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56543jakub2013-03-062-0/+16
| | | | | | | | | * tree.c (strip_typedefs): Don't copy args if they are NULL. * g++.dg/template/typename20.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196491 138bc75d-0d04-0410-961f-82ee72b054a4
* PR debug/56510jakub2013-03-052-0/+45
| | | | | | | | | | | * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming. (avoid_complex_debug_insns): New function. (expand_debug_locations): Call it. * gcc.dg/pr56510.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196479 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/56484jakub2013-03-051-0/+17
| | | | | | | | * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending lifetimes of hard registers on small register class machines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196478 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/50276jason2013-03-051-0/+23
| | | | | | * g++.dg/cpp0x/lambda/lambda-template10.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196472 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-03-05 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-03-051-0/+11
| | | | | | | | PR c++/56530 * g++.dg/warn/Wsign-conversion-2.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196460 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-03-05 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-03-051-0/+5
| | | | | | | | PR c++/56530 * g++.dg/warn/Wsign-conversion-2.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196459 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-03-05 Richard Biener <rguenther@suse.de>rguenth2013-03-052-0/+29
| | | | | | | | | | | PR tree-optimization/56270 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts of loads after scheduling an SLP instance. * gcc.dg/vect/slp-38.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196458 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/56494jakub2013-03-052-0/+18
| | | | | | | | | | | * simplify-rtx.c (simplify_truncation): If C is narrower than A, optimize (truncate:A (subreg:B (truncate:C X) 0)) into (subreg:A (truncate:C X) 0) instead of (truncate:A X). * gcc.dg/pr56494.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196451 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/56424ebotcazou2013-03-042-0/+37
| | | | | | | | * ipa-split.c (split_function): Do not set the RSO flag if result is not by reference and its type is a register type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196439 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56464jason2013-03-042-0/+14
| | | | | | | | PR c++/54383 * semantics.c (lambda_expr_this_capture): Handle NSDMI and non-class scopes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196437 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/pr55153.c: Add dg-require-effective-target scheduling.gjl2013-03-043-0/+7
| | | | | | | | * gcc.dg/pr56228.c <avr>: Skip. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196429 138bc75d-0d04-0410-961f-82ee72b054a4
* PR testsuite/52641gjl2013-03-042-0/+10
| | | | | | | | | PR tree-optimization/52631 * gcc.dg/tree-ssa/pr52631.c: Fix 16-bit int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196428 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/vect/vect-82_64.c: Skip on AIX.dje2013-03-033-0/+7
| | | | | | | * gcc.dg/vect/vect-83_64.c: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196419 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/mikael2013-03-032-0/+24
| | | | | | | | | | | | | PR fortran/56477 * expr.c (gfc_check_pointer_assign): Avoid NULL pointer dereference. testsuite/ PR fortran/56477 * gfortran.dg/pointer_check_13.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196417 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/mikael2013-03-032-0/+27
| | | | | | | | | | | | | | PR fortran/54730 * array.c (gfc_match_array_constructor): Set a checkpoint before matching a typespec. Drop it on success, restore it otherwise. testsuite/ PR fortran/54730 * gfortran.dg/array_constructor_42.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196416 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-03-02 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-03-024-0/+69
| | | | | | | | | | | | PR c++/52688 * g++.dg/template/static33.C: New. * g++.dg/template/static34.C: Likewise. PR c++/10291 * g++.dg/template/static35.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196405 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-03-01 Steve Ellcey <sellcey@mips.com>sje2013-03-012-0/+5
| | | | | | | * gcc.dg/pr56396.c: Require pic support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196386 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-03-01 Richard Biener <rguenther@suse.de>rguenth2013-03-012-0/+36
| | | | | | | | PR tree-optimization/55481 * gcc.dg/torture/pr56488.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196377 138bc75d-0d04-0410-961f-82ee72b054a4
* PR sanitizer/56454jakub2013-02-284-7/+46
| | | | | | | | | | | | | | | | | | | | | | | | * asan.c (gate_asan): Lookup no_sanitize_address instead of no_address_safety_analysis attribute. * doc/extend.texi (no_address_safety_attribute): Rename to no_sanitize_address attribute, mention no_address_safety_analysis attribute as deprecated alias. * c-common.c (handle_no_sanitize_address_attribute): New function. (c_common_attribute_table): Add no_sanitize_address attribute. (handle_no_address_safety_analysis_attribute): Add no_sanitize_address attribute, not no_address_safety_analysis attribute. * g++.dg/asan/default-options-1.C (__asan_default_options): Use no_sanitize_address attribute rather than no_address_safety_analysis. * g++.dg/asan/sanitizer_test_utils.h (ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS): Likewise. * c-c++-common/asan/attrib-1.c: Test no_sanitize_address attribute in addition to no_address_safety_analysis. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196361 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56481jason2013-02-282-0/+25
| | | | | | * g++.dg/cpp0x/constexpr-and.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196359 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56243jason2013-02-281-0/+30
| | | | | | * call.c (build_over_call): Avoid virtual lookup in a template. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196343 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-28 Martin Jambor <mjambor@suse.cz>jamborm2013-02-282-0/+35
| | | | | | | | | | | | | | | | | PR tree-optimization/56294 * tree-sra.c (analyze_access_subtree): Create replacement declarations. Adjust dumping. (get_access_replacement): Do not call create_access_replacement. Assert a replacement exists. (get_repl_default_def_ssa_name): Create the replacement declaration itself. testsuite/ * g++.dg/debug/pr56294.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196340 138bc75d-0d04-0410-961f-82ee72b054a4
* Add XFAIL to g++.old-deja/g++.pt/ptrmem6.C for AArch64.mshawcroft2013-02-282-1/+5
| | | | | | | | | | 2013-02-28 Marcus Shawcroft <marcus.shawcroft@arm.com> * g++.old-deja/g++.pt/ptrmem6.C(main): Add xfail aarch64*-*-*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196338 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/56466mpolacek2013-02-282-0/+36
| | | | | | | | | | * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure if we're changing a loop. (peel_loops_completely): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196335 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>naveenh2013-02-284-8/+14
| | | | | | | | | | * gcc.dg/tree-ssa/slsr-1.c: Allow widening multiplications. * gcc.dg/tree-ssa/slsr-2.c: Likewise. * gcc.dg/tree-ssa/slsr-3.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196329 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56358jason2013-02-273-2/+24
| | | | | | | | | | | PR c++/56323 * name-lookup.c (do_class_using_decl): Use ctor_identifier instead of the base name for inheriting ctors. (push_class_level_binding_1): Remove inheriting ctor handling. * pt.c (tsubst_decl) [USING_DECL]: Likewise. * class.c (add_implicitly_declared_members): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196316 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/45472abel2013-02-272-0/+26
| | | | | | | | | | | | | | gcc/ * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr when the may_trap_p bit of the exprs being merged differs. Reorder tests for speculativeness in the logical and operator. testsuite/ * gcc.dg/45472.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196308 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56419aldyh2013-02-261-0/+13
| | | | | | | * semantics.c (begin_transaction_stmt): Set TREE_SIDE_EFFECTS. (build_transaction_expr): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196282 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-26 Marek Polacek <polacek@redhat.com>mpolacek2013-02-262-0/+27
| | | | | | | | | | PR tree-optimization/56426 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196281 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/56448jakub2013-02-262-0/+17
| | | | | | | | | | | | | * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF. Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or later operands of the references, or even first operand for INDIRECT_REF, TARGET_MEM_REF or MEM_REF. * gcc.c-torture/compile/pr56448.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196278 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/56443jakub2013-02-262-0/+34
| | | | | | | | | | | * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument to type_for_mode langhook. * gcc.dg/torture/pr56443.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196277 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56438jason2013-02-261-0/+22
| | | | | | | * semantics.c (potential_constant_expression_1): In C++98, a cast to non-integral type can't be a constant expression. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196274 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-25 Richard Biener <rguenther@suse.de>rguenth2013-02-252-0/+23
| | | | | | | | | | | | | PR tree-optimization/56175 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate, split out from ... (simplify_bitwise_binary): ... here. Also guard the conversion of (type) X op CST to (type) (X op ((type-x) CST)) with it. * gcc.dg/tree-ssa/forwprop-24.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196263 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56403jakub2013-02-252-0/+17
| | | | | | | | | | * init.c (build_zero_init_1): Use RECORD_OR_UNION_CODE_P instead of CLASS_TYPE_P. * g++.dg/torture/pr56403.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196260 138bc75d-0d04-0410-961f-82ee72b054a4
* 2012-02-25 Catherine Moore <clm@codesourcery.com>clm2013-02-2525-429/+32
| | | | | | | | Revert microMIPS patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196259 138bc75d-0d04-0410-961f-82ee72b054a4
* libgcc/clm2013-02-2425-1/+457
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-02-24 Catherine Moore <clm@codesourcery.com> Joseph Myers <joseph@codesourcery.com> Chao-ying Fu <fu@mips.com> * config/mips/mips16.S: Don't build for microMIPS. * config/mips/linux-unwind.h: Handle microMIPS frame. * config/mips/crtn.S (fini, init): New labels. gcc/ 2013-02-24 Catherine Moore <clm@codesourcery.com> Maciej W. Rozycki <macro@codesourcery.com> Tom de Vries <tom@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Iain Sandoe <iain@codesourcery.com> Nathan Froyd <froydnj@codesourcery.com> Chao-ying Fu <fu@mips.com> * doc/extend.texi: (micromips, nomicromips, nocompression): Document new function attributes. * doc/invoke.texi (minterlink-compressed, mmicromips, m14k, m14ke, m14kec): Document new options. (minterlink-mips16): Update documentation. * doc/md.texi (ZC, ZD): Document new constraints. * configure.ac (gcc_cv_as_micromips): Check if linker supports the .set micromips directive. * configure: Regenerate. * config.in: Regenerate. * config/mips/mips-tables.opt: Regenerate. * config/mips/micromips.md: New file. * constraints.md (ZC, AD): New constraints. * config/mips/predicates.md (movep_src_register): New predicate. (movep_src_operand): New predicate. (non_volatile_mem_operand): New predicate. * config/mips/mips.md (multimem): New type. (length): Differentiate between 17-bit and 18-bit branch offsets. (MOVEP1, MOVEP2): New mode iterator. (mov_<load>l): Use ZC constraint. (mov_<load>r): Likewise. (mov_<store>l): Likewise. (mov_<store>r): Likewise. (*branch_equality<mode>_inverted): Add microMIPS support. (*branch_equality<mode>): Likewise. (*jump_absolute): Likewise. (indirect_jump_<mode>): Likewise. (tablejump_<mode>): Likewise. (<optab>_internal): Likewise. (sibcall_internal): Likewise. (sibcall_value_internal): Likewise. (prefetch): Use constraint ZD. * config/mips/mips.opt (minterlink-compressed): New option. (minterlink-mips16): Now an alias for minterlink-compressed. (mmicromips): New option. * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint. (compare_and_swap_12): Likewise. (sync_add<mode>): Likewise. (sync_<optab>_12): Likewise. (sync_old_<optab>_12): Likewise. (sync_new_<optab>_12): Likewise. (sync_nand_12): Likewise. (sync_old_nand_12): Likewise. (sync_new_nand_12): Likewise. (sync_sub<mode>): Likewise. (sync_old_add<mode>): Likewise. (sync_old_sub<mode>): Likewise. (sync_new_add<mode>): Likewise. (sync_new_sub<mode>): Likewise. (sync_<optab><mode>): Likewise. (sync_old_<optab><mode>): Likewise. (sync_new_<optab><mode>): Likewise. (sync_nand<mode>): Likewise. (sync_old_nand<mode>): Likewise. (sync_new_nand<mode>): Likewise. (sync_lock_test_and_set<mode>): Likewise. (test_and_set_12): Likewise. (atomic_compare_and_swap<mode>): Likewise. (atomic_exchange<mode>_llsc): Likewise. (atomic_fetch_add<mode>_llsc): Likewise. * config/mips/mips-cpus.def (m14kc, m14k): New processors. * config/mips/mips-protos.h (umips_output_save_restore): New prototype. (umips_save_restore_pattern_p): Likewise. (umips_load_store_pair_p): Likewise. (umips_output_load_store_pair): Likewise. (umips_movep_target_p): Likewise. (umips_12bit_offset_address_p): Likewise. * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS. (mips_base_mips16): Rename this... (mips_base_compression_flags): ...to this. Update all uses. (mips_attribute_table): Add micromips, nomicromips and nocompression. (mips_mips16_decl_p): Delete. (mips_nomips16_decl_p): Delete. (mips_get_compress_on_flags): New function. (mips_get_compress_off_flags): New function. (mips_get_compress_mode): New function. (mips_get_compress_on_name): New function. (mips_get_compress_off_name): New function. (mips_insert_attributes): Support multiple compression types. (mips_merge_decl_attributes): Likewise. (umips_12bit_offset_address_p): New function. (mips_start_function_definition): Emit .set micromips directive. (mips_call_may_need_jalx_p): New function. (mips_function_ok_for_sibcall): Add microMIPS support. (mips_print_operand_punctuation): Support short delay slots and compact jumps. (umips_swm_mask, umips_swm_encoding): New. (umips_build_save_restore): New function. (mips_for_each_saved_gpr_and_fpr): Add microMIPS support. (was_mips16_p): Remove. (old_compression_mode): New. (mips_set_compression_mode): New function. (mips_set_current_function): Add microMIPS support. (mips_option_override): Likewise. (umips_save_restore_pattern_p): New function. (umips_output_save_restore): New function. (umips_load_store_pair_p_1): New function. (umips_load_store_pair_p): New function. (umips_output_load_store_pair_1): New function. (umips_output_load_store_pair): New function. (umips_movep_target_p) New function. (mips_prepare_pch_save): Add microMIPS support. * config/mips/mips.h (TARGET_COMPRESSION): New. (TARGET_CPU_CPP_BUILTINS): Update macro to use new compression flags and to support microMIPS. (MIPS_ISA_LEVEL_SPEC): Add m14k processors. (MIPS_ARCH_FLOAT_SPEC): Likewise. (ISA_HAS_LWXS): Include TARGET_MICROMIPS. (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS. (ASM_SPEC): Support mmicromips and mno-micromips. (M16STORE_REG_P): New macro. (MIPS_CALL): Support TARGET_MICROMIPS. (MICROMIPS_J): New macro. (mips_base_mips16): Rename this... (mips_base_compression_flags): ...to this. (UMIPS_12BIT_OFFSET_P): New macro. * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS. (MULTILIB_DIRNAMES): Likewise. gcc/testsuite/ 2013-02-24 Catherine Moore <clm@codesourcery.com> Richard Sandiford <rdsandiford@googlemail.com> * gcc.target/mips/mips.exp: Add microMIPS support. * gcc.target/mips/umips-movep-2.c: New test. * gcc.target/mips/umips-lwp-2.c: New test. * gcc.target/mips/umips-swp-5.c: New test. * gcc.target/mips/umips-constraints-1.c: New test. * gcc.target/mips/umips-lwp-3.c: New test. * gcc.target/mips/umips-swp-6.c: New test. * gcc.target/mips/umips-constraints-2.c: New test. * gcc.target/mips/umips-save-restore-1.c: New test. * gcc.target/mips/umips-lwp-4.c: New test. * gcc.target/mips/umips-swp-7.c: New test. * gcc.target/mips/umips-save-restore-2.c: New test. * gcc.target/mips/umips-lwp-swp-volatile.c: New test. * gcc.target/mips/umips-lwp-5.c: New test. * gcc.target/mips/umips-save-restore-3.c: New test. * gcc.target/mips/umips-lwp-6.c: New test. * gcc.target/mips/umips-swp-1.c: New test. * gcc.target/mips/umips-lwp-7.c: New test. * gcc.target/mips/umips-swp-2.c: New test. * gcc.target/mips/umips-lwp-8.c: New test. * gcc.target/mips/umips-swp-3.c: New test. * gcc.target/mips/umips-movep-1.c: New test. * gcc.target/mips/umips-lwp-1.c: New test. * gcc.target/mips/umips-swp-4.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196246 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/40405jason2013-02-221-0/+10
| | | | | | | * pt.c (push_template_decl_real): Set DECL_INTERFACE_KNOWN if we got the wrong number of template parms. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196231 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56359jason2013-02-221-0/+20
| | | | | | * call.c (can_convert_arg): Discard access checks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196229 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56395jason2013-02-221-0/+24
| | | | | | | * tree.c (strip_typedefs): Strip typedefs from TYPENAME_TYPE template args. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196228 138bc75d-0d04-0410-961f-82ee72b054a4
* PR sanitizer/56393jakub2013-02-222-0/+7
| | | | | | | | | | | | | | | | | | * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o if not linking a shared library. * lib/asan-dg.exp (asan_link_flags): Add -B${gccpath}/libsanitizer/asan/ to flags. * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to libasan_preinit.o. (libasan_preinit.o): Depend on asan_preinit.o. * asan/Makefile.in: Regenerated. * asan/asan_preinit.cc: New file, synced from upstream. * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196222 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/56420jakub2013-02-212-0/+42
| | | | | | | | | | | | | | | | * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to avoid signed wrapping. (expand_mult): Handle properly multiplication by ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior in the compiler if coeff is HOST_WIDE_INT_MIN. (expand_divmod): Don't make ext_op1 static, change it's type to uhwi. Avoid undefined behavior in -INTVAL (op1). * gcc.dg/torture/pr56420.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196215 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/56108aldyh2013-02-213-2/+16
| | | | | | | | | * trans-mem.c (execute_tm_mark): Do not expand transactions that are sure to go irrevocable. testsuite/ * gcc.dg/tm/memopt-1.c: Declare functions transaction_safe. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196213 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-21 Martin Jambor <mjambor@suse.cz>jamborm2013-02-212-0/+41
| | | | | | | | | | | | | | | | PR tree-optimization/56310 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy only matching indices and non-negative final offsets. (intersect_aggregates_with_edge): Pass src_idx to agg_replacements_to_vector. Pass src_idx insstead of index to intersect_with_agg_replacements. testsuite/ * g++.dg/ipa/pr56310.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196207 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-21 Janus Weil <janus@gcc.gnu.org>janus2013-02-212-0/+30
| | | | | | | | | | | | | | PR fortran/56385 * trans-array.c (structure_alloc_comps): Handle procedure-pointer components with allocatable result. 2013-02-21 Janus Weil <janus@gcc.gnu.org> PR fortran/56385 * gfortran.dg/proc_ptr_comp_37.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196202 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-21 Richard Biener <rguenther@suse.de>rguenth2013-02-217-45/+33
| | | | | | | | | | | | | | | | | | | | PR tree-optimization/56415 Revert 2013-02-11 Richard Biener <rguenther@suse.de> PR tree-optimization/56273 * tree-vrp.c (simplify_cond_using_ranges): Disable for the first VRP run. * g++.dg/warn/Warray-bounds-6.C: New testcase. * gcc.dg/tree-ssa/pr21559.c: Adjust. * gcc.dg/tree-ssa/vrp17.c: Likewise. * gcc.dg/tree-ssa/vrp18.c: Likewise. * gcc.dg/tree-ssa/vrp23.c: Likewise. * gcc.dg/tree-ssa/vrp24.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196200 138bc75d-0d04-0410-961f-82ee72b054a4
* New test for PR56398.mpolacek2013-02-212-0/+27
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196199 138bc75d-0d04-0410-961f-82ee72b054a4
* PR inline-asm/56405jakub2013-02-212-0/+12
| | | | | | | | | | * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't use movmisalign or extract_bit_field for EXPAND_MEMORY modifier. * gcc.c-torture/compile/pr56405.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196195 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/56265hubicka2013-02-202-0/+55
| | | | | | | | | * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when target is referenced for firs ttime. * testsuite/g++.dg/ipa/devirt-11.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196177 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-02-20 Richard Biener <rguenther@suse.de>rguenth2013-02-202-2/+5
| | | | | | | | | | | | | | | | | | | | | * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals. * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise. * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise. * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not return anything. (rename_ssa_copies): Do not remove unused locals. * tree-ssa-ccp.c (do_ssa_ccp): Likewise. * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first. * passes.c (execute_function_todo): Do not schedule unused locals removal if cleanup_tree_cfg did something. * tree-ssa-live.c (remove_unused_locals): Dump statistics about the number of removed locals. * gcc.dg/tree-ssa/forwprop-8.c: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196174 138bc75d-0d04-0410-961f-82ee72b054a4