Commit Graph

116085 Commits

Author SHA1 Message Date
Thomas Koenig 631cfe3083 re PR fortran/52668 (Incorrect unused warning for USE associating variable in common block)
2012-04-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52668
	* module.c:  Only mark symbols as use_only if they have been
	imported via an only list.

2012-04-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52668
	* gfortran.dg/use_only_6.f90: New test.

From-SVN: r186199
2012-04-06 18:31:11 +00:00
Mike Stump 5f250b068e re PR testsuite/50722 (FAIL: gcc.dg/pr49994-3.c (test for excess errors))
PR testsuite/50722
	* gcc.dg/pr49994-3.c: Use -w to squelch non-portable warnings.

From-SVN: r186194
2012-04-06 15:02:21 +00:00
Jason Merrill c5c8755af0 re PR c++/52596 ([C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153)
PR c++/52596
	* semantics.c (finish_non_static_data_member): In templates, pass
	the decl to build_qualified_name.
	* tree.c (lvalue_kind) [SCOPE_REF]: Handle FIELD_DECL.

From-SVN: r186187
2012-04-06 09:25:45 -04:00
Jason Merrill b258592a08 xvalue comment
From-SVN: r186186
2012-04-06 09:25:37 -04:00
Oleg Endo bdb7ddcc32 sh.c (hi_const): Remove.
* config/sh/sh.c (hi_const): Remove.
	(find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
	of hi_const.

From-SVN: r186185
2012-04-06 12:33:24 +00:00
Oleg Endo 10c17a58ae sh-protos.h (sh_expand_t_scc): Change return type from int to bool.
* config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
	to bool.
	* config/sh/sh.c (sh_expand_t_scc): Likewise.
	* config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
	calling sh_expand_t_scc.

From-SVN: r186184
2012-04-06 12:29:30 +00:00
Oleg Endo aaf701c5e1 sh-protos.h (fp_zero_operand, [...]): Use bool as return type.
* config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
	nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
	sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
	reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
	sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
	sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
	check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
	sh2a_is_function_vector_call): Use bool as return type.
	(sh_pass_in_reg_p): Remove.
	* config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
	flow_dependent_p, sh2a_function_vector_p, expand_block_move,
	expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
	sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
	sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
	sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
	fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
	sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p, 
	sh_loads_bankedreg_p): Use bool as return type.
	(nonpic_symbol_mentioned_p): Use bool as return type.  Remove
	'register' modifier.

From-SVN: r186183
2012-04-06 12:25:03 +00:00
Matt Turner 3805a93e4d install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
gcc/
2012-04-04  Matt Turner  <mattst88@gmail.com>

	* doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".

From-SVN: r186179
2012-04-06 08:22:54 +00:00
Eric Botcazou 22be591854 ia64.c (ia64_load_pair_ok): Return 0 if the second member of the destination isn't also a FP_REGS register.
* config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
	of the destination isn't also a FP_REGS register.

From-SVN: r186177
2012-04-06 06:44:18 +00:00
Teresa Johnson 7b38ee83df Avoid instructions that incur expensive length-changing prefix (LCP) stalls on some x86-64 implementations...
Avoid instructions that incur expensive length-changing prefix (LCP) stalls
on some x86-64 implementations, notably Core2 and Corei7. Specifically, a move of
a 16-bit constant into memory requires a length-changing prefix and can incur significant
penalties. Modified an old patch written by H.J to split such instructions
during peephole2.

2012-04-05  Teresa Johnson  <tejohnson@google.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.h (ix86_tune_indices): Add
	X86_TUNE_LCP_STALL.
	* config/i386/i386.md (move immediate to memory peephole2):
	Add cases for HImode move when LCP stall avoidance is needed.
	* config/i386/i386.c (initial_ix86_tune_features): Initialize
	X86_TUNE_LCP_STALL entry.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>

From-SVN: r186176
2012-04-06 05:03:49 +00:00
GCC Administrator 939c8f05b8 Daily bump.
From-SVN: r186174
2012-04-06 00:17:42 +00:00
Uros Bizjak 4bdd6fa67e re PR target/52882 (ICE in memory_address_length, at config/i386/i386.c:23373)
PR target/52882
	* config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
	CONST_INT operands, zero-extended with AND.

testsuite/ChangeLog:

	PR target/52882
	* gcc.target/i386/pr52882.c: New test.

From-SVN: r186170
2012-04-05 23:47:16 +02:00
Oleg Endo 9b9ad23f88 re PR target/50751 (SH Target: Displacement addressing does not work for QImode and HImode)
PR target/50751
	* config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
	first argument instead of mode size.  Move displacement calculations
	to ...
	(mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask): 
	... these new functions.
	(disp_adjust): Remove max_mov_disp field.
	(sh_legitimate_index_p): Use max_mov_insn_displacement and
	mov_insn_alignment_mask.
	(sh_address_cost): Use max_mov_insn_displacement.

From-SVN: r186169
2012-04-05 18:43:45 +00:00
Andrew Stubbs 14f986ed7a arm.md (arch): Add neon_onlya8 and neon_nota8.
2012-04-05  Andrew Stubbs  <ams@codesourcery.com>

	gcc/
	* config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
	(arch_enabled): Handle new arch types.
	(one_cmpldi2): Add NEON support.

From-SVN: r186167
2012-04-05 14:37:45 +00:00
Richard Guenther f3b249e5d1 lto-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Remove definition.
2012-04-05  Richard Guenther  <rguenther@suse.de>

	* lto-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Remove
	definition.

From-SVN: r186166
2012-04-05 14:22:26 +00:00
Richard Guenther 216820a4ad gimple.c (walk_gimple_op): Compute val_only for the LHS of an assigment in the canonical way...
2012-04-05  Richard Guenther  <rguenther@suse.de>

	* gimple.c (walk_gimple_op): Compute val_only for the LHS
	of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
	(is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
	* gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
	... here and make static.
	* gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
	Remove.

From-SVN: r186165
2012-04-05 13:38:47 +00:00
Richard Guenther eaf6ca186f tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt basic-block before removing it.
2012-04-05  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
	basic-block before removing it.

From-SVN: r186164
2012-04-05 12:43:25 +00:00
Bill Schmidt 1bb940da3c re PR testsuite/52614 (Test failures in gcc.dg/vect: vectorizing unaligned access)
gcc/testsuite:

2012-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
	    Dominique D'Humieures  <dominiq@lps.ens.fr>

	PR testsuite/52614
	* gcc.dg/vect/vect.exp: Use -fno-common on all targets.
	* gcc.dg/vect/costmodel/ppc/ppc-costmodel-vect.exp: Likewise.


Co-Authored-By: Dominique d'Humieres <dominiq@lps.ens.fr>

From-SVN: r186163
2012-04-05 12:11:50 +00:00
Richard Guenther 14f60a5a37 tree-ssanames.c (release_dead_ssa_names): Compact the SSA version namespace as we release the freelist.
2012-04-05  Richard Guenther  <rguenther@suse.de>

	* tree-ssanames.c (release_dead_ssa_names): Compact the SSA
	version namespace as we release the freelist.

From-SVN: r186162
2012-04-05 11:30:52 +00:00
Rainer Orth 0e74b5a21f Restore HAVE_INET6 tests (PR libgcj/52645)
PR libgcj/52645
	* gnu/java/net/natPlainDatagramSocketImplPosix.cc (setOption):
	Restore HAVE_INET6 check.
	* gnu/java/net/natPlainDatagramSocketImplWin32.cc (setOption):
	Likewise.

From-SVN: r186161
2012-04-05 10:04:40 +00:00
Richard Guenther 3d3f224949 tree-nrv.c (tree_nrv): Release VDEFs.
2012-04-05  Richard Guenther  <rguenther@suse.de>

	* tree-nrv.c (tree_nrv): Release VDEFs.
	* tree-sra.c (sra_modify_constructor_assign): Likewise.
	(sra_modify_assign): Likewise.
	* tree-vect-stmts.c (vect_remove_stores): Likewise.
	* tree-vect-loop.c (vect_transform_loop): Likewise.
	* tree-ssa-dom.c (optimize_stmt): Likewise.
	* tree-vect-slp.c (vect_schedule_slp): Likewise.
	* tree-ssa-math-opts.c (execute_cse_sincos): Likewise.

From-SVN: r186160
2012-04-05 09:45:18 +00:00
Richard Guenther b5b3ec3e6e gimple-iterator.c (gsi_remove): Return whether EH edges need to be cleanup.
2012-04-05  Richard Guenther  <rguenther@suse.de>

	* gimple-iterator.c (gsi_remove): Return whether EH edges need to be
	cleanup.
	* gimple.h (gsi_remove): Adjust.
	* tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
	* tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
	* tree-ssa-dse.c (dse_optimize_stmt): Likewise.
	* tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
	* tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
	* tree-ssa-pre.c (eliminate): Likewise.

From-SVN: r186159
2012-04-05 09:43:48 +00:00
Rainer Orth 4e48b6f14d Export std::_List_node_base for non-PIC code
From-SVN: r186158
2012-04-05 09:10:38 +00:00
Bernhard Reutner-Fischer c07e30ca3d PR bootstrap/52840: libstdc++: let debug find sources for compatibility.lo
2012-04-05  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>

	PR bootstrap/52840
	* src/Makefile.am (build-debug): Do not adjust vpath dir, remove
	Makefile.tmp
	* src/Makefile.in: Adjust as per above.

From-SVN: r186156
2012-04-05 09:00:30 +02:00
GCC Administrator 913398edd4 Daily bump.
From-SVN: r186153
2012-04-05 00:18:25 +00:00
Mike Stump 929e10f4cf rtl.texi (const_double): Document as sign-extending.
* doc/rtl.texi (const_double): Document as sign-extending.
	* expmed.c (expand_mult): Ensure we don't use shift
	incorrectly.
	* emit-rtl.c (immed_double_int_const): Refine to state the
	value is signed.
	* simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
	CONST_DOUBLE integers.
	(simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
	negative values are converted.  Fix conversions bigger than
	HOST_BITS_PER_WIDE_INT.
	(simplify_binary_operation_1): Ensure we don't use shift
	incorrectly.
	(simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
	* explow.c (plus_constant_mode): Add.
	(plus_constant): Implement with plus_constant_mode.
	* rtl.h (plus_constant_mode): Add.

From-SVN: r186147
2012-04-04 20:27:17 +00:00
Ian Lance Taylor b059fba469 syscall: Add more constants.
From-SVN: r186144
2012-04-04 18:50:09 +00:00
Uros Bizjak 14939a5c1d Partially revert:
2012-03-28  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/52689
	* src/c++98/compatibility-ldbl.cc: Guard with PIC

From-SVN: r186142
2012-04-04 19:25:27 +02:00
H.J. Lu 0100e3b3e8 Use long long in gtm_jmpbuf for x86-64
2012-04-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR libitm/52854
	* config/x86/target.h (gtm_jmpbuf): Replace long with long long
	for x86-64.

From-SVN: r186140
2012-04-04 08:49:23 -07:00
Jason Merrill 6f6e1e9e8b re PR c++/52845 (non-void return type deduced for lambda with empty compound statement)
PR c++/52845
	* decl.c (finish_function): Update fntype after deducing return type.

From-SVN: r186139
2012-04-04 10:40:51 -04:00
Richard Guenther 0b9066cf56 re PR bootstrap/52808 (LTO bootstrap failed with bootstrap-profiled)
2012-04-04  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52808
	* tracer.c (tail_duplicate): Do not tail-duplicate loop header
	blocks.
	* Makefile.in (tracer.o): Depend on $(CFGLOOP_H).

From-SVN: r186135
2012-04-04 12:12:00 +00:00
Tristan Gingold c1a969777f pex-unix.c (to_ptr32): Fix style.
2012-04-04  Tristan Gingold  <gingold@adacore.com>

	* pex-unix.c (to_ptr32): Fix style.

From-SVN: r186134
2012-04-04 08:44:30 +00:00
Tristan Gingold 9516c54ee3 expr.c (expand_expr_real_2): Handle larger sizetype in POINTER_PLUS_EXPR.
2012-04-04  Tristan Gingold  <gingold@adacore.com>

	* expr.c (expand_expr_real_2): Handle larger sizetype in
	POINTER_PLUS_EXPR.

From-SVN: r186133
2012-04-04 08:26:34 +00:00
Tristan Gingold 62755fd571 libgfortran.h: Include complex.h before math.h
2012-04-04  Tristan Gingold  <gingold@adacore.com>

        * libgfortran.h: Include complex.h before math.h

From-SVN: r186131
2012-04-04 07:46:53 +00:00
GCC Administrator 26c4ef3c09 Daily bump.
From-SVN: r186128
2012-04-04 00:18:00 +00:00
Ian Lance Taylor ea8505da90 syscall, net: Fix GNU/Linux netlink code for big-endian systems.
From-SVN: r186123
2012-04-03 23:44:53 +00:00
Jason Merrill a92873f127 re PR c++/52796 ([C++11] Initialization of primitive object with 0-length parameter pack fails to value-initialize)
PR c++/52796
	* pt.c (tsubst_initializer_list): A pack expansion with no elements
	means value-initialization.

From-SVN: r186122
2012-04-03 19:38:21 -04:00
Kaz Kojima 407f43d729 t-sh (MULTILIB_MATCHES): Match m2a-single-only to m2a-single instead of m2e.
* config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
	to m2a-single instead of m2e.

From-SVN: r186116
2012-04-03 21:23:05 +00:00
Ian Lance Taylor 8db6380aa7 mksysinfo.sh: Add some more networking constants.
From-SVN: r186114
2012-04-03 19:42:24 +00:00
Ian Lance Taylor 572a2f6886 gotest: Fix finding functions on PPC.
From-SVN: r186112
2012-04-03 18:26:57 +00:00
Eric Botcazou 1d0bafd9b0 expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
* expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
	Change type of BITOFFSET to signed.  Make sure the lower bound of
	the computed range is non-negative by adjusting OFFSET and BITPOS.
	(expand_assignment): Adjust call to get_bit_range.

From-SVN: r186110
2012-04-03 17:59:07 +00:00
Sandeep Kumar Singh f4ea81123d h8300.c (h8300_current_function_monitor_function_p): New function.
* h8300/h8300.c (h8300_current_function_monitor_function_p):
	New function. Added to check monitor functions. 
	(h8300_option_override): Modified to generate error/warning 
	messages for invalid combinations of different command line 
	options.
	* h8300/h8300.md: Generate 'rte' for monitor functions. Do not
	save EXR on stack for monitor function in case of H8S target 
	when "-mno-exr" is passed.
	* h8300/h8300-protos.h 
	(h8300_current_function_monitor_function_p): Add prototype.
	* doc/invoke.texi: Document H8S options.

From-SVN: r186109
2012-04-03 11:09:53 -06:00
Tristan Gingold 2f6935f455 mmap.m4: Use *vms* instead of vms*.
config/
2012-04-03  Tristan Gingold  <gingold@adacore.com>

	* mmap.m4: Use *vms* instead of vms*.

gcc/
2012-04-03  Tristan Gingold  <gingold@adacore.com>

	* configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
	of gcc_AC_FUNC_MMAP_BLACKLIST.
	* acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
	* Makefile.in (aclocal_deps): Add mmap.m4.
	* configure: Regenerate.
	* aclocal.m4: Regenerate.

libitm/
2012-04-03  Tristan Gingold  <gingold@adacore.com>

	* configure: Regenerate.

From-SVN: r186106
2012-04-03 12:07:28 +00:00
Richard Guenther 07b1bf209c re PR bootstrap/52808 (LTO bootstrap failed with bootstrap-profiled)
2012-04-03  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52808
	* tracer.c (tail_duplicate): Return whether we have duplicated
	any block.
	(tracer): If we have duplicated any block, cleanup the CFG.
	* cfghooks.c (duplicate_block): If we duplicated a loop
	header but not its loop, destroy the loop because it now has
	multiple entries.
	* tree-ssa-threadupdate.c (thread_through_loop_header): Tell
	the cfg manipulation routines we are not creating a multiple
	entry loop.

	* gcc.dg/pr52808.c: New testcase.

From-SVN: r186104
2012-04-03 11:38:04 +00:00
Tristan Gingold 90b2952fa4 vms-c.c (vms_pragma_nomember_alignment): Handle 'byte' alignment.
2012-04-03  Tristan Gingold  <gingold@adacore.com>

	* config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
	'byte' alignment.
	(vms_c_common_override_options): Allow parameterless variadic
	functions.

From-SVN: r186102
2012-04-03 08:53:48 +00:00
Jakub Jelinek 8a1da63435 re PR middle-end/52835 (-O3 wrongly optimizes loop __builtin_memcpy away)
PR tree-optimization/52835
	* tree-data-ref.c (build_rdg): Return NULL if
	compute_data_dependences_for_loop failed.

	* gfortran.dg/pr52835.f90: New test.

From-SVN: r186101
2012-04-03 10:49:14 +02:00
Eric Botcazou 1d3aa46650 varasm.c (initializer_constant_valid_for_bitfield_p): Return true for REAL_CST as well.
* varasm.c (initializer_constant_valid_for_bitfield_p): Return true
	for REAL_CST as well.
	(output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
	In the bitfield case, if the value is a REAL_CST, convert it first to
	an INTEGER_CST.

From-SVN: r186100
2012-04-03 07:11:25 +00:00
H.J. Lu 0465e49e7e Add --with-abi= support to x86_64-*-*
2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>

	* config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
	for --with-abi={x32|mx32} or --with-multilib-list=mx32.
	(supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.

	* config/i386/biarchx32.h: New.

From-SVN: r186099
2012-04-02 19:56:34 -07:00
GCC Administrator b9f25411dc Daily bump.
From-SVN: r186097
2012-04-03 00:17:14 +00:00
Anatoly Sokolov 107715f026 arm.h (PREFERRED_RELOAD_CLASS): Remove.
* config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
	* config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
	(arm_preferred_reload_class): New function.

From-SVN: r186092
2012-04-02 22:45:13 +04:00