gcc.git
14 years agore PR rtl-optimization/45051 (gcc.c-torture/execute/builtins/abs-2.c and abs-3.c...
Bernd Schmidt [Tue, 27 Jul 2010 09:34:51 +0000 (09:34 +0000)]
re PR rtl-optimization/45051 (gcc.c-torture/execute/builtins/abs-2.c and abs-3.c due to "track subwords of DImode allocnos")

PR rtl-optimization/45051
* reload1.c (delete_output_reload): Use refers_to_regno_p rather
than reg_mentioned_p.

From-SVN: r162558

14 years agore PR fortran/40873 (-fwhole-file -fwhole-program: Wrong decls cause too much to...
Tobias Burnus [Tue, 27 Jul 2010 08:44:22 +0000 (10:44 +0200)]
re PR fortran/40873 (-fwhole-file -fwhole-program: Wrong decls cause too much to be optimized away)

2010-07-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40873
        * trans-decl.c (gfc_get_extern_function_decl): Fix generation
        for functions which are later in the same file.
        (gfc_create_function_decl, build_function_decl,
        build_entry_thunks): Add global argument.
        * trans.c (gfc_generate_module_code): Update
        gfc_create_function_decl call.
        * trans.h (gfc_create_function_decl): Update prototype.
        * resolve.c (resolve_global_procedure): Also resolve for
        IFSRC_IFBODY.

2010-07-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40873
        * gfortran.dg/whole_file_22.f90: New test.
        * gfortran.dg/whole_file_23.f90: New test.

From-SVN: r162557

14 years agoDaily bump.
GCC Administrator [Tue, 27 Jul 2010 00:17:23 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r162554

14 years agopostreload.c (reload_combine_recognize_const_pattern): Move test for limiting the...
Bernd Schmidt [Tue, 27 Jul 2010 00:14:26 +0000 (00:14 +0000)]
postreload.c (reload_combine_recognize_const_pattern): Move test for limiting the insn movement to the right scope.

* postreload.c (reload_combine_recognize_const_pattern): Move test
for limiting the insn movement to the right scope.

From-SVN: r162550

14 years agore PR target/44132 (emutls is broken under a range of circumstances.)
Richard Henderson [Mon, 26 Jul 2010 22:53:50 +0000 (15:53 -0700)]
re PR target/44132 (emutls is broken under a range of circumstances.)

PR target/44132
Emulated TLS rewrite.

From-SVN: r162549

14 years ago14220.cc: XFAIL on Solaris 9/x86, 32-bit Solaris 10/x86 and 64-bit Solaris 10/SPARC.
Rainer Orth [Mon, 26 Jul 2010 20:54:57 +0000 (20:54 +0000)]
14220.cc: XFAIL on Solaris 9/x86, 32-bit Solaris 10/x86 and 64-bit Solaris 10/SPARC.

* testsuite/22_locale/num_put/put/char/14220.cc: XFAIL on Solaris
9/x86, 32-bit Solaris 10/x86 and 64-bit Solaris 10/SPARC.
* testsuite/22_locale/num_put/put/wchar_t/14220.cc: XFAIL on
Solaris 9/x86 and 32-bit Solaris 10/x86.

* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
Only XFAIL on Solaris 8 and 9.
* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc:
Likewise.

* testsuite/ext/enc_filebuf/char/13598.cc: XFAIL before Solaris 11.

From-SVN: r162545

14 years agolto-streamer.h (struct lto_file_decl_data): Mark resolutions with GTY((skip)).
Jan Hubicka [Mon, 26 Jul 2010 20:51:29 +0000 (22:51 +0200)]
lto-streamer.h (struct lto_file_decl_data): Mark resolutions with GTY((skip)).

* lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
GTY((skip)).

From-SVN: r162544

14 years agotarget.def (output_source_filename): New hook.
Anatoly Sokolov [Mon, 26 Jul 2010 18:00:17 +0000 (22:00 +0400)]
target.def (output_source_filename): New hook.

* target.def (output_source_filename): New hook.
* doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
* doc/tm.texi: Regenerate.
* toplev.c (output_file_directive) Remove function.
* toplev.h (output_file_directive) Remove.
* output.h (default_asm_output_source_filename,
output_file_directive): Declare.
* varasm.h (default_asm_output_source_filename,
output_file_directive): New functions.

* config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
* config/mips/mips-protos.h (mips_output_filename): Remove.
* config/mips/mips.c (mips_output_filename): Make Static.
(TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.

From-SVN: r162542

14 years agopr44900.C: Use dg-require-effective-target sse_runtime.
Rainer Orth [Mon, 26 Jul 2010 16:23:01 +0000 (16:23 +0000)]
pr44900.C: Use dg-require-effective-target sse_runtime.

* g++.dg/torture/pr44900.C: Use dg-require-effective-target
sse_runtime.
* gcc.dg/attr-weak-hidden-1a.c: Use dg-require-weak,
dg-require-visibility.

From-SVN: r162541

14 years agolibgomp.texi: Add function keyword to a couple of Fortran interfaces...
Jakub Jelinek [Mon, 26 Jul 2010 16:22:18 +0000 (18:22 +0200)]
libgomp.texi: Add function keyword to a couple of Fortran interfaces...

* libgomp.texi: Add function keyword to a couple of Fortran
interfaces, use integer instead of int for Fortran.

From-SVN: r162540

14 years agore PR tree-optimization/43784 (-Os -fkeep-inline-functions causes FAIL: gcc.c-torture...
Richard Guenther [Mon, 26 Jul 2010 16:01:55 +0000 (16:01 +0000)]
re PR tree-optimization/43784 (-Os -fkeep-inline-functions causes FAIL: gcc.c-torture/execute/builtins/pr22237.c execution)

2010-07-26  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43784
* tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
if the destination is used by the call.

* gcc.c-torture/execute/pr43784.c: New testcase.
* g++.dg/torture/pr43784.C: Likewise.

From-SVN: r162539

14 years agolibgomp.texi: Fix spelling and pasto problems throughout.
Aldy Hernandez [Mon, 26 Jul 2010 15:26:17 +0000 (15:26 +0000)]
libgomp.texi: Fix spelling and pasto problems throughout.

        * libgomp.texi: Fix spelling and pasto problems throughout.
        Adjust prototypes to match code.

From-SVN: r162538

14 years agore PR tree-optimization/45073 (gfortran.dg/assumed_charlen_function_3.f90 ICEs with...
Richard Guenther [Mon, 26 Jul 2010 14:48:43 +0000 (14:48 +0000)]
re PR tree-optimization/45073 (gfortran.dg/assumed_charlen_function_3.f90 ICEs with -fprofile-generate)

2010-07-26  Richard Guenther  <rguenther@suse.de>

PR middle-end/45073
* gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
SSA updating on being in SSA form.

From-SVN: r162537

14 years agore PR tree-optimization/45056 (ICE: in refs_may_alias_p_1, at tree-ssa-alias.c:1023)
Richard Guenther [Mon, 26 Jul 2010 13:29:14 +0000 (13:29 +0000)]
re PR tree-optimization/45056 (ICE: in refs_may_alias_p_1, at tree-ssa-alias.c:1023)

2010-07-26  Richard Guenther  <rguenther@suse.de>

PR middle-end/45056
* gimple-fold.c (fold_stmt_1): Also fold references in
debug stmts.

* g++.dg/pr45056.C: New testcase.

From-SVN: r162536

14 years agore PR tree-optimization/45071 (ICE: tree check: expected ssa_name, have integer_cst...
Richard Guenther [Mon, 26 Jul 2010 12:48:37 +0000 (12:48 +0000)]
re PR tree-optimization/45071 (ICE: tree check: expected ssa_name, have integer_cst in inhibit_phi_insertion, at tree-ssa-pre.c:3278 with -ftree-pre -ftree-vectorize)

2010-07-26  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45071
* tree-ssa-sccvn.c  (vn_reference_maybe_forwprop_address): Always
adjust op->opcode.

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

From-SVN: r162534

14 years agore PR fortran/45066 (ICE in namelist read in snapshot of 7/24/2010)
Tobias Burnus [Mon, 26 Jul 2010 10:30:45 +0000 (12:30 +0200)]
re PR fortran/45066 (ICE in namelist read in snapshot of 7/24/2010)

2010-07-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/45066
        * trans-io.c (build_dt): Use NULL_TREE rather than NULL
        for call to transfer_namelist_element.
        * trans-decl.c (gfc_get_symbol_decl): Also set sym->backend_decl
        for -fwhole-file.

2010-07-26  Tobias Burnus  <burnus@net-b.de>

        PR fortran/45066
        * gfortran.dg/namelist_62.f90: New.

From-SVN: r162532

14 years agoAdd file forgotten in commit Rev. 162500
Tobias Burnus [Mon, 26 Jul 2010 09:53:19 +0000 (11:53 +0200)]
Add file forgotten in commit Rev. 162500

2010-07-24  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40011
        * gfortran.dg/whole_file_21.f90: New.

From-SVN: r162531

14 years agoconfigure.ac: Support all v850 targets.
Naveen.H.S [Mon, 26 Jul 2010 09:39:04 +0000 (09:39 +0000)]
configure.ac: Support all v850 targets.

        * configure.ac: Support all v850 targets.
        * configure: Regenerate.

        * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
        save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
        save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
        save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
        save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
        save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
        save_r31, return_r31, save_interrupt, return_interrupt,
        save_all_interrupt, return_all_interrupt, L_save_r2_r31,
        L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
        L_save_##START##_r31c, L_callt_save_r31c: Updated as per the
        new ABI requirements.
        save_r6_r9, L_callt_save_r6_r9: Remove.
        * config/v850/predicates.md (even_reg_operand, disp23_operand,
        const_float_1_operand const_float_0_operand): New Predicates.
        (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
        pattern_is_ok_for_epilogue): Update as per the ABI requirements.
        * config/v850/t-v850: Update multilibs for new target variants.
        (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
        * config/v850/t-v850e: Likewise.
        * config/v850/v850.c (v850_issue_rate): New.
        (v850_strict_argument_naming): New.
        (function_arg): Modify to generate a different ABI.
        (print_operand): Update case 'z' to support float modes.
        (output_move_single): Modify to generate appropriate and better
        assembly.
        (v850_float_z_comparison_operator, v850_select_cc_mode,
        v850_float_nz_comparison_operator,  v850_gen_float_compare,
        v850_gen_compare): New functions to support comparison of
        float values.
        (ep_memory_offset): Add support for V850E2 targets.
        (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
        (INTERRUPT_REGPARM_NUM): Remove.
        (compute_register_save_size): Add extra case to save/restore
        long call.
        (use_prolog_function): New function to support prologue.
        (expand_prologue): Add support for V850E2 targets and modified
        as per the current ABI requirements.
        (expand_epilogue): Likewise.
        (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
        (construct_save_jarl): Likewise.
        (construct_dispose_instruction): Update as per the current ABI
        requirements.
        (construct_prepare_instruction): Likewise.
        * config/v850/v850.h(TARGET_CPU_DEFAULT): Add target predefines.
        (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
        (CPP_SPEC): Updated to support v850e2 targets.
        (STRICT_ALIGNMENT): Modified.
        (FIRST_PSEUDO_REGISTER): Updated to add even registers.
        (FIXED_REGISTERS): Likewise.
        (CALL_USED_REGISTERS): Likewise.
        (CONDITIONAL_REGISTER_USAGE): Updated.
        (HARD_REGNO_MODE_OK): Updated.
        (reg_class): Updated to add even registers.
        (REG_CLASS_NAMES): Likewise.
        (REG_CLASS_CONTENTS): Likewise.
        (REGNO_REG_CLASS): Updated for CC registers.
        (REG_CLASS_FROM_LETTER): Added support for even registers.
        (REGNO_OK_FOR_BASE_P): Updated for CC registers.
        (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
        ARG_POINTER_REGNUM): Updated.
        (FUNCTION_ARG_ADVANCE): Define.
        (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
        (OUTGOING_REG_PARM_STACK_SPACE): Remove.
        (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
        (GO_IF_LEGITIMATE_ADDRESS): Updated.
        (SELECT_CC_MODE): Define.
        (REGISTER_NAMES): Updated to add psw and fcc registers.
        (ADDITIONAL_REGISTER_NAMES): Updated.
        (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
        (JUMP_TABLES_IN_TEXT_SECTION): Updated.
        * config/v850/v850.md (define_constants): Define new constants.
        (type): Update store,bit1,macc,div,fpu and single attributes.
        (cpu): New attribute.
        (cc): Add set_z attribute.
        (unsign23byte_load, sign23byte_load, unsign23hword_load,
        sign23hword_load, 23word_load, 23byte_store, 23hword_store,
        23word_store): New instructions for 23-bit displacement load and
        store.
        (movqi_internal, movhi_internal): Update the attributes.
        (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
        (movsi_internal_v850e, movsi_internal, movsf_internal): Update
        the attributes.
        (v850_tst1): Modified using CC_REGNUM.
        (tstsi): Remove.
        (cmpsi): Modified as define_expand from define_insn.
        (cmpsi_insn, cmpsf, cmpdf): New instructions.
        (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
        udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
        v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
        one_cmplsi2): Clobber the CC_REGNUM register.
        (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
        v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
        v850_not1_3, xorsi3, one_cmplsi2): Update the attributes
        accordingly.
        (setf_insn, set_z_insn, set_nz_insn): New instructions for
        v850e2v3 target.
        (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
        (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
        targets.
        (sasf_1, sasf_2): Remove.
        (sasf): New instruction.
        (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
        targets. CC_REGNUM register is clobbered and attributes are
        updated.
        (branch_z_normal, branch_z_invert, branch_nz_normal,
        branch_nz_invert): New branch related instructions.
        (jump): Updated the attributes.
        (switch): Update to support new targets. CC_REGNUM register is
        clobbered and attributes are updated.
        (call_internal_short, call_internal_long, call_value_internal_short,
        call_value_internal_long): Updated the attributes.
        (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
        clobbered and attributes are updated.
        (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
        Update to support new targets. CC_REGNUM register is clobbered.
        (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
        instructions.
        (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
        are updated.
        (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
        divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
        negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
        floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
        rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
        cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
        cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
        cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
        movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
        movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
        point instructions defined for V850e2v3 target.
        (callt_save_interrupt, callt_return_interrupt, return_interrupt):
        Add support for V850E2 targets and CC_REGNUM register is clobbered.
        (callt_save_all_interrupt, callt_restore_all_interrupt): Add
        support for new targets.
        * config/v850/v850-modes.def: New file.
        * config/v850/v850.opt(mstrict-align): Remove.
        (mno-strict-align, mjump-tables-in-data-section, mv850e2,
        mv850e2v3): New command line options for V850.
        * config.gcc: Update the newly added files.
        * doc/invoke.texi: Update the newly added command line options for
        V850 target.

From-SVN: r162530

14 years agore PR tree-optimization/45052 (volatile ignored)
Richard Guenther [Mon, 26 Jul 2010 09:26:43 +0000 (09:26 +0000)]
re PR tree-optimization/45052 (volatile ignored)

2010-07-26  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45052
* ipa-pure-const.c (check_stmt): Check volatileness.

From-SVN: r162528

14 years agopr45017.c: Move ...
Richard Guenther [Mon, 26 Jul 2010 09:16:01 +0000 (09:16 +0000)]
pr45017.c: Move ...

2010-07-26  Richard Guenther  <rguenther@suse.de>

* gcc.c-torture/execute/pr45017.c: Move ...
* gcc.dg/torture/pr45017.c: ... here.  Restrict to i?86 and x86_64.

From-SVN: r162527

14 years agoDaily bump.
GCC Administrator [Mon, 26 Jul 2010 00:17:07 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r162525

14 years agore PR target/44707 (operand requires impossible reload)
Eric Botcazou [Sun, 25 Jul 2010 21:46:32 +0000 (21:46 +0000)]
re PR target/44707 (operand requires impossible reload)

PR target/44707
* config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
* config/sparc/sparc.c: Include reload.h.
(legitimize_tls_address): Rename into...
(sparc_legitimize_tls_address): ...this.
(legitimize_pic_address): Rename into...
(sparc_legitimize_pic_address): ...this.
(sparc_expand_move): Adjust to above renaming.
(sparc_tls_referenced_p): Likewise.
(sparc_legitimize_tls_address): Likewise.
(sparc_legitimize_pic_address): Likewise.
(sparc_legitimize_address): Likewise.
(sparc_output_mi_thunk): Likewise.
(sparc_legitimize_reload_address): New global function.  Recognize
(lo_sum (high ...) ...) patterns generated by earlier passes.
* config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.

From-SVN: r162521

14 years agore PR target/44484 (revision 160260 caused sparc64 testsuite failures)
Eric Botcazou [Sun, 25 Jul 2010 21:32:16 +0000 (21:32 +0000)]
re PR target/44484 (revision 160260 caused sparc64 testsuite failures)

PR target/44484
* config/sparc/predicates.md (memory_reg_operand): Delete.
* config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
(*sync_compare_and_swap): Encode the address form in the pattern.
(*sync_compare_and_swapdi_v8plus): Likewise.

From-SVN: r162520

14 years agore PR fortran/40628 (Assignment using "= trim(string)": Optimize "trim" away)
Thomas Koenig [Sun, 25 Jul 2010 19:31:37 +0000 (19:31 +0000)]
re PR fortran/40628 (Assignment using "= trim(string)": Optimize "trim" away)

2010-07-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/40628
* Make-lang.in:  Add fortran/frontend-passes.o.
* gfortran.h:  Add prototype for gfc_run_passes.
* resolve.c (gfc_resolve):  Call gfc_run_passes.
* frontend-passes.c:  New file.

2010-07-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/40628
* trim_optimize_1.f90:  New test.
* character_comparision_1.f90:  New test.

From-SVN: r162519

14 years agore PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuat...
Jerry DeLisle [Sun, 25 Jul 2010 19:10:09 +0000 (19:10 +0000)]
re PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuation character is truncated)

2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/42852
* scanner.c (gfc_next_char_literal): Enable truncation warning for
free-form '&'.

From-SVN: r162518

14 years agoFix out of order log entry from 162516 commit.
Jerry DeLisle [Sun, 25 Jul 2010 19:07:58 +0000 (19:07 +0000)]
Fix out of order log entry from 162516 commit.

From-SVN: r162517

14 years agore PR fortran/44660 (ICE in resolve_equivalence())
Mikael Morin [Sun, 25 Jul 2010 17:01:15 +0000 (17:01 +0000)]
re PR fortran/44660 (ICE in resolve_equivalence())

2010-07-25  Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/44660
* gfortran.h (gfc_namespace): New field old_equiv.
(gfc_free_equiv_until): New prototype.
* match.c (gfc_free_equiv_until): New, renamed from gfc_free_equiv with
a parameterized stop condition.
(gfc_free_equiv): Use gfc_free_equiv_until.
* parse.c (next_statement): Save equivalence list.
(reject_statement): Restore equivalence list.

From-SVN: r162516

14 years agore PR libstdc++/45060 (Wreorder warning in bits/hashtable.h)
Jonathan Wakely [Sun, 25 Jul 2010 16:44:38 +0000 (16:44 +0000)]
re PR libstdc++/45060 (Wreorder warning in bits/hashtable.h)

2010-07-25  Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/45060
* include/bits/hashtable.h (_Hashtable::_Hashtable(_Hashtable&&)):
Reorder mem-initializers.

From-SVN: r162515

14 years agore PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuat...
Jerry DeLisle [Sun, 25 Jul 2010 15:35:04 +0000 (15:35 +0000)]
re PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuation character is truncated)

2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/42852
* gfortran.dg/wtruncate_fix.f: New test.

From-SVN: r162514

14 years agore PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuat...
Jerry DeLisle [Sun, 25 Jul 2010 15:07:45 +0000 (15:07 +0000)]
re PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuation character is truncated)

2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/42852
* scanner.c (gfc_next_char_literal): Move check for truncation earlier
in the function so that it does not get missed by early exits.
(load_line): Add checks for quoted strings and free form comments to
disable warnings on comments. Add check for ampersand as first
character after truncation and don't warn for this case, but warn if
there are subsequent non-whitespace characters.

From-SVN: r162512

14 years agoSupport "//" as assembler comments.
H.J. Lu [Sun, 25 Jul 2010 14:54:03 +0000 (14:54 +0000)]
Support "//" as assembler comments.

2010-07-25  H.J. Lu  <hongjiu.lu@intel.com>

PR testsuite/45068
* g++.dg/debug/dwarf2/nested-2.C: Support "//" as comments.

From-SVN: r162511

14 years agoDaily bump.
GCC Administrator [Sun, 25 Jul 2010 00:17:57 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r162507

14 years agoinstall.texi (Specific, [...]): Adjust to recent changes.
Gerald Pfeifer [Sat, 24 Jul 2010 20:00:49 +0000 (20:00 +0000)]
install.texi (Specific, [...]): Adjust to recent changes.

* doc/install.texi (Specific, *-*-freebsd*): Adjust to recent
changes.  Streamline paragraph on compatibility with the system
compiler.

From-SVN: r162503

14 years agore PR lto/43788 (ICE: verify_stmts failed: statement marked for throw, but doesn't)
Richard Guenther [Sat, 24 Jul 2010 16:58:19 +0000 (16:58 +0000)]
re PR lto/43788 (ICE: verify_stmts failed: statement marked for throw, but doesn't)

2010-07-24  Richard Guenther  <rguenther@suse.de>

PR lto/43788
* g++.dg/lto/20100724-1_0.C: New testcase.

From-SVN: r162502

14 years agore PR lto/43212 ([LTO] error: control flow in the middle of basic block)
Richard Guenther [Sat, 24 Jul 2010 16:49:38 +0000 (16:49 +0000)]
re PR lto/43212 ([LTO] error: control flow in the middle of basic block)

2010-07-24  Richard Guenther  <rguenther@suse.de>

PR lto/43212
* gcc.dg/lto/20100724-1_0.c: New testcase.
* gcc.dg/lto/20100724-1_1.c: Likewise.

From-SVN: r162501

14 years agore PR fortran/40011 (Problems with -fwhole-file)
Tobias Burnus [Sat, 24 Jul 2010 16:32:11 +0000 (18:32 +0200)]
re PR fortran/40011 (Problems with -fwhole-file)

2010-07-24  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40011
        * parse.c (gfc_parse_file): Do not override
        gfc_global_ns_list items.

2010-07-24  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40011
        * gfortran.dg/whole_file_21.f90: New.

        * gfortran.dg/integer_exponentiation_3.F90: Use
        -ffloat-store only for i?86/x86-64 -m32.

From-SVN: r162500

14 years agore PR middle-end/45035 (FAIL: gcc.dg/guality/pr36728-2.c)
Steven Bosscher [Sat, 24 Jul 2010 12:37:51 +0000 (12:37 +0000)]
re PR middle-end/45035 (FAIL: gcc.dg/guality/pr36728-2.c)

PR middle-end/45035
* alias.c (true_dependence_1): Fix thinko in merge of old
true_dependence and canon_true_dependence.

From-SVN: r162499

14 years agoentry_13.f90: Use abs() > eps instead of "/=".
Tobias Burnus [Sat, 24 Jul 2010 07:47:43 +0000 (09:47 +0200)]
entry_13.f90: Use abs() > eps instead of "/=".

2010-07-24  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/entry_13.f90: Use abs() > eps instead of "/=".
        * gfortran.dg/integer_exponentiation_3.F90: Use -ffloat-store.

        Missed files from previous commit:

        * gfortran.dg/func_decl_5.f90: New.
        * gfortran.dg/intrinsic_std_6.f90: New.

From-SVN: r162498

14 years agolto-streamer-out.c (write_symbol): Fix visibilities of external references.
Jan Hubicka [Sat, 24 Jul 2010 01:04:29 +0000 (03:04 +0200)]
lto-streamer-out.c (write_symbol): Fix visibilities of external references.

* lto-streamer-out.c (write_symbol): Fix visibilities of external
references.

From-SVN: r162497

14 years agoDaily bump.
GCC Administrator [Sat, 24 Jul 2010 00:17:11 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r162496

14 years agoFix violations of self-assignment check in GCC source.
Le-Chun Wu [Fri, 23 Jul 2010 22:20:45 +0000 (22:20 +0000)]
Fix violations of self-assignment check in GCC source.

From-SVN: r162492

14 years agore PR fortran/45045 (Named COMMON with different size: No warning with -fwhole-file)
Tobias Burnus [Fri, 23 Jul 2010 22:15:51 +0000 (00:15 +0200)]
re PR fortran/45045 (Named COMMON with different size: No warning with -fwhole-file)

gcc/fortran/
2010-07-24  Tobias Burnus  <burnus@net-b.de>

        * options.c (gfc_init_options): Enable -fwhole-file by default.
        * interface.c (compare_parameter): Assume a Hollerith constant is
        compatible with all other argument types.

libgomp/
2010-07-24  Tobias Burnus  <burnus@net-b.de>

        * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
        silence -fwhole-file warning.

gcc/testsuite/
2010-07-24  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/func_decl_4.f90: Split test into two ...
        * gfortran.dg/func_decl_5.f90: ... parts.
        * gfortran.dg/common_resize_1.f: xfail two warnings (cf. PR 45045).
        * gfortran.dg/bounds_temporaries_1.f90: Add new dg-warning.
        * gfortran.dg/global_references_1.f90: Add new dg-warning.
        * gfortran.dg/generic_actual_arg.f90: Add new dg-warning.
        * gfortran.dg/entry_17.f90: Remove no-longer needed dg-warning.
        * gfortran.dg/used_before_typed_4.f90: Add new dg-warning.
        * gfortran.dg/bounds_check_strlen_1.f90: Add new dg-warning.
        * gfortran.dg/intrinsic_std_1.f90: Split by remove tree dump ...
        * gfortran.dg/intrinsic_std_6.f90: ... and create a dump test.
        * gfortran.dg/sizeof.f90: Make test valid.
        * gfortran.dg/pr20865.f90: Add new dg-error.
        * gfortran.dg/integer_exponentiation_2.f90: Add new dg-warnings.
        * gfortran.dg/g77/19990218-0.f: Ditto.
        * gfortran.dg/g77/19990218-1.f: Ditto.
        * gfortran.dg/g77/970625-2.f: Ditto.
        * gfortran.dg/pr37243.f: Fix function declaration.
        * gfortran.dg/use_only_1.f90: Fix implicit typing.
        * gfortran.dg/loc_1.f90: Fix pointer datatype.

From-SVN: r162491

14 years agoutils.c (update_pointer_to): In the unconstrained array case, merge the alias set...
Eric Botcazou [Fri, 23 Jul 2010 20:19:55 +0000 (20:19 +0000)]
utils.c (update_pointer_to): In the unconstrained array case, merge the alias set of the old pointer type.

* gcc-interfaces/utils.c (update_pointer_to): In the unconstrained
array case, merge the alias set of the old pointer type.

From-SVN: r162488

14 years agore PR fortran/44945 (Wrong decl for module vars / FAIL: gfortran.dg/char_array_struct...
Tobias Burnus [Fri, 23 Jul 2010 20:13:07 +0000 (22:13 +0200)]
re PR fortran/44945 (Wrong decl for module vars / FAIL: gfortran.dg/char_array_structure_constructor.f90)

2010-07-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44945
        * trans-decl.c (gfc_get_symbol_decl): Use module decl with
        -fwhole-file also for derived types.
        * trans-types.c (copy_dt_decls_ifequal): Remove static and
        rename to gfc_copy_dt_decls_ifequal.
        (gfc_get_derived_type): Update call.
        * trans-types.h (gfc_copy_dt_decls_ifequal): Add prototype.

2010-07-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44945
        * gfortran.dg/char_array_structure_constructor.f90: Add
        -fwhole-file as dg-option as it otherwise fails on some
        systems.

From-SVN: r162487

14 years agore PR fortran/45030 (-fwhole-file: Bogus error message with ENTRY and different resul...
Tobias Burnus [Fri, 23 Jul 2010 20:07:30 +0000 (22:07 +0200)]
re PR fortran/45030 (-fwhole-file: Bogus error message with ENTRY and different result types)

2010-07-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/45030
        * resolve.c (resolve_global_procedure): Properly handle ENTRY.

From-SVN: r162486

14 years agoutils.c (gnat_types_compatible_p): Revert latest change and recurse only for multidim...
Eric Botcazou [Fri, 23 Jul 2010 19:53:29 +0000 (19:53 +0000)]
utils.c (gnat_types_compatible_p): Revert latest change and recurse only for multidimensional array types instead.

* gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
and recurse only for multidimensional array types instead.

From-SVN: r162485

14 years agore PR bootstrap/44455 (GCC fails to build if MPFR 3.0.0 (Release Candidate) is used)
Marc Glisse [Fri, 23 Jul 2010 19:35:24 +0000 (19:35 +0000)]
re PR bootstrap/44455 (GCC fails to build if MPFR 3.0.0 (Release Candidate) is used)

2010-07-23  Marc Glisse <marc.glisse@normalesup.org>

PR bootstrap/44455
* configure.ac (extra_mpfr_configure_flags): Copy from
extra_mpc_gmp_configure_flags.
* configure: Re-generated.

From-SVN: r162482

14 years agore PR lto/43071 (ICE: SIGSEGV with -fwhopr -fcompare-debug)
Richard Guenther [Fri, 23 Jul 2010 19:30:37 +0000 (19:30 +0000)]
re PR lto/43071 (ICE: SIGSEGV with -fwhopr -fcompare-debug)

2010-07-23  Richard Guenther  <rguenther@suse.de>

PR lto/43071
* gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
for -flto and -fwhopr.

* g++.dg/lto/20100723-1_0.C: New testcase.

From-SVN: r162481

14 years agoRequire OSXSAVE for AVX support.
H.J. Lu [Fri, 23 Jul 2010 18:44:16 +0000 (18:44 +0000)]
Require OSXSAVE for AVX support.

2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.target/i386/aes-avx-check.h (main): Require OSXSAVE for
AVX support.
* gcc.target/i386/pclmul-avx-check.h (main): Likewise.
* gcc.target/x86_64/abi/avx/avx-check.h (main): Likewise.

From-SVN: r162480

14 years agore PR preprocessor/41943 (include search path composition is bogus)
Kai Tietz [Fri, 23 Jul 2010 18:32:25 +0000 (18:32 +0000)]
re PR preprocessor/41943 (include search path composition is bogus)

2010-07-23  Kai Tietz  <kai.tietz@onevision.com>

PR target/41943
* Makefile.in (USER_H_INC_NEXT_PRE,
USER_H_INC_NEXT_POST): New.
(stmp-int-hdrs): Prefix/postfix headers by include_next.
* config.gcc (user_headers_inc_next_pre): New.
(user_headers_inc_next_post): Likewise.
(*-w64-mingw*): Use for float.h post-fixing, and for
stddef.h/stdarg.h pre-fixing by include_next.
* configure.ac (user_headers_inc_next_post): New.
(user_headers_inc_next_pre): New.
* configure: Regenerated.

From-SVN: r162479

14 years agore PR target/18788 ("-pthreads" option with "-shared" does not cause libpthread.so...
Rainer Orth [Fri, 23 Jul 2010 17:58:57 +0000 (17:58 +0000)]
re PR target/18788 ("-pthreads" option with "-shared" does not cause libpthread.so to be linked in.)

libjava:
* configure.ac (*-*-solaris2.8): Use alternate thread library.
Add libthread.
(*-*-solaris2.9): Use libthread.
* configure: Regenerate.

libgomp:
* configure.tgt (*-*-solaris2.[56]*): Removed.

gcc:
* configure.ac: Don't disable TLS on Solaris 8/9 by default
Set tga_func for Solaris 2/x86 resp. SPARC.
Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
(LIB_THREAD_LDFLAGS_SPEC): Define.
(LIB_TLS_SPEC): Define.
Check for required Sun ld version.
* configure: Regenerate.
* config.in: Regenerate.
* config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
-pthread, -threads, LIB_TLS_SPEC with -pthread.
* doc/install.texi (Specific, *-*-solaris2*): Document use of
alternate thread libraries on Solaris 8.
Document TLS patch requirements.
* doc/sourcebuild.texi (Add Options): Sort alphabetically.
Document tls.

PR target/18788
* config/sol2.h (LIB_SPEC): Link with thread libraries even with
-shared.

gcc/testsuite:
* lib/target-supports.exp (add_options_for_tls): New proc.
* g++.dg/tls/static-1.C: Use dg-add-options tls.
* g++.dg/tls/static-1a.cc: Likewise.
* gcc.dg/tls/emutls-1.c: Likewise.
* gcc.dg/tls/opt-11.c: Likewise.
* gcc.dg/tls/opt-12.c: Likewise.
* gcc.dg/tls/pr24428-2.c: Likewise.
* gcc.dg/tls/pr24428.c: Likewise.
* obj-c++.dg/tls/static-1.mm: Likewise.
* obj-c++.dg/torture/tls/thr-init-1.mm: Likewise.
* obj-c++.dg/torture/tls/thr-init-2.mm: Likewise.
* obj-c++.dg/torture/tls/thr-init-3.mm: Likewise.
* objc.dg/torture/tls/thr-init-2.m: Likewise.
* objc.dg/torture/tls/thr-init-3.m: Likewise.
* objc.dg/torture/tls/thr-init.m: Likewise.
* gcc.dg/lto/20090210_0.c: Add -pthread for *-*-solaris2.[89].

From-SVN: r162478

14 years agoloadpre6.c: Cleanup fre dump file.
Uros Bizjak [Fri, 23 Jul 2010 17:15:21 +0000 (19:15 +0200)]
loadpre6.c: Cleanup fre dump file.

* gcc.dg/tree-ssa/loadpre6.c: Cleanup fre dump file.
* gcc.dg/ipa/ipa-sra-6.c: Cleanup eipa_sra dump file.
* gcc.dg/ipa/pure-const-2.c: Cleanup local-pure-const1 and
optimized dump files.

From-SVN: r162477

14 years agotree.h (struct tree_base): Add nameless_flag bitfield.
Jakub Jelinek [Fri, 23 Jul 2010 17:04:35 +0000 (19:04 +0200)]
tree.h (struct tree_base): Add nameless_flag bitfield.

* tree.h (struct tree_base): Add nameless_flag bitfield.
(TYPE_NAMELESS, DECL_NAMELESS): Define.
* omp-low.c (create_omp_child_function, scan_omp_parallel,
scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
DECL_ARTIFICIAL where needed.
* dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
(type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
has DECL_NAMELESS set.

* trans-types.c (gfc_get_array_descriptor_base,
gfc_get_array_type_bounds): Set TYPE_NAMELESS.
* trans-decl.c (gfc_build_qualified_array): Set DECL_NAMELESS
instead of clearing DECL_NAME.
(gfc_build_dummy_array_decl): Set DECL_NAMELESS.

From-SVN: r162476

14 years agore PR tree-optimization/45047 (ICE in vectorizable_store)
Jakub Jelinek [Fri, 23 Jul 2010 17:03:16 +0000 (19:03 +0200)]
re PR tree-optimization/45047 (ICE in vectorizable_store)

PR tree-optimization/45047
* gcc.c-torture/compile/pr45047.c: New test.

From-SVN: r162475

14 years agoconfig.host (powerpc*-eabispe*): Set tmake_file.
Nathan Froyd [Fri, 23 Jul 2010 16:53:48 +0000 (16:53 +0000)]
config.host (powerpc*-eabispe*): Set tmake_file.

* config.host (powerpc*-eabispe*): Set tmake_file.
(powerpc*-eabi*): Likewise.
* config/rs6000/t-ppccomm (EXTRA_PARTS): Add crtbegin, crtend,
crtbeginS, crtendS, crtbeginT.

From-SVN: r162474

14 years agofloat-range-3.c: Use "dg-do compile" dejagnu directive instead of dg-compile.
Uros Bizjak [Fri, 23 Jul 2010 16:41:39 +0000 (18:41 +0200)]
float-range-3.c: Use "dg-do compile" dejagnu directive instead of dg-compile.

* gcc.dg/float-range-3.c: Use "dg-do compile" dejagnu directive
instead of dg-compile.
* gcc.dg/float-range-4.c: Ditto.
* gcc.dg/float-range-5.c: Ditto.
* gcc.dg/fold-overflow-1.c: Ditto.
* gcc.dg/gomp/sections-4.c: Ditto.
* gcc.dg/transparent-union-1.c: Ditto.
* gcc.dg/transparent-union-2.c: Ditto.
* gcc.target/i386/pr39315-check.c: Ditto.
* g++.dg/gomp/sections-4.C: Ditto.
* g++.dg/template/dtor7.C: Ditto.
* g++.dg/tree-ssa/pr19952.C: Ditto.
* gfortran.dg/derived_constructor_comps_3.f90: Ditto.
* gfortran.dg/graphite/pr42185.f90: Ditto.
* gfortran.dg/namelist_36.f90: Ditto.
* gnat.dg/noreturn1.adb: Ditto.
* gnat.dg/specs/small_alignment.ads: Ditto.

From-SVN: r162470

14 years agore PR tree-optimization/44915 (ICE: SIGSEGV in walk_aliased_vdefs_1.constprop.42...
Martin Jambor [Fri, 23 Jul 2010 16:35:52 +0000 (18:35 +0200)]
re PR tree-optimization/44915 (ICE: SIGSEGV in walk_aliased_vdefs_1.constprop.42 (tree-ssa-alias.c:1707) with -findirect-inlining)

2010-07-23  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/44915
* ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
* ipa-inline.c (cgraph_mark_inline_edge): Likewise.
(analyze_function): Likewise.

* testsuite/g++.dg/torture/pr44915.C: New test.

From-SVN: r162469

14 years agore PR tree-optimization/44914 (ICE: in calc_dfs_tree, at dominance.c:395 with -fipa...
Martin Jambor [Fri, 23 Jul 2010 16:31:48 +0000 (18:31 +0200)]
re PR tree-optimization/44914 (ICE: in calc_dfs_tree, at dominance.c:395 with -fipa-sra -fnon-call-exceptions)

2010-07-23  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/44914
* tree-sra.c (sra_modify_function_body): Return true if CFG was
changed, add purging dead eh edges.
(ipa_sra_modify_function_body): Return true if CFG was changed,
simplify purging dead eh edges.
(modify_function): Return true if CFG was changed.
(perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
was changed.
(ipa_early_sra): Likewise.

* testsuite/g++.dg/tree-ssa/pr44914.C:  New test.

From-SVN: r162468

14 years ago* gcc.dg/pr36997.c: Adjust dg-message line number.
Uros Bizjak [Fri, 23 Jul 2010 15:25:15 +0000 (17:25 +0200)]
* gcc.dg/pr36997.c: Adjust dg-message line number.

From-SVN: r162467

14 years agore PR target/44290 (__naked attribute is broken)
Jie Zhang [Fri, 23 Jul 2010 14:47:46 +0000 (14:47 +0000)]
re PR target/44290 (__naked attribute is broken)

PR target/44290
* attribs.c (decl_attributes): Insert "noinline" and "noclone"
if "naked".
* tree-sra.c (ipa_sra_preliminary_function_checks): Return
false if ! tree_versionable_function_p.

testsuite/
PR target/44290
* gcc.dg/pr44290-1.c: New test.
* gcc.dg/pr44290-2.c: New test.

From-SVN: r162466

14 years agoCast to unsigned long.
H.J. Lu [Fri, 23 Jul 2010 14:37:21 +0000 (07:37 -0700)]
Cast to unsigned long.

2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/45042
* lto-plugin.c (translate): Cast to unsigned long.

From-SVN: r162465

14 years agobuiltins.def (BUILT_IN_ARGS_INFO): Remove.
Nathan Froyd [Fri, 23 Jul 2010 14:31:20 +0000 (14:31 +0000)]
builtins.def (BUILT_IN_ARGS_INFO): Remove.

* builtins.def (BUILT_IN_ARGS_INFO): Remove.
* ipa-pure-const.c (special_builtlin_state): Remove
BUILT_IN_ARGS_INFO case.
* tree-stdarg.c (execute_optimize_stdarg): Likewise.
* builtins.c (expand_builtin): Likewise.
(expand_builtin_args_info): Remove.
* doc/tm.texi (__builtin_args_info): Remove.
(__builtin_next_arg): Adjust to not refer to __builtin_args_info.
* doc/tm.text.in: Likewise.

From-SVN: r162463

14 years agore PR fortran/24524 (Fortran dependency checking should reverse loops)
Paul Thomas [Fri, 23 Jul 2010 14:25:55 +0000 (14:25 +0000)]
re PR fortran/24524 (Fortran dependency checking should reverse loops)

2009-07-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/24524
* trans-array.c (gfc_init_loopinfo): Initialize the reverse
field.
gfc_trans_scalarized_loop_end: If reverse set in dimension n,
reverse the scalarization loop.
gfc_conv_resolve_dependencies: Pass the reverse field of the
loopinfo to gfc_dep_resolver.
trans-expr.c (gfc_trans_assignment_1): Enable loop reversal for
assignment by resetting loop.reverse.
gfortran.h : Add the gfc_reverse enum.
trans.h : Add the reverse field to gfc_loopinfo.
dependency.c (gfc_check_dependency): Pass null to the new arg
of gfc_dep_resolver.
(gfc_check_section_vs_section): Check for reverse dependencies.
(gfc_dep_resolver): Add reverse argument and deal with the loop
reversal logic.
dependency.h : Modify prototype for gfc_dep_resolver to include
gfc_reverse *.

From-SVN: r162462

14 years agolto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
Richard Guenther [Fri, 23 Jul 2010 14:01:49 +0000 (14:01 +0000)]
lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.

2010-07-23  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (lto_symtab_merge): Use gtc_mode enum
values.
(lto_symtab_merge_decls_2): Likewise.
* tree-ssa.c (useless_type_conversion_p): Likewise.
* lto-streamer-in.c (input_gimple_stmt): Likewise.
* gimple.c (gtc_visited2, gtc_ob2): Remove.
(struct type_pair_d): Make same_p an array indexed by mode.
Update comment.
(lookup_type_pair): Update initialization.
(struct sccs): Adjust same_p type.
(gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
Adjust.
(print_gimple_types_stats): Likewise.
* gimple.h (enum gtc_mode): New.
(gimple_types_compatible_p): Adjust prototype.

From-SVN: r162461

14 years agodwarf2out.c (dwarf2out_frame_debug): Check for queued saves again after processing...
Daniel Jacobowitz [Fri, 23 Jul 2010 13:55:07 +0000 (13:55 +0000)]
dwarf2out.c (dwarf2out_frame_debug): Check for queued saves again after processing insn.

* dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
again after processing insn.

From-SVN: r162460

14 years agore PR c++/45008 (Template code not expanded properly)
Jason Merrill [Fri, 23 Jul 2010 13:54:01 +0000 (09:54 -0400)]
re PR c++/45008 (Template code not expanded properly)

PR c++/45008
* g++.dg/abi/mangle44.C: New.

From-SVN: r162459

14 years ago*.c: Do not require sse{,2,3,4} effective target for compile-time only tests.
Uros Bizjak [Fri, 23 Jul 2010 13:45:08 +0000 (15:45 +0200)]
*.c: Do not require sse{,2,3,4} effective target for compile-time only tests.

* gcc.target/i386/*.c: Do not require sse{,2,3,4} effective target
for compile-time only tests.
* gcc.target/i386/pr39315-2.c: Remove redundant sse2 effective
target check.
* gcc.target/i386/pr39315-4.c: Ditto.
* gcc.target/i386/vperm-v4si-1.c: Remove sse_runtime effective
target check.  Include sse-os-support.h.
(main): Call check_isa and sse_os_support.
* gcc.target/i386/vperm-v4sf-1.c: Ditto.
* gcc.target/i386/vperm-v4si-2.c (main): Call check_isa.
* gcc.target/i386/vperm-v4sf-2.c: Ditto.
* gcc.target/i386/vperm-v2di.c: Remove sse2_runtime effective
target check.  Include sse-os-support.h.
(main): Call check_isa and sse_os_support.
* gcc.target/i386/vperm-v2df.c: Ditto.

From-SVN: r162457

14 years agotarget-supports.exp (check_avx_hw_available): New procedure.
Uros Bizjak [Fri, 23 Jul 2010 11:33:19 +0000 (13:33 +0200)]
target-supports.exp (check_avx_hw_available): New procedure.

* lib/target-supports.exp (check_avx_hw_available): New procedure.
(check_effective_target_avx_runtime): New procedure.
(check_effective_target_sse2_runtime): Add check_effective_target_sse2.
(check_effective_target_sse_runtime): Add check_effective_target_sse.

* gcc.dg/compat/pr38736_main.c: Use avx_runtime effective target.
* gcc.dg/compat/vector-1b_main.c: Ditto.  Remove cpuid.h include
and __get_cpuid test.
* gcc.dg/compat/vector-2b_main.c: Ditto.

* gcc.target/i386/avx-check.h (main): Also check bit_OSXSAVE.

* gcc.dg/20020418-1.c: Do not require sse2 effective target
for compile-time only test.
* gcc.dg/pr32716.c: Ditto.
* gcc.dg/pr34856.c: Ditto.
* gcc.dg/pr36997.c: Ditto.
* gcc.dg/prefetch-loop-arrays-1.c: Ditto.
* gfortran.dg/pr28158.f90: Ditto.
* gfortran.dg/pr30667.f: Ditto.

* gcc.dg/vect/vect.exp: Use check_effective_target_sse2_runtime for
i?86-*-* and x86_64-*-* targets to disable execution on targets
without sse2 runtime support.
* g++.dg/vect/vect.exp: Ditto.
* gfortran.dg/vect/vect.exp: Ditto.

* gcc.dg/pr36584.c: Remove now redundant sse2 effective target check.
* gcc.dg/pr37544.c: Ditto.
* gcc.dg/pr40550.c: Ditto.
* gcc.dg/compat/union-m128-1_main.c: Ditto.
* gcc.dg/compat/vector-1a_main.c: Ditto.
* gcc.dg/compat/vector-2a_main.c: Ditto.
* gcc.dg/torture/pr16104-1.c: Ditto.
* gcc.dg/torture/pr35771-1.c: Ditto.
* gcc.dg/torture/pr35771-2.c: Ditto.
* gcc.dg/torture/pr35771-3.c: Ditto.
* gcc.dg/torture/stackalign/alloca-2.c: Ditto.
* gcc.dg/torture/stackalign/alloca-3.c: Ditto.
* gcc.dg/torture/stackalign/push-1.c: Ditto.
* gcc.dg/torture/stackalign/vararg-3.c: Ditto.
* g++.dg/other/i386-1.C: Ditto.
* g++.dg/other/pr40446.C: Ditto.

From-SVN: r162456

14 years agotree-sra.c (ipa_sra_preliminary_function_checks): Dump proper words when !tree_versio...
Jie Zhang [Fri, 23 Jul 2010 10:52:43 +0000 (10:52 +0000)]
tree-sra.c (ipa_sra_preliminary_function_checks): Dump proper words when !tree_versionable_function_p.

* tree-sra.c (ipa_sra_preliminary_function_checks): Dump
proper words when !tree_versionable_function_p.

From-SVN: r162453

14 years ago* gcc.dg/pr43058.c: Use dg-timeout-factor 4.
Rainer Orth [Fri, 23 Jul 2010 10:25:24 +0000 (10:25 +0000)]
* gcc.dg/pr43058.c: Use dg-timeout-factor 4.

From-SVN: r162452

14 years agore PR lto/45037 (lto1 ICEs when linking cns_solve)
Richard Guenther [Fri, 23 Jul 2010 10:15:27 +0000 (10:15 +0000)]
re PR lto/45037 (lto1 ICEs when linking cns_solve)

2010-07-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45037
* tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.

From-SVN: r162451

14 years agore PR fortran/44709 (BLOCK and GOTO/EXIT/CYCLE)
Daniel Kraft [Fri, 23 Jul 2010 09:53:45 +0000 (11:53 +0200)]
re PR fortran/44709 (BLOCK and GOTO/EXIT/CYCLE)

2010-07-23  Daniel Kraft  <d@domob.eu>

PR fortran/44709
* gfortran.h (gfc_find_symtree_in_proc): New method.
* symbol.c (gfc_find_symtree_in_proc): New method.
* match.c (match_exit_cycle): Look for loop name also in parent
namespaces within current procedure.

2010-07-23  Daniel Kraft  <d@domob.eu>

PR fortran/44709
* gfortran.dg/exit_1.f08: New test.
* gfortran.dg/exit_2.f08: New test.

From-SVN: r162450

14 years agoextend.texi: Remove IP2K from the description of naked attribute.
Jie Zhang [Fri, 23 Jul 2010 09:31:36 +0000 (09:31 +0000)]
extend.texi: Remove IP2K from the description of naked attribute.

* doc/extend.texi: Remove IP2K from the description of naked
attribute.  Add MCORE instead.

From-SVN: r162449

14 years agoMove changelogs to correct files
Andi Kleen [Fri, 23 Jul 2010 05:54:11 +0000 (05:54 +0000)]
Move changelogs to correct files

From-SVN: r162447

14 years agore PR lto/44992 (ld -r breaks LTO)
Andi Kleen [Fri, 23 Jul 2010 05:33:51 +0000 (05:33 +0000)]
re PR lto/44992 (ld -r breaks LTO)

gcc:

2010-07-10   Andi Kleen <ak@linux.intel.com>

        PR lto/44992
        * lto-opts.c (lto_write_options): Add NULL file_data argument to
lto_get_section_name.
* lto-section-out.c (lto_destroy_simple_output_block): Likewise.
* lto-streamer-out.c (produce_asm): Likewise.
(copy_function): Likewise.
(produce_symtab): Likewise.
(produce_asm_for_decls): Likewise.
* lto-streamer.c (lto_get_section_name): Add file_data argument.
Rewrite to add random postfix to LTO sections.
* lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
(lto_get_section_name): Add file_data argument to prototype.

lto:

2010-07-10   Andi Kleen <ak@linux.intel.com>

        PR lto/44992
        * lto.c: Include splay-tree.h
(lto_resolution_read): Change to walk file_ids tree and parse
extra file_id in resolution file.
(lto_section_with_id): Add.
(create_subid_section_table): Add.
(lwstate): Add.
(lto_create_files_from_ids): Add.
(lto_file_read): Change to handle sub file ids and create list
of file_datas. Add output argument for count.
(get_section_data): Pass file_data to lto_get_section_name.
(lto_flatten_file): Add.
(read_cgraph_and_symbols): Handle linked lists of file_datas.

lto-plugin:

2010-07-10   Andi Kleen <ak@linux.intel.com>

        PR lto/44992
        * lto-plugin.c (sym_aux): Add.
(plugin_symtab): Remove slots. Add aux and id.
(parse_table_entry): Change to use aux instead of slots.
(LTO_SECTION_PREFIX): Add.
(translate): Improve buffer allocation. Change to append
symbols to existing out buffer.
(get_section): Remove.
(process_symtab): Add.
(free_2): Free symtab->aux.
(write_resolution): Handle aux instead of slots.
Print sub id to resolution file.
(claim_file_handler): Clear lto_file. Replace get_symtab/translate
calls with call to process_symtab.

From-SVN: r162443

14 years agoAdd changelog for last commit
Andi Kleen [Fri, 23 Jul 2010 05:26:48 +0000 (05:26 +0000)]
Add changelog for last commit

From-SVN: r162442

14 years agolto-coff.c (hash_name, eq_name): Move.
Andi Kleen [Fri, 23 Jul 2010 05:25:46 +0000 (05:25 +0000)]
lto-coff.c (hash_name, eq_name): Move.

2010-07-10  Andi Kleen <ak@linux.intel.com>

* lto-coff.c (hash_name, eq_name): Move.
(lto_obj_build_section_table): Call lto_obj_create_section_hash_table.
* lto-elf.c: (hash_name, eq_name): Move.
(lto_obj_build_section_table): Call lto_obj_create_section_hash_table.
* lto-macho.c: (hash_name, eq_name): Move.
(lto_obj_build_section_table): Call lto_obj_create_section_hash_table.
* lto.c: (hash_name, eq_name): Move from lto-*.c
(lto_obj_create_section_hash_table): Add.
(free_with_string): Add.

From-SVN: r162441

14 years agolto-section-in.c (lto_section_name): Synchronize names with lto_get_section_name.
Andi Kleen [Fri, 23 Jul 2010 05:24:47 +0000 (05:24 +0000)]
lto-section-in.c (lto_section_name): Synchronize names with lto_get_section_name.

2010-07-10   Andi Kleen <ak@linux.intel.com>

        * lto-section-in.c (lto_section_name): Synchronize names
        with lto_get_section_name.

From-SVN: r162440

14 years agolto-opts.c (lto_read_file_options): Check for missing section.
Andi Kleen [Fri, 23 Jul 2010 05:23:50 +0000 (05:23 +0000)]
lto-opts.c (lto_read_file_options): Check for missing section.

2010-07-10   Andi Kleen <ak@linux.intel.com>

        * lto-opts.c (lto_read_file_options): Check for missing section.

From-SVN: r162439

14 years agore PR tree-optimization/39839 (loop invariant motion causes stack spill)
Sandra Loosemore [Fri, 23 Jul 2010 02:18:07 +0000 (22:18 -0400)]
re PR tree-optimization/39839 (loop invariant motion causes stack spill)

2010-07-22  Sandra Loosemore  <sandra@codesourcery.com>

PR tree-optimization/39839

gcc/testsuite/
* gcc.target/arm/pr39839.c: New test case.

From-SVN: r162438

14 years agoDaily bump.
GCC Administrator [Fri, 23 Jul 2010 00:17:45 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r162437

14 years agoDocBook 4.5 to 5.0 transition.
Benjamin Kosnik [Thu, 22 Jul 2010 22:58:15 +0000 (22:58 +0000)]
DocBook 4.5 to 5.0 transition.

2010-07-22  Benjamin Kosnik  <bkoz@redhat.com>

DocBook 4.5 to 5.0 transition.
* doc/xml/authors.xml: Update markup to DocBook 5.0.
* doc/xml/faq.xml: Same.
* doc/xml/api.xml: Same.
* doc/xml/class.txml
* doc/xml/gnu/gpl-3.0.xml: Same.
* doc/xml/gnu/fdl-1.2.xml: Same.
* doc/xml/gnu/fdl-1.3.xml: Same.
* doc/xml/gnu/gpl-2.0.xml: Same.
* doc/xml/chapter.txml: Same.
* doc/xml/manual/mt_allocator.xml: Same.
* doc/xml/manual/allocator.xml: Same.
* doc/xml/manual/ctype.xml: Same.
* doc/xml/manual/numerics.xml: Same.
* doc/xml/manual/codecvt.xml: Same.
* doc/xml/manual/backwards_compatibility.xml: Same.
* doc/xml/manual/concurrency.xml: Same.
* doc/xml/manual/intro.xml: Same.
* doc/xml/manual/abi.xml: Same.
* doc/xml/manual/shared_ptr.xml: Same.
* doc/xml/manual/status_cxxtr1.xml: Same.
* doc/xml/manual/auto_ptr.xml: Same.
* doc/xml/manual/internals.xml: Same.
* doc/xml/manual/atomics.xml: Same.
* doc/xml/manual/parallel_mode.xml: Same.
* doc/xml/manual/status_cxx1998.xml: Same.
* doc/xml/manual/profile_mode.xml: Same.
* doc/xml/manual/containers.xml: Same.
* doc/xml/manual/io.xml: Same.
* doc/xml/manual/concurrency_extensions.xml: Same.
* doc/xml/manual/appendix_porting.xml: Same.
* doc/xml/manual/utilities.xml: Same.
* doc/xml/manual/support.xml: Same.
* doc/xml/manual/bitmap_allocator.xml: Same.
* doc/xml/manual/configure.xml: Same.
* doc/xml/manual/build_hacking.xml: Same.
* doc/xml/manual/evolution.xml: Same.
* doc/xml/manual/using.xml: Same.
* doc/xml/manual/using_exceptions.xml: Same.
* doc/xml/manual/debug.xml: Same.
* doc/xml/manual/localization.xml: Same.
* doc/xml/manual/strings.xml: Same.
* doc/xml/manual/debug_mode.xml: Same.
* doc/xml/manual/locale.xml: Same.
* doc/xml/manual/extensions.xml: Same.
* doc/xml/manual/appendix_contributing.xml: Same.
* doc/xml/manual/prerequisites.xml: Same.
* doc/xml/manual/messages.xml: Same.
* doc/xml/manual/diagnostics.xml: Same.
* doc/xml/manual/algorithms.xml: Same.
* doc/xml/manual/appendix_free.xml: Same.
* doc/xml/manual/iterators.xml: Same.
* doc/xml/manual/spine.xml: Same.
* doc/xml/manual/status_cxxtr24733.xml: Same.
* doc/xml/manual/status_cxx200x.xml: Same.
* doc/xml/manual/test.xml: Same.
* doc/xml/book.txml: Same.
* doc/xml/spine.xml: Same.
* doc/Makefile.am: Same.
* doc/Makefile.in: Regenerate.

From-SVN: r162433

14 years agoira.c (check_allocation): Correctly handle the case where an allocno with two objects...
Bernd Schmidt [Thu, 22 Jul 2010 22:34:11 +0000 (22:34 +0000)]
ira.c (check_allocation): Correctly handle the case where an allocno with two objects was allocated to a...

* ira.c (check_allocation): Correctly handle the case where an allocno
with two objects was allocated to a single reg.

From-SVN: r162432

14 years agotree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
Richard Sandiford [Thu, 22 Jul 2010 21:55:32 +0000 (21:55 +0000)]
tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.

gcc/
* tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
(is_widening_mult_p): Likewise.
(convert_to_widen): Use them.
(convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
well as integer ones.

From-SVN: r162431

14 years agoalias.c (true_dependence_1): New function, merged version of true_dependence and...
Steven Bosscher [Thu, 22 Jul 2010 21:54:27 +0000 (21:54 +0000)]
alias.c (true_dependence_1): New function, merged version of true_dependence and canon_true_dependence.

* alias.c (true_dependence_1): New function, merged version of
true_dependence and canon_true_dependence.
(true_dependence): Simplify.
(canon_true_dependence): Simplify.

From-SVN: r162430

14 years agore PR target/45027 (FAIL: c-c++-common/dfp/pr36800.c)
Richard Henderson [Thu, 22 Jul 2010 21:40:41 +0000 (14:40 -0700)]
re PR target/45027 (FAIL: c-c++-common/dfp/pr36800.c)

PR target/45027
* config/i386/i386.c (setup_incoming_varargs_64): Force the use
of V4SFmode for the SSE saves; increase stack alignment if needed.
(ix86_gimplify_va_arg): Don't increase stack alignment here.

From-SVN: r162429

14 years agoMAINTAINERS (Write After Approval): Add myself.
Andi Kleen [Thu, 22 Jul 2010 21:16:49 +0000 (21:16 +0000)]
MAINTAINERS (Write After Approval): Add myself.

2010-07-22  Andi Kleen  <ak@linux.intel.com>

        * MAINTAINERS (Write After Approval): Add myself.

From-SVN: r162428

14 years agore PR bootstrap/45028 (ICE building 64-bit libjava on Solaris 2/SPARC: output_operand...
Jakub Jelinek [Thu, 22 Jul 2010 20:48:42 +0000 (22:48 +0200)]
re PR bootstrap/45028 (ICE building 64-bit libjava on Solaris 2/SPARC: output_operand: invalid expression as operand)

PR bootstrap/45028
* recgprop.c (copyprop_hardreg_forward_1): If changed is true,
call cprop_find_used_regs again via note_uses.

From-SVN: r162427

14 years ago* alias.c (get_alias_set): Fix formatting issues.
Eric Botcazou [Thu, 22 Jul 2010 19:33:45 +0000 (19:33 +0000)]
* alias.c (get_alias_set): Fix formatting issues.

From-SVN: r162426

14 years agore PR ada/44892 (internal error on gnat.dg/unchecked_convert5.adb)
Eric Botcazou [Thu, 22 Jul 2010 19:28:21 +0000 (19:28 +0000)]
re PR ada/44892 (internal error on gnat.dg/unchecked_convert5.adb)

PR ada/44892
* gcc-interface/utils.c (convert): Fix thinko in test.
(unchecked_convert): When converting from a scalar type to a type with
a different size, pad to have the same size on both sides.

From-SVN: r162425

14 years agoutils.c (gnat_types_compatible_p): Don't require strict equality for the component...
Eric Botcazou [Thu, 22 Jul 2010 19:12:46 +0000 (19:12 +0000)]
utils.c (gnat_types_compatible_p): Don't require strict equality for the component type of array types.

* gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
equality for the component type of array types.

From-SVN: r162424

14 years agore PR middle-end/44878 (Build fails when compiling libstdc++)
Steve Ellcey [Thu, 22 Jul 2010 18:14:27 +0000 (18:14 +0000)]
re PR middle-end/44878 (Build fails when compiling libstdc++)

2010-07-22  Steve Ellcey  <sje@cup.hp.com>

PR middle-end/44878
* stmt.c (expand_value_return):  Call promote_function_mode with
a for_return argument of 2 when returning by reference.

From-SVN: r162423

14 years agoChangeLog: Fix whitespace.
Uros Bizjak [Thu, 22 Jul 2010 18:10:32 +0000 (20:10 +0200)]
ChangeLog: Fix whitespace.

* ChangeLog: Fix whitespace.
* testsuite/ChangeLog: Ditto.

From-SVN: r162422

14 years agore PR debug/45024 (wrong nesting for inner template class)
Dodji Seketeli [Thu, 22 Jul 2010 16:25:17 +0000 (16:25 +0000)]
re PR debug/45024 (wrong nesting for inner template class)

Fix PR debug/45024

gcc/ChangeLog:
PR debug/45024
* dwarf2out.c (scope_die_for): Don't fall back to the compilation
unit DIE if we can find the scope DIE.

gcc/testsuite/ChangeLog:
PR debug/45024
* g++.dg/debug/dwarf2/nested-2.C: New test case.

From-SVN: r162420

14 years agoira-build.c (ira_create_object): New arg SUBWORD; all callers changed.
Bernd Schmidt [Thu, 22 Jul 2010 15:48:30 +0000 (15:48 +0000)]
ira-build.c (ira_create_object): New arg SUBWORD; all callers changed.

* ira-build.c (ira_create_object): New arg SUBWORD; all callers changed.
Initialize OBJECT_SUBWORD.
(ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
(ira_create_allocno_objects): Renamed from ira_create_allocno_object;
all callers changed.
(merge_hard_reg_conflicts): Iterate over allocno subobjects.
(finish_allocno): Likewise.
(move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
(remove_low_level_allocnos): Likewise.
(update_bad_spill_attribute): Likewise.
(setup_min_max_allocno_live_range_point): Likewise.
(sort_conflict_id_map): Likewise.
(ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
(ior_hard_reg_conflicts): New function.
(ior_allocate_object_conflicts): Renamed first argument to OBJ.
(compress_conflict_vecs): Iterate over objects, not allocnos.
(ira_add_live_range_to_object): New function.
(object_range_compare_func): Renamed from allocno_range_compare_func.
All callers changed.
(setup_min_max_conflict_allocno_ids): For allocnos with multiple
subobjects, widen the min/max range of the lowest-order object to
potentially include all other such low-order objects.
* ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
(check_allocation): Likewise.  Use more fine-grained tests for register
conflicts.
* ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
allocno subobjects.
(assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
choices about which bits to set in each set.  Don't use
ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
using the multiple sets we computed.
(push_allocno_to_stack): Iterate over allocno subobjects.
(all_conflicting_hard_regs_coalesced): New static function.
(setup_allocno_available_regs_num): Use it.
(setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
subobjects.
(coalesced_allocno_conflict): Test subobject 0 in each allocno.
(setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
by ALLOCNO_NUM_OBJECTS.
(calculate_spill_cost): Likewise.
(color_pass): Express if statement in a more normal way.
(ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
(slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
(setup_slot_coalesced_allocno_live_ranges): Likewise.
(allocno_reload_assign): Likewise.
(ira_reassign_pseudos): Likewise.
(fast_allocation): Likewise.
* ira-conflicts.c (build_conflict_bit_table): Likewise.
(print_allocno_conflicts): Likewise.
(ira_build_conflicts): Likewise.
(allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
callers changed.  Test subword 0 of each allocno for conflicts.
(build_object_conflicts): Renamed from build_allocno_conflicts.  All
callers changed.  Iterate over allocno subobjects.
* ira-emit.c (modify_move_list): Iterate over allocno subobjects.
* ira-int.h (struct ira_allocno): New member. num_objects.  Rename object
to objects and change it into an array.
(ALLOCNO_OBJECT): Add new argument N.
(ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
(ira_create_allocno_objects): Renamed from ira_create_allocno_object.
(ior_hard_reg_conflicts): Declare.
(ira_add_live_range_to_object): Declare.
(ira_allocno_object_iterator): New.
(ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
(FOR_EACH_ALLOCNO_OBJECT): New macro.
* ira-lives.c (objects_live): Renamed from allocnos_live; all uses changed.
(allocnos_processed): New sparseset.
(make_object_born): Renamed from make_allocno_born; take an ira_object_t
argument.  All callers changed.
(make_object_dead): Renamed from make_allocno_dead; take an ira_object t
argument.  All callers changed.
(update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
All callers changed.
(mark_pseudo_regno_live): Iterate over allocno subobjects.
(mark_pseudo_regno_dead): Likewise.
(mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
functions.
(mark_ref_live): Detect subword accesses and call
mark_pseudo_regno_subword_live as appropriate.
(mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
(process_bb_nodes_live): Deal with object-related updates first; set
and test bits in allocnos_processed to avoid computing allocno
statistics more than once.
(create_start_finish_chains): Iterate over objects, not allocnos.
(print_object_live_ranges): New function.
(print_allocno_live_ranges): Use it.
(ira_create_allocno_live_ranges): Allocate and free allocnos_processed
and objects_live.

From-SVN: r162418

14 years agoReplace dg-require-lto-plugin with dg-require-linker-plugin.
H.J. Lu [Thu, 22 Jul 2010 14:45:07 +0000 (14:45 +0000)]
Replace dg-require-lto-plugin with dg-require-linker-plugin.

2010-07-22  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.dg/lto/20100722-1_0.c: Replace dg-require-lto-plugin
with dg-require-linker-plugin.

From-SVN: r162417

14 years agore PR c++/43850 (ice: tree code �template_type_parm� is not supported in gimple streams)
Richard Guenther [Thu, 22 Jul 2010 14:19:40 +0000 (14:19 +0000)]
re PR c++/43850 (ice: tree code �template_type_parm� is not supported in gimple streams)

2010-07-22  Richard Guenther  <rguenther@suse.de>

PR lto/43850
* g++.dg/lto/20100722-1_0.C: New testcase.

From-SVN: r162416

14 years agore PR lto/42451 ('warning: type of "array" does not match original declaration' with...
Richard Guenther [Thu, 22 Jul 2010 13:47:32 +0000 (13:47 +0000)]
re PR lto/42451 ('warning: type of "array" does not match original declaration' with -flto/-fwhopr)

2010-07-22  Richard Guenther  <rguenther@suse.de>

PR lto/42451
* gimple.c (gtc_next_dfs_num): New global.
(struct sccs): Make value a union, add integer same_p member.
(gtc_visit): New function.
(gimple_types_compatible_p_1): New function, split out from ...
(gimple_types_compatible_p): ... here.  Start a DFS walk here.
(iterative_hash_gimple_type): Adjust for sccs change.

* gcc.dg/lto/20100720-3_0.c: New testcase.
* gcc.dg/lto/20100720-3_1.c: Likewise.

From-SVN: r162415

14 years agore PR lto/43373 (-fwhopr -fuse-linker-plugin ICE compressed stream data error)
Richard Guenther [Thu, 22 Jul 2010 12:54:44 +0000 (12:54 +0000)]
re PR lto/43373 (-fwhopr -fuse-linker-plugin ICE compressed stream data error)

2010-07-22  Richard Guenther  <rguenther@suse.de>

* lib/target-supports-dg.exp (dg-require-linker-plugin): New proc.
* lib/target-supports.exp (check_linker_plugin_available): Likewise.

PR lto/43373
* gcc.dg/lto/20100722-1_0.c: New testcase.

From-SVN: r162414

14 years agore PR tree-optimization/44891 (non-trivial conversion ICE from early SRA)
Martin Jambor [Thu, 22 Jul 2010 12:52:14 +0000 (14:52 +0200)]
re PR tree-optimization/44891 (non-trivial conversion ICE from early SRA)

2010-07-22  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/44891
* tree-sra.c: Include gimple-pretty-print.h.
(replace_uses_with_default_def_ssa_name): Renamed to
get_repl_default_def_ssa_name, return the new SSA name instead of
replacing the old one.
(sra_modify_assign): Dump a message when removing a load, if the LHS
is an SSA_NAME, do not do any propagation, just set the RHS to a
default definition SSA NAME, type convert if necessary.
* Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.

* testsuite/gcc.c-torture/compile/pr44891.c: New test.

From-SVN: r162413