Commit Graph

120224 Commits

Author SHA1 Message Date
Tobias Burnus
3b4adfb357 diagnostic.c (diagnostic_append_note): Also call va_end when inhibit_notes_p is true.
2012-11-12  Tobias Burnus  <burnus@net-b.de>

        * diagnostic.c (diagnostic_append_note): Also call va_end when
        inhibit_notes_p is true.

From-SVN: r193428
2012-11-12 12:00:58 +01:00
Ed Smith-Rowland
f27f1e9895 Index declspecs.locations by ds_typedef rather than ds_thread.
From-SVN: r193426
2012-11-12 05:35:05 +00:00
Bin Cheng
4b8181c587 gcse.c (struct bb_data): Add new fields, old_pressure, live_in and backup.
* gcse.c (struct bb_data): Add new fields, old_pressure, live_in
	and backup.
	(get_regno_pressure_class): Add prototype.
	(update_bb_reg_pressure): New.
	(should_hoist_expr_to_dom): Add new parameter from.
	Monitor the change of reg pressure and use it to drive hoisting.
	(hoist_code): Update LIVE and reg pressure information.
	(calculate_bb_reg_pressure): Initialize live_in and backup.

	* gcc.dg/hoist-register-pressure-3.c: New test.

From-SVN: r193425
2012-11-12 02:17:38 +00:00
Oleg Endo
6ba9e40135 md.texi (Standard Pattern Names For Generation): Fix swapped sine and cosine operands in the sincos description.
* doc/md.texi (Standard Pattern Names For Generation): Fix swapped
	sine and cosine operands in the sincos description.

From-SVN: r193424
2012-11-12 00:50:11 +00:00
Oleg Endo
dfa228f028 re PR target/53512 (SH Target: Allow fsca and fsrra for non-SH4A)
PR target/53512
	* config/sh/sh.md (sincossf3): Fix swapped sin and cos operands.

From-SVN: r193423
2012-11-12 00:27:56 +00:00
GCC Administrator
578a9947ad Daily bump.
From-SVN: r193422
2012-11-12 00:17:22 +00:00
Oleg Endo
358ac8ff1c sh4a-fprun.c: Add test_sinf and test_cosf noinline wrappers around sinf and cosf.
* gcc.target/sh/sh4a-fprun.c: Add test_sinf and test_cosf noinline
	wrappers around sinf and cosf.

From-SVN: r193419
2012-11-11 23:58:06 +00:00
H.J. Lu
ed15a7eeaa Remove "!" from riF->o alternative
* config/i386/i386.md (*movti_internal_rex64): Remove "!" from
	riF->o alternative.

From-SVN: r193418
2012-11-11 15:50:45 -08:00
Eric Botcazou
5b1efcb719 sparc.h (AS_NIAGARA3_FLAG): Tweak.
* config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
	* config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.

From-SVN: r193416
2012-11-11 21:56:27 +00:00
Eric Botcazou
0207fa9006 re PR rtl-optimization/55247 (internal compiler error: Max. number of generated reload insns per insn is achieved (90))
PR rtl-optimization/55247
	PR middle-end/55259
	* emit-rtl.c (adjust_address_1): If POINTERS_EXTEND_UNSIGNED > 0,
	handle ZERO_EXTEND.
	* recog.c (offsettable_address_addr_space_p): Likewise.

From-SVN: r193415
2012-11-11 21:52:49 +00:00
Andreas Schwab
92eba4000d chapter.txml: Remove whitespace inside <keyword>.
* doc/xml/chapter.txml: Remove whitespace inside <keyword>.
* doc/xml/class.txml: Likewise.
* doc/xml/manual/abi.xml: Likewise.
* doc/xml/manual/algorithms.xml: Likewise.
* doc/xml/manual/allocator.xml: Likewise.
* doc/xml/manual/appendix_contributing.xml: Likewise.
* doc/xml/manual/appendix_free.xml: Likewise.
* doc/xml/manual/appendix_porting.xml: Likewise.
* doc/xml/manual/atomics.xml: Likewise.
* doc/xml/manual/auto_ptr.xml: Likewise.
* doc/xml/manual/backwards_compatibility.xml: Likewise.
* doc/xml/manual/bitmap_allocator.xml: Likewise.
* doc/xml/manual/build_hacking.xml: Likewise.
* doc/xml/manual/codecvt.xml: Likewise.
* doc/xml/manual/concurrency.xml: Likewise.
* doc/xml/manual/concurrency_extensions.xml: Likewise.
* doc/xml/manual/configure.xml: Likewise.
* doc/xml/manual/containers.xml: Likewise.
* doc/xml/manual/ctype.xml: Likewise.
* doc/xml/manual/debug.xml: Likewise.
* doc/xml/manual/debug_mode.xml: Likewise.
* doc/xml/manual/diagnostics.xml: Likewise.
* doc/xml/manual/extensions.xml: Likewise.
* doc/xml/manual/internals.xml: Likewise.
* doc/xml/manual/intro.xml: Likewise.
* doc/xml/manual/io.xml: Likewise.
* doc/xml/manual/iterators.xml: Likewise.
* doc/xml/manual/locale.xml: Likewise.
* doc/xml/manual/localization.xml: Likewise.
* doc/xml/manual/messages.xml: Likewise.
* doc/xml/manual/mt_allocator.xml: Likewise.
* doc/xml/manual/numerics.xml: Likewise.
* doc/xml/manual/parallel_mode.xml: Likewise.
* doc/xml/manual/policy_data_structures.xml: Likewise.
* doc/xml/manual/prerequisites.xml: Likewise.
* doc/xml/manual/profile_mode.xml: Likewise.
* doc/xml/manual/shared_ptr.xml: Likewise.
* doc/xml/manual/status_cxx1998.xml: Likewise.
* doc/xml/manual/status_cxx2011.xml: Likewise.
* doc/xml/manual/status_cxxtr1.xml: Likewise.
* doc/xml/manual/status_cxxtr24733.xml: Likewise.
* doc/xml/manual/strings.xml: Likewise.
* doc/xml/manual/support.xml: Likewise.
* doc/xml/manual/test.xml: Likewise.
* doc/xml/manual/using_exceptions.xml: Likewise.
* doc/xml/manual/utilities.xml: Likewise.
* doc/xml/spine.xml: Likewise.

From-SVN: r193414
2012-11-11 21:17:43 +00:00
Andreas Schwab
919bbe6e1e acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Also check for /usr/share/xml/docbook/stylesheet/nwalsh5/current.
* acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Also check for
/usr/share/xml/docbook/stylesheet/nwalsh5/current.
* configure: Regenerate.

From-SVN: r193413
2012-11-11 21:01:01 +00:00
Steven Bosscher
159520acf7 re PR middle-end/55263 (ICE: pre_and_rev_post_order_compute, at cfganal.c:875 with -O -fgcse-after-reload -fnon-call-exceptions)
gcc/
	PR middle-end/55263
	* postreload.c (rest_of_handle_postreload): With non-call exceptions,
	if edges are purged call cleanup_cfg to remove unreachable blocks.

testsuite/
	PR middle-end/55263
	* g++.dg/pr55263.C: New test.

From-SVN: r193412
2012-11-11 20:29:11 +00:00
Sandra Loosemore
18abab9fee extend.texi: Copy-edit to use "built-in function" instead of "builtin", per GCC coding standards.
2012-11-11  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi: Copy-edit to use "built-in function" instead
	of "builtin", per GCC coding standards.  Also use consistent
	capitalization in titles of sections describing built-in functions.

From-SVN: r193411
2012-11-11 14:47:00 -05:00
Martin Jambor
324e93f12e re PR tree-optimization/55238 (ICE in find_aggregate_values_for_callers_subset, at ipa-cp.c:2908 building zlib)
PR tree-optimization/55238
	* ipa-cp.c (agg_pass_through_permissible_p): New function.
	(propagate_aggs_accross_jump_function): Use it.
	(find_aggregate_values_for_callers_subset): Likewise and relax an
	assert.

	* testsuite/gcc.dg/torture/pr55238.c: New test.

From-SVN: r193410
2012-11-11 19:35:27 +00:00
Uros Bizjak
ebbcbc2ed3 re PR target/47440 (Use LCM for vzeroupper insertion)
PR target/47440
	* config/i386/i386.c (check_avx256_stores): Remove.
	(ix86_check_avx256_register): New.
	(ix86_avx_u128_mode_needed): Use ix86_check_avx256_register.
	Check the whole RTX for 256bit registers using for_each_rtx.
	(ix86_check_avx_stores): New.
	(ix86_avx_u128_mode_after): Change mode of CALL RTX to AVX_U128_CLEAN
	if there are no 256bit registers used in the function return register.
	(ix86_avx_u128_mode_entry): Use ix86_check_avx256_register.
	(ix86_avx_u128_mode_exit): Ditto.

From-SVN: r193409
2012-11-11 20:17:17 +01:00
John David Anglin
2059f70d74 pr54920.c: Add "-fno-common" option on hppa*-*-hpux*.
* gcc.dg/torture/pr54920.c: Add "-fno-common" option on hppa*-*-hpux*.
	* c-c++-common/torture/vector-subscript-1.c: Likewise.
	* c-c++-common/torture/vector-subscript-2.c: Likewise.

From-SVN: r193408
2012-11-11 19:16:00 +00:00
Jan Hubicka
82bacf11f9 * gcc.dg/tree-ssa/cunroll-1.c: Fix bogus testcase.
From-SVN: r193407
2012-11-11 18:16:01 +00:00
Jan Hubicka
52843a4726 re PR fortran/48636 (Enable more inlining with -O2 and higher)
PR middle-end/48636
	* ipa-inline.c (want_inline_small_function_p): Take aray index hint.
	(edge_badness): Likewise.
	* ipa-inline.h (inline_hints_vals): Add array_index and comments.
	(inline_summary_: Add ARRAY_INDEX.
	* ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint.
	(reset_inline_summary): Handle array_index hint.
	(inline_node_duplication_hook): Likewise.
	(dump_inline_summary): Likewise.
	(array_index_predicate): New function.
	(estimate_function_body_sizes): Use it.
	(estimate_node_size_and_time): Use array_index hint.
	(inline_merge_summary, inline_read_section): Likewise.

From-SVN: r193406
2012-11-11 18:14:35 +00:00
Gerald Pfeifer
6e7e4ca2e8 policy_data_structures.xml: Update reference for select.
* doc/xml/manual/policy_data_structures.xml: Update reference
	for select.

From-SVN: r193405
2012-11-11 09:57:14 +00:00
Sandra Loosemore
40cbe8d223 extend.texi: Copy-edit to use "bit-field" consistently instead of "bitfield" or "bit field".
2012-11-10  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi: Copy-edit to use "bit-field" consistently
	instead of "bitfield" or "bit field".

From-SVN: r193403
2012-11-10 21:51:47 -05:00
Sandra Loosemore
6f46cb6350 extend.texi: Copy-edit to fix incorrect hyphenation phrases involving "bit"...
2012-11-10  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi: Copy-edit to fix incorrect hyphenation phrases
	involving "bit", "byte", "word", "precision", and "floating"
	modifiers.

From-SVN: r193402
2012-11-10 21:27:05 -05:00
Jason Merrill
c61e8502c1 cp-demangle.c (d_unqualified_name): Handle abi tags here.
* cp-demangle.c (d_unqualified_name): Handle abi tags here.
	(d_name): Not here.

From-SVN: r193401
2012-11-10 21:11:15 -05:00
Sandra Loosemore
c417597c1f extend.texi: Copy-edit to fix incorrect uses of "which" and "that" throughout the file.
2012-11-10  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/extend.texi: Copy-edit to fix incorrect uses of "which" 
	and "that" throughout the file.

From-SVN: r193400
2012-11-10 20:45:25 -05:00
GCC Administrator
f47cf0ba24 Daily bump.
From-SVN: r193399
2012-11-11 00:17:48 +00:00
Ian Lance Taylor
7e03f00470 reflect: Fix bug comparing struct field types.
From-SVN: r193395
2012-11-10 20:24:04 +00:00
H.J. Lu
c76b1db623 Compile pr55247.c with -mno-sse -mno-mmx
* gcc.target/i386/pr55247.c: Require maybe_x32 target.  Add
	-mno-sse -mno-mmx to dg-options.  Reformat.

From-SVN: r193394
2012-11-10 10:54:58 -08:00
Andrew Pinski
01a88d3557 re PR driver/55202 (Building a combined tree is broken for LTO)
2012-11-10  Andrew Pinski  <apinski@cavium.com>

        PR bootstrap/55202
        * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new"
        or "collect-ld".
        * configure: Regenerate.

From-SVN: r193393
2012-11-10 10:32:23 -08:00
Jason Merrill
734f50238f * many: Replace uses of __GXX_EXPERIMENTAL_CXX0X__ with __cplusplus.
From-SVN: r193392
2012-11-10 12:27:22 -05:00
Eric Botcazou
3467ad5ce6 expr.c (store_field): Remove TYPE parameter.
* expr.c (store_field): Remove TYPE parameter.  Remove block of code
	dealing with BLKmode in registers.  Reimplement this support using
	pseudo-registers and bit-field techniques.
	(store_constructor_field): Remove TYPE parameter and adjust calls to
	store_field.
	(expand_assignment): Adjust calls to store_field.  Add comment.
	(store_expr): Add comment.
	(store_constructor): Adjust calls to store_constructor_field.
	(expand_expr_real_2): Adjust call to store_field.

From-SVN: r193391
2012-11-10 15:32:32 +00:00
David Edelsohn
35b07bb39e unused1.C: Skip on AIX.
* g++.dg/other/unused1.C: Skip on AIX.
        * g++.dg/other/anon5.C: Allow Undefined to be capitalized. Ignore
        extra message on AIX.

From-SVN: r193390
2012-11-10 09:34:42 -05:00
David Edelsohn
65a08b07f2 scal-to-vec2.c: Ignore non-standard ABI message.
* c-c++-common/scal-to-vec2.c: Ignore non-standard ABI message.
        * c-c++-common/vector-compare-1.c: Same.
        * c-c++-common/vector-compare-2.c: Same.

From-SVN: r193389
2012-11-10 09:26:54 -05:00
Uros Bizjak
d1bc38e623 re PR rtl-optimization/55247 (internal compiler error: Max. number of generated reload insns per insn is achieved (90))
PR target/55247
	* config/i386/i386.md (*movti_internal_rex64): Add "!" to riF->o
	alternative.

testsuite/ChangeLog:

	PR target/55247
	* gcc.target/i386/pr55247.c: New test.

From-SVN: r193388
2012-11-10 12:28:12 +01:00
Andrew Pinski
a22e573980 20121108-1.c: New test.
2012-11-09  Andrew Pinski  <apinski@cavium.com>

	* gcc.c-torture/execute/20121108-1.c: New test.

From-SVN: r193386
2012-11-09 19:23:22 -08:00
GCC Administrator
6b5540a5d5 Daily bump.
From-SVN: r193385
2012-11-10 00:18:05 +00:00
Ed Smith-Rowland
a4a0016d60 Implement a flag -fext-numeric-literals that allows control of whether GNU...
Implement a flag -fext-numeric-literals that allows control of whether GNU
numeric suffix extensions are parsed or passed to C++ as user-defined literals.

From-SVN: r193382
2012-11-10 00:08:49 +00:00
Eric Botcazou
97996ede57 * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
From-SVN: r193377
2012-11-09 21:52:29 +00:00
Eric Botcazou
f7f78ad80a re PR other/52438 (Some files still GPLv2)
PR other/52438
	* s-taspri-lynxos.ads: Delete.
	* s-osinte-kfreebsd-gnu.ads: Change license to GPL V3+.
	* s-tpopsp-rtems.adb: Likewise.
	* s-osinte-rtems.adb: Likewise.

From-SVN: r193375
2012-11-09 21:42:02 +00:00
Siddhesh Poyarekar
52d1392f8d Warray-bounds-3.c (bar): Keep array access within bounds for ABDAY, DAY, ABMON, MON, AM_PM.
* gcc.dg/Warray-bounds-3.c (bar): Keep array access within
        bounds for ABDAY, DAY, ABMON, MON, AM_PM.
        * gcc.dg/vect/pr22506.c (foo): Reduce loop iterations to within
        array bounds.
        * gcc.dg/vect/pr34005.c (XdmcpUnwrap): Likewise.

From-SVN: r193373
2012-11-09 12:55:53 -07:00
Aldy Hernandez
96dd21067c + * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path.
+       * g++.dg/tm/pr47530-2.C: Adjust for uninstrumented code path.
+       * g++.dg/tm/pr47530.C: Same.

From-SVN: r193372
2012-11-09 18:52:36 +00:00
Richard Henderson
b49c27c320 Use hook_bool_void_true for TARGET_LRA_P
From-SVN: r193370
2012-11-09 09:20:12 -08:00
Torvald Riegel
64fbcc74a3 Add HTM fastpath and use Intel RTM for it on x86.
* beginend.cc (htm_fastpath): New.
	(gtm_thread::begin_transaction, _ITM_commitTransaction,
	_ITM_commitTransactionEH): Add HTM fastpath handling.
	* config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
	* config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
	* config/x86/target.h (htm_available, htm_init, htm_begin_success,
	htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
	* configure.tgt: Add -mrtm to XCFLAGS.
	* method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
	(gtm_thread::serialirr_mode): Add HTM fastpath handling.
	* libitm_i.h (htm_fastpath, dispatch_htm): Declare.
	* retry.cc (parse_default_method): Add HTM method parsing.
	(gtm_thread::number_of_threads_changed): Use HTM by default if
	available.

From-SVN: r193369
2012-11-09 17:04:40 +00:00
Jason Merrill
2a28e76a78 re PR c++/54859 (constexpr in template alias rejected as non-constant)
PR c++/54859
	* pt.c (check_instantiated_arg): Don't complain about dependent args.

From-SVN: r193368
2012-11-09 11:14:48 -05:00
Jason Merrill
7dbb85a793 Add C++ attribute abi_tag and -Wabi-tag option.
gcc/
	* attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST.
gcc/c-family/
	* c.opt (Wabi-tag): New.
gcc/cp/
	* tree.c (cxx_attribute_table): Add abi_tag attribute.
	(check_abi_tag_redeclaration, handle_abi_tag_attribute): New.
	* class.c (find_abi_tags_r, check_abi_tags): New.
	(check_bases, check_field_decl): Call check_abi_tags.
	* decl.c (redeclaration_error_message): Call
	check_abi_tag_redeclaration.
	* mangle.c (tree_string_cmp, write_abi_tags): New.
	(write_unqualified_name): Call write_abi_tags.
include/
	* demangle.h (enum demangle_component_type): Add
	DEMANGLE_COMPONENT_TAGGED_NAME.
libiberty/
	* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
	(d_make_comp, d_find_pack, d_print_comp): Likewise.
	(d_abi_tags): New.
	(d_name): Call it.

From-SVN: r193367
2012-11-09 11:14:37 -05:00
Jason Merrill
52dccf7ac9 remove redundant definition of IN_CHARGE_NAME
From-SVN: r193366
2012-11-09 11:14:25 -05:00
Vladimir Makarov
821b75770b re PR rtl-optimization/55154 (ICE: in curr_insn_transform, at lra-constraints.c:2702 with custom flags)
2012-11-09  Vladimir Makarov  <vmakarov@redhat.com>

	PR tree-optimization/55154
	* lra-int.h (LRA_LOSER_COST_FACTOR, LRA_MAX_REJECT): New macros.
	* lra.c (setup_operand_alternative): Use them.
	* lra-constraints.c (LOSER_COST_FACTOR, MAX_OVERALL_COST_BOUND):
	Remove.
	(process_alt_operands): Use LRA_LOSER_COST_FACTOR and
	LRA_MAX_REJECT.  Accumulate reject instead of setting for
	non-const.
	(curr_insn_transform): Initialize best_losers and best_overall by
	INT_MAX.

2012-11-09  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/55154
	* gcc.target/i386/pr55154.c: New test.

From-SVN: r193364
2012-11-09 15:33:19 +00:00
Andi Kleen
ad7bac3130 Handle target specific memory models in C frontend
get_atomic_generic_size would error out for
__atomic_store(...,__ATOMIC_HLE_RELEASE)

Just mask it out. All the memory orders are checked completely
in builtins.c anyways.

I'm not sure what that check is for, it could be removed in theory.

Passed bootstrap and test suite on x86-64

gcc/c-family/:
2012-11-09  Andi Kleen  <ak@linux.intel.com>

	PR 55139
	* c-common.c (get_atomic_generic_size): Mask with
        MEMMODEL_MASK

From-SVN: r193363
2012-11-09 15:24:25 +00:00
Christian Bruel
962e3ae2aa sh.c (sh_can_use_simple_return_p): Enable with -freorder-blocks-and-partition.
* config/sh/sh.c (sh_can_use_simple_return_p): Enable with
        -freorder-blocks-and-partition.

From-SVN: r193362
2012-11-09 15:32:55 +01:00
Vladimir Makarov
4c3ee1f918 re PR rtl-optimization/55151 (ICE: in assign_by_spills, at lra-assigns.c:1217 with -fPIC)
2012-11-09  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/55151
	* gcc.dg/pr55151.c: Move ...
	* gcc.target/i386/pr55151.c: ... here.

From-SVN: r193361
2012-11-09 14:28:40 +00:00
Kenneth Zadeck
33ffb5c5ab rtl.h (CONST_SCALAR_INT_P): New macro.
2012-11-09  Kenneth Zadeck <zadeck@naturalbridge.com>

	* rtl.h (CONST_SCALAR_INT_P): New macro.
   	* cfgexpand.c (expand_debug_locations): Changed to use
	CONST_SCALAR_INT_P macro.
	* combine.c (try_combine, subst, make_extraction,
	gen_lowpart_for_combine): Ditto.
	* cselib.c (entry_and_rtx_equal_p, rtx_equal_for_cselib_1): Ditto.
	* dwarf2out.c (loc_descriptor): Ditto.
	* emit-rtl.c (gen_lowpart_common): Ditto.
	* ira-costs.c (record_reg_classes, record_address_regs): Ditto.
	* ira-lives.c (single_reg_class): Ditto.
	* recog.c (simplify_while_replacing, asm_operand_ok,
	constrain_operands): Ditto.
	* reload.c (find_reloads): Ditto.
	* simplify-rtx.c (simplify_unary_operation_1,
	simplify_const_unary_operation, simplify_binary_operation_1,
	simplify_const_binary_operation, simplify_relational_operation_1,
	simplify_subreg): Ditto.

From-SVN: r193360
2012-11-09 13:18:49 +00:00