Commit Graph

107211 Commits

Author SHA1 Message Date
John David Anglin 5de27cca46 pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT when _HPUX_SOURCE is defined.
* config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
	when _HPUX_SOURCE is defined.
	(LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.

From-SVN: r170855
2011-03-10 23:07:15 +00:00
Jason Merrill 18d920539d re PR c++/48029 (ICE in finish_member_declaration() with --param ggc-min-expand=0 --param ggc-min-heapsize=0)
PR c++/48029
	* stor-layout.c (layout_type): Don't set structural equality
	on arrays of incomplete type.
	* tree.c (type_hash_eq): Handle comparing them properly.
	* cp/pt.c (iterative_hash_template_arg): Remove special case for
	ARRAY_TYPE.

From-SVN: r170853
2011-03-10 17:37:22 -05:00
Jakub Jelinek 67a2f76d4c re PR debug/48043 (pr47201: var-tracking loc_order_check fails for type punning examples)
PR debug/48043
	* config/s390/s390.c (s390_delegitimize_address): Make sure the                                                                            
	result mode matches original rtl mode.

From-SVN: r170851
2011-03-10 19:10:14 +01:00
Jason Merrill 4999d9b013 re PR c++/47198 ([C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4654 on invalid code)
PR c++/47198
	* parser.c (cp_parser_single_declaration): Just return if
	cp_parser_parse_and_diagnose_invalid_type_name complained.

From-SVN: r170847
2011-03-10 10:21:00 -05:00
Nick Clifton 392426866e rx.md (andsi3, [...]): Fix timings for three operand alternative.
* config/rx/rx.md (andsi3, andsi3_flags): Fix timings for three
          operand alternative.

From-SVN: r170846
2011-03-10 11:30:33 +00:00
Nick Clifton d845b2f96f * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
From-SVN: r170845
2011-03-10 11:25:02 +00:00
Ian Lance Taylor 25d5c0b020 re PR go/48020 (libgo flag test FAILs on Solaris 2)
PR go/48020
gotest: Pass -v to nm to avoid sorting on Solaris.

From-SVN: r170842
2011-03-10 00:51:14 +00:00
GCC Administrator fec83c4fca Daily bump.
From-SVN: r170841
2011-03-10 00:18:40 +00:00
Ian Lance Taylor bef18456b7 Solaris specific syslog support.
From-SVN: r170837
2011-03-09 22:13:09 +00:00
Jakub Jelinek db7ec03597 re PR rtl-optimization/47866 (gcc.dg/torture/vector-2.c fails on IA64)
PR rtl-optimization/47866
	* expr.c (store_field): If MEM_SCALAR_P (target), don't use
	MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
	if target wasn't scalar.
	* function.c (assign_stack_temp_for_type): Assert that neither
	MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
	MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
	macro.
	* rtl.h (MEM_SET_IN_STRUCT_P): Removed.

From-SVN: r170834
2011-03-09 21:49:00 +01:00
Ian Lance Taylor 0ad3134110 libgo/README.gcc: Mention GCCGO_RUN_ALL_TESTS.
From-SVN: r170828
2011-03-09 19:17:56 +00:00
Paolo Carlini 60c5236ed1 [multiple changes]
2011-03-09  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/util/testsuite_rvalref.h: Minor tweaks.

2011-03-09  Jonathan Wakely  <redi@gcc.gnu.org>
	    Chris Jefferson  <chris@bubblescope.net>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/util/testsuite_rvalref.h (rvalstruct_compare_by_value):
	New.
	* testsuite/25_algorithms/sort_heap/check_compare_by_value.cc:
	Likewise.
	* testsuite/25_algorithms/partial_sort/check_compare_by_value:
	Likewise.
	* testsuite/25_algorithms/stable_sort/check_compare_by_value.cc:
	Likewise.
	* testsuite/25_algorithms/sort/check_compare_by_value: Likewise.

2011-03-09  Chris Jefferson  <chris@bubblescope.net>

	PR libstdc++/48038
	* include/bits/stl_algo.h (__merge_backward): Rename to
	__move_merge_backward and change to always move rather than copy.
	(__move_merge): New function similar to std::merge except values
	are moved instead of copied.
	(__merge_adaptive, __merge_sort_loop): Change from using std::merge
	and __merge_backward to __move_merge and __move_merge_backward.

From-SVN: r170827
2011-03-09 18:30:11 +00:00
Jason Merrill 3a8face47e re PR c++/44629 (ICE in unify, at cp/pt.c:15155)
PR c++/44629
	* pt.c (unify): An unresolved overload is a nondeduced context.

From-SVN: r170824
2011-03-09 12:57:46 -05:00
Martin Jambor bf6817f2c5 re PR tree-optimization/47714 (verify_ssa fails with error: invalid argument to gimple call)
2011-03-09  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/47714
	* cp/method.c (use_thunk): Clear addressable flag of thunk arguments.

	* testsuite/g++.dg/torture/pr47714.C: New test.

From-SVN: r170822
2011-03-09 17:59:55 +01:00
Andreas Krebbel 5d304e47bc s390-protos.h (s390_label_align): New prototype.
2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390-protos.h (s390_label_align): New prototype.
	* config/s390/s390.c (s390_label_align): New function.
	* config/s390/s390.h (LABEL_ALIGN): New target macro definition.

From-SVN: r170821
2011-03-09 16:27:15 +00:00
Xuepeng Guo 9b4166b297 MAINTAINERS: Update my e-mail address.
* MAINTAINERS: Update my e-mail address.

From-SVN: r170812
2011-03-09 06:58:24 +00:00
Ian Lance Taylor a33d93c3df re PR go/48019 (Need to handle EINTR in libgo testsuite)
PR go/48019
Ignore EINTR in socket connect.

From-SVN: r170811
2011-03-09 06:57:04 +00:00
Ian Lance Taylor 7b5e671326 re PR go/48019 (Need to handle EINTR in libgo testsuite)
PR go/48019
Ignore EINTR in runtime_lock_full.

From-SVN: r170810
2011-03-09 06:31:37 +00:00
Ian Lance Taylor 8897c836a8 re PR go/48017 (Network tests should fail gracefully without network connectivity)
PR go/48017
Only run net tests if GCCGO_RUN_ALL_TESTS is set in environment.

From-SVN: r170809
2011-03-09 05:57:10 +00:00
Ian Lance Taylor a601335076 re PR go/47910 (typo in __go_map_next_prime)
PR go/47910
Correct search for next prime in libgo map code.

From-SVN: r170808
2011-03-09 05:32:36 +00:00
Michael Meissner 93b826f0fd Fix PR 47755 fallout
From-SVN: r170802
2011-03-09 00:21:53 +00:00
GCC Administrator 84fdf81b8a Daily bump.
From-SVN: r170801
2011-03-09 00:18:47 +00:00
Jakub Jelinek 63fcce84ba go-test.exp: For goroutines.go test if GCCGO_RUN_ALL_TESTS is not set in the environment...
* go.test/go-test.exp: For goroutines.go test if GCCGO_RUN_ALL_TESTS
	is not set in the environment, pass 64 as first argument when not
	running expensive tests or pass max($[`ulimit -u`/4], 10000) on
	native where ulimit -u is supported.

From-SVN: r170792
2011-03-08 23:04:04 +01:00
Dodji Seketeli 918f238e7f re PR c++/47705 (internal compiler error: in convert_nontype_argument, at cp/pt.c:5006)
PR c++/47705
	* pt.c (convert_nontype_argument): Only call decay_conversion on
	arrays.

From-SVN: r170791
2011-03-08 17:02:59 -05:00
Anatoly Sokolov ef78aed645 mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
* config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
	* config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
	* config/mips/mips.c (mips_preferred_reload_class): Make static.
	Change 'rclass' argument and result type to reg_class_t.
	(TARGET_PREFERRED_RELOAD_CLASS): Define.

From-SVN: r170789
2011-03-08 23:51:11 +03:00
Georg-Johann Lay 5f892aa092 avr.h (REGISTER_MOVE_COST, [...]): Remove.
* config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
       * config/avr/avr.c (TARGET_REGISTER_MOVE_COST,
       TARGET_MEMORY_MOVE_COST): Define.
       (avr_register_move_cost, avr_memory_move_cost): New Functions.

From-SVN: r170788
2011-03-08 21:31:08 +03:00
Andreas Krebbel cf73ff7642 optimize-bswapsi-1.c: Use -march=z900 on s390.
2011-03-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.dg/optimize-bswapsi-1.c: Use -march=z900 on s390.

From-SVN: r170787
2011-03-08 17:44:09 +00:00
Jason Merrill db68a2cbf7 re PR c++/47488 (sorry, unimplemented: string literal in function template signature)
PR c++/47488
	* mangle.c (write_template_arg_literal) [STRING_CST]: Sorry.

From-SVN: r170783
2011-03-08 12:30:46 -05:00
Jason Merrill 8c0672ff88 re PR c++/47705 (internal compiler error: in convert_nontype_argument, at cp/pt.c:5006)
PR c++/47705
	* pt.c (convert_nontype_argument): Don't crash on non-pointer
	argument to pointer parameter.

From-SVN: r170782
2011-03-08 12:30:36 -05:00
Jason Merrill 2c86a82aa4 re PR c++/45651 (ICE in import_export_decl, at cp/decl2.c:2344)
PR c++/45651
	* pt.c (instantiate_decl): Don't clear DECL_INTERFACE_KNOWN on
	!TREE_PUBLIC decls.

From-SVN: r170781
2011-03-08 12:30:25 -05:00
Jakub Jelinek 530a480063 re PR debug/47881 (-fcompare-debug failure (length) with -O -fno-dce -funroll-loops -fno-web)
PR debug/47881
	* ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
	removed anything.

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

From-SVN: r170780
2011-03-08 16:51:12 +01:00
Dodji Seketeli 9ca6556ebc re PR c++/47957 (Type mismatch when a class derived a same name with template parameter)
PR c++/47957

gcc/cp/

	* name-lookup.c (binding_to_template_parms_of_scope_p): Only
	consider scopes of primary template definitions.  Adjust comments.

gcc/testsuite/

	* g++.dg/lookup/template3.C: New test.

From-SVN: r170779
2011-03-08 16:38:30 +01:00
Kai Tietz 1c2bbb161e pr21082.C: Use __INTPTR_TYPE__ instead of 'long' type.
2011-03-08  Kai Tietz  <ktietz@redhat.com>

        * g++.dg/tree-ssa/pr21082.C: Use __INTPTR_TYPE__ instead of
        'long' type.

From-SVN: r170774
2011-03-08 12:05:37 +01:00
Mikael Pettersson 370ef46b1a re PR testsuite/47954 (gcc.dg/tree-ssa/ssa-ccp-33.c fails with link error on m68k-linux)
2011-03-08  Mikael Pettersson  <mikpe@it.uu.se>

	PR testsuite/47954
	* gcc.dg/tree-ssa/ssa-ccp-33.c: Use __alignof__ not
	sizeof to compute alignment.

From-SVN: r170773
2011-03-08 10:45:46 +00:00
Jakub Jelinek 32bd240907 re PR tree-optimization/48022 (-Wstrict-overflow warning on code that doesn't have overflows)
PR tree-optimization/48022
	* fold-const.c (fold_comparison): Don't call fold_overflow_warning
	for EQ/NE_EXPR.

	* gcc.dg/pr48022-1.c: New test.
	* gcc.dg/pr48022-2.c: New test.

From-SVN: r170772
2011-03-08 11:43:10 +01:00
Jason Merrill 93dd46fb79 re PR c++/48003 (Regression in Template Constants from 4.5.2)
PR c++/48003
	* pt.c (convert_nontype_argument): Fix -fpermissive allowing
	integer overflow.
	* semantics.c (potential_constant_expression_1): Check TREE_OVERFLOW.

From-SVN: r170771
2011-03-08 00:28:13 -05:00
Jason Merrill 8152661be6 re PR c++/48015 ([C++0x] ICE: unexpected expression 'std::min' of kind overload)
PR c++/48015
	* init.c (constant_value_1): Always require init to be TREE_CONSTANT.

From-SVN: r170770
2011-03-08 00:28:02 -05:00
GCC Administrator 7ff9af9bd6 Daily bump.
From-SVN: r170767
2011-03-08 00:18:35 +00:00
Benjamin Kosnik b329dd10a9 re PR libstdc++/47145 (configure test for docbook-xsl-ns stylesheets uses hardcoded path)
2011-03-07  Benjamin Kosnik  <bkoz@redhat.com>
            Matthias Klose  <doko@ubuntu.com>
	    Jonathan Wakely  <redi@gcc.gnu.org>

	PR libstdc++/47145
	* acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Define.
	* configure.ac: Use it.
	* doc/Makefile.am (XSL_STYLE_DIR): Set at configure time.
	* configure: Regenerate.
	* doc/Makefile.in: Regenerate.


Co-Authored-By: Jonathan Wakely <redi@gcc.gnu.org>
Co-Authored-By: Matthias Klose <doko@ubuntu.com>

From-SVN: r170763
2011-03-08 00:04:05 +00:00
Ian Lance Taylor 26bc022b8f Solaris libgo testsuite fixes.
From-SVN: r170762
2011-03-07 23:37:12 +00:00
Ian Lance Taylor ec9dc45b75 Use _nuname on 32-bit Solaris 2/x86.
From-SVN: r170761
2011-03-07 22:39:45 +00:00
Ian Lance Taylor d8b878dc29 Permit garbage collection on any compiler generated memory allocation.
From-SVN: r170760
2011-03-07 22:19:50 +00:00
Jakub Jelinek c7148991ec re PR debug/47991 (Var-tracking ICE on s390x *setmem_long insn)
PR debug/47991
	* var-tracking.c (find_use_val): Return NULL for
	cui->sets && cui->store_p BLKmode MEMs.

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

From-SVN: r170759
2011-03-07 23:11:55 +01:00
Ian Lance Taylor 691a924baf Avoid race condition manipulating heap when goroutine exits.
From-SVN: r170758
2011-03-07 21:56:40 +00:00
Ian Lance Taylor 457186f6d5 generic-morestack.c (__splitstack_find): Adjust returned stack pointer to include all registers pushed by __morestack.
* generic-morestack.c (__splitstack_find): Adjust returned stack
	pointer to include all registers pushed by __morestack.

From-SVN: r170757
2011-03-07 21:47:10 +00:00
Ian Lance Taylor c7e529d3bc Support multiple init functions in a single file.
From-SVN: r170756
2011-03-07 21:38:46 +00:00
Ian Lance Taylor b4ed59860a Fix second import of package using _.
From-SVN: r170755
2011-03-07 21:29:46 +00:00
Ian Lance Taylor 6481a43b01 Handle predeclared names used as fields in struct composite literals.
From-SVN: r170754
2011-03-07 21:22:35 +00:00
Jason Merrill 2706260492 re PR c++/48008 (libstdc++-v3/testsuite/20_util/function/43397.cc fails to assemble with -fabi-version=5)
PR c++/48008
	* mangle.c (write_type): Strip cv-quals from FUNCTION_TYPE here.
	(write_CV_qualifiers_for_type): Not here.

From-SVN: r170752
2011-03-07 15:10:44 -05:00
Anatoly Sokolov 43070a6e9b stormy16.h (PRINT_OPERAND, [...]): Remove.
* config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
	Remove.
	* config/stormy16/stormy16-protos.h (xstormy16_print_operand,
	xstormy16_print_operand_address): Remove.
	* config/stormy16/stormy16.c (xstormy16_print_operand,
	xstormy16_print_operand_address): Make static.
	(TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.

From-SVN: r170751
2011-03-07 22:59:55 +03:00