H.J. Lu
55b86fb00d
Check Pmode instead of TARGET_64BIT
...
2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
instead of TARGET_64BIT.
From-SVN: r184901
2012-03-04 13:23:13 -08:00
H.J. Lu
4732e8de03
Check Pmode to set adjust_stack_insn
...
2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
adjust_stack_insn.
From-SVN: r184900
2012-03-04 13:21:55 -08:00
H.J. Lu
5ca9708b16
Only handle zero-extended DImode addresses
...
2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_print_operand_address): Only handle
zero-extended DImode addresses.
From-SVN: r184899
2012-03-04 13:19:43 -08:00
H.J. Lu
f57207b886
Update gcc.target/i386/pr52146.c to allow $-18874240
...
2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
PR target/52146
* gcc.target/i386/pr52146.c: Update final-scan to allow $-18874240.
From-SVN: r184898
2012-03-04 13:17:34 -08:00
Anthony Green
34fa7690ac
Merge upstream libffi
...
From-SVN: r184897
2012-03-04 21:11:09 +00:00
Mikael Morin
8b59af5c6a
re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument)
...
fortran/
PR fortran/50981
* trans-expr.c (gfc_conv_procedure_call): Save se->ss's value.
Handle the case of unallocated arrays passed to elemental procedures.
testsuite/
PR fortran/50981
* gfortran.dg/elemental_optional_args_5.f03: Add array checks.
From-SVN: r184896
2012-03-04 21:05:32 +00:00
Georg-Johann Lay
173be4663d
pr52402.c: Add dg-require-effective-target
...
* gcc.dg/torture/pr52402.c: Add dg-require-effective-target
From-SVN: r184894
2012-03-04 20:56:34 +00:00
Mikael Morin
9bcf7121b6
trans.h (struct gfc_ss_info): Move can_be_null_ref component from the data::scalar subcomponent to the toplevel.
...
fortran/
* trans.h (struct gfc_ss_info): Move can_be_null_ref component from
the data::scalar subcomponent to the toplevel.
* trans-expr.c (gfc_conv_expr): Update component reference.
* trans-array.c (gfc_add_loop_ss_code): Ditto.
(gfc_walk_elemental_function_args): Ditto. Move the conditional setting
the field out of the scalar-only block.
From-SVN: r184893
2012-03-04 20:46:55 +00:00
Uros Bizjak
904eea2c55
constraints.md (Ya): New internal constraint.
...
* config/i386/constraints.md (Ya): New internal constraint.
* config/i386/i386.md (zero_extendsidi2): Remove expansion.
(*zero_extendsidi2_rex64): Add x,x alternative.
(*zero_extendsidi2): Ditto. Add o,0 alternative.
Remove flags reg clobber. Adjust corresponding splits.
(zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
zero_extendqisi2 expanders using SWI12 mode iterator.
(zero_extend<mode>si2_and): Macroize insn from
zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
splitters.
(*zero_extend<mode>si2): Macroize insn from
*zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
(*zero_extend*2_movzbl_and): Remove insn patterns.
(zero_extendqihi2_and): Merge corresponding splitter.
(*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
(*zero_extend*2_movzbl_and): Remove insn patterns.
(*anddi_1): Split TYPE_IMOVX instructions.
(*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
(*andhi_1): Ditto.
(and->zext splitter): Add splitter pattern.
(zero extend with andsi3 splitter): Adjust zero_extend pattern.
From-SVN: r184891
2012-03-04 19:54:26 +01:00
Georg-Johann Lay
d4ce363568
pr49871.c: Add dg-require-effective-target int32plus.
...
* gcc.dg/debug/dwarf2/pr49871.c: Add dg-require-effective-target
int32plus.
From-SVN: r184887
2012-03-04 15:40:56 +00:00
Francois-Xavier Coudert
a5d6c7540a
re PR fortran/36160 (show_locus doesn't deal well with wide characters)
...
PR fortran/36160
* error.c (gfc_widechar_display_length, gfc_wide_display_length):
New functions.
(print_wide_char_into_buffer): Return length written.
(show_locus): Fix locus displayed when wide characters are present.
From-SVN: r184884
2012-03-04 14:35:56 +00:00
Francois-Xavier Coudert
c8191119d6
* module.c (gfc_use_module): Improve error message some more.
...
From-SVN: r184883
2012-03-04 14:29:30 +00:00
Eric Botcazou
c679ec1f5d
* gnatvsn.ads (Library_Version): Bump to 4.8.
...
From-SVN: r184882
2012-03-04 13:11:06 +00:00
Jonathan Wakely
faef17d891
re PR libstdc++/52433 ([C++11] debug mode iterators need to move)
...
PR libstdc++/52433
* include/debug/safe_iterator.h (_Safe_iterator): Add move
constructor and move assignment operator.
* testsuite/23_containers/vector/debug/52433.cc: New.
From-SVN: r184880
2012-03-04 12:49:22 +00:00
Sandra Loosemore
b12866c71e
invoke.texi (C++ Dialect Options): Minor copy-edits to x86-specific text.
...
2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
x86-specific text.
(Debugging Options): Likewise.
(Optimize Options): Likewise.
(i386 and x86-64 Options): Discuss -march before -mtune, consistently
with other architectures. Use official processor names with correct
spelling/capitalization. Fix formatting and grammar issues.
(i386 and x86-64 Windows Options): Similar cleanup here.
From-SVN: r184879
2012-03-04 02:46:31 -05:00
Jason Merrill
a491b7be7f
* init.c (perform_member_init): Cope with uninstantiated NSDMI.
...
From-SVN: r184877
2012-03-03 19:55:51 -05:00
Jason Merrill
743af85b75
Core 1270
...
Core 1270
* call.c (build_aggr_conv): Call reshape_init.
(convert_like_real): Likewise.
* typeck2.c (process_init_constructor): Clear TREE_CONSTANT if
not all constant.
From-SVN: r184876
2012-03-03 19:55:44 -05:00
Jason Merrill
dd94dde783
mangle.c (write_nested_name): Use decl_mangling_context.
...
* mangle.c (write_nested_name): Use decl_mangling_context.
(write_prefix, write_template_prefix): Likewise.
From-SVN: r184875
2012-03-03 19:55:38 -05:00
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