Commit Graph

120679 Commits

Author SHA1 Message Date
Marek Polacek
a859517f1e Fix PR c/55570.
From-SVN: r194083
2012-12-03 13:02:04 +00:00
Eric Botcazou
ea3c6c07bd tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag in the non-always executed case.
* tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag
	in the non-always executed case.

From-SVN: r194082
2012-12-03 12:08:35 +00:00
Jakub Jelinek
5c31da80bb asan-dg.exp (asan_get_gtest_test_list, [...]): New procedures.
* lib/asan-dg.exp (asan_get_gtest_test_list,
	asan_get_gtest_expect_death_list, asan-gtest): New procedures.
	(proc ${tool}_load): Remember [asan_get_gtest_test_list "$output"]
	and [asan_get_gtest_expect_death_list "$output"] in global vars.
	(asan_symbolize): Sanitize [] characters from key.
	* g++.dg/asan/asan_test_config.h: New file.
	* g++.dg/asan/asan_globals_test.cc: New file.
	* g++.dg/asan/asan_test_utils.h: New file.
	* g++.dg/asan/dejagnu-gtest.h: New file.
	* g++.dg/asan/asan_test.cc: New file.
	* g++.dg/asan/asan_test.C: New test.

From-SVN: r194081
2012-12-03 12:49:41 +01:00
Sofiane Naci
d9600ae5a3 [AARCH64] Refactor constant generation.
2012-12-03  Sofiane Naci  <sofiane.naci@arm.com>

	* config/aarch64/aarch64.c (aarch64_build_constant): Update prototype.
	Call emit_move_insn	instead of printing movi/movn/movz instructions.
	Call gen_insv_immdi instead of printing movk instruction.
	(aarch64_add_constant): Update prototype.
	Generate RTL instead of printing add/sub instructions.
	(aarch64_output_mi_thunk): Update calls to aarch64_build_constant
	and aarch64_add_constant.

From-SVN: r194080
2012-12-03 11:13:41 +00:00
Richard Biener
6ff11db28b pr35634.c: Use signed char.
2012-12-03  Richard Biener  <rguenther@suse.de>

	* gcc.dg/torture/pr35634.c: Use signed char.
	* g++.dg/torture/pr35634.C: Likewise.

From-SVN: r194078
2012-12-03 10:45:16 +00:00
Tobias Burnus
021aa628c6 re PR fortran/55475 (heap-buffer-overflow in fortran/error.c)
2012-12-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/55475
        * scanner.c (gfc_next_char_literal): Fix setting locus
        to free_line_length for the error message.
        * error.c (show_locus): Fix potential out-of-bounds
        read.

From-SVN: r194076
2012-12-03 09:56:11 +01:00
Tobias Burnus
29a7d776ea re PR fortran/37336 ([F03] Finish derived-type finalization)
2012-11-03  Tobias Burnus  <burnus@net-b.de>

        PR fortran/37336
        * class.c (finalizer_insert_packed_call): New static function.
        (finalize_component, generate_finalization_wrapper):
        Fix coarray handling and packing.

From-SVN: r194075
2012-12-03 09:54:18 +01:00
Ian Lance Taylor
9cc263b852 compiler: Fix field tracking for references in global initializers.
From-SVN: r194073
2012-12-03 07:21:16 +00:00
Kai Tietz
9204da15ef re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.

From-SVN: r194072
2012-12-03 08:05:26 +01:00
Kai Tietz
c63d51cc18 re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.

From-SVN: r194070
2012-12-03 08:02:17 +01:00
Ian Lance Taylor
cfb84a52ec compiler: Don't encode non-ASCII characters in identifiers.
From-SVN: r194068
2012-12-03 06:57:04 +00:00
Kai Tietz
b4ec63970a re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
	* pointer-set.c (hash1): Cast from pointer via uintptr_t.

From-SVN: r194067
2012-12-03 07:56:16 +01:00
Ian Lance Taylor
405c87c4d3 compiler: Fix nil func panics, constant type conversions.
From-SVN: r194064
2012-12-03 03:25:18 +00:00
GCC Administrator
9b8a401725 Daily bump.
From-SVN: r194063
2012-12-03 00:18:00 +00:00
Marek Polacek
60cec1fd88 re PR middle-end/54838 (ICE: in merge_latch_edges, at cfgloop.c:678 with -ftracer)
PR54838

From-SVN: r194060
2012-12-02 20:16:09 +00:00
Teresa Johnson
bde8c9629a re PR gcov-profile/55551 (Revision 193999 breaks lto/profiledbootstrap)
2012-12-02  Teresa Johnson  <tejohnson@google.com>

        PR gcov-profile/55551
	* lto-cgraph.c (merge_profile_summaries): Handle scaled histogram
        entries that map to the same index.

From-SVN: r194055
2012-12-02 16:40:28 +00:00
Steven Bosscher
853f8f1c1c optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL notes.
* optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL
	notes.
	* fwprop.c (forward_propagate_and_simplify): Likewise.

From-SVN: r194054
2012-12-02 15:46:26 +00:00
Steven Bosscher
fa967f341c function.h (struct rtl_data): Remove epilogue_delay_list.
* function.h (struct rtl_data): Remove epilogue_delay_list.
	* reorg.c (find_end_label): Simplify always-true test.
	(optimize_skip): Likewise.
	* final.c (leaf_function_p): Don't loop over epilogue_delay_list.
	(leaf_renumber_regs): Likewise.
	* varasm.c (mark_constant_pool): Likewise.
	* except.c (set_nothrow_function_flags): Likewise.
	* cfgrtl.c (print_rtl_with_bb): Likewise.

From-SVN: r194053
2012-12-02 15:43:16 +00:00
Paul Thomas
474d486a73 resolve.c (resolve_allocate_deallocate, [...]): Recover revisions 193568 and 193778...
2012-12-02  Paul Thomas  <pault@gcc.gnu.org>

	* resolve.c (resolve_allocate_deallocate,
	resolve_typebound_intrinsic_op): Recover revisions 193568 and
	193778, which were accidentally reverted by the previous patch.

From-SVN: r194052
2012-12-02 15:23:30 +00:00
Hans-Peter Nilsson
9b6343a1d4 Remove stray "gcc/" heading to previous^2 entry.
From-SVN: r194051
2012-12-02 11:34:55 +00:00
Hans-Peter Nilsson
0a0337cd5a mmix.c (mmix_function_value): Set the mode of the returned PARALLEL to that of the return-value, not VOIDmode.
* config/mmix/mmix.c (mmix_function_value): Set the mode of the
	returned PARALLEL to that of the return-value, not VOIDmode.

From-SVN: r194050
2012-12-02 11:33:16 +00:00
Sandra Loosemore
bafa88c236 extend.texi: Various corrections to punctuation and grammar throughout the file.
2012-12-02  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi: Various corrections to punctuation and grammar
	throughout the file.  Use consistent terminology and proper names.
	Correct some minor markup issues.

From-SVN: r194049
2012-12-01 23:26:39 -05:00
Xinliang David Li
8248c7afba missing Changelog
From-SVN: r194044
2012-12-02 01:11:53 +00:00
GCC Administrator
4fad4365c7 Daily bump.
From-SVN: r194042
2012-12-02 00:18:36 +00:00
Steven Bosscher
2895a2a896 reorg.c: Remove an obsolete comment.
* reorg.c: Remove an obsolete comment.
	* config/pa/pa.md: Add back the HP-PA comment here, with details.

From-SVN: r194039
2012-12-02 00:06:30 +00:00
Xinliang David Li
d1b1402fc3 Enable cltd for modern CPUs
From-SVN: r194038
2012-12-01 23:43:51 +00:00
Paolo Carlini
780f08bc4a re PR c++/55558 ([C++11] decltype on a static member variable in a template function results in an internal compiler error)
2012-12-01  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/55558
	* g++.dg/cpp0x/decltype46.C: New.

From-SVN: r194036
2012-12-01 22:52:27 +00:00
John David Anglin
198e7e8bde Add newline.
From-SVN: r194028
2012-12-01 21:05:43 +00:00
John David Anglin
47b1457a46 re PR middle-end/52450 (FAIL: gcc.dg/torture/pr52402.c at -O1 and above)
PR middle-end/52450
	* gcc.dg/torture/pr52402.c: Remove xfail for hppa*-*-hpux*.

From-SVN: r194026
2012-12-01 20:17:13 +00:00
John David Anglin
c88fe5d238 re PR ada/52110 (s-osinte.ads:447:09: "clockid_t" conflicts with declaration at line 194)
PR ada/52110
	* s-osinte-hpux-dce.ads: Declare pthread_rwlockattr_t and
	pthread_rwlock_t subtypes.  Delete duplicate declaration of clockid_t.
	* s-taspri-hpux-dce.ads: Change "pragma Atomic (Thread)" to comment.

From-SVN: r194024
2012-12-01 19:43:04 +00:00
John David Anglin
27ba7cea69 re PR libstdc++/55503 (FAIL: 30_threads/condition_variable/members/53841.cc (test for excess errors))
PR libstdc++/55503
	* testsuite/30_threads/condition_variable/members/53841.cc: Add
	hppa*-hp-hpux11* to -pthread dg-options.

From-SVN: r194021
2012-12-01 18:25:11 +00:00
H.J. Lu
63a0fbbc67 Fix a typo in PR debug/53860 ChangeLog
From-SVN: r194019
2012-12-01 08:10:30 -08:00
Zdenek Sojka
9bd76a9f54 Add a testcase for PR debug/r53860
PR debug/r53860
	* g++.dg/debug/pr53860.C: New test.

From-SVN: r194018
2012-12-01 08:08:41 -08:00
Richard Sandiford
8d317164c4 * MAINTAINERS: Remove self as RTL optimization maintainer.
From-SVN: r194017
2012-12-01 09:36:06 +00:00
Alessandro Fanfarillo
4d382327d5 re PR fortran/46897 ([OOP] type-bound defined ASSIGNMENT(=) not used for derived type component in intrinsic assign)
2012-12-01   Alessandro Fanfarillo <alessandro.fanfarillo@gmail.com>
             Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/46897
	* gfortran.h : Add bit field 'defined_assign_comp' to
	symbol_attribute structure.
	Add primitive for gfc_add_full_array_ref.
	* expr.c (gfc_add_full_array_ref): New function.
	(gfc_lval_expr_from_sym): Call new function.
	* resolve.c (add_comp_ref): New function.
	(build_assignment): New function.
	(get_temp_from_expr): New function
	(add_code_to_chain): New function
	(generate_component_assignments): New function that calls all
	the above new functions.
	(resolve_code): Call generate_component_assignments.
	(check_defined_assignments): New function.
	(resolve_fl_derived0): Call check_defined_assignments.
	(gfc_resolve): Reset component_assignment_level in case it is
	left in a bad state by errors.


	* resolve.c (is_sym_host_assoc, resolve_procedure_interface,
	resolve_contained_fntype, resolve_procedure_expression,
	resolve_elemental_actual, resolve_global_procedure,
	is_scalar_expr_ptr, gfc_iso_c_func_interface, resolve_function,
	set_name_and_label, gfc_iso_c_sub_interface,
	resolve_specific_s0, resolve_operator, compare_bound_mpz_t,
	gfc_resolve_character_operator, resolve_typebound_function,
	gfc_resolve_expr, forall_index, remove_last_array_ref,
	conformable_arrays, resolve_allocate_expr,
	resolve_allocate_deallocate, resolve_select_type,
	resolve_transfer, resolve_where,
	gfc_resolve_where_code_in_forall, gfc_resolve_forall_body,
	gfc_count_forall_iterators, resolve_values,
	resolve_bind_c_comms, resolve_bind_c_derived_types,
	gfc_verify_binding_labels, apply_default_init,
	build_default_init_expr, apply_default_init_local,
	resolve_fl_var_and_proc, resolve_fl_procedure,
	gfc_resolve_finalizers, check_generic_tbp_ambiguity,
	resolve_typebound_intrinsic_op, resolve_typebound_procedure,
	resolve_typebound_procedures, ensure_not_abstract,
	resolve_fl_derived0, resolve_fl_parameter, resolve_symbol,
	resolve_equivalence_derived): Remove trailing white space.
	* gfortran.h : Remove trailing white space.

2012-12-01   Alessandro Fanfarillo <alessandro.fanfarillo@gmail.com>
             Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/46897
	* gfortran.dg/defined_assignment_1.f90: New test.
	* gfortran.dg/defined_assignment_2.f90: New test.
	* gfortran.dg/defined_assignment_3.f90: New test.
	* gfortran.dg/defined_assignment_4.f90: New test.
	* gfortran.dg/defined_assignment_5.f90: New test.


Co-Authored-By: Paul Thomas <pault@gcc.gnu.org>

From-SVN: r194016
2012-12-01 08:00:22 +00:00
GCC Administrator
2eb342ee03 Daily bump.
From-SVN: r194015
2012-12-01 00:18:32 +00:00
Ian Lance Taylor
8ccaff35d4 compiler: Fix bug converting unnamed types with placeholders.
From-SVN: r194011
2012-12-01 00:15:16 +00:00
Jakub Jelinek
55ad8d77ab re PR c++/55542 (g++ segmentation fault)
PR c++/55542
	* pt.c (make_ith_pack_parameter_name): Return NULL if
	name is NULL.
	(tsubst_decl): Call make_ith_pack_parameter_name even if
	DECL_NAME is NULL.

	* g++.dg/cpp0x/vt-55542.C: New test.

From-SVN: r194010
2012-12-01 00:51:26 +01:00
Eric Botcazou
a37d67b621 stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): Deal with degenerate cases where the bitsize isn't positive.
* stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator): Deal
	with degenerate cases where the bitsize isn't positive.  Rework comment.

From-SVN: r194009
2012-11-30 22:36:07 +00:00
Doug Evans
d5651dcfe8 validate_failures.py: Add support for @include, @remove directives in manifest files.
* testsuite-management/validate_failures.py: Add support for @include,
	@remove directives in manifest files.

From-SVN: r194008
2012-11-30 21:53:34 +00:00
Doug Evans
f6fce9517e validate_failures.py: Add function GetManifestPath.
* testsuite-management/validate_failures.py: Add function
	GetManifestPath.  New global _MANIFEST_SUBDIR.

From-SVN: r194007
2012-11-30 20:06:27 +00:00
David Edelsohn
3cdc1f858d * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Define.
From-SVN: r194004
2012-11-30 14:02:53 -05:00
David Edelsohn
b09cba37bf xcoffout.c (xcoff_tls_data_section_name): Define.
* xcoffout.c (xcoff_tls_data_section_name): Define.
        * xcoffout.h (xcoff_tls_data_section_name): Declare.
        * config/rs6000/rs6000.c (tls_data_section): Define.
        (TARGET_USE_BLOCKS_FOR_DECL_P): Define.
        (rs6000_legitimize_tls_address_aix): New function.
        (rs6000_legitimize_tls_address): Use new function for AIX.
        (rs6000_cannot_force_const_mem): No sum in TLS TOC symbols.
        Allow TLS symbol in constant pool other than ELF.
        (rs6000_legitimate_address_p): Allow TLS symbol other than ELF.
        (rs6000_assemble_visibility): Do not emit anything on AIX.
        (output_toc): Handle alias of TLS general-dynamic symbols.
        Emit TLS decorations on symbols.
        (rs6000_use_blocks_for_decl_p): New function.
        (rs6000_xcoff_output_tls_section_asm_op): New function.
        (rs6000_xcoff_asm_init_sections): Initialize tls_data_section.
        (rs6000_xcoff_select_section): Choose tls_data_section for
        thread-local storage.
        (rs6000_xcoff_file_start): Generate xcoff_tls_data_section_name.
        (rs6000_legitimate_constant_p): Allow TLS symbol other than ELF.
        * config/rs6000/rs6000.md (tls_tls_): Restrict to ELF.
        (tls_get_tpointer): New.
        (tle_get_tpointer_internal): New.
        (tls_get_addr<mode>): New.
        (tls_get_addr_internal<mode>): New.

From-SVN: r194003
2012-11-30 12:54:07 -05:00
Teresa Johnson
2730ada7a0 Revised patch to ensure that histograms from the profile summary are streamed...
Revised patch to ensure that histograms from the profile summary are streamed
through the LTO files so that the working set can be computed for use in
downstream optimizations.

2012-11-30  Teresa Johnson  <tejohnson@google.com>

	* lto-cgraph.c (output_profile_summary): Stream out sum_all
	and histogram.
	(input_profile_summary): Stream in sum_all and histogram.
	(merge_profile_summaries): Merge sum_all and histogram, and
	change to use RDIV.
	(input_symtab): Call compute_working_sets after merging
	summaries.
	* gcov-io.c (gcov_histo_index): Make extern for compiler.
	* gcov-io.h (gcov_histo_index): Ditto.
	* profile.c (compute_working_sets): Remove static keyword.
	* profile.h (compute_working_sets): Ditto.
	* Makefile.in (lto-cgraph.o): Depend on profile.h.

From-SVN: r193999
2012-11-30 16:47:04 +00:00
Martin Jambor
c1ed6a0172 re PR middle-end/52890 (Revision 185336 causes 10% degradation on cpu2000 benchmark 252.eon)
2012-11-30  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/52890
	PR tree-optimization/55415
	PR tree-optimization/54386
	PR target/55448
	* ipa-prop.c (ipa_modify_call_arguments): Be optimistic when
	get_pointer_alignment_1 returns false and the base was not a
	dereference.
	* tree-sra.c (access_precludes_ipa_sra_p): New parameter req_align,
	added check for required alignment.  Update the user.

	* testsuite/gcc.dg/ipa/ipa-sra-7.c: New test.
	* testsuite/gcc.dg/ipa/ipa-sra-8.c: Likewise.
	* testsuite/gcc.dg/ipa/ipa-sra-9.c: Likewise.
	* testsuite/gcc.target/i386/pr55448.c: Likewise.

From-SVN: r193998
2012-11-30 17:11:33 +01:00
Kyrylo Tkachov
d7b30db8d8 MAINTAINERS (Write After Approval): Add myself.
2012-11-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r193997
2012-11-30 15:55:36 +00:00
Ramana Radhakrishnan
148413a4eb For attribute named "type", subdivide "alu" into "alu_reg" and "simple_alu_imm".
Set type attribute as appropriate in RTL patterns with immediate operands.
Update pipeline descriptions to use the new values of type attribute.

gcc/

2012-11-30  Ramana Radhakrishnan <Ramana.Radhakrishnan@arm.com>
            Greta Yorsh  <Greta.Yorsh@arm.com>

        * config/arm/arm.md (type): Subdivide "alu" into "alu_reg"
        and "simple_alu_imm".
        (core_cycles): Use new names.
        (arm_addsi3): Set type of patterns to use to alu_reg and simple_alu_imm.
        (addsi3_compare0, addsi3_compare0_scratch): Likewise.
        (addsi3_compare_op1, addsi3_compare_op2, compare_addsi2_op0): Likewise.
        (compare_addsi2_op1, arm_subsi3_insn, subsi3_compare0): Likewise.
        (subsi3_compare, arm_decscc,arm_andsi3_insn): Likewise.
        (thumb1_andsi3_insn, andsi3_compare0_scratch): Likewise.
        (zeroextractsi_compare0_scratch,iorsi3_insn,iorsi3_compare0): Likewise.
        (iorsi3_compare0_scratch, arm_xorsi3, thumb1_xorsi3_insn): Likewise.
        (xorsi3_compare0, xorsi3_compare0_scratch): Likewise.
        (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Likewise.
        (thumb1_zero_extendqisi2_v, arm_zero_extendqisi2_v6): Likewise.
	(thumb1_extendhisi2, arm_extendqisi_v6): Likewise.
	(thumb1_extendqisi2, arm_movsi_insn): Likewise.
        (movsi_compare0, movhi_insn_arch4, movhi_bytes): Likewise.
        (arm_movqi_insn, thumb1_movqi_insn, arm_cmpsi_insn): Likewise.
        (movsicc_insn, if_plus_move, if_move_plus): Likewise.
        * config/arm/neon.md (neon_mov<mode>/VDX): Likewise.
        (neon_mov<mode>/VQXMOV): Likewise.
        * config/arm/arm1020e.md (1020alu_op): Likewise.
        * config/arm/fmp626.md (mp626_alu_op): Likewise.
        * config/arm/fa726te.md (726te_alu_op): Likewise.
        * config/arm/fa626te.md (626te_alu_op): Likewise.
        * config/arm/fa606te.md (606te_alu_op): Likewise.
        * config/arm/fa526.md (526_alu_op): Likewise.
        * config/arm/cortex-r4.md (cortex_r4_alu, cortex_r4_mov): Likewise.
        * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
        * config/arm/cortex-a9.md (cprtex_a9_dp): Likewise.
        * config/arm/cortex-a8.md (cortex_a8_alu, cortex_a8_mov): Likewise.
        * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
        * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
        * config/arm/arm926ejs.md (9_alu_op): Likewise.
        * config/arm/arm1136jfs.md (11_alu_op): Likewise.
        * config/arm/arm1026ejs.md (alu_op): Likewise.


Co-Authored-By: Greta Yorsh <greta.yorsh@arm.com>

From-SVN: r193996
2012-11-30 15:17:48 +00:00
Richard Biener
5ba5e8ecc3 tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids here.
2012-11-30  Richard Biener  <rguenther@suse.de>

	* tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids
	here.

From-SVN: r193993
2012-11-30 12:46:00 +00:00
Richard Biener
bb35348a1b tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating value_ids.
2012-11-30  Richard Biener  <rguenther@suse.de>

	* tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating
	value_ids.

From-SVN: r193992
2012-11-30 10:58:22 +00:00
Richard Biener
7dcdcbc0a6 tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating value_ids.
2012-11-30  Richard Biener  <rguenther@suse.de>

	* tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating
	value_ids.

From-SVN: r193991
2012-11-30 10:58:05 +00:00