H.J. Lu [Fri, 30 Jan 2009 22:36:22 +0000 (22:36 +0000)]
backport: re PR rtl-optimization/38245 (stack corruption when a call is removed but not the outgoing argument pushes)
2009-01-30 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-01-14 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/38245
* gcc.dg/pr38245-3.c: New test.
* gcc.dg/pr38245-3.h: New file.
* gcc.dg/pr38245-4.c: New file.
* gcc.dg/pr38364.c: New test.
Uros Bizjak [Tue, 27 Jan 2009 11:39:42 +0000 (12:39 +0100)]
backport: re PR target/38706 (../../../../src/libstdc++-v3/src/strstream.cc:419: internal compiler error: Segmentation fault)
gcc/ChangeLog:
Backport from mainline:
2009-01-13 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
relocations of local symbols wider than UNITS_PER_WORD are not valid.
(alpha_legitimize_address): Do not split local symbols wider than
UNITS_PER_WORD into HIGH/LO_SUM parts.
2009-01-07 Uros Bizjak <ubizjak@gmail.com>
PR target/38706
* config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
free_after_compilation when outputting a thunk.
(alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
Do not call free_after_compilation here.
2008-12-22 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/elf.h (ASM_OUTPUT_EXTERNAL): New macro.
2008-12-21 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c (alpha_pad_noreturn): New static function.
(alpha_reorg): Call alpha_pad_noreturn.
2008-12-08 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c (alpha_set_memflags): Process memory
references in full insn sequence.
2008-12-05 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c (alpha_fold_vector_minmax): Create
VIEW_CONVERT_EXPR to convert output to long_integer_type_node.
(alpha_emit_conditional_branch): Do not generate direct branch
for UNORDERED comparisons.
gcc/testsuite/ChangeLog:
Backport from mainline:
2009-01-07 Uros Bizjak <ubizjak@gmail.com>
PR target/38706
* g++.dg/other/pr38706.C: New test.
libstdc++/ChangeLog:
Backport from mainline:
2009-01-13 Uros Bizjak <ubizjak@gmail.com>
* scripts/extract_symvers: Add sed script to remove ' [<other>: xx] '
field from readelf output.
Paul Thomas [Mon, 26 Jan 2009 06:15:41 +0000 (06:15 +0000)]
re PR fortran/38907 (ICE when contained function has same name as module function and used in expression)
2009-01-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38907
Backport from trunk
* resolve.c (check_host_association): Remove the matching to
correct an incorrect host association and use manipulation of
the expression instead.
2009-01-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38907
Backport from trunk
* gfortran.dg/host_assoc_function_7.f90: New test.
Paul Thomas [Mon, 26 Jan 2009 05:12:03 +0000 (05:12 +0000)]
re PR fortran/38657 (PUBLIC/PRIVATE Common blocks)
2009-01-26 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38657
* module.c (write_common_0): Add argument 'this_module' and
check that non-use associated common blocks are written first.
(write_common): Call write_common_0 twice, once with true and
then with false.
Uros Bizjak [Sun, 25 Jan 2009 12:26:15 +0000 (13:26 +0100)]
backport: re PR target/38931 (Seg fault when getting instruction latency on a *movsi_1 with an MMX target register)
Backport from mainline:
2009-01-22 Uros Bizjak <ubizjak@gmail.com>
PR target/38931
* config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
(*movdi_1_rex64): Use type "mmx" for alternative 5.
2009-01-21 Uros Bizjak <ubizjak@gmail.com>
PR rtl-optimization/38879
* alias.c (base_alias_check): Unaligned access via AND address can
alias all surrounding object types except those with sizes equal
or wider than the size of unaligned access.
testsuite/ChangeLog:
Backport from mainline:
2009-01-22 Uros Bizjak <ubizjak@gmail.com>
PR target/38931
* gcc.target/i386/pr38931.c: New test.
H.J. Lu [Sat, 24 Jan 2009 15:31:13 +0000 (15:31 +0000)]
re PR target/38902 (__builtin_strcpy doesn't work with -fstack-protector)
gcc/
2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
PR target/38902
Backport from mainline:
2008-12-23 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.c (expand_movmem_via_rep_mov): Set MEM_SIZE
correctly.
(expand_setmem_via_rep_stos): Add ORIG_VALUE argument. If
ORIG_VALUE is const0_rtx and COUNT is constant, set MEM_SIZE
on DESTMEM.
(ix86_expand_setmem): Adjust callers.
gcc/testsuite/
2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-01-20 Kees Cook <kees@ubuntu.com>
H.J. Lu <hongjiu.lu@intel.com>
pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk function when...
* pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
function when not using named sections on targets with named sections
if branch distance is less than 262132.
* pa.c (last_address): Change to unsigned.
(update_total_code_bytes): Change argument to unsigned. Don't
check if insn addresses are set.
(pa_output_function_epilogue): Set last_address to UINT_MAX if insn
addresses are not set.
(pa_asm_output_mi_thunk): Handle wrap when updating last_address.
Jason Merrill [Thu, 15 Jan 2009 22:34:20 +0000 (17:34 -0500)]
re PR c++/36334 (typedef to function type leads to problems)
PR c++/36334
PR c++/37646
* tree.c (lvalue_p_1): Handle BASELINK. A COMPONENT_REF to
a function isn't necessarily an lvalue. Take tree, not const_tree.
(lvalue_p, real_lvalue_p): Take tree, not const_tree.
* typeck.c (lvalue_or_else): Likewise.
* cp-tree.h: Adjust prototypes.
PR c++/31488
* tree.c (pod_type_p): Return 1 for structs created by the back end.
Mikael Morin [Wed, 14 Jan 2009 20:53:18 +0000 (21:53 +0100)]
re PR fortran/35681 (wrong result for vector subscripted array expression in MVBITS)
2009-01-14 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/35681
* ChangeLog: Fix function name.
PR fortran/38487
* dependency.c (gfc_check_argument_var_dependency):
Move the check for pointerness inside the if block
so that it doesn't affect the return value.
PR fortran/38669
* trans-stmt.c (gfc_trans_call):
Add the dependency code after the loop bounds calculation one.
2009-01-14 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/38669
* gfortran.dg/elemental_dependency_3.f90: New test.
* gfortran.dg/elemental_subroutine_7.f90: New test.