Commit Graph

107100 Commits

Author SHA1 Message Date
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
Pat Haugen
79eefb0dd2 re PR rtl-optimization/47862 (Incorrect code for spilling a vector register)
PR target/47862
        * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
        * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
        before definition.

        * testsuite/gcc.target/powerpc/pr47862.c: New.

From-SVN: r170748
2011-03-07 19:27:09 +00:00
Jack Howarth
5fc7780874 re PR testsuite/45413 (gcc.target/i386/combine-mul.c fails on PIC targets)
2011-03-07  Jack Howarth <howarth@bromo.med.uc.edu>

	    PR target/45413
	    * gcc.target/i386/combine-mul.c: Require nonpic.

From-SVN: r170744
2011-03-07 18:07:31 +00:00
Zdenek Dvorak
cec8ac0b7e re PR bootstrap/48000 (LTO bootstrap failed with bootstrap-profiled)
PR bootstrap/48000
	* cfgloopmanip.c (fix_bb_placements): Return immediately
	if FROM is BASE_LOOP's header.

From-SVN: r170740
2011-03-07 17:41:53 +01:00
Nathan Froyd
a19e4d44f1 re PR c/47786 (tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in c_type_hash, at c-family/c-common.c:4066)
PR c/47786
	* c-common.c (c_type_hash): Call list_length instead of iterating
	through DECL_CHAIN.  Rename 'i' to 'n_elements'.

From-SVN: r170739
2011-03-07 15:32:25 +00:00
Paul Wögerer
5952728238 gimplify.c (gimplify_function_tree): Fix building calls to __builtin_return_address.
gcc/
	* gimplify.c (gimplify_function_tree): Fix building calls
	to __builtin_return_address.

gcc/testsuite/
	* gcc.dg/20001117-1.c: Abort on NULL call_sites.


Co-Authored-By: Nathan Froyd <froydnj@codesourcery.com>

From-SVN: r170738
2011-03-07 15:28:50 +00:00
Alan Modra
617718f72d linux.h (TARGET_ASM_FILE_END): Don't define.
* config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
	* config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
	* config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
	* config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
	return_mode args.
	* config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
	(INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
	(INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
	(INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
	* config/rs6000/rs6000.c
	(rs6000_elf_end_indicate_exec_stack): Rename to..
	(rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
	for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
	(rs6000_file_start): ..here.
	(rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
	file scope variables.
	(call_ABI_of_interest): New function.
	(init_cumulative_args): Set above vars when function return value
	is a float, vector, or small struct.
	(rs6000_function_arg_advance_1): Likewise for function args.
	(rs6000_va_start): Set rs6000_passes_float if variable arg function
	references float args.

From-SVN: r170734
2011-03-07 18:20:23 +10:30
Joey Ye
fb72848b0c * MAINTAINERS: Update my e-mail address.
From-SVN: r170731
2011-03-07 03:04:34 +00:00
Mingjie Xing
38528d5051 Remove redundant word 'See' before @xref
From-SVN: r170730
2011-03-07 03:00:04 +00:00
Mark Mitchell
0d14c75706 * README.QMTEST: Remove.
From-SVN: r170728
2011-03-07 02:26:27 +00:00
GCC Administrator
a9dc1bd8cf Daily bump.
From-SVN: r170725
2011-03-07 00:18:49 +00:00
Paul Thomas
8e1e41e7af re PR fortran/47850 (ICE in gfc_conv_array_initializer)
2011-03-06  Paul Thomas  <pault@gcc.gnu.org>
	    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/47850
	* expr.c (gfc_is_constant_expr): Only use gfc_constant_ac if
	the expression has an iterator.  Otherwise, iterate through the
	array, checking for constant expressions for each element.

2011-03-06  Paul Thomas  <pault@gcc.gnu.org>
	    Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/47850
	* gfortran.dg/array_constructor_37.f90 : New test.


Co-Authored-By: Jerry DeLisle <jvdelisle@gcc.gnu.org>

From-SVN: r170720
2011-03-06 20:15:38 +00:00