Commit Graph

91500 Commits

Author SHA1 Message Date
GCC Administrator 27a3239ec7 Daily bump.
From-SVN: r143581
2009-01-23 00:16:47 +00:00
H.J. Lu e4e624abe2 c-opts.c (c_common_post_options): Fix a typo in comments.
2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>

	* c-opts.c (c_common_post_options): Fix a typo in comments.

From-SVN: r143578
2009-01-22 15:46:46 -08:00
Jonathan Wakely 78b580a99e thread (__thread_data_base, thread): Rename member functions to match coding style.
2009-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/thread (__thread_data_base, thread): Rename member
	functions to match coding style.
	(thread::thread,thread::operator=): Define move operations.
	* src/thread.cc (__thread_data_base, thread): Rename member functions.
	* config/abi/pre/gnu.ver: Adjust.

From-SVN: r143577
2009-01-22 22:33:02 +00:00
Benjamin Kosnik 6a5af9dcd8 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
2009-01-22 21:40:23 +00:00
Steve Ellcey 3ea37b6715 * gcc.dg/pr35729.c: Make test x86 specific.
From-SVN: r143573
2009-01-22 17:34:57 +00:00
Steve Ellcey 403066cf92 Should have been in previous checkin.
From-SVN: r143572
2009-01-22 17:09:56 +00:00
Steve Ellcey 42ab5b2869 re PR middle-end/38615 (invalid promotion to static from auto)
PR middle-end/38615
	* gcc.dg/pr38615.c: New test.

From-SVN: r143571
2009-01-22 17:03:35 +00:00
Steve Ellcey d0ea0759a0 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
2009-01-22 17:02:21 +00:00
Uros Bizjak 87673f8408 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
2009-01-22 13:48:03 +01:00
Richard Earnshaw 963392680f 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
2009-01-22 11:17:53 +00:00
Mark Shinwell 442dc742e4 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
2009-01-22 11:16:45 +00:00
Mark Shinwell 9b34732e9b 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
2009-01-22 11:14:42 +00:00
Dodji Seketeli 03c2a308f3 Reverted commit 143546 related to PR c++/26693
From-SVN: r143562
2009-01-22 08:15:41 +01:00
GCC Administrator 73cc93abd2 Daily bump.
From-SVN: r143560
2009-01-22 00:16:56 +00:00
Benjamin Kosnik 5904fbed9f 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
2009-01-21 22:50:31 +00:00
Vladimir Makarov 1240d76e00 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
2009-01-21 20:18:03 +00:00
Dave Korn b8a1087d67 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
2009-01-21 19:20:08 +00:00
Richard Sandiford dbbe69371e 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
2009-01-21 18:57:22 +00:00
Uros Bizjak bfcccc7f77 * testsuite/ChangeLog: Add missing ChangeLog entry.
From-SVN: r143550
2009-01-21 19:50:07 +01:00
Uros Bizjak 435da62879 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
2009-01-21 19:47:19 +01:00
Dodji Seketeli d597b3ce68 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
2009-01-21 17:14:49 +01:00
Daniel Kraft 210879b85b 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
2009-01-21 14:34:55 +01:00
Bingfeng Mei 71a6fe66e7 check alias sets in add_inter_loop_mem_dep
From-SVN: r143540
2009-01-21 11:39:19 +00:00
Benjamin Kosnik 954a782e53 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
2009-01-21 04:04:24 +00:00
GCC Administrator 4770322a2e Daily bump.
From-SVN: r143536
2009-01-21 00:16:51 +00:00
Joseph Myers 5a24827481 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
2009-01-20 21:58:30 +00:00
Paul Thomas 5b3b1d0977 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
2009-01-20 21:56:49 +00:00
Benjamin Kosnik 53f506ed16 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
2009-01-20 19:30:51 +00:00
Steve Ellcey 4b84f3de02 re PR target/30687 (undocumented attributes on ia64)
PR target/30687
	* doc/extend.texi (syscall_linkage): New.
	(version_id): Modify.

From-SVN: r143525
2009-01-20 19:14:06 +00:00
Tobias Burnus 872fbc1ac7 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
2009-01-20 19:46:30 +01:00
Andrew Pinski 37348bf105 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
2009-01-20 17:10:40 +00:00
Sebastian Pop d0a589040b 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
2009-01-20 15:01:14 +00:00
Sebastian Pop 71e7afb285 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
2009-01-20 14:58:53 +00:00
Kees Cook da609a9b71 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
2009-01-20 06:40:30 -08:00
Paolo Bonzini 09efeca1a4 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
2009-01-20 13:24:25 +00:00
Ben Elliston cbb8dee326 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
2009-01-20 20:49:58 +11:00
Richard Guenther 3e98d281f6 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
2009-01-20 09:21:41 +00:00
Iain Sandoe 72c6659693 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
2009-01-20 00:59:24 +00:00
GCC Administrator 6600206c4e Daily bump.
From-SVN: r143505
2009-01-20 00:17:11 +00:00
Jason Merrill 0513421163 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
2009-01-19 17:50:43 -05:00
Mikael Morin 9295d9eda3 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
2009-01-19 22:19:34 +00:00
Vladimir Makarov f68211cd04 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
2009-01-19 17:17:14 +00:00
GCC Administrator be12c33aa4 Daily bump.
From-SVN: r143491
2009-01-19 00:17:01 +00:00
Ben Elliston bc127c6310 Correct my most recent entry.
From-SVN: r143488
2009-01-19 08:41:52 +11:00
Dave Korn 04f9f7b532 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
2009-01-18 21:36:20 +00:00
H.J. Lu 6e4f11689b 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
2009-01-18 08:26:26 -08:00
Richard Guenther 890065bfe4 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
2009-01-18 15:51:12 +00:00
Andreas Schwab a729d731c8 doc/install.texi (Configuration): Remove obsolete paragraph
about use of --with-gnu-ld with --with-gnu-as.

From-SVN: r143484
2009-01-18 15:47:15 +00:00
Jonathan Wakely 8b6ded8d4f 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
2009-01-18 12:38:10 +00:00
Ben Elliston 9d2cc6f081 * Makefile.in (bitmap.o-warn): Remove goal.
From-SVN: r143482
2009-01-18 22:30:29 +11:00