Commit Graph

122084 Commits

Author SHA1 Message Date
Jakub Jelinek
5eb010bcfc re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* tree-loop-distribution.c (ldist_gen): Call partition_free after each
	partitions.ordered_remove.

From-SVN: r196427
2013-03-04 11:08:57 +01:00
Jakub Jelinek
30862efc6b re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* tree-vect-stmts.c (vectorizable_conversion): Don't call
	vec_oprnds0.create (1) for modifier == NONE.

From-SVN: r196426
2013-03-04 11:08:01 +01:00
Jakub Jelinek
8930f7239b re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* tree-vect-stmts.c (vectorizable_shift): Don't call create methods
	on vec_oprnds0 or vec_oprnds1 before loop, only call it on
	vec_oprnds1 right before pushing anything to it for
	scalar_shift_arg.

From-SVN: r196425
2013-03-04 11:06:22 +01:00
Jakub Jelinek
541d9ac892 re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
	set nbbs to 0 instead of having separate code path.
	(vect_analyze_loop_form): Call destroy_loop_vec_info with true
	instead of false as last argument if returning NULL.

From-SVN: r196424
2013-03-04 11:02:26 +01:00
GCC Administrator
a4f1e7052a Daily bump.
From-SVN: r196422
2013-03-04 00:18:44 +00:00
David Edelsohn
15c632bd91 vect-82_64.c: Skip on AIX.
* gcc.dg/vect/vect-82_64.c: Skip on AIX.
        * gcc.dg/vect/vect-83_64.c: Same.

From-SVN: r196419
2013-03-03 16:44:36 -05:00
Sandra Loosemore
7aa7f2e349 target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments; the attribute is now called "target" instead of "option".
2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
	the attribute is now called "target" instead of "option".
	(TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
	* doc/tm.texi.in (Target Attributes):  Likewise document the correct
	attribute/pragma name for TARGET_OPTION_VALID_P and
	TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
	* doc/tm.texi: Regenerated.

From-SVN: r196418
2013-03-03 15:21:26 -05:00
Mikael Morin
1216b4d21d re PR fortran/56477 (ICE on invalid with pointer assignment to function result)
fortran/
	PR fortran/56477
	* expr.c (gfc_check_pointer_assign): Avoid NULL pointer dereference.

testsuite/
	PR fortran/56477
	* gfortran.dg/pointer_check_13.f90: New test.

From-SVN: r196417
2013-03-03 19:58:49 +00:00
Mikael Morin
d6a5de1615 re PR fortran/54730 (ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066)
fortran/
	PR fortran/54730
	* array.c (gfc_match_array_constructor): Set a checkpoint before
	matching a typespec.  Drop it on success, restore it otherwise.

testsuite/
	PR fortran/54730
	* gfortran.dg/array_constructor_42.f90: New test.

From-SVN: r196416
2013-03-03 17:52:02 +00:00
David Holsgrove
cb8a1637a9 Support -mxl-reorder and swap instructions.
*  config/microblaze/microblaze.c:
	Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
	*  config/microblaze/microblaze.h: Add -mxl-reorder to DRIVER_SELF_SPECS
	*  config/microblaze/microblaze.md: New bswapsi2 and bswaphi2
	instructions emitted if TARGET_REORDER
	*  config/microblaze/microblaze.opt: New option -mxl-reorder set to 1 
	or 0 for -m/-mno case, but initialises as 2 to detect default use case 
	separately

From-SVN: r196415
2013-03-03 17:34:50 +00:00
Mikael Morin
ab68a73ede re PR fortran/54730 (ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1066)
fortran/
	PR fortran/54730
	* gfortran.h (struct gfc_undo_change_set): New field 'previous'.
	(gfc_new_undo_checkpoint, gfc_drop_last_undo_checkpoint,
	gfc_restore_last_undo_checkpoint): New prototypes.
	* symbol.c (default_undo_chgset_var): Update initialization.
	(single_undo_checkpoint_p, gfc_new_undo_checkpoint,
	free_undo_change_set_data, pop_undo_change_set,
	gfc_drop_last_undo_checkpoint, enforce_single_undo_checkpoint):
	New functions.
	(save_symbol_data): Handle multiple change sets.  Make sure old_symbol
	field's previous value is not overwritten.  Clear gfc_new field.
	(restore_old_symbol): Restore previous old_symbol field.
	(gfc_restore_last_undo_checkpoint): New function, using body renamed
	from gfc_undo_symbols.  Restore the previous change set as current one.
	(gfc_undo_symbols): New body.
	(gfc_commit_symbols, gfc_commit_symbol, gfc_enforce_clean_symbol_state):
	Call enforce_single_undo_checkpoint.
	(gfc_symbol_done_2): Ditto.  Free change set data.

From-SVN: r196414
2013-03-03 17:34:42 +00:00
Mikael Morin
4ef9b95000 symbol.c (restore_old_symbol): Fix thinko.
fortran/
	* symbol.c (restore_old_symbol): Fix thinko.

From-SVN: r196413
2013-03-03 17:24:19 +00:00
Mikael Morin
718e305d0f symbol.c (gfc_undo_symbols): Move code...
fortran/
	* symbol.c (gfc_undo_symbols): Move code...
	(restore_old_symbol): ... here as a new function.

From-SVN: r196412
2013-03-03 17:21:07 +00:00
Mikael Morin
dd355a42fd Make-lang.in (F95_PARSER_OBJS): Add dependency to vec.h.
fortran/
	* Make-lang.in (F95_PARSER_OBJS): Add dependency to vec.h.
	* gfortran.h: Include vec.h.
	(gfc_undo_change_set): New struct.
	* symbol.c (tentative_tbp): Remove struct.
	(changed_syms, tentative_tbp_list): Remove variables.
	(default_undo_chgset_var, latest_undo_chgset): New variables.
	(save_symbol_data, gfc_get_sym_tree, gfc_undo_symbols,
	gfc_commit_symbols, gfc_commit_symbol,
	gfc_enforce_clean_symbol_state, gfc_get_typebound_proc):
	Use latest_undo_chgset instead of changed_syms and tentative_tbp_list.

From-SVN: r196411
2013-03-03 17:16:42 +00:00
GCC Administrator
0f0d56d81a Daily bump.
From-SVN: r196410
2013-03-03 00:19:00 +00:00
Ulrich Drepper
d233c23756 Add math constants and triangular and von Mises distributions.
From-SVN: r196407
2013-03-03 00:12:28 +00:00
Xinliang David Li
4dc1d68cf2 PR/56490
From-SVN: r196406
2013-03-02 18:42:26 +00:00
Paolo Carlini
2609a39863 re PR c++/52688 (static local variable can accessed from local class of function template)
2013-03-02  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52688
	* g++.dg/template/static33.C: New.
	* g++.dg/template/static34.C: Likewise.

	PR c++/10291
	* g++.dg/template/static35.C: New.

From-SVN: r196405
2013-03-02 11:17:44 +00:00
GCC Administrator
9eb2474821 Daily bump.
From-SVN: r196403
2013-03-02 00:19:03 +00:00
Cary Coutant
54be96cef2 dwarf2.h (enum dwarf_sect): New enum type.
include/
	* dwarf2.h (enum dwarf_sect): New enum type.

From-SVN: r196400
2013-03-01 15:35:58 -08:00
Jakub Jelinek
9d676bf6f1 re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
	vector even when returning true.  Fix up function comment formatting.

From-SVN: r196398
2013-03-01 23:56:18 +01:00
Jakub Jelinek
caff7edf99 re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* ira-build.c (ira_loop_nodes_count): New variable.
	(create_loop_tree_nodes): Initialize it.
	(finish_loop_tree_nodes): Use it instead of looking at current_loops.

From-SVN: r196397
2013-03-01 23:55:26 +01:00
Jakub Jelinek
b6b9227d52 re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
	method on dr_chain and result_chain.
	* tree-vect-stmts.c (vectorizable_store): Only call
	result_chain.create if j == 0.

From-SVN: r196396
2013-03-01 23:54:39 +01:00
Jakub Jelinek
3b8af25b7a re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* files.c (_cpp_save_file_entries): Free result at the end.
	* pch.c (cpp_string_free): New function.
	(cpp_save_state): Use it in htab_create call.
	(cpp_write_pch_deps): Free ss->defs.  Destroy ss->definedhash.

From-SVN: r196394
2013-03-01 22:06:04 +01:00
Jakub Jelinek
689eaba322 re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
	vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
	before overwriting it.

From-SVN: r196393
2013-03-01 21:58:59 +01:00
Ian Lance Taylor
73e0b984b3 runtime, testing/quick: libffi doesn't handle complex on Alpha.
From Uros Bizjak.

From-SVN: r196389
2013-03-01 19:26:43 +00:00
Tobias Burnus
40bf31ed08 extended.texi (C Extensions): Change order in @menu to match @node.
gcc/
2013-03-01  Tobias Burnus  <burnus@net-b.de>

        * doc/extended.texi (C Extensions): Change order in @menu
        to match @node.
        (Other MIPS Built-in Functions): Move last MIPS entry before
        "picoChip Built-in Functions".
        (SH Built-in Functions): Move after RX Built-in Functions.
        * doc/gcc.texi (Introduction): Change order in @menu
        to match @node.
        * doc/md.texi (Constraints): Ditto.
        * gty.texi (Type Information): Ditto.
        (User-provided marking routines for template types): Make
        subsection.
        * doc/invoke.texi (AArch64 Options): Move before
        "Adapteva Epiphany Options".

libiberty/
2013-03-01  Andreas Schwab  <schwab@linux-m68k.org>

        * obstacks.texi (Obstacks): Trim @node to only contain the
        node name.
        * libiberty.texi (Obstacks): Lower section.

From-SVN: r196388
2013-03-01 20:01:57 +01:00
Tobias Burnus
2b62c97f03 iresolve.c (resolve_bound): Use gfc_get_string instead of xstrdup.
2013-03-01  Tobias Burnus  <burnus@net-b.de>

        * iresolve.c (resolve_bound): Use gfc_get_string instead of xstrdup.
        * symbol.c (free_components): Free proc-pointer components.

From-SVN: r196387
2013-03-01 17:39:43 +01:00
Steve Ellcey
fa585637b0 pr56396.c: Require pic support.
2013-03-01  Steve Ellcey  <sellcey@mips.com>

	* gcc.dg/pr56396.c: Require pic support.

From-SVN: r196386
2013-03-01 16:06:27 +00:00
James Greenhalgh
b7c3f1ca31 [AArch64/AArch64-4.7][libgcc] Silence warnings in sync-cache.c
libgcc/
	* config/aarch64/sync-cache.c
	(__aarch64_sync_cache_range): Silence warnings.

From-SVN: r196380
2013-03-01 14:01:58 +00:00
Richard Biener
d3e1a77949 re PR middle-end/55481 (-O2 generates a wrong-code infinite loop in C++Benchmark's simple_types_constant_folding int8 xor test)
2013-03-01  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/55481
	* gcc.dg/torture/pr56488.c: New testcase.

From-SVN: r196377
2013-03-01 12:29:39 +00:00
Tobias Burnus
76c1a7ec3d trans-decl.c (gfc_trans_deferred_vars): Free expr after use.
2013-03-01  Tobias Burnus  <burnus@net-b.de>

        * trans-decl.c (gfc_trans_deferred_vars): Free expr after use.
        * trans-io.c (build_dt): Ditto.

From-SVN: r196372
2013-03-01 11:24:11 +01:00
Kai Tietz
cf2f3b1b67 re PR libstdc++/56475 (Incorrect result of configure test for /dev/random (_GLIBCXX_USE_RANDOM_TR1) for MinGW platform (and others?))
PR libstdc++/56475
	* acinclude.m4 (GLIBCXX_CHECK_RANDOM_TR1): Disable check for
	mingw-targets.
	* configure: Regenerated.

From-SVN: r196371
2013-03-01 11:23:21 +01:00
Rainer Orth
63d4f19e06 Update Solaris baselines
* config/abi/post/solaris2.9/baseline_symbols.txt: Regenerate.
	* config/abi/post/solaris2.9/sparcv9/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
	* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.

From-SVN: r196370
2013-03-01 09:32:47 +00:00
Paolo Carlini
48a30e2846 decl.c (grokdeclarator): Remove dead code.
2013-03-01  Paolo Carlini  <paolo.carlini@oracle.com>

	* decl.c (grokdeclarator): Remove dead code.

From-SVN: r196369
2013-03-01 09:26:17 +00:00
GCC Administrator
fa93421987 Daily bump.
From-SVN: r196365
2013-03-01 00:19:52 +00:00
Ian Lance Taylor
0a2f103a45 runtime: Don't block SIGTRAP while creating a new thread.
Thanks to Uros Bizjak.

From-SVN: r196362
2013-02-28 21:56:14 +00:00
Konstantin Serebryany
e664c61c84 re PR sanitizer/56454 (need to rename attribute no_address_safety_analysis to no_sanitize_address)
PR sanitizer/56454
	* asan.c (gate_asan): Lookup no_sanitize_address instead of
	no_address_safety_analysis attribute.
	* doc/extend.texi (no_address_safety_attribute): Rename to
	no_sanitize_address attribute, mention no_address_safety_analysis
	attribute as deprecated alias.

	* c-common.c (handle_no_sanitize_address_attribute): New function.
	(c_common_attribute_table): Add no_sanitize_address attribute.
	(handle_no_address_safety_analysis_attribute): Add
	no_sanitize_address attribute, not no_address_safety_analysis
	attribute.

	* g++.dg/asan/default-options-1.C (__asan_default_options): Use
	no_sanitize_address attribute rather than no_address_safety_analysis.
	* g++.dg/asan/sanitizer_test_utils.h
	(ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS): Likewise.
	* c-c++-common/asan/attrib-1.c: Test no_sanitize_address attribute
	in addition to no_address_safety_analysis.

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

From-SVN: r196361
2013-02-28 22:23:23 +01:00
Jakub Jelinek
37b5ec8fcd re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461
	* tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
	type to vec<vec<tree> > *.
	* tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
	to be vec<tree> instead of vec<tree> *, set vec_defs
	to vNULL and call vec_defs.create (number_of_vects), adjust other
	uses of vec_defs.
	* tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
	vectorizable_condition): Adjust vect_get_slp_defs callers.

From-SVN: r196360
2013-02-28 22:20:26 +01:00
Jason Merrill
4b3bb3f347 re PR c++/56481 (endless loop compiling a C++ file)
PR c++/56481
	* g++.dg/cpp0x/constexpr-and.C: New.

From-SVN: r196359
2013-02-28 15:36:47 -05:00
Jason Merrill
728761beb0 re PR c++/56481 (endless loop compiling a C++ file)
PR c++/56481
	* semantics.c (potential_constant_expression_1): Use
	cxx_eval_outermost_constant_expr rather than maybe_constant_value.

From-SVN: r196358
2013-02-28 15:21:23 -05:00
Jakub Jelinek
15fd8332c0 files.c (_cpp_find_file): If returning early...
* files.c (_cpp_find_file): If returning early, before storing
	something to *hash_slot and *hash_slot is NULL, call htab_clear_slot
	on it.  Access *hash_slot using void * type rather than
	struct file_hash_entry * to avoid aliasing issues.

From-SVN: r196356
2013-02-28 20:57:56 +01:00
Jakub Jelinek
4c37612689 asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
* asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
	* asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
	0x4fffffffffULL.

From-SVN: r196355
2013-02-28 20:55:40 +01:00
James Greenhalgh
ba96cdfb5f [AArch64/AArch64-4.7] Fix warning - Unused variable in aarch64_float_const_representable.
gcc/
	* config/aarch64/aarch64.c
	(aarch64_float_const_representable): Remove unused variable.

From-SVN: r196352
2013-02-28 17:35:40 +00:00
James Greenhalgh
6f5496913f [AArch64/AArch64-4.7] Fix warning - aarch64_mangle_type has no prototype.
gcc/
	* config/aarch64/aarch64.c (aarch64_mangle_type): Make static.

From-SVN: r196349
2013-02-28 17:28:14 +00:00
James Greenhalgh
af55e82d62 gcc/
* config/aarch64/aarch64-builtins.c
    	(aarch64_init_simd_builtins): Make static.

From-SVN: r196347
2013-02-28 17:19:33 +00:00
James Greenhalgh
1df3f46455 [AArch64/AArch64-4.7] Fix warning - aarch64_simd_make_constant has no prototype.
gcc/
	* config/aarch64/aarch64.c
	(aarch64_simd_make_constant): Make static.

From-SVN: r196345
2013-02-28 17:10:53 +00:00
Jason Merrill
c966f2deb7 re PR c++/56243 (ICE in tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6645)
PR c++/56243
	* call.c (build_over_call): Avoid virtual lookup in a template.

From-SVN: r196343
2013-02-28 11:01:09 -05:00
Martin Jambor
f8f42513b0 tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements with no initialization to the RHS of debug statements.
2013-02-28  Martin Jambor  <mjambor@suse.cz>

	* tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
	with no initialization to the RHS of debug statements.

From-SVN: r196341
2013-02-28 13:46:29 +01:00
Martin Jambor
b48b3fc483 re PR tree-optimization/56294 (BOOT_CFLAGS='-O2 -g -fno-ipa-sra' leads to bootstrap comparison failure)
2013-02-28  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/56294
	* tree-sra.c (analyze_access_subtree): Create replacement declarations.
	Adjust dumping.
	(get_access_replacement): Do not call create_access_replacement.
	Assert a replacement exists.
	(get_repl_default_def_ssa_name): Create the replacement declaration
	itself.

testsuite/
	* g++.dg/debug/pr56294.C: New test.

From-SVN: r196340
2013-02-28 13:43:33 +01:00