Commit Graph

91625 Commits

Author SHA1 Message Date
H.J. Lu e6b18eaa6d re PR target/38952 (EH does not work.)
2009-01-26  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/38952
	* g++.dg/torture/stackalign/test-unwind.h (main): Also return 0
	if __USING_SJLJ_EXCEPTIONS__ is defined.

	* g++.dg/torture/stackalign/unwind-0.C (foo): Don't define if
	__USING_SJLJ_EXCEPTIONS__ is defined.
	* g++.dg/torture/stackalign/unwind-1.C (foo): Likewise.
	* g++.dg/torture/stackalign/unwind-2.C (foo): Likewise.
	* g++.dg/torture/stackalign/unwind-3.C (foo): Likewise.
	* g++.dg/torture/stackalign/unwind-4.C (foo): Likewise.
	* g++.dg/torture/stackalign/unwind-5.C (foo): Likewise.
	* g++.dg/torture/stackalign/unwind-6.C (foo): Likewise.

From-SVN: r143689
2009-01-26 15:39:02 -08:00
Andreas Tobler 5efb79fcab t-vxworks (LIBGCC2_INCLUDES): Fix typo.
2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>

	* config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
	(INSTALL_LIBGCC): Revert typo commit.

From-SVN: r143687
2009-01-27 00:01:25 +01:00
Andreas Tobler 9112bb3835 t-vxworks (LIBGCC2_INCLUDES): Fix typo.
2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>

	* config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.

From-SVN: r143686
2009-01-26 22:47:10 +01:00
Danny Smith 89d2411cc9 re PR testsuite/38949 (Link failures in new stackalign tests)
2009-01-26  Danny Smith  <dannysmith@users.sourceforge.net>

	PR testsuite/38949
	* g++.dg/torture/stackalign/test-unwind.h (ASMNAME): Define.
	Use instead of C name in asm statements.

From-SVN: r143684
2009-01-26 12:34:09 -08:00
H.J. Lu 93f1527a3f Fix a typo.
From-SVN: r143679
2009-01-26 08:46:03 -08:00
Richard Guenther 4757704f84 re PR tree-optimization/38745 (ICE: statement makes a memory store, but has no VDEFS)
2009-01-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38745
	* tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
	from special handling.

From-SVN: r143676
2009-01-26 15:03:30 +00:00
Richard Guenther e3e6cff41e re PR tree-optimization/38745 (ICE: statement makes a memory store, but has no VDEFS)
2009-01-26  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38745
	* tree-ssa.c (execute_update_addresses_taken): Do not include
	variables that cannot possibly be a register in not_reg_needs.
	Do not clear TREE_ADDRESSABLE on vars that may not become
	registers.
	* tree-ssa.c (update_alias_info_1): Include those in the set
	of addressable vars.

	* g++.dg/torture/pr38745.C: New testcase.

From-SVN: r143673
2009-01-26 09:55:30 +00:00
Richard Guenther dc874b53e5 re PR middle-end/38851 (Compiler warns about uninitialized variable that is an object with a constructor)
2009-01-26  Richard Guenther  <rguenther@suse.de>

	PR middle-end/38851
	* Makefile.in (tree-ssa-dse.o): Add langhooks.h.
	* tree-ssa-dse.c: Include langhooks.h
	(execute_simple_dse): Remove stores with zero size.

	* g++.dg/warn/Wuninitialized-1.C: New testcase.

From-SVN: r143672
2009-01-26 09:52:48 +00:00
GCC Administrator 20d4bdcbb1 Daily bump.
From-SVN: r143667
2009-01-26 00:16:58 +00:00
Hans-Peter Nilsson ecbf12d3cc Replace spurious character 0xa0 with 0x20 before 'target'
From-SVN: r143664
2009-01-25 20:15:44 +00:00
Hans-Peter Nilsson cc7f271ede bitfld-15.c: Gate warning on target pcc_bitfield_type_matters.
* gcc.dg/bitfld-15.c: Gate warning on target
	pcc_bitfield_type_matters.
	* gcc.dg/bitfld-17.c, g++.dg/ext/bitfield2.C,
	g++.dg/ext/bitfield4.C: Likewise.
	* gcc.dg/pr17112-1.c: Don't expect a warning for the packed
	bitfield for any target.

From-SVN: r143662
2009-01-25 12:11:21 +00:00
GCC Administrator a8b1bfab9f Daily bump.
From-SVN: r143659
2009-01-25 00:16:43 +00:00
Jakub Jelinek 849421a3e4 re PR c/38957 (return of local variable pointer)
PR c/38957
	* c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
	as PLUS_EXPR.

	* gcc.dg/pr38957.c: New test.

From-SVN: r143654
2009-01-24 22:36:09 +01:00
Julian Brown 82f7042142 t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add config/arm/linux-atomic.c.
* config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
	config/arm/linux-atomic.c.
	* config/arm/linux-atomic.c: New.

From-SVN: r143653
2009-01-24 21:06:08 +00:00
Eric Botcazou 863412d681 linux.h (DBX_REGISTER_NUMBER): Delete.
* config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
	* config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
	* config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.

From-SVN: r143649
2009-01-24 20:49:41 +00:00
H.J. Lu 8c6843007d re PR c/38938 (-Wno-all doesn't work on -Wpointer-sign)
2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>

	PR c/38938
	* c-opts.c (c_common_handle_option): Upate warn_pointer_sign
	properly.

From-SVN: r143648
2009-01-24 08:05:53 -08:00
David Billinghurst 8cd9b95149 re PR fortran/38955 (testsuite/gfortran.dg/array_constructor_24.f fails due to floating point comparison)
2009-01-24 David Billinghurst (billingd@gcc.gnu.org)

	PR fortran/38955
	* gfortran.dg/array_constructor_24.f: Allow tolerance when 
	comparing floats

From-SVN: r143600
2009-01-24 08:00:13 +00:00
Sebastian Pop b840fb02f5 re PR tree-optimization/38953 ([graphite] loop closed SSA not maintained by graphite code generation)
2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/38953
	* graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
	(scop_adjust_phis_for_liveouts): Initialize false_i to zero.
	(gloog): Split the exit of the scop when the scop exit is a loop exit.
	(graphite_transform_loops): Only call cleanup_tree_cfg if gloog
	changed the CFG.

	* gfortran.dg/graphite/pr38953.f90: New.

From-SVN: r143599
2009-01-24 00:59:51 +00:00
GCC Administrator 77f9581b89 Daily bump.
From-SVN: r143597
2009-01-24 00:17:00 +00:00
Paul Brook ecee559fa0 neon.md (neon_type): Move to arm.md.
2009-01-24  Paul Brook  <paul@codesourcery.com>

	gcc/
	* config/arm/neon.md (neon_type): Move to arm.md.
	(neon_mov<VSTRUCT>): Add neon_type attribute.
	* config/arm/arm.md (neon_type): Move to here.
	(conds): Add "unconditioal" and use as default for NEON insns.

	gcc/testsuite/
	* gcc.target/arm/neon-cond-1.c: New test.

From-SVN: r143594
2009-01-24 00:10:30 +00:00
Ben Elliston 61ad091447 bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from void *' warning from -Wc++-compat.
* bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
	void *' warning from -Wc++-compat.
	* Makefile.in (dominance.o-warn): Remove.

From-SVN: r143593
2009-01-24 09:48:23 +11:00
Paolo Bonzini 9bacafeb4c re PR middle-end/38932 (ICE in set_value_range, at tree-vrp.c:398)
2008-01-23  Paolo Bonzini  <bonzini@gnu.org>

	PR tree-optimization/38932
	* fold-const.c (fold_unary_no_overflow): New.
	* tree.h (fold_unary_no_overflow): Declare.
	* tree-ssa-ccp.c (ccp_fold): Use fold_unary_no_overflow.
	* tree-ssa-sccvn.c (visit_reference_op_load,
	simplify_unary_expression): Likewise.

testsuite:
2008-01-23  Paolo Bonzini  <bonzini@gnu.org>

	PR tree-optimization/38932
	* gcc.dg/pr38932.c: New.

From-SVN: r143588
2009-01-23 15:57:19 +00:00
Revital Eres 63e505333c fix testcase sms-7.c
From-SVN: r143587
2009-01-23 10:34:44 +00:00
Adam Nemet 2cd36c22d3 c-decl.c (finish_struct): Move code to set DECL_PACKED after DECL_BIT_FIELD is alreay known.
* c-decl.c (finish_struct): Move code to set DECL_PACKED after
	DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
	regardless of their type.
	* c-common.c (handle_packed_attribute): Don't ignore packed on
	bitfields.
	* c.opt (Wpacked-bitfield-compat): New warning option.
	* stor-layout.c (place_field): Warn if offset of a field changed.
	* doc/extend.texi (packed): Mention the ABI change.
	* doc/invoke.texi (-Wpacked-bitfield-compat): Document.
	(Warning Options): Add it to the list.

cp/
	* class.c (check_field_decls): Also inherit packed for bitfields
	regardless of their type.

testsuite/
	* gcc.dg/bitfld-15.c, gcc.dg/bitfld-16.c,
	gcc.dg/bitfld-17.c,gcc.dg/bitfld-18.c: New tests.
	* g++.dg/ext/bitfield2.C, g++.dg/ext/bitfield3.C,
	g++.dg/ext/bitfield4.C, g++.dg/ext/bitfield5.C: New tests.

From-SVN: r143584
2009-01-23 06:29:54 +00:00
Jie Zhang 5cf9cc965f mf-impl.h (__mf_get_state, [...]): Don't use __thread when TLS support is emulated.
libmudflap/
	* mf-impl.h (__mf_get_state, __mf_set_state): Don't use
	__thread when TLS support is emulated.
	* mf-hooks3.c (__mf_get_state, __mf_set_state): Likewise.
	* mf-runtime.c (__mf_state_1): Likewise.
	* configure.ac: Use GCC_CHECK_EMUTLS.
	* configure: Regenerate.
	* config.h.in: Regenerate.

	config/
	* tls.m4 (GCC_CHECK_EMUTLS): Define.

From-SVN: r143583
2009-01-23 04:58:03 +00:00
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