Commit graph

107465 commits

Author SHA1 Message Date
Joseph Myers
8d4c5ac696 configure.ac (target_tools): Remove target-groff.
* configure.ac (target_tools): Remove target-groff.
	(native_only): Remove target-groff.
	(hppa*64*-*-*): Don't disable byacc.
	(i[[3456789]]86-*-mingw32*): Remove commented-out noconfigdirs
	setting.
	(*-*-kaos*): Don't skip target-librx and target-groff.
	(*-*-netware*): Don't skip target-libmudflap.
	(*-*-tpf*): Don't skip target-libmudflap.
	(sh*-*-pe|mips*-*-pe|*arm-wince-pe): Don't condition configured
	directories on the host.
	(ia64*-*-*vms*): Don't skip tix.
	(sh-*-* | sh64-*-*): Don't condition skipped directories on the
	host.
	* configure: Regenerate.

From-SVN: r171446
2011-03-25 11:13:08 +00:00
Kai Tietz
ac9a30aeb2 ChangeLog gcc/
2011-03-25  Kai Tietz  <ktietz@redhat.com>

	* c-typeck.c (comptypes_internal): Replace target
	hook call of comp_type_attributes by version in tree.c file.
	* gimple.c (gimple_types_compatible_p_1): Likewise.
	* tree-ssa.c (useless_type_conversion_p): Likewise.
	* tree.c (build_type_attribute_qual_variant): Likewise.
	(attribute_value_equal): New static helper function.
	(comp_type_attributes): New function.
	(merge_attributes): Use attribute_value_equal for comparison.
	(attribute_list_contained): Likewise.
	* tree.h (comp_type_attributes): New prototype.

ChangeLog cp/
2011-03-25  Kai Tietz  <ktietz@redhat.com>

        * decl.c (decls_match): Replace target hook
        call of comp_type_attributes by version in tree.c file.
        * search.c (check_final_overrider): Likewise.
        * typeck.c (structural_comptypes): Likewise.

From-SVN: r171445
2011-03-25 11:28:12 +01:00
Richard Guenther
afdac11699 tree-cfg.c (verify_gimple_assign_unary): Drop special casing of complex types at -O0.
2011-03-25  Richard Guenther  <rguenther@suse.de>

	* tree-cfg.c (verify_gimple_assign_unary): Drop special casing
	of complex types at -O0.
	(verify_gimple_assign_binary): Likewise.
	(verify_gimple_assign_ternary): Likewise.

From-SVN: r171444
2011-03-25 10:16:02 +00:00
Paolo Carlini
ff2e697a03 random.h (negative_binomial_distribution<>:: negative_binomial_distribution(_IntType, double), [...]): Tweak construction of _M_gd.
2011-03-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/random.h (negative_binomial_distribution<>::
	negative_binomial_distribution(_IntType, double),
	negative_binomial_distribution<>::
	negative_binomial_distribution(const param_type&)): Tweak
	construction of _M_gd.
	* include/bits/random.tcc (negative_binomial_distribution<>::
	operator()): Adjust.

From-SVN: r171443
2011-03-25 10:06:33 +00:00
Mark Wielaard
ec6165f852 Remove deprecated DW_FORM_sig8 define.
* dwarf2.h (dwarf_form): Remove deprecated DW_FORM_sig8 define.

    * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
    (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.

From-SVN: r171442
2011-03-25 10:06:13 +00:00
Mark Wielaard
2a5ac39a3e re PR debug/48041 (dwarf2out emits unnecessary null byte in empty .debug_abbrev section)
PR debug/48041
* dwarf2out.c (output_abbrev_section): Only write table when
abbrev_die_table_in_use > 1.

From-SVN: r171441
2011-03-25 09:35:41 +00:00
Ian Lance Taylor
fe052134f6 Remove closed function. Fix tuple receive in select.
From-SVN: r171440
2011-03-25 05:14:57 +00:00
Richard Henderson
e533b2a4c9 alpha: Use byte-manipulation helper expanders more often.
From-SVN: r171439
2011-03-24 17:52:40 -07:00
Richard Henderson
0b2a73678b alpha: Remove all big-endian code.
From-SVN: r171438
2011-03-24 17:52:34 -07:00
Richard Henderson
315b2bef11 alpha: Unify movdi patterns with enabled attribute.
From-SVN: r171437
2011-03-24 17:35:01 -07:00
Richard Henderson
67102517d5 alpha: Unify SF, DF, QI, HI, SI mode moves with enabled attribute.
For floating-point, this involves in addition conditionalizing the
definition of the "f" register constraint.

From-SVN: r171436
2011-03-24 17:34:56 -07:00
Richard Henderson
6aba5cb489 alpha: Cleanup sign extension patterns.
Don't bother implementing sub-word sign-extensions for !BWX,
since we need to use DImode intermediates anyway.

From-SVN: r171435
2011-03-24 17:34:46 -07:00
GCC Administrator
84ee3e269a Daily bump.
From-SVN: r171434
2011-03-25 00:18:41 +00:00
Richard Henderson
bdfb351b02 alpha: Unify zero_extend patterns with attribute enabled.
From-SVN: r171429
2011-03-24 17:09:36 -07:00
Richard Henderson
6abe71eb3d alpha: Revert change to input_operand for 32-bit vms.
From-SVN: r171428
2011-03-24 17:04:19 -07:00
Ian Lance Taylor
8039ca76a5 Update to current version of Go library.
From-SVN: r171427
2011-03-24 23:46:17 +00:00
Nathan Froyd
7114321ee4 function.c (instantiate_virtual_regs): Use FOR_EACH_BB and FOR_BB_INSNS_SAFE to iterate through insns.
* function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
	FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
	(pass_instantiate_virtual_regs): Require PROP_cfglayout.
	* passes.c (init_optimization_passes): Move
	pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.

From-SVN: r171426
2011-03-24 23:37:02 +00:00
Eric Botcazou
c867956724 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
From-SVN: r171425
2011-03-24 21:56:38 +00:00
Uros Bizjak
2717305800 i386.md (ix86_print_operand): Output DFmode const_double correctly.
* config/i386/i386.md (ix86_print_operand): Output DFmode const_double
	correctly.

From-SVN: r171424
2011-03-24 21:52:09 +01:00
Jakub Jelinek
6f0c9f06a5 re PR debug/48204 (ICE: in decimal_to_decnumber, at dfp.c:115 with -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre -g)
PR debug/48204
	* simplify-rtx.c (simplify_const_unary_operation): Call
	real_convert when changing mode class with FLOAT_EXTEND.

	* gcc.dg/dfp/pr48204.c: New test.

From-SVN: r171423
2011-03-24 19:58:58 +01:00
Paolo Bonzini
50e373331f configure.ac: Remove references to mt-mep, mt-netware, mt-wince.
2011-03-24  Paolo Bonzini  <pbonzini@redhat.com>

        * configure.ac: Remove references to mt-mep, mt-netware,
        mt-wince.
        * Makefile.def: Add all-utils soft dependencies.
        * Makefile.tpl: Remove GDB_NLM_DEPS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.

config:
2011-03-24  Paolo Bonzini  <pbonzini@redhat.com>

        * mt-mep: Remove, obsolete.
        * mt-netware: Remove, obsolete.
        * mt-wince: Remove, obsolete.
        * mt-v810: Remove, unused.

From-SVN: r171422
2011-03-24 17:47:30 +00:00
Paolo Bonzini
7d77a76835 configure.ac: Do not include mh-x86omitfp.
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Do not include mh-x86omitfp.
	* configure: Regenerate.

config:
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

	* mh-x86omitfp: Remove.

From-SVN: r171421
2011-03-24 17:29:51 +00:00
Nick Clifton
662666e541 rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
* config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
	(ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
	* config/rx/rx.c (rx_option_override): Set align_jumps,
	align_loops and align_labels if not set by the user.
	(rx_align_for_label): New function.
	(rx_max_skip_for_label): New function.
	(TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
	(TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
	(TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
	(TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
	* config/rx/rx-protos.h (rx_align_for_label): Add prototype.

From-SVN: r171420
2011-03-24 17:25:28 +00:00
Paolo Bonzini
3dc84509f0 configure.ac: Remove empty cases.
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Remove empty cases.
	* configure: Regenerate.

From-SVN: r171419
2011-03-24 17:23:41 +00:00
Richard Sandiford
2b99b2b8d2 re PR rtl-optimization/48263 (build fails for cris-elf in libgfortran)
gcc/
	PR rtl-optimization/48263
	* optabs.c (expand_binop_directly): Reinstate convert_modes code
	and original commutative_p handling.  Use maybe_gen_insn.

From-SVN: r171418
2011-03-24 17:23:18 +00:00
Paolo Bonzini
1e2c3ec441 Makefile.def: Add dependency from termcap to gdb.
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>
 
	* Makefile.def: Add dependency from termcap to gdb.
	* Makefile.in: Regenerate.

config:
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

        * mh-cygwin: Remove obsolete variables and dependencies.

From-SVN: r171417
2011-03-24 17:11:26 +00:00
Paolo Bonzini
73a817c422 configure.ac: Remove all mentions of mh-sysv4 and mh-solaris.
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Remove all mentions of mh-sysv4 and mh-solaris.
	* configure: Regenerate.
	* Makefile.def: Remove all mentions of X11_FLAGS_TO_PASS.
	* Makefile.tpl: Likewise.
	* Makefile.in: Regenerate.

config:
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

	* mh-sysv4: Remove.
	* mh-solaris: Remove.

From-SVN: r171416
2011-03-24 17:07:44 +00:00
Paolo Bonzini
43ecab845c configure.ac: Remove all mentions of tentative_cc.
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Remove all mentions of tentative_cc.
	* configure: Regenerate.

From-SVN: r171415
2011-03-24 16:58:56 +00:00
Paolo Bonzini
6db794ec5b mh-sysv4: Remove AR_CFLAGS.
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

	* mh-sysv4: Remove AR_CFLAGS.

From-SVN: r171414
2011-03-24 16:53:52 +00:00
Andreas Krebbel
ccecd6ea88 reload.c (find_reloads_subreg_address): Add address_reloaded parameter and return true there if...
2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* reload.c (find_reloads_subreg_address): Add address_reloaded
	parameter and return true there if the full address has been
	reloaded.
	(find_reloads_toplev): Pass address_reloaded flag.
	(find_reloads_address_1): Don't use address_reloaded parameter.

From-SVN: r171413
2011-03-24 16:50:31 +00:00
Joseph Myers
111eeb6ee5 * configure.ac (i[[3456789]]86-*-vsta, i[[3456789]]86-*-go32*,
i[[3456789]]86-*-beos*, powerpc-*-beos*, m68k-hp-hpux*,
	m68k-apollo-sysv*, m68k-apollo-bsd*, m88k-dg-dgux*,
	m88k-harris-cxux*, m88k-motorola-sysv*, mips*-dec-ultrix*,
	mips*-nec-sysv4*, mips*-sgi-irix4*, mips*-*-sysv4*, mips*-*-sysv*,
	i370-ibm-opened*, i[[3456789]]86-*-sysv5*, i[[3456789]]86-*-dgux*,
	i[[3456789]]86-ncr-sysv4.3*, i[[3456789]]86-ncr-sysv4*,
	i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*,
	i[[3456789]]86-*-udk*, vax-*-ultrix2*, m68k-sun-sunos*,
	hppa*-*-hiux*, *-*-hiux*, rs6000-*-lynxos*, *-*-sysv4*,
	*-*-rhapsody*): Remove host cases.
	* configure: Regenerate.

config:
	* mh-cxux, mh-decstation, mh-dgux386, mh-lynxrs6k, mh-ncr3000,
	mh-necv4, mh-sco, mh-sysv5: Remove.

From-SVN: r171412
2011-03-24 16:49:56 +00:00
Paolo Carlini
113b21bdaf random.h (negative_binomial_distribution<>:: negative_binomial_distribution(_IntType, double), [...]): Fix construction of _M_gd.
2011-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/random.h (negative_binomial_distribution<>::
	negative_binomial_distribution(_IntType, double),
	negative_binomial_distribution<>::
	negative_binomial_distribution(const param_type&)): Fix
	construction of _M_gd.
	* include/bits/random.tcc (negative_binomial_distribution<>::
	operator()): Fix computation, per Leger's algorithm.
	* testsuite/util/testsuite_random.h (discrete_pdf,
	negative_binomial_pdf, poisson_pdf, uniform_int_pdf): New.
	(binomial_pdf): Swap last two parameters.
	* testsuite/26_numerics/random/discrete_distribution/
	operators/values.cc: New.
	* testsuite/26_numerics/random/negative_binomial_distribution/
	operators/values.cc: Likewise.
	* testsuite/26_numerics/random/poisson_distribution/
	operators/values.cc: Likewise.
	* testsuite/26_numerics/random/uniform_int_distribution/
	operators/values.cc: Likewise.
	* testsuite/26_numerics/random/binomial_distribution/
	operators/values.cc: Adjust.

From-SVN: r171411
2011-03-24 16:49:19 +00:00
Jeff Law
67295642aa tree-ssa-live.c (remove_unused_scope_block_p): Remove set but unused variable "ann".
* tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
	unused variable "ann".
	(remove_unused_locals): Likewise.

	* tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
	statement.

	* cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
	after it is freed.

From-SVN: r171408
2011-03-24 10:44:17 -06:00
Joseph Myers
3a4639b4a6 * gcc.pot: Regenerate.
From-SVN: r171407
2011-03-24 16:43:55 +00:00
Joseph Myers
a7a510197f * cpplib.pot: Regenerate.
From-SVN: r171406
2011-03-24 16:43:18 +00:00
Andreas Krebbel
212aa74f9e s390.c (s390_preferred_reload_class): Return NO_REGS for invalid symbolic addresses.
2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
	for invalid symbolic addresses.
	(s390_secondary_reload): Don't use s390_check_symref_alignment for
	larl operands.

From-SVN: r171405
2011-03-24 16:38:24 +00:00
Steve Ellcey
bf3b3396ef re PR target/48209 (FAIL: gcc.c-torture/execute/pr47917.c execution)
2011-03-24  Steve Ellcey  <sje@cup.hp.com>

	PR target/48209
	* gcc.c-torture/execute/pr47917.c: Move this...
	* gcc.dg/torture/pr47917.c: to here and add xfails.

From-SVN: r171404
2011-03-24 16:29:18 +00:00
Eric Botcazou
fe784e0dd8 fold-const.c (fold_ternary_loc): Preserve the location (if any) of the argument in calls to fold_truth_not_expr.
* fold-const.c (fold_ternary_loc): Preserve the location (if any) of
	the argument in calls to fold_truth_not_expr.

From-SVN: r171403
2011-03-24 16:15:22 +00:00
Eric Botcazou
e3c4580e40 einfo.ads (Size_Depends_On_Discriminant): Adjust description.
* einfo.ads (Size_Depends_On_Discriminant): Adjust description.
	* layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
	to compute Set_Size_Depends_On_Discriminant.
	(Layout_Type): Call it on array types in back-end layout mode.
	* sem_util.adb (Requires_Transient_Scope): Return true for array
	types only if the size depends on the value of discriminants.
	* gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
	type if the RHS is a call to a function that returns an unconstrained
	type with default discriminant.

From-SVN: r171402
2011-03-24 16:08:50 +00:00
Paolo Carlini
cf4a36dfe1 moveable2.cc: Tweak Copyright years.
2011-03-22  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/21_strings/basic_string/cons/char/moveable2.cc: Tweak
	Copyright years.
	* testsuite/21_strings/basic_string/cons/wchar_t/moveable2.cc:
	Likewise.

From-SVN: r171401
2011-03-24 15:57:57 +00:00
Nathan Froyd
63ee8641f8 tree.c (record_node_allocation_statistics): New function.
* tree.c (record_node_allocation_statistics): New function.
	(make_node_stat, copy_node_stat, build_string): Call it.
	(make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
	(build1_stat, build_omp_clause): Likewise.

From-SVN: r171399
2011-03-24 15:23:23 +00:00
Eric Botcazou
abbc8c7b15 trans.c (gnat_to_gnu): Remove obsolete case of non-conversion to the nominal result type at the end.
* gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
	non-conversion to the nominal result type at the end.

From-SVN: r171398
2011-03-24 15:15:44 +00:00
Richard Sandiford
61be2a1ce3 builtins.c (expand_movstr): Fix endp == 1 adjustment after last commit.
gcc/
	* builtins.c (expand_movstr): Fix endp == 1 adjustment after
	last commit.

From-SVN: r171397
2011-03-24 15:13:45 +00:00
Richard Guenther
a881aaa769 re PR tree-optimization/48271 (ICE: SIGSEGV in tree_ssa_dominator_optimize (tree-ssa-dom.c:2964) with -O -ftree-vrp -fno-guess-branch-probability -fnon-call-exceptions)
2011-03-24  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/48271
	* tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
	blocks that still exist.

	* g++.dg/torture/pr48271.C: New testcase.

From-SVN: r171395
2011-03-24 14:43:16 +00:00
Richard Guenther
dbaa912cc8 re PR middle-end/48270 (New test failures)
2011-03-24  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/48270
	* tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
	not free datarefs before ddrs.

From-SVN: r171394
2011-03-24 14:39:36 +00:00
Eric Botcazou
1d60cc5529 tree-sra.c (build_ref_for_offset): Strip useless type conversions from the address built for a reference with...
* tree-sra.c (build_ref_for_offset): Strip useless type conversions
	from the address built for a reference with variable offset.

From-SVN: r171393
2011-03-24 14:21:27 +00:00
Uros Bizjak
c78dd519d3 re PR target/48237 (ICE: in final_scan_insn, at final.c:2651 with -fselective-scheduling2 -mtune=core2)
PR target/48237
	* config/i386/i386.md (*movdf_internal_rex64): Do not split
	alternatives that can be handled with movq or movabsq insn.
	(*movdf_internal): Disable for !TARGET_64BIT.
	(*movdf_internal_nointeger): Ditto.
	* config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.

testsuite/ChangeLog:

	PR target/48237
	* gcc.target/i386/pr48237.c: New test.

From-SVN: r171391
2011-03-24 14:35:26 +01:00
Joseph Myers
4569f85ec0 configure.ac (ppc*-*-pe): Remove host case.
* configure.ac (ppc*-*-pe): Remove host case.
	(strongarm-*-coff | xscale-*-coff, strongarm-*-elf* |
	xscale-*-elf*, thumb-*-coff, thumb-*-elf, thumb-*-pe, ep9312-*-elf
	| ep9312-*-coff, parisc*64*-*-linux*, ppc*-*-pe): Remove target
	cases.
	* configure: Regenerate.

From-SVN: r171390
2011-03-24 13:24:31 +00:00
Nathan Froyd
b25b9e8fd2 system.h (FUNCTION_ARG, [...]): Poison.
* system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
	(FUNCTION_ARG_ADVANCE): Likewise.
	* tm.texi.in: Change references to them to hook references.
	* tm.texi: Regenerate.
	* targhooks.c (default_function_arg): Eliminate check for target
	macro.
	(default_function_incoming_arg): Likewise.
	(default_function_arg_advance): Likewise.
	* target.def (function_arg, function_incoming_arg): Change to
	DEFHOOK.
	(function_arg_advance): Likewise.
	* target-def.h: Eliminate FUNCTION_INCOMING_ARG check.

From-SVN: r171389
2011-03-24 13:03:06 +00:00
Richard Guenther
190b2187b6 re PR middle-end/48269 (Incorrect fortify warning for a packed struct member)
2011-03-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/48269
	* tree-object-size.c (addr_object_size): Do not double-account
	for MEM_REF offsets.

	* gcc.dg/builtin-object-size-10.c: New testcase.

From-SVN: r171388
2011-03-24 12:44:58 +00:00