Commit Graph

111939 Commits

Author SHA1 Message Date
Andreas Krebbel
1907712374 reload.c (find_reloads): Set operand_mode to Pmode for address operands consisting of just a CONST_INT.
2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* reload.c (find_reloads): Set operand_mode to Pmode for address
	operands consisting of just a CONST_INT.

From-SVN: r179099
2011-09-22 18:54:34 +00:00
Steven G. Kargl
22deafa844 re PR testsuite/50487 (FAIL: gfortran.dg/bessel_6.f90)
2011-09-22  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR testsuite/50487
	* gfortran.dg/bessel_6.f90: Fix tolerance test.

From-SVN: r179097
2011-09-22 18:28:14 +00:00
Paolo Carlini
3acb1e03c4 re PR c++/50371 ([C++0x] std::nullptr_t rejected as non-type template-parameter)
/cp
2011-09-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50371
	* pt.c (invalid_nontype_parm_type_p): Handle NULLPTR_TYPE.

/testsuite
2011-09-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50371
	* g++.dg/cpp0x/nullptr24.C: New.

From-SVN: r179096
2011-09-22 18:20:53 +00:00
Uros Bizjak
63d045e14e re PR target/50482 (internal compiler error at recog.c:2137)
PR target/50482
	* config/i386/i386.c (ix86_expand_sse_movcc): When generating
	blendv, force op_true to register if it doesn't satisfy
	nonimmediate_operand predicate.

testsuite/ChangeLog:

	PR target/50482
	* gcc.target/i386/pr50482.c: New test.

From-SVN: r179094
2011-09-22 19:35:00 +02:00
Joseph Myers
163f8b7167 pad-2.c, [...]: Skip if multilib options contain different -march= from dg-options.
* gcc.target/i386/pad-2.c, gcc.target/i386/pad-3.c,
	gcc.target/i386/pad-4.c, gcc.target/i386/pad-5a.c,
	gcc.target/i386/pad-5b.c, gcc.target/i386/pad-6a.c,
	gcc.target/i386/pad-6b.c, gcc.target/i386/pad-7.c,
	gcc.target/i386/pad-8.c, gcc.target/i386/pad-9.c,
	gcc.target/i386/pad-10.cm gcc.target/i386/vect-double-1.c: Skip if
	multilib options contain different -march= from dg-options.

From-SVN: r179091
2011-09-22 15:59:07 +01:00
Jonathan Wakely
056a392778 re PR c++/50344 (friend declaration confused by const qualifier)
/cp
2011-09-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50344
	* friend.c (make_friend_class): cv-qualification is ok in a
	friend declaration.

/testsuite
2011-09-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50344
	* g++.dg/template/friend52.C: New.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r179088
2011-09-22 14:16:27 +00:00
Tristan Gingold
e7dd5b57c4 mkfixinc.sh (target): Remove alpha-vms from particular targets.
2011-09-22  Tristan Gingold  <gingold@adacore.com>

	* mkfixinc.sh (target): Remove alpha-vms from particular targets.

From-SVN: r179087
2011-09-22 14:00:17 +00:00
Richard Sandiford
3576f984e8 re PR middle-end/50113 (soft-float MIPS64 compiler is miscompiling ggc-page.c)
gcc/
	PR middle-end/50113
	PR middle-end/50061
	* calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
	get the locate.where_pad value for register-only arguments.
	* config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
	(arm_pad_reg_upward): Handle null types.

From-SVN: r179085
2011-09-22 12:26:41 +00:00
Jan Hubicka
9e990d1436 * ipa-inline-analysis.c: Fix overly long lines.
From-SVN: r179084
2011-09-22 12:20:22 +00:00
Jan Hubicka
5ee53a0674 ipa-inline-transform.c (inline_call): Always update jump functions after inlining.
* ipa-inline-transform.c (inline_call): Always update jump functions
	after inlining.
	* ipa-inline.c (ipa_inline): Likewise; do not call
	ipa_create_all_structures_for_iinln.
	(ipa_inline): Always free jump functions.
	* ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove
	hack.
	(remap_edge_predicates): Fix pasto.
	(inline_merge_summary): Remove nlined edge predicate; remove hack.
	(inline_analyze_function): Always initialize jump functions.
	(inline_generate_summary): Likewise.
	(inline_write_summary): Always write jump functions when ipa-cp
	is not doing that.
	(inline_read_summary): Always read jump functions when ipa-cp
	is not doing that.
	* ipa-prop.c (iinlining_processed_edges): Remove.
	(update_indirect_edges_after_inlining): Do not use
	iinlining_processed_edges; instead set param_index to -1.
	(propagate_info_to_inlined_callees): Only try to indirect inlining
	when asked to do so; update jump functions of indirect calls, too;
	remove jump functions of the inlined edge.
	(ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
	(ipa_create_all_structures_for_iinln): Remove.
	(ipa_free_all_structures_after_iinln): Do not free
	iinlining_processed_edges.
	* ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.

From-SVN: r179083
2011-09-22 11:57:43 +00:00
Richard Sandiford
aa0b3f8f8d predicates.md (expandable_comparison_operator): New predicate, extracted from...
gcc/
	* config/arm/predicates.md (expandable_comparison_operator): New
	predicate, extracted from...
	(arm_comparison_operator): ...here.
	* config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
	(cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
	(movdfcc): Use expandable_comparison_operator.

gcc/testsuite/
	* gcc.target/arm/cmp-1.c: New test.
	* gcc.target/arm/cmp-2.c: Likewise.

From-SVN: r179082
2011-09-22 10:33:24 +00:00
Georg-Johann Lay
6ebe2d6cf6 re PR target/50447 ([avr] Better support of AND, OR, XOR and PLUS with constant integers for 16- and 32-bit values)
PR target/50447
	PR target/50465
	* config/avr/avr-protos.h (avr_out_bitop): New prototype.
	(avr_popcount_each_byte): New prototype.
	* config/avr/avr.c (avr_popcount): New static function.
	(avr_popcount_each_byte): New function.
	(avr_out_bitop): New function.
	(adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
	avr_out_bitop.  Cleanup code.
	* config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
	(Ca4, Co4, Cx4): New constraints.
	* config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
	alternative.
	(andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
	(andsi3, iorsi3, xorsi3): Ditto.
	(*iorhi3_clobber, *iorsi3_clobber): Remove insns.

From-SVN: r179081
2011-09-22 09:55:13 +00:00
Janus Weil
58c1ae3667 re PR fortran/41733 (Proc-pointer conformance checks: Elemental-proc-ptr => non-elemental-proc)
2011-09-22  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41733
	* expr.c (gfc_check_pointer_assign): Check for nonintrinsic elemental
	procedures.
	* interface.c (gfc_compare_interfaces): Rename 'intent_flag'. Check
	for PURE and ELEMENTAL attributes.
	(compare_actual_formal): Remove pureness check here.


2011-09-22  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41733
	* gfortran.dg/impure_actual_1.f90: Modified error message.
	* gfortran.dg/proc_ptr_32.f90: New.
	* gfortran.dg/proc_ptr_33.f90: New.

From-SVN: r179080
2011-09-22 11:32:11 +02:00
Ira Rosen
29ed4920e8 re PR middle-end/50451 (internal compiler error at tree-vect-loop.c:3557)
PR tree-optimization/50451
        * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
        constant operands in reduction.
        (vect_get_slp_defs): Don't create vector operand for NULL scalar
        operand.

From-SVN: r179079
2011-09-22 07:21:07 +00:00
David S. Miller
f0d0709913 sparc.c (sparc_vis_init_builtins): Do not mark fpack16, fpack32, fpackfix as const.
* config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
	fpack16, fpack32, fpackfix as const.

From-SVN: r179078
2011-09-22 00:09:38 -07:00
Ian Lance Taylor
9d49f4d0ab Update Go library to release r60.1.
From-SVN: r179076
2011-09-22 04:47:32 +00:00
Ian Lance Taylor
270aae3307 Add html/testdata files accidentally omitted.
From-SVN: r179075
2011-09-22 04:02:11 +00:00
Oleg Endo
b7cf894ffa sh.c (andcosts): Renamed to and_xor_ior_costs.
* config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
	Added AND special case.  Adapted comments.
	(sh_rtx_costs): Added XOR and IOR case.

From-SVN: r179073
2011-09-22 00:41:38 +00:00
David S. Miller
f4d7f82866 Add pixel compare VIS intrinsics.
* config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
	UNSPEC_FCMPEQ): New unspec codes.
	(fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
	fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
	* config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
	new pixel compare VIS patterns.
	* config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
	__vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
	__vis_fcmpeq16, __vis_fcmpeq32): New.
	* doc/extend.texi: Document new pixel compare VIS intrinsics.

From-SVN: r179072
2011-09-21 17:22:41 -07:00
GCC Administrator
bc35416dfc Daily bump.
From-SVN: r179071
2011-09-22 00:19:02 +00:00
Benjamin Kosnik
696d4bc16e Makefile.am (stamp-epub-docbook): Fix image directory location.
2011-09-21  Benjamin Kosnik  <bkoz@redhat.com

	* doc/Makefile.am (stamp-epub-docbook): Fix image directory location.
	* doc/Makefile.in: Regenerate.

From-SVN: r179066
2011-09-21 23:46:36 +00:00
Jan Hubicka
5f9f351709 ipa-inline-analsis.c (compute_inline_parameters): Set cfun and current_function_decl.
* ipa-inline-analsis.c (compute_inline_parameters): Set
	cfun and current_function_decl.

From-SVN: r179065
2011-09-21 23:11:08 +00:00
Jan Hubicka
b439486d5e ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
* ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
	* ipa-inline.h (estimate_edge_time): Fix pasto.
	* ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.

From-SVN: r179064
2011-09-21 23:10:07 +00:00
Ian Lance Taylor
e9fcc70748 Update Go testsuite to release r60.
* go.test/go-test.exp (errchk): Add special case for bug332.
	(go-gc-tests): Add special cases for bug347 and bug348.  Recognize
	some more test lines.

From-SVN: r179063
2011-09-21 23:05:39 +00:00
Ian Lance Taylor
2d778bb7ab Increase default libgo test timeout.
From-SVN: r179062
2011-09-21 23:02:31 +00:00
Ian Lance Taylor
a5682d1525 Better handling of unexpected EOF in parser.
From-SVN: r179060
2011-09-21 21:06:42 +00:00
Uros Bizjak
70f3cf699d i386-3.C: Remove duplicated dg-options.
* g++.dg/other/i386-3.C: Remove duplicated dg-options.
	* g++.dg/other/i386-4.C: Remove dg-requre-effective-target directive.
	* g++.dg/other/i386-8.C: Ditto.
	* g++.dg/other/pr34435.C: Ditto.
	* g++.dg/other/pr39496.C: Ditto.
	* g++.dg/other/mmintrin.C: Ditto.

From-SVN: r179059
2011-09-21 23:02:48 +02:00
Ian Lance Taylor
fe53b3ddec Better error message for shift context types.
Fix shift of floating point constant to generate constant.

From-SVN: r179057
2011-09-21 20:24:17 +00:00
Jakub Jelinek
b17e0d797c i386.c (ix86_expand_sse_movcc): Use blendvps, blendvpd and pblendvb if possible.
* config/i386/i386.c (ix86_expand_sse_movcc): Use
	blendvps, blendvpd and pblendvb if possible.

	* gcc.dg/vect/vect-cond-7.c: New test.
	* gcc.target/i386/sse4_1-cond-1.c: New test.
	* gcc.target/i386/avx-cond-1.c: New test.

From-SVN: r179055
2011-09-21 20:24:18 +02:00
Ian Lance Taylor
e6f8e59016 Support nil maps.
From-SVN: r179054
2011-09-21 17:37:50 +00:00
Uros Bizjak
bd352290bc re PR target/50464 (Using -Ofast -march=bdver1 results in internal compiler error: in extract_insn, at recog.c:2109)
PR target/50464
	* config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
	operand 1 predicate to register_operand and operand 2 predicate
	to nonimmediate_operand.
	* config/i386/i386.c (ix86_expand_sse_movcc): When generating
	xop_pcmov, force op_true to register.  Also, force op_false to
	register if it doesn't satisfy nonimmediate_operand predicate.

testsuite/ChangeLog:

	PR target/50464
	* g++.dg/other/pr50464.C: New test.

From-SVN: r179053
2011-09-21 19:37:00 +02:00
Kirill Yukhin
655d515781 Add MULX intrinsics.
gcc/

2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>

	* config/i386/bmi2intrin.h (_mulx_u64): New.
	(_mulx_u32): Ditto.

gcc/testsuite/

2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>

	* gcc.target/i386/bmi2-mulx32-2.c: New test.
	* gcc.target/i386/bmi2-mulx32-2a.c: Ditto.
	* gcc.target/i386/bmi2-mulx64-2.c: Ditto.
	* gcc.target/i386/bmi2-mulx64-2a.c: Ditto.

From-SVN: r179050
2011-09-21 08:57:04 -07:00
Joseph Myers
88cc02ff69 Makefile.am (FLAGS_TO_PASS): Define.
* Makefile.am (FLAGS_TO_PASS): Define.
	* Makefile.in: Regenerate.

From-SVN: r179048
2011-09-21 15:36:03 +01:00
Eric Botcazou
5da9694ccb * gnat.dg/opt19.adb: New test.
From-SVN: r179047
2011-09-21 13:47:25 +00:00
Jan Hubicka
116b9c0785 re PR tree-optimization/50433 (ACATS c460010 fails to compile)
PR tree-optimization/50433
	* ipa-inline-analysis.c (eliminated_by_inlining_prob): Use get_base_address.

From-SVN: r179046
2011-09-21 13:10:31 +00:00
Jakub Jelinek
bdbebb7dc6 sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use nonimmediate_operand instead of register_operand predicate for operands 1...
* config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
	nonimmediate_operand instead of register_operand predicate for operands
	1 and 2, force them into registers if expanding them as comparison.
	(<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
	V8HImode force into register just operand 1.

From-SVN: r179045
2011-09-21 13:39:23 +02:00
Paolo Carlini
fd1e62c239 limits.cc: Replace everywhere __int128_t -> __int128, and __uint128_t -> unsigned __int128.
2011-09-21  Paolo Carlini  <paolo.carlini@oracle.com>

	* src/limits.cc: Replace everywhere __int128_t -> __int128, and
	__uint128_t -> unsigned __int128.
	* include/std/type_traits: Likewise.
	* include/std/limits: Likewise.
	* testsuite/18_support/numeric_limits/dr559.cc: Likewise.
	* testsuite/18_support/numeric_limits/lowest.cc: Likewise.
	* testsuite/18_support/numeric_limits/40856.cc: Likewise.
	* testsuite/18_support/numeric_limits/max_digits10.cc: Likewise.
	* testsuite/util/testsuite_common_types.h: Likewise.
	* testsuite/20_util/make_signed/requirements/typedefs-1.cc: Likewise.
	* testsuite/20_util/make_signed/requirements/typedefs-2.cc: Likewise.
	* testsuite/20_util/is_floating_point/value.cc: Likewise.
	* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Likewise.
	* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Likewise.
	* testsuite/20_util/is_signed/value.cc: Likewise.
	* testsuite/20_util/is_unsigned/value.cc: Likewise.
	* testsuite/20_util/is_integral/value.cc: Likewise.
	* config/abi/pre/gnu.ver: Likewise.
	* acinclude.m4: Likewise.
	* configure: Regenerate.
	* config.h.in: Likewise.

From-SVN: r179044
2011-09-21 11:23:11 +00:00
Terry Guo
66d9474406 neon-thumb2-move.c: Skip the warning message on arch conflict when...
* gcc.target/arm/neon-thumb2-move.c: Skip the warning message
        on arch conflict when testing case on targets other than armv7-a.

From-SVN: r179043
2011-09-21 10:06:29 +00:00
Paolo Carlini
086f3b9a02 re PR c++/50454 (Unexpected problems with -pedantic / -pedantic-errors and __int128 and unsigned __int128 specializations)
/cp
2011-09-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50454
	* decl.c (grokdeclarator): Consistently handle both __int128
	and unsigned __int128 with -pedantic; suppress diagnostic in
	system headers.

/testsuite
2011-09-21  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50454
	* g++.dg/ext/int128-1.C: New.
	* g++.dg/ext/int128-2.C: Likewise.
	* g++.dg/ext/int128-2.h: Likewise.

From-SVN: r179042
2011-09-21 09:56:45 +00:00
Georg-Johann Lay
e3e285857d re PR target/45099 ([avr] Warning could be issued for use of register variables that will fail.)
PR target/45099
	* config/avr/avr.c (avr_function_arg_advance): Change error to
	warning if a fixed register is needed as function argument.

From-SVN: r179040
2011-09-21 09:40:13 +00:00
Georg-Johann Lay
88cb6dd256 * config/avr/avr.c (avr_function_arg_advance): Undo r179037.
From-SVN: r179038
2011-09-21 08:27:49 +00:00
Georg-Johann Lay
8dab2ba518 re PR target/50449 ([avr] Loading some 32-bit constants not optimal)
PR target/50449
	PR target/50465
	* config/avr/avr.md (adjust_len): New insn attribute.
	(*reload_insi, *reload_insf): Use it.
	(*movsi, *movsf): Use new interface of output_movsisf.
	* config/avr/avr-protos.h (output_movsisf): Change prototype.
	* config/avr/avr.c (output_movsisf): Ditto.
	(adjust_insn_length): Use insn attribute "adjust_len" to adjust
	lengths of insns *reload_insi, *reload_insf.
	(output_reload_insisf_1): New static function.
	(output_reload_insisf): Use it.

From-SVN: r179037
2011-09-21 08:21:57 +00:00
David S. Miller
3653988e46 sparc.c (def_builtin): Change from macro into function.
* config/sparc/sparc.c (def_builtin): Change from macro into function.
	(def_builtin_const): New.
	(sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
	other than alignaddr and falignaddr.

From-SVN: r179035
2011-09-21 01:13:36 -07:00
Tom de Vries
0c51472758 final.c (final): Handle if JUMP_LABEL is not LABEL_P.
2011-09-21  Tom de Vries  <tom@codesourcery.com>

	* final.c (final): Handle if JUMP_LABEL is not LABEL_P.

From-SVN: r179034
2011-09-21 07:41:22 +00:00
Jakub Jelinek
76bafb07a9 * MAINTAINERS (sparc port): Remove myself.
From-SVN: r179033
2011-09-21 08:13:33 +02:00
Ian Lance Taylor
f6cde0add6 Fix channels with element type of size zero.
From-SVN: r179030
2011-09-21 00:56:28 +00:00
GCC Administrator
6200761b77 Daily bump.
From-SVN: r179029
2011-09-21 00:19:05 +00:00
Ian Lance Taylor
311255f492 Fix typo in error message.
From-SVN: r179025
2011-09-21 00:11:31 +00:00
H.J. Lu
bbc0f2aa16 Replace "must be be" with "must be".
2011-09-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/50469
	* gfortran.dg/storage_size_2.f08: Replace "must be be" with
	"must be".

From-SVN: r179022
2011-09-20 15:59:49 -07:00
Ian Lance Taylor
02a728277f Improve error for undefined name in imported package.
Avoid emitting some followon errors.

From-SVN: r179020
2011-09-20 22:34:59 +00:00