Commit Graph

91756 Commits

Author SHA1 Message Date
Joseph Myers 1056e649de * fi.po: Update.
From-SVN: r143905
2009-02-03 20:36:12 +00:00
Johannes Singler 22ec53ec66 algorithmfwd.h: Add parallelism default for many declarations.
2009-02-03  Johannes Singler  <singler@ira.uka.de>

        * include/parallel/algorithmfwd.h:
        Add parallelism default for many declarations.
        * include/parallel/numericfwd.h: Likewise.
        * include/parallel/iterator.h: Use iterator_traits as usual.
        * include/parallel/par_loop.h:
        Include equally_split.h.
        (for_each_template_random_access_ed):
        Avoid calling the Result default constructor.
        * include/parallel/numeric: Replace
        for_each_template_random_access by
        for_each_template_random_access_ed in numeric functions.

From-SVN: r143902
2009-02-03 17:49:36 +00:00
Jakub Jelinek 70f1628747 re PR target/35318 (ICE with inline asm in reload)
PR target/35318
	* function.c (match_asm_constraints_1): Skip over
	initial optional % in the constraint.

	* gcc.c-torture/compile/pr35318.c: New test.

From-SVN: r143901
2009-02-03 18:27:45 +01:00
Jakub Jelinek 754ccf7c7c re PR inline-asm/39059 (ICE with fixed-point type in inline-asm)
PR inline-asm/39059
	* c-parser.c (c_parser_postfix_expression): If fixed point is not
	supported, don't accept FIXED_CSTs.
	* c-decl.c (finish_declspecs): Error if fixed point is not supported
	and _Sat is used without _Fract/_Accum.  Set specs->type to
	integer_type_node for cts_fract/cts_accum if fixed point is not
	supported.

	* parser.c (cp_parser_primary_expression): Reject FIXED_CSTs.

	* gcc.dg/nofixed-point-2.c: New test.
	* g++.dg/ext/fixed1.C: Adjust expected diagnostics.
	* g++.dg/ext/fixed2.C: Likewise.
	* g++.dg/other/error25.C: Likewise.
	* g++.dg/lookup/crash7.C: Likewise.
	* g++.dg/cpp0x/decltype-38655.C: Likewise.

From-SVN: r143900
2009-02-03 18:26:28 +01:00
Jakub Jelinek a36c33ebfc re PR c++/39056 ([c++0x] ICE with invalid initializer list for complex variable)
PR c++/39056
	* typeck2.c (digest_init_r): Don't call process_init_constructor
	for COMPLEX_TYPE.

	* g++.dg/cpp0x/initlist13.C: New test.

From-SVN: r143899
2009-02-03 18:23:11 +01:00
Paolo Bonzini e350dbbd73 re PR c++/36897 (ICE with function pointer template parameter)
gcc/cp:
2009-02-03  Paolo Bonzini  <bonzini@gnu.org>

	PR c++/36897
	* pt.c (convert_nontype_argument_function): Expect expr to be an
	ADDR_EXPR.

	PR c++/37314
	* typeck.c (merge_types): Call resolve_typename_type if only
	one type is a typename.

gcc/testsuite:
2009-02-03  Paolo Bonzini  <bonzini@gnu.org>

	PR c++/36897
	* g++.dg/template/func2.C: New test.

	PR c++/37314
	* g++.dg/template/typename15.C: New.
	* g++.dg/template/typename16.C: New.

From-SVN: r143898
2009-02-03 16:26:28 +00:00
GCC Administrator aa2bb64038 Daily bump.
From-SVN: r143887
2009-02-03 00:16:59 +00:00
Janis Johnson 2249b483ed re PR c/39034 (Decimal floating-point math done wrong)
PR c/39034
	* gcc.dg/dfp/pr39034.c: New test.

Co-Authored-By: Ben Elliston <bje@au.ibm.com>

From-SVN: r143884
2009-02-03 10:03:20 +11:00
Benjamin Kosnik 2319eb4e23 os_defines.h: Remove superfluous __NO_STRING_INLINES.
2009-02-02  Benjamin Kosnik  <bkoz@redhat.com>

	* config/os/gnu-linux/os_defines.h: Remove superfluous
	__NO_STRING_INLINES.

From-SVN: r143883
2009-02-02 22:07:48 +00:00
Catherine Moore 965fdadfed sde.h (SUBTARGET_ARM_SPEC): Don;t assemble -fpic code as -mabicalls.
* sde.h (SUBTARGET_ARM_SPEC): Don;t assemble -fpic code as
    -mabicalls.

From-SVN: r143882
2009-02-02 15:47:39 -05:00
Kaveh R. Ghazi 6c5df99d2e re PR testsuite/38263 (gcc.dg/ipa/ipacost-2.c fails with -fpic/-fPIC)
PR testsuite/38263
	* gcc.dg/ipa/ipacost-2.c: Add -fpie when pic.

From-SVN: r143880
2009-02-02 20:10:04 +00:00
Richard Sandiford 2e8a796f81 mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
gcc/
	* config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
	(ABI_HAS_64BIT_SYMBOLS): Use it.
	(DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.

From-SVN: r143878
2009-02-02 19:40:20 +00:00
Jason Merrill ce6b9ebbe2 re PR c++/39054 (ICE with invalid pseudo-dtor in template)
PR c++/39054
        * parser.c (cp_parser_unqualified_id): Don't wrap error_mark_node
        in BIT_NOT_EXPR.

From-SVN: r143876
2009-02-02 13:38:10 -05:00
Paul Brook e007946898 arm.md (arm_addsi3): Add r/r/k alternative.
2009-02-02  Paul Brook  <paul@codesourcery.com>

	gcc/
	* config/arm/arm.md (arm_addsi3): Add r/r/k alternative.

From-SVN: r143874
2009-02-02 17:09:45 +00:00
Jakub Jelinek eca72963aa re PR inline-asm/39058 (ICE with double in inline-asm)
PR inline-asm/39058
	* recog.h (asm_operand_ok): Add constraints argument.
	* recog.c (asm_operand_ok): Likewise.  If it is set, for digits
	recurse on matching constraint.
	(check_asm_operands): Pass constraints as 3rd argument to
	asm_operand_ok.  Don't look up matching constraint here.
	* stmt.c (expand_asm_operands): Pass NULL as 3rd argument
	to asm_operand_ok.

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

From-SVN: r143867
2009-02-02 14:23:43 +01:00
Jakub Jelinek 43014633b0 * lib/target-supports.exp
(check_effective_target_correct_iso_cpp_string_wchar_protos): New.
	* g++.dg/ext/builtin10.C: New test.

	* testsuite/21_strings/c_strings/char/3.cc: New test.
	* testsuite/21_strings/c_strings/wchar_t/3.cc: New test.

From-SVN: r143865
2009-02-02 12:27:50 +01:00
Richard Guenther ab05897240 re PR tree-optimization/38937 (dereferencing pointer '<anonymous>' does break strict-aliasing)
2009-02-02  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38937
	* g++.dg/warn/Wstrict-aliasing-bogus-escape.C: New testcase.

From-SVN: r143864
2009-02-02 10:39:12 +00:00
Ben Elliston b5bde9fffe tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and TARGET_NARROW_VOLATILE_BITFIELD macro names.
* doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
	TARGET_NARROW_VOLATILE_BITFIELD macro names.

From-SVN: r143863
2009-02-02 20:57:08 +11:00
Danny Smith 00f97e5a1a * ssp.c (_PATH_TTY): Define as "CONOUT$" for _WIN32.
From-SVN: r143862
2009-02-02 03:23:39 +00:00
Paolo Carlini def88a88c4 re PR c++/39053 (ICE with broken function declaration)
/cp
2009-02-01  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39053
	* parser.c (cp_parser_pure_specifier): If there are no tokens left
	do not call cp_lexer_consume_token.

/testsuite
2009-02-01  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39053
	* g++.dg/parse/crash52.C: New.

From-SVN: r143861
2009-02-02 00:41:52 +00:00
GCC Administrator 27c40174ae Daily bump.
From-SVN: r143859
2009-02-02 00:16:38 +00:00
Laurent GUERBY d0ec4c99b6 Makefile.in: Fix mipsel linux handling.
2009-01-31  Laurent GUERBY  <laurent@guerby.net>

	* gcc-interface/Makefile.in: Fix mipsel linux handling.

From-SVN: r143855
2009-02-01 14:18:20 +00:00
GCC Administrator 591f8a9237 Daily bump.
From-SVN: r143837
2009-02-01 00:16:52 +00:00
John David Anglin be7659ba0b install.texi (hppa*-hp-hpux*): Update binutils and linker information.
* doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
	information.  Remove some obsolete information.  Reorganize.

From-SVN: r143834
2009-01-31 22:29:16 +00:00
John David Anglin 30f3e4272a fptr.c: Revert license to GPL 2.
* config/pa/fptr.c: Revert license to GPL 2.
	* config/pa/milli64.S: Likewise.

From-SVN: r143831
2009-01-31 20:01:46 +00:00
Dave Korn 3cbfaf9846 re PR target/38904 (Shared libgcc DLL violates Cygwin platform conventions.)
PR target/38904
	* mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
	LIBRARY name in, instead of hard-coding it.
	* config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
	extra target make frag to tmake_files according to EH model.
	(i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
	* config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
	frags that define makefile variable EH_MODEL appropriately.
	* config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
	* config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
	to "-sjlj" according to type of EH configured.
	(LIBGCC_SONAME):  Concatenate it to shared library base name.
	* config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
	to "_sjlj" according to type of EH configured.
	(LIBGCC_SONAME):  Concatenate it to shared library base name.
	* config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
	(SHLIB_LINK):  Add missing semicolon to if-else construct.
	(SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
	string value of "pe_dll" command-line option.
	* config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
	(SHLIB_SONAME):  Use it when overriding t-cygming default.
	(SHLIB_IMPLIB):  Override t-cygming default.
	(SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
	string value of "pe_dll" command-line option.

From-SVN: r143829
2009-01-31 18:52:00 +00:00
Dave Korn 8d0b6068b5 re PR target/38952 (EH does not work.)
2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>

	PR target/38952
	* config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
	(TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point
	at it.

From-SVN: r143823
2009-01-31 09:34:03 -08:00
Ian Lance Taylor b39dea08d9 acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set libgomp_ld_is_gold.
* acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
	libgomp_ld_is_gold.  Get gold version number.
	(LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
	* configure: Rebuild.

From-SVN: r143822
2009-01-31 17:09:24 +00:00
Richard Guenther 14c28276e0 re PR tree-optimization/38937 (dereferencing pointer '<anonymous>' does break strict-aliasing)
2009-01-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38937
	* tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
	computing the transitive closure.

From-SVN: r143819
2009-01-31 10:25:41 +00:00
Ian Lance Taylor 907884c92a * MAINTAINERS: Move myself to the Global Reviewers list.
From-SVN: r143818
2009-01-31 06:46:00 +00:00
GCC Administrator 07b75c15d3 Daily bump.
From-SVN: r143815
2009-01-31 00:16:40 +00:00
Richard Guenther 5f4d82c2ea re PR tree-optimization/39041 (ICE on valid during vrp2)
2009-01-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/39041
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
	Propagate variable indices only if the types match for this stmt.

	* gcc.c-torture/compile/pr39041.c: New testcase.

From-SVN: r143808
2009-01-30 22:09:15 +00:00
Jakub Jelinek d0728ae0d8 re PR target/39013 (Missing @PLT when -fpie is used)
PR target/39013
	* c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
	inline but never defined.

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

From-SVN: r143803
2009-01-30 21:46:32 +01:00
Jakub Jelinek ac9bc18b37 re PR c++/39028 (C++ front-end rejects "__label__" at the beginning of a block after "for" and "while")
PR c++/39028
	* parser.c (cp_parser_already_scoped_statement): Handle __label__
	declarations.

	* g++.dg/ext/label12.C: New test.

From-SVN: r143797
2009-01-30 17:17:30 +01:00
Paolo Carlini 1fae3e66da re PR c++/33465 (Broken diagnostic: 'fix_trunc_expr' and 'float_expr' not supported by dump_expr)
/cp
2009-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/33465
	* error.c (dump_expr): Handle FIX_TRUNC_EXPR and FLOAT_EXPR.

/testsuite
2009-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/33465
	* g++.dg/parse/error34.C: New.
	* g++.dg/parse/error35.C: Likewise.

/cp
2009-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/38655
	* error.c (dump_type_prefix, dump_type_suffix): Handle FIXED_POINT_TYPE.

/testsuite
2009-01-30  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/38655
	* g++.dg/cpp0x/decltype-38655.C: New.

From-SVN: r143790
2009-01-30 15:03:10 +00:00
Paolo Carlini 349ac74671 2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
Tweak last ChangeLog entry.

From-SVN: r143788
2009-01-30 12:11:17 +00:00
Wolfgang Gellerich 9fec758df2 2009-01-30 Wolfgang Gellerich <gellerich@de,ibm.com>
* config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
	(*insv_h_di_reg_extimm): New insn.
	(*insv_l<mode>_reg_extimm): New insn.

From-SVN: r143786
2009-01-30 10:50:31 +00:00
Hariharan Sandanagobalane 9e8be1e49e picochip.c (flag_conserve_stack): set PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under...
* config/picochip/picochip.c (flag_conserve_stack): set
        PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
        fconserve-stack. Reduce call-overhead used by inliner.

From-SVN: r143785
2009-01-30 10:25:54 +00:00
Hariharan Sandanagobalane df9198abb2 common.opt (flag_conserve_stack): Initialised to zero.
PR/38157
        * common.opt (flag_conserve_stack): Initialised to zero.

From-SVN: r143784
2009-01-30 09:50:30 +00:00
Jakub Jelinek c95b2534da Fix spacing around names.
From-SVN: r143783
2009-01-30 10:28:41 +01:00
Jakub Jelinek 0802336fe3 re PR target/39002 (codegen bug, stack pointer is not restored)
PR target/39002
	* g++.dg/torture/pr39002.C: New test.

From-SVN: r143782
2009-01-30 10:22:48 +01:00
Kai Tietz 7f1c539c95 i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
2009-01-30  Kai Tietz  <kai.tietz@onevision.com>

	PR/39002
	* config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
	(ix86_expand_epilogue): Take nsseregs in account to use proper restore
	method.

From-SVN: r143780
2009-01-30 09:45:35 +01:00
GCC Administrator e2b861f4ca Daily bump.
From-SVN: r143776
2009-01-30 00:16:46 +00:00
Ulrich Drepper 60822e0b57 cstring (memchr, [...]): Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO is not defined.
* include/c_std/cstring (memchr, strchr, strpbrk, strrchr, strstr):
	Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO is not
	defined.
	* include/c_std/cwchar (wcschr, wcspbrk, wcsrchr, wcsstr, wmemchr):
	Provide inlines only if __CORRECT_ISO_CPP_WCHAR_H_PROTO is not
	defined.
	* include/c_global/cstring (memchr, strchr, strpbrk, strrchr, strstr):
	Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO is not
	defined.
	* include/c_global/cwchar (wcschr, wcspbrk, wcsrchr, wcsstr, wmemchr):
	Provide inlines only if __CORRECT_ISO_CPP_WCHAR_H_PROTO is not
	defined.
	* testsuite/21_strings/c_strings/char_t/2.cc (test02): If first
	argument is const char *, assign result to const char * var, not
	char *.
	* testsuite/21_strings/c_strings/wchar_t/2.cc (test02): If first
	argument is const wchar_t *, assign result to const wchar_t * var, not
	wchar_t *.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r143773
2009-01-30 01:08:29 +01:00
Jonathan Wakely cbdab9c897 thread: Remove unused headers.
2009-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/thread: Remove unused headers.
	(__thread_data_base): Remove unused mutex and base.
	(thread::~thread): Only detach if joinable.
	(thread::joinable): Test if thread data ptr is empty.
	(thread::_M_thread_data_mutex): Remove.
	(thread::_M_get_thread_data): Remove.
	(thread::_M_make_thread_data): Remove overload, use make_shared.
	(thread:🆔:id): Make constructor explicit.
	* src/thread.cc (thread::join,thread::detach): Throw if not joinable.
	(thread::_M_start_thread): Break shared_ptr cycle on error.
	(__thread_proxy): Use shared_ptr swap instead of copy and reset.
	* testsuite/30_threads/thread/member/4.cc: New.
	* testsuite/30_threads/thread/member/5.cc: New.

From-SVN: r143772
2009-01-29 23:24:05 +00:00
H.J. Lu 3631be4865 ira-color.c (allocno_reload_assign): Update comments.
2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>

	* ira-color.c (allocno_reload_assign): Update comments.
	* regmove.c (regmove_optimize): Likewise.

	* ra.h: Removed.

From-SVN: r143771
2009-01-29 13:56:17 -08:00
Robert Millan 416ac4d45b configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
2009-01-29  Robert Millan  <rmh@aybabtu.com>

	* configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
	* configure: Regenerate.

gcc/
2009-01-29  Robert Millan  <rmh@aybabtu.com>

	* gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
	* gcc/config/i386/kopensolaris-gnu.h: New file.  Undefine
	`MD_UNWIND_SUPPORT'.
	* gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).

From-SVN: r143768
2009-01-29 18:48:41 +00:00
Kazu Hirata d5e54bc106 re PR tree-optimization/39007 (-ftree-loop-distribution ICEs)
gcc/
	PR tree-optimization/39007
	* tree-loop-distribution.c (generate_builtin): Use
	recompute_dominator to compute the immediate dominator of the
	basic block just after the loop.

gcc/testsuite/
	PR tree-optimization/39007
	* gcc.dg/tree-ssa/pr39007.c: New.

From-SVN: r143767
2009-01-29 18:23:21 +00:00
Paolo Carlini 90ef777327 typeck.c (invalid_nonstatic_memfn_p): Use DECL_NONSTATIC_MEMBER_FUNCTION_P.
2009-01-29  Paolo Carlini  <paolo.carlini@oracle.com>

	* typeck.c (invalid_nonstatic_memfn_p): Use
	DECL_NONSTATIC_MEMBER_FUNCTION_P.

From-SVN: r143761
2009-01-29 17:02:52 +00:00
Rainer Orth e9e077faa2 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
(ASM_OUTPUT_DWARF_PCREL): Define.

From-SVN: r143758
2009-01-29 16:06:53 +00:00