Gerald Pfeifer [Sun, 30 Jan 2011 12:33:35 +0000 (12:33 +0000)]
codecvt.xml: Fix link to The Austin Common Standards Revision Group.
* doc/xml/manual/codecvt.xml: Fix link to The Austin Common
Standards Revision Group.
* doc/xml/manual/locale.xml: Ditto.
* doc/xml/manual/messages.xml: Ditto.
* doc/xml/manual/using_exceptions.xml: Ditto.
Tobias Burnus [Tue, 25 Jan 2011 17:01:06 +0000 (18:01 +0100)]
backport: re PR fortran/47331 (ICE in make_decl_rtl, at varasm.c:1133 (with -fopenmp))
2011-01-25 Tobias Burnus <burnus@net-b.de>
Backport from mainline
2011-01-17 Jakub Jelinek <jakub@redhat.com>
PR fortran/47331
* gfortran.h (struct gfc_omp_saved_state): New type.
(gfc_omp_save_and_clear_state, gfc_omp_restore_state): New
prototypes.
* resolve.c (resolve_global_procedure): Call it around
gfc_resolve call.
2011-01-25 Tobias Burnus <burnus@net-b.de>
Backport from mainline
2011-01-17 Jakub Jelinek <jakub@redhat.com>
PR fortran/47331
* gfortran.dg/gomp/pr47331.f90: New test.
Tobias Burnus [Fri, 21 Jan 2011 22:38:55 +0000 (23:38 +0100)]
re PR fortran/47394 (Internal compiler error when error count limit is reached)
2011-01-21 Tobias Burnus <burnus@net-b.de>
PR fortran/47394
* error.c (gfc_error_now, gfc_fatal_error, gfc_error_check):
Use defined instead of magic number exit status codes.
* scanner.c (include_line, gfc_new_file): Ditto.
* gfortranspec.c (lang_specific_driver): Ditto.
* config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
Use <avxpermvecmode> on mask register.
(avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
gcc/testsuite/
2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline
2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
Jakub Jelinek [Sun, 16 Jan 2011 20:26:27 +0000 (21:26 +0100)]
backport: re PR c/47150 (ICE in gimplify_expr at gimplify.c)
Backport from mainline
2011-01-06 Jakub Jelinek <jakub@redhat.com>
PR c/47150
* c-convert.c (convert): When converting a complex expression
other than COMPLEX_EXPR to a different complex type, ensure
c_save_expr is called instead of save_expr, unless in_late_binary_op.
* c-typeck.c (convert_for_assignment): Set in_late_binary_op also
when converting COMPLEX_TYPE.
Jakub Jelinek [Sun, 16 Jan 2011 20:21:42 +0000 (21:21 +0100)]
backport: re PR tree-optimization/43655 (-ftree-ter causes FAIL: g++.old-deja/g++.law/temps5.C execution test)
Backport from mainline
2010-12-16 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/43655
* tree-ssa-ter.c (is_replaceable_p): Don't use
gimple_references_memory_p for -O0, instead check for load
by looking at rhs.
Jakub Jelinek [Sun, 16 Jan 2011 20:16:30 +0000 (21:16 +0100)]
backport: re PR rtl-optimization/46804 (gfortran.dg/char_cshift_2.f90 FAILs with -fregmove)
Backport from mainline
2010-12-10 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/46804
* regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
on the setter of src_reg rather than on insn. If it is
equal to the setter's original SET_SRC, replace it with its
zero or sign extension instead of dropping it.
Jakub Jelinek [Sun, 16 Jan 2011 20:14:37 +0000 (21:14 +0100)]
backport: re PR rtl-optimization/46865 (Using -save-temps (or ccache, distcc) produces different results with multiline macros containing asm code)
Backport from mainline
2010-12-10 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/46865
* rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
ASM_OPERANDS and ASM_INPUT if integers are different,
call locator_eq.
* jump.c (rtx_renumbered_equal_p): Likewise.
* gcc.target/i386/pr46865-1.c: New test.
* gcc.target/i386/pr46865-2.c: New test.
Jakub Jelinek [Sun, 16 Jan 2011 20:11:16 +0000 (21:11 +0100)]
backport: re PR target/41082 (FAIL: gfortran.fortran-torture/execute/where_2.f90 execution, -O3)
Backport from mainline
2010-12-09 Jakub Jelinek <jakub@redhat.com>
PR target/41082
* config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
instead of stve*x.
(altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
of operand 0.
* config/rs6000/altivec.md (VI_scalar): New mode attr.
(altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
vector mode for operand 0, put operand 1 into UNSPEC.
Thomas Koenig [Sun, 16 Jan 2011 11:46:55 +0000 (11:46 +0000)]
backport: re PR fortran/45777 (Alias analysis broken for arrays where LHS or RHS is a component ref)
2011-01-16 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/45777
* symbol.c (gfc_symbols_could_alias): Strip gfc_ prefix,
make static and move in front of its only caller, to ...
* trans-array.c (symbols_could_alias): ... here.
Pass information about pointer and target status as
arguments. Allocatable arrays don't alias anything
unless they have the POINTER attribute.
(gfc_could_be_alias): Keep track of pointer and target
status when following references. Also check if typespecs
of components match those of other components or symbols.
* gfortran.h: Remove prototype for gfc_symbols_could_alias.
2011-01-16 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/45777
* gfortran.dg/dependency_39.f90: New test.
Nick Clifton [Thu, 13 Jan 2011 17:20:20 +0000 (17:20 +0000)]
Import this fix from the mainline:
2010-10-19 Nick Clifton <nickc@redhat.com>
* config/rx/rx.c (rx_function_value): Small integer types are
promoted to SImode.
(rx_promote_function_mode): New function.
(TARGET_PROMOTE_FUNCTION_MODE): Define.
Eric Botcazou [Mon, 3 Jan 2011 12:06:19 +0000 (12:06 +0000)]
backport: re PR target/47038 (failure of gcc.dg/pr46685.c)
Backport from mainline
2010-12-30 Eric Botcazou <ebotcazou@adacore.com>
PR target/47038
* config/sparc/sparc.c (sparc_file_end): Call resolve_unique_section
on the GOT helper if USE_HIDDEN_LINKONCE.
2010-12-02 Eric Botcazou <ebotcazou@adacore.com>
PR target/46685
* config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
(sparc_expand_move): Call it to decide whether to emit the special
mov{si,di}_pic_label_ref patterns.
(sparc_legitimize_pic_address): Call it to decide whether to emit
the regular PIC sequence for labels. Fix long line.
(sparc_file_end): Set is_thunk for the PIC helper.
PR libgcj/46774: Create dynamic ProtectionDomain instances which check the system policy.
2010-12-13 Andrew John Hughes <ahughes@redhat.com>
PR libgcj/46774
* libjava/java/security/VMAccessController.java:
(DEFAULT_CONTEXT): Create ProtectionDomain with
four argument constructor (arguments are the same
as those implied by the two argument constructor).
(getContext()): Create ProtectionDomain instances
with four argument constructor using a null Principal
array (as before) but including the classloader, which
was always null before.
backport: re PR target/46915 (Wrong code is generated for conditional branch followed by zero length asm)
Backport from mainline:
2010-12-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/46915
* config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead
of next_real_insn. Search forward checking for both ASM_INPUT and
ASM_OPERANDS asms until exit condition is found.
(branch_needs_nop_p): Likewise.
(use_skip_p): New function.
(output_cbranch): Use use_skip_p.
(output_bb, output_bvb): Likewise.
Eric Botcazou [Sun, 19 Dec 2010 12:20:08 +0000 (12:20 +0000)]
re PR target/46729 (32-bit 30_threads execution tests fail on Solaris 10/SPARC with Sun as)
PR target/46729
* config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
(PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
* config/sparc/sparc.c (pic_helper_needed): Delete.
(global_offset_table): Likewise.
(pic_helper_symbol): Rename to...
(got_helper_rtx): ...this.
(global_offset_table_rtx): New global variable.
(sparc_got_symbol): Likewise.
(sparc_got): New static function.
(check_pic): Use local variable and call sparc_got.
(sparc_tls_symbol): Initialize to NULL_RTX.
(sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
and 32-bit ABI and copy the GOT symbol to a new register otherwise.
(get_pc_thunk_name): Rename local variable.
(gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
(load_pic_register): Rename to...
(load_got_register): ...this. Adjust and call gen_load_pcrel_sym.
(sparc_expand_prologue): Do not test flag_pic.
(sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
(sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
Rename local variable and do not call get_pc_thunk_name again.
* config/sparc/sparc.md (load_pcrel_sym): Add operand #3.