Commit Graph

89461 Commits

Author SHA1 Message Date
Joseph Myers
bdeb247159 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
From-SVN: r169866
2011-02-06 18:22:13 +00:00
Janne Blomqvist
85883d65c0 Add thread-safety section to menu
From-SVN: r169865
2011-02-06 18:38:31 +02:00
Janne Blomqvist
6985b4a110 Document libgfortran thread-safety
From-SVN: r169864
2011-02-06 18:08:03 +02:00
Paul Thomas
90cf3ecc83 re PR fortran/47592 (Multiple function invocation with ALLOCATE (SOURCE=REPEAT('x',bar())))
2011-02-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47592
	* trans-stmt.c (gfc_trans_allocate): For deferred character
	length allocations with SOURCE, store to the values and string
	length to avoid calculating twice.  Replace gfc_start_block
	with gfc_init_block to avoid unnecessary contexts and to keep
	declarations of temporaries where they should be. Tidy up the
	code a bit.

2011-02-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47592
	* gfortran.dg/allocate_with_source_1 : New test.

From-SVN: r169862
2011-02-06 14:22:48 +00:00
Steven Bosscher
d5d3781a0d invoke.texi: Remove reference to compiler internals from user documentation.
* doc/invoke.texi: Remove reference to compiler internals from
	user documentation.

	* reg-notes.def: Remove REG_VALUE_PROFILE.
	* combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.

From-SVN: r169861
2011-02-06 12:35:10 +00:00
GCC Administrator
e37139fdd6 Daily bump.
From-SVN: r169859
2011-02-06 00:17:46 +00:00
Jakub Jelinek
c42c09fc41 re PR middle-end/47610 (cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict)
PR middle-end/47610
	* varasm.c (default_section_type_flags): If decl is NULL,
	and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO
	bit.

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

From-SVN: r169855
2011-02-05 21:35:16 +01:00
Janne Blomqvist
4a9b1f8edc PR 42434 Update SYSTEM_CLOCK documentation
From-SVN: r169854
2011-02-05 22:20:48 +02:00
Jie Zhang
beea27550e re PR rtl-optimization/42631 ("-fcompare-debug failure" with "-O1 -funroll-loops")
PR debug/42631
	* web.c (entry_register): Don't clobber the number of the
	first uninitialized reference in used[].

	testsuite/
	PR debug/42631
	* gcc.dg/pr42631.c: Update test.
	* gcc.dg/pr42631-2.c: New test.

From-SVN: r169851
2011-02-05 12:06:18 +00:00
Thomas Koenig
991fcb7a01 re PR fortran/47574 (internal compiler error: in build2_stat, at tree.c:3795)
2001-02-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/47574
	* gfortran.dg/pr47574.f90:  New test.

From-SVN: r169850
2011-02-05 10:35:24 +00:00
Sebastian Pop
a130584a8a Fix PR46194: fix the computation of distance vectors.
2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46194
	* tree-data-ref.c (analyze_miv_subscript): Remove comment.
	(build_classic_dist_vector_1): Do not represent classic distance
	vectors when the access functions are variating in different loops.

	* gcc.dg/autopar/pr46194.c: New.

From-SVN: r169847
2011-02-05 01:39:20 +00:00
GCC Administrator
a44b6422a3 Daily bump.
From-SVN: r169846
2011-02-05 00:18:46 +00:00
Joseph Myers
962101acd8 iris6.opt: New.
* config/mips/iris6.opt: New.
	* config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.

From-SVN: r169841
2011-02-04 23:14:48 +00:00
Richard Henderson
55eaaa5bfb re PR target/46997 (new ia64 vector instructions are broken on HP-UX (big-endian))
2011-02-04  Richard Henderson  <rth@redhat.com>
	    Steve Ellcey  <sje@cup.hp.com>

	PR target/46997
	* config/ia64/predicates.md (mux1_brcst_element): New.
	* config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
	* config/ia64/ia64.c (ia64_unpack_assemble): New.
	(ia64_unpack_sign): New.
	(ia64_expand_unpack): Rewrite using new routines.
	(ia64_expand_widen_sum): Ditto.
	(ia64_expand_dot_prod_v8qi): Ditto.
	* config/ia64/vect.md (mulv8qi3): Rewrite to use new
	routines, add endian check.
	(pmpy2_even): Rename from pmpy2_r, add endian check.
	(pmpy2_odd): Rename from pmpy2_l, add endian check.
	(vec_widen_smult_lo_v4hi): Rewrite using new routines.
	(vec_widen_smult_hi_v4hi): Ditto.
	(vec_widen_umult_lo_v4hi): Ditto.
	(vec_widen_umult_hi_v4hi): Ditto.
	(mulv2si3): Change endian checks.
	(sdot_prodv4hi): Rewrite with new calls.
	(udot_prodv4hi): New.
	(vec_pack_ssat_v4hi): Add endian check.
	(vec_pack_usat_v4hi): Ditto.
	(vec_pack_ssat_v2si): Ditto.
	(max1_even): Rename from max1_r, add endian check.
	(max1_odd): Rename from max1_l, add endian check.
	(*mux1_rev): Format change.
	(*mux1_mix): Ditto.
	(*mux1_shuf): Ditto.
	(*mux1_alt): Ditto.
	(*mux1_brcst_v8qi): Use new predicate.
	(vec_extract_evenv8qi): Remove endian check.
	(vec_extract_oddv8qi): Ditto.
	(vec_interleave_lowv4hi): Format change.
	(vec_interleave_highv4hi): Ditto.
	(mix2_even): Rename from mix2_r, add endian check.
	(mix2_odd): Rename from mux2_l, add endian check.
	(*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
	(vec_extract_evenodd_helper): Format change.
	(vec_extract_evenv4hi): Remove endian check.
	(vec_extract_oddv4hi): Remove endian check.
	(vec_interleave_lowv2si): Format change.
	(vec_interleave_highv2si): Format change.
	(vec_initv2si): Remove endian check.
	(vecinit_v2si): Add endian check.
	(reduc_splus_v2sf): Add endian check.
	(reduc_smax_v2sf): Ditto.
	(reduc_smin_v2sf): Ditto.
	(vec_initv2sf): Remove endian check.
	(fpack): Add endian check.
	(fswap): Add endian check.
	(vec_interleave_highv2sf): Add endian check.
	(vec_interleave_lowv2sf): Add endian check.
	(fmix_lr): Add endian check.
	(vec_setv2sf): Format change.
	(*vec_extractv2sf_0_be): Use shift to extract operand.
	(*vec_extractv2sf_1_be): New.
	(vec_pack_trunc_v4hi): Add endian check.
	(vec_pack_trunc_v2si): Format change.

Co-Authored-By: Steve Ellcey <sje@cup.hp.com>

From-SVN: r169840
2011-02-04 21:46:45 +00:00
H.J. Lu
4946bd35e9 Add a testcase for PR tree-optimization/43695.
2011-02-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR tree-optimization/43695
	* g++.dg/ipa/pr43695.C: New.

From-SVN: r169835
2011-02-04 09:23:30 -08:00
Jakub Jelinek
dcde5957ce re PR inline-asm/23200 (rejects "i"(&var + 1))
PR inline-asm/23200
	* tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
	do bb, locus and block comparison and disallow loads if it is
	not set.
	(stmt_is_replaceable_p): New function.
	(process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
	callers.
	* expr.c (expand_expr_real_1) <case SSA_NAME>: If
	get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
	SSA_NAME_DEF_STMT.
	* tree-flow.h (stmt_is_replaceable_p): New prototype.

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

From-SVN: r169831
2011-02-04 16:50:51 +01:00
Joseph Myers
a64a8e5a13 xilinx.opt: New.
* config/rs6000/xilinx.opt: New.
	* config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.

From-SVN: r169827
2011-02-04 13:02:18 +00:00
Joseph Myers
4da2ed2ff2 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
From-SVN: r169826
2011-02-04 13:01:12 +00:00
GCC Administrator
6dc5461821 Daily bump.
From-SVN: r169819
2011-02-04 00:18:31 +00:00
Jonathan Wakely
a7a871771c re PR c++/47589 (internal compiler error: Segmentation fault)
2011-02-03  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR c++/47589
	* g++.dg/pr47589.C: New test.

From-SVN: r169815
2011-02-03 22:47:37 +00:00
Anatoly Sokolov
a6e508f91d xtensa.h (PREFERRED_RELOAD_CLASS, [...]): Remove.
* config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
	PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
	* config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
	secondary_reload_info, xtensa_secondary_reload): Remove.
	* config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
	TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
	(xtensa_preferred_reload_class): Make static. Change return and
	'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
	Use CONST_DOUBLE_P predicate.
	(xtensa_preferred_output_reload_class): New function.
	(xtensa_secondary_reload): Make static.

From-SVN: r169810
2011-02-03 23:14:10 +03:00
Joseph Myers
82dc0de3f7 microblaze.opt (Zxl-mode-bootstrap, [...]): New Driver options.
* config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
	Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
	Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.

From-SVN: r169809
2011-02-03 20:03:11 +00:00
Dodji Seketeli
25aea4e968 re PR c++/47398 (tree check: accessed elt 10 of tree_vec with 9 elts in tsubst, at cp/pt.c:10500)
Fix PR c++/47398

gcc/cp/

	PR c++/47398
	* tree.c (cp_tree_equal)<TEMPLATE_PARM_INDEX>: Take the number of
	template parameters in account.

gcc/testsuite/

	PR c++/47398
	* g++.dg/template/typedef37.C: New test.
	* g++.dg/template/param1.C: Adjust expected error message.

From-SVN: r169807
2011-02-03 20:55:00 +01:00
Jakub Jelinek
7fece97913 re PR middle-end/31490 (Compile error section type conflict)
PR middle-end/31490
	* output.h (SECTION_RELRO): Define.
	(SECTION_MACH_DEP): Adjust.
	(get_variable_section): New prototype.
	* varpool.c (varpool_finalize_named_section_flags): New function.
	(varpool_assemble_pending_decls): Call it.
	* cgraph.h (varpool_finalize_named_section_flags): New prototype.
	* cgraphunit.c (cgraph_output_in_order): Call
	varpool_finalize_named_section_flags.
	* varasm.c (get_section): Allow section flags conflicts between
	relro and read-only sections if the section hasn't been declared yet.
	Set SECTION_OVERRIDE after diagnosing section type conflict.
	(get_variable_section): No longer static.
	(default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
	readonly sections that need relocations.
	(decl_readonly_section_1): New function.
	(decl_readonly_section): Use it.

	Revert:
	2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
		    Steve Ellcey  <sje@cup.hp.com>

	PR middle-end/31490
	* varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
	if section attribute used.

	* gcc.dg/pr31490-2.c: New test.
	* gcc.dg/pr31490-3.c: New test.
	* gcc.dg/pr31490-4.c: New test.

From-SVN: r169804
2011-02-03 20:12:07 +01:00
Jakub Jelinek
d18d547862 darwin.h (SECTION_NO_ANCHOR): Remove.
* config/darwin.h (SECTION_NO_ANCHOR): Remove.
	* config/darwin.c (SECTION_NO_ANCHOR): Define.
	(darwin_init_sections): Remove assertion.

From-SVN: r169802
2011-02-03 20:08:42 +01:00
Nathan Froyd
ba9e6dd56c re PR c++/46890 (Failed to compile scummvm's player_v4a.cpp)
gcc/c-family/
	PR c++/46890
	* c-common.h (keyword_is_decl_specifier): Declare.
	* c-common.c (keyword_is_decl_specifier): Define.
	(keyword_is_function_specifier): New function.

gcc/cp/
	PR c++/46890
	* parser.c (cp_parser_class_specifier): Fix setting of
	want_semicolon.

gcc/testsuite/
	PR c++/46890
	* g++.dg/parser/semicolon3.C: Adjust.
	* g++.dg/parser/semicolon4.C: New testcase.
	* g++.dg/pr46890.C: New testcase.


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

From-SVN: r169797
2011-02-03 17:16:17 +00:00
Paolo Carlini
4ba67a0659 re PR c++/29571 (ICE with invalid static const member)
2011-02-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/29571
	* g++.dg/init/pr29571.C: New.

From-SVN: r169796
2011-02-03 17:03:33 +00:00
H.J. Lu
f43010c782 Require vect_double on gfortran.dg/graphite/vect-pr40979.f90.
2011-02-03  H.J. Lu  <hongjiu.lu@intel.com>

	* gfortran.dg/graphite/vect-pr40979.f90: Require vect_double
	instead of vect_int.

From-SVN: r169790
2011-02-03 07:30:33 -08:00
Eric Botcazou
31a5a54750 gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of GNAT_FORMAL.
* gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
	GNAT_FORMAL.
	* gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
	* gcc-interface/utils.c (fill_vms_descriptor): ...here.  Take GNU_TYPE
	instead of GNAT_FORMAL.  Protect the expression against multiple uses.
	Do not generate the check directly, instead instantiate the template
	check present in the descriptor.
	(make_descriptor_field): Move around.
	(build_vms_descriptor32): Build a template check in the POINTER field.
	(build_vms_descriptor): Remove useless suffixes.
	* gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.

From-SVN: r169788
2011-02-03 13:19:38 +00:00
Nick Clifton
6479ed4b07 predicates.md (rx_zs_comparison_operator): Remove lt and ge.
* config/rx/predicates.md (rx_zs_comparison_operator): Remove
	lt and ge.
	* config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than
	CC_ZSOmode.
	* config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
	instead of "n" and "pz".
	(flags_from_code): LT and GE tests need CC_FLAG_O as well as
	CC_FLAG_S.

From-SVN: r169787
2011-02-03 11:38:35 +00:00
Jakub Jelinek
65450d64b7 re PR target/47312 (ICE: in expand_ternary_op, at optabs.c:656 with -flto -mno-sse -mxop and __builtin_fmaf())
PR target/47312
	* expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
	fma, expand FMA_EXPR as fma{,f,l} call.

	* gcc.target/i386/pr47312.c: New test.

From-SVN: r169786
2011-02-03 11:53:19 +01:00
Jakub Jelinek
7d58701c40 re PR lto/47274 (ICE in lto_varpool_replace_node, at lto-symtab.c:306)
PR lto/47274
	* lto-streamer-out.c (write_symbol): When writing kind and visibility,
	copy them into a unsigned char variable and pass address of it to
	lto_output_data_stream.

From-SVN: r169785
2011-02-03 11:49:06 +01:00
Jakub Jelinek
89843f5dfb re PR target/47564 (internal compiler error in memory_address_addr_space, at explow.c:504)
PR target/47564
	* toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
	around backend_init_target and lang_dependent_init_target calls.
	* cgraphunit.c (cgraph_debug_gimple_stmt): New function.
	(verify_cgraph_node): Don't call set_cfun here.  Use
	cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
	Set error_found for incorrectly represented calls to thunks.

	* gcc.target/i386/pr47564.c: New test.

From-SVN: r169784
2011-02-03 09:29:03 +01:00
Alexandre Oliva
4deef538ec re PR debug/43092 (Wrong debuginfo with VTA and -fomit-frame-pointer/-mno-accumulate-outgoing-args)
PR debug/43092
PR rtl-optimization/43494
* rtl.h (for_each_inc_dec_fn): New type.
(for_each_inc_dec): Declare.
* rtlanal.c (struct for_each_inc_dec_ops): New type.
(for_each_inc_dec_find_inc_dec): New fn.
(for_each_inc_dec_find_mem): New fn.
(for_each_inc_dec): New fn.
* dse.c (struct insn_size): Remove.
(replace_inc_dec, replace_inc_dec_mem): Remove.
(emit_inc_dec_insn_before): New fn.
(check_for_inc_dec): Use it, along with for_each_inc_dec.
(canon_address): Pass mem modes to cselib_lookup.
* cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
(cselib_lookup_from_insn): Likewise.
(cselib_subst_to_values): Likewise.
* cselib.c (find_slot_memmode): New var.
(cselib_find_slot): New fn.  Use it instead of
htab_find_slot_with_hash everywhere.
(entry_and_rtx_equal_p): Use find_slot_memmode.
(autoinc_split): New fn.
(rtx_equal_for_cselib_p): Rename and implement in terms of...
(rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
Deal with autoinc.  Special-case recursion into MEMs.
(cselib_hash_rtx): Likewise.
(cselib_lookup_mem): Infer pmode from address mode.  Distinguish
address and MEM modes.
(cselib_subst_to_values): Add memmode, pass it on.
Deal with autoinc.
(cselib_lookup): Add memmode argument, pass it on.
(cselib_lookup_from_insn): Add memmode.
(cselib_invalidate_rtx): Discard obsolete push_operand handling.
(struct cselib_record_autoinc_data): New.
(cselib_record_autoinc_cb): New fn.
(cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
mode to cselib_lookup.  Reset autoinced REGs here instead of...
(cselib_process_insn): ... here.
* var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
to cselib_lookup.
(add_uses): Likewise, also to cselib_subst_to_values.
(add_stores): Likewise.
* sched-deps.c 	(add_insn_mem_dependence): Pass mode to
cselib_subst_to_values.
(sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
* gcse.c (do_local_cprop): Adjusted.
* postreload.c (reload_cse_simplify_set): Adjusted.
(reload_cse_simplify_operands): Adjusted.
* sel-sched-dump (debug_mem_addr_value): Pass mode.

From-SVN: r169782
2011-02-03 06:04:04 +00:00
Alexandre Oliva
1551d44aba re PR tree-optimization/45122 (-funsafe-loop-optimizations causes FAIL: gcc.c-torture/execute/pr27285.c execution)
gcc/ChangeLog:
PR tree-optimization/45122
* tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
unsafe assumptions when there's more than one loop exit.
gcc/testsuite/ChangeLog:
PR tree-optimization/45122
* gcc.dg/tree-ssa/pr45122.c: New.

From-SVN: r169781
2011-02-03 06:01:40 +00:00
Michael Meissner
c94854734b Fix PR target/47272
From-SVN: r169780
2011-02-03 05:42:19 +00:00
Joseph Myers
b24d1acf7f pa-hpux10.opt: New.
* config/pa/pa-hpux10.opt: New.
	* config/hpux11.opt (pthread): New Driver option.
	* config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
	* config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.

From-SVN: r169779
2011-02-03 02:13:31 +00:00
Joseph Myers
aa18dd0f40 vms.opt: New.
* config/ia64/vms.opt: New.
	* config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.

From-SVN: r169778
2011-02-03 02:12:32 +00:00
Michael Meissner
28fc3eee79 Fix PR target/47580
From-SVN: r169776
2011-02-03 00:41:16 +00:00
GCC Administrator
1fb4a78837 Daily bump.
From-SVN: r169775
2011-02-03 00:18:15 +00:00
Joseph Myers
b5838b1f7a * config/i386/djgpp.opt (posix): New Driver option.
From-SVN: r169771
2011-02-02 22:15:37 +00:00
Gerald Pfeifer
0db8fa89b4 config.gcc (*-*-freebsd[12], [...]): Move to the unsupported targets list.
* config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
	Move to the unsupported targets list.

From-SVN: r169770
2011-02-02 22:04:43 +00:00
Peter Bergner
9cd4f22a45 re PR rtl-optimization/47525 (DCE fails to eliminate a dead call to a pure function when compiled with -maltivec)
PR rtl-optimization/47525
	* df-scan.c: Update copyright years.
	(df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
	and non-clobber DF_REF_REG_DEF for calls to const and pure functions.

From-SVN: r169768
2011-02-02 14:08:06 -06:00
Janus Weil
8e2bc95be5 re PR fortran/47082 ([OOP] ICE in gfc_conv_component_ref)
2011-02-02  Janus Weil  <janus@gcc.gnu.org>
	    Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47082
	* trans-expr.c (gfc_trans_class_init_assign): Add call to
	gfc_get_derived_type.
	* module.c (read_cleanup): Do not use unique_symtrees for vtabs
	or vtypes.

2011-02-02  Janus Weil  <janus@gcc.gnu.org>
	    Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47082
	* gfortran.dg/class_37.f03 : New test.


Co-Authored-By: Paul Thomas <pault@gcc.gnu.org>

From-SVN: r169767
2011-02-02 19:51:03 +00:00
Rainer Orth
9ed8059cb1 sysv4.h (TARGET_VERSION): Remove.
* config/i386/sysv4.h (TARGET_VERSION): Remove.
	(SUBTARGET_RETURN_IN_MEMORY): Remove.
	(ASM_OUTPUT_ASCII): Remove.
	* config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.

From-SVN: r169534
2011-02-02 16:58:49 +00:00
Jeff Law
2a737389e4 re PR target/47543 (ICE: in extract_insn, at recog.c:2109 when building zlib)
PR middle-end/47543
	* reload.c (find_reloads_address): Handle reg+d address where both
	components are invalid by reloading the entire address.

From-SVN: r169533
2011-02-02 09:52:21 -07:00
Sebastian Pop
9dac82c4da Fix PR40979 and PR47044: after LIM call copy_prop and DCE to clean up.
2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
	    Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/40979
	PR bootstrap/47044
	* passes.c (init_optimization_passes): After LIM call copy_prop
	and DCE to clean up.
	* tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.

	* gcc.dg/graphite/graphite.exp (DEFAULT_VECTCFLAGS): Add -ffast-math.
	* gcc.dg/graphite/pr35356-2.c: Adjust pattern.
	* gfortran.dg/graphite/graphite.exp: Run vect_files conditionally to
	check_vect_support_and_set_flags.
	* gfortran.dg/graphite/vect-pr40979.f90: New.

Co-Authored-By: Richard Guenther <rguenther@suse.de>

From-SVN: r169531
2011-02-02 15:52:21 +00:00
Sebastian Pop
14dd9aabd6 Fix PR47576 and PR47555: add PARAM_SCEV_MAX_EXPR_COMPLEXITY.
2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/47576
	PR tree-optimization/47555
	* doc/invoke.texi (scev-max-expr-complexity): Documented.
	* params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
	(PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
	* tree-scalar-evolution.c (follow_ssa_edge): Use
	PARAM_SCEV_MAX_EXPR_COMPLEXITY.

From-SVN: r169530
2011-02-02 15:52:08 +00:00
Janus Weil
da285ce8e4 re PR fortran/47572 ([OOP] Invalid: Allocatable polymorphic with init expression.)
2011-02-02  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47572
	* resolve.c (resolve_fl_variable): Handle polymorphic allocatables.


2011-02-02  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47572
	* gfortran.dg/class_36.f03: New.

From-SVN: r169520
2011-02-02 14:11:50 +01:00
Richard Guenther
5cbf5c20cf re PR middle-end/47566 (ICE in vn_reference_lookup)
2011-02-02  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47566
	* builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.

	* gcc.dg/lto/20110201-1_0.c: New testcase.

From-SVN: r169518
2011-02-02 09:59:23 +00:00
Alexandre Oliva
e829c3213b re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-inline.c (declare_return_variable): Remove unused caller
variable.

From-SVN: r169516
2011-02-02 06:28:22 +00:00
Alexandre Oliva
83d707929b re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-flow-inline.h (clear_is_used, is_used_p): New.
* cfgexpand.c (account_used_vars_for_block): Use them.
* tree-nrv.c (tree_nrv): Likewise.
* tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
(dump_scope_block): Likewise.
(remove_unused_locals): Likewise.

From-SVN: r169515
2011-02-02 06:18:01 +00:00
Alexandre Oliva
aaa2ac931e re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto -fconserve-stack)
PR debug/47106
PR debug/47402
* tree-inline.c (declare_return_variable): Add result decl to
local decls only once.
* gimple-low.c (record_vars_into): Mark newly-created variables
as referenced.

From-SVN: r169514
2011-02-02 05:44:38 +00:00
Alexandre Oliva
a59d15cf9f re PR debug/47498 (-fcompare-debug failure with -fsched2-use-superblocks)
gcc/ChangeLog:
PR debug/47498
PR debug/47501
PR debug/45136
PR debug/45130
* haifa-sched.c (get_ebb_head_tail): Move notes across boundary
debug insns.
(no_real_insns_p, schedule_block, set_priorities): Drop special
treatment of boundary debug insns.
* sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
insns.
* sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
* sched-int.h (DEBUG_INSN_SCHED_P): Remove.
(BOUNDARY_DEBUG_INSN_P): Likewise.
(SCHEDULE_DEBUG_INSN_P): Likewise.
* sched-rgn.c (init_ready_list): Drop special treatment of
boundary debug insns.
* final.c (rest_of_clean_state): Clear notes' BB.
gcc/testsuite/ChangeLog:
PR debug/47498
PR debug/47501
PR debug/45136
PR debug/45130
* debug/pr47498.c: New.
* debug/pr47501.c: New.

From-SVN: r169513
2011-02-02 04:31:35 +00:00
Joseph Myers
6fc2f091e7 * config/openbsd.opt (assert=): New Driver option.
From-SVN: r169512
2011-02-02 01:21:52 +00:00
Joseph Myers
fc52338760 nto.opt: New.
* config/i386/nto.opt: New.
	* config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.

From-SVN: r169511
2011-02-02 01:05:13 +00:00
GCC Administrator
30c60047c8 Daily bump.
From-SVN: r169510
2011-02-02 00:18:47 +00:00
Joseph Myers
6d9821e521 netware.opt: New.
* config/i386/netware.opt: New.
	* config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.

From-SVN: r169506
2011-02-01 23:08:01 +00:00
Joseph Myers
cef932d4eb * config/interix.opt (posix): New Driver option.
From-SVN: r169505
2011-02-01 22:23:53 +00:00
DJ Delorie
56490b7406 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
From-SVN: r169503
2011-02-01 16:08:55 -05:00
DJ Delorie
22843acd31 m32c.c (m32c_regno_reg_class): Return smallest reg class for A0/A1.
* config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
class for A0/A1.

From-SVN: r169501
2011-02-01 14:43:50 -05:00
Sebastian Pop
199c8f2f38 Fix PR47561: print the Graphite flags.
2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/47561
	* toplev.c (process_options): Print the Graphite flags.  Add
	flag_loop_flatten to the list of options requiring Graphite.

From-SVN: r169496
2011-02-01 18:38:31 +00:00
Joseph Myers
926bcf2265 * config/i386/cygming.opt (posix): New Driver option.
From-SVN: r169490
2011-02-01 16:45:09 +00:00
Joseph Myers
59793c5171 vxworks.opt: New.
* config/arm/vxworks.opt: New.
	* config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.

From-SVN: r169489
2011-02-01 16:43:49 +00:00
Joseph Myers
183c38a4f9 elf.opt: New.
* config/alpha/elf.opt: New.
	* config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
	alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.

From-SVN: r169488
2011-02-01 16:42:51 +00:00
Richard Guenther
9939e416ee re PR tree-optimization/47559 (ICE: verify_stmts failed: statement marked for throw, but doesn't with -fnon-call-exceptions and noexcept)
2011-02-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47559
	* tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
	store-motion on references that can throw.

	* g++.dg/torture/pr47559.C: New testcase.

From-SVN: r169487
2011-02-01 16:15:56 +00:00
Bernd Schmidt
4a3c9687cf tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
* tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
	* tree-pass.h (TDF_CSELIB): New macro.
	* cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
	cselib_lookup): Check for it rather than for TDF_DETAILS.

From-SVN: r169482
2011-02-01 15:12:26 +00:00
Janus Weil
0f0a4367ab re PR fortran/47565 ([OOP] Segfault with TBP)
2011-02-01  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47565
	* trans-expr.c (gfc_conv_structure): Handle constructors for procedure
	pointer components with allocatable result.


2011-02-01  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47565
	* gfortran.dg/typebound_call_20.f03: New.

From-SVN: r169480
2011-02-01 15:59:40 +01:00
H.J. Lu
dd3b31fbce Check HOST_BIT_BUCKET when settting dump base/dir.
2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR driver/47547
	* lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
	is HOST_BIT_BUCKET.

	* opts.c (finish_options): Don't add x_aux_base_name if it is
	HOST_BIT_BUCKET.

From-SVN: r169479
2011-02-01 06:42:08 -08:00
Richard Guenther
34c1de7982 re PR tree-optimization/47555 (Huge memory usage when optimizing)
2011-02-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47555
	Revert
	2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>

	* params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.

	* gcc.dg/pr47555.c: New testcase.

From-SVN: r169478
2011-02-01 14:36:00 +00:00
Sebastien Bourdeauducq
dd2804d247 re PR target/46692 (Missing LM32 multilibs for divider and sign extender)
PR gcc/46692
	* config/lm32/t-lm32: Add multilib for all CPU options.

From-SVN: r169473
2011-02-01 11:52:12 +00:00
Richard Guenther
3fd3b156d6 re PR tree-optimization/47541 (For integer pointers, the value of ++*p is not written back to memory)
2011-02-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47541
	* tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
	sure to have a field at offset zero.

	* g++.dg/torture/pr47541.C: New testcase.

From-SVN: r169468
2011-02-01 09:47:21 +00:00
GCC Administrator
a359924088 Daily bump.
From-SVN: r169460
2011-02-01 00:17:59 +00:00
Janus Weil
463ec8224b re PR fortran/47455 ([OOP] internal compiler error: in fold_convert_loc, at fold-const.c:2028)
2011-01-31  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47455
	* trans-expr.c (gfc_conv_procedure_call): Handle procedure pointers
	with pointer or allocatable result.


2011-01-31  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47455
	* gfortran.dg/typebound_call_19.f03: New.

From-SVN: r169455
2011-01-31 23:51:59 +01:00
Joseph Myers
f16072b6e8 * config/arc/arc.opt (EB, EL): New Driver options.
From-SVN: r169454
2011-01-31 22:36:42 +00:00
Joseph Myers
6456cf2e5b osf5.opt: New.
* config/alpha/osf5.opt: New.
	* config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.

From-SVN: r169453
2011-01-31 21:57:16 +00:00
Joseph Myers
cdde6ab41f * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
From-SVN: r169451
2011-01-31 21:35:31 +00:00
Jakub Jelinek
60d237aff2 re PR c++/47416 (ICE in build_data_member_initialization, at cp/semantics.c:5509)
PR c++/47416
	* semantics.c (build_data_member_initialization): Handle
	STATEMENT_LIST always instead of just for CLEANUP_BODY.

	* g++.dg/cpp0x/pr47416.C: New test.

From-SVN: r169447
2011-01-31 21:19:25 +01:00
Mike Stump
882020aa1c Oops, almost forgot to check-in ChangeLog.
From-SVN: r169446
2011-01-31 19:35:23 +00:00
Sebastian Pop
7633415cb2 Use Alias in common.opt to make -ftree-loop-linear an alias of -floop-interchange.
2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>

	* common.opt (ftree-loop-linear): Use Alias to make it an alias of
	-floop-interchange.
	* invoke.texi (-ftree-loop-linear): Make it clear that this flag
	is an alias of -floop-interchange and that it requires the
	Graphite infrastructure.
	* tree-ssa-loop.c (gate_graphite_transforms): Do not set
	flag_loop_interchange based on the value of flag_tree_loop_linear.

From-SVN: r169445
2011-01-31 19:30:55 +00:00
Paul Thomas
fabb6f8ea1 re PR fortran/47519 (Deferred-length string wrong results with character intrinsic functions)
2011-01-31  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47519
	* trans-stmt.c (gfc_trans_allocate): Improve handling of
	deferred character lengths with SOURCE.
	* iresolve.c (gfc_resolve_repeat): Calculate character
	length from source length and ncopies.
	* dump-parse-tree.c (show_code_node): Show MOLD and SOURCE
	expressions for ALLOCATE.


2011-01-31  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47519
	* gfortran.dg/allocate_deferred_char_scalar_2.f03: New test.

From-SVN: r169444
2011-01-31 19:13:13 +00:00
Janus Weil
b6c77bcb57 re PR fortran/47463 ([OOP] ICE in gfc_add_component_ref)
2011-01-31  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47463
	* resolve.c (resolve_typebound_subroutine): Bug fix for the case of
	an argument of a typebound assignment being a component.


2011-01-31  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47463
	* gfortran.dg/typebound_assignment_1.f03: New.

From-SVN: r169443
2011-01-31 19:11:32 +01:00
Jakub Jelinek
0425d6f563 re PR tree-optimization/47538 (GNU Scientific Library miscompiled by gcc 4.6)
PR tree-optimization/47538
	* tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
	type instead of r1type, except for comparisons.  For right
	shifts and comparisons punt if there are mismatches in
	sizetype vs. non-sizetype types.

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

Co-Authored-By: Richard Guenther <rguenther@suse.de>

From-SVN: r169441
2011-01-31 17:52:22 +01:00
Rainer Orth
529da9b570 re PR target/45325 (target attribute doesn't work with -march=i586)
PR target/45325
	* gcc.target/i386/pr38240.c: Add dg-options "-msse".

From-SVN: r169440
2011-01-31 14:56:31 +00:00
Rainer Orth
500b16c3f0 sourcebuild.texi (Effective-Target Keywords): Document avx_runtime.
* doc/sourcebuild.texi (Effective-Target Keywords): Document
	avx_runtime.

From-SVN: r169439
2011-01-31 14:20:54 +00:00
Rainer Orth
f39ebf7fc4 * g++.dg/abi/mangle40.C: Pass "" to dg-require-weak.
From-SVN: r169438
2011-01-31 14:14:16 +00:00
Rainer Orth
e279edb0d8 configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld version number.
* configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
	version number.
	* configure: Regenerate.

From-SVN: r169437
2011-01-31 14:07:45 +00:00
Rainer Orth
c6092243c9 configure.ac (gcc_cv_ld_static_option): Define.
gcc:
	* configure.ac (gcc_cv_ld_static_option): Define.
	(gcc_cv_ld_dynamic_option): Define.
	(gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
	instead.
	(HAVE_LD_STATIC_DYNAMIC): Update message.
	(LD_STATIC_OPTION): Define.
	(LD_DYNAMIC_OPTION): Define.
	* configure: Regenerate.
	* config.in: Regenerate.
	* gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
	HAVE_LD_STATIC_DYNAMIC]: Use them.

	gcc/cp:
	* g++spec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
	LD_STATIC_OPTION, LD_DYNAMIC_OPTION.

	gcc/fortran:
	* gfortranspec.c (add_arg_libgfortran) [HAVE_LD_STATIC_DYNAMIC] Use
	LD_STATIC_OPTION, LD_DYNAMIC_OPTION.

	gcc/go:
	* gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
	LD_STATIC_OPTION, LD_DYNAMIC_OPTION.

From-SVN: r169435
2011-01-31 13:52:42 +00:00
Nick Clifton
d7862be3fa rx.c (rx_get_stack_layout): Only save call clobbered registers inside interrupt handlers if...
* config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
	registers inside interrupt handlers if the handler is not a leaf
	function.

From-SVN: r169434
2011-01-31 11:38:43 +00:00
Eric Botcazou
171bbfd2ef re PR rtl-optimization/44031 (ice in subst_reloads, at reload.c:6327)
PR rtl-optimization/44031
	* gcc.c-torture/compile/20110131-1.c: New test.

From-SVN: r169433
2011-01-31 10:45:20 +00:00
Nick Clifton
ba4ec0e067 mn10300.c (mn10300_regno_in_class_p): Check for reg_renumber returning an INVALID_REGNUM.
* config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
	reg_renumber returning an INVALID_REGNUM.

From-SVN: r169432
2011-01-31 10:26:51 +00:00
Alexandre Oliva
29a63921d9 re PR libgcj/44341 (libjava cross build fails when configured with --with-gmp=)
ChangeLog:
PR libgcj/44341
* configure.ac: Discard --with-* flags for host when configuring
target libraries for cross build.
* configure: Rebuilt.
gcc/ChangeLog:
PR libgcj/44341
* doc/install.texi: Document host options discarded when cross
configuring target libraries.

From-SVN: r169430
2011-01-31 05:20:17 +00:00
Alexandre Oliva
ef591d3f05 revert: re PR debug/45136 (-fcompare-debug failure with -Os -fschedule-insns)
Reverted:
2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
PR debug/45136
PR debug/45130
* haifa-sched.c (get_ebb_head_tail): Move notes across boundary
debug insns.
(no_real_insns_p, schedule_block, set_priorities): Drop special
treatment of boundary debug insns.
* sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
insns.
* sched-ebb.c (schedule_ebbs): Don't skip debug insns.
* sched-int.h (DEBUG_INSN_SCHED_P): Remove.
(BOUNDARY_DEBUG_INSN_P): Likewise.
(SCHEDULE_DEBUG_INSN_P): Likewise.
* sched-rgn.c (init_ready_list): Drop special treatment of
boundary debug insns.
* final.c (rest_of_clean-state): Clear notes' BB.

From-SVN: r169429
2011-01-31 05:13:34 +00:00
Alan Modra
6105224471 rs6000.c (print_operand): Rearrange addends in toc relative expressions as we do in print_operand_address.
* config/rs6000/rs6000.c (print_operand): Rearrange addends in
	toc relative expressions as we do in print_operand_address.

From-SVN: r169427
2011-01-31 11:14:10 +10:30
GCC Administrator
a328fe6cd1 Daily bump.
From-SVN: r169425
2011-01-31 00:19:01 +00:00
Kazu Hirata
c4c8962b49 extend.texi: Follow spelling conventions.
* doc/extend.texi: Follow spelling conventions.
	* doc/invoke.texi: Fix a typo.

From-SVN: r169420
2011-01-30 22:25:31 +00:00
Joseph Myers
e543b94c18 hpux11.opt: New.
* config/hpux11.opt: New.
	* config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
	ia64*-*-hpux*): Use hpux11.opt.

From-SVN: r169419
2011-01-30 20:57:56 +00:00
Jonathan Yong
a70e055153 config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules to tmake_file.
2011-01-30  Jonathan Yong <jon_y@users.sourceforge.net> 

	* config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
	to tmake_file.

From-SVN: r169418
2011-01-30 20:10:20 +00:00
Tobias Burnus
1ca99f75ca re PR fortran/47042 (ICE with character pointer in function)
2011-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47042
        * resolve.c (resolve_fl_procedure): Reject stmt functions
        with pointer/allocatable attribute.

2011-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47042
        * gfortran.dg/stmt_func_1.f90: New.

From-SVN: r169415
2011-01-30 19:17:29 +01:00
Tobias Burnus
86d7449cc6 re PR fortran/47042 (ICE with character pointer in function)
2011-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47042
        * interface.c (gfc_procedure_use): Add explicit interface check
        * for
        pointer/allocatable functions.

2011-01-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47042
        * gfortran.dg/interface_34.f90: New.

From-SVN: r169414
2011-01-30 19:16:12 +01:00
Paul Thomas
dafdf26963 re PR fortran/47523 (Concatenation with deferred length character with lhs variable)
2011-01-30  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47523
	* trans-expr.c (gfc_trans_assignment_1): If the rhs is an op
	expr and is assigned to a deferred character length scalar,
	make sure that the function is called before reallocation,
	so that the length is available. Include procedure pointer
	and procedure pointer component rhs as well.

2011-01-30  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47523
	* trans-expr.c (gfc_trans_assignment_1): If the rhs is an op
	expr and is assigned to a deferred character length scalar,
	make sure that the function is called before reallocation,
	so that the length is available. Include procedure pointer
	and procedure pointer component rhs as well.

	PR fortran/45170
	PR fortran/35810
	PR fortran/47350
	* gfortran.dg/allocatable_function_5.f90: New test not added by
	mistake on 2011-01-28.

From-SVN: r169413
2011-01-30 17:50:01 +00:00
Gerald Pfeifer
7be03a0ef9 install.texi (hppa-hp-hpux10): Remove references to HP support sites.
* doc/install.texi (hppa-hp-hpux10): Remove references to HP
	support sites.

From-SVN: r169412
2011-01-30 17:20:30 +00:00
Gerald Pfeifer
b596ed640f install.texi (Binaries): Remove outdated reference for Motorola 68HC11/68HC12 downloads.
* doc/install.texi (Binaries): Remove outdated reference for
	Motorola 68HC11/68HC12 downloads.

From-SVN: r169409
2011-01-30 15:15:40 +00:00
Gerald Pfeifer
419d1d37f0 extend.texi (Thread-Local): Adjust reference to Ulrich Drepper's paper.
* doc/extend.texi (Thread-Local): Adjust reference to Ulrich
	Drepper's paper.

From-SVN: r169404
2011-01-30 11:45:22 +00:00
GCC Administrator
3302e06ceb Daily bump.
From-SVN: r169403
2011-01-30 00:17:57 +00:00
Jonathan Wakely
4406d0e915 re PR bootstrap/47147 (gcc 4.6 fails to compile on NetBSD)
2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR bootstrap/47147
	* ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
	used by NetBSD.

From-SVN: r169395
2011-01-29 22:15:52 +00:00
Ulrich Weigand
9a8238741a bessel_6.f90: XFAIL on spu-*-*.
* gfortran.dg/bessel_6.f90: XFAIL on spu-*-*.
	* gfortran.dg/bessel_7.f90: Likewise.
	* gfortran.dg/erf_2.F90: Likewise.  Always run with -O0.

	* gfortran.dg/complex_intrinsics_5.f90: Increase "epsilon".
	* gfortran.dg/sum_init_expr.f03: Likewise.

	* gfortran.dg/realloc_on_assign_2.f03: Skip on spu-*-*.

	* gfortran.dg/lto/20091016-1_0.f90: Replace -shared with
	-r -nostdlib.

	* gfortran.dg/vect/fast-math-vect-8.f90: Check for vectorized
	loop only on "vect_intfloat_cvt" targets.

From-SVN: r169393
2011-01-29 19:18:06 +00:00
Tobias Burnus
7320cf0901 re PR fortran/47531 (SHAPE misses KIND= support)
2011-01-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47531
        * check.c (gfc_check_shape): Support kind argument in SHAPE.
        * intrinsic.c (add_functions): Ditto.
        * resolve.c (gfc_resolve_shape): Ditto.
        * simplify.c (gfc_simplify_shape): Ditto.
        * intrinsic.h (gfc_check_shape, gfc_resolve_shape,
        gfc_simplify_shape): Update prototypes.
        * intrinisc.text (SHAPE): Document kind argument.

2011-01-29  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47531
        * gfortran.dg/shape_6.f90: New.

From-SVN: r169392
2011-01-29 18:36:18 +01:00
Jerry DeLisle
bd228fecfc re PR libfortran/47434 (Wrong field width for NaN with (F0.n) formatting)
2011-01-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47434
	* gfortran.dg/read_infnan_1.f90: Update test.
	* gfortran.dg/module_nan.f90: Update test.
	* gfortran.dg/char4_iunit_1.f03: Update test.
	* gfortran.dg/large_real_kind_1.f90: Update test.
	* gfortran.dg/real_const_3.f90: Update test.
	* gfortran.fortran-torture/execute/nan_inf_fmt.f90: Update test.

From-SVN: r169391
2011-01-29 17:33:36 +00:00
Ahmad Sharif
e0b77418ce * value-prof.c (check_counter): Corrected error message.
From-SVN: r169387
2011-01-29 03:54:56 +00:00
Jie Zhang
0cd98787c2 arm.c (arm_legitimize_reload_address): New.
* config/arm/arm.c (arm_legitimize_reload_address): New.
	* config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
	arm_legitimize_reload_address.
	* config/arm/arm-protos.h (arm_legitimize_reload_address):
	Declare.

From-SVN: r169386
2011-01-29 03:20:57 +00:00
Ian Lance Taylor
9b798ac5b8 godump.c (go_define): Ignore macros whose definitions include two adjacent operands.
* godump.c (go_define): Ignore macros whose definitions include
	two adjacent operands.

From-SVN: r169385
2011-01-29 02:32:28 +00:00
GCC Administrator
dafc8f50f2 Daily bump.
From-SVN: r169384
2011-01-29 00:19:08 +00:00
Dodji Seketeli
bc44baadce re PR preprocessor/47311 ([C++0x] ICE in tsubst @cp/pt.c:10502)
Fix PR c++/47311

gcc/cp/

	PR c++/47311
	* cp-tree.h (fixup_template_parms): Declare.
	* pt.c (end_template_parm_list): Do not fixup template parms here.
	(fixup_template_parms): Remove static. Fix typo in the
	comments. Remove useless code statement.
	(fixup_template_parm): For a template template parameter, fixup
	its attributes before fixing up its type.
	* parser.c
	(cp_parser_template_declaration_after_export): After parsing
	template parameters fixup their types.

gcc/testsuite/

	PR c++/47311
	* g++.dg/template/param2.C: New test.

From-SVN: r169377
2011-01-29 00:35:59 +01:00
Jerry DeLisle
874634eda6 re PR libfortran/47285 (G format outputs wrong number of characters when decimal supplied in literal)
2011-01-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47285
	* gfortran.dg/fmt_g.f: New test.

From-SVN: r169375
2011-01-28 22:35:43 +00:00
Tobias Burnus
36ea267b8a re PR fortran/47507 (PURE functions with VALUE arguments invalidly rejectd)
2011-01-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47507
        * resolve.c (resolve_formal_arglist): Allow arguments with VALUE
        attribute also without INTENT.

2011-01-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47507
        * gfortran.dg/pure_formal_1.f90: New.

From-SVN: r169372
2011-01-28 20:49:25 +01:00
Tobias Burnus
5582f599f6 gfortran.texi (Fortran 2003 status): Mention support for nonconstant namelist variables.
2011-01-28  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (Fortran 2003 status): Mention support for
        nonconstant namelist variables.

From-SVN: r169371
2011-01-28 20:47:16 +01:00
Jakub Jelinek
591e29d9da re PR target/42894 (Invalid rtl sharing in Thumb1.)
PR target/42894
	* varasm.c (force_const_mem): Store copy of x in desc->constant
	instead of x itself.
	* expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
	itself into REG_EQUAL note.

	* gcc.dg/tls/pr42894.c: New test.

From-SVN: r169370
2011-01-28 20:36:44 +01:00
Joseph Myers
62dcc44a4b * config/freebsd.opt (posix, rdynamic): New Driver options.
From-SVN: r169368
2011-01-28 19:25:16 +00:00
Joseph Myers
f41371ead8 * ja.po: Update.
From-SVN: r169360
2011-01-28 15:11:34 +00:00
Rainer Orth
5c04326f5e * gcc.dg/pr47276.c: Add dg-require-visibility.
From-SVN: r169359
2011-01-28 15:07:37 +00:00
Rainer Orth
d44f039a47 * gcc.target/i386/asm-6.c: XFAIL on i?86-pc-solaris2.1[0-9] && ilp32.
From-SVN: r169358
2011-01-28 14:33:42 +00:00
Paul Thomas
8d51f26f8e re PR fortran/45170 ([F2003] allocatable character lengths)
2011-01-28  Paul Thomas  <pault@gcc.gnu.org>
	    Tobias Burnus  <burnus@gcc.gnu.org>

	PR fortran/45170
	PR fortran/35810
	PR fortran/47350
	* interface.c (compare_actual_formal): An allocatable or pointer
	deferred length actual is only allowed if the formal argument
	is also deferred length. Clean up whitespace.
	* trans-expr.c (gfc_conv_procedure_call): Pass string length for
	deferred character length formal arguments by reference. Do the
	same for function results.
	(gfc_trans_pointer_assignment): Do not do runtime check of lhs
	and rhs character lengths, if deferred length lhs.  In this case
	set the lhs character length to that of the rhs.
	(gfc_conv_string_parameter): Remove assert that string length is
	an integer type.
	(is_scalar_reallocatable_lhs): New function.
	(alloc_scalar_allocatable_for_assignment): New function.
	(gfc_trans_assignment_1): Call above new function. If the rhs is
	a deferred character length itself, makes ure that the function
	is called before reallocation, so that the length is available.
	(gfc_trans_asssignment): Remove error about assignment to
	deferred length character variables.
	* gfortran.texi : Update entry about (re)allocation on
	assignment.
	* trans-stmt.c (gfc_trans_allocate): Add code to handle deferred
	length character variables.
	* module.c (mio_typespec): Transfer deferred characteristic.
	* trans-types.c (gfc_get_function_type): New code to generate
	hidden typelist, so that those character lengths that are
	passed by reference get the right type.
	* resolve.c (resolve_contained_fntype): Supress error for
	deferred character length functions.
	(resolve_function, resolve_fl_procedure) The same.
	(check_symbols): Remove the error that support for
	entity with deferred type parameter is not yet implemented.
	(resolve_fl_derived): The same.
	match.c (alloc_opt_list): Allow MOLD for deferred length object.
	* trans-decl.c (gfc_get_symbol_decl): For deferred character
	length dummies, generate a local variable for string length.
	(create_function_arglist): Hidden length can be a pointer.
	(gfc_trans_deferred_vars): For deferred character length
	results and dummies, assign the string length to the local
	variable from the hidden argument on entry and the other way
	round on exit, as appropriate.

2011-01-28  Paul Thomas  <pault@gcc.gnu.org>
	    Tobias Burnus  <burnus@gcc.gnu.org>

	PR fortran/45170
	PR fortran/35810
	PR fortran/47350
	* gfortran.dg/realloc_on_assign_3.f03: New test.
	* gfortran.dg/realloc_on_assign_4.f03: New test.
	* gfortran.dg/realloc_on_assign_5.f90: New test.
	* gfortran.dg/allocatable_function_5.f90: New test.
	* gfortran.dg/allocate_deferred_char_scalar_1.f90: New test.
	* gfortran.dg/deferred_type_param_2.f90: Remove two "not yet
	implemented" dg-errors.


Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org>

From-SVN: r169356
2011-01-28 13:53:19 +00:00
Rainer Orth
c9f58b9add configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports -Bstatic/-Bdynamic.
* configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
	-Bstatic/-Bdynamic.
	* configure: Regenerate.

From-SVN: r169353
2011-01-28 09:37:12 +00:00
GCC Administrator
0047207685 Daily bump.
From-SVN: r169349
2011-01-28 00:18:23 +00:00
Tobias Burnus
f18694de28 re PR fortran/47474 (Wrong code with allocatable scalar, allocatable components as function result)
2011-01-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47474
        * trans-decl.c (gfc_generate_function_code): Fix init
        of allocatable result variable with allocatable components.

From-SVN: r169340
2011-01-27 23:47:08 +01:00
Ian Lance Taylor
2887665c94 Fix self-referential struct via function and array.
From-SVN: r169339
2011-01-27 20:39:19 +00:00
Joseph Myers
5f02b9dbcd sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
* config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
	* config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.

From-SVN: r169336
2011-01-27 18:36:03 +00:00
Joseph Myers
188214d4f7 * ja.po: Update.
From-SVN: r169335
2011-01-27 18:09:14 +00:00
Anatoly Sokolov
5df974120e s390.h (PREFERRED_RELOAD_CLASS): Remove.
* config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
	* config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
	* config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
	(s390_preferred_reload_class): Make static. Change return and
	'rclass' argument type to reg_class_t.

From-SVN: r169333
2011-01-27 20:10:16 +03:00
Jan Hubicka
779d4b91eb re PR middle-end/46949 (ICE when weakref is used on a definition (internal compiler error: in function_and_variable_visibility, at ipa.c:904))
PR middle-end/46949
	* cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
	(process_function_and_variable_attributes): Check defined weakrefs.
	* gcc.dg/attr-weakref-4.c: New testcase

From-SVN: r169332
2011-01-27 16:16:34 +00:00
Martin Jambor
e80b21edae re PR tree-optimization/47228 (wrong code with loop)
2011-01-27  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/47228
	* tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
	build_ref_for_offset.

	* testsuite/gcc.dg/torture/pr47228.c: New test.

From-SVN: r169331
2011-01-27 14:41:51 +01:00
Andreas Krebbel
6c90babb57 pr42585.c: Disable on s390 and s390x.
2011-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.dg/tree-ssa/pr42585.c: Disable on s390 and s390x.

From-SVN: r169328
2011-01-27 11:22:02 +00:00
Ulrich Weigand
9119185007 compat.exp (compat-execute): Pass -Wl,--extra-stack-space=8192 when using auto-overlay support on the SPU.
* lib/compat.exp (compat-execute): Pass -Wl,--extra-stack-space=8192
	when using auto-overlay support on the SPU.

From-SVN: r169326
2011-01-27 08:43:12 +00:00
Eric Botcazou
467fd7909a re PR rtl-optimization/44174 (can't find a register in class 'CLOBBERED_REGS' while reloading 'asm')
PR rtl-optimization/44174
	* gcc.target/i386/asm-6.c: New test.

From-SVN: r169325
2011-01-27 08:39:33 +00:00
Ulrich Weigand
6dcc4f31c2 * config/spu/spu-elf.h (ASM_SPEC): Remove.
From-SVN: r169324
2011-01-27 08:39:02 +00:00
Tobias Burnus
22b00a9f06 re PR fortran/47472 (Rules printed by -M option contains duplicate slash when -J option is used)
2011-01-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47472
        * options.c (gfc_handle_module_path_options): Save
        module path without trailing slash as include path.

From-SVN: r169323
2011-01-27 08:02:58 +01:00
Jeff Law
3de2811212 Update copyright year
From-SVN: r169322
2011-01-26 21:33:18 -07:00
Mikael Pettersson
3b8ff89fa6 re PR rtl-optimization/46856 (internal compiler error in final_scan_insn breaks m68k-linux bootstrap)
PR rtl-optimization/46856
	* postreload.c (reload_combine_recognize_const_pattern): Do not
	separate cc0 setter and user on cc0 targets.

	PR rtl-optimization/46856
	* gcc.c-torture/compile/pr46856.c: New test.

From-SVN: r169321
2011-01-26 21:25:49 -07:00
Nicola Pero
04af87889f In gcc/: 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR c/43082
	* c-typeck.c (c_objc_common_truthvalue_conversion): If we are
	passed a VOID_TYPE expression, immediately emit an error and
	return error_mark_node.

In gcc/testsuite/:
2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
	    Andrew Pinski  <pinskia@gmail.com>

	PR c/43082
	* gcc.dg/pr43082.c: New.

Co-Authored-By: Andrew Pinski <pinskia@gmail.com>

From-SVN: r169319
2011-01-27 02:09:13 +00:00
GCC Administrator
45d581f790 Daily bump.
From-SVN: r169317
2011-01-27 00:18:29 +00:00
Jeff Law
f7a60085fc re PR libgomp/47464 (Many gomp failures)
PR rtl-optimization/47464
	* df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
	rather than may_trap_p as needed.

From-SVN: r169310
2011-01-26 15:45:04 -07:00
Eric Botcazou
dcf25f5973 re PR other/47467 (hwint.h:239:3: error: implicit declaration of function 'abs')
PR bootstrap/47467
	* targext.c: Include target files if IN_RTS is defined.

From-SVN: r169308
2011-01-26 22:10:23 +00:00
DJ Delorie
5c2917ec9d re PR rtl-optimization/46878 (V850 ICE in in maybe_add_or_update_dep_1, at sched-deps.c:854)
PR rtl-optimization/46878
* combine.c (insn_a_feeds_b): Check for the implicit cc0
setter/user dependency as well.

* gcc.dg/pr46878-1.c: New test.

From-SVN: r169307
2011-01-26 17:03:47 -05:00
Jakub Jelinek
81cce6f682 re PR c++/47476 ([C++0x] ICE in potential_constant_expression_1)
PR c++/47476
	* semantics.c (potential_constant_expression_1): Handle
	TRUTH_XOR_EXPR.

	* g++.dg/cpp0x/pr47476.C: New test.

From-SVN: r169306
2011-01-26 22:20:40 +01:00
Eric Botcazou
bef16e8723 re PR rtl-optimization/44469 (internal compiler error: in fixup_reorder_chain, at cfglayout.c:797)
PR rtl-optimization/44469
	* cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
	after removing trivially dead basic blocks.

From-SVN: r169304
2011-01-26 21:11:57 +00:00
Joseph Myers
c75d884b6d bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
* config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
	* config/frv/frv.h (LINK_SPEC): Likewise.
	* config/i386/netware.h (LINK_SPEC): Likewise.
	* config/m68k/linux.h (ASM_SPEC): Likewise.
	* config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
	* config/rs6000/sysv4.h (LINK_SPEC): Likewise.
	* config/rs6000/vxworks.h (ASM_SPEC): Likewise.
	* config/sparc/linux.h (ASM_SPEC): Likewise.
	* config/sparc/linux64.h (ASM_SPEC): Likewise.
	* config/sparc/sp-elf.h (ASM_SPEC): Likewise.

From-SVN: r169303
2011-01-26 20:30:12 +00:00
Joseph Myers
d3153553ba bfin.h (ASM_SPEC): Remove %{Ym,*}.
* config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
	* config/frv/frv.h (ASM_SPEC): Likewise.
	* config/m68k/linux.h (ASM_SPEC): Likewise.
	* config/pa/pa-linux.h (ASM_SPEC): Likewise.
	* config/rs6000/linux64.h (ASM_SPEC): Likewise.
	* config/rs6000/vxworks.h (ASM_SPEC): Likewise.
	* config/sparc/linux.h (ASM_SPEC): Likewise.
	* config/sparc/linux64.h (ASM_SPEC): Likewise.
	* config/sparc/sp-elf.h (ASM_SPEC): Likewise.

From-SVN: r169302
2011-01-26 20:27:04 +00:00
Joseph Myers
b89b1e9d9b bfin.h (LINK_SPEC): Remove %{YP,*}.
* config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
	* config/frv/frv.h (LINK_SPEC): Likewise.
	* config/rs6000/sysv4.h (LINK_SPEC): Likewise.

From-SVN: r169301
2011-01-26 20:24:41 +00:00
Joseph Myers
12eb1a9ca3 bfin.h (ASM_SPEC): Remove %{Yd,*}.
* config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
	* config/frv/frv.h (ASM_SPEC): Likewise.
	* config/i386/sol2-10.h (ASM_SPEC): Likewise.
	* config/m68k/linux.h (ASM_SPEC): Likewise.
	* config/pa/pa-linux.h (ASM_SPEC): Likewise.
	* config/rs6000/linux64.h (ASM_SPEC32): Likewise.
	* config/rs6000/vxworks.h (ASM_SPEC): Likewise.
	* config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
	* config/sparc/linux.h (ASM_SPEC): Likewise.
	* config/sparc/linux64.h (ASM_SPEC): Likewise.
	* config/sparc/sp-elf.h (ASM_SPEC): Likewise.
	* config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.

From-SVN: r169300
2011-01-26 20:23:17 +00:00
Jakub Jelinek
7273813a34 re PR c/47473 (Incorrect computation with complex numbers when using -std=c99)
PR c/47473
	* c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
	EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
	REAL_TYPE.

	* gcc.dg/torture/pr47473.c: New test.

From-SVN: r169299
2011-01-26 21:06:57 +01:00
Ian Lance Taylor
01c599966b Copy initializer to heap if it may contain pointers.
From-SVN: r169297
2011-01-26 19:48:47 +00:00
Steve Ellcey
e435f0985f re PR target/46997 (new ia64 vector instructions are broken on HP-UX (big-endian))
2011-01-26  Steve Ellcey  <sje@cup.hp.com>

	PR target/46997
	* config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
	(*mux2): Ditto.
	(vec_extract_evenodd_help): Ditto.
	(vec_extract_evenv4hi): Ditto.
	(vec_extract_oddv4hi): Ditto.
	(vec_interleave_lowv2si): Ditto.
	(vec_interleave_highv2si): Ditto.
	(vec_extract_evenv2si): Ditto.
	(vec_extract_oddv2si: Ditto.
	(vec_pack_trunc_v2si): Ditto.

From-SVN: r169296
2011-01-26 17:49:56 +00:00
Jan Hubicka
34f0eee0f6 re PR tree-optimization/47237 (builtin_apply_args broken WRT local ABI changes.)
PR target/47237
	* gcc.c-torture/execute/pr47237.c: New testcase.

	* cgraph.h (cgraph_local_info): New field can_change_signature.
	* ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
	signature can change.
	(ipcp_estimate_growth): Call sequence simplify only if calle signature
	can change.
	(ipcp_insert_stage): Only compute args_to_skip if signature can change.
	(cgraph_function_versioning): We can not change signature of functions
	that don't allow that.
	* lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
	(lto_input_node): Likewise.
	* ipa-inline.c (compute_inline_parameters): Compute local.can_change_signature.
	* ipa-split.c (visit_bb): Never split away APPLY_ARGS.
	* tree-sra.c (ipa_sra_preliminary_function_checks): Give up on functions
	that can not change signature.
	* i386.c (ix86_function_regparm, ix86_function_sseregparm,
	init_cumulative_args): Do not use local calling conventions for functions
	that can not change signature.

From-SVN: r169291
2011-01-26 14:07:02 +00:00
Jan Hubicka
61e03ffc6b re PR tree-optimization/47237 (builtin_apply_args broken WRT local ABI changes.)
PR target/47237
	* cgraph.h (cgraph_local_info): New field can_change_signature.
	* ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
	signature can change.
	(ipcp_estimate_growth): Call sequence simplify only if calle signature
	can change.
	(ipcp_insert_stage): Only compute args_to_skip if signature can change.
	(cgraph_function_versioning): We can not change signature of functions
	that don't allow that.
	* lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
	(lto_input_node): Likewise.
	* ipa-inline.c (compute_inline_parameters): Compute local.can_change_signature.
	* ipa-split.c (visit_bb): Never split away APPLY_ARGS.
	* tree-sra.c (ipa_sra_preliminary_function_checks): Give up on functions
	that can not change signature.
	* i386.c (ix86_function_regparm, ix86_function_sseregparm,
	init_cumulative_args): Do not use local calling conventions for functions
	that can not change signature.

From-SVN: r169290
2011-01-26 14:06:20 +00:00
Jan Hubicka
980ca89173 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
From-SVN: r169289
2011-01-26 14:04:48 +00:00
Richard Guenther
768e3c602b re PR tree-optimization/47190 (ICE: in function_and_variable_visibility, at ipa.c:934 with static weakref variable)
PR tree-optimization/47190
	 * cgraphunit.c (process_common_attributes): New function.
        (process_function_and_variable_attributes): Use it.
	* gcc.dg/attr-weakref-3.c: New testcase.

From-SVN: r169288
2011-01-26 14:03:54 +00:00
Richard Guenther
0418e131cb re PR other/47467 (hwint.h:239:3: error: implicit declaration of function 'abs')
2011-01-26  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/47467
	* targext.c: Include config.h.
	* gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
	dependency.

From-SVN: r169285
2011-01-26 11:53:51 +00:00
Richard Guenther
21d6a1c71e re PR lto/47423 (Many testsuite failures caused by missing gxx_visibility_sj0)
2011-01-26  Richard Guenther  <rguenther@suse.de>

	PR lto/47423
	* cgraphbuild.c (record_eh_tables): Record reference to personality
	function.

From-SVN: r169284
2011-01-26 11:29:42 +00:00
Tobias Burnus
19d361071b re PR fortran/47339 (Fortran 2003/2008: Valid NAMELIST rejected; Fortran 95: Invalid namelist objects accepted)
2011-01-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47339
        PR fortran/43062
        * match.c (gfc_match_namelist): Allow assumed-length characters.
        * resolve.c (resolve_fl_namelist): Adapt and add error messages.
        * symbol.c (check_conflict): Allow allocatables in NML for
        * F2003.
        * trans-io.c (nml_get_addr_expr,transfer_namelist_element):
        Changes due to that change.

2011-01-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47339
        PR fortran/43062
        * fortran.dg/namelist_69.f90: New test.
        * fortran.dg/namelist_70.f90: New test.
        * fortran.dg/namelist_assumed_char.f90: Modify dg-error, augment
        * test.
        * fortran.dg/namelist_3.f90: Adapt test.
        * fortran.dg/namelist_34.f90: Ditto.
        * fortran.dg/namelist_35.f90: Ditto.
        * fortran.dg/namelist_5.f90: Ditto.
        * fortran.dg/namelist_63.f90: Ditto.
        * gfortran.dg/alloc_comp_constraint_1.f90: Ditto.

From-SVN: r169282
2011-01-26 11:12:47 +01:00
Arnaud Charlet
908ef79b5c * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
From-SVN: r169278
2011-01-26 09:42:27 +01:00
Jakub Jelinek
237e9384cf re PR pch/47430 (Random PCH related bootstrap failures on powerpc64-linux)
PR pch/47430
	* c-opts.c (c_common_post_options): Call c_common_no_more_pch
	after init_c_lex if pch_file is set.

From-SVN: r169276
2011-01-26 07:48:04 +01:00
Alexandre Oliva
48bb58b1bb re PR debug/45454 (ICE: in verify_target_availability, at sel-sched.c:1614)
PR debug/45454
* sel-sched.c (moveup_expr): Don't let debug insns prevent
non-debug insns from moving up.

From-SVN: r169275
2011-01-26 05:59:53 +00:00
Dave Korn
58c741a62e re PR target/40125 (libgcc_s DLL installed in wrong directory in cross toolchain)
gcc/ChangeLog:

	PR target/40125
	* config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
	t-dlldir{,-x} fragment for build and add it to tmake_file.
	(i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
	* Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
	* config/i386/t-dlldir: New file.
	(SHLIB_DLLDIR): Define.
	* config/i386/t-dlldir-x: New file.
	(SHLIB_DLLDIR): Define.
	* config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
	(SHLIB_INSTALL): Use it.

libgcc/ChangeLog:

	PR target/40125
	* configure.ac: Call ACX_NONCANONICAL_TARGET.
	(toolexecdir): Calculate and AC_SUBST.
	(toolexeclibdir): Likewise.
	* Makefile.in (target_noncanonical): Import.
	(toolexecdir): Likewise.
	(toolexeclibdir): Likewise.
	* configure: Regenerate.

From-SVN: r169274
2011-01-26 04:19:58 +00:00
Chung-Lin Tang
bff9926229 re PR target/47246 (Invalid immediate offset for Thumb VFP store regression)
2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>

	PR target/47246
	* config/arm/arm.c (thumb2_legitimate_index_p): Change the
	lower bound of the allowed Thumb-2 coprocessor load/store
	index range to -256. Add explaining comment.

From-SVN: r169271
2011-01-26 03:01:44 +00:00
Ian Lance Taylor
82c039077c godump.c (go_define): Improve lexing of macro expansion to only accept expressions which match Go spec.
* godump.c (go_define): Improve lexing of macro expansion to only
	accept expressions which match Go spec.

From-SVN: r169270
2011-01-26 02:03:03 +00:00
Dave Korn
d4dba752b0 ChangeLog: Add missing PR reference.
* gcc/c-family/ChangeLog: Add missing PR reference.
	* gcc/ChangeLog: Likewise.
	* gcc/cp/ChangeLog: Likewise.
	* gcc/testsuite/ChangeLog: Likewise.

From-SVN: r169269
2011-01-26 01:44:30 +00:00
Dave Korn
47ea1edfbc c.opt (-fkeep-inline-dllexport): New switch.
gcc/c-family/ChangeLog:

	* c.opt (-fkeep-inline-dllexport): New switch.

gcc/ChangeLog:

	* tree.c (handle_dll_attribute): Handle it.
	* doc/extend.texi (@item dllexport): Mention it.
	* doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.

gcc/cp/ChangeLog:

	* semantics.c (expand_or_defer_fn_1): Handle it.
	* decl2.c (decl_needed_p): Likewise.

gcc/testsuite/ChangeLog:

	* gcc.dg/dll-9a.c: New test file.
	* gcc.dg/dll-11.c: Likewise.
	* gcc.dg/dll-12.c: Likewise.
	* gcc.dg/dll-12a.c: Likewise.
	* gcc.dg/dll-11a.c: Likewise.
	* gcc.dg/dll-9.c: Likewise.
	* gcc.dg/dll-10.c: Likewise.
	* gcc.dg/dll-10a.c: Likewise.
	* g++.dg/ext/dllexport4a.cc: Likewise.
	* g++.dg/ext/dllexport4.C: Likewise.
	* g++.dg/ext/dllexport5.C: Likewise.
	* g++.dg/ext/dllexport5a.cc: Likewise.

From-SVN: r169268
2011-01-26 01:41:23 +00:00
Ian Lance Taylor
744f0946bc re PR tree-optimization/26854 (Inordinate compile times on large routines)
PR tree-optimization/26854
	* c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
	(decl_jump_unsafe): Move higher in file, with no other change.
	(bind): Set has_jump_unsafe_decl if appropriate.
	(update_label_decls): Test has_jump_unsafe_decl to avoid loop.
	(check_earlier_gotos): Likewise.
	(c_check_switch_jump_warnings): Likewise.

From-SVN: r169267
2011-01-26 01:26:48 +00:00
Joseph Myers
70187f017b * ja.po, sv.po: Update.
From-SVN: r169266
2011-01-26 01:21:21 +00:00
GCC Administrator
91eeb45c6c Daily bump.
From-SVN: r169265
2011-01-26 00:18:44 +00:00
Jonathan Wakely
5734f2b3e5 invoke.texi (Warning Options): Add missing hyphen.
2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* doc/invoke.texi (Warning Options): Add missing hyphen.
	(-fprofile-dir): Minor grammatical fixes.
	(-fbranch-probabilities): Likewise.

From-SVN: r169261
2011-01-25 22:38:14 +00:00
Alexandre Oliva
9bdbdcef9a re PR debug/45136 (-fcompare-debug failure with -Os -fschedule-insns)
PR debug/45136
PR debug/45130
* haifa-sched.c (get_ebb_head_tail): Move notes across boundary
debug insns.
(no_real_insns_p, schedule_block, set_priorities): Drop special
treatment of boundary debug insns.
* sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
insns.
* sched-ebb.c (schedule_ebbs): Don't skip debug insns.
* sched-int.h (DEBUG_INSN_SCHED_P): Remove.
(BOUNDARY_DEBUG_INSN_P): Likewise.
(SCHEDULE_DEBUG_INSN_P): Likewise.
* sched-rgn.c (init_ready_list): Drop special treatment of
boundary debug insns.
* final.c (rest_of_clean-state): Clear notes' BB.

From-SVN: r169260
2011-01-25 22:27:51 +00:00
Sebastian Pop
b28641995c Add testcase for PR46970.
2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46970
	* gcc.dg/graphite/pr46970.c: New.

From-SVN: r169257
2011-01-25 21:25:24 +00:00
Sebastian Pop
4a20f4fc02 Add testcase for PR46215.
2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46215
	* gcc.dg/graphite/pr46215.c: New.

From-SVN: r169256
2011-01-25 21:25:13 +00:00
Sebastian Pop
7f5b7dce54 Add testcase for PR46168.
2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46168
	* gcc.dg/graphite/pr46168.c: New.

From-SVN: r169255
2011-01-25 21:25:02 +00:00
Sebastian Pop
d152327691 Add testcase for PR43657.
2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/43657
	* gcc.dg/graphite/pr43657.c: New.

From-SVN: r169254
2011-01-25 21:24:53 +00:00
Sebastian Pop
254b785980 Add testcase for PR29832.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/29832
	* gfortran.dg/graphite/pr29832.f90: New.

From-SVN: r169253
2011-01-25 21:24:44 +00:00
Sebastian Pop
eaf52b4125 Add testcase for PR43567.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/43567
	* gcc.dg/graphite/pr43567.c: New.

From-SVN: r169252
2011-01-25 21:24:35 +00:00
Sebastian Pop
b305e3dab4 Remove the lambda framework and make -ftree-loop-linear an alias of -floop-interchange.
2011-01-17  Sebastian Pop  <sebastian.pop@amd.com>

toplev/
	* MAINTAINERS (linear loop transforms): Removed.

toplev/gcc/
	* Makefile.in (LAMBDA_H): Removed.
	(TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
	(OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
	lambda-trans.o, and tree-loop-linear.o.
	(lto-symtab.o): Remove dependence on LAMBDA_H.
	(tree-loop-linear.o): Remove rule.
	(lambda-mat.o): Same.
	(lambda-trans.o): Same.
	(lambda-code.o): Same.
	(tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
	(tree-vect-slp.o): Same.
	* hwint.h (gcd): Moved here.
	(least_common_multiple): Same.
	* lambda-code.c: Removed.
	* lambda-mat.c: Removed.
	* lambda-trans.c: Removed.
	* lambda.h: Removed.
	* tree-loop-linear.c: Removed.
	* lto-symtab.c: Do not include lambda.h.
	* omega.c (gcd): Removed.
	* passes.c (init_optimization_passes): Remove pass_linear_transform.
	* tree-data-ref.c (print_lambda_vector): Moved here.
	(lambda_vector_copy): Same.
	(lambda_matrix_copy): Same.
	(lambda_matrix_id): Same.
	(lambda_vector_first_nz): Same.
	(lambda_matrix_row_add): Same.
	(lambda_matrix_row_exchange): Same.
	(lambda_vector_mult_const): Same.
	(lambda_vector_negate): Same.
	(lambda_matrix_row_negate): Same.
	(lambda_vector_equal): Same.
	(lambda_matrix_right_hermite): Same.
	* tree-data-ref.h: Do not include lambda.h.
	(lambda_vector): Moved here.
	(lambda_matrix): Same.
	(dependence_level): Same.
	(lambda_transform_legal_p): Removed declaration.
	(lambda_collect_parameters): Same.
	(lambda_compute_access_matrices): Same.
	(lambda_vector_gcd): Same.
	(lambda_vector_new): Same.
	(lambda_vector_clear): Same.
	(lambda_vector_lexico_pos): Same.
	(lambda_vector_zerop): Same.
	(lambda_matrix_new): Same.
	* tree-flow.h (least_common_multiple): Removed declaration.
	* tree-parloops.c (lambda_trans_matrix): Moved here.
	(LTM_MATRIX): Same.
	(LTM_ROWSIZE): Same.
	(LTM_COLSIZE): Same.
	(LTM_DENOMINATOR): Same.
	(lambda_trans_matrix_new): Same.
	(lambda_matrix_vector_mult): Same.
	(lambda_transform_legal_p): Same.
	* tree-pass.h (pass_linear_transform): Removed declaration.
	* tree-ssa-loop.c (tree_linear_transform): Removed.
	(gate_tree_linear_transform): Removed.
	(pass_linear_transform): Removed.
	(gate_graphite_transforms): Make flag_tree_loop_linear an alias of
	flag_loop_interchange.

toplev/gcc/testsuite/
	* gfortran.dg/graphite/interchange-4.f: New.
	* gfortran.dg/graphite/interchange-5.f: New.

	* gcc.dg/tree-ssa/ltrans-1.c: Removed.
	* gcc.dg/tree-ssa/ltrans-2.c: Removed.
	* gcc.dg/tree-ssa/ltrans-3.c: Removed.
	* gcc.dg/tree-ssa/ltrans-4.c: Removed.
	* gcc.dg/tree-ssa/ltrans-5.c: Removed.
	* gcc.dg/tree-ssa/ltrans-6.c: Removed.
	* gcc.dg/tree-ssa/ltrans-8.c: Removed.
	* gfortran.dg/ltrans-7.f90: Removed.
	* gcc.dg/tree-ssa/data-dep-1.c: Removed.

	* gcc.dg/pr18792.c: -> gcc.dg/graphite/pr18792.c
	* gcc.dg/pr19910.c: -> gcc.dg/graphite/pr19910.c
	* gcc.dg/tree-ssa/20041110-1.c: -> gcc.dg/graphite/pr20041110-1.c
	* gcc.dg/tree-ssa/pr20256.c: -> gcc.dg/graphite/pr20256.c
	* gcc.dg/pr23625.c: -> gcc.dg/graphite/pr23625.c
	* gcc.dg/tree-ssa/pr23820.c: -> gcc.dg/graphite/pr23820.c
	* gcc.dg/tree-ssa/pr24309.c: -> gcc.dg/graphite/pr24309.c
	* gcc.dg/tree-ssa/pr26435.c: -> gcc.dg/graphite/pr26435.c
	* gcc.dg/pr29330.c: -> gcc.dg/graphite/pr29330.c
	* gcc.dg/pr29581-1.c: -> gcc.dg/graphite/pr29581-1.c
	* gcc.dg/pr29581-2.c: -> gcc.dg/graphite/pr29581-2.c
	* gcc.dg/pr29581-3.c: -> gcc.dg/graphite/pr29581-3.c
	* gcc.dg/pr29581-4.c: -> gcc.dg/graphite/pr29581-4.c
	* gcc.dg/tree-ssa/loop-27.c: -> gcc.dg/graphite/pr30565.c
	* gcc.dg/tree-ssa/pr31183.c: -> gcc.dg/graphite/pr31183.c
	* gcc.dg/tree-ssa/pr33576.c: -> gcc.dg/graphite/pr33576.c
	* gcc.dg/tree-ssa/pr33766.c: -> gcc.dg/graphite/pr33766.c
	* gcc.dg/pr34016.c: -> gcc.dg/graphite/pr34016.c
	* gcc.dg/tree-ssa/pr34017.c: -> gcc.dg/graphite/pr34017.c
	* gcc.dg/tree-ssa/pr34123.c: -> gcc.dg/graphite/pr34123.c
	* gcc.dg/tree-ssa/pr36287.c: -> gcc.dg/graphite/pr36287.c
	* gcc.dg/tree-ssa/pr37686.c: -> gcc.dg/graphite/pr37686.c
	* gcc.dg/pr42917.c: -> gcc.dg/graphite/pr42917.c
	* gfortran.dg/loop_nest_1.f90: -> gfortran.dg/graphite/pr29290.f90
	* gfortran.dg/pr29581.f90: -> gfortran.dg/graphite/pr29581.f90
	* gfortran.dg/pr36286.f90: -> gfortran.dg/graphite/pr36286.f90
	* gfortran.dg/pr36922.f: -> gfortran.dg/graphite/pr36922.f
	* gfortran.dg/pr39516.f: -> gfortran.dg/graphite/pr39516.f

From-SVN: r169251
2011-01-25 21:24:23 +00:00
Jakub Jelinek
6bdfdb96ee re PR tree-optimization/47265 (Error: SSA name in freelist but still referenced)
PR tree-optimization/47265
	PR tree-optimization/47443
	* tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
	if name still has some uses.

	* gcc.c-torture/compile/pr47265.c: New test.
	* gcc.dg/pr47443.c: New test.

From-SVN: r169250
2011-01-25 20:50:56 +01:00
Martin Jambor
e4cba915b8 re PR tree-optimization/47382 (g++.dg/ipa/devirt-d-1.C FAILs with -finline-functions)
2011-01-25  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/47382
	* gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
	(gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.

	* testsuite/g++.dg/torture/pr47382.C: New test.
	* testsuite/g++.dg/opt/devirt1.C: Xfail.

From-SVN: r169245
2011-01-25 18:08:47 +01:00
Joel Sherrill
f822b8eab1 m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to sjlj_except_unwind_info.
2011-01-25  Joel Sherrill <joel.sherrill@oarcorp.com>

	* config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
	sjlj_except_unwind_info.

From-SVN: r169242
2011-01-25 16:43:37 +00:00
Richard Guenther
194313e274 re PR tree-optimization/47426 (wrong code with -O2 -fipa-pta)
2011-01-25  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47426
	* tree-ssa-structalias.c (ipa_pta_execute): Make externally
	visible functions results escape.

	* gcc.dg/torture/pr47426-1.c: New testcase.
	* gcc.dg/torture/pr47426-2.c: Likewise.

From-SVN: r169241
2011-01-25 16:38:26 +00:00
Jakub Jelinek
147a0bcfc7 re PR target/45701 (Fail to prefer using r3 for padding a push/pop multiple to 8-byte alignment)
PR target/45701
	* config/arm/arm.c (any_sibcall_uses_r3): New function.
	(arm_get_frame_offsets): Use it.

2011-01-25  Yao Qi  <yao@codesourcery.com>

        PR target/45701
        * gcc.target/arm/pr45701-1.c: New test.
        * gcc.target/arm/pr45701-2.c: New test.
	* gcc.target/arm/pr45701-3.c: New test.

From-SVN: r169240
2011-01-25 17:22:34 +01:00
Sebastian Pop
db963b5287 Fix PR47271: only if-convert full writes.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
	    Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/47271
	* tree-if-conv.c (bb_postdominates_preds): New.
	(if_convertible_bb_p): Call bb_postdominates_preds.
	(if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
	(predicate_scalar_phi): Call bb_postdominates_preds.

	* gcc.dg/tree-ssa/ifc-pr47271.c: New.

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

From-SVN: r169233
2011-01-25 14:51:23 +00:00
Nick Clifton
bcddd3b99c rx.h (LIBCALL_VALUE): Do not promote complex types.
* config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
	* config/rx/rx.c (rx_function_value): Likewise.
	(rx_promote_function_mode): Likewise.
	(gen_safe_add): Place an outsized immediate value inside an UNSPEC
	in order to make it legitimate.
	* config/rx/rx.md (adddi3_internal): If the second operand is a
	MEM make sure that the first operand is the same as the result
	register.
	(addsi3_unspec): Delete.
	(subdi3): Do not accept immediate operands.
	(subdi3_internal): Likewise.

	* gcc.target/rx/builtins.c: Allow -fipa-cp-clone.
	(saturate_add): Delete.
	(exchange): Delete.
	(main): Do not run saturate_add.
	(set_interrupts): Delete.

From-SVN: r169232
2011-01-25 14:32:52 +00:00
Jeff Law
7e6cb02214 re PR rtl-optimization/37273 (IRA does not re-materializes addresses (loads from the TOC))
PR rtl-optimization/37273
	* ira-costs.c (scan_one_insn): Detect constants living in memory and
	handle them like argument loads from stack slots.  Do not double
	count memory for memory constants and argument loads from stack slots.

From-SVN: r169231
2011-01-25 07:10:46 -07:00
Tobias Burnus
315d905fd5 re PR fortran/47448 (Invalid check for ASSIGNMENT(=))
2011-01-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47448
        * interface.c (gfc_check_operator_interface): Fix
        defined-assignment check.

2011-01-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47448
        * gfortran.dg/redefined_intrinsic_assignment_2.f90: New.

From-SVN: r169228
2011-01-25 14:30:32 +01:00
Jakub Jelinek
9ffa621ead re PR tree-optimization/47427 (ICE in process_constraint, at tree-ssa-structalias.c:2901)
PR tree-optimization/47427
	PR tree-optimization/47428
	* tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
	coalesce if the new root var would be TREE_READONLY.

	* gcc.c-torture/compile/pr47427.c: New test.
	* gcc.c-torture/compile/pr47428.c: New test.

From-SVN: r169226
2011-01-25 13:01:54 +01:00
Richard Guenther
ae5b7e39b6 re PR tree-optimization/47411 (Bootstrap failure on x86-64/Darwin)
2011-01-25  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47411
	* gcc.dg/torture/pr47411.c: New testcase.

From-SVN: r169225
2011-01-25 10:26:20 +00:00
Richard Guenther
5bd6e6526c re PR rtl-optimization/47414 (wrong code with -O -freorder-blocks -fschedule-insns2 -fno-early-inlining -fstrict-aliasing -ftracer)
2011-01-25  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47414
	* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
	correct type for TBAA.

From-SVN: r169223
2011-01-25 09:55:54 +00:00
Sebastian Pop
7c48ea6910 Do not use a data ref with indices invalid in the loop of the close_phi.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
	(close_phi_written_to_memory): Call for_each_index with
	dr_indices_valid_in_loop.

	* gfortran.dg/graphite/id-24.f: New.
	* gfortran.dg/graphite/id-25.f: New.

From-SVN: r169220
2011-01-25 06:48:52 +00:00
Sebastian Pop
38013f25bc Only copy PBB_DOMAIN when it is initialized.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
	when it is initialized.

	* gfortran.dg/graphite/id-23.f: New.

From-SVN: r169219
2011-01-25 06:48:42 +00:00
Sebastian Pop
5c640e296a Pass to dr_analyze_indices the analysis loop for subscripts.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
	call to graphite_find_data_references_in_stmt.
	* graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
	(try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
	call to graphite_find_data_references_in_stmt.
	(analyze_drs_in_stmts): Same.
	* tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
	in which the scalar analysis of indices is performed.
	(create_data_ref): Same.  Update call to dr_analyze_indices.
	(find_data_references_in_stmt): Update call to create_data_ref.
	(graphite_find_data_references_in_stmt): Same.
	* tree-data-ref.h (graphite_find_data_references_in_stmt): Update
	declaration.
	(create_data_ref): Same.
	* tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
	call to create_data_ref.

From-SVN: r169218
2011-01-25 06:48:32 +00:00
Sebastian Pop
ac53c0698a Move rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (build_poly_scop): Move
	rewrite_commutative_reductions_out_of_ssa before
	find_scop_parameters.

From-SVN: r169217
2011-01-25 06:48:20 +00:00
Sebastian Pop
64c69d8cd1 Patch not merged, update ChangeLog.graphite.
From-SVN: r169216
2011-01-25 06:48:11 +00:00
Sebastian Pop
cc2c5a6674 Patch not merged, update ChangeLog.graphite.
From-SVN: r169214
2011-01-25 06:47:46 +00:00
Sebastian Pop
3d17df1562 Do not create the temporary array for reductions into VAR_DECL, PARM_DECL, and RESULT_DECL.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
	VAR_DECL, PARM_DECL, and RESULT_DECL.

	* gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.

From-SVN: r169213
2011-01-25 06:47:34 +00:00
Sebastian Pop
c513da01e3 Allow several reductions in a reduction PBB.
2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-dependences.c (reduction_dr_1): Allow several reductions
	in a reduction PBB.
	* graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
	that have already been marked as PBB_IS_REDUCTION.

From-SVN: r169212
2011-01-25 06:47:21 +00:00