Commit Graph

109251 Commits

Author SHA1 Message Date
Rainer Orth
3f5cb2514a tree-prof.exp: Check for -fprofile-generate support.
gcov-profile/48845
	* g++.dg/tree-prof/tree-prof.exp: Check for -fprofile-generate
	support.
	* gcc.dg/matrix/matrix.exp: Likewise.
	* gcc.dg/tree-prof/tree-prof.exp: Likewise.
	* lib/target-supports-dg.exp (dg-require-profiling): Don't pass
	line number to check_profiling_available.
	* lib/target-supports.exp (check_profiling_available): Account for
	this.
	Require TLS runtime support with -fprofile-generate.
	* lib/profopt.exp (profopt-execute): Add TLS options for
	-fprofile-generate.
	* gcc.dg/pr47793.c: Add dg-require-profiling "-fprofile-generate".

From-SVN: r174275
2011-05-26 10:33:06 +00:00
Jakub Jelinek
1537737f28 re PR c++/49165 (ICE on for-loop/throw combination)
PR c++/49165
	* gimplify.c (shortcut_cond_r): Don't special case
	COND_EXPRs if they have void type on one of their arms.

	* g++.dg/eh/cond5.C: New test.

From-SVN: r174273
2011-05-26 12:25:21 +02:00
Bernd Schmidt
7b1ac803d3 haifa-sched.c (schedule-block): Reorder the inner scheduling loop to reduce duplication...
* haifa-sched.c (schedule-block): Reorder the inner scheduling loop
	to reduce duplication, and to achieve a slightly more logical order
	of operations.

From-SVN: r174271
2011-05-26 10:16:03 +00:00
Jakub Jelinek
1aa9438fdb re PR tree-optimization/49161 (Fix VRP on switch stmts)
PR tree-optimization/49161
	* tree-vrp.c (struct case_info): New type.
	(compare_case_labels): Sort case_info structs instead of
	trees, and not primarily by CASE_LABEL uids but by
	label_for_block indexes.
	(find_switch_asserts): Put case labels into struct case_info
	array instead of TREE_VEC, adjust sorting, compare label_for_block
	values instead of CASE_LABELs.

	* gcc.c-torture/execute/pr49161.c: New test.

From-SVN: r174270
2011-05-26 12:05:05 +02:00
Nicola Pero
0dd5327a46 In libobjc/: 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>

	* sendmsg.c: Reindented part of the file.  No non-trivial changes
	in code.

From-SVN: r174269
2011-05-26 09:31:30 +00:00
Nicola Pero
1e49849c9f In libobjc/: 2011-05-26 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2011-05-26  Nicola Pero  <nicola.pero@meta-innovation.com>

	* sendmsg.c (__objc_install_dtable_for_class): Use objc_getClass,
	not objc_lookupClass.

From-SVN: r174268
2011-05-26 09:13:59 +00:00
Eric Botcazou
1651e70348 Remove conflict marker
From-SVN: r174267
2011-05-26 08:53:05 +00:00
Ramana Radhakrishnan
50fed7bf1a Fix generation of vorn and vbic for Neon.
From-SVN: r174266
2011-05-26 08:07:45 +00:00
Ira Rosen
48df3fa66c re PR tree-optimization/49038 (-ftree-vectorise introduces reads past end of array)
PR tree-optimization/49038
        * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
        Ensure at least one epilogue iteration if required by data
        accesses with gaps.
        * tree-vectorizer.h (struct _loop_vec_info): Add new field 
        to mark loops that require peeling for gaps.
        * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
        (vect_get_known_peeling_cost): Take peeling for gaps into 
        account.
        (vect_transform_loop): Generate epilogue if required by data
        access with gaps.
        * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
        loop as requiring an epilogue if there are gaps in the end of
        the strided group.

From-SVN: r174265
2011-05-26 07:50:09 +00:00
Fabien Chêne
688571c7d5 Adjust gcc/testsuite/ChangeLog
From-SVN: r174264
2011-05-26 08:09:16 +02:00
Fabien Chêne
c6bdd05e3a pr25811-2.C: New.
2011-05-26  Fabien Chene  <fabien@gcc.gnu.org>
	* g++.dg/init/pr25811-2.C: New.
	* g++.dg/init/pr25811-3.C: New.
	* g++.dg/init/pr25811-4.C: New.

From-SVN: r174263
2011-05-26 07:54:08 +02:00
Ian Lance Taylor
53febcba13 godump.c (go_format_type): Output the first field with a usable Go type, if any.
* godump.c (go_format_type): Output the first field with a usable
	Go type, if any.

From-SVN: r174262
2011-05-26 04:41:19 +00:00
Jason Merrill
7d7766a0ba fix pr marker
From-SVN: r174259
2011-05-25 22:28:59 -04:00
Jason Merrill
265133917c re PR c++/48536 ([C++0x] Automatic Enumerator Incrementation is not compliant with Clause 7.2/5)
PR c++/48536
	* decl.c (build_enumerator): If incremented enumerator won't fit in
	previous integral type, find one it will fit in.

From-SVN: r174258
2011-05-25 22:23:02 -04:00
Jason Merrill
5df0c0c767 re PR c++/48599 ([C++0x] no diagnostic for invalid use of auto with array declarator)
PR c++/48599
	* decl.c (create_array_type_for_decl): Complain about array of auto.

From-SVN: r174257
2011-05-25 22:22:54 -04:00
Jason Merrill
eda1990699 re PR c++/49156 ([C++0x] Error reporting routines re-entered)
PR c++/49156
	* error.c (dump_template_bindings): Set processing_template_decl
	for a partial instantiation.

From-SVN: r174256
2011-05-25 22:22:46 -04:00
Jason Merrill
dc31ddad44 re PR c++/45401 ([C++0x] reference collapsing and reference qualifiers)
PR c++/45401
	* decl.c (grokdeclarator): Don't change type when adding rvalue ref
	to another reference type.

From-SVN: r174255
2011-05-25 22:22:39 -04:00
Paolo Carlini
c688bbdd63 stl_queue.h: Use noexcept per the FDIS.
2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_queue.h: Use noexcept per the FDIS.
	* include/bits/stl_stack.h: Likewise.

From-SVN: r174254
2011-05-26 00:36:35 +00:00
Ian Lance Taylor
dbbc4d4c17 godump.c (go_format_type): Check for invalid type names, pointer target types, and struct field types.
* godump.c (go_format_type): Check for invalid type names, pointer
	target types, and struct field types.

From-SVN: r174253
2011-05-26 00:31:54 +00:00
GCC Administrator
45e4e4e2af Daily bump.
From-SVN: r174252
2011-05-26 00:19:16 +00:00
Paolo Carlini
11edf775f5 gnu.ver: Correct last change, export instead at the existing @3.4.16.
2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* config/abi/pre/gnu.ver: Correct last change, export instead
	at the existing @3.4.16.
	* configure.ac: Revert last change.
	* testsuite/util/testsuite_abi.cc: Likewise.
	* configure: Regenerate.

From-SVN: r174246
2011-05-26 00:15:22 +00:00
Jonathan Wakely
ccd06207d4 documentation_hacking.xml: Minor corrections.
2011-05-26  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* doc/xml/manual/documentation_hacking.xml: Minor corrections.

From-SVN: r174245
2011-05-26 00:56:07 +01:00
Jonathan Wakely
e06745c110 mutex: Add doxygen comments.
2011-05-26  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/mutex: Add doxygen comments.

From-SVN: r174244
2011-05-26 00:49:11 +01:00
Paolo Carlini
e1cb95bc70 gnu.ver: Export recently added basic_streambuf and basic_stringbuf symbols @3.4.17.
2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* config/abi/pre/gnu.ver: Export recently added  basic_streambuf
	and basic_stringbuf symbols @3.4.17.
	* configure.ac: Update.
	* testsuite/util/testsuite_abi.cc: Likewise.
	* configure: Regenerate.

From-SVN: r174242
2011-05-25 23:45:58 +00:00
Jonathan Wakely
50aeb6f48c guard.cc: Fix comments.
2011-05-26  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* libsupc++/guard.cc: Fix comments.

From-SVN: r174241
2011-05-26 00:43:32 +01:00
Ian Lance Taylor
2b4e07b814 re PR libstdc++/49060 (use of deleted memory in __gnu_cxx::hashtable::erase)
PR libstdc++/49060
	* include/backward/hashtable.h (hashtable::erase): Don't crash if
	erasing first and another element with a reference to the other
	element.
	* testsuite/backward/hash_set/49060.cc: New.

From-SVN: r174240
2011-05-25 23:09:14 +00:00
Nicola Pero
48126bcbc2 Fixed typo in last ChangeLog entry
From-SVN: r174238
2011-05-25 20:33:06 +00:00
Jason Merrill
de69121325 re PR c++/44311 ([C++0x] no error with switch over enum class and integer case)
PR c++/44311
	* decl.c (case_conversion): New.
	(finish_case_label): Use it.

From-SVN: r174231
2011-05-25 16:02:41 -04:00
Jason Merrill
f03a540243 print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
* print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
	* cp/ptree.c (cxx_print_xnode): Handle ARGUMENT_PACK_SELECT.

From-SVN: r174230
2011-05-25 15:52:18 -04:00
Jason Merrill
91db8b1345 re PR c++/45698 (C++0x Variadic Templates: Infinite template recursion rather than an error message)
PR c++/45698
	* pt.c (dependent_template_arg_p): See through ARGUMENT_PACK_SELECT.

From-SVN: r174229
2011-05-25 15:52:10 -04:00
Jason Merrill
df23ba642d re PR c++/46005 ([C++0x] Don't allow "auto" as the simple-type-specifier of a typedef)
PR c++/46145
	* decl.c (grokdeclarator): Complain about auto typedef.

From-SVN: r174228
2011-05-25 15:52:02 -04:00
Jason Merrill
ce9b1898e5 re PR c++/46245 ([C++0x] rejects function with late-specified return type as a non-type template parameter)
PR c++/46245
	* decl.c (grokdeclarator): Complain later for auto parameter.
	* pt.c (splice_late_return_type): Handle use in a template
	type-parameter.

From-SVN: r174227
2011-05-25 15:51:54 -04:00
Jason Merrill
5e24286319 re PR c++/46696 ([C++0x] Implicit copy constructor can't construct array of subtype with user-defined copy constructor.)
PR c++/46696
	* typeck.c (cp_build_modify_expr): Check DECL_DEFAULTED_FN.

From-SVN: r174226
2011-05-25 15:51:44 -04:00
Jason Merrill
636e368d17 re PR c++/47184 ([C++0x] initialization construct interpreted as function declaration‏‏)
PR c++/47184
	* parser.c (cp_parser_parameter_declaration): Recognize
	list-initialization.
	(cp_parser_direct_declarator): Check for the closing
	paren before parsing definitely.

From-SVN: r174225
2011-05-25 15:50:49 -04:00
Uros Bizjak
c497c412b4 sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
* config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.

From-SVN: r174224
2011-05-25 21:48:44 +02:00
H.J. Lu
e470affed0 Put back "register_operand" check in 32bit QI ext patterns.
2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.md (*movqi_extv_1)): Put back
	"register_operand" check in "type" calculation.
	(*movqi_extzv_2): Likewise.

From-SVN: r174223
2011-05-25 12:27:56 -07:00
Richard Frith-Macdonald
b5a3450ff7 In libobjc/: 2011-05-25 Richard Frith-Macdonald <rfm@gnu.org> David Ayers <ayers@fsfe.org>
In libobjc/:
2011-05-25  Richard Frith-Macdonald <rfm@gnu.org>
	    David Ayers  <ayers@fsfe.org>

	PR libobjc/38037
	* sendmsg.c: Include objc/hash.h.
	(get_implementation): New function, mostly with code from get_imp
	updated to support the new +initialize dispatch table logic.
	(get_imp): Use get_implementation.
	(__objc_responds_to): Updated to support the new +initialize
	dispatch table logic.
	(class_respondsToSelector): Likewise.
	(objc_msg_lookup): Use get_implementation.
	(__objc_init_install_dtable): Removed.
	(__objc_install_methods_in_dtable): Updated arguments.
	(__objc_install_dispatch_table_for_class): Renamed to
	__objc_install_dtable_for_class and updated to support the new
	+initialize dispatch table logic.
	(__objc_update_dispatch_table_for_class): Updated to support the
	new +initialize dispatch table logic.
	(__objc_forward): Call get_implementation instead of get_imp.
	(prepared_dtable_table): New.
	(__objc_prepare_dtable_for_class): New.	
	(__objc_prepared_dtable_for_class): New.
	(__objc_get_prepared_imp): New.
	(__objc_install_prepared_dtable_for_class): New.

Co-Authored-By: David Ayers <ayers@fsfe.org>

From-SVN: r174221
2011-05-25 18:54:40 +00:00
Paolo Carlini
deaf34a90b random.h (random_device::min, max): Specify constexpr.
2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/random.h (random_device::min, max): Specify constexpr.

From-SVN: r174219
2011-05-25 17:55:40 +00:00
Jakub Jelinek
0957c02992 c-common.c (def_fn_type): Remove extra va_end.
* c-common.c (def_fn_type): Remove extra va_end.

	* gcc-interface/utils.c (def_fn_type): Remove extra va_end.

From-SVN: r174218
2011-05-25 19:26:23 +02:00
H.J. Lu
6c81b2bc25 Update pause intrinsic.
2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>

	* doc/extend.texi (X86 Built-in Functions): Update pause
	intrinsic.

From-SVN: r174217
2011-05-25 10:18:29 -07:00
Bernd Schmidt
0c007eb2cd re PR bootstrap/49160 (Bootstrap failure)
PR bootstrap/49160
	* libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
	__mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
	__divxc3, __divtc3): Wrap definitions in #ifndef.

From-SVN: r174216
2011-05-25 16:42:23 +00:00
Janis Johnson
b8f98c5505 fp16-compile-none-1.c: Update expected error.
* gcc.target/arm/fp16-compile-none-1.c: Update expected error.
	* g++.dg/abi/packed1.C: Suppress warning.
	* g++.dg/warn/Wunused-parm-3.C: Likewise.
	* g++.dg/template/stdarg1.C: Likewise.
	* g++.dg/other/packed1.C: Remove arm from xfail list.

From-SVN: r174213
2011-05-25 16:30:27 +00:00
H.J. Lu
521ca78e26 Replace q_regs_operand with QIreg_operand in QI ext patterns.
2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/49142
	* config/i386/i386.md (*movqi_extv_1_rex64): Remove
	"register_operand" check and replace q_regs_operand with
	QIreg_operand in "type" calculation.
	(*movqi_extv_1): Likewise.
	(*movqi_extzv_2_rex64): Likewise.
	(*movqi_extzv_2): Likewise.

	* config/i386/predicates.md (QIreg_operand): New.

From-SVN: r174211
2011-05-25 09:19:36 -07:00
Richard Guenther
29f8b8449c tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix type-based offset disambiguation...
2011-05-25  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
	type-based offset disambiguation, streamline MEM_REF and
	TARGET_MEM_REF handling.

From-SVN: r174206
2011-05-25 15:20:36 +00:00
Jason Merrill
b60f340870 re PR c++/48935 ([C++0x] Name lookup error at enum class)
PR c++/48935
	* parser.c (cp_parser_constructor_declarator_p): Don't check
	constructor_name_p for enums.
	(cp_parser_diagnose_invalid_type_name): Correct error message.

From-SVN: r174205
2011-05-25 10:35:17 -04:00
Jason Merrill
f41349a3d4 re PR c++/45418 ([C++0x] can't initialize array of non-trivial type with brace-init)
PR c++/45418
	* init.c (perform_member_init): Handle list-initialization
	of array of non-trivial class type.

From-SVN: r174204
2011-05-25 10:35:09 -04:00
Jason Merrill
c844b3a0ed re PR c++/45080 ([C++0x] Rejects lambda to function pointer conversion inside function template)
PR c++/45080
	* pt.c (instantiate_class_template_1): Call maybe_add_lambda_conv_op.
	* semantics.c (lambda_function): Check COMPLETE_OR_OPEN_TYPE_P.

From-SVN: r174203
2011-05-25 10:35:00 -04:00
Paolo Carlini
7f0d79d514 thread: Use noexcept throughout per the FDIS.
2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/thread: Use noexcept throughout per the FDIS.
	* include/std/mutex: Likewise.

From-SVN: r174202
2011-05-25 14:32:06 +00:00
Jason Merrill
bc7f13bf15 re PR c++/48292 ([C++0x] "sorry, unimplemented: use of 'type_pack_expansion' in template")
PR c++/48292
	* pt.c (tsubst_decl) [PARM_DECL]: Handle partial instantiation of
	function parameter pack.
	(tsubst_pack_expansion): Likewise.

From-SVN: r174201
2011-05-25 10:32:06 -04:00
Jason Merrill
0dfef520f0 cp-objcp-common.c (cp_common_init_ts): TYPE_ARGUMENT_PACK has TS_COMMON.
* cp-objcp-common.c (cp_common_init_ts): TYPE_ARGUMENT_PACK has
	TS_COMMON.

From-SVN: r174200
2011-05-25 10:31:56 -04:00