Commit Graph

107068 Commits

Author SHA1 Message Date
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
Joseph Myers
787a8c0feb lang-specs.h: Match -save-temps* instead of -save-temps.
cp:
	* lang-specs.h: Match -save-temps* instead of -save-temps.

objc:
	* lang-specs.h: Match -save-temps* instead of -save-temps.

objcp
	* lang-specs.h: Match -save-temps* instead of -save-temps.

From-SVN: r170715
2011-03-06 16:27:57 +00:00
Joseph Myers
359fad6e13 * de.po: Update.
From-SVN: r170713
2011-03-06 16:20:51 +00:00
Jason Merrill
f42cf4f46b * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
From-SVN: r170712
2011-03-05 19:45:16 -05:00
Jason Merrill
55af847f56 mangle.c (write_expression): Change ABI v6 to v5.
* mangle.c (write_expression): Change ABI v6 to v5.
	(write_type): Likewise.

From-SVN: r170711
2011-03-05 19:38:13 -05:00
GCC Administrator
5091c65687 Daily bump.
From-SVN: r170710
2011-03-06 00:18:37 +00:00
John David Anglin
1f3878359b pr47975.c: Add -fno-common option on hppa*-*-hpux*.
* gcc.dg/torture/pr47975.c: Add -fno-common option on hppa*-*-hpux*.

From-SVN: r170706
2011-03-06 00:14:01 +00:00
Joseph Myers
20a52ab960 * gennews (files): Add files for GCC 4.6.
From-SVN: r170704
2011-03-05 19:49:36 +00:00
Joseph Myers
4c1bb1ce50 * gcc.pot: Regenerate.
From-SVN: r170703
2011-03-05 19:46:47 +00:00
Joseph Myers
3ba03783a9 * cpplib.pot: Regenerate.
From-SVN: r170702
2011-03-05 19:45:12 +00:00
Anthony Green
804a304d32 Add newlib-stdint.h to moxie-eld config.
From-SVN: r170700
2011-03-05 15:19:44 +00:00
Zdenek Dvorak
634ee309bb re PR rtl-optimization/47899 (ICE in get_loop_body, at cfgloop.c:831)
PR rtl-optimization/47899
	* cfgloopmanip.c (fix_bb_placements): Fix first argument
	to flow_loop_nested_p when moving the loop upward.

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

From-SVN: r170699
2011-03-05 15:28:14 +01:00
Richard Earnshaw
6fe471c8ca re PR target/47719 (ICE compiling libavcodec/adxdec.c (FFmpeg) for ARM)
PR target/47719
	* arm.md (movhi_insn_arch4):  Accept any immediate constant.

From-SVN: r170698
2011-03-05 14:01:07 +00:00
Ralf Wildenhues
9d77a2c4e3 Guard against M4 versions with a buggy strstr.
config/:
	* override.m4: Error out if a buggy M4 was detected, to
	avoid spurious diffs in generated files.

Co-Authored-By: Eric Blake <eblake@redhat.com>

From-SVN: r170697
2011-03-05 07:32:50 +00:00
GCC Administrator
d1509a41b3 Daily bump.
From-SVN: r170696
2011-03-05 00:18:38 +00:00
Jakub Jelinek
13f1e629cd * gcc.dg/torture/pr47968.c: Ignore warnings.
From-SVN: r170691
2011-03-05 01:01:32 +01:00
Jakub Jelinek
cc58ceee5d re PR tree-optimization/47967 (ICE: verify_stmts failed: conversion of register to a different size with -fipa-cp on undefined code)
PR tree-optimization/47967
	* ipa-cp.c (build_const_val): Return NULL instead of creating
	VIEW_CONVERT_EXPR for mismatching sizes.
	(ipcp_create_replace_map): Return NULL if build_const_val failed.
	(ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
	give up on versioning.

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

From-SVN: r170689
2011-03-05 00:07:20 +01:00
Alan Modra
ea86830567 re PR target/47986 (gcc.c-torture/execute/20040709-1.c fails with non-delegitimized UNSPEC)
PR target/47986
	* config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
	full cmodel medium/large lo_sum + high addresses.

From-SVN: r170687
2011-03-05 09:29:07 +10:30
Benjamin Kosnik
ed4f96af59 Makefile.am (inst_sources): Make source instantion files conditional.
2011-03-04  Benjamin Kosnik  <bkoz@chula>

	* src/Makefile.am (inst_sources): Make source instantion files
	conditional.
	(XTEMPLATE_FLAGS): Make -fno-implicit-templates conditional.
	* src/Makefile.in: Regenerate.
	* src/valarray-inst.cc: Move to..
	* src/valarray.cc: ...this.
	* acinclude.m4 (GLIBCXX_ENABLE_EXTERN_TEMPLATE]): Define.
	* configure.ac (GLIBCXX_ENABLE_EXTERN_TEMPLATE): Use it.
	* configure: Regenerate.
	* include/Makefile.am (stamp-extern-template): Add.
	* include/Makefile.in: Regenerate.

	* doc/xml/manual/configure.xml: Document --enable-extern-template.

	* include/bits/locale_classes.tcc: Adjust comment.
	* include/bits/locale_facets.tcc: Same.
	* include/bits/basic_ios.tcc: Same.
	* include/bits/istream.tcc: Same.
	* include/bits/codecvt.h: Same.
	* include/bits/ostream.tcc: Same.
	* include/bits/sstream.tcc: Same.
	* include/bits/c++config: Same.
	* include/bits/basic_string.tcc: Same.
	* include/bits/ostream_insert.h: Same.
	* include/bits/locale_facets_nonio.tcc: Same.
	* include/bits/streambuf.tcc: Same.
	* include/bits/allocator.h: Same.
	* include/bits/fstream.tcc: Same.

	* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust line numbers.

From-SVN: r170686
2011-03-04 21:51:56 +00:00
Andreas Krebbel
bc6ce33429 s390.c (s390_decompose_address): Reject non-literal pool references in UNSPEC_LTREL_OFFSET.
2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.c (s390_decompose_address): Reject non-literal
	pool references in UNSPEC_LTREL_OFFSET.

From-SVN: r170685
2011-03-04 20:47:11 +00:00
Nicola Pero
78a8b16bad In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2011-03-04  Nicola Pero  <nicola.pero@meta-innovation.com>

	* objc.dg/property/property-encoding-1.m: Tidied up testcase.
	* obj-c++.dg/property/property-encoding-1.mm: Likewise.

From-SVN: r170684
2011-03-04 19:09:34 +00:00
Janne Blomqvist
246a273017 PR 47802 Use builtins to check localtime_r return type
From-SVN: r170683
2011-03-04 21:07:49 +02:00
Jan Hubicka
87e7b310b3 re PR lto/47497 (SPEC CPU 2006 failed to link with LTO -fuse-linker-plugin -fwhole-program)
PR lto/47497
	* lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
	(lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
	* cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
	* cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
	cgraph_add_thunk): Add node pointers.
	* lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
	associated to right node.
	(input_node): Update use of cgraph_same_body_alias
	and cgraph_add_thunk.

	* optimize.c (maybe_clone_body): Update call of cgraph_same_body_alias
	and cgraph_add_thunk.
	* method.c (make_alias_for_thunk, use_thunk): Likewise.
	* mangle.c (mangle_decl): Likewise.

From-SVN: r170682
2011-03-04 18:49:23 +00:00
Changpeng Fang
d9c6424620 Introduce flag -mprefer-avx128 for the auto-vectorizer to generate only 128-bit avx insns.
* config/i386/i386.opt (mprefer-avx128): New flag.
	* config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
	when the flag -mprefer-avx128 is on.

From-SVN: r170681
2011-03-04 17:56:39 +00:00
Janne Blomqvist
7a9d7a4f86 PR 47802 Hack to work around draft POSIX localtime_r
From-SVN: r170680
2011-03-04 19:52:10 +02:00
Janne Blomqvist
d9d114ecd0 PR 47802 Update doc for CTIME and FDATE intrinsics
From-SVN: r170679
2011-03-04 19:37:11 +02:00
Nicola Pero
f787ea5a40 In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2011-03-04  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc.dg/gnu-api-2-property.m: Added tests for property_getName()
        and property_getAttributes() if __OBJC2__.
        * obj-c++.dg/gnu-api-2-property.mm: Likewise.
        * objc.dg/property/property-encoding-1.m: New.
        * obj-c++.dg/property/property-encoding-1.mm: New.

From-SVN: r170678
2011-03-04 15:45:30 +00:00
Jason Merrill
ad00b8db9a re PR c++/47971 (ICE: in tsubst_copy, at cp/pt.c:11725 on valid code)
PR c++/47971
	* pt.c (tsubst_copy_and_build) [PSEUDO_DTOR_EXPR]: Use tsubst for type.
	(tsubst_copy) [default]: Just return t if !ENABLE_CHECKING.

From-SVN: r170677
2011-03-04 10:18:07 -05:00
Jason Merrill
38ffa8289c re PR c++/46220 (Error: invalid covariant return type generated for incomplete class type and different qualifer)
PR c++/46220
	* search.c (check_final_overrider): Allow pointer to same incomplete
	class type with different cv-quals.

From-SVN: r170676
2011-03-04 10:17:55 -05:00
Richard Sandiford
087070764a dwarf2out.c (compare_loc_operands): Fix address handling.
gcc/
	* dwarf2out.c (compare_loc_operands): Fix address handling.

From-SVN: r170675
2011-03-04 14:19:19 +00:00
Alan Modra
52517c8121 tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
* tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.

From-SVN: r170674
2011-03-04 21:21:56 +10:30
Richard Guenther
b147c5b92f re PR middle-end/47968 (ICE: in gen_lowpart_general, at rtlhooks.c:51 when converting vector of double to vector of float)
2011-03-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47968
	* expmed.c (extract_bit_field_1): Prefer vector modes that
	vec_extract patterns can handle.

	* gcc.dg/torture/pr47968.c: New testcase.

From-SVN: r170673
2011-03-04 10:31:33 +00:00
Richard Guenther
8750672fae re PR target/47975 (ICE: in expand_shift, at expmed.c:2299 when using 256b vectors without -mavx)
2011-03-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47975
	* optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.

	* gcc.dg/torture/pr47975.c: New testcase.

From-SVN: r170672
2011-03-04 10:27:10 +00:00