Jason Merrill
77d4d7c577
re PR c++/36797 (ICE mangling __is_empty)
...
PR c++/36797
* mangle.c (write_expression): Improve diagnostic for TRAIT_EXPR.
From-SVN: r184874
2012-03-03 19:55:31 -05:00
Jason Merrill
57910f3a9a
class.c (add_method): Always build an OVERLOAD for using-decls.
...
* class.c (add_method): Always build an OVERLOAD for using-decls.
* search.c (lookup_member): Handle getting an OVERLOAD for a
single function.
From-SVN: r184873
2012-03-03 19:53:30 -05:00
GCC Administrator
41fa723a78
Daily bump.
...
From-SVN: r184872
2012-03-04 00:19:32 +00:00
Kaz Kojima
4feaca8b0f
sh.md (abssi2): Add TARGET_SH1 condition.
...
* config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
From-SVN: r184867
2012-03-03 23:20:34 +00:00
Kaz Kojima
59248459e6
sh.c (sh_dwarf_register_span): Don't apply DBX_REGISTER_NUMBER.
...
* config/sh/sh.c (sh_dwarf_register_span): Don't apply
DBX_REGISTER_NUMBER.
From-SVN: r184866
2012-03-03 23:19:07 +00:00
Kaz Kojima
dea148c40c
sh.c (shiftcosts): Return MAX_COST when the first operand is CONST_INT.
...
* config/sh/sh.c (shiftcosts): Return MAX_COST when the first
operand is CONST_INT. Take COSTS_N_INSNS into account.
(sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
of shiftcosts.
From-SVN: r184865
2012-03-03 23:16:08 +00:00
Francois-Xavier Coudert
d289d284ab
re PR fortran/52313 (useless error message for old version of .mod file)
...
PR fortran/52313
* module.c (gfc_use_module): Improve error messages.
From-SVN: r184864
2012-03-03 20:59:58 +00:00
Tobias Burnus
6230987eeb
re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)
...
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* resolve.c (resolve_actual_arglist): Properly reset
assumed_type_expr_allowed.
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* gfortran.dg/assumed_type_3.f90: Undo previous commit.
From-SVN: r184863
2012-03-03 19:55:57 +01:00
Richard Henderson
a6de595f94
optabs.c (expand_atomic_test_and_set): Honor atomic_test_and_set_trueval even when atomic_test_and_set optab is not in use.
...
* optabs.c (expand_atomic_test_and_set): Honor
atomic_test_and_set_trueval even when atomic_test_and_set
optab is not in use.
From-SVN: r184862
2012-03-03 10:21:06 -08:00
Joseph Myers
6ecbd3a745
* de.po: Update.
...
From-SVN: r184860
2012-03-03 17:35:34 +00:00
H.J. Lu
8b1106fbc3
Add Linux/x32 support to Ada
...
2012-03-03 H.J. Lu <hongjiu.lu@intel.com>
* init.c (__gnat_adjust_context_for_raise): Also check
"orq $0x0,(%esp)" for x32.
* link.c (__gnat_default_libgcc_subdir): set to libx32 for x32.
* gcc-interface/Makefile.in (arch): Set to x32 if MULTISUBDIR
is /x32.
Support x32.
From-SVN: r184859
2012-03-03 09:04:49 -08:00
Tobias Burnus
0e19363724
lang.opt (Wc-binding-type): New flag.
...
2012-03-03 Tobias Burnus <burnus@net-b.de>
* lang.opt (Wc-binding-type): New flag.
* options.c (gfc_init_options, gfc_handle_option): Handle it.
* invoke.texi (Wc-binding-type): Document it.
* gfortran.h (gfc_option_t): Add warn_c_binding_type.
* decl.c (verify_bind_c_sym): Handle -Wc-binding-type.
* symbol.c (gfc_set_default_type, verify_bind_c_derived_type):
Ditto.
2012-03-03 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/bind_c_dts_4.f03: Add dg-options -Wc-binding-type.
* gfortran.dg/bind_c_implicit_vars.f03: Ditto.
* gfortran.dg/bind_c_usage_8.f03: Ditto.
* gfortran.dg/c_kind_tests_2.f03: Ditto.
* gfortran.dg/class_30.f90: Remove dg-warning line.
* gfortran.dg/bind_c_usage_25.f90: New.
From-SVN: r184858
2012-03-03 17:09:18 +01:00
Tobias Burnus
905f067ca0
re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)
...
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* gfortran.dg/assumed_type_1.f90: Correct dg-error.
* gfortran.dg/assumed_type_3.f90: Correct dg-error.
* gfortran.dg/assumed_type_4.f90: Correct dg-error.
From-SVN: r184856
2012-03-03 15:11:24 +01:00
Joseph Myers
da848353a8
* gcc.pot: Regenerate.
...
From-SVN: r184854
2012-03-03 12:06:54 +00:00
Tobias Burnus
45a6932568
re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3)
...
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* decl.c (gfc_match_decl_type_spec): Support type(*).
(gfc_verify_c_interop): Allow type(*).
* dump-parse-tree.c (show_typespec): Handle type(*).
* expr.c (gfc_copy_expr): Ditto.
* interface.c (compare_type_rank, compare_parameter,
compare_actual_formal, gfc_procedure_use): Ditto.
* libgfortran.h (bt): Add BT_ASSUMED.
* misc.c (gfc_basic_typename, gfc_typename): Handle type(*).
* module.c (bt_types): Ditto.
* resolve.c (assumed_type_expr_allowed): New static variable.
(resolve_actual_arglist, resolve_variable, resolve_symbol):
Handle type(*).
* trans-expr.c (gfc_conv_procedure_call): Ditto.
* trans-types.c (gfc_typenode_for_spec, gfc_get_dtype): Ditto.
2012-03-03 Tobias Burnus <burnus@net-b.de>
PR fortran/48820
* gfortran.dg/assumed_type_1.f90: New.
* gfortran.dg/assumed_type_2.f90: New.
* gfortran.dg/assumed_type_3.f90: New.
* gfortran.dg/assumed_type_4.f90: New.
From-SVN: r184852
2012-03-03 09:40:24 +01:00
GCC Administrator
c0e8830c54
Daily bump.
...
From-SVN: r184849
2012-03-03 00:18:42 +00:00
Kaz Kojima
4978c73644
re PR rtl-optimization/48596 ([SH] unable to find a register to spill in class 'FPUL_REGS')
...
PR target/48596
PR target/48806
* config/sh/sh.c (sh_register_move_cost): Increase cost between
GENERAL_REGS and FP_REGS for SImode.
From-SVN: r184844
2012-03-02 23:59:08 +00:00
Paolo Carlini
b98fcf6ecd
limits (numeric_limits): Fix returns per C++11.
...
2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/limits (numeric_limits): Fix returns per C++11.
* testsuite/18_support/numeric_limits/primary.cc: New.
From-SVN: r184837
2012-03-02 22:24:45 +00:00
Diego Novillo
acb3748dd1
Add ChangeLog entry for recent change.
...
From-SVN: r184830
2012-03-02 16:30:11 -05:00
Oleg Endo
5e44ea8924
re PR bootstrap/49486 (Bootstrap failure)
...
PR target/49486
* config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
(absdi2): New expander.
(*absdi2, *negabsdi2, negdi_cond): New insns and splits.
* gcc.target/sh/pr49468-si.c: Skip unsupported test for SH64.
* gcc.target/sh/pr49468-di.c: New.
From-SVN: r184829
2012-03-02 21:21:13 +00:00
Ian Lance Taylor
2aeaf0fb26
libgo: Try to fix use of <ustat.h> for Solaris and older GNU/Linux.
...
From-SVN: r184828
2012-03-02 21:07:52 +00:00
Oleg Endo
b5ea803681
sync.md (atomic_exchange<mode>): New expander.
...
* config/sh/sync.md (atomic_exchange<mode>): New expander.
(atomic_exchange<mode>_soft): New insn.
From-SVN: r184827
2012-03-02 21:07:21 +00:00
Oleg Endo
349e6f0526
sync.md: Update copyright notice dates.
...
* config/sh/sync.md: Update copyright notice dates.
(atomic_compare_and_swap<mode>): Use SImode for return value instead
of QImode.
(atomic_compare_and_swap<mode>_soft): Likewise.
From-SVN: r184826
2012-03-02 21:04:51 +00:00
Oleg Endo
b6a0df6c47
re PR target/31640 (cache block alignment is too aggressive on sh-elf)
...
PR target/31640
* config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
* config/sh/sh.c: Update copyright notice dates.
(sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
alignment for TARGET_HARD_SH4.
(sh_option_override): Reduce default function alignment. Set
loop alignment to 4 bytes when not optimizing for size.
From-SVN: r184825
2012-03-02 20:56:46 +00:00
Ian Lance Taylor
cd33b08fbd
runtime: Add type casts to fix Solaris build.
...
From Rainer Orth.
From-SVN: r184823
2012-03-02 20:48:21 +00:00
Diego Novillo
9c23e8b86d
This fixes an edge case in parsing summary lines.
...
This fixes an edge case in parsing summary lines. Some times, the
description field is missing (e.g., 'FAIL: libstdc++/abi_check'), so
the space that the pattern was looking for does not exist.
I've changed it to match any whitespace, which includes '\n'. I also
made it print the line that it fails to parse, in case there are other
problems like this in the future.
2012-03-02 Diego Novillo <dnovillo@google.com>
* testsuite-management/validate_failures.py (class TestResult): Fix
match pattern for the summary line. If there is a parsing failure,
show the line we failed to parse.
From-SVN: r184822
2012-03-02 15:43:29 -05:00
Maxim Kuvyrkov
290d87ebe6
Add PR reference to a ChangeLog entry.
...
From-SVN: r184821
2012-03-02 20:34:25 +00:00
Maxim Kuvyrkov
093193bed7
invoke.texi (floop-flatten): Declare obsolete.
...
gcc/
* doc/invoke.texi (floop-flatten): Declare obsolete.
* toplev.c (process_options): Remove references to flag_loop_flatten.
* tree-ssa-loop.c (gate_graphite_transform): Same.
* common.opt (floop-flatten): Obsolete.
* graphite-poly.c (apply_poly_transforms): Remove reference to
flag_loop_flatten.
* Makefile.in (graphite-flattening.o): Remove.
* graphite-flattening.c: Remove.
gcc/testsuite/
* gcc.dg/graphite/pr50561.c: Update.
From-SVN: r184820
2012-03-02 20:32:20 +00:00
Ian Lance Taylor
501699af16
libgo: Update to weekly.2012-02-22 release.
...
From-SVN: r184819
2012-03-02 20:01:37 +00:00
Uros Bizjak
34c5f21a38
compare-elim.c (find_comparisons_in_bb): Eliminate only compares having mode compatible with the mode of previous compare.
...
* compare-elim.c (find_comparisons_in_bb): Eliminate only compares
having mode compatible with the mode of previous compare. Substitute
compare mode of previous compare with the mode, compatible
with eliminated and previous compare.
From-SVN: r184816
2012-03-02 19:54:27 +01:00
Peter Bergner
6f975f93d4
* config/rs6000/dfp.md (floatdidd2): New define_insn.
...
From-SVN: r184815
2012-03-02 12:47:00 -06:00
Uros Bizjak
76945a7ca8
i386.c (ix86_cc_modes_compatible): Declare CCZmode compatible with CCGOCmode and CCGCmode.
...
* config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
compatible with CCGOCmode and CCGCmode.
From-SVN: r184813
2012-03-02 19:41:21 +01:00
Peter Bergner
2ff1689326
vsx.md (vsx_set_<mode>): Reorder operands.
...
gcc/
* config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
gcc/testsuite/
* gcc.target/powerpc/pr52457.c: New test.
From-SVN: r184811
2012-03-02 12:28:08 -06:00
Matthias Klose
43743d63b3
2012-03-02 Matthias Klose <doko@ubuntu.com>
...
* Imported zlib 1.2.5; merged local changes.
From-SVN: r184805
2012-03-02 17:15:20 +00:00
Ulrich Weigand
5d216c70d9
arm.c (arm_sat_operator_match): New function.
...
gcc/
* config/arm/arm.c (arm_sat_operator_match): New function.
* config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
* config/arm/arm.md ("insn" attribute): Add "sat" value.
("SAT", "SATrev"): New code iterators.
("SATlo", "SAThi"): New code iterator attributes.
("*satsi_<SAT:code>"): New pattern.
("*satsi_<SAT:code>_shift"): Likewise.
* config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
and "shift" attributes.
("arm_usatsihi"): Add "insn" attribute.
* config/arm/predicates.md (sat_shift_operator): Allow multiplication
by powers of two. Do not allow shift by 32.
gcc/testsuite/
* gcc.target/arm/sat-1.c: New test.
From-SVN: r184803
2012-03-02 17:08:55 +00:00
Uros Bizjak
2b57045bfc
re PR target/46716 (wrong code generated with -mno-sse2 -m64)
...
PR target/46716
* config/i386/i386.c (construct_container): Use gen_reg_or_parallel
to pass the argument in the register of "natural" mode.
testsuite/ChangeLog:
PR target/46716
* gcc.target/i386/pr46176.c: New test.
From-SVN: r184802
2012-03-02 18:03:36 +01:00
Benjamin Kosnik
08c3865834
cstdio: Remove extraneous extern.
...
2012-03-02 Benjamin Kosnik <bkoz@redhat.com>
* include/c_global/cstdio: Remove extraneous extern.
* include/c_std/cstdio: Same.
From-SVN: r184799
2012-03-02 16:44:50 +00:00
Ian Lance Taylor
cbb6491d76
libgo: Update to weekly.2012-02-14 release.
...
From-SVN: r184798
2012-03-02 16:38:43 +00:00
Paolo Carlini
ff2f581b00
re PR c++/51989 (std::deque::iterator recognised as container)
...
/cp
2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51989
* typeck2.c (build_x_arrow): Take a tsubst_flags_t argument and
propagate it.
* cp-tree.h (build_x_arrow): Adjust prototype.
* pt.c (tsubst_copy_and_build): Adjust call.
* parser.c (cp_parser_postfix_dot_deref_expression): Likewise.
/testsuite
2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51989
* g++.dg/cpp0x/sfinae32.C: New.
From-SVN: r184796
2012-03-02 16:18:25 +00:00
Paolo Carlini
54e9d9449d
name-lookup.c (binding_to_template_parms_of_scope_p): Clean up.
...
2012-03-02 Paolo Carlini <paolo.carlini@oracle.com>
* name-lookup.c (binding_to_template_parms_of_scope_p): Clean up.
From-SVN: r184792
2012-03-02 15:39:55 +00:00
Tobias Burnus
9f50723550
re PR fortran/52325 (unclear error: Unclassifiable statement)
...
2012-03-02 Tobias Burnus <burnus@net-b.de>
PR fortran/52325
* primary.c (gfc_match_varspec): Add missing ;.
From-SVN: r184790
2012-03-02 15:58:58 +01:00
Richard Guenther
c4ddde1bbb
re PR tree-optimization/52406 (likely wrong code bug)
...
2012-03-02 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52406
* tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
(struct indices): Add unconstrained_base member.
(struct dr_alias): Remove unused vops member.
(DR_UNCONSTRAINED_BASE): New define.
* tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
add indices to allow their disambiguation. Make DR_BASE_OBJECT
be an artificial access that covers the whole indexed object,
or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
plain decl base-objects to their MEM_REF variant.
(dr_may_alias_p): When the base-object of either data reference
has unknown size use only points-to information.
(compute_affine_dependence): Make dumps easier to read and
more verbose.
* tree-vect-data-ref.c (vector_alignment_reachable_p): Use
DR_REF when looking for packed references.
(vect_supportable_dr_alignment): Likewise.
* gcc.dg/torture/pr52406.c: New testcase.
From-SVN: r184789
2012-03-02 14:58:55 +00:00
Tobias Burnus
6ee65df3f1
re PR fortran/52325 (unclear error: Unclassifiable statement)
...
2012-03-02 Tobias Burnus <burnus@net-b.de>
PR fortran/52325
* primary.c (gfc_match_varspec): Add diagnostic for % with
nonderived types.
2012-03-02 Tobias Burnus <burnus@net-b.de>
PR fortran/52325
* gfortran.dg/derived_comp_array_ref_8.f90: New.
* gfortran.dg/nullify_2.f90: Update dg-error.
* gfortran.dg/nullify_4.f90: Ditto.
* gfortran.dg/pointer_init_6.f90: Ditto.
From-SVN: r184785
2012-03-02 14:20:52 +01:00
Tobias Burnus
f18075fff5
re PR fortran/52270 ([OOP] Polymorphic vars: wrong intent(in) check, passing nonptr variable to intent(in) ptr dummy)
...
2012-03-02 Tobias Burnus <burnus@net-b.de>
PR fortran/52270
* expr.c (gfc_check_vardef_context): Fix check for
intent-in polymorphic pointer .
* interface.c (compare_parameter): Allow passing TYPE to
intent-in polymorphic pointer.
2012-03-02 Tobias Burnus <burnus@net-b.de>
PR fortran/52270
* gfortran.dg/class_51.f90: New.
From-SVN: r184784
2012-03-02 14:07:46 +01:00
Greta Yorsh
2d68f67f2f
For Greta Yorsh.
...
2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
* config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
Improve conditions for peepholes of loads followed by commutative
operators.
* config/arm/ldmstm.md: Regenerated.
From-SVN: r184783
2012-03-02 12:09:04 +00:00
Richard Guenther
7167a5015e
crontab: Fix day-of-week.
...
2012-03-02 Richard Guenther <rguenther@suse.de>
* crontab: Fix day-of-week.
From-SVN: r184782
2012-03-02 11:30:44 +00:00
Richard Guenther
204c02727c
crontab: Update for 4.7 branching.
...
2012-03-02 Richard Guenther <rguenther@suse.de>
* crontab: Update for 4.7 branching.
From-SVN: r184781
2012-03-02 11:24:28 +00:00
Richard Guenther
45c29d4d57
BASE-VER: Set to 4.8.0.
...
2012-03-02 Richard Guenther <rguenther@suse.de>
* BASE-VER: Set to 4.8.0.
From-SVN: r184780
2012-03-02 11:09:25 +00:00
Tobias Burnus
2b91eb32d6
re PR fortran/52452 (INTRINSIC cannot be applied to gfortran's ETIME)
...
2012-03-02 Tobias Burnus <burnus@net-b.de>
PR fortran/52452
* resolve.c (resolve_intrinsic): Don't search for a
function if we know that it is a subroutine.
2012-03-02 Tobias Burnus <burnus@net-b.de>
PR fortran/52452
* gfortran.dg/intrinsic_8.f90: New.
From-SVN: r184778
2012-03-02 12:00:04 +01:00
Rainer Orth
b70db788dd
Update Solaris baselines for GCC 4.7
...
* config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
* config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
From-SVN: r184776
2012-03-02 09:47:11 +00:00