Commit Graph

116131 Commits

Author SHA1 Message Date
Eric Botcazou
ac868f29d7 re PR target/52624 (missing __builtin_bswap16)
PR target/52624
	* doc/extend.texi (Other Builtins): Document __builtin_bswap16.
	(PowerPC AltiVec/VSX Built-in Functions): Remove it.
	* doc/md.texi (Standard Names): Add bswap.
	* builtin-types.def (BT_UINT16): New primitive type.
	(BT_FN_UINT16_UINT16): New function type.
	* builtins.def (BUILT_IN_BSWAP16): New.
	* builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
	(expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
	expand_builtin_bswap.
	(fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
	(fold_builtin_1): Likewise.
	(is_inexpensive_builtin): Likewise.
	* optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
	missing bits for bswap to libcall code.
	* tree.c (build_common_tree_nodes): Build uint16_type_node.
	* tree.h (enum tree_index): Add TI_UINT16_TYPE.
	(uint16_type_node): New define.
	* config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
	* config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
	above builtin.
	(rs6000_init_builtins): Likewise.
	* config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
c-family/
	* c-common.h (uint16_type_node): Rename into...
	(c_uint16_type_node): ...this.
	* c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
	* c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.

From-SVN: r186308
2012-04-11 11:13:39 +00:00
Andrew Haley
cca4dd5983 jcf.h (bootstrap_method): New.
2012-04-11  Andrew Haley  <aph@redhat.com>

	* jcf.h (bootstrap_method): New.
	(BootstrapMethods): New.
	(JCF): Add BootstrapMethods.
	(enum cpool_tag): Add MethodHandle, MethodType, and InvokeDynamic.
	* jcf-reader.c (jcf_parse_bootstrap_methods): New.
	(jcf_parse_constant_pool): Handlers for MethodHandle, MethodType,
	and InvokeDynamic.
	(jcf_parse_bootstrap_methods): New.
	* javaop.def (invokedynamic): New opcode.
	* jcf-parse.c (get_constant): An unknown constant type should not
	be an internal error, but a fatal one.  Make it so.
	* jcf-dump.c (HANDLE_BOOTSTRAP_METHODS_ATTRIBUTE): New.
	(HANDLE_END_BOOTSTRAP_METHODS): New.
	(print_constant): Handlers for MethodHandle, MethodType, and
	InvokeDynamic.

From-SVN: r186307
2012-04-11 10:47:43 +00:00
Tristan Gingold
ada371011e extend.texi (Type Attributes): Move paragraph.
2012-04-11  Tristan Gingold  <gingold@adacore.com>

	* doc/extend.texi (Type Attributes): Move paragraph.

From-SVN: r186306
2012-04-11 10:32:48 +00:00
Manuel López-Ibáñez
9fec00429d re PR c++/24985 (caret diagnostics)
2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	PR 24985
gcc/
        * diagnostic.h (show_caret): Declare.
	(caret_max_width): Declare.
	(diagnostic_show_locus): Declare.
        * diagnostic.c (diagnostic_initialize): Initialize to false.
        (diagnostic_show_locus): New.
        (diagnostic_report_diagnostic): Call it.
	(getenv_columns): New.
	(adjust_line): New.
	(diagnostic_set_caret_max_width): New.
        * input.c (read_line): New.
	(location_get_source_line): New.
        * input.h (location_get_source_line): Declare.
        * toplev.c (general_init): Initialize show_caret from options.
        * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
        * opts.c (common_handle_option): Likewise.
	* pretty-print.h (pp_get_prefix): New.
	(pp_base_get_prefix): New.
        * common.opt (fdiagnostics-show-caret): New option.
	* doc/invoke.texi (fdiagnostics-show-caret): Document it.
testsuite/
        * lib/prune.exp: Add -fno-diagnostics-show-caret.
libstdc++-v3/
	* testsuite/lib/prune.exp: Handle caret.
libmudflap/
	* testsuite/lib/libmudflap.exp: Handle caret.

From-SVN: r186305
2012-04-11 09:26:48 +00:00
Richard Guenther
13a7578b18 re PR middle-end/52881 (ICE due to null pointer deref in cfgloop.c)
2012-04-11  Richard Guenther  <rguenther@suse.de>

	PR rtl-optimization/52881
	* ifcvt.c (find_if_case_2): Avoid speculating loop latches.

	* gcc.dg/torture/pr52881.c: New testcase.
	* gcc.dg/torture/pr52913.c: Likewise.

From-SVN: r186304
2012-04-11 08:13:37 +00:00
Richard Guenther
12df9a2f92 re PR tree-optimization/52912 (ICE: verify_ssa failed)
2012-04-11  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52912
	* tree-ssa-threadupdate.c (thread_block): Tell the cfg
	manipulation code we are threading through a loop header
	to an exit destination.

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

From-SVN: r186303
2012-04-11 08:12:33 +00:00
GCC Administrator
f06fe36d99 Daily bump.
From-SVN: r186301
2012-04-11 00:18:47 +00:00
Manuel López-Ibáñez
fd4116f49c c-common.c (warn_if_unused_value): Move definition to here.
2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* c-family/c-common.c (warn_if_unused_value): Move definition to here.
	* tree.h (warn_if_unused_value): Move declaration from here.
	* c-family/c-common.h (warn_if_unused_value): Move declaration to here.
	* cp/cvt.c (convert_to_void): Update comment.
	* stmt.c (warn_if_unused_value): Move definition from here.

From-SVN: r186287
2012-04-10 16:33:47 +00:00
Michael Matz
408baa0b16 Forgot to commit in r186285.
From-SVN: r186286
2012-04-10 16:09:51 +00:00
Michael Matz
0d0293ace6 tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to grouped_stores.
* tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
	grouped_stores.
	(LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
	(struce _bb_vec_info.strided_stores): Rename to grouped_stores.
	(BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
	(STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
	(vect_strided_store_supported): Rename to vect_grouped_store_supported.
	(vect_strided_load_supported): Rename to vect_grouped_load_supported.
	(vect_transform_strided_load): Rename to vect_transform_grouped_load.
	(vect_record_strided_load_vectors): Rename to
	vect_record_grouped_load_vectors.
	* tree-vect-data-refs.c (vect_update_misalignment_for_peel):
	Rename use of above macros.
	(vect_verify_datarefs_alignment): Ditto.
	(vector_alignment_reachable_p): Ditto.
	(vect_peeling_hash_get_lowest_cost): Ditto.
	(vect_enhance_data_refs_alignment): Ditto.
	(vect_analyze_group_access): Ditto and rename stride to groupsize.
	(vect_analyze_data_ref_access): Rename "strided" to "grouped".
	(vect_strided_store_supported): Rename to vect_grouped_store_supported.
	(vect_strided_load_supported): Rename to vect_grouped_load_supported.
	(vect_transform_strided_load): Rename to vect_transform_grouped_load.
	(vect_record_strided_load_vectors): Rename to
	vect_record_grouped_load_vectors.
	* tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
	(destroy_loop_vec_info): Ditto.
	(vect_transform_loop): Ditto and rename strided_store to grouped_store.
	* tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
	(vect_analyze_slp): Ditto.
	(new_bb_vec_info): Ditto.
	(destroy_bb_vec_info): Ditto.
	(vect_schedule_slp_instance): Ditto and rename strided_store to
	grouped_store.
	* tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
	vect_cost_group_size.
	(vect_model_store_cost): Rename use of above macros and call
	to vect_cost_strided_group_size.
	(vect_model_load_cost): Ditto.
	(vectorizable_store): Ditto, rename strided_store to grouped_store
	and calls to renamed tree-vectorizer.h functions.
	(vectorizable_load): Ditto.
	(vect_transform_stmt): Rename use of above macros and strided_store
	to grouped_store.

testsuite/
	* gcc.dg/vect/vect-outer-1-big-array.c: Adjust.
	* gcc.dg/vect/vect-outer-1.c: Adjust.
	* gcc.dg/vect/vect-outer-1a-big-array.c: Adjust.
	* gcc.dg/vect/vect-outer-1a.c: Adjust.
	* gcc.dg/vect/vect-outer-1b-big-array.c: Adjust.
	* gcc.dg/vect/vect-outer-1b.c: Adjust.
	* gcc.dg/vect/vect-outer-2b.c: Adjust.
	* gcc.dg/vect/vect-outer-3b.c: Adjust.

From-SVN: r186285
2012-04-10 16:09:03 +00:00
Jan Hubicka
1f00098bf3 cgraph.h: Remove misledaing comment on ipa-ref.h.
* cgraph.h: Remove misledaing comment on ipa-ref.h.
	(symtab_type): New enum.
	(symtab_node): New structure.
	(cgraph_node, varpool_node): Add symbol base type.
	(cgraph, varpool): New accestor functions.
	* cgraph.c (cgraph_create_node_1): Set symbol type.
	* varpool.c (varpool_node): Set symbol type.

From-SVN: r186284
2012-04-10 16:03:36 +00:00
Michael Matz
b43645b852 cshift0.m4 (cshift0_'rtype_code`): Guard use of modulo.
* m4/cshift0.m4 (cshift0_'rtype_code`): Guard use of modulo.

	* generated/cshift0_c10.c: Regenerated.
	* generated/cshift0_c16.c: Regenerated.
	* generated/cshift0_c4.c: Regenerated.
	* generated/cshift0_c8.c: Regenerated.
	* generated/cshift0_i16.c: Regenerated.
	* generated/cshift0_i1.c: Regenerated.
	* generated/cshift0_i2.c: Regenerated.
	* generated/cshift0_i4.c: Regenerated.
	* generated/cshift0_i8.c: Regenerated.
	* generated/cshift0_r10.c: Regenerated.
	* generated/cshift0_r16.c: Regenerated.
	* generated/cshift0_r4.c: Regenerated.
	* generated/cshift0_r8.c: Regenerated.

From-SVN: r186283
2012-04-10 15:39:22 +00:00
Ulrich Weigand
ca18edc55f fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
* fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.

Co-Authored-By: Richard Sandiford <rdsandiford@googlemail.com>

From-SVN: r186278
2012-04-10 13:50:43 +00:00
Richard Guenther
e30459d52b re PR middle-end/52888 (Unable to inline function pointer call with inexact signature match)
2012-04-10  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52888
	* gimple-low.c (gimple_check_call_args): Properly account for
	compatible aggregate types.

From-SVN: r186276
2012-04-10 13:20:50 +00:00
Richard Guenther
0878843fd5 toplev.h (tree_rest_of_compilation): Remove.
2012-04-10  Richard Guenther  <rguenther@suse.de>

	* toplev.h (tree_rest_of_compilation): Remove.
	* tree-optimize.c (tree_rest_of_compilation): Likewise.
	* cgraph.h (tree_rest_of_compilation): Declare.
	* tree-optimize.c (tree_rest_of_compilation): Move ...
	* cgraphunit.c (tree_rest_of_compilation): ... here.
	* cgraph.c (cgraph_add_new_function): Adjust.
	* Makefile.in (tree-optimize.o): Adjust.
	(cgraphunit.o): Likewise.

From-SVN: r186274
2012-04-10 11:56:05 +00:00
Ulrich Weigand
c0d942d211 re PR tree-optimization/52870 (ICE during SLP pattern matching)
gcc/
	PR tree-optimization/52870
	* tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
	presumed pattern statement is within the same loop or basic block.

	gcc/testsuite/
	PR tree-optimization/52870
	* gcc.dg/vect/pr52870.c: New test.

From-SVN: r186272
2012-04-10 10:56:11 +00:00
Tristan Gingold
5973ae1ac2 gengtype.c (main): Make uintptr_t a known type.
gcc/
2012-04-10  Tristan Gingold  <gingold@adacore.com>

	* gengtype.c (main): Make uintptr_t a known type.

include/
2012-04-10  Tristan Gingold  <gingold@adacore.com>

	* splay-tree.h: Conditionnaly includes stdint.h and inttypes.h
	(libi_uhostptr_t, libi_shostptr_t): Remove, replaced by uintptr_t.

From-SVN: r186269
2012-04-10 08:32:23 +00:00
Richard Guenther
26eb69c619 tree-pass.h (tree_lowering_passes): Remove.
2012-04-10  Richard Guenther  <rguenther@suse.de>

	* tree-pass.h (tree_lowering_passes): Remove.
	* tree-optimize.c (tree_lowering_passes): Remove.
	* cgraph.c (cgraph_add_new_function): Inline relevant parts
	of tree_lowering_passes, avoid redundant call of early local
	passes.
	* cgraphunit.c (cgraph_lower_function): Fold into ...
	(cgraph_analyze_function): ... its single caller.  Inline
	relevant parts of tree_lowering_passes.

From-SVN: r186268
2012-04-10 08:19:21 +00:00
Mike Stump
bcc2b4cdc2 Don't use CRLF endings.
* gcc.dg/tree-ssa/vrp59.c: Likewise.
	* gcc.dg/tree-ssa/vrp60.c: Likewise.
	* gnat.dg/aggr11.adb: Likewise.
	* gnat.dg/aggr11_pkg.ads: Likewise.
	* gnat.dg/aggr15.adb: Likewise.
	* gnat.dg/aggr15.ads: Likewise.
	* gnat.dg/aggr17.adb: Likewise.
	* gnat.dg/aggr18.adb: Likewise.
	* gnat.dg/array14.adb: Likewise.
	* gnat.dg/array14.ads: Likewise.
	* gnat.dg/array14_pkg.ads: Likewise.
	* gnat.dg/array19.adb: Likewise.
	* gnat.dg/array19.ads: Likewise.
	* gnat.dg/discr27.adb: Likewise.
	* gnat.dg/discr27.ads: Likewise.
	* gnat.dg/discr35.adb: Likewise.
	* gnat.dg/discr35.ads: Likewise.
	* gnat.dg/discr6.adb: Likewise.
	* gnat.dg/discr6_pkg.ads: Likewise.
	* gnat.dg/import1.adb: Likewise.
	* gnat.dg/import1.ads: Likewise.
	* gnat.dg/loop_address2.adb: Likewise.
	* gnat.dg/opt7.adb: Likewise.
	* gnat.dg/opt7.ads: Likewise.
	* gnat.dg/pointer_variable_bounds.adb: Likewise.
	* gnat.dg/pointer_variable_bounds.ads: Likewise.
	* gnat.dg/rep_clause2.adb: Likewise.
	* gnat.dg/rep_clause2.ads: Likewise.
	* gnat.dg/slice2.adb: Likewise.
	* gnat.dg/slice2.ads: Likewise.
	* gnat.dg/slice6.adb: Likewise.
	* gnat.dg/slice6_pkg.ads: Likewise.
	* gnat.dg/specs/unchecked_union2.ads: Likewise.
	* gnat.dg/taft_type2.adb: Likewise.
	* gnat.dg/taft_type2.ads: Likewise.
	* gnat.dg/taft_type2_pkg.ads: Likewise.
	* gnat.dg/volatile10.adb: Likewise.
	* gnat.dg/volatile10_pkg.ads: Likewise.

From-SVN: r186265
2012-04-10 08:01:19 +00:00
Mike Stump
b832b14db0 a-assert.ads: Remove execute permission.
* a-assert.ads: Remove execute permission.
	* a-chacon.ads: Likewise.
	* a-coteio.ads: Likewise.
	* a-envvar.ads: Likewise.
	* a-exetim-mingw.ads: Likewise.
	* a-fzteio.ads: Likewise.
	* a-izteio.ads: Likewise.
	* a-lcteio.ads: Likewise.
	* a-llctio.ads: Likewise.
	* a-scteio.ads: Likewise.
	* a-suenco.ads: Likewise.
	* a-suenst.ads: Likewise.
	* a-suewst.ads: Likewise.
	* a-suezst.ads: Likewise.
	* a-tirsfi.ads: Likewise.
	* a-wichha.ads: Likewise.
	* a-zchara.ads: Likewise.
	* a-zchhan.ads: Likewise.
	* a-zchuni.ads: Likewise.
	* a-zrstfi.ads: Likewise.
	* aspects.ads: Likewise.
	* g-byorma.ads: Likewise.
	* g-decstr.ads: Likewise.
	* g-encstr.ads: Likewise.
	* g-spchge.ads: Likewise.
	* g-u3spch.ads: Likewise.
	* g-wispch.ads: Likewise.
	* g-zspche.ads: Likewise.
	* namet-sp.ads: Likewise.
	* s-os_lib.ads: Likewise.
	* s-regexp.ads: Likewise.
	* s-regpat.ads: Likewise.
	* s-string.ads: Likewise.
	* s-tasloc.ads: Likewise.
	* s-utf_32.ads: Likewise.
	* sem_aux.ads: Likewise.
	* a-assert.adb: Likewise.
	* a-chacon.adb: Likewise.
	* a-envvar.adb: Likewise.
	* a-exetim-mingw.adb: Likewise.
	* a-suenco.adb: Likewise.
	* a-suenst.adb: Likewise.
	* a-suewst.adb: Likewise.
	* a-suezst.adb: Likewise.
	* a-tirsfi.adb: Likewise.
	* a-wichha.adb: Likewise.
	* a-zchhan.adb: Likewise.
	* a-zchuni.adb: Likewise.
	* a-zrstfi.adb: Likewise.
	* aspects.adb: Likewise.
	* g-byorma.adb: Likewise.
	* g-decstr.adb: Likewise.
	* g-encstr.adb: Likewise.
	* g-spchge.adb: Likewise.
	* g-u3spch.adb: Likewise.
	* g-wispch.adb: Likewise.
	* g-zspche.adb: Likewise.
	* namet-sp.adb: Likewise.
	* s-except.adb: Likewise.
	* s-inmaop-vxworks.adb: Likewise.
	* s-os_lib.adb: Likewise.
	* s-regexp.adb: Likewise.
	* s-regpat.adb: Likewise.
	* s-string.adb: Likewise.
	* s-tasloc.adb: Likewise.
	* s-utf_32.adb: Likewise.
	* s-wchcon.adb: Likewise.
	* sem_aux.adb: Likewise.

From-SVN: r186261
2012-04-10 05:44:30 +00:00
Mike Stump
a89ed183fc * gcc.dg/tree-ssa/vrp60.c: Likewise.
From-SVN: r186260
2012-04-10 05:21:44 +00:00
Mike Stump
ceaba33ea7 udlit-raw-op.C: Don't use CRLF endings.
* g++.dg/cpp0x/udlit-raw-op.C: Don't use CRLF endings.
	* gcc.dg/tree-ssa/vrp59.c: Likewise.

From-SVN: r186259
2012-04-10 05:20:15 +00:00
Mike Stump
d07798960c dll-8.c: Remove execute permissions.
* gcc.dg/dll-8.c: Remove execute permissions.
	* g++.dg/ext/dllexport5.C: Likewise.

From-SVN: r186258
2012-04-10 03:15:22 +00:00
H.J. Lu
3271a0c038 Remove SIO and GNU_LD from config/pa/pa.opt
2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR other/52777
	* config/pa/pa.opt: Remove SIO and GNU_LD.

From-SVN: r186257
2012-04-09 17:56:27 -07:00
GCC Administrator
3e14cb10ff Daily bump.
From-SVN: r186256
2012-04-10 00:18:29 +00:00
Jan Hubicka
3c56b037d3 re PR lto/52722 (ICE in lto_output_varpool_node)
PR lto/52722
	PR lto/51765
	PR lto/52634	
	* lto-cgraph.c (compute_ltrans_boundary): When alias is in the boundary,
	add its target too.
	* lto.c (add_references_to_partition): Add also aliased nodes.
	(add_cgraph_node_to_partition,
	add_varpool_node_to_partition): Work on nodes, not functions/variables;
	when adding alias, add also the aliased object.

	* gcc.dg/lto/pr52634_1.c: New testcase.
	* gcc.dg/lto/pr52634_0.c: New testcase.

From-SVN: r186252
2012-04-09 23:39:11 +00:00
Uros Bizjak
3cb2b15b6c re PR target/52883 (ICE in simplify_const_unary_operation, at simplify-rtx.c:1464)
PR target/52883
	* config/i386/predicates.md (x86_64_zext_general_operand): Prevent
	VOIDmode immediate operands.
	* config/i386/constraints.md (Wz): New constraint.
	* config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.

testsuite/ChangeLog:

	PR target/52883
	* gcc.target/i386/pr52883.c: New testcase.

From-SVN: r186243
2012-04-09 11:57:13 +02:00
Eric Botcazou
99a1b0844a target-supports.exp (check_effective_target_sparc_v9): New.
* lib/target-supports.exp (check_effective_target_sparc_v9): New.
	(check_effective_target_sync_long_long): Add SPARC case.
	(check_effective_target_sync_long_long_runtime): Likewise.
	(check_effective_target_sync_int_long): Adjust SPARC case.
	(check_effective_target_sync_char_short): Likewise.

From-SVN: r186241
2012-04-09 09:24:06 +00:00
Eric Botcazou
5ff5b41ca3 re PR target/52717 (thunk referenced in discarded section when building samba with -flto)
PR target/52717
	* config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
	the DECL generated for the special GOT helper.

From-SVN: r186237
2012-04-09 08:53:27 +00:00
Oleg Endo
7df2d73c7e constraints.md: Update list of constraints in comment block.
* config/sh/constraints.md: Update list of constraints in
	comment block.
	(Sr0): Remove unused memory constraint.

From-SVN: r186234
2012-04-09 00:50:33 +00:00
GCC Administrator
5418de56f7 Daily bump.
From-SVN: r186233
2012-04-09 00:18:34 +00:00
Manuel López-Ibáñez
8772bd5411 tree-pretty-print.h: Update comment.
2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* tree-pretty-print.h: Update comment.

From-SVN: r186229
2012-04-08 23:38:05 +00:00
Oleg Endo
4f3dfa27f4 Adapt ChangeLog for previous commit of two patches at once.
From-SVN: r186226
2012-04-08 09:46:09 +00:00
Oleg Endo
6b45f126b1 sh.md (*prefetch_i4, [...]): Merge into ...
* config/sh/sh.md (*prefetch_i4, prefetch_m2a): Merge into ...
	(*prefetch): ... this new insn.

	* gcc.target/sh/sh2a-prefetch.c: Rename to ...
	* gcc.target/sh/prefetch.c: ... this.  Enable test case for m4*.

From-SVN: r186225
2012-04-08 09:35:13 +00:00
Tobias Burnus
5af6fa0b38 re PR fortran/52751 (private module variable are not exported as local)
2012-04-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52751
        * trans-decl.c (gfc_finish_var_decl): Don't set TREE_PUBLIC
        for PRIVATE module variables without C-binding label.

        PR fortran/40973
        * trans-decl.c (build_function_decl): Ditto for procedures.

2012-04-08  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40973
        PR fortran/52751
        * gfortran.dg/public_private_module_2.f90: New.

From-SVN: r186223
2012-04-08 09:15:01 +02:00
GCC Administrator
aeb9270a98 Daily bump.
From-SVN: r186222
2012-04-08 00:18:15 +00:00
Joseph Myers
74d78bedc1 * es.po: Update.
From-SVN: r186217
2012-04-08 00:02:40 +01:00
Manuel López-Ibáñez
0058db4366 Wstrict-aliasing-float-ref-int-obj.C: Add labels to directives.
2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>

	* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Add labels to
	directives.

From-SVN: r186216
2012-04-07 22:09:42 +00:00
Thomas Koenig
8144d290d8 re PR fortran/52893 (Moving functions out of implied DO loops)
2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52893
	* frontend-passes.c:  Keep track of wether we are in an implicit
	DO loop; do not do function elimination if we are.

2012-04-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52893
	* gfortran.dg/function_optimize_11.f90:  New test.

From-SVN: r186213
2012-04-07 16:38:11 +00:00
Oleg Endo
fae61228ca sh.h (high_life_started): Remove
* config/sh/sh.h (high_life_started): Remove
	* config/sh/predicates.md (general_movdst_operand): Use
	'reload_in_progress' instead of 'high_life_started'.
	* config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
	divsi_inv_fp): Likewise.

From-SVN: r186212
2012-04-07 12:03:13 +00:00
Oleg Endo
2ef6611e8c sh-protos.h (prepare_move_operands): Return void instead of int.
* config/sh/sh-protos.h (prepare_move_operands): Return void
	instead of int.
	* config/sh/sh.c (prepare_move_operands): Likewise.
	* config/sh/sh.md: Remove return value checks of prepare_move_operands.

From-SVN: r186211
2012-04-07 12:01:01 +00:00
Oleg Endo
df4f5d5f72 sh-protos.h (fp_int_operand, [...]): Remove.
* config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
	general_movsrc_operand, general_movdst_operand, arith_reg_operand,
	fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
	logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
	commutative_float_operator, noncommutative_float_operator,
	sh_handle_pragma): Remove.

From-SVN: r186210
2012-04-07 11:58:42 +00:00
Sandra Loosemore
f2dcf9b8ed invoke.texi: Clean up Texinfo markup throughout the file.
2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* doc/invoke.texi:  Clean up Texinfo markup throughout the file.
	Use @option markup on command-line options.  Use @samp markup on
	literal keywords to options.  Use @code markup on code fragments.
	Use other markup in preference to quotation marks in the text.
	Add markup to some passages without any.

From-SVN: r186209
2012-04-06 23:47:05 -04:00
GCC Administrator
7d3ffb4d64 Daily bump.
From-SVN: r186208
2012-04-07 00:18:42 +00:00
Mike Stump
d25c4172fb * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
From-SVN: r186202
2012-04-06 23:00:11 +00:00
Doug Evans
a0806f33ad * dg-extract-results.sh: Handle KFAILs.
From-SVN: r186200
2012-04-06 19:39:52 +00:00
Thomas Koenig
631cfe3083 re PR fortran/52668 (Incorrect unused warning for USE associating variable in common block)
2012-04-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52668
	* module.c:  Only mark symbols as use_only if they have been
	imported via an only list.

2012-04-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/52668
	* gfortran.dg/use_only_6.f90: New test.

From-SVN: r186199
2012-04-06 18:31:11 +00:00
Mike Stump
5f250b068e re PR testsuite/50722 (FAIL: gcc.dg/pr49994-3.c (test for excess errors))
PR testsuite/50722
	* gcc.dg/pr49994-3.c: Use -w to squelch non-portable warnings.

From-SVN: r186194
2012-04-06 15:02:21 +00:00
Jason Merrill
c5c8755af0 re PR c++/52596 ([C++11] internal compiler error: in lvalue_kind, at cp/tree.c:153)
PR c++/52596
	* semantics.c (finish_non_static_data_member): In templates, pass
	the decl to build_qualified_name.
	* tree.c (lvalue_kind) [SCOPE_REF]: Handle FIELD_DECL.

From-SVN: r186187
2012-04-06 09:25:45 -04:00
Jason Merrill
b258592a08 xvalue comment
From-SVN: r186186
2012-04-06 09:25:37 -04:00