Benjamin Kosnik [Thu, 22 Jan 2009 21:40:23 +0000 (21:40 +0000)]
re PR target/38384 (shared link/execute fails for cross gcc from linux to target hppa64-hp-hpux11.00)
2009-01-22 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/38384
* acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Disable symbol versioning
on HPUX.
* configure: Regenerate.
From-SVN: r143576
Steve Ellcey [Thu, 22 Jan 2009 17:34:57 +0000 (17:34 +0000)]
* gcc.dg/pr35729.c: Make test x86 specific.
From-SVN: r143573
Steve Ellcey [Thu, 22 Jan 2009 17:09:56 +0000 (17:09 +0000)]
Should have been in previous checkin.
From-SVN: r143572
Steve Ellcey [Thu, 22 Jan 2009 17:03:35 +0000 (17:03 +0000)]
re PR middle-end/38615 (invalid promotion to static from auto)
PR middle-end/38615
* gcc.dg/pr38615.c: New test.
From-SVN: r143571
Steve Ellcey [Thu, 22 Jan 2009 17:02:21 +0000 (17:02 +0000)]
re PR middle-end/38615 (invalid promotion to static from auto)
PR middle-end/38615
* gimplify.c (gimplify_init_constructor): Fix promotion of const
variables to static.
* doc/invoke.texi (-fmerge-all-constants): Update description.
From-SVN: r143570
Uros Bizjak [Thu, 22 Jan 2009 12:48:03 +0000 (13:48 +0100)]
re PR target/38931 (Seg fault when getting instruction latency on a *movsi_1 with an MMX target register)
PR target/38931
* config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
(*movdi_1_rex64): Use type "mmx" for alternative 5.
testsuite/ChangeLog:
PR target/38931
* gcc.target/i386/pr38931.c: New test.
From-SVN: r143567
Richard Earnshaw [Thu, 22 Jan 2009 11:17:53 +0000 (11:17 +0000)]
arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to a word boundary.
* arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
a word boundary.
(LOCAL_ALIGNMENT): Similarly.
From-SVN: r143566
Mark Shinwell [Thu, 22 Jan 2009 11:16:45 +0000 (11:16 +0000)]
arm.c (all_architectures): Add iWMMXt2 entry.
2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
* config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
* config/arm/arm-tune.md: Regenerate.
* doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
-march=iwmmxt2.
Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r143565
Mark Shinwell [Thu, 22 Jan 2009 11:14:42 +0000 (11:14 +0000)]
bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI version number to five.
2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
* config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
version number to five.
From-SVN: r143564
Dodji Seketeli [Thu, 22 Jan 2009 07:15:41 +0000 (07:15 +0000)]
Reverted commit 143546 related to PR c++/26693
From-SVN: r143562
GCC Administrator [Thu, 22 Jan 2009 00:16:56 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r143560
Benjamin Kosnik [Wed, 21 Jan 2009 22:50:31 +0000 (22:50 +0000)]
functions.c: Remove atomic_flag_fence.
2009-01-21 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/29_atomics/headers/stdatomic.h/functions.c: Remove
atomic_flag_fence.
From-SVN: r143557
Vladimir Makarov [Wed, 21 Jan 2009 20:18:03 +0000 (20:18 +0000)]
re PR middle-end/38587 (IRA doesn't preserve local variables after setjmp)
2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
PR middle-end/38587
* ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
crossing setjmps.
From-SVN: r143554
Dave Korn [Wed, 21 Jan 2009 19:20:08 +0000 (19:20 +0000)]
re PR bootstrap/37660 (Error Building libssp, recent update)
PR bootstrap/37660
* config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
(LIBGCC_SPEC): Don't define.
(REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
From-SVN: r143552
Richard Sandiford [Wed, 21 Jan 2009 18:57:22 +0000 (18:57 +0000)]
ssa-store-ccp-3.c: Skip for mips*-*-linux* and mips*-*-irix*.
gcc/testsuite/
* gcc.dg/tree-ssa/ssa-store-ccp-3.c: Skip for mips*-*-linux*
and mips*-*-irix*.
* gcc.dg/tree-ssa/vrp47.c: Skip for all MIPS targets.
From-SVN: r143551
Uros Bizjak [Wed, 21 Jan 2009 18:50:07 +0000 (19:50 +0100)]
* testsuite/ChangeLog: Add missing ChangeLog entry.
From-SVN: r143550
Uros Bizjak [Wed, 21 Jan 2009 18:47:19 +0000 (19:47 +0100)]
re PR rtl-optimization/38879 (scheduler does not look for conflicting alias sets)
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.
From-SVN: r143549
Dodji Seketeli [Wed, 21 Jan 2009 16:14:49 +0000 (16:14 +0000)]
re PR c++/26693 (Access checks not performed for types in templates)
gcc/ChangeLog:
2009-01-21 Dodji Seketeli <dodji@redhat.com>
PR c++/26693
* c-decl.c: (clone_underlying_type): Move this ...
* c-common.c (set_underlying_type): ... here.
Also, make sure the function properly sets TYPE_STUB_DECL() on
the newly created typedef variant type.
(is_typedef_decl ): New entry point.
* tree.h: Added a new member member_types_needing_access_check to
struct tree_decl_non_common.
(set_underlying_type): New entry point.
(is_typedef_type): Likewise.
gcc/cp/ChangeLog/
2009-01-21 Dodji Seketeli <dodji@redhat.com>
PR c++/26693
* decl2.c (grokfield): when a typedef appears in a
class, create the typedef variant type node for it.
(save_template_attributes): Creating typedef variant type node
here is now useless.
* decl.c (grokdeclarator): If the typedef'ed struct/class was
anonymous, set the proper type name to all its type variants.
* name-lookup.c (pushdecl_maybe_friend): Reuse the
set_underlying_type function to install typedef variant types.
* cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
macro.
(append_type_to_template_for_access_check): New entry points.
* semantics.c (check_accessibility_of_qualified_id):
When a typedef that is a member of a class appears in a template,
add it to the template. It will be ...
* pt.c (instantiate_class_template, instantiate_template ): ... access
checked at template instantiation time.
(tsubst): Handle the case of being called with NULL args.
(resolve_type_name_type): The type name should be the name of the
main type variant.
(append_type_to_template_for_access_check): New entry point.
gcc/testsuite/ChangeLog
2009-01-21 Dodji Seketeli <dodji@redhat.com>
PR c++/26693
* g++.dg/template/typedef11.C: New test.
* g++.dg/template/typedef12.C: Likewise.
* g++.dg/template/typedef13.C: Likewise.
* g++.dg/template/typedef14.C: Likewise.
* g++.dg/template/sfinae3.C: Compile this pedantically.
The only errors expected should be the one saying the typedef is ill
formed.
* g++.old-deja/g++.pt/typename8.C: Likewise.
* g++.dg/template/access11.C: Update this.
libstdc++-v3/ChangeLog:
2009-01-21 Dodji Seketeli <dodji@redhat.com>
* include/ext/bitmap_allocator.h: the typedefs should be made public
if we want them to be accessible. This has been revealed by the patch
that fixes PR c++/26693 in g++.
From-SVN: r143546
Daniel Kraft [Wed, 21 Jan 2009 13:34:55 +0000 (14:34 +0100)]
re PR fortran/38887 (run-time abort for MVBITS with run-time zero sized array arguments)
2009-01-21 Daniel Kraft <d@domob.eu>
* trans-stmt.c (gfc_conv_elemental_dependencies): Cleaned up comment.
2009-01-21 Daniel Kraft <d@domob.eu>
PR fortran/38887
* runtime/in_unpack_generic.c (internal_unpack): Return instead of
abort when called with empty array.
* m4/in_unpack.m4: Ditto.
* generated/in_unpack_i1.c: Regenerated.
* generated/in_unpack_i2.c: Regenerated.
* generated/in_unpack_i4.c: Regenerated.
* generated/in_unpack_i8.c: Regenerated.
* generated/in_unpack_i16.c: Regenerated.
* generated/in_unpack_r4.c: Regenerated.
* generated/in_unpack_r8.c: Regenerated.
* generated/in_unpack_r10.c: Regenerated.
* generated/in_unpack_r16.c: Regenerated.
* generated/in_unpack_c4.c: Regenerated.
* generated/in_unpack_c8.c: Regenerated.
* generated/in_unpack_c10.c: Regenerated.
* generated/in_unpack_c16.c: Regenerated.
2009-01-21 Daniel Kraft <d@domob.eu>
PR fortran/38887
* gfortran.dg/mvbits_5.f90: New test.
From-SVN: r143541
Bingfeng Mei [Wed, 21 Jan 2009 11:39:19 +0000 (11:39 +0000)]
check alias sets in add_inter_loop_mem_dep
From-SVN: r143540
Benjamin Kosnik [Wed, 21 Jan 2009 04:04:24 +0000 (04:04 +0000)]
re PR libstdc++/38834 (FAIL: abi_check on alpha)
2009-01-20 Benjamin Kosnik <bkoz@redhat.com>
Uros Bizjak <ubizjak@gmail.com>
PR libstdc++/38834
* config/abi/pre/gnu.ver: Correct char16_t and char32_t exports.
* config/os/gnu-linux/ldbl-extra.ver: Tweak.
Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r143538
GCC Administrator [Wed, 21 Jan 2009 00:16:51 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r143536
Joseph Myers [Tue, 20 Jan 2009 21:58:30 +0000 (21:58 +0000)]
re PR other/38758 (gcc ships with GPL-only library parts (longlong.h))
PR other/38758
* longlong.h: Update copyright years. Use soft-fp license
notice. Sync __clz_tab declaration with glibc.
From-SVN: r143531
Paul Thomas [Tue, 20 Jan 2009 21:56:49 +0000 (21:56 +0000)]
re PR fortran/38907 (ICE when contained function has same name as module function and used in expression)
2009-01-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38907
* resolve.c (check_host_association): Remove the matching to
correct an incorrect host association and use manipulation of
the expression instead.
2009-01-20 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38907
* gfortran.dg/host_assoc_function_7.f90: New test.
From-SVN: r143530
Benjamin Kosnik [Tue, 20 Jan 2009 19:30:51 +0000 (19:30 +0000)]
re PR libstdc++/38919 (math_stubs_long_double.cc: error: redefinition of 'long double ...' vs. /usr/x86_64-mingw32/include/math.h)
2009-01-20 Benjamin Kosnik <bkoz@redhat.com>
Rainer Emrich <r.emrich@de.tecosim.com>
PR libstdc++/38919
* crossconfig.m4: Use GLIBCXX_CHECK_MATH_SUPPORT and
GLIBCXX_CHECK_STDLIB_SUPPORT for mingw crosses.
* configure: Regenerate.
Co-Authored-By: Rainer Emrich <r.emrich@de.tecosim.com>
From-SVN: r143526
Steve Ellcey [Tue, 20 Jan 2009 19:14:06 +0000 (19:14 +0000)]
re PR target/30687 (undocumented attributes on ia64)
PR target/30687
* doc/extend.texi (syscall_linkage): New.
(version_id): Modify.
From-SVN: r143525
Tobias Burnus [Tue, 20 Jan 2009 18:46:30 +0000 (19:46 +0100)]
invoke.texi (RANGE): RANGE also takes INTEGER arguments.
2009-01-20 Tobias Burnus <burnus@net-b.de>
* invoke.texi (RANGE): RANGE also takes INTEGER arguments.
From-SVN: r143524
Andrew Pinski [Tue, 20 Jan 2009 17:10:40 +0000 (17:10 +0000)]
re PR tree-optimization/38747 (Wrong code due to VIEW_CONVERT_EXPR)
2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
Richard Guenther <rguenther@suse.de>
PR tree-optimization/38747
PR tree-optimization/38748
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
conversion if the base address is an indirect reference and the
aliasing sets could cause issues.
* gcc.dg/tree-ssa/struct-aliasing-1.c: New test.
* gcc.dg/tree-ssa/struct-aliasing-2.c: Likewise.
* gcc.c-torture/execute/struct-aliasing-1.c: Likewise.
Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r143523
Sebastian Pop [Tue, 20 Jan 2009 15:01:14 +0000 (15:01 +0000)]
common.opt (fgraphite, [...]): Add comment for explaining why these options are not documented.
2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
* common.opt (fgraphite, fgraphite-identity): Add comment for
explaining why these options are not documented.
From-SVN: r143518
Sebastian Pop [Tue, 20 Jan 2009 14:58:53 +0000 (14:58 +0000)]
graphite.c (stmt_simple_for_scop_p): Also handle cases when gimple_call_lhs is NULL.
2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
* graphite.c (stmt_simple_for_scop_p): Also handle cases when
gimple_call_lhs is NULL.
From-SVN: r143517
Kees Cook [Tue, 20 Jan 2009 14:40:30 +0000 (06:40 -0800)]
re PR target/38902 (__builtin_strcpy doesn't work with -fstack-protector)
2009-01-20 Kees Cook <kees@ubuntu.com>
H.J. Lu <hongjiu.lu@intel.com>
PR target/38902
* gcc.dg/pr38902.c: New.
From-SVN: r143516
Paolo Bonzini [Tue, 20 Jan 2009 13:24:25 +0000 (13:24 +0000)]
re PR target/38868 (r143152 breaks output routines in xplor-nih)
gcc:
2008-01-20 Paolo Bonzini <bonzini@gnu.org>
PR target/38868
* emit-rtl.c (adjust_address_1): Make sure memref is never
overwritten.
gcc/testsuite:
2008-01-20 Paolo Bonzini <bonzini@gnu.org>
PR target/38868
* gfortran.dg/pr38868.f: New testcase.
From-SVN: r143513
Ben Elliston [Tue, 20 Jan 2009 09:49:58 +0000 (09:49 +0000)]
libgcov.c (__gcov_execl, [...]): Remove const qualifier from arg parameter.
* libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
const qualifier from arg parameter. Remove unnecessary cast to
char *.
* gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
const qualifier from arg 2.
From-SVN: r143511
Richard Guenther [Tue, 20 Jan 2009 09:21:41 +0000 (09:21 +0000)]
pr36227.c: Move ...
2009-01-20 Richard Guenther <rguenther@suse.de>
* gcc.c-torture/execute/pr36227.c: Move ...
* gcc.dg/torture/pr36227.c: ... here. Require stdint_types.
From-SVN: r143509
Iain Sandoe [Tue, 20 Jan 2009 00:59:24 +0000 (00:59 +0000)]
darwin.h: Add static-libgfortran to LINK_SPEC.
2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
gcc/
* config/darwin.h: Add static-libgfortran to LINK_SPEC.
gcc/testsuite/
* lib/gfortran.exp: Add -B options for targets that use
libgfortran.a%s in their specs.
libgomp/
* testsuite/lib/libgomp.exp: Add -B option for targets that
use libgfortran.a%s in their specs.
From-SVN: r143507
GCC Administrator [Tue, 20 Jan 2009 00:17:11 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r143505
Jason Merrill [Mon, 19 Jan 2009 22:50:43 +0000 (17:50 -0500)]
re PR c++/23287 (Explicitly invoking destructor of template class in a template and is dependent)
PR c++/23287
* parser.c (cp_parser_unqualified_id): In a template,
accept ~identifier.
* typeck.c (lookup_destructor): Handle IDENTIFIER_NODE.
From-SVN: r143502
Mikael Morin [Mon, 19 Jan 2009 22:19:34 +0000 (23:19 +0100)]
re PR fortran/38859 (ubound and lbound treat structure component references as whole arrays)
2009-01-19 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/38859
* simplify.c (simplify_bound): Don't use array specification
if variable or component has subsequent references.
2009-01-19 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/38859
* gfortran.dg/bound_5.f90: New test.
From-SVN: r143501
Vladimir Makarov [Mon, 19 Jan 2009 17:17:14 +0000 (17:17 +0000)]
re PR c/38869 (valgrind find problem with -O -mtune=generic)
2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
PR c/38869
* rtl.h (reinit_regs): New prototype.
* regclass.c: Include ira.h.
(reinit_regs): New.
* Makefile.in (regclass.o): Add ira.h.
* config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
From-SVN: r143498
GCC Administrator [Mon, 19 Jan 2009 00:17:01 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r143491
Ben Elliston [Sun, 18 Jan 2009 21:41:52 +0000 (08:41 +1100)]
Correct my most recent entry.
From-SVN: r143488
Dave Korn [Sun, 18 Jan 2009 21:36:20 +0000 (21:36 +0000)]
configure.ac (funcs, [...]): Don't munge on Cygwin, as it no longer shares libiberty object files.
* configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
as it no longer shares libiberty object files.
* configure: Regenerated.
From-SVN: r143487
H.J. Lu [Sun, 18 Jan 2009 16:26:26 +0000 (16:26 +0000)]
re PR target/38736 (-mavx can change the ABI via BIGGEST_ALIGNMENT)
gcc/
2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR target/38736
* c-common.c (handle_aligned_attribute): Use
ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
default alignment value.
* c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
* defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
* config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
* doc/extend.texi: Update __attribute__ ((aligned)). Document
__BIGGEST_ALIGNMENT__.
* doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
gcc/testsuite/
2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR target/38736
* g++.dg/compat/abi/pr38736_main.C: New.
* g++.dg/compat/abi/pr38736_x.C: Likewise.
* g++.dg/compat/abi/pr38736_y.C: Likewise.
* g++.dg/other/macro-1.C: Likewise.
* gcc.dg/macro-1.c: Likewise.
* gcc.dg/compat/pr38736_main.c: Likewise.
* gcc.dg/compat/pr38736_x.c: Likewise.
* gcc.dg/compat/pr38736_y.c: Likewise.
From-SVN: r143486
Richard Guenther [Sun, 18 Jan 2009 15:51:12 +0000 (15:51 +0000)]
re PR tree-optimization/38819 (trapping expression wrongly hoisted out of loop)
2009-01-18 Richard Guenther <rguenther@suse.de>
PR tree-optimization/38819
* tree-flow.h (operation_could_trap_helper_p): Declare.
* tree-eh.c (operation_could_trap_helper_p): Export.
* tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
* tree-ssa-sccvn.c (vn_nary_may_trap): New function.
* tree-ssa-pre.c (insert_into_preds_of_block): Check if we
are about to insert a possibly trapping instruction and fail
in this case.
* gcc.c-torture/execute/pr38819.c: New testcase.
From-SVN: r143485
Andreas Schwab [Sun, 18 Jan 2009 15:47:15 +0000 (15:47 +0000)]
doc/install.texi (Configuration): Remove obsolete paragraph
about use of --with-gnu-ld with --with-gnu-as.
From-SVN: r143484
Jonathan Wakely [Sun, 18 Jan 2009 12:38:10 +0000 (12:38 +0000)]
thread (__thread_data_base::__run): Make non-const.
* include/std/thread (__thread_data_base::__run): Make non-const.
* testsuite/30_threads/thread/cons/5.cc: New.
From-SVN: r143483
Ben Elliston [Sun, 18 Jan 2009 11:30:29 +0000 (11:30 +0000)]
* Makefile.in (bitmap.o-warn): Remove goal.
From-SVN: r143482
Kazu Hirata [Sun, 18 Jan 2009 09:11:10 +0000 (09:11 +0000)]
extend.texi, [...]: Fix typos.
* doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
Follow spelling conventions.
From-SVN: r143481
Ben Elliston [Sun, 18 Jan 2009 08:51:56 +0000 (08:51 +0000)]
bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate C++ warning about implicit conversion from void * to...
* bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
C++ warning about implicit conversion from void * to struct
bitmap_head_def *.
(bitmap_obstack_free): Likewise for bitmap_element *.
From-SVN: r143480
GCC Administrator [Sun, 18 Jan 2009 00:16:46 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r143478
Ben Elliston [Sat, 17 Jan 2009 23:41:31 +0000 (23:41 +0000)]
* config/i386/32/tf-signs.c (__copysigntf3, __fabstf2): Prototype.
From-SVN: r143475
Gerald Pfeifer [Sat, 17 Jan 2009 22:36:37 +0000 (22:36 +0000)]
* MAINTAINERS: Remove Robert Millan from Write After Approval.
From-SVN: r143474
Gerald Pfeifer [Sat, 17 Jan 2009 22:13:55 +0000 (22:13 +0000)]
* MAINTAINERS: Make whitespace consistent.
From-SVN: r143473
Dave Korn [Sat, 17 Jan 2009 21:06:17 +0000 (21:06 +0000)]
re PR bootstrap/38862 (Bootstrap failure on HEAD with static linking vs. graphite)
PR bootstrap/38862
* Makefile.in (BACKENDLIBS): Reorder to match dependencies.
From-SVN: r143472
Sebastian Pop [Sat, 17 Jan 2009 15:13:12 +0000 (15:13 +0000)]
graphite.c (graphite_trans_scop_block): Do not block single nested loops.
2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
Tobias Grosser <tobi.grosser@amd.com>
* graphite.c (graphite_trans_scop_block): Do not block single
nested loops.
Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>
From-SVN: r143468
Richard Guenther [Sat, 17 Jan 2009 14:53:57 +0000 (14:53 +0000)]
gcc_release (JAVA_DIRS): Remove fastjar.
2009-01-17 Richard Guenther <rguenther@suse.de>
* gcc_release (JAVA_DIRS): Remove fastjar.
From-SVN: r143465
Paul Thomas [Sat, 17 Jan 2009 11:58:48 +0000 (11:58 +0000)]
re PR fortran/38657 (PUBLIC/PRIVATE Common blocks)
2009-01-17 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.
2009-01-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38657
* gfortran.dg/module_commons_3.f90: Reapply.
From-SVN: r143463
Paul Thomas [Sat, 17 Jan 2009 11:32:02 +0000 (11:32 +0000)]
re PR fortran/34955 (transfer_assumed_size_1.f90: Valgrind error: invalid read of size 3)
2009-01-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34955
* trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Has
been absorbed into gfc_conv_intrinsic_transfer. All
references to it in trans-intrinsic.c have been changed
accordingly. PR fixed by using a temporary for scalar
character transfer, when the source is shorter than the
destination.
2009-01-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34955
* gfortran.dg/transfer_intrinsic_1.f90: New test.
* gfortran.dg/transfer_intrinsic_2.f90: New test.
From-SVN: r143462
Paul Thomas [Sat, 17 Jan 2009 09:43:57 +0000 (09:43 +0000)]
re PR fortran/38657 (PUBLIC/PRIVATE Common blocks)
2009-01-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38657
* module.c (write_common_0): Revert patch of 2009-01-10.
2009-01-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/38657
* gfortran.dg/module_commons_3.f90: Remove
From-SVN: r143459
Benjamin Kosnik [Sat, 17 Jan 2009 02:03:25 +0000 (02:03 +0000)]
Makefile.am (sources): Add math_stubs_float.cc.
2009-01-16 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (sources): Add math_stubs_float.cc.
* src/Makefile.in: Regenerate.
* src/math_stubs_float.cc: New, from libmath/stubs.c.
From-SVN: r143457
H.J. Lu [Sat, 17 Jan 2009 01:31:44 +0000 (01:31 +0000)]
foldaddr-1.c: Add the missing '}'.
2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/tree-ssa/foldaddr-1.c: Add the missing '}'.
From-SVN: r143455
GCC Administrator [Sat, 17 Jan 2009 00:17:01 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r143453
Jason Merrill [Fri, 16 Jan 2009 22:40:25 +0000 (17:40 -0500)]
re PR c++/38877 (Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006)
PR c++/38877
* tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
* init.c (build_new): Don't call describable_type unless we
have an auto.
From-SVN: r143448
Jakub Jelinek [Fri, 16 Jan 2009 22:38:12 +0000 (23:38 +0100)]
Makefile.in: Fix multilib handling for powerpc64-linux.
* gcc-interface/Makefile.in: Fix multilib handling for
powerpc64-linux.
From-SVN: r143447
Jason Merrill [Fri, 16 Jan 2009 22:36:32 +0000 (17:36 -0500)]
re PR c++/38877 (Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006)
PR c++/38877
* tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
* init.c (build_new): Don't call describable_type unless we
have an auto.
From-SVN: r143446
Jason Merrill [Fri, 16 Jan 2009 22:36:11 +0000 (17:36 -0500)]
re PR c++/29470 (Using declaration access semantics change with templates)
PR c++/29470
* pt.c (tsubst_decl) [USING_DECL]: Propagate access flags.
From-SVN: r143445
Alexandre Oliva [Fri, 16 Jan 2009 20:44:25 +0000 (20:44 +0000)]
ebitmap.h (ebitmap_iter_init): Initialize all fields.
* ebitmap.h (ebitmap_iter_init): Initialize all fields.
* ipa-struct-reorg.c (gen_struct_type): Replace known-true
test with assertion.
From-SVN: r143443
Richard Guenther [Fri, 16 Jan 2009 19:18:18 +0000 (19:18 +0000)]
re PR tree-optimization/38835 (field-insensitive PTA causes libstdc++ miscompiles)
2009-01-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/38835
PR middle-end/36227
* fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
and INT + PTR -> (INT)(PTR p+ INT) folding.
* tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
java/
* builtins.c (build_addr_sum): Use POINTER_PLUS_EXPR.
* gcc.c-torture/execute/pr36227.c: New testcase.
* gcc.dg/tree-ssa/foldaddr-1.c: XFAIL.
* g++.dg/init/const7.C: Likewise.
From-SVN: r143442
Adam Nemet [Fri, 16 Jan 2009 18:56:47 +0000 (18:56 +0000)]
re PR target/38554 (ICE when compiling pamfunc.c in netpbm with -O1 enabled)
PR target/38554
* expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
the subreg from a lowpart subreg if it is also casting the value.
testsuite/
PR target/38554
* gcc.c-torture/compile/pr38554.c: New test.
From-SVN: r143440
Jason Merrill [Fri, 16 Jan 2009 18:35:28 +0000 (13:35 -0500)]
re PR c++/38579 (Template: Wrong inherited copy-ctor visibility)
PR c++/38579
* search.c (protected_accessible_p): N doesn't vary.
From-SVN: r143439
Sebastian Pop [Fri, 16 Jan 2009 15:20:16 +0000 (15:20 +0000)]
graphite.c (compare_prefix_loops): New.
2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
Tobias Grosser <tobi.grosser@amd.com>
* graphite.c (compare_prefix_loops): New.
(build_scop_canonical_schedules): Rewritten.
(graphite_transform_loops): Move build_scop_canonical_schedules
after build_scop_iteration_domain.
Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>
From-SVN: r143437
Sebastian Pop [Fri, 16 Jan 2009 15:18:28 +0000 (15:18 +0000)]
graphite.c (add_conditions_to_domain): Add the loops to the dimension of the iteration domain.
2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
Tobias Grosser <tobi.grosser@amd.com>
* graphite.c (add_conditions_to_domain): Add the loops to
the dimension of the iteration domain. Do copy the domain
only when it exists.
(build_scop_conditions_1): Do not call add_conditions_to_domain.
(add_conditions_to_constraints): New.
(can_generate_code_stmt, can_generate_code): Removed.
(gloog): Do not call can_generate_code.
(graphite_transform_loops): Call add_conditions_to_constraints
after building the iteration domain.
Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>
From-SVN: r143436
Jakub Jelinek [Fri, 16 Jan 2009 15:01:24 +0000 (16:01 +0100)]
re PR tree-optimization/38789 (__builtin_constant_p appears to evaluate to true for non-constant arguments.)
PR tree-optimization/38789
* tree-ssa-threadedge.c
(record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
__builtin_constant_p.
* gcc.c-torture/compile/pr38789.c: New test.
From-SVN: r143435
Kenneth Zadeck [Fri, 16 Jan 2009 13:41:11 +0000 (13:41 +0000)]
dce.c (delete_unmarked_insns): Reversed the order that insns are examined before deleting them.
2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
* dce.c (delete_unmarked_insns): Reversed the order that insns are
examined before deleting them.
From-SVN: r143433
Richard Earnshaw [Fri, 16 Jan 2009 13:20:32 +0000 (13:20 +0000)]
function.c (aggregate_value_p): Correctly extract the function type from CALL_EXPR_FN lookup.
* function.c (aggregate_value_p): Correctly extract the function
type from CALL_EXPR_FN lookup.
From-SVN: r143432
Janus Weil [Fri, 16 Jan 2009 12:03:51 +0000 (13:03 +0100)]
re PR fortran/38152 (procedure pointers as module variables)
2009-01-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/38152
* expr.c (gfc_check_pointer_assign): Allow use-associated procedure
pointers as lvalue.
* trans-decl.c (get_proc_pointer_decl,gfc_create_module_variable):
Enable procedure pointers as module variables.
2009-01-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/38152
* gfortran.dg/proc_ptr_13.f90: New.
From-SVN: r143430
Hariharan Sandanagobalane [Fri, 16 Jan 2009 09:56:23 +0000 (09:56 +0000)]
picochip.c (picochip_override_options): Revert CFI asm flag disable commited previously.
* config/picochip/picochip.c (picochip_override_options): Revert
CFI asm flag disable commited previously.
From-SVN: r143429
Alan Modra [Fri, 16 Jan 2009 08:07:23 +0000 (08:07 +0000)]
Makefile.def (configure-opcodes): Depend on configure-libiberty.
* Makefile.def (configure-opcodes): Depend on configure-libiberty.
(all-opcodes): Depend on all-libiberty.
* Makefile.in: Regenerate.
From-SVN: r143426
Jason Merrill [Fri, 16 Jan 2009 05:04:26 +0000 (00:04 -0500)]
re PR c++/38850 (Cannot find inline friend function in template class when called from within a template function)
PR c++/38850
* pt.c (tsubst_copy_and_build): Tell finish_call_expr to
accept hidden friends.
From-SVN: r143422
Ben Elliston [Fri, 16 Jan 2009 04:00:48 +0000 (04:00 +0000)]
config.host (i[34567]86-*-linux*, [...]): Add t-softfp to tmake_file.
* config.host (i[34567]86-*-linux*, x86_64-*-linux*): Add t-softfp
to tmake_file.
From-SVN: r143421
Benjamin Kosnik [Fri, 16 Jan 2009 02:55:11 +0000 (02:55 +0000)]
Makefile.am (sources): Add math_stubs_long_double.cc.
2009-01-15 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (sources): Add math_stubs_long_double.cc.
* src/Makefile.in: Regenerate.
* src/math_stubs_long_double.cc: New, from libmath/stubs.c.
From-SVN: r143420
GCC Administrator [Fri, 16 Jan 2009 00:17:14 +0000 (00:17 +0000)]
Daily bump.
From-SVN: r143418
Sebastian Pop [Thu, 15 Jan 2009 23:23:48 +0000 (23:23 +0000)]
graphite.c (scan_tree_for_params): On substractions negate all the coefficients of the term.
2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
Tobias Grosser <tobi.grosser@amd.com>
Jan Sjodin <jan.sjodin@amd.com>
* graphite.c (scan_tree_for_params): On substractions negate
all the coefficients of the term.
(clast_to_gcc_expression_red): New. Handle reduction expressions
of more than two operands.
(clast_to_gcc_expression): Call clast_to_gcc_expression_red.
(get_vdef_before_scop): Handle also the case of default definitions.
Co-Authored-By: Jan Sjodin <jan.sjodin@amd.com>
Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>
From-SVN: r143415
Andrew Pinski [Thu, 15 Jan 2009 22:10:24 +0000 (22:10 +0000)]
re PR c++/29388 (ICE with invalid nested name specifier)
2009-01-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C++/29388
* decl.c (grokdeclarator): Check for a non namespace/class context.
2009-01-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR C++/29388
* g++.dg/template/error37.C: New testcase.
From-SVN: r143411
Richard Sandiford [Thu, 15 Jan 2009 21:22:32 +0000 (21:22 +0000)]
caller-save.c (add_used_regs_1, [...]): New functions.
gcc/
* caller-save.c (add_used_regs_1, add_used_regs): New functions.
(insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
Also use them when walking CALL_INSN_FUNCTION_USAGE.
From-SVN: r143409
Benjamin Kosnik [Thu, 15 Jan 2009 20:02:11 +0000 (20:02 +0000)]
re PR libstdc++/32666 (FAIL: abi_check hppa)
2009-01-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/32666
* config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.
2009-01-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/32666
* Makefile.am (hosted_source): Remove libmath directory.
* Makefile.in: Regenerate.
* linkage.m4 (GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT): Remove.
(AC_REPLACE_MATHFUNCS): Remove.
(GLIBCXX_CHECK_MATH_SUPPORT): Remove copysign, copysignl checks as done
in GLIBCXX_CHECK_C99_TR1.
* acinclude.m4: Remove libmath, need_math.
* crossconfig.m4: Remove use of HAVE_COPYSIGN, HAVE_COPYSIGNL,
HAVE_COPYSIGNF, GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT, need_libmath.
* configure.ac: Same.
* configure: Regenerate.
* fragment.am: Fix comment.
* config.h.in: Regenerate.
* src/Makefile.in: Regenerate.
* src/Makefile.am: Remove libmath references.
* doc/Makefile.in: Regenerate.
* po/Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* libsupc++/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
* src/compatibility.cc: Also export long double versions of "C" math
library if hppa-linux.
* config/abi/pre/gnu.ver: Remove unused __signbit exports.
* doc/xml/manual/appendix_contributing.xml: Remove libmath reference.
* libmath: Remove.
* libmath/signbit.c: Same.
* libmath/stubs.c: Same.
* libmath/Makefile.in: Same.
* libmath/copysignf.c: Same.
* libmath/mathconf.h: Same.
* libmath/signbitf.c: Same.
* libmath/Makefile.am: Same.
* libmath/signbitl.c: Same.
From-SVN: r143406
Jason Merrill [Thu, 15 Jan 2009 18:14:32 +0000 (13:14 -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.
From-SVN: r143404
Steve Ellcey [Thu, 15 Jan 2009 18:09:04 +0000 (18:09 +0000)]
re PR c++/38357 (ICE cc1plus (Segmentation fault))
PR c++/38357
* g++.dg/template/crash87.C: New test.
From-SVN: r143403
Steve Ellcey [Thu, 15 Jan 2009 18:07:46 +0000 (18:07 +0000)]
re PR c++/38357 (ICE cc1plus (Segmentation fault))
PR c++/38357
* pt.c (tsubst): Check for NULL args.
From-SVN: r143402
H.J. Lu [Thu, 15 Jan 2009 15:44:41 +0000 (15:44 +0000)]
re PR middle-end/37843 (unaligned stack in main due to tail call optimization)
gcc/
2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
Joey Ye <joey.ye@intel.com>
PR middle-end/37843
* cfgexpand.c (expand_stack_alignment): Don't update stack
boundary nor check incoming stack boundary here.
(gimple_expand_cfg): Update stack boundary and check incoming
stack boundary here.
gcc/testsuite/
2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/37843
* gcc.target/i386/pr37843-3.c: Replace _Decimal128 with __m128.
Co-Authored-By: Joey Ye <joey.ye@intel.com>
From-SVN: r143400
Kenneth Zadeck [Thu, 15 Jan 2009 15:27:20 +0000 (15:27 +0000)]
dce.c (find_call_stack_args, [...]): Fixed comments.
2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
* dce.c (find_call_stack_args, delete_unmarked_insns): Fixed
comments.
From-SVN: r143398
Chris Fairles [Thu, 15 Jan 2009 14:01:04 +0000 (14:01 +0000)]
acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME], [...]): Remove.
2009-01-15 Chris Fairles <cfairles@gcc.gnu.org>
Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_ENABLE_CLOCK_GETTIME],
[GLIBCXX_CHECK_NANOSLEEP]): Remove.
([GLIBCXX_ENABLE_LIBSTDCXX_TIME]): Add.
* configure.ac: Adjust.
* doc/xml/manual/configure.xml: Update.
* testsuite/lib/libstdc++.exp (check_v3_target_sched_yield): Add.
* testsuite/lib/dg-options.exp (dg-require-sched-yield): Add.
* testsuite/30_threads/thread/this_thread/2.cc: Use the latter.
* configure: Regenerate.
* config.h.in: Likewise.
* src/thread.cc (thread::thread(), thread::~thread, thread::get_id,
thread::joinable, thread::swap, this_thread::get_id,
this_thread::yield): Define inline...
* include/std/thread: ... here.
* config/abi/pre/gnu.ver: Adjust.
Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r143397
Douglas B Rupp [Thu, 15 Jan 2009 13:14:16 +0000 (13:14 +0000)]
configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
* configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
* configure: Regenerate.
From-SVN: r143394
Dodji Seketeli [Thu, 15 Jan 2009 13:01:36 +0000 (13:01 +0000)]
re PR c++/38636 (ICE with broken ctor declaration)
gcc/cp/ChangeLog:
2009-01-13 Dodji Seketeli <dodji@redhat.com>
PR c++/38636
* name-lookup.c (pushtag): Don't create members to types that are not
being created.
gcc/testsuite/ChangeLog:
2009-01-13 Dodji Seketeli <dodji@redhat.com>
PR c++/38636
* g++.dg/parse/crash50.C: New test.
From-SVN: r143392
Jakub Jelinek [Thu, 15 Jan 2009 08:07:38 +0000 (09:07 +0100)]
re PR rtl-optimization/38245 (stack corruption when a call is removed but not the outgoing argument pushes)
PR rtl-optimization/38245
* calls.c (expand_call): Add stack arguments to
CALL_INSN_FUNCTION_USAGE even for pure calls (when
ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
in regs and partially in memory or BLKmode arguments.
(emit_library_call_value_1): Add stack arguments to
CALL_INSN_FUNCTION_USAGE even for pure calls (when
ACCUMULATE_OUTGOING_ARGS).
* dce.c: Include tm_p.h.
(find_call_stack_args): New function.
(deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
argument.
(mark_insn): Call find_call_stack_args for CALL_Ps.
(prescan_insns_for_dce): Walk insns backwards in bb rather than
forwards. Allocate and free arg_stores bitmap if needed, pass it
down to deletable_insn_p, don't mark stores set in arg_stores
bitmap, clear the bitmap at the beginning of each bb.
* Makefile.in (dce.o): Depend on $(TM_P_H).
* 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.
From-SVN: r143387
Michael Meissner [Wed, 14 Jan 2009 22:40:34 +0000 (22:40 +0000)]
Fix PR22599
From-SVN: r143386
Steven G. Kargl [Wed, 14 Jan 2009 21:22:53 +0000 (21:22 +0000)]
ChangeLog-2007: Clean out svn merge droppings.
2009-01-14 Steven G. Kargl <kargl@gcc.gnu.org>
* ChangeLog-2007: Clean out svn merge droppings.
From-SVN: r143385
Sebastian Pop [Wed, 14 Jan 2009 21:11:05 +0000 (21:11 +0000)]
re PR middle-end/38431 ([graphite] several ICEs with CP2K (summary))
2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/38431
* graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
(scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
(gloog): Do not call cleanup_tree_cfg.
(graphite_transform_loops): Call cleanup_tree_cfg after all
scops have been code generated.
From-SVN: r143384
Adam Nemet [Wed, 14 Jan 2009 19:46:38 +0000 (19:46 +0000)]
mips.exp (mips_option_tests(-mips16)): Make the sequence PC-relative.
* gcc.target/mips/mips.exp (mips_option_tests(-mips16)): Make the
sequence PC-relative.
From-SVN: r143382
Mark Mitchell [Wed, 14 Jan 2009 19:37:02 +0000 (19:37 +0000)]
long-calls-1.c: Tolerate the lack of sibling calls and/or PLT markers.
* gcc.target/arm/long-calls-1.c: Tolerate the lack of sibling
calls and/or PLT markers.
* gcc.target/arm/long-calls-2.c: Tolerate the lack of sibling
calls and/or PLT markers.
* gcc.target/arm/long-calls-3.c: Tolerate the lack of sibling
calls and/or PLT markers.
* gcc.target/arm/long-calls-4.c: Tolerate the lack of sibling
calls and/or PLT markers.
From-SVN: r143381