platform/upstream/linaro-gcc.git
13 years ago * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
jsm28 [Tue, 27 Jul 2010 09:59:51 +0000 (09:59 +0000)]
* langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
(LANG_HOOKS_INIT_OPTIONS): Update default definition.
(LANG_HOOKS_INITIALIZER): Add new hooks.
* langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
* langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
and complain_wrong_lang_p.  Update init_options prototype.
* c-objc-common.c (c_initialize_diagnostics): First call
c_common_initialize_diagnostics.
* c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
* coretypes.h (struct cl_option, struct cl_decoded_option):
Declare.
* hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
(hook_uint_void_0): New.
* hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
(hook_uint_void_0): New.
* opts-common.c (decode_cmdline_option,
decode_cmdline_options_to_array): Also fill in canonical_option
field.
* opts.c (complain_wrong_lang): Use langhook to determine whether
to complain instead of special-casing LTO.
(decode_options): Separate lang_mask determination with
option_lang_mask hook from call of init_options hook.
* opts.h (struct cl_decoded_option): Add canonical_option.

ada:
* gcc-interface/misc.c (gnat_option_lang_mask): New.
(gnat_init_options): Update prototype.  Reconstruct argv array
from decoded options.

c-family:
* c-common.h (c_common_option_lang_mask,
c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
New.
(c_common_init_options): Update prototype.
* c-opts.c (c_common_option_lang_mask): New.
(c_common_initialize_diagnostics): Split out of
c_common_init_options.
(accept_all_c_family_options, c_common_complain_wrong_lang_p):
New.
(c_common_init_options): Update prototype.  Use decoded options in
search for -lang-asm.

cp:
* cp-objcp-common.c (cxx_initialize_diagnostics): First call
c_common_initialize_diagnostics.
* cp-objcp-common.h (LANG_HOOKS_OPTION_LANG_MASK,
LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.

fortran:
* cpp.c (gfc_cpp_init_options): Update prototype.  Use number of
decoded options in allocating deferred_opt.
* cpp.h (gfc_cpp_init_options): Update prototype.
* f95-lang.c (LANG_HOOKS_OPTION_LANG_MASK): Define.
* gfortran.h (gfc_option_lang_mask): New.
(gfc_init_options): Update prototype.
* options.c (gfc_option_lang_mask): New.
(gfc_init_options): Update prototype.  Pass new arguments to
gfc_cpp_init_options.

java:
* lang.c (java_option_lang_mask): New.
(java_init_options): Update prototype.
(LANG_HOOKS_OPTION_LANG_MASK): Define.

lto:
* lto-lang.c (lto_option_lang_mask, lto_complain_wrong_lang_p):
New.
(lto_init_options): Update prototype.
(LANG_HOOKS_OPTION_LANG_MASK, LANG_HOOKS_COMPLAIN_WRONG_LANG_P):
Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162560 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR tree-optimization/45083
jakub [Tue, 27 Jul 2010 09:43:59 +0000 (09:43 +0000)]
PR tree-optimization/45083
* tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162559 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR rtl-optimization/45051
bernds [Tue, 27 Jul 2010 09:34:51 +0000 (09:34 +0000)]
PR rtl-optimization/45051
* reload1.c (delete_output_reload): Use refers_to_regno_p rather
than reg_mentioned_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162558 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-26 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 27 Jul 2010 08:44:22 +0000 (08:44 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162557 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162554 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * postreload.c (reload_combine_recognize_const_pattern): Move test
bernds [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162550 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoPR target/44132
rth [Mon, 26 Jul 2010 22:53:50 +0000 (22:53 +0000)]
PR target/44132
Emulated TLS rewrite.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162549 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * testsuite/22_locale/num_put/put/char/14220.cc: XFAIL on Solaris
ro [Mon, 26 Jul 2010 20:54:57 +0000 (20:54 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162545 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
hubicka [Mon, 26 Jul 2010 20:51:29 +0000 (20:51 +0000)]
* lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
GTY((skip)).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162544 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * target.def (output_source_filename): New hook.
aesok [Mon, 26 Jul 2010 18:00:17 +0000 (18:00 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162542 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * g++.dg/torture/pr44900.C: Use dg-require-effective-target
ro [Mon, 26 Jul 2010 16:23:01 +0000 (16:23 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162541 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * libgomp.texi: Add function keyword to a couple of Fortran
jakub [Mon, 26 Jul 2010 16:22:18 +0000 (16:22 +0000)]
* libgomp.texi: Add function keyword to a couple of Fortran
interfaces, use integer instead of int for Fortran.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162540 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-26 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 26 Jul 2010 16:01:55 +0000 (16:01 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162539 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * libgomp.texi: Fix spelling and pasto problems throughout.
aldyh [Mon, 26 Jul 2010 15:26:17 +0000 (15:26 +0000)]
    * libgomp.texi: Fix spelling and pasto problems throughout.
        Adjust prototypes to match code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162538 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-26 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 26 Jul 2010 14:48:43 +0000 (14:48 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162537 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-26 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 26 Jul 2010 13:29:14 +0000 (13:29 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162536 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-26 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 26 Jul 2010 12:48:37 +0000 (12:48 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162534 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-26 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 26 Jul 2010 10:30:45 +0000 (10:30 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162532 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoAdd file forgotten in commit Rev. 162500
burnus [Mon, 26 Jul 2010 09:53:19 +0000 (09:53 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162531 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * configure.ac: Support all v850 targets.
nickc [Mon, 26 Jul 2010 09:39:04 +0000 (09:39 +0000)]
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162530 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-26 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 26 Jul 2010 09:26:43 +0000 (09:26 +0000)]
2010-07-26  Richard Guenther  <rguenther@suse.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162528 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-26 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 26 Jul 2010 09:16:01 +0000 (09:16 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162527 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162525 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/44707
ebotcazou [Sun, 25 Jul 2010 21:46:32 +0000 (21:46 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162521 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/44484
ebotcazou [Sun, 25 Jul 2010 21:32:16 +0000 (21:32 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162520 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-25 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Sun, 25 Jul 2010 19:31:37 +0000 (19:31 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162519 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 25 Jul 2010 19:10:09 +0000 (19:10 +0000)]
2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162518 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago Fix out of order log entry from 162516 commit.
jvdelisle [Sun, 25 Jul 2010 19:07:58 +0000 (19:07 +0000)]
Fix out of order log entry from 162516 commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162517 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-25 Mikael Morin <mikael@gcc.gnu.org>
mikael [Sun, 25 Jul 2010 17:01:15 +0000 (17:01 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162516 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-25 Jonathan Wakely <jwakely.gcc@gmail.com>
redi [Sun, 25 Jul 2010 16:44:38 +0000 (16:44 +0000)]
2010-07-25  Jonathan Wakely  <jwakely.gcc@gmail.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162515 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 25 Jul 2010 15:35:04 +0000 (15:35 +0000)]
2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162514 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 25 Jul 2010 15:07:45 +0000 (15:07 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162512 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoSupport "//" as assembler comments.
hjl [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162511 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162507 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent
gerald [Sat, 24 Jul 2010 20:00:49 +0000 (20:00 +0000)]
* doc/install.texi (Specific, *-*-freebsd*): Adjust to recent
changes.  Streamline paragraph on compatibility with the system
compiler.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162503 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-24 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 24 Jul 2010 16:58:19 +0000 (16:58 +0000)]
2010-07-24  Richard Guenther  <rguenther@suse.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162502 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-24 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 24 Jul 2010 16:49:38 +0000 (16:49 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162501 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-24 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 24 Jul 2010 16:32:11 +0000 (16:32 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162500 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR middle-end/45035
steven [Sat, 24 Jul 2010 12:37:51 +0000 (12:37 +0000)]
PR middle-end/45035
* alias.c (true_dependence_1): Fix thinko in merge of old
true_dependence and canon_true_dependence.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162499 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-24 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 24 Jul 2010 07:47:43 +0000 (07:47 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162498 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lto-streamer-out.c (write_symbol): Fix visibilities of external
hubicka [Sat, 24 Jul 2010 01:04:29 +0000 (01:04 +0000)]
* lto-streamer-out.c (write_symbol): Fix visibilities of external
references.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162497 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162496 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162492 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/fortran/
burnus [Fri, 23 Jul 2010 22:15:51 +0000 (22:15 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162491 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc-interfaces/utils.c (update_pointer_to): In the unconstrained
ebotcazou [Fri, 23 Jul 2010 20:19:55 +0000 (20:19 +0000)]
* gcc-interfaces/utils.c (update_pointer_to): In the unconstrained
array case, merge the alias set of the old pointer type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162488 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 23 Jul 2010 20:13:07 +0000 (20:13 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162487 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 23 Jul 2010 20:07:30 +0000 (20:07 +0000)]
2010-07-23  Tobias Burnus  <burnus@net-b.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162486 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
ebotcazou [Fri, 23 Jul 2010 19:53:29 +0000 (19:53 +0000)]
* gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
and recurse only for multidimensional array types instead.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162485 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Marc Glisse <marc.glisse@normalesup.org>
rguenth [Fri, 23 Jul 2010 19:35:24 +0000 (19:35 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162482 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 23 Jul 2010 19:30:37 +0000 (19:30 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162481 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoRequire OSXSAVE for AVX support.
hjl [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162480 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Kai Tietz <kai.tietz@onevision.com>
ktietz [Fri, 23 Jul 2010 18:32:25 +0000 (18:32 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162479 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago libjava:
ro [Fri, 23 Jul 2010 17:58:57 +0000 (17:58 +0000)]
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].

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162478 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.dg/tree-ssa/loadpre6.c: Cleanup fre dump file.
uros [Fri, 23 Jul 2010 17:15:21 +0000 (17:15 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162477 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * tree.h (struct tree_base): Add nameless_flag bitfield.
jakub [Fri, 23 Jul 2010 17:04:35 +0000 (17:04 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162476 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR tree-optimization/45047
jakub [Fri, 23 Jul 2010 17:03:16 +0000 (17:03 +0000)]
PR tree-optimization/45047
* gcc.c-torture/compile/pr45047.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162475 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config.host (powerpc*-eabispe*): Set tmake_file.
froydnj [Fri, 23 Jul 2010 16:53:48 +0000 (16:53 +0000)]
* config.host (powerpc*-eabispe*): Set tmake_file.
(powerpc*-eabi*): Likewise.
* config/rs6000/t-ppccomm (EXTRA_PARTS): Add crtbegin, crtend,
crtbeginS, crtendS, crtbeginT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162474 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.dg/float-range-3.c: Use "dg-do compile" dejagnu directive
uros [Fri, 23 Jul 2010 16:41:39 +0000 (16:41 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162470 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Martin Jambor <mjambor@suse.cz>
jamborm [Fri, 23 Jul 2010 16:35:52 +0000 (16:35 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162469 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Martin Jambor <mjambor@suse.cz>
jamborm [Fri, 23 Jul 2010 16:31:48 +0000 (16:31 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162468 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162467 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/44290
jiez [Fri, 23 Jul 2010 14:47:46 +0000 (14:47 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162466 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoCast to unsigned long.
hjl [Fri, 23 Jul 2010 14:37:21 +0000 (14:37 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162465 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * builtins.def (BUILT_IN_ARGS_INFO): Remove.
froydnj [Fri, 23 Jul 2010 14:31:20 +0000 (14:31 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162463 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-23 Paul Thomas <pault@gcc.gnu.org>
pault [Fri, 23 Jul 2010 14:25:55 +0000 (14:25 +0000)]
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 *.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162462 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 23 Jul 2010 14:01:49 +0000 (14:01 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162461 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162460 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR c++/45008
jason [Fri, 23 Jul 2010 13:54:01 +0000 (13:54 +0000)]
PR c++/45008
* g++.dg/abi/mangle44.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162459 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.target/i386/*.c: Do not require sse{,2,3,4} effective target
uros [Fri, 23 Jul 2010 13:45:08 +0000 (13:45 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162457 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lib/target-supports.exp (check_avx_hw_available): New procedure.
uros [Fri, 23 Jul 2010 11:33:19 +0000 (11:33 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162456 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
jiez [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162453 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162452 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 23 Jul 2010 10:15:27 +0000 (10:15 +0000)]
2010-07-23  Richard Guenther  <rguenther@suse.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162451 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-23 Daniel Kraft <d@domob.eu>
domob [Fri, 23 Jul 2010 09:53:45 +0000 (09:53 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162450 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * doc/extend.texi: Remove IP2K from the description of naked
jiez [Fri, 23 Jul 2010 09:31:36 +0000 (09:31 +0000)]
* doc/extend.texi: Remove IP2K from the description of naked
attribute.  Add MCORE instead.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162449 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162447 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc:
ak [Fri, 23 Jul 2010 05:33:51 +0000 (05:33 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162443 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162442 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-10 Andi Kleen <ak@linux.intel.com>
ak [Fri, 23 Jul 2010 05:25:46 +0000 (05:25 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162441 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-10 Andi Kleen <ak@linux.intel.com>
ak [Fri, 23 Jul 2010 05:24:47 +0000 (05:24 +0000)]
2010-07-10   Andi Kleen <ak@linux.intel.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162440 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-10 Andi Kleen <ak@linux.intel.com>
ak [Fri, 23 Jul 2010 05:23:50 +0000 (05:23 +0000)]
2010-07-10   Andi Kleen <ak@linux.intel.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162439 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-22 Sandra Loosemore <sandra@codesourcery.com>
sandra [Fri, 23 Jul 2010 02:18:07 +0000 (02:18 +0000)]
2010-07-22  Sandra Loosemore  <sandra@codesourcery.com>

PR tree-optimization/39839

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162438 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162437 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-22 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 22 Jul 2010 22:58:15 +0000 (22:58 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162433 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * ira.c (check_allocation): Correctly handle the case where an allocno
bernds [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 single reg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162432 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
rsandifo [Thu, 22 Jul 2010 21:55:32 +0000 (21:55 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162431 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * alias.c (true_dependence_1): New function, merged version of
steven [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.
(true_dependence): Simplify.
(canon_true_dependence): Simplify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162430 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/45027
rth [Thu, 22 Jul 2010 21:40:41 +0000 (21:40 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162429 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-07-22 Andi Kleen <ak@linux.intel.com>
ak [Thu, 22 Jul 2010 21:16:49 +0000 (21:16 +0000)]
2010-07-22  Andi Kleen  <ak@linux.intel.com>

        * MAINTAINERS (Write After Approval): Add myself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162428 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago PR bootstrap/45028
jakub [Thu, 22 Jul 2010 20:48:42 +0000 (20:48 +0000)]
PR bootstrap/45028
* recgprop.c (copyprop_hardreg_forward_1): If changed is true,
call cprop_find_used_regs again via note_uses.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162427 138bc75d-0d04-0410-961f-82ee72b054a4

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162426 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago PR ada/44892
ebotcazou [Thu, 22 Jul 2010 19:28:21 +0000 (19:28 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162425 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
ebotcazou [Thu, 22 Jul 2010 19:12:46 +0000 (19:12 +0000)]
* gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
equality for the component type of array types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162424 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2010-07-22 Steve Ellcey <sje@cup.hp.com>
sje [Thu, 22 Jul 2010 18:14:27 +0000 (18:14 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162423 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * ChangeLog: Fix whitespace.
uros [Thu, 22 Jul 2010 18:10:32 +0000 (18:10 +0000)]
* ChangeLog: Fix whitespace.
* testsuite/ChangeLog: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162422 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoFix PR debug/45024
dodji [Thu, 22 Jul 2010 16:25:17 +0000 (16:25 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162420 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago * ira-build.c (ira_create_object): New arg SUBWORD; all callers changed.
bernds [Thu, 22 Jul 2010 15:48:30 +0000 (15:48 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162418 138bc75d-0d04-0410-961f-82ee72b054a4

14 years agoReplace dg-require-lto-plugin with dg-require-linker-plugin.
hjl [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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162417 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2010-07-22 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Jul 2010 14:19:40 +0000 (14:19 +0000)]
2010-07-22  Richard Guenther  <rguenther@suse.de>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162416 138bc75d-0d04-0410-961f-82ee72b054a4

14 years ago2010-07-22 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 22 Jul 2010 13:47:32 +0000 (13:47 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162415 138bc75d-0d04-0410-961f-82ee72b054a4