Tobias Burnus
5af6fa0b38
re PR fortran/52751 (private module variable are not exported as local)
...
2012-04-08 Tobias Burnus <burnus@net-b.de>
PR fortran/52751
* trans-decl.c (gfc_finish_var_decl): Don't set TREE_PUBLIC
for PRIVATE module variables without C-binding label.
PR fortran/40973
* trans-decl.c (build_function_decl): Ditto for procedures.
2012-04-08 Tobias Burnus <burnus@net-b.de>
PR fortran/40973
PR fortran/52751
* gfortran.dg/public_private_module_2.f90: New.
From-SVN: r186223
2012-04-08 09:15:01 +02:00
GCC Administrator
aeb9270a98
Daily bump.
...
From-SVN: r186222
2012-04-08 00:18:15 +00:00
Joseph Myers
74d78bedc1
* es.po: Update.
...
From-SVN: r186217
2012-04-08 00:02:40 +01:00
Manuel López-Ibáñez
0058db4366
Wstrict-aliasing-float-ref-int-obj.C: Add labels to directives.
...
2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to
directives.
From-SVN: r186216
2012-04-07 22:09:42 +00:00
Thomas Koenig
8144d290d8
re PR fortran/52893 (Moving functions out of implied DO loops)
...
2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/52893
* frontend-passes.c: Keep track of wether we are in an implicit
DO loop; do not do function elimination if we are.
2012-04-07 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/52893
* gfortran.dg/function_optimize_11.f90: New test.
From-SVN: r186213
2012-04-07 16:38:11 +00:00
Oleg Endo
fae61228ca
sh.h (high_life_started): Remove
...
* config/sh/sh.h (high_life_started): Remove
* config/sh/predicates.md (general_movdst_operand): Use
'reload_in_progress' instead of 'high_life_started'.
* config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
divsi_inv_fp): Likewise.
From-SVN: r186212
2012-04-07 12:03:13 +00:00
Oleg Endo
2ef6611e8c
sh-protos.h (prepare_move_operands): Return void instead of int.
...
* config/sh/sh-protos.h (prepare_move_operands): Return void
instead of int.
* config/sh/sh.c (prepare_move_operands): Likewise.
* config/sh/sh.md: Remove return value checks of prepare_move_operands.
From-SVN: r186211
2012-04-07 12:01:01 +00:00
Oleg Endo
df4f5d5f72
sh-protos.h (fp_int_operand, [...]): Remove.
...
* config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
general_movsrc_operand, general_movdst_operand, arith_reg_operand,
fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
commutative_float_operator, noncommutative_float_operator,
sh_handle_pragma): Remove.
From-SVN: r186210
2012-04-07 11:58:42 +00:00
Sandra Loosemore
f2dcf9b8ed
invoke.texi: Clean up Texinfo markup throughout the file.
...
2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/invoke.texi: Clean up Texinfo markup throughout the file.
Use @option markup on command-line options. Use @samp markup on
literal keywords to options. Use @code markup on code fragments.
Use other markup in preference to quotation marks in the text.
Add markup to some passages without any.
From-SVN: r186209
2012-04-06 23:47:05 -04:00
GCC Administrator
7d3ffb4d64
Daily bump.
...
From-SVN: r186208
2012-04-07 00:18:42 +00:00
Mike Stump
d25c4172fb
* gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
...
From-SVN: r186202
2012-04-06 23:00:11 +00:00
Doug Evans
a0806f33ad
* dg-extract-results.sh: Handle KFAILs.
...
From-SVN: r186200
2012-04-06 19:39:52 +00:00
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