Commit Graph

92214 Commits

Author SHA1 Message Date
Jakub Jelinek 6b2b887127 re PR middle-end/39443 (Builtin redirection no longer working for memcmp)
PR middle-end/39443
	* optabs.c (set_user_assembler_libfunc): New function.
	* expr.h (set_user_assembler_libfunc): New prototype.
	* c-common.c: Include libfuncs.h.
	(set_builtin_user_assembler_name): Call set_user_assembler_libfunc
	for memcmp, memset, memcpy, memmove and abort.
	* Makefile.in (c-common.o): Depend on libfuncs.h.

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

From-SVN: r144910
2009-03-17 18:46:23 +01:00
Jakub Jelinek 16e60c1706 re PR debug/39412 (ICE in gen_tagged_type_instantiation_die)
PR debug/39412
	* dwarf2out.c (gen_inlined_enumeration_type_die,
	gen_inlined_structure_type_die, gen_inlined_union_type_die,
	gen_tagged_type_instantiation_die): Removed.
	(gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
	do nothing.

	* gcc.dg/debug/pr39412.c: New test.

From-SVN: r144909
2009-03-17 18:43:52 +01:00
Janis Johnson 4d936acaa4 re PR testsuite/38526 (WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator)
gcc/
	PR testsuite/38526
	* Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
	its use.
	(check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
	(check-parallel-%): Ditto.
	(check-consistency): Ditto.
testsuite/
	PR testsuite/38526
	* lib/target-libpath.exp (set_ld_library_path_env_vars): Save
	existing GCC_EXEC_PREFIX, set to TEST_GCC_EXEC_PREFIX if that
	is defined.
	(restore_ld_library_path_env_vars): Restore GCC_EXEC_PREFIX to
	its original value, or unset if it was not defined.
	* gcc.dg/compat/struct-layout-1.exp: Use set/restore library
	path procs around use of HOSTCC.
	* g++.dg/compat/struct-layout-1.exp: Ditto.
	* objc.dg/gnu-encoding/gnu-encoding.exp: Ditto.

From-SVN: r144908
2009-03-17 17:35:55 +00:00
Kai Tietz 4e9b2e504e ipa-struct-reorg.c (create_general_new_stmt): Initialize local variable rhs by NULL_TREE.
2009-03-17  Kai Tietz  <kai.tietz@onevision.com>

        * ipa-struct-reorg.c (create_general_new_stmt): Initialize
        local variable rhs by NULL_TREE.

From-SVN: r144907
2009-03-17 18:14:09 +01:00
H.J. Lu 21440b2da2 re PR target/39477 (Incorrect document for regparm attribute)
2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39477
	* doc/extend.texi: Correct register behavior for regparm on
	Intel 386.

From-SVN: r144903
2009-03-17 06:10:24 -07:00
H.J. Lu d8905c6aa8 re PR target/39476 (Typo in ix86_function_regparm in i386.c)
2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39476
	* config/i386/i386.c (ix86_function_regparm): Rewrite for
	64bit.

From-SVN: r144902
2009-03-17 05:55:18 -07:00
H.J. Lu 435a61d30a re PR target/39473 (Typo in untyped_call in i386.md)
2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39473
	* config/i386/i386.c (ix86_expand_call): Check extra clobbers
	for ms->sysv ABI calls only in 64bit mode.

	* config/i386/i386.md (untyped_call): Support 32bit.

From-SVN: r144901
2009-03-17 05:50:52 -07:00
H.J. Lu 1cb3c37c53 func-indirect.c (main): Return 0.
2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.target/x86_64/abi/callabi/func-indirect.c (main): Return 0.

From-SVN: r144898
2009-03-16 18:12:28 -07:00
H.J. Lu cdcabece30 extend.texi: Replace x86_65 with x86_64.
2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	* doc/extend.texi: Replace x86_65 with x86_64.

From-SVN: r144897
2009-03-16 17:27:35 -07:00
GCC Administrator 926023ad31 Daily bump.
From-SVN: r144896
2009-03-17 00:17:03 +00:00
Janis Johnson c4d475ad06 Revert patch for PR testsuite/37630.
From-SVN: r144893
2009-03-16 21:11:57 +00:00
Janis Johnson db20567194 re PR testsuite/37960 (FAIL: gcc.dg/pr11492.c (test for bogus messages, line 8))
PR testsuite/37960
	* gcc.dg/pr11492.c: Replace constant and remove xfail.

From-SVN: r144892
2009-03-16 20:01:15 +00:00
Janis Johnson fabab0b641 re PR testsuite/37630 (gcc.dg/20001012-1.c depends on IEEE FP encoding)
PR testsuite/37630
	* lib/target-supports.exp (check_effective_target_ieee): New.
	* gcc.c-torture/execute/ieee/ieee.exp: Use it.
	* gcc.dg/20001012-1.c: Require ieee.

From-SVN: r144891
2009-03-16 19:59:37 +00:00
Janis Johnson 8ce1256960 re PR testsuite/37628 (gcc.c-torture/execute/pr35456.c is not generic)
PR testsuite/37628
	* gcc.c-torture/execute/pr35456.x: New, skip for vax.

From-SVN: r144890
2009-03-16 19:58:32 +00:00
H.J. Lu 853344ade1 Correct ChangeLog entries for revision 136311.
From-SVN: r144889
2009-03-16 12:29:17 -07:00
Tristan Gingold 75eeae1a13 configure.ac: Treat gdb as supported on x86_64-darwin.
* configure.ac: Treat gdb as supported on x86_64-darwin.
        * configure: Regenerate.

From-SVN: r144887
2009-03-16 17:02:02 +00:00
Jakub Jelinek 97b4ba9f89 re PR tree-optimization/39455 (ICE : in compare_values_warnv, at tree-vrp.c:1073)
PR tree-optimization/39455
	* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
	mismatches for POINTER_TYPE_P (type).
	(number_of_iterations_le): Likewise.

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

From-SVN: r144885
2009-03-16 17:07:07 +01:00
Hariharan Sandanagobalane 83c191e155 picochip.c: Removed profiling support.
* config/picochip/picochip.c: Removed profiling support.
        * config/picochip/picochip.md: Removed profiling instruction.
        * config/picochip/picochip.h: Removed profiling builtin.

From-SVN: r144884
2009-03-16 14:59:45 +00:00
Joseph Myers f38095f3ee configure.ac (--with-host-libstdcxx): New option.
* configure.ac (--with-host-libstdcxx): New option.
	* configure: Regenerate.

gcc/doc:
	* doc/install.texi (--with-host-libstdcxx): Document.

From-SVN: r144881
2009-03-16 13:23:13 +00:00
Matthias Klose d495ef5a6c configure.ac: Detect xulrunner-1.9.
2009-03-16  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: Detect xulrunner-1.9.
        * configure: Regenerate.

From-SVN: r144879
2009-03-16 12:08:23 +00:00
GCC Administrator c1458a68f2 Daily bump.
From-SVN: r144878
2009-03-16 00:16:42 +00:00
Paolo Carlini e0de3d9303 faq.xml: Fix link to setup documentation.
2009-03-15  Paolo Carlini  <paolo.carlini@oracle.com>

	* doc/xml/faq.xml: Fix link to setup documentation.

From-SVN: r144875
2009-03-16 00:09:04 +00:00
Anatoly Sokolov 2cb4817bd3 re PR target/34299 ([avr] ICE on function attribute syntax for main())
PR target/34299
	* config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
	generate a warning if the function name does not begin with
	"__vector" and the function has either the 'signal' or 'interrupt'
	attribute, from here to ...
	(avr_declare_function_name): ...here. New function.
	* config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
	* config/avr/avr-protos.h (avr_declare_function_name): Declare.

From-SVN: r144870
2009-03-15 16:09:44 +03:00
Paolo Carlini 58366b08d7 type_traits (__add_lvalue_reference_helper, [...]): As an optimization, rewrite condition (avoid is_function).
2009-03-14  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/type_traits (__add_lvalue_reference_helper,
	__add_rvalue_reference_helper): As an optimization, rewrite
	condition (avoid is_function).

From-SVN: r144868
2009-03-15 00:56:31 +00:00
GCC Administrator b16a619688 Daily bump.
From-SVN: r144866
2009-03-15 00:16:54 +00:00
David Ayers e178ae8ee1 2009-03-13 David Ayers <ayers@fsfe.org>
* objc/execute/trivial.m. New test.

From-SVN: r144858
2009-03-14 14:41:45 +00:00
Jakub Jelinek 39b2ac744a re PR bootstrap/39454 (Bootstrap failure on sparcv9-linux with profiledbootstrap)
PR bootstrap/39454
	* cse.c (fold_rtx): Don't modify original const_arg1 when
	canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
	separate variable instead.
	* rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
	from out of range shift counts.
	(num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.

From-SVN: r144857
2009-03-14 09:10:55 +01:00
GCC Administrator 037e4a3ed3 Daily bump.
From-SVN: r144855
2009-03-14 00:17:08 +00:00
Catherine Moore f7a82deea7 x-mingw32 (host-mingw32.o): Replace diagnostic.h with $(DIAGNOSTIC_H).
gcc/
       *  gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
       diagnostic.h with $(DIAGNOSTIC_H).

From-SVN: r144842
2009-03-13 13:06:10 -04:00
Jack Howarth 381b630e86 re PR target/39137 (-mpreferred-stack-boundary=2 causes lots of dynamic realign)
2009-03-13  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR target/39137
	* testsuite/gcc.target/i386/stackalign/longlong-2.c: Skip on darwin.

From-SVN: r144841
2009-03-13 17:05:08 +00:00
Paolo Carlini ab4c19d241 re PR libstdc++/39405 (std::shared_ptr barfs on incomplete template class that boost::shared_ptr accepts)
2009-03-13  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/39405
	* testsuite/20_util/shared_ptr/cons/39405.cc: New.
	* testsuite/tr1/2_general_utilities/shared_ptr/cons/39405.cc: Likewise.

From-SVN: r144839
2009-03-13 15:01:50 +00:00
H.J. Lu ba4905b4c3 re PR testsuite/39451 (Invalid x86 constraint in gcc.dg/asm-b.c)
2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/39451
	* gcc.dg/asm-b.c: Use "Q" constraint on %b1/%h1 and "R"
	constraint on (%2).

From-SVN: r144834
2009-03-13 06:24:14 -07:00
Benjamin Kosnik 8f6678383c typesizes.cc: Include tweaks.
2009-03-12  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/30_threads/condition_variable_any/native_handle/
	typesizes.cc: Include tweaks.
	* testsuite/30_threads/mutex/native_handle/typesizes.cc: Same.
	* testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Same.
	* testsuite/30_threads/thread/native_handle/typesizes.cc: Same.
	* testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Same.
	* testsuite/30_threads/condition_variable/native_handle/
	typesizes.cc: Same.

From-SVN: r144830
2009-03-13 05:38:16 +00:00
GCC Administrator 2a50b3bc21 Daily bump.
From-SVN: r144829
2009-03-13 00:16:38 +00:00
David Ayers faef499bdf re PR libobjc/27466 (RFE: Support for libobjc equivalent of std::set_unexpected)
libobjc/

2009-03-12  Richard Frith-Macdonald  <rfm@gnu.org>
	    David Ayers  <ayers@fsfe.org>

	PR libobjc/27466
	* objc/objc-api.h (_objc_unexpected_exception): Declare
	new hook.  Update copyright dates.
	* exception.c (objc_exception_throw): Use hook.  Update
	copyright dates.
	* libobjc.def (_objc_unexpected_exception): Export hook.
	Update copyright dates.
	
gcc/testsuite/

2009-03-12  David Ayers  <ayers@fsfe.org>

	PR libobjc/27466
	* objc/execute/exceptions/handler-1.m. New test.

From-SVN: r144826
2009-03-12 22:28:15 +00:00
Jakub Jelinek 03a181983d re PR target/39431 (ICE in spill_failure, at reload1.c:2093)
PR target/39431
	* config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
	predicate.
	* config/i386/sync.md (sync_compare_and_swap<mode>,
	sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
	if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
	into a register.
	(sync_double_compare_and_swapdi_pic,
	sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
	cmpxchg8b_pic_memory_operand instead of just memory_operand.

	* gcc.target/i386/pr39431.c: New test.

From-SVN: r144825
2009-03-12 21:45:39 +01:00
H.J. Lu 122c59c73b re PR target/39445 (failure of SSE2 tests)
gcc/

2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39445
	* config/i386/i386.c (ix86_expand_push): Don't set memory
	alignment.

gcc/testsuite/

2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39445
	* gcc.target/i386/pr39445.c: New.

	* gcc.target/i386/push-1.c: XFAIL.

From-SVN: r144823
2009-03-12 12:56:34 -07:00
H.J. Lu cec8874f89 re PR target/39327 (Incorrect addsub/unpck patterns in sse.md)
2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39327
	* config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
	(avx_addsubv4df3): Likewise.
	(*avx_addsubv4sf3): Likewise.
	(sse3_addsubv4sf3): Likewise.

From-SVN: r144819
2009-03-12 10:43:14 -07:00
Andrew Haley 2e95a6c358 [multiple changes]
2009-03-11  Andrew Haley  <aph@redhat.com>

	* java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Clear
	INTERPRETED access modifier.

2009-03-11  Tom Tromey  <tromey@redhat.com>

	* link.cc (_Jv_Linker::find_field): Pass the field_type to
	_Jv_CheckOrCreateLoadingConstraint, not the class that is
	requesting the field.

From-SVN: r144818
2009-03-12 16:13:19 +00:00
H.J. Lu bbb52802a1 re PR target/38824 (performance regression of sse code from 4.2/4.3)
2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/38824
	* config/i386/i386.md: Compare REGNO on the new peephole2
	patterns.

From-SVN: r144817
2009-03-12 09:08:02 -07:00
Vladimir Makarov a812fb0792 re PR debug/39432 (gdb.base/store.exp failures)
2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>

	PR debug/39432
	* ira-int.h (struct allocno): Fix comment for calls_crossed_num.
	* ira-conflicts.c (ira_build_conflicts): Prohibit call used
	registers for allocnos created from user-defined variables.

From-SVN: r144812
2009-03-12 14:39:55 +00:00
Ulrich Weigand 4caab5ba57 re PR target/39181 (complex int arguments cause ICE)
PR target/39181
	* config/spu/spu.c (spu_expand_mov): Handle invalid subregs
	of non-integer mode as well.

From-SVN: r144811
2009-03-12 14:00:21 +00:00
Joern Rennecke fec7f2457f * MAINTAINERS: Move myself into the write after approval list.
From-SVN: r144810
2009-03-12 12:57:32 +00:00
Adam Nemet 498e51cabb gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P for functions for which the parameter types are...
* gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
	for functions for which the parameter types are unknown.

testsuite/
	* gcc.dg/inline-33.c: New test.

From-SVN: r144801
2009-03-12 01:02:16 +00:00
Nathan Froyd 22571318a9 vect-82.c: Combine dg-do and dg-require-effective-target into dg-skip-if.
* gcc.dg/vect/vect-82.c: Combine dg-do and
	dg-require-effective-target into dg-skip-if.
	* gcc.dg/vect/vect-83.c: Likewise.

From-SVN: r144800
2009-03-12 00:54:48 +00:00
GCC Administrator a113ef8e54 Daily bump.
From-SVN: r144799
2009-03-12 00:16:57 +00:00
Jakub Jelinek 9bfaf89d4f re PR target/39137 (-mpreferred-stack-boundary=2 causes lots of dynamic realign)
PR target/39137
	* cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT
	macro.
	* defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
	* config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
	* config/i386/i386.c (ix86_local_alignment): For
	-m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
	long long variables on the stack to avoid dynamic realignment.
	Allow the first argument to be a decl rather than type.
	* doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.

	* gcc.target/i386/stackalign/longlong-1.c: New test.
	* gcc.target/i386/stackalign/longlong-2.c: New test.

From-SVN: r144792
2009-03-11 22:12:33 +01:00
Ulrich Weigand 8a9ceef2cc * g++.old-deja/g++.jason/thunk2.C: Skip on SPU.
From-SVN: r144785
2009-03-11 17:52:06 +00:00
Nick Clifton 40190a7696 re PR target/5362 (Undocumented target options)
PR target/5362
        * config/mcore/mcore.opt: Remove deprecated m4align and m8align
        options.
        Add description to mno-lsim option.
        * config/mcore/mcore.h: Remove comment about deprecated m4align
        option.
        (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
        * doc/invoke.texi: Add description of mno-lsim and
        mstack-increment options.

From-SVN: r144783
2009-03-11 16:57:01 +00:00
Nick Clifton 18a3bdcbe2 re PR target/5362 (Undocumented target options)
PR target/5362
        * config/fr30/fr30.opt: Document the -mno-lsim option.
        * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
        and -mno-lsim options.

From-SVN: r144780
2009-03-11 16:08:41 +00:00