* gfortran.dg/char4_iunit_1.f03: Add ieee options.
[official-gcc/alias-decl.git] / gcc / ChangeLog
blob6173d65a2d7f2b800df74029e32b589509cdb966
1 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
4         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
5         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
6         (LANG_HOOKS_INITIALIZER): Add new hooks.
7         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
8         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
9         and complain_wrong_lang_p.  Update init_options prototype.
10         * c-objc-common.c (c_initialize_diagnostics): First call
11         c_common_initialize_diagnostics.
12         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
13         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
14         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
15         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
16         (hook_uint_void_0): New.
17         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
18         (hook_uint_void_0): New.
19         * opts-common.c (decode_cmdline_option,
20         decode_cmdline_options_to_array): Also fill in canonical_option field.
21         * opts.c (complain_wrong_lang): Use langhook to determine whether
22         to complain instead of special-casing LTO.
23         (decode_options): Separate lang_mask determination with
24         option_lang_mask hook from call of init_options hook.
25         * opts.h (struct cl_decoded_option): Add canonical_option.
27 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
29         PR tree-optimization/45083
30         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
32 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
34         * postreload.c (reload_combine_recognize_const_pattern): Move test
35         for limiting the insn movement to the right scope.
37         PR rtl-optimization/45051
38         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
39         than reg_mentioned_p.
41 2010-07-26  Richard Henderson  <rth@redhat.com>
43         PR target/44132
44         * tree-emutls.c: New file.
45         * Makefile.in (OBJS-common): Add it.
46         * tree-pass.h (pass_ipa_lower_emutls): Declare.
47         * passes.c (init_optimization_passes): Add it.
49         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
50         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
51         * expr.c (emutls_var_address): Delete.
52         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
53         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
54         (emutls_finish): Delete.
55         * toplev.c (compile_file): Don't call it.
56         * tree.h (emutls_decl): Delete.
57         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
58         (emutls_finish, emutls_finalize_control_var): Delete.
59         (emutls_object_type): Move to tree-emutls.c.
60         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
61         default_emutls_var_fields, get_emutls_object_type,
62         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
63         default_emutls_var_init): Likewise.
64         (get_variable_section): Don't special case emutls.
65         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
66         default_elf_select_section, default_unique_section,
67         default_encode_section_info): Likewise.
68         * varpool.c (decide_is_variable_needed): Likewise.
69         * gimple-iterator.c (update_call_edge_frequencies): New
70         (gsi_insert_on_edge_immediate): Use it.
71         (gsi_insert_seq_on_edge_immediate): Likewise.
72         (gsi_commit_one_edge_insert): Likewise.
74         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
75         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
76         (x86_64_elf_unique_section): Likewise.
78 2010-07-26  Jan Hubicka  <jh@suse.cz>
80         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
81         GTY((skip)).
83 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
85         * target.def (output_source_filename): New hook.
86         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
87         * doc/tm.texi: Regenerate.
88         * toplev.c (output_file_directive) Remove function.
89         * toplev.h (output_file_directive) Remove.
90         * output.h (default_asm_output_source_filename,
91         output_file_directive): Declare.
92         * varasm.h (default_asm_output_source_filename,
93         output_file_directive): New functions.
95         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
96         * config/mips/mips-protos.h (mips_output_filename): Remove.
97         * config/mips/mips.c (mips_output_filename): Make Static.
98         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
100 2010-07-26  Richard Guenther  <rguenther@suse.de>
102         PR tree-optimization/43784
103         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
104         if the destination is used by the call.
106 2010-07-26  Richard Guenther  <rguenther@suse.de>
108         PR middle-end/45073
109         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
110         SSA updating on being in SSA form.
112 2010-07-26  Richard Guenther  <rguenther@suse.de>
114         PR middle-end/45056
115         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
117 2010-07-26  Richard Guenther  <rguenther@suse.de>
119         PR tree-optimization/45071
120         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
121         adjust op->opcode.
123 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
125         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
126         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
127         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
128         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
129         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
130         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
131         save_r31, return_r31, save_interrupt, return_interrupt,
132         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
133         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
134         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
135         new ABI requirements.
136         (save_r6_r9, L_callt_save_r6_r9): Remove.
137         * config/v850/predicates.md (even_reg_operand, disp23_operand,
138         const_float_1_operand const_float_0_operand): New Predicates.
139         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
140         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
141         * config/v850/t-v850: Update multilibs for new target variants.
142         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
143         * config/v850/t-v850e: Likewise.
144         * config/v850/v850.c (v850_issue_rate): New.
145         (v850_strict_argument_naming): New.
146         (function_arg): Modify to generate a different ABI.
147         (print_operand): Update case 'z' to support float modes.
148         (output_move_single): Modify to generate appropriate and better
149         assembly.
150         (v850_float_z_comparison_operator, v850_select_cc_mode,
151         v850_float_nz_comparison_operator,  v850_gen_float_compare,
152         v850_gen_compare): New functions to support comparison of float values.
153         (ep_memory_offset): Add support for V850E2 targets.
154         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
155         (INTERRUPT_REGPARM_NUM): Remove.
156         (compute_register_save_size): Add extra case to save/restore long call.
157         (use_prolog_function): New function to support prologue.
158         (expand_prologue): Add support for V850E2 targets and modified
159         as per the current ABI requirements.
160         (expand_epilogue): Likewise.
161         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
162         (construct_save_jarl): Likewise.
163         (construct_dispose_instruction): Update as per the current ABI
164         requirements.
165         (construct_prepare_instruction): Likewise.
166         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
167         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
168         (CPP_SPEC): Updated to support v850e2 targets.
169         (STRICT_ALIGNMENT): Modified.
170         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
171         (FIXED_REGISTERS): Likewise.
172         (CALL_USED_REGISTERS): Likewise.
173         (CONDITIONAL_REGISTER_USAGE): Updated.
174         (HARD_REGNO_MODE_OK): Updated.
175         (reg_class): Updated to add even registers.
176         (REG_CLASS_NAMES): Likewise.
177         (REG_CLASS_CONTENTS): Likewise.
178         (REGNO_REG_CLASS): Updated for CC registers.
179         (REG_CLASS_FROM_LETTER): Added support for even registers.
180         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
181         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
182         ARG_POINTER_REGNUM): Updated.
183         (FUNCTION_ARG_ADVANCE): Define.
184         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
185         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
186         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
187         (GO_IF_LEGITIMATE_ADDRESS): Updated.
188         (SELECT_CC_MODE): Define.
189         (REGISTER_NAMES): Updated to add psw and fcc registers.
190         (ADDITIONAL_REGISTER_NAMES): Updated.
191         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
192         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
193         * config/v850/v850.md (define_constants): Define new constants.
194         (type): Update store,bit1,macc,div,fpu and single attributes.
195         (cpu): New attribute.
196         (cc): Add set_z attribute.
197         (unsign23byte_load, sign23byte_load, unsign23hword_load,
198         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
199         23word_store): New instructions for 23-bit displacement load and store.
200         (movqi_internal, movhi_internal): Update the attributes.
201         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
202         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
203         the attributes.
204         (v850_tst1): Modified using CC_REGNUM.
205         (tstsi): Remove.
206         (cmpsi): Modified as define_expand from define_insn.
207         (cmpsi_insn, cmpsf, cmpdf): New instructions.
208         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
209         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
210         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
211         one_cmplsi2): Clobber the CC_REGNUM register.
212         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
213         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
214         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
215         (setf_insn, set_z_insn, set_nz_insn): New instructions for
216         v850e2v3 target.
217         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
218         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
219         targets.
220         (sasf_1, sasf_2): Remove.
221         (sasf): New instruction.
222         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
223         targets. CC_REGNUM register is clobbered and attributes are
224         updated.
225         (branch_z_normal, branch_z_invert, branch_nz_normal,
226         branch_nz_invert): New branch related instructions.
227         (jump): Updated the attributes.
228         (switch): Update to support new targets. CC_REGNUM register is
229         clobbered and attributes are updated.
230         (call_internal_short, call_internal_long, call_value_internal_short,
231         call_value_internal_long): Updated the attributes.
232         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
233         clobbered and attributes are updated.
234         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
235         Update to support new targets. CC_REGNUM register is clobbered.
236         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
237         instructions.
238         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
239         are updated.
240         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
241         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
242         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
243         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
244         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
245         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
246         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
247         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
248         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
249         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
250         point instructions defined for V850e2v3 target.
251         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
252         Add support for V850E2 targets and CC_REGNUM register is clobbered.
253         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
254         support for new targets.
255         * config/v850/v850-modes.def: New file.
256         * config/v850/v850.opt(mstrict-align): Remove.
257         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
258         mv850e2v3): New command line options for V850.
259         * config.gcc: Update the newly added files.
260         * doc/invoke.texi: Update the newly added command line options for
261         V850 target.
263 2010-07-26  Richard Guenther  <rguenther@suse.de>
265         PR tree-optimization/45052
266         * ipa-pure-const.c (check_stmt): Check volatileness.
268 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
270         PR target/44707
271         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
272         * config/sparc/sparc.c: Include reload.h.
273         (legitimize_tls_address): Rename into...
274         (sparc_legitimize_tls_address): ...this.
275         (legitimize_pic_address): Rename into...
276         (sparc_legitimize_pic_address): ...this.
277         (sparc_expand_move): Adjust to above renaming.
278         (sparc_tls_referenced_p): Likewise.
279         (sparc_legitimize_tls_address): Likewise.
280         (sparc_legitimize_pic_address): Likewise.
281         (sparc_legitimize_address): Likewise.
282         (sparc_output_mi_thunk): Likewise.
283         (sparc_legitimize_reload_address): New global function.  Recognize
284         (lo_sum (high ...) ...) patterns generated by earlier passes.
285         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
287 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
289         PR target/44484
290         * config/sparc/predicates.md (memory_reg_operand): Delete.
291         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
292         (*sync_compare_and_swap): Encode the address form in the pattern.
293         (*sync_compare_and_swapdi_v8plus): Likewise.
295 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
297         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
298         Streamline paragraph on compatibility with the system compiler.
300 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
302         PR middle-end/45035
303         * alias.c (true_dependence_1): Fix thinko in merge of old
304         true_dependence and canon_true_dependence.
306 2010-07-23  Jan Hubicka  <jh@suse.cz>
308         * lto-streamer-out.c (write_symbol): Fix visibilities of external
309         references.
311 2010-07-23  Le-Chun Wu  <lcwu@google.com>
313         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
314         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
315         and an unnecessary assignment.
316         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
317         self-assign warning.
318         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
319         unnecessary self-init.
321 2010-07-23  Richard Guenther  <rguenther@suse.de>
323         PR lto/43071
324         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
325         for -flto and -fwhopr.
327 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
329         PR target/41943
330         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
331         (stmp-int-hdrs): Prefix/postfix headers by include_next.
332         * config.gcc (user_headers_inc_next_pre): New.
333         (user_headers_inc_next_post): Likewise.
334         (*-w64-mingw*): Use for float.h post-fixing, and for
335         stddef.h/stdarg.h pre-fixing by include_next.
336         * configure.ac (user_headers_inc_next_post): New.
337         (user_headers_inc_next_pre): New.
338         * configure: Regenerated.
340 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
342         * configure.ac: Don't disable TLS on Solaris 8/9 by default
343         Set tga_func for Solaris 2/x86 resp. SPARC.
344         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
345         (LIB_THREAD_LDFLAGS_SPEC): Define.
346         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
347         * configure: Regenerate.
348         * config.in: Regenerate.
349         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
350         -pthread, -threads, LIB_TLS_SPEC with -pthread.
351         * doc/install.texi (Specific, *-*-solaris2*): Document use of
352         alternate thread libraries on Solaris 8.
353         Document TLS patch requirements.
354         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
355         Document tls.
357         PR target/18788
358         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
359         -shared.
361 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
363         * tree.h (struct tree_base): Add nameless_flag bitfield.
364         (TYPE_NAMELESS, DECL_NAMELESS): Define.
365         * omp-low.c (create_omp_child_function, scan_omp_parallel,
366         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
367         DECL_ARTIFICIAL where needed.
368         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
369         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
370         has DECL_NAMELESS set.
372 2010-07-23  Martin Jambor  <mjambor@suse.cz>
374         PR tree-optimization/44915
375         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
376         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
377         (analyze_function): Likewise.
379 2010-07-23  Martin Jambor  <mjambor@suse.cz>
381         PR tree-optimization/44914
382         * tree-sra.c (sra_modify_function_body): Return true if CFG was
383         changed, add purging dead eh edges.
384         (ipa_sra_modify_function_body): Return true if CFG was changed,
385         simplify purging dead eh edges.
386         (modify_function): Return true if CFG was changed.
387         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
388         was changed.
389         (ipa_early_sra): Likewise.
391 2010-07-23  Jie Zhang  <jie@codesourcery.com>
393         PR target/44290
394         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
395         if "naked".
396         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
397         false if ! tree_versionable_function_p.
399 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
401         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
402         * ipa-pure-const.c (special_builtlin_state): Remove
403         BUILT_IN_ARGS_INFO case.
404         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
405         * builtins.c (expand_builtin): Likewise.
406         (expand_builtin_args_info): Remove.
407         * doc/tm.texi (__builtin_args_info): Remove.
408         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
409         * doc/tm.text.in: Likewise.
411 2010-07-23  Richard Guenther  <rguenther@suse.de>
413         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
414         (lto_symtab_merge_decls_2): Likewise.
415         * tree-ssa.c (useless_type_conversion_p): Likewise.
416         * lto-streamer-in.c (input_gimple_stmt): Likewise.
417         * gimple.c (gtc_visited2, gtc_ob2): Remove.
418         (struct type_pair_d): Make same_p an array indexed by mode.
419         Update comment.
420         (lookup_type_pair): Update initialization.
421         (struct sccs): Adjust same_p type.
422         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
423         Adjust.
424         (print_gimple_types_stats): Likewise.
425         * gimple.h (enum gtc_mode): New.
426         (gimple_types_compatible_p): Adjust prototype.
428 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
430         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
431         again after processing insn.
433 2010-07-23  Jie Zhang  <jie@codesourcery.com>
435         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
436         proper words when !tree_versionable_function_p.
438 2010-07-23  Richard Guenther  <rguenther@suse.de>
440         PR tree-optimization/45037
441         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
443 2010-07-23  Jie Zhang  <jie@codesourcery.com>
445         * doc/extend.texi: Remove IP2K from the description of naked attribute.
446         Add MCORE instead.
448 2010-07-10  Andi Kleen  <ak@linux.intel.com>
450         PR lto/44992
451         * lto-opts.c (lto_write_options): Add NULL file_data argument to
452         lto_get_section_name.
453         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
454         * lto-streamer-out.c (produce_asm): Likewise.
455         (copy_function): Likewise.
456         (produce_symtab): Likewise.
457         (produce_asm_for_decls): Likewise.
458         * lto-streamer.c (lto_get_section_name): Add file_data argument.
459         Rewrite to add random postfix to LTO sections.
460         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
461         (lto_get_section_name): Add file_data argument to prototype.
463 2010-07-10  Andi Kleen  <ak@linux.intel.com>
465         * lto-section-in.c (lto_section_name): Synchronize names
466         with lto_get_section_name.
468 2010-07-10  Andi Kleen  <ak@linux.intel.com>
470         * lto-opts.c (lto_read_file_options): Check for missing section.
472 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
474         * ira.c (check_allocation): Correctly handle the case where an allocno
475         with two objects was allocated to a single reg.
477 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
479         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
480         (is_widening_mult_p): Likewise.
481         (convert_to_widen): Use them.
482         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
483         well as integer ones.
485 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
487         * alias.c (true_dependence_1): New function, merged version of
488         true_dependence and canon_true_dependence.
489         (true_dependence): Simplify.
490         (canon_true_dependence): Simplify.
492 2010-07-22  Richard Henderson  <rth@redhat.com>
494         PR target/45027
495         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
496         of V4SFmode for the SSE saves; increase stack alignment if needed.
497         (ix86_gimplify_va_arg): Don't increase stack alignment here.
499 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
501         PR bootstrap/45028
502         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
503         call cprop_find_used_regs again via note_uses.
505 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
507         * alias.c (get_alias_set): Fix formatting issues.
509 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
511         PR middle-end/44878
512         * stmt.c (expand_value_return):  Call promote_function_mode with
513         a for_return argument of 2 when returning by reference.
515 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
517         PR debug/45024
518         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
519         unit DIE if we can find the scope DIE.
521 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
523         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
524         changed.  Initialize OBJECT_SUBWORD.
525         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
526         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
527         all callers changed.
528         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
529         (finish_allocno): Likewise.
530         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
531         (remove_low_level_allocnos): Likewise.
532         (update_bad_spill_attribute): Likewise.
533         (setup_min_max_allocno_live_range_point): Likewise.
534         (sort_conflict_id_map): Likewise.
535         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
536         (ior_hard_reg_conflicts): New function.
537         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
538         (compress_conflict_vecs): Iterate over objects, not allocnos.
539         (ira_add_live_range_to_object): New function.
540         (object_range_compare_func): Renamed from allocno_range_compare_func.
541         All callers changed.
542         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
543         subobjects, widen the min/max range of the lowest-order object to
544         potentially include all other such low-order objects.
545         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
546         (check_allocation): Likewise.  Use more fine-grained tests for register
547         conflicts.
548         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
549         allocno subobjects.
550         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
551         choices about which bits to set in each set.  Don't use
552         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
553         using the multiple sets we computed.
554         (push_allocno_to_stack): Iterate over allocno subobjects.
555         (all_conflicting_hard_regs_coalesced): New static function.
556         (setup_allocno_available_regs_num): Use it.
557         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
558         subobjects.
559         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
560         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
561         by ALLOCNO_NUM_OBJECTS.
562         (calculate_spill_cost): Likewise.
563         (color_pass): Express if statement in a more normal way.
564         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
565         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
566         (setup_slot_coalesced_allocno_live_ranges): Likewise.
567         (allocno_reload_assign): Likewise.
568         (ira_reassign_pseudos): Likewise.
569         (fast_allocation): Likewise.
570         * ira-conflicts.c (build_conflict_bit_table): Likewise.
571         (print_allocno_conflicts): Likewise.
572         (ira_build_conflicts): Likewise.
573         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
574         callers changed.  Test subword 0 of each allocno for conflicts.
575         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
576         callers changed.  Iterate over allocno subobjects.
577         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
578         * ira-int.h (struct ira_allocno): New member: num_objects.
579         Rename object to objects and change it into an array.
580         (ALLOCNO_OBJECT): Add new argument N.
581         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
582         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
583         (ior_hard_reg_conflicts): Declare.
584         (ira_add_live_range_to_object): Declare.
585         (ira_allocno_object_iterator): New.
586         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
587         (FOR_EACH_ALLOCNO_OBJECT): New macro.
588         * ira-lives.c (objects_live): Renamed from allocnos_live; all
589         uses changed.
590         (allocnos_processed): New sparseset.
591         (make_object_born): Renamed from make_allocno_born; take an
592         ira_object_t argument.  All callers changed.
593         (make_object_dead): Renamed from make_allocno_dead; take an
594         ira_object_t argument.  All callers changed.
595         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
596         All callers changed.
597         (mark_pseudo_regno_live): Iterate over allocno subobjects.
598         (mark_pseudo_regno_dead): Likewise.
599         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
600         functions.
601         (mark_ref_live): Detect subword accesses and call
602         mark_pseudo_regno_subword_live as appropriate.
603         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
604         (process_bb_nodes_live): Deal with object-related updates first; set
605         and test bits in allocnos_processed to avoid computing allocno
606         statistics more than once.
607         (create_start_finish_chains): Iterate over objects, not allocnos.
608         (print_object_live_ranges): New function.
609         (print_allocno_live_ranges): Use it.
610         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
611         and objects_live.
613 2010-07-22  Richard Guenther  <rguenther@suse.de>
615         PR lto/42451
616         * gimple.c (gtc_next_dfs_num): New global.
617         (struct sccs): Make value a union, add integer same_p member.
618         (gtc_visit): New function.
619         (gimple_types_compatible_p_1): New function, split out from ...
620         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
621         (iterative_hash_gimple_type): Adjust for sccs change.
623 2010-07-22  Martin Jambor  <mjambor@suse.cz>
625         PR tree-optimization/44891
626         * tree-sra.c: Include gimple-pretty-print.h.
627         (replace_uses_with_default_def_ssa_name): Renamed to
628         get_repl_default_def_ssa_name, return the new SSA name instead of
629         replacing the old one.
630         (sra_modify_assign): Dump a message when removing a load, if the LHS
631         is an SSA_NAME, do not do any propagation, just set the RHS to a
632         default definition SSA NAME, type convert if necessary.
633         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
635 2010-07-22  Richard Guenther  <rguenther@suse.de>
637         PR tree-optimization/45017
638         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
639         TYPE_PRECISION of integral types in addition to size.
641 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
643         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
644         when no C library is specified.
646 2010-07-22  Martin Jambor  <mjambor@suse.cz>
648         * ipa-prop.h (struct ipa_node_params): Updated comment.
649         (struct ipa_edge_args): Likewise.
650         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
652 2010-07-22  Martin Jambor  <mjambor@suse.cz>
654         * cgraphunit.c (verify_edge_count_and_frequency): New function.
655         (verify_cgraph_node): Verify frequencies of indirect edges.
656         * tree-inline.c (tree_function_versioning): Update frequencies of
657         indirect edges.
659 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
661         PR target/43698
662         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
663         Set *arm_rev to be predicable.
665 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
667         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
668         (LINK_COMMAND_SPEC_A): New.
669         (DSYMUTIL): New.
670         (DSYMUTIL_SPEC): New.
671         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
672         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
674 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
676         * calls.c (load_register_parameters): Move check for zero
677         sized items so that only the call to
678         mem_overlaps_already_clobbered_arg_p () is protected.
680 2010-07-22  Jan Hubicka  <jh@suse.cz>
682         * ipa-pure-const.c (varying_state): Break out from ...
683         (get_function_state): ... here; always return varying_state
684         when state would be NULL otherwise.
685         (remove_node_data): Do not free varying state.
687 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
689         PR bootstrap/44970
690         PR middle-end/45009
691         * postreload.c: Include "target.h".
692         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
693         into account.
694         (fixup_debug_insns): Don't copy the rtx.
695         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
696         Don't copy when replacing.  Call fixup_debug_insns in the case where
697         we merged one add with another.
698         (reload_combine_recognize_pattern): Fail if there aren't any uses.
699         Try harder to determine whether we're picking a valid index register.
700         Don't set store_ruid for an insn we're going to scan in the
701         next iteration.
702         (reload_combine): Remove unused code.
703         (reload_combine_note_use): When updating use information for
704         an old insn, ignore a use that occurs after store_ruid.
705         * Makefile.in (postreload.o): Update dependencies.
707         * function.c (record_hard_reg_sets): Restrict the previous change
708         to cases where the incoming nominal mode is the same as the
709         incoming promoted mode and everything happens in MODE_INT.
711 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
713         PR debug/45015
714         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
715         ASM_OPERANDS_OUTPUT_IDX.
716         (adjust_insn): For inline asm with multiple sets ensure first
717         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
718         the insn.
720 2010-07-21  Richard Henderson  <rth@redhat.com>
722         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
723         comparison for avoiding xmm register saves.  Emit the xmm register
724         saves explicitly.
725         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
726         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
727         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
728         Remove patterns and the associated splitters.
730 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
732         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
733         and imagine parts of a complex, so that they can have the same
734         base and fall into the same group.
736 2010-07-21  Richard Guenther  <rguenther@suse.de>
738         PR lto/45018
739         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
740         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
741         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
743 2010-07-21  Martin Jambor  <mjambor@suse.cz>
745         PR tree-optimization/44900
746         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
747         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
749 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
751         PR middle-end/44738
752         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
754 2010-07-21  Richard Guenther  <rguenther@suse.de>
756         PR middle-end/45013
757         * tree-ssa.c (useless_type_conversion_p): Dispatch to
758         gimple_types_compatible_p only when in lto.
759         * gimple.c (gimple_types_compatible_p): Use canonical types
760         to speed up comparison.
762 2010-07-21  Richard Guenther  <rguenther@suse.de>
764         * tree-flow.h (referenced_var): Move define ...
765         * tree-flow-inline.h (referenced_var): ... here as an inline
766         function.  Assert here ...
767         * tree-dfa.c (referenced_var_lookup): ... instead of here.
768         * tree-ssa.c (maybe_optimize_var): Check if the variable
769         is in referenced vars.
770         (execute_update_addresses_taken): Remove old broken check.
771         * gimple-pretty-print.c (pp_points_to_solution): Use
772         referenced_var_lookup.
773         * tree-into-ssa.c (dump_decl_set): Likewise.
775 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
777         PR debug/45003
778         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
779         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
780         ZERO_EXTEND here.
782 2010-07-20  Richard Henderson  <rth@redhat.com>
784         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
786 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
788         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
789         computing the sum of the stack pointer and a large constant.
790         * config/arm/constraints.md (M): Remove superfluous parentheses.
791         (Pc): New constraint.
793 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
795         PR debug/45006
796         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
797         operand's type if exp is tcc_unary class tree.
799 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
801         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
802         Reverse sense of if_then_else condition.
804 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
806         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
807         * config/rs6000/rs6000.c (rs6000_override_options): Set
808         rs6000_block_move_inline_limit appropriately.
809         (expand_block_move): Use rs6000_block_move_inline_limit.
810         * doc/invoke.texi (mblock-move-inline-limit): Document.
812 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
814         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
815         FROM and TO.  All callers changed.  Don't look for tracked uses,
816         just scan the RTL for DEBUG_INSNs and substitute.
817         (reload_combine_recognize_pattern): Call fixup_debug_insns.
818         (reload_combine): Ignore DEBUG_INSNs.
820 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
822         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
823         depth to 8 from 5.
825         PR debug/45003
826         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
827         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
828         instead of the result's type.
830 2010-07-20  Richard Guenther  <rguenther@suse.de>
832         PR tree-optimization/44977
833         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
834         SSA form.
836 2010-07-20  Richard Guenther  <rguenther@suse.de>
838         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
839         (lto_symtab_merge_decls_2): Likewise.
840         * gimple.h (gimple_types_compatible_p): Declare.
841         * gimple.c (gimple_queue_type_fixup): Remove.
842         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
843         (gimple_compatible_complete_and_incomplete_type_p): New function.
844         (gimple_types_compatible_p): Adjust.
845         (gimple_register_type): Remove type fixup code.
846         (print_gimple_types_stats): Adjust.
847         (free_gimple_type_tables): Likewise.
848         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
849         * tree-ssa.c (useless_type_conversion_p): Likewise.
851 2010-07-20  Richard Guenther  <rguenther@suse.de>
853         PR middle-end/44971
854         PR middle-end/44988
855         * tree-ssa.c (maybe_optimize_var): New function split out from ...
856         (execute_update_addresses_taken): ... here.
857         (non_rewritable_mem_ref_base): Likewise.
858         (execute_update_addresses_taken): Do not iterate over all referenced
859         vars but just all local decls and parms.
860         Properly check call and asm arguments and rewrite call arguments.
862 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
864         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
865         to top level.
866         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
867         definitions ...
868         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
869         New macro.
870         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
872 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
874         * gengtype.c (start_root_entry): New function, split out from
875         write_root.  Check whether V is null and raise an error if so.
876         (write_field_root): Check for V being null.  Don't raise an error here;
877         set V to null instead.
878         (write_root): Update comment above function.  Use start_root_entry.
880 2010-07-19  Xinliang David Li  <davidxl@google.com>
882         PR testsuite/44932
883         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
884         def edges.
885         (find_uninit_use): Add dump.
886         (is_use_properly_guarded): Ditto.
887         (warn_uninitialized_phi): Ditto.
888         (execute_late_warn_uninitialized): Ditto.
890 2010-07-19  Richard Guenther  <rguenther@suse.de>
892         PR middle-end/44941
893         * expr.c (emit_block_move_hints): Move zero size check first.
894         Move asserts to more useful places.
895         * calls.c (load_register_parameters): Check for zero size.
897 2010-07-19  Richard Henderson  <rth@redhat.com>
899         * tree-optimize.c (execute_all_early_local_passes): New.  Change
900         cgraph_state here ...
901         (execute_early_local_optimizations): ... not here.  Remove.
902         (pass_early_local_passes, pass_all_early_optimizations): Update.
904 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
906         * postreload.c (reload_combine_closest_single_use): Ignore the
907         number of uses for DEBUG_INSNs.
908         (fixup_debug_insns): New static function.
909         (reload_combine_recognize_const_pattern): Use it.  Don't let the
910         main loop be affected by DEBUG_INSNs.
911         Really disallow moving adds past a jump insn.
912         (reload_combine_recognize_pattern): Don't update use_ruid here.
913         (reload_combine_note_use): Do it here.
914         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
916 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
918         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
919         of a loop.
920         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
922 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
924         * config/i386/darwin.h: Define darwin_emit_branch_islands.
925         (TARGET_MACHO_BRANCH_ISLANDS): New.
926         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
927         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
928         default value.
929         * config/i386/i386.c (output_pic_addr_const): Do not emit
930         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
931         (x86_output_mi_thunk): Adjust symbol creation.
932         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
933         Remove out of date comment.
934         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
935         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
936         (DARWIN_GENERATE_ISLANDS): Ditto.
937         (output_call):  Do not emit branch islands unless
938         darwin_emit_branch_islands is set.
939         * config/darwin.c: Declare darwin_emit_branch_islands.
940         (machopic_indirect_data_reference): Do not emit unless
941         darwin_emit_branch_islands is set.
942         (darwin_override_options): Set darwin_emit_branch_islands
943         where it is needed.
944         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
946 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
948         * doc/sourcebuild.texi (Effective-Target Keywords): Document
949         sse_runtime, sse2_runtime.
951 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
953         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
954         low half of a single-register SCmode return value before ORing
955         it with the high half.
956         * config/mips/mips16.S (MERGE_GPRf): Likewise.
958 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
960         PR target/44805
961         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
962         on all targets.
964 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
966         PR target/42235
967         * postreload.c (reload_cse_move2add): Return bool, true if anything.
968         changed.  All callers changed.
969         (move2add_use_add2_insn): Likewise.
970         (move2add_use_add3_insn): Likewise.
971         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
972         reload_combine.
973         (RELOAD_COMBINE_MAX_USES): Bump to 16.
974         (last_jump_ruid): New static variable.
975         (struct reg_use): New members CONTAINING_MEM and RUID.
976         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
977         (reload_combine_split_one_ruid, reload_combine_split_ruids,
978         reload_combine_purge_insn_uses, reload_combine_closest_single_use
979         reload_combine_purge_reg_uses_after_ruid,
980         reload_combine_recognize_const_pattern): New static functions.
981         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
982         is true for our reg and that we have available index regs.
983         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
984         callers changed.  Use them to initialize fields in struct reg_use.
985         (reload_combine): Initialize last_jump_ruid.  Be careful when to
986         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
987         Call reload_combine_recognize_const_pattern.
988         (reload_combine_note_store): Update REAL_STORE_RUID field.
990 2010-07-16  Jason Merrill  <jason@redhat.com>
992         * Makefile.in (opts-common.o): Depend on options.h.
994 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
996         * tree.c (build_common_builtin_nodes): Use build_function_type_list
997         instead of build_function_type.
998         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
999         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1001 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
1003         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
1004         do all the work.
1005         (rs6000_emit_int_cmove): Use function pointers for insn generation.
1006         Don't force values into registers unnecessarily.
1007         (output_isel): Assert that we're not given conditions we can't handle.
1008         Delete corresponding code.
1009         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
1010         scc_comparison_operator constraint.  Permit 0 for the consequent
1011         operand.  Permit any GPR for the alternative operand.
1012         (isel_unsigned_<mode>): Likewise.
1014 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
1016         PR target/44942
1017         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
1018         argument to const_tree.
1019         * config/i386/i386.c (function_arg_advance): If padding needs to be
1020         inserted before argument, increment cum->words by number of padding
1021         words as well.
1022         (contains_aligned_value_p): Change argument to const_tree.
1023         (ix86_function_arg_boundary): Change second argument to const_tree.
1025 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
1027         PR target/42235
1028         * function.c (record_hard_reg_sets): New static function.
1029         (assign_parm_setup_reg): If an optab for extending exists and the
1030         generated code clobbbers no hard regs, emit the insn directly and
1031         create a REG_EQUIV note.
1033 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1035         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
1036         TREE_CHAIN.
1037         * c-typeck.c (push_init_level): Likewise.
1038         (process_init_element): Likewise.
1040 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
1042         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
1043         (integer_three_node): Add.
1044         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
1045         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
1046         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
1047         of call build_int_cst.
1048         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
1049         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
1050         (find_interesting_uses_address): Ditto.
1051         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
1052         * tree-eh.c (lower_eh_constructs_2): Ditto.
1053         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
1054         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
1055         * expmed.c (expand_divmod): Ditto.
1056         * tree-mudflap.c (mx_register_decls): Ditto.
1057         * varasm.c (array_size_for_constructor): Ditto.
1058         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1059         * c-parser.c (c_parser_postfix_expression): Ditto.
1061 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
1063         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
1064         New static variables.
1065         (reload_combine_recognize_pattern): New static function, broken out
1066         of reload_combine.
1067         (reload_combine): Use it.  Only initialize first_index_reg and
1068         last_index_reg once.
1070 2010-07-15  Richard Henderson  <rth@redhat.com>
1072         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
1073         when done.
1075 2010-07-15  Jan Hubicka  <jh@suse.cz>
1077         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
1078         comdats for broken gold.
1079         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
1081 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1083         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
1085 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1087         * tree.h (DECL_CHAIN): Define.
1088         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1089         * c-decl.c: Likewise.
1090         * c-parser.c: Likewise.
1091         * c-typeck.c: Likewise.
1092         * cfgexpand.c: Likewise.
1093         * cgraph.c: Likewise.
1094         * cgraphunit.c: Likewise.
1095         * combine.c: Likewise.
1096         * config/alpha/alpha.c: Likewise.
1097         * config/arm/arm.c: Likewise.
1098         * config/frv/frv.c: Likewise.
1099         * config/i386/i386.c: Likewise.
1100         * config/i386/winnt-cxx.c: Likewise.
1101         * config/ia64/ia64.c: Likewise.
1102         * config/iq2000/iq2000.c: Likewise.
1103         * config/mep/mep.c: Likewise.
1104         * config/mips/mips.c: Likewise.
1105         * config/pa/som.h: Likewise.
1106         * config/rs6000/rs6000.c: Likewise.
1107         * config/s390/s390.c: Likewise.
1108         * config/sh/sh.c: Likewise.
1109         * config/sh/symbian-cxx.c: Likewise.
1110         * config/sparc/sparc.c: Likewise.
1111         * config/spu/spu.c: Likewise.
1112         * config/stormy16/stormy16.c: Likewise.
1113         * config/vxworks.c: Likewise.
1114         * config/xtensa/xtensa.c: Likewise.
1115         * coverage.c: Likewise.
1116         * dbxout.c: Likewise.
1117         * dwarf2out.c: Likewise.
1118         * emit-rtl.c: Likewise.
1119         * expr.c: Likewise.
1120         * function.c: Likewise.
1121         * gimple-low.c: Likewise.
1122         * gimple-pretty-print.c: Likewise.
1123         * gimplify.c: Likewise.
1124         * integrate.c: Likewise.
1125         * ipa-inline.c: Likewise.
1126         * ipa-prop.c: Likewise.
1127         * ipa-split.c: Likewise.
1128         * ipa-struct-reorg.c: Likewise.
1129         * ipa-type-escape.c: Likewise.
1130         * langhooks.c: Likewise.
1131         * lto-cgraph.c: Likewise.
1132         * omp-low.c: Likewise.
1133         * stor-layout.c: Likewise.
1134         * tree-cfg.c: Likewise.
1135         * tree-complex.c: Likewise.
1136         * tree-dfa.c: Likewise.
1137         * tree-dump.c: Likewise.
1138         * tree-inline.c: Likewise.
1139         * tree-mudflap.c: Likewise.
1140         * tree-nested.c: Likewise.
1141         * tree-object-size.c: Likewise.
1142         * tree-pretty-print.c: Likewise.
1143         * tree-sra.c: Likewise.
1144         * tree-ssa-live.c: Likewise.
1145         * tree-ssa-loop-niter.c: Likewise.
1146         * tree-ssa-math-opts.c: Likewise.
1147         * tree-ssa-reassoc.c: Likewise.
1148         * tree-ssa-sccvn.c: Likewise.
1149         * tree-ssa-structalias.c: Likewise.
1150         * tree-tailcall.c: Likewise.
1151         * tree-vrp.c: Likewise.
1152         * tree.c: Likewise.
1153         * var-tracking.c: Likewise.
1154         * varasm.c: Likewise.
1156 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1158         PR target/44877
1159         * config/spu/spu.c (spu_expand_builtin_1): Allow references
1160         (as well as pointers) as argument to mask_for_load builtins.
1162 2010-07-15  Richard Guenther  <rguenther@suse.de>
1164         PR tree-optimization/44946
1165         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
1166         with accessing only padding properly.
1168 2010-07-15  Jan Hubicka  <jh@suse.cz>
1170         * ipa.c (function_and_variable_visibility): Variables marked as used
1171         should not be localized.
1173 2010-07-15  Jan Hubicka  <jh@suse.cz>
1175         * cgraph.c: Include lto-streamer.h
1176         (change_decl_assembler_name): Work when assembler name hash is at place.
1177         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
1178         be sure to rename it to avoid name clash.
1179         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
1180         Localize hidden symbols only when locally defined.
1182 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
1184         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
1186 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
1187             Kevin F. Quinn  <kevquinn@gentoo.org>
1189         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
1190         * common.opt: Add -Wtrampolines.
1191         * doc/invoke.texi: Add -Wtrampolines.
1193 2010-07-15  Jie Zhang  <jie@codesourcery.com>
1195         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
1196         cortex_a8_issue_ls.
1198 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
1200         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
1201         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1203 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1205         * config/spu/spu.c (reg_names): Remove prototype.
1206         (call_used_regs): Likewise.
1208 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
1210         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
1211         "unused" with attribute "used".
1212         (__JCR_END__): Likewise.
1213         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
1214         "used" attribute.
1215         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
1217 2010-07-14  Richard Guenther  <rguenther@suse.de>
1219         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
1220         (maybe_fixup_decls): Likewise.
1221         (input_gimple_stmt): Do not fixup anything.
1222         * lto-streamer-out.c (output_gimple_stmt): Make sure all
1223         non-automatic variable uses are wrapped inside a MEM_REF.
1225 2010-07-14  Richard Henderson  <rth@redhat.com>
1227         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
1228         for functions.
1229         * varasm.c (assemble_variable): Remove early exit for functions;
1230         assert that we're given a variable.
1232 2010-07-14  Jie Zhang  <jie@codesourcery.com>
1234         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
1235         cortex_a8_default when neon_type is not none.
1237 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1239         * lower-subreg.c (subreg_context): New static bitmap.
1240         (decompose_multiword_subregs): Allocate and free it.
1241         (find_decomposable_subregs): Set a bit in it for a register that
1242         occurs in a subreg that changes mode but not size.
1243         (can_decompose_p): Test it instead of non_decomposable_context.
1245 2010-07-14  Richard Guenther  <rguenther@suse.de>
1247         PR tree-optimization/44824
1248         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
1249         is_gimple_mem_ref_addr.
1250         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
1251         non-decl_address_invariant_p addresses.
1253 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1255         * reload.c (find_reloads): Revert code to penalize small register
1256         classes that was brought in with the IRA merge.
1258 2010-07-14  Richard Guenther  <rguenther@suse.de>
1260         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
1261         as base of ARRAY_REFs.
1263 2010-07-14  Richard Guenther  <rguenther@suse.de>
1265         PR middle-end/44930
1266         * tree-pretty-print.c (do_niy): Do not print a newline.
1268 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1270         * ira-int.h (struct ira_object): New.
1271         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
1272         (struct ira_allocno): Remove members min, max,
1273         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
1274         conflict_allocnos_num and conflict_vec_p.  Add new member object.
1275         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
1276         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
1277         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
1278         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
1279         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
1280         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
1281         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
1282         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
1283         an ira_object_t rather than ira_allocno_t.  All uses changed.
1284         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
1285         contains a vector of ira_object_t; all uses changed.
1286         (ira_objects_num): Declare variable.
1287         (ira_create_allocno_object): Declare function.
1288         (ira_conflict_vector_profitable_p): Adjust prototype.
1289         (ira_allocate_conflict_vec): Renamed from
1290         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
1291         (ira_allocate_object_conflicts): Renamed from
1292         ira_allocate_allocno_conflicts; first arg now ira_object_t.
1293         (struct ira_object_iterator): New.
1294         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
1295         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
1296         to conflict_vec_p.  All uses changed.
1297         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
1298         Changed to take into account that conflicts are now tracked for
1299         objects.
1300         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
1301         Args changed to accept ira_object_t.  All uses changed.
1302         (allocnos_conflict_p): New static function.
1303         (collected_conflict_objects): Renamed from collected_allocno_objects;
1304         now a vector of ira_object_t.  All uses changed.
1305         (build_conflict_bit_table): Changed to take into account that
1306         conflicts are now tracked for objects.
1307         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
1308         (print_allocno_conflicts, ira_build_conflicts): Likewise.
1309         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
1310         setup_allocno_left_conflicts_size, allocno_reload_assign,
1311         fast_allocation): Likewise.
1312         * ira-lives.c (make_hard_regno_born, make_allocno_born)
1313         process_single_reg_class_operands, process_bb_node_lives): Likewise.
1314         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
1315         Likewise.
1316         * ira-build.c (ira_objects_num): New variable.
1317         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
1318         contains a vector of ira_object_t; all uses changed.
1319         (ira_object_id_map_vec): Corresponding change.
1320         (object_pool): New static variable.
1321         (initiate_allocnos): Initialize it.
1322         (finish_allocnos): Free it.
1323         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
1324         New functions.
1325         (ira_create_allocno): Don't set members that were removed.
1326         (ira_set_allocno_cover_class): Don't change conflict hard regs.
1327         (merge_hard_reg_conflicts): Changed to take into account that
1328         conflicts are now tracked for objects.
1329         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
1330         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
1331         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
1332         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
1333         setup_min_max_conflict_allocno_ids, ):  Likewise.
1334         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
1335         to ira_object_t; all callers changed.
1336         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
1337         to ira_object_t, all callers changed.
1338         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
1339         to ira_object_t, all callers changed.
1340         (conflict_check, curr_conflict_check_tick): Renamed from
1341         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
1342         changed.
1343         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
1344         arg changed to ira_object_t, all callers changed.
1345         (create_cap_allocno): Call ira_create_allocno_object.
1346         (finish_allocno): Free the corresponding object.
1347         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
1348         callers changed.  Adjusted for dealing with objects.
1349         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
1350         dealing with objects.
1351         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
1353         * ira-int.h (struct live_range): Rename allocno member to object
1354         and change type to ira_object_t.
1355         (struct ira_object): New member live_ranges.
1356         (struct ira_allocno): Remove member live_ranges.
1357         (ALLOCNO_LIVE_RANGES): Remove.
1358         (OBJECT_LIVE_RANGES): New macro.
1359         (ira_create_live_range, ira_copy_live_range_list,
1360         ira_merge_live_range_list, ira_live_ranges_intersect_p,
1361         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
1362         * ira-build.c (ira_create_object): Initialize live ranges here.
1363         (ira_create_allocno): Not here.
1364         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
1365         changed to ira_object_t, all callers changed.
1366         (copy_live_range): Rename from copy_allocno_live_range, all callers
1367         changed.
1368         (ira_copy_live_range_list): Rename from
1369         ira_copy_allocno_live_range_list, all callers changed.
1370         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
1371         all callers changed.
1372         (ira_live_ranges_intersect_p): Rename from
1373         ira_allocno_live_ranges_intersect_p, all callers changed.
1374         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
1375         callers changed.
1376         (ira_finish_live_range_list): Rename from
1377         ira_finish_allocno_live_range_list, all callers changed.
1378         (change_object_in_range_list): Rename from change_allocno_in_range_list,
1379         last arg changed to ira_object_t, all callers changed.
1380         (finish_allocno): Changed to expect live ranges in the allocno's object.
1381         (move_allocno_live_ranges, copy_allocno_live_ranges,
1382         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
1383         ira_flattening, ira_build): Likewise.
1384         * ira-color.c (allocnos_have_intersected_live_ranges_p,
1385         slot_coalesced_allocno_live_ranges_intersect,
1386         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
1387         * ira-conflicts.c (build_conflict_bit_table): Likewise.
1388         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
1389         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
1390         make_allocno_dead, create_start_finish_chains,
1391         remove_some_program_points_and_update_live_ranges,
1392         ira_debug_live_range_list): Likewise.
1394         * ira-int.h (ira_object_conflict_iterator): Rename from
1395         ira_allocno_conflict_iterator.
1396         (ira_object_conflict_iter_init): Rename from
1397         ira_allocno_conflict_iter_init, second arg changed to
1398         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
1399         FOR_EACH_ALLOCNO_CONFLICT.
1400         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
1401         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
1402         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
1403         * ira-conflicts.c (print_allocno_conflicts): Likewise.
1405 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
1407         PR other/44874
1408         * tree-dump.c (dump_options): Add enumerate_locals entry.
1409         Add TDF_NOID exclusion to all entry.
1410         * tree-dump.h (dump_enumerated_decls): Declare.
1411         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
1412         Don't display type uid.
1413         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
1414         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
1415         * tree-ssa-live.c: Include gimple.h.
1416         (numbered_tree_d): New struct.
1417         (numbered_tree): New typedef.
1418         (DEF_VEC_O (numbered_tree): New.
1419         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
1420         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
1421         (dump_enumerated_decls): Likewise.
1422         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
1423         debug info and flag_dump_final_insns, call dump_enumerated_decls.
1424         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
1425         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
1427 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
1429         * expmed.h (MAX_BITS_PER_WORD): Move to...
1430         * defaults.h (MAX_BITS_PER_WORD): ...here.
1432 2010-07-13  DJ Delorie  <dj@redhat.com>
1434         * config/h8300/h8300.c (h8300_init_once): Default to
1435         -fstrict_volatile_bitfields.
1437         * config/sh/sh.c (sh_override_options): Default to
1438         -fstrict_volatile_bitfields.
1440         * config/rx/rx.c (rx_option_override): New.
1442         * config/m32c/m32c.c (m32c_override_options): Default to
1443         -fstrict_volatile_bitfields.
1445 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
1447         * tree.h (build_function_call_expr): Delete.
1448         (build_call_expr_loc_array): New function.
1449         (build_call_expr_loc_vec): New function.
1450         * tree-flow.h (struct omp_region): Change type of ws_args field
1451         to a VEC.
1452         * builtins.c (build_function_call_expr): Delete.
1453         (build_call_expr_loc_array): New function.
1454         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
1455         (build_call_expr): Likewise.
1456         (build_call_expr_loc_vec): New function.
1457         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
1458         build_function_call_expr.
1459         * expr.c (emutls_var_address): Likewise.
1460         * varasm.c (emutls_common_1): Likewise.
1461         * omp-low.c (expand_omp_atomic_mutex): Likewise.
1462         (expand_omp_taskreg): Adjust for new type of region->ws_args.
1463         (get_ws_args_for): Return a VEC instead of a tree.
1464         (expand_parallel_call): Call build_call_expr_loc_vec instead of
1465         build_function_call_expr.
1466         * stor-layout.c (self_referential_size): Likewise.
1468 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
1470         PR testsuite/44701
1471         * recog.c (constrain_operands): Allow side-effects in memory
1472         operands if either < or > constraint is used, rather than if
1473         both < and > is used.
1475 2010-07-13  Richard Guenther  <rguenther@suse.de>
1477         PR middle-end/44911
1478         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
1479         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
1480         without name.
1482 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
1484         PR target/44761
1485         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
1486         to variable emited.
1487         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
1488         * config/sh/sh.md (symGOT_load): Likewise.
1489         (symDTPOFF2reg): Likewise.
1490         (symTPOFF2reg): Likewise.
1492 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1494         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
1495         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
1497 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1499         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
1500         explanation.
1501         Find ucontext_t * on Solaris 11.
1502         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
1503         Handle new Solaris 11 __sighndlr patterns.
1505 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
1507         PR debug/44901
1508         * vec.h (VEC_block_remove): Fix comment.
1509         * tree-ssa-live.c (remove_unused_locals): Don't use
1510         VEC_unordered_remove on local_decls, instead replace a single
1511         vector element in each iteration if at least one element had
1512         to be removed and VEC_truncate at the end.
1513         * omp-low.c (expand_omp_taskreg): Likewise.
1515 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1517         * c-decl.c (finish_function): Fix typo in comment.
1519 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
1521         PR bootstrap/44921
1522         * postreload.c (move2add_use_add3_insn): Silence gcc warning
1523         on min_regno.
1525 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
1527         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
1528         (simplify_stmt_using_ranges): Use it.
1530 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1532         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
1533         member.  Do not mark as GTY(()).
1534         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
1535         (spu_builtin_decls): New static variable.
1536         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
1537         (spu_init_builtins): Likewise.
1538         (spu_builtin_mul_widen_even): Likewise.
1539         (spu_builtin_mul_widen_odd): Likewise.
1540         (spu_builtin_mask_for_load): Likewise.
1541         (spu_builtin_vec_perm): Likewise.
1542         * config/spu/spu-c.c: Include "target.h".
1543         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
1544         of using spu_builtins[].fndecl.
1546 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1548         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
1549         imply -minterlink-mips16.
1551 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1553         * config/mips/mips.h (mips16_globals): Declare.
1554         (SWITCHABLE_TARGET): Define.
1555         * config/mips/mips.c: Include target-globals.h.
1556         (mips16_globals): New variable.
1557         (mips_set_mips16_mode): Use save_target_globals and
1558         restore_target_globals instead of target_reinit.
1560 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1562         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
1563         to say that the function can be called more than once.
1564         * target-globals.c (save_target_globals): Call init_reg_sets.
1566 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1568         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
1569         * bb-reorder.h: New file.
1570         * bb-reorder.c (default_target_bb_reorder): New variable.
1571         (this_target_bb_reorder): New conditional variable.
1572         (uncond_jump_length): Redefine as a macro.
1573         * target-globals.h (this_target_bb_reorder): Declare.
1574         (target_globals): Add a bb_reorder field.
1575         (restore_target_globals): Copy the bb_reorder field to
1576         this_target_bb-reorder.
1577         * target-globals.c: Include bb-reorder.h.
1578         (default_target_globals): Initialize the bb_reorder field.
1579         (save_target_globals): Likewise.
1581 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1583         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
1584         * gcse.h: New file.
1585         * gcse.c: Include gcse.h.
1586         (default_target_gcse): New variable.
1587         (this_target_gcse): New conditional variable.
1588         (can_copy): Redefine as a macro.
1589         (can_copy_init_p): New macro.
1590         (can_copy_p): Remove can_copy_init_p.
1591         * target-globals.h (this_target_gcse): Declare.
1592         (target_globals): Add a gcse field.
1593         (restore_target_globals): Copy the gcse field to this_target_gcse.
1594         * target-globals.c: Include gcse.h.
1595         (default_target_globals): Initialize the gcse field.
1596         (save_target_globals): Likewise.
1598 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1600         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
1601         and x_ira_prohibited_mode_move_regs_initialized_p.
1602         (ira_prohibited_mode_move_regs): Redefine as a macro.
1603         * ira.c (ira_prohibited_mode_move_regs): Delete.
1604         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
1606 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1608         * reload.h (target_reload): Add x_cached_reg_save_code and
1609         x_cached_reg_restore_code.
1610         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
1611         Redefine as macros.
1613 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1615         * Makefile.in (target-globals.o): Depend on builtins.h.
1616         * builtins.h: New file.
1617         * builtins.c: Include builtins.h.
1618         (default_target_builtins): New variable.
1619         (this_target_builtins): New conditional variable.
1620         (apply_args_mode, apply_result_mode): Redefine as macros.
1621         * target-globals.h (this_target_builtins): Declare.
1622         (target_globals): Add a builtins field.
1623         (restore_target_globals): Copy the builtins field to
1624         this_target_builtins.
1625         * target-globals.c: Include builtins.h.
1626         (default_target_globals): Initialize the builtins field.
1627         (save_target_globals): Likewise.
1629 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1631         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
1632         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
1633         from expmed.c.
1634         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
1635         (alg_hash, alg_hash_used_p): New macros.
1636         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
1637         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
1638         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
1640 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1642         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
1643         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
1644         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
1645         (this_op_costs, costs_classes): Redefine as macros.
1646         (record_reg_classes): Don't take op_costs as a parameter.
1647         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
1648         (scan_one_insn): Update call to record_operand_costs.
1650 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1652         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
1653         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
1654         (target_ira_int): New structure.
1655         (default_target_ira_int): Declare.
1656         (this_target_ira_int): Declare as a variable or define as a macro.
1657         (ira_reg_mode_hard_regset, ira_register_move_cost)
1658         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
1659         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
1660         (prohibited_class_mode_regs, ira_important_classes_num)
1661         (ira_important_classes, ira_reg_class_intersect)
1662         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
1663         (ira_reg_class_union): Redefine as macros.
1664         * ira.h (target_ira): New structure.
1665         (default_target_ira): Declare.
1666         (this_target_ira): Declare as a variable or define as a macro.
1667         (ira_available_class_regs, ira_hard_regno_cover_class)
1668         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
1669         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
1670         (ira_class_hard_regs_num): Redefine as macros.
1671         * ira.c (default_target_ira, default_target_ira_int): New variables.
1672         (this_target_ira, this_target_ira_int): New conditional variables.
1673         (ira_reg_mode_hard_regset, ira_memory_move_cost)
1674         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
1675         (ira_class_subset_p): Delete.
1676         (no_unit_alloc_regs): Redefine as a macro.
1677         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
1678         (ira_class_hard_regs_num, ira_class_hard_reg_index)
1679         (ira_available_class_regs): Delete.
1680         (alloc_reg_class_subclasses): Redefine as a macro.
1681         (ira_reg_class_cover_size, ira_reg_class_cover)
1682         (ira_important_classes_num, ira_important_classes)
1683         (ira_important_class_nums, ira_class_translate): Delete.
1684         (cover_class_order): Document the variable's lifetime.
1685         (reorder_important_classes): Don't set ira_important_class_nums.
1686         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
1687         (ira_reg_class_super_classes, ira_reg_class_union)
1688         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
1689         Delete.
1690         (setup_reg_class_nregs): Don't set ira_max_regs.
1691         (prohibited_class_mode_regs): Delete.
1692         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
1693         (target_globals): Add ira and ira_int fields.
1694         (restore_target_globals): Copy the ira field to this_target_ira
1695         and the ira_int field to this_target_ira_int.
1696         * target-globals.c: Include ira-int.h.
1697         (default_target_globals): Initialize the ira and ira_int fields.
1698         (save_target_globals): Likewise.
1700 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1702         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
1703         * cfgloop.h (target_cfgloop): New structure.
1704         (default_target_cfgloop): Declare.
1705         (this_target_cfgloop): Declare as a variable or define as a macro.
1706         (target_avail_regs, target_clobbered_regs, target_res_regs)
1707         (target_reg_cost, target_spill_cost): Redefine as macros.
1708         * cfgloopanal.c (default_target_cfgloop): New variable.
1709         (this_target_cfgloop): New conditional variable.
1710         (target_avail_regs, target_clobbered_regs, target_res_regs)
1711         (target_reg_cost, target_spill_cost): Delete.
1712         * target-globals.h (this_target_cfgloop): Declare.
1713         (target_globals): Add a cfgloop field.
1714         (restore_target_globals): Copy the cfgloop field to
1715         this_target_cfgloop.
1716         * target-globals.c: Include cfgloop.h.
1717         (default_target_globals): Initialize the cfgloop field.
1718         (save_target_globals): Likewise.
1720 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1722         * regs.h (target_regs): Add x_direct_load, x_direct_store and
1723         x_float_extend_from_mem.
1724         (direct_load, direct_store, float_extend_from_mem): New macros.
1725         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
1727 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1729         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
1730         (target-globals.o): Depend on $(LIBFUNCS_H).
1731         * libfuncs.h: Include hashtab.h.
1732         (libfunc_entry): Moved from optabs.c.
1733         (target_libfuncs): New structure.
1734         (default_target_libfuncs): Declare.
1735         (this_target_libfuncs): Declare as a variable or define as a macro.
1736         (libfunc_table): Redefine as a macro.
1737         * optabs.c (default_target_libfuncs): New variable.
1738         (this_target_libfuncs): New conditional variable.
1739         (libfunc_table): Delete.
1740         (libfunc_entry): Moved to optabs.h.
1741         (libfunc_hash): Redefine as a macro.
1742         (hash_libfunc, eq_libfunc): Fix comments.
1743         (init_optabs): Use libfunc_hash to detect cases where the function
1744         has already been called.  Clear the hash table instead of
1745         recreating it.
1746         * target-globals.h (this_target_libfuncs): Declare.
1747         (target_globals): Add a libfuncs field.
1748         (restore_target_globals): Copy the libfuncs field to
1749         this_target_libfuncs.
1750         * target-globals.c: Include libfuncs.h.
1751         (default_target_globals): Initialize the libfuncs field.
1752         (save_target_globals): Likewise.
1754 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1756         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
1757         in all dependency lists.
1759 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1761         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
1762         * optabs.h (target_optabs): New structure.
1763         (default_target_optabs): Declare.
1764         (this_target_optabs): Declare as a variable or define as a macro.
1765         (optab_table, convert_optab_table, direct_optab_table): Redefine
1766         as macros.
1767         * optabs.c (default_target_optabs): New variable.
1768         (this_target_optabs): New conditional variable.
1769         (optab_table, convert_optab_table, direct_optab_table): Delete.
1770         * target-globals.h (this_target_optabs): Declare.
1771         (target_globals): Add a optabs field.
1772         (restore_target_globals): Copy the optabs field to
1773         this_target_optabs.
1774         * target-globals.c: Include expr.h and optabs.h.
1775         (default_target_globals): Initialize the optabs field.
1776         (save_target_globals): Likewise.
1778 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1780         * flags.h (target_flagstate): Add x_flag_excess_precision.
1781         (flag_excess_precision): Redefine as a macro.
1782         * toplev.c (flag_excess_precision): Delete.
1784 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1786         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
1787         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
1788         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
1789         (no_caller_save_reg_set): Redefine as a macro.
1790         * reload.h (target_reload): Add x_caller_save_initialized_p and
1791         x_regno_save_mode.
1792         (caller_save_initialized_p): Redefine as a macro.
1793         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
1794         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
1795         (regno_save_mode): Redefine as a macro.
1797 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1799         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
1800         * expmed.h: New file.
1801         * expmed.c (default_target_costs): New variable.
1802         (this_target_costs): New conditional variable.
1803         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
1804         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
1805         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
1806         * target-globals.h (this_target_expmed): Declare.
1807         (target_globals): Add a expmed field.
1808         (restore_target_globals): Copy the expmed field to
1809         this_target_expmed.
1810         * target-globals.c: Include expmed.h.
1811         (default_target_globals): Initialize the expmed field.
1812         (save_target_globals): Likewise.
1814 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1816         * Makefile.in (target-globals.o): Depend on reload.h.
1817         * reload.h (target_reload): New structure.
1818         (default_target_reload): Declare.
1819         (this_target_reload): Declare as a variable or define as a macro.
1820         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
1821         * reload1.c (default_target_reload): New variable
1822         (this_target_reload): New conditional variable.
1823         (indirect_symref_ok, double_reg_address_ok): Delete.
1824         (spill_indirect_levels): Redefine as a macro.
1825         * target-globals.h (this_target_reload): Declare.
1826         (target_globals): Add a reload field.
1827         (restore_target_globals): Copy the reload field to
1828         this_target_reload.
1829         * target-globals.c: Include hard-reg-set.h.
1830         (default_target_globals): Initialize the reload field.
1831         (save_target_globals): Likewise.
1833 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1835         * rtl.h (target_rtl): Add x_static_reg_base_value.
1836         * alias.c (static_reg_base_value): Redefine as a macro.
1838 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1840         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
1841         (GTFILES): Remove reginfo.c.
1842         * rtl.h (target_rtl): Add x_top_of_stack.
1843         (top_of_stack): New macro.
1844         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
1845         (top_of_stack): Delete.
1847 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1849         * regs.h (target_regs): Add x_hard_regs_of_mode,
1850         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
1851         x_may_move_out_cost and x_last_mode_for_init_move_cost.
1852         (have_regs_of_mode, contains_reg_of_mode, move_cost)
1853         (may_move_in_cost, may_move_out_cost): Redefine as macros.
1854         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
1855         (may_move_in_cost, may_move_out_cost): Delete.
1856         (last_mode_for_init_move_cost): Redefine as a macro.
1858 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1860         * hard-reg-set.h (target_hard_regs): New structure.
1861         (default_target_hard_regs): Declare.
1862         (this_target_hard_regs): Declare as a variable or define as a macro.
1863         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
1864         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
1865         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
1866         (reg_class_size, reg_class_subclasses, reg_class_subunion)
1867         (reg_class_superunion, reg_names): Redefine as macros.
1868         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
1869         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
1870         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
1871         (reg_class_contents, reg_class_size, reg_class_subclasses)
1872         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
1873         (default_target_hard_regs): New variable
1874         (this_target_hard_regs, initial_call_really_used_regs)
1875         (initial_reg_alloc_order): New conditional variables.
1876         (initial_reg_names): New variable.
1877         (init_reg_sets): Assert that initial_call_really_used_regs,
1878         initial_reg_alloc_order and initial_reg_names
1879         are all the same size as their variable counterparts.  Use them to
1880         initialize those counterparts.
1881         * target-globals.h (this_target_hard_regs): Declare.
1882         (target_globals): Add a hard_regs field.
1883         (restore_target_globals): Copy the hard_regs field to
1884         this_target_hard_regs.
1885         * target-globals.c: Include hard-reg-set.h.
1886         (default_target_globals): Initialize the hard_regs field.
1887         (save_target_globals): Likewise.
1889 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1891         * Makefile.in (target-globals.o): Depend on $(RTL_H).
1892         * rtl.h (target_rtl): New structure.
1893         (default_target_rtl): Declare.
1894         (this_target_rtl): Declare as a variable or define as a macro.
1895         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
1896         Redefine as macros.
1897         * emit-rtl.c (default_target_rtl): New variable.
1898         (this_target_rtl): New conditional variable.
1899         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
1900         (return_address_pointer_rtx): Delete.
1901         (initial_regno_reg_rtx): New macro.
1902         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
1903         (init_emit_regs): Likewise.
1904         * target-globals.h (this_target_rtl): Declare.
1905         (target_globals): Add a rtl field.
1906         (restore_target_globals): Copy the rtl field to this_target_rtl.
1907         * target-globals.c: Include rtl.h.
1908         (default_target_globals): Initialize the rtl field.
1909         (save_target_globals): Likewise.
1911 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1913         * Makefile.in (target-globals.o): Depend on $(REGS_H).
1914         * regs.h (target_reg_modes): New structure.
1915         (default_target_reg_modes): Declare.
1916         (this_target_reg_modes): Declare as a variable or define as a macro.
1917         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
1918         * reginfo.c (default_target_reg_modes): New variable.
1919         (this_target_reg_modes): New conditional variable.
1920         (hard_regno_nregs, reg_raw_mode): Delete.
1921         * target-globals.h (this_target_regs): Declare.
1922         (target_globals): Add a regs field.
1923         (restore_target_globals): Copy the regs field to this_target_regs.
1924         * target-globals.c: Include regs.h.
1925         (default_target_globals): Initialize the regs field.
1926         (save_target_globals): Likewise.
1928 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1930         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
1931         * doc/tm.texi: Regenerate.
1932         * Makefile.in (OBJS-common): Add target-globals.o.
1933         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
1934         and target-globals.h.
1935         (target-globals.o): New rule.
1936         (GTFILES): Include $(srcdir)/target-globals.h.
1937         * defaults.h (SWITCHABLE_TARGET): Define.
1938         * gengtype.c (open_base_files): Add target-globals.h to the
1939         list of includes.
1940         * target-globals.h: New file.
1941         * target-globals.c: Likewise.
1943         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
1944         * flags.h (target_flag_state): New structure.
1945         (default_target_flag_state): Declare.
1946         (this_target_flag_state): Declare as a variable or define as a macro.
1947         (align_loops_log): Redefine as a macro.
1948         (align_loops_max_skip, align_jumps_log): Likewise.
1949         (align_jumps_max_skip, align_labels_log): Likewise.
1950         (align_labels_max_skip, align_functions_log): Likewise.
1951         * toplev.c (default_target_flag_state): New variable.
1952         (this_target_flag_state): New conditional variable.
1953         (align_loops_log): Delete.
1954         (align_loops_max_skip, align_jumps_log): Likewise.
1955         (align_jumps_max_skip, align_labels_log): Likewise.
1956         (align_labels_max_skip, align_functions_log): Likewise.
1957         * target-globals.h (this_target_flag_state): Declare.
1958         (target_globals): Add a flag_state field.
1959         (restore_target_globals): Copy the flag_state field to
1960         this_target_flag_state.
1961         * target-globals.c: Include flags.h.
1962         (default_target_globals): Initialize the flag_state field.
1963         (save_target_globals): Likewise.
1965 2010-07-12  Jie Zhang  <jie@codesourcery.com>
1967         * postreload.c (reg_symbol_ref[]): New.
1968         (move2add_use_add2_insn): New.
1969         (move2add_use_add3_insn): New.
1970         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
1971         (move2add_note_store): Likewise.
1973 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
1975         PR rtl-optimization/44752
1976         * genautomata.c (main): Don't emit an empty file even if there
1977         is no automaton.
1979 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1981         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
1982         ix86_solaris_return_in_memory.
1983         * config/i386-protos.h: Reflect this.
1984         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1985         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
1986         Move ...
1987         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
1989 2010-07-12  Jie Zhang  <jie@codesourcery.com>
1991         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
1992         align the stack when it's going to be saved.
1994 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1996         PR pch/14940
1997         * config/host-solaris.c (mmap_fixed): New function.
1998         (sol_gt_pch_get_address): Use it.
1999         (sol_gt_pch_use_address): Likewise.
2001 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2003         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2004         pentiumpro on Solaris 8 and 9/x86.
2005         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
2006         Document SSE/SSE2 support.
2007         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
2009 2010-07-12  Andi Kleen  <ak@linux.intel.com>
2011         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
2012         instead of gcc_assert to print better error message for multiple
2013         prevailing defs.
2015 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
2017         * config/i386/i386.c (ix86_asm_output_function_label): Change format
2018         string placeholder from 0x%x to %#x.
2019         (ix86_code_end): Use putc to output '\n'.
2020         (ix86_print_operand) <case ';'>: Use putc to output ';'.
2022 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
2024         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
2025         in directive -export.
2027 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
2029         * reginfo.h (reg_classes_intersect_p): Change arguments type to
2030         reg_class_t.
2031         * rtl.h (reg_classes_intersect_p): Adjust prototype.
2033         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2034         Remove macros.
2035         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
2036         rs6000_memory_move_cost): Remove
2037         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
2038         TARGET_MEMORY_MOVE_COST): Define.
2039         (rs6000_register_move_cost): Make static. Change arguments type from
2040         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
2041         (rs6000_memory_move_cost): Make static. Change arguments type from
2042         'enum reg_class' to reg_class_t.
2044 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
2046         PR middle-end/42505
2047         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
2048         lookup code into....
2049         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
2050         new functions.
2051         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
2052         * cfgloopanal.c (target_clobbered_regs): Define.
2053         (init_set_costs): Initialize target_clobbered_regs.
2054         (estimate_reg_pressure_cost): Add call_p argument.  When true,
2055         adjust the number of available registers to exclude the
2056         call-clobbered registers.
2057         * cfgloop.h (target_clobbered_regs): Declare.
2058         (estimate_reg_pressure_cost): Adjust declaration.
2059         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
2060         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
2061         (determine_set_costs): Dump target_clobbered_regs.
2062         (loop_body_includes_call): New function.
2063         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
2064         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
2065         call_p flag through.
2066         (best_gain_for_invariant): Likewise.
2067         (find_invariants_to_move): Likewise.
2068         (move_single_loop_invariants): Likewise, using already-computed
2069         has_call field.
2071 2010-07-10  Richard Guenther  <rguenther@suse.de>
2072             Joern Rennecke  <joern.rennecke@embecosm.com>
2074         PR debug/44832
2075         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
2076         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
2077         unless they have DECL_IGNORED_P set.
2079 2010-07-10  Richard Guenther  <rguenther@suse.de>
2081         PR lto/44889
2082         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
2083         helper function.
2084         (gimple_types_compatible_p): Similar to pointed-to
2085         types allow and merge a mix of complete and incomplete aggregate.
2086         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
2087         (iterative_hash_gimple_type): Adjust for that.
2089 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
2091         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
2093 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
2095         PR objc/44140
2096         * config/darwin.c (output_objc_section_asm_op): Save and restore
2097         section when outputting ObjC section list.
2099 2010-07-09  Jan Hubicka  <jh@suse.cz>
2101         * lto-streamer-out.c (produce_symtab): Do not write alias
2102         cgraph/varpool nodes.
2104 2010-07-09  Jan Hubicka  <jh@suse.cz>
2106         * tree-inline.c (declare_return_variable): Fix ICE while
2107         inlining DECL_BY_VALUE function not in SSA form
2109 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
2111         PR tree-optimization/44576
2112         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
2113         New.  Pull out from is_loop_prefetching_profitable to implement
2114         the trip count to ahead ratio heuristic.
2115         (mem_ref_count_reasonable_p): New.  Pull out from
2116         is_loop_prefetching_profitable to implement the instruction to
2117         memory reference ratio heuristic.  Also consider not reasonable if
2118         the memory reference count is above a threshold (to avoid
2119         explosive compilation time.
2120         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
2121         is_loop_prefetching_profitable to implement the instruction to
2122         prefetch ratio heuristic.
2123         (is_loop_prefetching_profitable): Removed.
2124         (loop_prefetch_arrays): Distribute the cost analysis across the
2125         function to allow early exit of the prefetch analysis.
2126         is_loop_prefetching_profitable is splitted into three functions,
2127         with each one called as early as possible.
2128         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
2129         number of memory references in a loop is considered too many.
2131 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
2133         * reload.c (find_reloads): Don't clear badop if we have a winreg
2134         alternative, but not win, and the class only has fixed regs.
2135         * hard-reg-set.h (class_only_fixed_regs): Declare.
2136         * reginfo.c (class_only_fixed_regs): New array.
2137         (init_reg_sets_1): Initialize it.
2138         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
2139         discourage alternatives using the stack pointer.
2141         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
2143         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
2145         * config/arm/arm.md (cbranchqi4): Fix array size.
2146         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
2147         calculating length.
2149 2010-07-09  Richard Guenther  <rguenther@suse.de>
2151         * gimple.c (struct type_fixup_s): New struct and VEC type.
2152         (gimple_register_type_fixups): New static global.
2153         (gimple_queue_type_fixup): New function.
2154         (gimple_types_compatible_p): Queue type fixups instead of
2155         applying them here.
2156         (gimple_register_type): Apply queued fixups for the
2157         canonical type.  Empty the type fixup queue.
2159 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2161         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
2162         * configure: Regenerate.
2163         * config.in: Ditto.
2165 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
2166             Denys Vlasenko  <dvlasenk@redhat.com>
2167             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2169         PR tree-optimization/28632
2170         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
2171         (extract_range_from_binary_expr): Further optimize
2172         BIT_AND_EXPR and BIT_IOR_EXPR.
2174 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2176         * tree-if-conv.c (fold_or_predicates): New.
2177         (add_to_predicate_list): Call it.
2179 2010-07-09  Richard Guenther  <rguenther@suse.de>
2181         PR middle-end/44890
2182         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
2183         if base is a pointer.
2184         * tree-cfg.c (verify_expr): Update MEM_REF checking.
2186 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2188         PR target/44877
2189         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
2190         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
2191         builtin mask for load/store builtins.
2193 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2195         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
2196         for "lock addl".
2197         * configure: Regenerate.
2198         * config/i386/i386.c (ix86_print_operand) <case ';'>:
2199         Remove TARGET_MACHO.
2201 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
2203         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
2204         default ISA flags.
2205         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
2207 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
2209         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
2211 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2213         * config/picochip/picochip.md (commsTestPort): Emit more
2214         efficient sequence for tstport instruction.
2216 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2218         * config/i386/i386.c (ix86_veclib_handler): Make static.
2220 2010-07-09  Richard Guenther  <rguenther@suse.de>
2222         PR tree-optimization/44852
2223         * tree-ssa-alias.c: Include toplev.h for exact_log2.
2224         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
2225         in MEM_REF.
2226         (indirect_refs_may_alias_p): Likewise.
2227         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
2229 2010-07-09  Richard Guenther  <rguenther@suse.de>
2231         PR tree-optimization/44882
2232         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
2233         sets do conflict.
2234         (vectorizable_load): Likewise.
2236 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
2238         PR target/40657
2239         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
2240         All callers changed.
2241         Handle the case when we're called for the epilogue.
2242         (thumb_unexpanded_epilogue): Use it.
2243         (thumb1_expand_epilogue): Likewise.
2245 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
2247         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
2248         both ranges are range_int_cst_p with non-negative minimum,
2249         try harder to derive smaller range.
2251 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2253         * genrecog.c: Include diagnostic-core.h before toplev.h.
2254         * genoutput.c: Likewise.
2255         * genextract.c: Likewise.
2256         * genautomata.c: Likewise.
2257         * genemit.c: Likewise.
2258         * genpeep.c: Likewise.
2259         * genattrtab.c: Likewise.
2260         * genconditions.c: Likewise.
2261         * genpreds.c: Likewise.
2263 2010-07-08  Andi Kleen  <ak@linux.intel.com>
2265         * lto-section-in.c (lto_section_name): Add missing comma.
2267 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
2269         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
2270         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
2271         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
2272         (ia64_override_options): Rename to...
2273         (ia64_option_override): ... this one. Make static.
2275 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2277         PR middle-end/44843
2278         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
2279         pointed-to type of the offset in a MEM_REF to compute the alignment.
2281 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
2283         * final.c (final_scan_insn): Replace
2284         TARGET_UNWIND_INFO macro check by unwind_emit
2285         hook NULL check.
2286         * targhooks.c (default_unwind_emit): Removed.
2287         * targhooks.h (default_unwind_emit): Likewise.
2288         * target.def (unwind_emit): Set default value to NULL.
2290         * config/i386/i386-protos.h (ix86_asm_output_function_label):
2291         New prototype.
2292         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
2293         for NULL fntype argument and allow 64-bit targets.
2294         (ix86_asm_output_function_label): New function.
2295         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
2296         (ix86_handle_fndecl_attribute): Likewise.
2297         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
2298         * doc/doc/tm.texi: Regenerated.
2299         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
2300         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
2301         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
2302         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
2303         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
2304         * config/elfos.h: Likewise.
2305         * config/i386/cygming.h: Likewise.
2306         * config/netbsd-aout.h: Likewise.
2307         * config/openbsd.h: Likewise.
2308         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
2309         by ix86_asm_output_function_label function call.
2310         * varasm.c (assemble_start_function): Use
2311         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
2313 2010-07-08  Jan Hubicka  <jh@suse.cz>
2315         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
2316         New function.
2317         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
2318         Declare.
2319         * ipa-cp.c (ipcp_estimate_growth): Use it.
2320         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
2321         Likewise.
2323 2010-07-08  Jan Hubicka  <jh@suse.cz>
2325         * tree-inline.c (declare_return_variable): Allocate annotation for new
2326         temporary.
2328 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
2330         PR tree-optimization/44710
2331         * tree-if-conv.c (parse_predicate): New.
2332         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
2333         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
2335 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
2337         * common.opt (ftree-loop-if-convert): New flag.
2338         * doc/invoke.texi (ftree-loop-if-convert): Documented.
2339         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
2340         when flag_tree_loop_if_convert is set.
2342 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
2344         * config/i386/i386.c: Use short syntax for function calls
2345         through function pointers.
2346         * config/i386/i386.md: Ditto.
2348 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2350         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
2352 2010-07-08  Richard Guenther  <rguenther@suse.de>
2354         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
2355         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
2357 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
2359         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
2360         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
2361         (loc_list_from_tree): Likewise.
2362         (output_loc_operands): Handle outputting DW_OP_const[48]u
2363         with loc->dtprel set.
2364         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
2366 2010-07-08  Jan Hubicka  <jh@suse.cz>
2368         * ipa.c: Include pointer-set.h
2369         (cgraph_externally_visible_p): New attribute ALIASED;
2370         when in LTO, hidden symbols are local unless they are aliased.
2371         (function_and_variable_visibility): Compute aliased nodes;
2372         handle LTO and hidden symbol on functions and vars.
2373         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
2374         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
2376 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2378         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2379         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2380         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2381         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2382         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2383         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
2384         (ix86_gen_probe_stack_range): Likewise.
2385         (override_options): Set them.
2386         (ix86_target_stack_probe): New function.
2387         (ix86_compute_frame_layout): Force use of push instructions to
2388         save registers if stack checking with probes is enabled.
2389         (get_scratch_register_on_entry): New function.
2390         (release_scratch_register_on_entry): Likewise.
2391         (ix86_adjust_stack_and_probe): Likewise.
2392         (output_adjust_stack_and_probe): Likewise.
2393         (ix86_emit_probe_stack_range): Likewise.
2394         (output_probe_stack_range): Likewise.
2395         (ix86_expand_prologue): Emit stack checking code if static built-in
2396         stack checking is enabled.
2397         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
2398         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
2399         (output_adjust_stack_and_probe): Likewise.
2400         (output_probe_stack_range): Likewise.
2401         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2402         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
2403         TARGET_STACK_PROBE.
2404         (allocate_stack_worker_64): Likewise.
2405         (allocate_stack): Likewise.
2406         (adjust_stack_and_probe): New insn.
2407         (probe_stack_range): Likewise.
2409 2010-07-08  Richard Guenther  <rguenther@suse.de>
2411         PR tree-optimization/44831
2412         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
2413         a MEM_REF preserving TBAA info of the original dereference.
2414         Dereference the original pointer if the address is not invariant.
2415         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
2416         at least one invariant address that we are going to dereference.
2418 2010-07-08  Richard Guenther  <rguenther@suse.de>
2420         PR tree-optimization/44861
2421         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
2422         information when building MEM_REFs.
2423         (vectorizable_load): Likewise.
2424         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
2426 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2428         * config/sol2-c.c: Do not include diagnostic-core.h.
2430 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2432         PR bootstrap/44768
2433         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
2434         with respect to current_function_decl. Pass decl of the function.
2435         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
2436         * ipa-inline.c (compute_inline_parameters): Pass decl to
2437         estimated_stack_frame_size.
2439 2010-07-08  Richard Guenther  <rguenther@suse.de>
2441         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2442         New function.
2443         (valueize_refs): Call it.
2445 2010-07-08  Richard Guenther  <rguenther@suse.de>
2447         PR rtl-optimization/44838
2448         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
2449         SSA form do not use pointer equivalence.
2451 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2453         * dwarf2out.c (AT_linkage_name): Delete.
2454         (add_linkage_attr): New function.
2455         (add_linkage_name): Call it to emit the linkage attribute.
2456         (dwarf2out_finish): Likewise.
2457         (move_linkage_attr): Explicitly accept both attribute variants.
2459 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2461         * toplev.h: Do not include diagnostic-core.h.
2462         Include diagnostic-core.h in every file that includes toplev.h.
2463         * c-tree.h: Do not include toplev.h.
2464         * pretty-print.h: Update comment.
2465         * Makefile.in: Update dependencies.
2466         * alias.c: Include diagnostic-core.h in every file that includes
2467         toplev.h.
2468         * attribs.c: Likewise.
2469         * auto-inc-dec.c: Likewise.
2470         * bb-reorder.c: Likewise.
2471         * bt-load.c: Likewise.
2472         * caller-save.c: Likewise.
2473         * calls.c: Likewise.
2474         * cfg.c: Likewise.
2475         * cfganal.c: Likewise.
2476         * cfgbuild.c: Likewise.
2477         * cfgcleanup.c: Likewise.
2478         * cfghooks.c: Likewise.
2479         * cfgloop.c: Likewise.
2480         * combine.c: Likewise.
2481         * config/alpha/alpha.c: Likewise.
2482         * config/arc/arc.c: Likewise.
2483         * config/arm/arm.c: Likewise.
2484         * config/arm/pe.c: Likewise.
2485         * config/avr/avr.c: Likewise.
2486         * config/bfin/bfin.c: Likewise.
2487         * config/cris/cris.c: Likewise.
2488         * config/crx/crx.c: Likewise.
2489         * config/darwin-c.c: Likewise.
2490         * config/darwin.c: Likewise.
2491         * config/fr30/fr30.c: Likewise.
2492         * config/frv/frv.c: Likewise.
2493         * config/h8300/h8300.c: Likewise.
2494         * config/host-darwin.c: Likewise.
2495         * config/i386/i386.c: Likewise.
2496         * config/i386/netware.c: Likewise.
2497         * config/i386/nwld.c: Likewise.
2498         * config/i386/winnt-cxx.c: Likewise.
2499         * config/i386/winnt-stubs.c: Likewise.
2500         * config/i386/winnt.c: Likewise.
2501         * config/ia64/ia64-c.c: Likewise.
2502         * config/ia64/ia64.c: Likewise.
2503         * config/iq2000/iq2000.c: Likewise.
2504         * config/lm32/lm32.c: Likewise.
2505         * config/m32c/m32c-pragma.c: Likewise.
2506         * config/m32c/m32c.c: Likewise.
2507         * config/m32r/m32r.c: Likewise.
2508         * config/m68hc11/m68hc11.c: Likewise.
2509         * config/m68k/m68k.c: Likewise.
2510         * config/mcore/mcore.c: Likewise.
2511         * config/mep/mep-pragma.c: Likewise.
2512         * config/mep/mep.c: Likewise.
2513         * config/mmix/mmix.c: Likewise.
2514         * config/mn10300/mn10300.c: Likewise.
2515         * config/moxie/moxie.c: Likewise.
2516         * config/pa/pa.c: Likewise.
2517         * config/pdp11/pdp11.c: Likewise.
2518         * config/picochip/picochip.c: Likewise.
2519         * config/rs6000/rs6000-c.c: Likewise.
2520         * config/rs6000/rs6000.c: Likewise.
2521         * config/rx/rx.c: Likewise.
2522         * config/s390/s390.c: Likewise.
2523         * config/score/score.c: Likewise.
2524         * config/score/score3.c: Likewise.
2525         * config/score/score7.c: Likewise.
2526         * config/sh/sh.c: Likewise.
2527         * config/sh/symbian-base.c: Likewise.
2528         * config/sh/symbian-c.c: Likewise.
2529         * config/sh/symbian-cxx.c: Likewise.
2530         * config/sol2-c.c: Likewise.
2531         * config/sol2.c: Likewise.
2532         * config/sparc/sparc.c: Likewise.
2533         * config/spu/spu.c: Likewise.
2534         * config/stormy16/stormy16.c: Likewise.
2535         * config/v850/v850-c.c: Likewise.
2536         * config/v850/v850.c: Likewise.
2537         * config/vax/vax.c: Likewise.
2538         * config/vxworks.c: Likewise.
2539         * config/xtensa/xtensa.c: Likewise.
2540         * convert.c: Likewise.
2541         * cse.c: Likewise.
2542         * cselib.c: Likewise.
2543         * dbgcnt.c: Likewise.
2544         * dbxout.c: Likewise.
2545         * ddg.c: Likewise.
2546         * dominance.c: Likewise.
2547         * emit-rtl.c: Likewise.
2548         * explow.c: Likewise.
2549         * expmed.c: Likewise.
2550         * fixed-value.c: Likewise.
2551         * fold-const.c: Likewise.
2552         * fwprop.c: Likewise.
2553         * gcse.c: Likewise.
2554         * ggc-common.c: Likewise.
2555         * ggc-page.c: Likewise.
2556         * ggc-zone.c: Likewise.
2557         * gimple-low.c: Likewise.
2558         * gimplify.c: Likewise.
2559         * graph.c: Likewise.
2560         * haifa-sched.c: Likewise.
2561         * ifcvt.c: Likewise.
2562         * implicit-zee.c: Likewise.
2563         * integrate.c: Likewise.
2564         * ira-build.c: Likewise.
2565         * ira-color.c: Likewise.
2566         * ira-conflicts.c: Likewise.
2567         * ira-costs.c: Likewise.
2568         * ira-lives.c: Likewise.
2569         * ira.c: Likewise.
2570         * lists.c: Likewise.
2571         * loop-doloop.c: Likewise.
2572         * loop-iv.c: Likewise.
2573         * lto-opts.c: Likewise.
2574         * lto-symtab.c: Likewise.
2575         * main.c: Likewise.
2576         * modulo-sched.c: Likewise.
2577         * optabs.c: Likewise.
2578         * params.c: Likewise.
2579         * plugin.c: Likewise.
2580         * postreload-gcse.c: Likewise.
2581         * postreload.c: Likewise.
2582         * predict.c: Likewise.
2583         * profile.c: Likewise.
2584         * real.c: Likewise.
2585         * regcprop.c: Likewise.
2586         * reginfo.c: Likewise.
2587         * regmove.c: Likewise.
2588         * reorg.c: Likewise.
2589         * resource.c: Likewise.
2590         * rtl.c: Likewise.
2591         * rtlanal.c: Likewise.
2592         * sched-deps.c: Likewise.
2593         * sched-ebb.c: Likewise.
2594         * sched-rgn.c: Likewise.
2595         * sdbout.c: Likewise.
2596         * sel-sched-dump.c: Likewise.
2597         * sel-sched-ir.c: Likewise.
2598         * simplify-rtx.c: Likewise.
2599         * stmt.c: Likewise.
2600         * stor-layout.c: Likewise.
2601         * store-motion.c: Likewise.
2602         * targhooks.c: Likewise.
2603         * tree-cfg.c: Likewise.
2604         * tree-cfgcleanup.c: Likewise.
2605         * tree-dump.c: Likewise.
2606         * tree-eh.c: Likewise.
2607         * tree-inline.c: Likewise.
2608         * tree-nomudflap.c: Likewise.
2609         * tree-object-size.c: Likewise.
2610         * tree-optimize.c: Likewise.
2611         * tree-outof-ssa.c: Likewise.
2612         * tree-phinodes.c: Likewise.
2613         * tree-profile.c: Likewise.
2614         * tree-ssa-ccp.c: Likewise.
2615         * tree-ssa-coalesce.c: Likewise.
2616         * tree-ssa-live.c: Likewise.
2617         * tree-ssa-loop-niter.c: Likewise.
2618         * tree-ssa-loop-prefetch.c: Likewise.
2619         * tree-ssa-loop.c: Likewise.
2620         * tree-ssa-structalias.c: Likewise.
2621         * tree-ssa-uninit.c: Likewise.
2622         * tree-ssa.c: Likewise.
2623         * tree-vect-data-refs.c: Likewise.
2624         * tree-vect-loop-manip.c: Likewise.
2625         * tree-vect-loop.c: Likewise.
2626         * tree-vect-patterns.c: Likewise.
2627         * tree-vect-stmts.c: Likewise.
2628         * tree-vrp.c: Likewise.
2629         * varasm.c: Likewise.
2630         * vec.c: Likewise.
2631         * web.c: Likewise.
2632         * xcoffout.c: Likewise.
2634 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
2636         * gengtype.c (write_field_root): New function.
2637         (write_root): Use it.
2639 2010-07-07  Wei Guozhi  <carrot@google.com>
2641         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2642         of lowest bits to lshift/compare): Add a missing line.
2644 2010-07-07  Wei Guozhi  <carrot@google.com>
2646         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2647         of lowest bits to lshift/compare): New.
2649 2010-07-07  Tom Tromey  <tromey@redhat.com>
2651         * doc/tm.texi: Update.
2652         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
2653         Add @hook.
2654         * target.def (want_debug_pub_sections): New hook.
2655         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
2656         * dwarf2out.c (add_pubname_string): Check
2657         targetm.want_debug_pub_sections.
2658         (add_pubname): Likewise.
2659         (add_pubtype): Likewise.
2661 2010-07-07  Jie Zhang  <jie@codesourcery.com>
2663         * genautomata.c (output_automata_list_min_issue_delay_code):
2664         Correctly decompress min_issue_delay.
2666 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2668         PR rtl-optimization/44404
2669         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
2670         possible, use reg_overlap_mentioned_p instead.
2672 2010-07-07  Duncan Sands  <baldrick@free.fr>
2674         PR middle-end/41355
2675         * tree.c (build_function_type_skip_args): Copy the original type using
2676         build_distinct_type_copy rather than copy_node.
2678 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2680         PR target/44850
2681         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
2682         revision 161876.
2683         (ix86_expand_prologue): Likewise.
2684         (ix86_handle_fndecl_attribute): Likewise.
2685         (ix86_asm_declare_function_name): Likewise.
2686         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2687         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2688         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
2689         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
2690         * doc/extend.texi: Likewise.
2692 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2694         PR target/44844
2695         * config/i386/i386.md (rdrand<mode>): Changed to expand to
2696         retry if the carry flag isn't valid.
2697         (rdrand<mode>_1): New.
2699 2010-07-07  Richard Guenther  <rguenther@suse.de>
2701         PR middle-end/44790
2702         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
2703         for expanding the constant offset for MEM_REFs.
2705 2010-07-07  Richard Guenther  <rguenther@suse.de>
2707         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
2708         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
2709         * gimple.h (is_gimple_operand): Remove.
2710         * gimple.c (is_gimple_operand): Likewise.
2711         (walk_gimple_op): Fix wi->val_only setting for calls.
2712         * tree-cfg.c (verify_gimple_call): Fix argument validation.
2713         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
2714         invalid gimple calls.
2716 2010-07-06  Jan Hubicka  <jh@suse.cz>
2718         * lto-cgraph.c (output_cgraph): Add missing declaration.
2720 2010-07-06  Jan Hubicka  <jh@suse.cz>
2722         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
2723         partition.
2725 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
2727         * doc/gimple.texi (GIMPLE_DEBUG): Document.
2728         * doc/rtl.texi (Debug Information): New node.
2729         (NOTE_INSN_VAR_LOCATION): Document.
2730         (debug_insn): Likewise.
2731         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
2733 2010-07-07  Jan Hubicka  <jh@suse.cz>
2735         With parts by Richard Guenther.
2737         PR middle-end/44813
2738         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
2739         for functions passed by reference.
2740         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
2741         in memory when passed by reference.
2742         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
2743         beggining.
2744         * ipa-split.c (split_function): Cleanup way return value is passed;
2745         handle SSA DECL_BY_REFERENCE retvals.
2746         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
2747         DECL_BY_REFERENCE is set.
2748         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
2749         find_what_p_points_to): Handle RESULT_DECL.
2750         * tree-inline.c (declare_return_variable): Get new entry_block argument;
2751         when passing by reference ensure that RESULT_DECL is gimple_val.
2752         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
2753         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
2755 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2757         PR rtl-optimization/44787
2758         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
2759         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
2761 2010-07-06  Jan Hubicka  <jh@suse.cz>
2763         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
2764         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
2765         with body can prevail.
2766         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
2767         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
2768         * cgraph.c (cgraph_get_node_or_alias): New function.
2769         * cgraph.h (cgraph_get_node_or_alias): Declare.
2771 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
2773         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
2774         support.
2775         (ix86_expand_prologue): Likewise.
2776         (ix86_handle_fndecl_attribute): Likewise.
2777         (ix86_asm_declare_function_name): New function for
2778         ASM_DECLARE_FUNCTION_NAME.
2779         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
2780         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
2781         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
2782         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
2783         * doc/extend.texi: Adjust documentation about ms_hook_prologue
2784         attribute.
2786 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2788         * config/i386/i386.md (immediate_operand): New mode attribute.
2790         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
2791         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
2792         using P mode iterator.
2793         (pro_epilogue_adjust_stack_di_2): Rename from
2794         pro_epilogue_adjust_stack_rex64_2.
2796         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
2798 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2800         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
2801         through gen_mov_insv_1 function pointer.
2802         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
2803         gen_truncxf<mode>2 through gen_truncxf function pointer.
2804         (remainder<mode>3): Ditto.
2805         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
2806         (allocate_stack): Call gen_allocate_stack_worker_64 or
2807         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
2808         function pointer.
2809         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
2810         function pointer.
2812 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2814         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
2815         operand constraint instead of <r><i>m.
2817 2010-07-06  Richard Guenther  <rguenther@suse.de>
2819         PR middle-end/44828
2820         * convert.c (convert_to_integer): Watch out for overflowing
2821         MULT_EXPR as well.
2823 2010-07-05  Jan Hubicka  <jh@suse.cz>
2825         * lto-streamer.c (write_symbol_vec): Rename to ...
2826         (write_symbol) ... this one; write only symbol given and when
2827         present in cache. Sanity check that what is defined is present
2828         in cgraph/varpool with body/finalized decl.
2829         (write_symbols_of_kind): Remove.
2830         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
2831         pairs to produce symtab.
2832         (produce_asm_for_decls): Update call of produce_symtab; don't do so
2833         when doing WPA streaming.
2835 2010-07-05  Jan Hubicka  <jh@suse.cz>
2837         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
2838         function is still available to fold into.
2840 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
2842         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
2843         * function.h (struct_function): Change type of local_decls field
2844         to a VEC.
2845         (add_local_decl): New function.
2846         (FOR_EACH_LOCAL_DECL): New macro.
2847         * cfgexpand.c (init_vars_expansion): Adjust for new type of
2848         cfun->local_decls.
2849         (estimated_stack_frame_size): Likewise.
2850         (expand_used_vars): Likewise.
2851         * cgraphbuild.c (build_cgraph_edges): Likewise.
2852         * function.c (instantiate_decls_1): Likewise.
2853         * ipa-struct-reorg.c (build_data_structure): Likewise.
2854         * ipa-type-escape.c (analyze_function): Likewise.
2855         * lto-streamer-in.c (input_function): Likewise.
2856         * lto-streamer-out.c (output_function): Likewise.
2857         * tree-ssa-live.c (remove_unused_locals): Likewise.
2858         * tree.c (free_lang_data_in_decl): Likewise.
2859         (find_decls_types_in_node): Likewise.
2860         * omp-low.c (remove_exit_barrier): Likewise.
2861         (expand_omp_taskreg): Likewise.
2862         (list2chain): Rename to...
2863         (vec2chain): ...this.  Adjust.
2864         * cgraphunit.c (assemble_thunk): Call add_local_decl.
2865         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
2866         * gimple-low.c (record_vars_into): Likewise.
2867         * tree-inline.c (remap_decls): Likewise.
2868         (declare_return_variable): Likewise.
2869         (declare_inline_vars): Likewise.
2870         (copy_forbidden): Adjust for new type of cfun->local_decls.
2871         (add_local_variables): New function.
2872         (expand_call_inline): Call it.
2873         (tree_function_versioning): Likewise.
2875 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2877         AVX Programming Reference (June, 2010)
2878         * config/i386/cpuid.h (bit_F16C): New.
2879         (bit_RDRND): Likewise.
2880         (bit_FSGSBASE): Likewise.
2882         * config/i386/i386-builtin-types.def: Add
2883         "DEF_FUNCTION_TYPE (UINT16)", function types for
2884         float16 <-> float conversions and
2885         "DEF_FUNCTION_TYPE (VOID, UINT64)".
2887         * config/i386/i386-c.c (ix86_target_macros_internal): Support
2888         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
2889         OPTION_MASK_ISA_F16C.
2891         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
2892         (OPTION_MASK_ISA_RDRND_SET): Likewise.
2893         (OPTION_MASK_ISA_F16C_SET): Likewise.
2894         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
2895         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
2896         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
2897         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
2898         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
2899         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
2900         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
2901         (override_options): Handle them.
2902         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
2903         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
2904         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
2905         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
2906         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
2907         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
2908         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
2909         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
2910         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
2911         (bdesc_args): Likewise.
2912         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
2913         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
2914         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
2915         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
2916         Handle non-memory store.
2918         * config/i386/i386.h (TARGET_FSGSBASE): New.
2919         (TARGET_RDRND): Likewise.
2920         (TARGET_F12C): Likewise.
2922         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
2923         (UNSPEC_VCVTPS2PH): Likewise.
2924         (UNSPECV_RDFSBASE): Likewise.
2925         (UNSPECV_RDGSBASE): Likewise.
2926         (UNSPECV_WRFSBASE): Likewise.
2927         (UNSPECV_WRGSBASE): Likewise.
2928         (UNSPECV_RDRAND): Likewise.
2929         (rdfsbase<mode>): Likewise.
2930         (rdgsbase<mode>): Likewise.
2931         (wrfsbase<mode>): Likewise.
2932         (wrgsbase<mode>): Likewise.
2933         (rdrand<mode>): Likewise.
2935         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
2937         * config/i386/immintrin.h (_rdrand_u16): New.
2938         (_rdrand_u32): Likewise.
2939         (_readfsbase_u32): Likewise.
2940         (_readfsbase_u64): Likewise.
2941         (_readgsbase_u32): Likewise.
2942         (_readgsbase_u64): Likewise.
2943         (_writefsbase_u32): Likewise.
2944         (_writefsbase_u64): Likewise.
2945         (_writegsbase_u32): Likewise.
2946         (_writegsbase_u64): Likewise.
2947         (_rdrand_u64): Likewise.
2948         (_cvtsh_ss): Likewise.
2949         (_mm_cvtph_ps): Likewise.
2950         (_mm256_cvtph_ps): Likewise.
2951         (_cvtss_sh): Likewise.
2952         (_mm_cvtps_ph): Likewise.
2953         (_mm256_cvtps_ph): Likewise.
2955         * config/i386/sse.md (vcvtph2ps): New.
2956         (*vcvtph2ps_load): Likewise.
2957         (vcvtph2ps256): Likewise.
2958         (vcvtps2ph): Likewise.
2959         (*vcvtps2ph): Likewise.
2960         (*vcvtps2ph_store): Likewise.
2961         (vcvtps2ph256): Likewise.
2963         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
2965         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
2967 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
2969         PR bootstrap/44512
2970         * genenums.c (main): Output include of insn-constants.h
2971         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
2973 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
2975         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
2976         (override_options): Initialize it.
2977         (ix86_expand_prologue): Use it.
2979 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
2981         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
2983 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
2985         * double-int.h (fit_double_type): Remove declaration.
2986         * double-int.c (fit_double_type): Remove function.
2987         * tree.h (int_fits_type_p): Adjust prototype.
2988         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
2989         instead of fit_double_type.
2990         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
2991         instead of fit_double_type and build_int_cst_wide.
2992         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
2993         instead of fit_double_type and build_int_cst_wide.
2994         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
2995         of fit_double_type.
2997 2010-07-05  Jan Hubicka  <jh@suse.cz>
2999         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
3000         in_other_partition.
3001         * lto-cgraph.c (referenced_from_other_partition_p,
3002         reachable_from_other_partition_p): Use in_other_partition flags.
3003         (output_node, output_varpool_node): COMDAT nodes always have private
3004         copies and thus are never used from other partition.
3006 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
3008         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3009         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
3010         * config/ia64/ia64.c Include reload.h.
3011         (ia64_memory_move_cost): New function.
3012         (TARGET_MEMORY_MOVE_COST): Define.
3013         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
3014         memory_move_cost.
3016 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
3018         PR middle-end/42505
3019         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
3020         comments about cost model.
3021         (try_add_cand_for):  Add second strategy for choosing initial set
3022         based on original IVs, controlled by ORIGINALP argument.
3023         (get_initial_solution): Add ORIGINALP argument.
3024         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
3025         (find_optimal_iv_set): Try two different strategies for choosing
3026         the IV set, and return the one with lower cost.
3028 2010-07-05  Richard Guenther  <rguenther@suse.de>
3030         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
3032 2010-07-05  Richard Guenther  <rguenther@suse.de>
3034         * tree.c (reference_alias_ptr_type): New function.
3035         * tree.h (reference_alias_ptr_type): Declare.
3036         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
3037         allow non-TARGET_MEM_REF new refs.
3038         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
3039         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
3040         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
3041         (create_mem_ref): Get alias pointer type.  Adjust calls to
3042         create_mem_ref_raw.
3043         (maybe_fold_tmr): Likewise.
3044         * tree-flow.h (create_mem_ref): Adjust prototype.
3046 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
3048         PR c++/44808
3049         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
3050         *from_p is VAR_DECL.
3052 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3054         * tree.h (build_call_list): Remove.
3055         * tree.c (build_call_list): Remove.
3057 2010-07-05  Richard Guenther  <rguenther@suse.de>
3059         * double-int.h (double_int_sub): Declare.
3060         * double-int.c (double_int_sub): New function.
3061         * dwarf2out.c (field_byte_offset): Use it.
3062         * fixed-value.c (do_fixed_add): Likewise.
3063         (do_fixed_multiply): Likewise.
3064         (do_fixed_divide): Likewise.
3065         * tree-predcom.c (add_ref_to_chain): Likewise.
3066         (determine_roots_comp): Likewise.
3067         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3069 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3071         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
3072         implementations.
3074 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
3076         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
3077         * arm-modes.def (CC_NOTB): Don't define.
3078         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
3079         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3080         (LTUGEU): New code_iterator.
3081         (cnb, optab): New corresponding code_attrs.
3082         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
3083         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
3084         using LTUGEU.
3085         (addsi3_carryin_shift_<optab>): Likewise.
3086         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
3087         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
3088         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
3089         (subsi3_compare): Renamed from subsi3_compare0_c.
3090         Change CC_NOTB to CC.
3091         (arm_subsi3_insn): Allow constants for operand 0.
3092         (compare_scc peephole for eq case): New.
3093         (compare_scc splitters): Change CC_NOTB to CC.
3095 2010-07-05  Richard Guenther  <rguenther@suse.de>
3097         * tree-ssa-loop-im.c (for_each_index): Do not handle
3098         ALIGN_INDIRECT_REF.
3099         (gen_lsm_tmp_name): Likewise.
3100         * tree-dump.c (dequeue_and_dump): Likewise.
3101         * tree-pretty-print.c (dump_generic_node): Likewise.
3102         (op_code_prio): Likewise.
3103         (op_symbol_code): Likewise.
3104         * tree.c (staticp): Likewise.
3105         (build1_stat): Likewise.
3106         * tree.h (INDIRECT_REF_P): Likewise.
3107         * fold-const.c (maybe_lvalue_p): Likewise.
3108         (operand_equal_p): Likewise.
3109         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3110         (ao_ref_init_from_vn_reference): Likewise.
3111         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3112         (find_interesting_uses_address): Likewise.
3113         * dwarf2out.c (loc_list_from_tree): Likewise.
3114         * gimplify.c (gimplify_expr): Likewise.
3115         * tree-eh.c (tree_could_trap_p): Likewise.
3116         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3117         * cfgexpand.c (expand_debug_expr): Likewise.
3118         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3119         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3120         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3121         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
3122         * tree-ssa-operands.c (get_expr_operands): Likewise.
3123         * expr.c (safe_from_p): Likewise.
3124         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
3125         * tree-vect-data-refs.c (vect_setup_realignment): Build
3126         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
3127         * tree-vect-stmts.c (vectorizable_load): Likewise.
3128         * tree.def (ALIGN_INDIRECT_REF): Remove.
3130 2010-07-05  Richard Guenther  <rguenther@suse.de>
3132         PR tree-optimization/44784
3133         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
3134         for inserted stmts.
3135         (find_or_generate_expression): Fix SCCVN insertion check.
3137 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
3139         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
3140         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
3141         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
3142         directives.
3144 2010-07-05  Ira Rosen  <irar@il.ibm.com>
3146         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
3147         statements that are not vectorized.
3148         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
3149         in INSIDE_COST.
3151 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
3153         PR bootstrap/44820
3154         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
3156 2010-07-05  Richard Guenther  <rguenther@suse.de>
3158         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
3159         RESULT_DECLs properly.
3161 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3163         PR rtl-optimization/44695
3164         * config/i386/i386.md (extract_code): Removed.
3165         (<u>divmodqi4): Likewise.
3166         (divmodqi4): New.
3167         (udivmodqi4): Likewise.
3168         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
3169         (udivmodhiqi3): Likewise.
3171 2010-07-04  Jan Hubicka  <jh@suse.cz>
3173         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
3175 2010-07-04  Jan Hubicka  <jh@suse.cz>
3177         * cgraphunit.c (init_cgraph): Only initialize dump file if it
3178         is not already initialized.
3180 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3182         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
3183         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
3184         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
3185         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
3186         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
3187         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
3188         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
3189         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
3190         (sync_new_nand_optab): Redefine as macros.
3191         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
3192         Delete.
3193         (direct_optab_index): New enum.
3194         (direct_optab_d): New structure.
3195         (direct_optab): New typedef.
3196         (direct_optab_table): Declare.
3197         (direct_optab_handler, set_direct_optab_handler): New functions.
3198         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
3199         (sync_lock_release_optab): New macros.
3200         * optabs.c (direct_optab_table): New variable.
3201         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
3202         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
3203         cmpstr_optab and cmpstrn_optab.
3204         (emit_conditional_move): Likewise for movcc_optab.
3205         (can_conditionally_move_p): Likewise for movcc_gen_code.
3206         (init_insn_codes): Clear direct_optab_table.
3207         (init_optabs): Don't initialize the new "direct optabs" here.
3208         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
3209         vcond_gen_code.
3210         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
3211         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
3212         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
3213         (expand_sync_operation): Likewise other sync_*_optabs.
3214         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
3215         to sync_compare_and_swap_optab.
3216         (expand_sync_lock_test_and_set): Use direct_optab_handler for
3217         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
3218         to the names of both.
3219         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
3220         cmpstr_optab and cmpstrn_optab.
3221         (expand_builtin_lock_release): Likewise sync_lock_release.
3222         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
3223         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
3224         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
3225         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
3226         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
3227         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
3228         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
3229         (sync_lock_test_and_set, sync_lock_release): Delete.
3230         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
3231         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
3232         * genopinit.c (optabs): Use set_direct_optab_handler for the new
3233         macro optabs.
3234         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
3235         the "optab" local variable.  Use direct_optab_handler for optab and
3236         sync_compare_and_swap_optab.
3237         * reload1.c (reload_in_optab, reload_out_optab): Delete.
3238         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
3239         reload_in_optab and reload_out_optab.
3240         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3241         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
3242         * config/pa/pa.c (pa_secondary_reload): Likewise.
3243         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
3244         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
3245         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
3246         (VMSupportsCS8_builtin): Likewise.
3248 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3250         * optabs.h (optab_handlers): Change type of insn_code to int.
3251         (optab_handler, set_optab_handler, convert_optab_handler)
3252         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
3253         CODE_FOR_nothing".
3254         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
3255         (init_insn_codes): Zero both the above arrays.
3256         (init_optabs): Never call init_insn_codes first time around.
3258 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3260         * optabs.h (optab_handler, convert_optab_handler): Turn into
3261         inline functions that return an insn code.
3262         (set_optab_handler, set_convert_optab_handler): New functions.
3263         * builtins.c: Replace optab_handler(X)->insn_code with
3264         optab_handler or set_optab_handler thoughout.  Likewise
3265         convert_optab_handler(X)->insn_code with convert_optab_handler
3266         and set_convert_optab_handler.
3267         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
3268         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
3269         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
3270         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
3271         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
3272         config/spu/spu.c: Likewise.
3274 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3276         PR target/44531
3277         * config.gcc (sh*-*-*): Use regular expressions instead of
3278         the 'i' modifier for sed substitutions.
3280 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
3282         * gimple.c (gimple_body): Comments added.
3284 2010-07-04  Richard Guenther  <rguenther@suse.de>
3286         PR middle-end/44809
3287         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
3288         of an INDIRECT_REF.
3290 2010-07-04  Richard Guenther  <rguenther@suse.de>
3292         PR tree-optimization/44479
3293         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
3294         extra SSA name copy statements which preserves points-to
3295         information.
3296         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3297         Copy points-to information for all pointers.  Properly handle
3298         MEM_REFs.
3299         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
3300         copy statements.
3301         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
3302         dependency.
3304 2010-07-04  Richard Guenther  <rguenther@suse.de>
3306         PR middle-end/44785
3307         * tree-inline.c (initialize_inlined_parameters): Do not
3308         re-use pointer-map slot over remap_type call.
3310 2010-07-04  Richard Guenther  <rguenther@suse.de>
3312         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
3314 2010-07-04  Richard Guenther  <rguenther@suse.de>
3316         PR tree-optimization/44656
3317         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
3318         again after value-replacing in the defintions lhs.
3320 2010-07-04  Ira Rosen  <irar@il.ibm.com>
3321             Revital Eres  <eres@il.ibm.com>
3323         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
3324         Document new arguments.
3325         * doc/tm.texi: Regenerate.
3326         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
3327         Handle unaligned store.
3328         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
3329         * target.def (builtin_vectorization_cost): Add new arguments.
3330         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
3331         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
3332         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
3333         (vect_vfa_segment_size): Fix indentation.
3334         * tree-vectorizer.h (struct _vect_peel_info): New.
3335         (struct _vect_peel_extended_info): New.
3336         (struct _loop_vec_info): Add new field for peeling hash table and a
3337         macro for its access.
3338         (VECT_MAX_COST): Define.
3339         (vect_get_load_cost): Declare.
3340         (vect_get_store_cost, vect_get_known_peeling_cost,
3341         vect_get_single_scalar_iteraion_cost): Likewise.
3342         (vect_supportable_dr_alignment): Add new argument.
3343         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
3344         field.
3345         (destroy_loop_vec_info): Free peeling hash table.
3346         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
3347         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
3348         vect_analyze_slp. Fix indentation.
3349         (vect_get_single_scalar_iteraion_cost): New function.
3350         (vect_get_known_peeling_cost): Likewise.
3351         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
3352         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
3353         statement. Move outside cost calculation inside unknown peeling case.
3354         Call vect_get_known_peeling_cost for known amount of peeling.
3355         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
3356         reference to the print message of forced alignment.
3357         (vect_verify_datarefs_alignment): Update call to
3358         vect_supportable_dr_alignment.
3359         (vect_get_data_access_cost): New function.
3360         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
3361         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
3362         vect_peeling_hash_choose_best_peeling): Likewise.
3363         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
3364         to store all the accesses in the loop and find best possible access to
3365         align using peeling for known alignment case. For unknown alignment
3366         check if stores are preferred or if peeling is worthy.
3367         (vect_find_same_alignment_drs): Analyze pairs of loads too.
3368         (vect_supportable_dr_alignment): Add new argument and check aligned
3369         accesses according to it.
3370         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
3371         (cost_for_stmt): Call vect_get_stmt_cost.
3372         (vect_model_simple_cost): Likewise.
3373         (vect_model_store_cost): Call vect_get_stmt_cost. Call
3374         vect_get_store_cost to calculate the cost of the statement.
3375         (vect_get_store_cost): New function.
3376         (vect_model_load_cost): Call vect_get_stmt_cost. Call
3377         vect_get_load_cost to calculate the cost of the statement.
3378         (vect_get_load_cost): New function.
3379         (vectorizable_store): Update call to vect_supportable_dr_alignment.
3380         (vectorizable_load): Likewise.
3381         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
3382         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
3383         arguments. Handle unaligned store.
3384         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
3385         (rs6000_builtin_support_vector_misalignment): Return true for word and
3386         double word alignments for VSX.
3387         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
3388         vect_supportable_dr_alignment and builtin_vectorization_cost.
3390 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3392         PR target/44597
3393         * config/pa/predicates.md (prefetch_cc_operand): Remove.
3394         (prefetch_nocc_operand): Likewise.
3395         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
3396         (prefetch_20): New insn.
3397         (prefetch_cc): Remove.
3398         (prefetch_nocc): Likewise.
3400 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3402         * expr.c (vector_mode_valid_p): Move to c-common.c.
3403         * expr.h (vector_mode_valid_p): Do not declare here.
3404         * system.h: Poison GCC_EXPR_H in front-ends.
3405         * Makefile.in: Update dependencies.
3407 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3409         PR target/44705
3410         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
3412 2010-07-03  Jan Hubicka  <jh@suse.cz>
3414         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
3415         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
3416         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
3417         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
3418         Likewise.
3420         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
3421         Update timevars.V
3422         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
3423         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
3424         TV_IPA_LTO_DECL_OUT): New.
3425         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
3427 2010-07-03  Jan Hubicka  <jh@suse.cz>
3429         * ipa-inline.c (update_edge_key): Break out from ...
3430         update_callers_keys): ... here;
3431         (update_callee_keys): Update only the edges from caller to callee.
3432         (update_all_calle_keys): Do what update_calle_keys did.
3433         (decide_inlining_of_small_functions): Avoid recomputing of all
3434         callees when badness increase.
3436 2010-07-03  Jie Zhang  <jie@codesourcery.com>
3438         * config/arm/arm.c (arm_attr_length_move_neon): New.
3439         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
3440         * config/arm/neon.md (define_mode_attr V_slen): Remove.
3441         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
3442         to compute length attribute.
3444 2010-07-03  Jie Zhang  <jie@codesourcery.com>
3446         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
3447         as predicate for operand 1 and remove its constraint.
3448         * config/arm/predicates.md (vfp_register_operand): New.
3449         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
3450         (*push_fp_multi): Likewise.
3452 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
3454         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
3456 2010-07-03  Jan Hubicka  <jh@suse.cz>
3458         * config/i386/i386.c (override_options): Revert accidental commit.
3460 2010-07-02  Le-Chun Wu  <lcwu@google.com>
3462         PR c++/44128
3463         * doc/invoke.texi: Update documentation of -Wshadow.
3465 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
3466             Julian Brown  <julian@codesourcery.com>
3467             Sandra Loosemore <sandra@codesourcery.com>
3469         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
3470         comparisons.  Adjust to take both operands.
3471         (arm_select_cc_mode): Handle DImode comparisons.
3472         (arm_gen_compare_reg): Generate a scratch register for DImode
3473         comparisons which require one.  Use xor for Thumb equality checks.
3474         (arm_const_double_by_immediates): New.
3475         (arm_print_operand): Allow 'Q' and 'R' for constants.
3476         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
3477         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
3478         arm_canonicalize_comparison.
3479         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
3480         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
3481         prototype.
3482         (arm_const_double_by_immediates): Declare.
3483         * config/arm/constraints.md (Di): New constraint.
3484         * config/arm/predicates.md (arm_immediate_di_operand)
3485         (arm_di_operand, cmpdi_operand): New.
3486         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
3487         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
3488         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
3489         (cstoredi4): Handle non-Cirrus also.
3491 2010-07-02  Julian Brown  <julian@codesourcery.com>
3492             Sandra Loosemore <sandra@codesourcery.com>
3494         PR target/43703
3495         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
3496         (smax<mode>3): Disable for NEON float modes when
3497         flag_unsafe_math_optimizations is false.
3498         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
3499         (*mul<mode>3_neon)
3500         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
3501         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
3502         for NEON float modes when flag_unsafe_math_optimizations is false.
3503         (quad_halves_<code>v4sf): Only enable if
3504         flag_unsafe_math_optimizations is true.
3505         * doc/invoke.texi (ARM Options): Add note about floating point
3506         vectorization requiring -funsafe-math-optimizations.
3508 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
3509             Julian Brown  <julian@codesourcery.com>
3511         * config/arm/neon.md (UNSPEC_VABA): Delete.
3512         (UNSPEC_VABAL): Delete.
3513         (UNSPEC_VABS): Delete.
3514         (UNSPEC_VMUL_N): Delete.
3515         (adddi3_neon): New.
3516         (subdi3_neon): New.
3517         (mul<mode>3add<mode>_neon): Make the pattern named.
3518         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
3519         (neon_vadd<mode>): Replace with define_expand, and move the remaining
3520         unspec parts...
3521         (neon_vadd<mode>_unspec): ...to this.
3522         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
3523         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
3524         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
3525         (neon_vaba<mode>): Rewrite in terms of vabd.
3526         (neon_vabal<mode>): Rewrite in terms of vabdl.
3527         (neon_vabs<mode>): Rewrite without unspec.
3528         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
3529         (*arm_subdi3): Likewise.
3530         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
3531         No_op attribute to disable assembly output checks.
3532         * config/arm/arm_neon.h: Regenerated.
3533         * doc/arm-neon-intrinsics.texi: Regenerated.
3535 2010-07-02  Jan Hubicka  <jh@suse.cz>
3537         * ipa-split.c (split_function): For aggregate values, set the return
3538         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
3539         *<retval> = fncall.part ().
3540         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
3542 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
3544         * config/arm/neon.md (UNSPEC_VAND): Delete.
3545         (UNSPEC_VBIC): Delete.
3546         (UNSPEC_VCLZ): Delete.
3547         (UNSPEC_VCNT): Delete.
3548         (UNSPEC_VEOR): Delete.
3549         (UNSPEC_VORN): Delete.
3550         (UNSPEC_VORR): Delete.
3551         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
3552         core registers too.
3553         (anddi3_neon): Likewise.
3554         (orndi3_neon): Likewise.
3555         (bicdi3_neon): Likewise.
3556         (xordi3_neon): Likewise.
3557         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
3558         rid of unspec and handle unused operand.
3559         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
3560         * config/arm/predicates.md (imm_for_neon_logic_operand):
3561         Require TARGET_NEON.
3562         (imm_for_neon_inv_logic_operand): Likewise.
3563         * config/arm/arm.md (define_split for logical_binary_operator):
3564         Disable for NEON registers.
3565         (anddi3): Add new define_expand, and rename the insn.  Disable
3566         this insn for NEON, where anddi3_neon now applies.
3567         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
3568         (iordi3): As for anddi3.
3569         (xordi3): Likewise.
3570         * config/arm/neon.ml (Vand): Split DImode variants and mark them
3571         as No_op to disable testing for exact instruction match.
3572         (Vorr): Likewise.
3573         (Veor): Likewise.
3574         (Vbic): Likewise.
3575         (Vorn): Likewise.
3576         * config/arm/arm_neon.h: Regenerated.
3577         * doc/arm-neon-intrinsics.texi: Regenerated.
3579 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
3581         * expr.h (emit_stack_probe): Declare.
3582         * explow.c (emit_stack_probe): Make global.
3583         (anti_adjust_stack_and_probe): Fix comments.
3584         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3585         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3586         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3587         * config/sparc/sparc.c: Include except.h.
3588         (sparc_emit_probe_stack_range): New function.
3589         (output_probe_stack_range): Likewise.
3590         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
3591         built-in stack checking is enabled.
3592         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
3593         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3594         (probe_stack_range): New insn.
3596 2010-07-02  Richard Guenther  <rguenther@suse.de>
3598         PR target/43958
3599         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
3600         for argument alignment.
3602 2010-07-02  Jan Hubicka  <jh@suse.cz>
3604         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
3605         walk backwards from entry_bb to check only those basic block of header
3606         that might lead to execution of split part.
3607         (consider_split) ... here.
3608         (find_return_bb): Allow assignment in return BB.
3609         (find_retval): New.
3610         (split_function): Fix name of cloned function; take care of updating
3611         return value in return_bb containing move.
3613 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
3615         PR target/44771
3616         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
3617         used variable insn.
3619 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
3621         * implicit-zee.c (combine_reaching_defs): Fix long lines.
3622         (is_set_with_extension_DI): Delete.
3623         (struct zero_extend_info): New structure.
3624         (add_removable_zero_extend): New function.
3625         (find_removable_zero_extends): Use note_stores to find SETs.
3626         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
3628 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
3630         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
3631         is_miss_rate_acceptable. Pull total_positions computation
3632         out of the loops.  Early return if miss_positions exceeds
3633         the acceptable threshold.
3634         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
3635         is_miss_rate_acceptable after renaming of compute_miss_rate.
3637 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
3639         PR middle-end/44576
3640         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
3641         of 1000) for miss rate if the address diference is greater than or
3642         equal to the cache line size (the two reference will never hit the
3643         same cache line).
3645 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
3647         PR target/42835
3648         * config/arm/arm-modes.def (CC_NOTB): New mode.
3649         * config/arm/arm.c (get_arm_condition_code): Handle it.
3650         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
3651         * config/arm/arm.md (subsi3_compare0_c): New pattern.
3652         (compare_scc): Now a define_and_split.  Add a number of extra
3653         splitters before it.
3655         PR target/42172
3656         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
3657         and ZERO_EXTEND.
3658         (arm_rtx_costs_1): Likewise.
3659         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
3660         * config/arm/arm.md (is_arch6): New attribute.
3661         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
3662         extendqisi2): Tighten the code somewhat, avoiding invalid
3663         RTL to occur in the expander patterns.
3664         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
3665         (thumb1_zero_extendhisi2_v6): Delete.
3666         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
3667         (thumb1_extendhisi2_v6): Delete.
3668         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
3669         (thumb1_extendqisi2_v6): Delete.
3670         (zero_extendhisi2 for register input splitter): New.
3671         (zero_extendqisi2 for register input splitter): New.
3672         (thumb1_extendhisi2 for register input splitter): New.
3673         (extendhisi2 for register input splitter): New.
3674         (extendqisi2 for register input splitter): New.
3675         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
3676         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
3677         and add support for a register alternative requiring a split.
3678         (thumb1_zero_extendqisi2): Likewise.
3679         (arm_zero_extendqisi2): Likewise.
3680         (arm_extendhisi2): Likewise.
3681         (arm_extendqisi2): Likewise.
3683 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
3685         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
3686         instead of an unspec.
3687         (neon_expand_vector_init): Likewise.
3688         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
3689         (UNSPEC_VDUP_LANE): Delete.
3690         (UNSPEC VDUP_N): Delete.
3691         (UNSPEC_VGET_HIGH): Delete.
3692         (UNSPEC_VGET_LANE): Delete.
3693         (UNSPEC_VGET_LOW): Delete.
3694         (UNSPEC_VMVN): Delete.
3695         (UNSPEC_VSET_LANE): Delete.
3696         (V_double_vector_mode): New.
3697         (vec_set<mode>_internal): Make code emitted match that for the
3698         corresponding intrinsics.
3699         (vec_setv2di_internal): Likewise.
3700         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
3701         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
3702         (neon_vset_lane<mode>): Combine double and quad patterns and
3703         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
3704         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
3705         (neon_vdup_n<mode>): Rewrite RTL without unspec.
3706         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
3707         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
3708         with neon_vdup_lanev2di, adjusting the pattern from the latter
3709         to be predicable for consistency.
3710         (neon_vdup_lane<mode>_internal): New.
3711         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
3712         to avoid using an unspec.
3713         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
3714         (neon_vdup_lanev2di): Turn into a define_expand.
3715         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
3716         (neon_vget_high<mode>): Replace with....
3717         (neon_vget_highv16qi): New pattern using canonical RTL.
3718         (neon_vget_highv8hi): Likewise.
3719         (neon_vget_highv4si): Likewise.
3720         (neon_vget_highv4sf): Likewise.
3721         (neon_vget_highv2di): Likewise.
3722         (neon_vget_low<mode>): Replace with....
3723         (neon_vget_lowv16qi): New pattern using canonical RTL.
3724         (neon_vget_lowv8hi): Likewise.
3725         (neon_vget_lowv4si): Likewise.
3726         (neon_vget_lowv4sf): Likewise.
3727         (neon_vget_lowv2di): Likewise.
3729         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
3730         test for this emitting vmov.
3731         (Vset_lane): Likewise.
3732         (Vdup_n): Likewise.
3733         (Vmov_n): Likewise.
3735         * doc/arm-neon-intrinsics.texi: Regenerated.
3737 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
3739         * config/arm/neon.md (vec_extractv2di): Correct error in register
3740         numbering to reconcile with neon_vget_lanev2di.
3742 2010-07-02  Richard Guenther  <rguenther@suse.de>
3744         * tree-ssa-structalias.c (pt_solution_set_var): New function.
3745         * tree-ssa-alias.h (pt_solution_set_var): Declare.
3746         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
3747         points-to information.
3749 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
3751         * config/s390/s390.c (override_options): Adopt prefetching
3752         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
3754 2010-07-02  Jan Hubicka  <jh@suse.cz>
3756         * df-problems.c (df_kill_notes): Do not collect dead  notes.
3757         (df_set_note): Just call add_reg_note.
3758         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
3759         df_create_unused_note): Do not deal with lists of old notes.
3760         (df_note_bb_compute): Likewise.
3762 2010-07-02  Richard Guenther  <rguenther@suse.de>
3764         * tree-ssa-structalias.c (find_func_aliases): Handle
3765         pointer alignment via BIT_AND_EXPR.
3766         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
3768 2010-07-02  Richard Guenther  <rguenther@suse.de>
3770         * tree-data-ref.c (initialize_data_dependence_relation): Handle
3771         mismatching number of dimensions properly.
3773 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3775         PR target/44707
3776         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
3777         (lo_sum (high ...) ...) patterns generated by earlier passes.
3779 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3781         * doc/install.texi (Prerequisites): Document Perl requirement on
3782         Solaris 2.
3783         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
3785 2010-07-02  Richard Guenther  <rguenther@suse.de>
3787         PR middle-end/44777
3788         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
3790 2010-07-02  Jan Hubicka  <jh@suse.cz>
3792         PR middle-end/44706
3793         * predict.c (predict_paths_for_bb): Handle case when control dependence
3794         BB has only abnormal edges.
3796 2010-07-02  Richard Guenther  <rguenther@suse.de>
3798         PR tree-optimization/44748
3799         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
3800         the embedded conversion in MEM_REFs.
3802 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
3804         * reload.c: Include toplev.h.
3805         * recog.c:  Likewise.
3806         * Makefile.in: Adjust dependencies.
3808 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
3810         PR debug/44694
3811         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
3812         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
3814 2010-07-01  Richard Guenther  <rguenther@suse.de>
3816         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
3817         types for offsets.
3819 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
3821         PR target/44732
3822         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
3823         Fix argument types.
3825 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
3827         PR target/44727
3828         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3829         Make sure operand 0 dies.
3831 2010-07-01  Richard Guenther  <rguenther@suse.de>
3833         PR middle-end/42834
3834         PR middle-end/44468
3835         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
3836         * doc/generic.texi (References to storage): Document MEM_REF.
3837         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
3838         (print_call_name): Likewise.
3839         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
3840         (build_simple_mem_ref_loc): New function.
3841         (mem_ref_offset): Likewise.
3842         * tree.h (build_simple_mem_ref_loc): Declare.
3843         (build_simple_mem_ref): Define.
3844         (mem_ref_offset): Declare.
3845         * fold-const.c: Include tree-flow.h.
3846         (operand_equal_p): Handle MEM_REF.
3847         (build_fold_addr_expr_with_type_loc): Likewise.
3848         (fold_comparison): Likewise.
3849         (fold_unary_loc): Fold
3850         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
3851         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
3852         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
3853         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
3854         (ptr_deref_may_alias_ref_p_1): Likewise.
3855         (ao_ref_base_alias_set): Properly differentiate base object for
3856         offset and TBAA.
3857         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
3858         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
3859         (indirect_refs_may_alias_p): Likewise.
3860         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
3861         chasing code.
3862         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
3863         (call_may_clobber_ref_p_1): Likewise.
3864         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
3865         * expr.c (expand_assignment): Handle MEM_REF.
3866         (store_expr): Handle MEM_REFs from STRING_CSTs.
3867         (store_field): If expanding a MEM_REF of a non-addressable
3868         decl use bitfield operations.
3869         (get_inner_reference): Handle MEM_REF.
3870         (expand_expr_addr_expr_1): Likewise.
3871         (expand_expr_real_1): Likewise.
3872         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
3873         * alias.c (ao_ref_from_mem): Handle MEM_REF.
3874         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
3875         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
3876         (dr_analyze_indices): Likewise.
3877         (dr_analyze_alias): Likewise.
3878         (object_address_invariant_in_loop_p): Likewise.
3879         * gimplify.c (mark_addressable): Handle MEM_REF.
3880         (gimplify_cond_expr): Build MEM_REFs.
3881         (gimplify_modify_expr_to_memcpy): Likewise.
3882         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
3883         (gimple_fold_indirect_ref): Adjust.
3884         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
3885         * tree.def (MEM_REF): New tree code.
3886         * tree-dfa.c: Include toplev.h.
3887         (get_ref_base_and_extent): Handle MEM_REF.
3888         (get_addr_base_and_unit_offset): New function.
3889         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
3890         * gimple-fold.c (may_propagate_address_into_dereference): Handle
3891         MEM_REF.
3892         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
3893         accesses if the array has just one dimension.  Remove always true
3894         parameter.  Do not require type compatibility here.
3895         (maybe_fold_offset_to_component_ref): Remove.
3896         (maybe_fold_stmt_indirect): Remove.
3897         (maybe_fold_reference): Remove INDIRECT_REF handling.
3898         Fold back to non-MEM_REF.
3899         (maybe_fold_offset_to_address): Simplify.  Deal with type
3900         mismatches here.
3901         (maybe_fold_reference): Likewise.
3902         (maybe_fold_stmt_addition): Likewise.  Also handle
3903         &ARRAY + I in addition to &ARRAY[0] + I.
3904         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
3905         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
3906         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
3907         * tree-ssa.c (useless_type_conversion_p): Make most pointer
3908         conversions useless.
3909         (warn_uninitialized_var): Handle MEM_REF.
3910         (maybe_rewrite_mem_ref_base): New function.
3911         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
3912         to SSA form.
3913         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
3914         INDIRECT_REF handling.
3915         (copy_tree_body_r): Handle MEM_REF.
3916         * gimple.c (is_gimple_addressable): Adjust.
3917         (is_gimple_address): Likewise.
3918         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
3919         invariant base are invariant.
3920         (is_gimple_min_lval): Adjust.
3921         (is_gimple_mem_ref_addr): New function.
3922         (get_base_address): Handle MEM_REF.
3923         (count_ptr_derefs): Likewise.
3924         (get_base_loadstore): Likewise.
3925         * gimple.h (is_gimple_mem_ref_addr): Declare.
3926         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
3927         * tree-cfg.c (verify_address): New function, split out from ...
3928         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
3929         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
3930         INDIRECT_REFs.
3931         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
3932         INDIRECT_REF.  Allow conversions.
3933         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
3934         a register does not change its size.
3935         (verify_types_in_gimple_reference): Verify MEM_REF.
3936         (verify_gimple_assign_single): Disallow INDIRECT_REF.
3937         Handle MEM_REF.
3938         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
3939         New.
3940         (mark_address_taken): Handle MEM_REF.
3941         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
3942         (get_asm_expr_operands): Pass opf_not_non_addressable.
3943         (get_expr_operands): Handle opf_[not_]non_addressable.
3944         Handle MEM_REF.  Remove INDIRECT_REF handling.
3945         * tree-vrp.c (check_array_ref): Handle MEM_REF.
3946         (search_for_addr_array): Likewise.
3947         (check_array_bounds): Likewise.
3948         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
3949         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
3950         (ref_always_accessed_p): Likewise.
3951         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
3952         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
3953         Handle MEM_REF.
3954         * cgraphbuild.c (mark_load): Properly check for NULL result
3955         from get_base_address.
3956         (mark_store): Likewise.
3957         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
3958         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
3959         handling for MEM_REF.
3960         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
3961         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
3962         * builtins.c (stabilize_va_list_loc): Use the function ABI
3963         valist type if we couldn't canonicalize the argument type.
3964         Always dereference with the canonical va-list type.
3965         (maybe_emit_free_warning): Handle MEM_REF.
3966         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
3967         memmove to memcpy.
3968         * builtins.c (fold_builtin_memory_op): Use ref-all types
3969         for all memcpy foldings.
3970         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
3971         (build_outer_var_ref): Likewise.
3972         (scan_omp_1_op): Likewise.
3973         (lower_rec_input_clauses): Likewise.
3974         (lower_lastprivate_clauses): Likewise.
3975         (lower_reduction_clauses): Likewise.
3976         (lower_copyprivate_clauses): Likewise.
3977         (expand_omp_atomic_pipeline): Likewise.
3978         (expand_omp_atomic_mutex): Likewise.
3979         (create_task_copyfn): Likewise.
3980         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
3981         Remove old union trick.  Initialize constant offsets.
3982         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
3983         INDIRECT_REF.  Init base_alias_set properly.
3984         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
3985         (vn_reference_fold_indirect): Adjust for MEM_REFs.
3986         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
3987         for ARRAY_REFs.
3988         (may_insert): Remove.
3989         (visit_reference_op_load): Do not test may_insert.
3990         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
3991         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3992         a field to store the constant offset this op applies.
3993         (run_scc_vn): Adjust prototype.
3994         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
3995         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
3996         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
3997         bother about volatile qualifiers on pointers.
3998         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
3999         * tree-ssa-loop-ivopts.c
4000         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
4001         (strip_offset_1): Likewise.
4002         (find_interesting_uses_address): Replace INDIRECT_REF handling with
4003         MEM_REF handling.
4004         (get_computation_cost_at): Likewise.
4005         * ipa-pure-const.c (check_op): Handle MEM_REF.
4006         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
4007         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
4008         and constants.
4009         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
4010         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
4011         (eliminate_local_variables_1): Likewise.
4012         (create_call_for_reduction_1): Likewise.
4013         (create_loads_for_reductions): Likewise.
4014         (create_loads_and_stores_for_name): Likewise.
4015         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
4016         (ssa_accessed_in_tree): Handle MEM_REF.
4017         (ssa_accessed_in_assign_rhs): Likewise.
4018         (update_type_size): Likewise.
4019         (analyze_accesses_for_call_stmt): Likewise.
4020         (analyze_accesses_for_assign_stmt): Likewise.
4021         (transform_access_sites): Likewise.
4022         (transform_allocation_sites): Likewise.
4023         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
4024         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4025         not handle INDIRECT_REF.
4026         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
4027         (cond_store_replacement): Likewise.
4028         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
4029         MEM_REF, no not handle INDIRECT_REFs.
4030         (insert_into_preds_of_block): Properly initialize avail.
4031         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
4032         for ARRAY_REFs.  Properly handle reference lookups that
4033         require a bit re-interpretation.
4034         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
4035         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
4036         (build_ref_for_offset_1): Remove.
4037         (build_ref_for_offset): Build MEM_REFs.
4038         (gate_intra_sra): Disable for now.
4039         (sra_ipa_modify_expr): Handle MEM_REF.
4040         (ipa_early_sra_gate): Disable for now.
4041         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
4042         MEM_REF handling.
4043         (disqualify_base_of_expr): Likewise.
4044         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
4045         MEM_REF handling.
4046         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
4047         Use mem_ref_offset.  Remove bogus folding.
4048         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
4049         (make_fancy_name_1): Add support for MEM_REF.
4050         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
4051         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
4052         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
4053         (compute_complex_ancestor_jump_func): Likewise.
4054         (ipa_analyze_virtual_call_uses): Likewise.
4055         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
4056         INDIRECT_REF folding with more generalized MEM_REF folding.
4057         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
4058         (forward_propagate_addr_into_variable_array_index): Also handle
4059         &ARRAY + I in addition to &ARRAY[0] + I.
4060         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
4061         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
4062         creates assignments with overlap.
4063         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
4064         (get_frame_field): Likewise.
4065         (get_nonlocal_debug_decl): Likewise.
4066         (convert_nonlocal_reference_op): Likewise.
4067         (struct nesting_info): Add mem_refs pointer-set.
4068         (create_nesting_tree): Allocate it.
4069         (convert_local_reference_op): Insert to be folded mem-refs.
4070         (fold_mem_refs): New function.
4071         (finalize_nesting_tree_1): Perform defered folding of mem-refs
4072         (free_nesting_tree): Free the pointer-set.
4073         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
4074         (vectorizable_load): Likewise.
4075         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
4076         (propagate_with_phi): Likewise.
4077         * tree-object-size.c (addr_object_size): Handle MEM_REFs
4078         instead of INDIRECT_REFs.
4079         (compute_object_offset): Handle MEM_REF.
4080         (plus_stmt_object_size): Handle MEM_REF.
4081         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
4082         for &MEM_REF.
4083         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
4084         (symbol_marked_for_renaming): Likewise.
4085         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
4086         (fold-const.o): Add $(TREE_FLOW_H).
4087         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
4088         (find_func_clobbers): Likewise.
4089         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
4090         (decompose_access): Likewise.
4091         (replace_field_acc): Likewise.
4092         (replace_field_access_stmt): Likewise.
4093         (insert_new_var_in_stmt): Likewise.
4094         (get_stmt_accesses): Likewise.
4095         (reorg_structs_drive): Disable.
4096         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
4097         (ix86_canonical_va_list_type): Likewise.
4099 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4101         PR other/44566
4102         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
4103         * target.def (struct gcc_target): Replace enum reg_class with
4104         reg_class_t in hook argument / return types.
4105         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
4106         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
4107         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4108         * targhooks.h (default_branch_target_register_class): Likewise.
4109         (default_ira_cover_classes, default_secondary_reload): Likewise.
4110         (default_memory_move_cost, default_register_move_cost): Likewise.
4111         * targhooks.c (default_branch_target_register_class): Likewise.
4112         (default_ira_cover_classes, default_secondary_reload): Likewise.
4113         (default_memory_move_cost, default_register_move_cost): Likewise.
4114         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
4115         * bt-load.c (branch_target_load_optimize): Likewise.
4116         * ira.c (setup_cover_and_important_classes): Likewise.
4117         * ira-costs.c (copy_cost): Likewise.
4118         * reload1.c (emit_input_reload_insns): Likewise.
4119         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4120         * config/frv/frv.c (frv_secondary_reload): Likewise.
4121         * config/s390/s390.c (s390_secondary_reload): Likewise.
4122         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
4123         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
4124         (ix86_register_move_cost): Likewise.
4125         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
4126         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
4127         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
4128         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
4129         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
4130         (rs6000_ira_cover_classes): Likewise.
4131         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
4132         * config/picochip/picochip-protos.h (picochip_secondary_reload):
4133         Likewise.
4134         * config/pa/pa.c (pa_secondary_reload): Likewise.
4135         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
4136         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
4137         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
4138         * doc/tm.texi: Regenerate.
4140 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
4142         PR bootstrrap/44726
4143         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
4144         use.
4145         (build_alias_set_optimal_p): Likewise.
4146         (build_base_obj_set_for_drs): Likewise.
4148 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4150         * target.def: Remove comment about licensing problems of function
4151         declarations.
4153         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
4154         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
4155         * doc/tm.texi: Regenerate.
4157         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
4158         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
4160         * target.def (enum_va_list_p): Use DEFHOOK.
4161         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
4162         Rename ptype to ptree.
4163         * doc/tm.texi: Regenerate.
4165         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
4166         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
4167         * doc/tm.texi: Regenerate.
4169         * target.def (memory_move_cost): Use DEFHOOK.
4170         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
4171         Rename regclass AKA class to rclass.
4172         * doc/tm.texi: Regenerate.
4174         * target.def (pragma_parse): Use DEFHOOK.
4175         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
4176         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
4177         * doc/tm.texi: Regenerate.
4179         * target.def (pass_by_reference): Use DEFHOOK.
4180         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
4181         * doc/tm.texi: Regenerate.
4183         * target.def (resolve_overloaded_builtin): Rename params to arglist.
4184         Use DEFHOOK.
4185         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
4186         * doc/tm.texi: Regenerate.
4188         * target.def (return_pops_args): Use DEFHOOK.
4189         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
4190         Rename stack-size to size.
4191         * doc/tm.texi: Regenerate.
4193         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
4194         last-sched_cycle to last_clock, cur_cycle to clock.
4195         * doc/tm.texi.in: Use @hook.
4196         * doc/tm.texi: Regenerate.
4198         * target.def (print_operand, print_operand_address): Update comment.
4199         (print_operand_punct_valid_p): Likewise.
4201 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4203         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
4204         to rtl.h.
4205         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
4206         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
4207         * rtl-error.h: New.
4208         * regrename.c: Do not include toplev.h. Include rtl-error.h.
4209         * rtl-error.c: Likewise.
4210         * reload.c: Likewise.
4211         * recog.c:  Likewise.
4212         * sel-sched.c: Likewise.
4213         * function.c: Likewise.
4214         * reg-stack.c: Likewise.
4215         * cfgrtl.c: Likewise.
4216         * reload1.c: Likewise.
4217         * final.c: Include rtl-error.
4218         * Makefile.in: Adjust dependencies.
4220 2010-06-30  Jan Hubicka  <jh@suse.cz>
4222         PR middle-end/PR44706
4223         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
4224         to return the value.
4226 2010-06-30  Michael Matz  <matz@suse.de>
4228         PR bootstrap/44699
4229         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
4230         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
4231         a gimple reg, attach the original VDEF to the last store in the
4232         sequence.
4234 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
4236         PR other/44034
4237         * config/darwin.c (darwin_override_options): Use renamed
4238         targetm.asm_out.emit_unwind_label.
4240 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
4242         PR tree-optimization/39799
4243         * tree-inline.c (remap_ssa_name): Initialize variable only if
4244         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4246 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
4248         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
4250 2010-06-30  Richard Guenther  <rguenther@suse.de>
4252         PR target/44722
4253         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
4254         against oscillation with reverse peephole2.
4256 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
4258         PR target/44721
4259         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4260         Fix last commit.
4262 2010-06-30  Nick Clifton  <nickc@redhat.com>
4264         * config/rx/rx-modes.def: New file.
4265         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
4266         (CC_REGNUM): Define.
4267         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
4268         register.
4269         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
4270         (SELECT_CC_MODE): Define.
4271         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
4272         (reg:CC CC_REG) instead of (cc0).
4273         (attr "cc"): Delete.
4274         (cbranchsi4): Do not split compare and branch here. Instead move
4275         it to...
4276         (cbranchsi4_<code>): ... here.  New patterns.
4277         (cmpsi): Call rx-compare_redundant to find out if it is necessary
4278         to emit the compare instruction.
4279         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
4280         cc_status flags.
4281         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
4282         FIRST_PSEUDO_REGNUM.
4283         (rx_expand_prologue, rx_expand_epilogue): Likewise.
4284         (rx_notice_update_cc): Delete.
4285         (rx_cc_modes_compatible): New function.
4286         (flags_needed_for_conditional): New function.
4287         (flags_from_mode): New function.
4288         (rx_compare_redundant): New function - scans backwards through
4289         insn list to find out if condition flags are already set correctly.
4290         (TARGET_CC_MODES_COMPATIBLE): Define.
4291         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
4293         * config/rx/rx.h (BRANCH_COST): Define.
4294         (REGISTER_MOVE_COST): Define.
4295         * config/rx/predicates (rx_source_operand): Allow all constant types.
4296         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
4297         (tstsi4): New pattern.
4298         * config/rx/rx.c (rx_memory_move_cost): Define.
4299         (TARGET_MEMORY_MOVE_COST): Define.
4301 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4303         * tree.h (block_may_fallthru): Declare here.
4304         * tree-flow.h (block_may_fallthru): Do not declare here.
4305         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
4306         bitmap.h
4307         * Makefile.in (c-typeck.o): Update dependencies.
4309 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
4311         PR debug/44694
4312         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
4313         * cselib.c (cfa_base_preserved_regno): New static variable.
4314         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
4315         of REGNO (cfa_base_preserved_val->locs->loc).
4316         (cselib_preserve_cfa_base_value): Add regno argument, set
4317         cfa_base_preserved_regno to it.
4318         (cselib_invalidate_regno): Allow removal of registers other than
4319         cfa_base_preserved_regno from cfa_base_preserved_val.
4320         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
4321         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
4322         of MEM addresses, if not on LHS.
4323         (reverse_op): Don't add reverse ops for cfa_base_rtx.
4324         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
4326 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
4328         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
4329         static variables.
4330         (peep2_buf_position): New static function.
4331         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
4332         peephole2_optimize): Use it.
4333         (peep2_attempt, peep2_update_life): New static functions, broken out
4334         of peephole2_optimize.
4335         (peep2_fill_buffer): New static function.
4336         (peephole2_optimize): Change the main loop to try to fill the buffer
4337         with the maximum number of insns before matching them against
4338         peepholes.  Use a forward scan.  Remove special case for targets with
4339         conditional execution.
4340         * genrecog.c (change_state): Delete dead code.
4341         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4342         Rewrite so as not to expect the second insn to have had a peephole
4343         applied yet.
4345 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4347         * genhooks.c (emit_findices): Cast field precision to int.
4348         (emit_documentation): Likewise.
4350 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
4352         PR tree-optimization/43801
4353         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
4354         if old_decl was DECL_ONE_ONLY.
4356         PR debug/44668
4357         * dwarf2out.c (add_accessibility_attribute): New function.
4358         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
4359         instead of adding DW_AT_accessibility manually.
4360         (gen_enumeration_type_die, gen_struct_or_union_type_die,
4361         gen_typedef_die): Use it.
4363 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4365         * vmsdbgout.c (full_name): Just output the file name if not native.
4367 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4369         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
4370         (funcnam_table): New static table.
4371         (funcnum_table): New static table.
4372         (write_rtnbeg): Write value saved in funcnum_table.
4373         (write_rtnend): Write value saved in funcnum_table.
4374         (vmsdbgout_begin_function): Save current function info in
4375         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
4376         (vmsdbgout_finish): Iterate over funcnum_table.
4378 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4380         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
4381         (vmsdbgout_type_decl): Declare
4382         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
4383         (FUNC_EPILOGUE_LABEL): New macro
4384         (vmsdbgout_begin_epilogue): New function.
4385         (vmsdbgout_type_decl): New function.
4387 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4389         * vmsdbg.h: Update copyright.
4391 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4393         * vmsdbg.h (DST_K_TBG): New DST constant.
4394         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
4395         (write_modbeg): Cast module_language to avoid warning.
4396         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
4398 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4400         PR other/44034
4401         * target.def, doc/tm.texi.in, genhooks.c: New files.
4402         * target.h: Instead of defining individual hook members,
4403         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
4404         include target.def.
4405         * target-def.h: Instead of defining individual hook initializers,
4406         include target-hooks-def.h.
4407         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
4408         targetm.live_on_entry -> targetm.extra_live_on_entry
4409         targetm.sched.md_finish ->targetm.sched.finish
4410         targetm.sched.md_init -> targetm.sched.init
4411         targetm.sched.md_init_global -> targetm.sched.init_global
4412         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
4413         targetm.asm_out.except_table_label ->
4414           targetm.asm_out.emit_except_table_label
4415         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
4416         targetm.target_help -> targetm.help
4417         targetm.vectorize.builtin_support_vector_misalignment ->
4418           targetm.vectorize.support_vector_misalignment
4419         targetm.file_start_app_off -> targetm.asm_file_start_app_off
4420         targetm.file_start_file_directive ->
4421          targetm.asm_file_start_file_directive
4422         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
4423         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
4424         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
4425         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
4426           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
4427         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
4428           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
4429         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
4430         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
4431         * Makefile.in (TARGET_H): Depend on target.def.
4432         (TARGET_DEF_H): Depend on target-hooks-def.h.
4433         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
4434         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
4435         * doc/tm.texi: Regenerate.
4437         * Makefile.in (s-tm-texi): Remove stray tab / rule.
4439         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
4440         (targetm.sched.init): Likewise.
4442 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4444         PR bootstrap/44713
4445         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
4446         (function_arg_advance_32): Const-ify TYPE parameter.
4447         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
4448         (ix86_function_arg_advance): Change type of NAMED to bool.
4449         (function_arg_32): Const-ify CUM and TYPE parameters.
4450         (function_arg_64): Likewise.  Change type of NAMED to bool.
4451         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
4452         to bool.
4453         (ix86_function_arg): Change type of NAMED to bool.
4454         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
4455         last argument as a bool.
4457 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4459         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
4460         (OVERRIDE_OPTIONS): Add note of obsolescence.
4461         Replace references with references to TARGET_OPTION_OVERRIDE.
4462         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
4463          the macro).
4464         * targhooks.c (default_target_option_override): New function.
4465         * targhooks.h (default_target_option_override): Declare.
4466         * target.h (struct gcc_target): Add override member to
4467         target_option member.
4468         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
4469         targetm.target_option.override call.
4470         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
4471         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
4473 2010-06-29  Jan Hubicka  <jh@suse.cz>
4475         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
4477 2010-06-29  Jan Hubicka  <jh@suse.cz>
4479         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
4480         unreachable.
4481         (rebuild_frequencies): New function.
4482         * predict.h (rebuild_frequencies): Declare.
4483         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
4484         entry block and edge reaching new_entry.
4485         (tree_function_versioning): When doing partial cloning, rebuild
4486         frequencies when done.
4487         * passes.c (execute_function_todo): Use rebild_frequencies.
4489 2010-06-29  Richard Guenther  <rguenther@suse.de>
4491         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
4492         * tree-flow.h (enum noalias_state): Remove.
4493         (struct var_ann_d): Remove noalias_state member.
4495 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
4497         PR target/43902
4498         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
4499         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
4500         (maddhidi4): Likewise.
4502         Revert parts of the change for PR25130.
4503         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4504         MEM_ALIAS_SET.
4506 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4508         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
4509         targetm.calls.function_incoming_arg, and
4510         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
4511         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
4512         * target.h (struct gcc_target): Add function_arg_advance,
4513         function_arg, and function_incoming_arg fields.
4514         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
4515         (TARGET_FUNCTION_INCOMING_ARG): Define.
4516         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
4517         and TARGET_FUNCTION_INCOMING_ARG.
4518         * targhooks.h (default_function_arg_advance): Declare.
4519         (default_function_arg, default_function_incoming_arg): Declare.
4520         * targhooks.c (default_function_arg_advance): New function.
4521         (default_function_arg, default_function_incoming_arg): New function.
4522         * config/i386/i386.c (function_arg_advance): Rename to...
4523         (ix86_function_arg_advance): ...this.  Make static.
4524         (function_arg): Rename to...
4525         (ix86_function_arg): ...this.  Make static.
4526         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4527         (TARGET_FUNCTION_ARG): Define.
4528         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
4529         (FUNCTION_ARG): Delete.
4530         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
4531         (function_arg): Delete prototype.
4533 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4535         * reginfo.c (init_reg_sets_1): Adjust comments.
4536         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
4537         * calls.c (prepare_call_address): Likewise.
4538         (emit_call_1): Use targetm.calls.return_pops_args.
4539         (expand_call): Likewise.
4540         * function.c (assign_parms): Likewise.
4541         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
4542         * target.h (struct gcc_target) [struct calls]: Add
4543         return_pops_args field.
4544         * targhooks.h (default_return_pops_args): Declare.
4545         * targhooks.c (default_return_pops_args): Define.
4546         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
4547         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
4548         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
4549         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
4550         documentation.
4551         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
4552         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
4553         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
4554         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
4555         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
4556         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
4557         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
4558         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
4559         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
4560         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
4561         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
4562         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
4563         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
4564         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
4565         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
4566         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
4567         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
4568         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
4569         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
4570         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
4571         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
4572         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
4573         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
4574         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
4575         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
4576         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
4577         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
4578         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
4579         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
4580         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
4581         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
4582         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
4583         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
4584         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
4585         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
4586         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
4587         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
4588         * config/i386/i386.c (ix86_return_pops_args): Make static.
4589         Constify arguments.
4590         (TARGET_RETURN_POPS_ARGS): Define.
4591         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
4592         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
4593         (TARGET_RETURN_POPS_ARGS): Define.
4594         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
4595         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
4596         (TARGET_RETURN_POPS_ARGS): Define.
4598 2010-06-29  Richard Guenther  <rguenther@suse.de>
4600         PR middle-end/44667
4601         * tree-inline.c (initialize_inlined_parameters): Make sure
4602         to remap the inlined parameter variable substitutions types.
4604 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
4606         PR rtl-optimization/44659
4607         * combine.c (make_compound_operation) <SUBREG>: Do not return the
4608         result of force_to_mode if it partially re-expanded the compound.
4610 2010-06-28  Jan Hubicka  <jh@suse.cz>
4612         PR middle-end/44671
4613         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
4614         RESULT_DECL.
4616 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4618         * double-int.h (force_fit_type_double): Remove declaration.
4619         * double-int.c (force_fit_type_double): Move to tree.c.
4620         * tree.h (force_fit_type_double): Declare.
4621         * tree.h (force_fit_type_double): Moved from double-int.c. Use
4622         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
4623         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
4624         * convert.c (convert_to_pointer): Adjust call to
4625         force_fit_type_double.
4626         * tree-vrp.c (extract_range_from_assert,
4627         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
4628         * fold-const.c: Update comment.
4629         (int_const_binop, fold_convert_const_int_from_int,
4630         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
4631         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
4632         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
4633         round_up_loc): Adjust call to force_fit_type_double.
4635 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4637         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
4639 2010-06-28  Martin Jambor  <mjambor@suse.cz>
4641         * tree-sra.c (convert_callers): New parameter, change fndecls of
4642         recursive calls.
4643         (modify_function): Pass the old decl to convert_callers.
4645 2010-06-28  Martin Jambor  <mjambor@suse.cz>
4647         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
4648         ipa_check_create_node_params and ipa_initialize_node_params with
4649         checking asserts they are not necessary.
4651 2010-06-28  Jan Hubicka  <jh@suse.cz>
4653         PR tree-optimization/44687
4654         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
4656 2010-06-28  Martin Jambor  <mjambor@suse.cz>
4658         PR c++/44535
4659         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
4660         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
4661         instead of BINFO_BASE_BINFO.
4663 2010-06-28  Michael Matz  <matz@suse.de>
4665         PR middle-end/44592
4666         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
4667         proper VDEF chain for intermediate stores in the sequence.
4669 2010-06-28  Jan Hubicka  <jh@suse.cz>
4671         PR tree-optimization/44357
4672         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
4673         uninlinable functions.
4675 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4677         * config.gcc (powerpc*-*-*): Handle titan.
4678         * config/rs6000/rs6000.c (titan_cost): New costs.
4679         (rs6000_override_options): Add "titan" to processor_target_table.
4680         Add Titan to branch alignment logic.
4681         Correctly set rs6000_cost for titan.
4682         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
4683         * config/rs6000/titan.md: New file.
4684         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
4686 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
4688         * tree-browser.c (TB_history_stack): Convert to a VEC.
4689         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
4690         (TB_history_prev): Likewise.
4692 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
4694         * vec.h (vec_heap_free): Add parentheses around free.
4696 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4698         * system.h: Poison GCC_EXCEPT_H for front-end files.
4700         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
4701         langhook.
4702         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
4703         Define to NULL by default.
4704         * except.h: Define GCC_EXCEPT_H.
4705         (doing_eh): Remove prototype.
4706         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
4707         (lang_protect_cleanup_actions): Remove.
4708         * except.c (lang_protect_cleanup_actions): Remove.
4709         (doing_eh): Remove.
4710         (gen_eh_region): Don't check doing_eh here.
4711         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
4712         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
4713         instead of lang_protect_cleanup_actions.
4714         * omp-low.c (maybe_catch_exception): Likewise.
4715         * Makefile.in: Update dependencies.
4717 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
4719         * cgraph.h (struct varpool_node): new used_from_object_file flag.
4720         (struct cgraph_local_info): new used_from_object_file flag.
4721         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
4722         (cgraph_clone_node): initialize used_from_object_file.
4723         (cgraph_create_virtual_clone): initialize used_from_object_file.
4724         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
4725         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
4726         when compiling with -fwhole-program.
4727         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
4728         internal resolver.
4729         * ipa.c (function_and_variable_visibility): Set externally_visible
4730         flag of varpool_node if used_from_object_file flag is set.
4731         (cgraph_externally_visible_p): check used_from_object_file flag.
4732         * doc/invoke.texi (-fwhole-program option): Change description of
4733         externally_visible attribute accordingly.
4734         * doc/extend.texi (externally_visible): Ditto.
4736 2010-06-27  Jan Hubicka  <jh@suse.cz>
4738         * params.def (max-inline-insns-auto): Default to 40.
4739         * doc/invoke.texi (max-inline-insns-auto): Document the change.
4741 2010-06-27  Jan Hubicka  <jh@suse.cz>
4743         PR middle-end/44671
4744         PR middle-end/44686
4745         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
4746         signature change.
4747         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
4748         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
4750 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
4752         * target.h (struct gcc_target): Add register_move_cost field.
4753         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
4754         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
4755         * targhooks.c (default_register_move_cost): New function.
4756         * targhooks.h (default_register_move_cost): Declare function.
4757         * defaults.h (REGISTER_MOVE_COST): Delete.
4758         * ira-int.h (ira_register_move_cost): Update comment.
4759         * ira.c (ira_register_move_cost): Update comment.
4760         * reload.h (register_move_cost): Declare.
4761         * reginfo.c (register_move_cost): New function.
4762         (move_cost): Update comment.
4763         (init_move_cost, memory_move_secondary_cost): Replace
4764         REGISTER_MOVE_COST with register_move_cost.
4765         * postreload.c (reload_cse_simplify_set): (Ditto.).
4766         * reload.c (find_valid_class, find_reloads): (Ditto.).
4767         * reload1.c (choose_reload_regs): (Ditto.).
4768         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
4769         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
4770         * doc/md.texi (can_create_pseudo_p): Update documentation.
4772         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4773         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4774         * config/i386/i386.h (ix86_memory_move_cost): Make static.
4775         (TARGET_MEMORY_MOVE_COST): Define.
4777         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4778         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
4779         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
4780         (TARGET_MEMORY_MOVE_COST): Define.
4782 2010-06-27  Richard Guenther  <rguenther@suse.de>
4784         PR tree-optimization/44683
4785         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
4786         false edge from the inverted condition.
4788 2010-06-27  Richard Guenther  <rguenther@suse.de>
4790         PR middle-end/44684
4791         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
4792         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
4793         for register LHS.  Or non-store assignments.
4795 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4797         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
4798         (sparc_emit_set_const64): Likewise.  Remove disabled code.
4799         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
4800         (sparc_emit_set_const64): Likewise.
4802 2010-06-26  Catherine Moore  <clm@codesourcery.com>
4804         * config/mips/mips.md (alu_type): New attribute.
4805         (type): Infer type from alu_type.
4806         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
4807         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
4808         *subsi3_extended, negsi2, negdi2, *low<mode>,
4809         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
4810         xor<mode>3, *nor<mode>3,
4811         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
4812         *zero_extendhi_truncqi):  Set alu_type instead of type.
4814 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
4816         * config/alpha/alpha.c (alpha_need_linkage): Adjust
4817         splay_tree_new_ggc call.
4818         (alpha_use_linkage): Likewise.
4820 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
4822         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
4823         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
4824         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
4825         (static_specs): Remove switches_need_spaces.
4826         (process_command, do_self_spec): Hardcode handling "-o" instead of
4827         checking switches_need_spaces.
4828         * system.h (SWITCHES_NEED_SPACES): Poison.
4830 2010-06-26  Richard Guenther  <rguenther@suse.de>
4832         PR tree-optimization/44393
4833         * tree-loop-distribution.c (generate_loops_for_partition): Fix
4834         stmt removal and VOP renaming.
4835         (generate_memset_zero): Remove redundant stmt updating.
4836         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
4837         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
4839 2010-06-26  Jan Hubicka  <jh@suse.cz>
4841         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
4842         edges comming from header are equivalent.
4843         (visit_bb): Handle PHIs correctly.
4844         * tree-inline.c (copy_phis_for_bb): Be able to copy
4845         PHI from entry edge.
4846         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
4848 2010-06-26  Richard Guenther  <rguenther@suse.de>
4850         PR middle-end/44674
4851         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
4852         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
4854 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
4856         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
4857         add_infile, alloc_switch): New.
4858         (process_command): Remove variable lang_n_infiles.  Process
4859         options in a single pass.  Use new functions for allocating
4860         infiles and switches arrays.  Properly skip operands of
4861         -Xpreprocessor and -Xassembler.
4863 2010-06-26  Jan Hubicka  <jh@suse.cz>
4865         PR middle-end/44671
4866         * cgraphunit.c (cgraph_function_versioning): Remove wrong
4867         cgraph_make_decl_local call; fix typo copying RTL data.
4869 2010-06-25  DJ Delorie  <dj@redhat.com>
4871         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
4872         (m32c_output_aligned_common): Likewise.
4873         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4874         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
4875         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
4876         (m32c_register_pragmas): Register it.
4877         * config/m32c/m32c.c (m32c_get_pragma_address): New.
4878         (m32c_insert_attributes): Set #pragma address decls volatile.
4879         (pragma_entry_eq): New.
4880         (pragma_entry_hash): New.
4881         (m32c_note_pragma_address): New.
4882         (m32c_get_pragma_address): New.
4883         (m32c_output_aligned_common): New.
4884         * doc/extend.texi: Document the new pragma.
4886         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
4887         also.
4888         * config/m32c/predicates.md (m32c_any_operand): Check the code
4889         instead of memory_operand so as to allow matching volatile MEMs.
4890         (m32c_nonimmediate_operand): Likewise.
4891         (mra_operand): Allow volatiles.
4893 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
4895         PR debug/44610
4896         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
4897         address if the offset is unknown.
4899 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
4901         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
4902         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
4903         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
4904         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
4905         to ia64_start_function. Invoke it.
4906         * config/ia64/ia64.c (ia64_start_function): Call new function
4907         dwarf2out_vms_debug_main_pointer.
4909 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4911         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
4912         statements computing the true predicate.
4914 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4916         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
4917         to boolean_true_node.
4918         (reset_bb_predicate): New.
4919         (predicate_bbs): Call reset_bb_predicate.
4921 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4923         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
4924         (tree_if_conversion): Returns true when something has been changed.
4925         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
4926         changed something.
4928 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4930         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
4931         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
4932         * tree-if-conv.c: Include dbgcnt.h.
4933         (tree_if_conversion): Use if_conversion_tree to count the number of
4934         if-convertible loops.
4936 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
4938         * common.opt (fprefetch-loop-arrays): Re-define
4939         -fprefetch-loop-arrays as a tri-state option with the initial
4940         value of -1.
4941         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
4942         pass only when flag_prefetch_loop_arrays > 0.
4943         * toplev.c (process_options): Note that, with tri-states,
4944         flag_prefetch_loop_arrays>0 means prefetching is enabled.
4945         * config/i386/i386.c (override_options): Enable prefetching at -O3
4946         for a set of CPUs that sw prefetching is helpful.
4947         (software_prefetching_beneficial_p): New.  Return TRUE if software
4948         prefetching is beneficial for the given CPU.
4950 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
4952         PR rtl-optimization/44326
4953         * implicit-zee.c (find_removable_zero_extends): Replace
4954         INSN_P with NONDEBUG_INSN_P.
4956 2010-06-25  Martin Jambor  <mjambor@suse.cz>
4958         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
4959         (struct ipa_node_params): Removed the modification_analysis_done flag.
4960         (ipa_is_param_modified): Removed.
4961         (ipa_analyze_node): Declare.
4962         (ipa_compute_jump_functions): Remove declaration.
4963         (ipa_count_arguments): Likewise.
4964         (ipa_detect_param_modifications): Likewise.
4965         (ipa_analyze_params_uses): Likewise.
4966         * ipa-prop.c (struct param_analysis_info): New type.
4967         (visit_store_addr_for_mod_analysis): Removed.
4968         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
4969         moved down in the file.
4970         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
4971         (ipa_count_arguments): Made static.
4972         (mark_modified): New function.
4973         (is_parm_modified_before_call): New function.
4974         (compute_pass_through_member_ptrs): New parameter parms_info, call
4975         is_parm_modified_before_call instead of ipa_is_param_modified.
4976         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
4977         it to compute_pass_through_member_ptrs.
4978         (ipa_compute_jump_functions): New parameter parms_info, pass it to
4979         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
4980         on the callee if it is analyzed.  Made static.
4981         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
4982         is_parm_modified_before_call instead of ipa_is_param_modified.
4983         (ipa_analyze_call_uses): New parameter parms_info, pass it to
4984         ipa_analyze_indirect_call_uses.
4985         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
4986         ipa_analyze_call_uses.
4987         (ipa_analyze_params_uses): New parameter parms_info, pass it to
4988         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
4989         (ipa_analyze_node): New function.
4990         (ipa_print_node_params): Do not dump the modified flag.
4991         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
4992         it.  Do not stream the modified parameter flag.
4993         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
4994         it.  Do not stream the modified parameter flag.
4995         * ipa-cp.c (ipcp_analyze_node): Removed.
4996         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
4997         with only a call to ipa_analyze_node.
4998         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
4999         node with only a call to ipa_analyze_node.
5001 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5003         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
5005 2010-06-25  Jan Hubicka  <jh@suse.cz>
5007         * tree-pass.h (pass_split_functions): Declare.
5008         * opts.c (decode_options): Enable function splitting at -O2
5009         * timevar.def (TV_IPA_FNSPLIT): New macro.
5010         * ipa-split.c: New file.
5011         * common.opt (-fpartial-inlining): New flag.
5012         * Makefile.in (ipa-split.o): New object file.
5013         * passes.c (init_optimization_passes): Add ipa-split.
5014         * params.def (partial-inlining-entry-probability): New parameters.
5015         * doc/invoke.texi (-fpartial-inlining): New.
5017 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5019         PR 44665
5020         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
5021         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
5022         (gimplify_expr): Likewise.
5024 2010-06-25  Martin Jambor  <mjambor@suse.cz>
5026         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
5027         statements instead of bailing out on them.
5028         (ipa_analyze_indirect_call_uses): Do not require that loads from the
5029         parameter are in the same BB as the condition.  Update comments.
5031 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
5033         PR middle-end/43866
5034         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
5035         true or always false, return NULL_TREE.
5036         (tree_unswitch_single_loop): Optimize conditions even when reaching
5037         max-unswitch-level parameter.  If num > 0, optimize first all conditions
5038         using entry checks, then do still reachable block discovery and consider
5039         only conditions in still reachable basic blocks in the loop.
5041         PR tree-optimization/44539
5042         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
5043         the call doesn't have LHS, but has VDEF.
5045 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
5047         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
5048         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
5049         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
5050         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
5051         * system.h (MODIFY_TARGET_NAME): Poison.
5053 2010-06-25  Alan Modra  <amodra@gmail.com>
5055         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
5056         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
5057         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5058         CMODEL_LARGE as default.
5059         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
5060         (offsettable_ok_by_alignment): Delete.
5061         (rs6000_emit_move): Remove mcmodel=medium optimization.
5063 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
5065         With large parts from Jim Wilson:
5066         PR target/43902
5067         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
5068         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
5069         * optabs.c (optab_for_tree_code): Likewise.
5070         (expand_widen_pattern_expr): Likewise.
5071         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
5072         out of execute_optimize_widening_mul.
5073         (convert_plusminus_to_widen): New function.
5074         (execute_optimize_widening_mul): Use the two new functions.
5075         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
5076         Remove code to generate widening multiply-accumulate.  Add support
5077         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
5078         * gimple-pretty-print.c (dump_ternary_rhs): New function.
5079         (dump_gimple_assign): Call it when appropriate.
5080         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
5081         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5082         (expand_gimple_stmt_1): Likewise.
5083         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
5084         WIDEN_MULT_MINUS_EXPR.
5085         * tree-ssa-operands.c (get_expr_operands): Likewise.
5086         * tree-inline.c (estimate_operator_cost): Likewise.
5087         * gimple.c (extract_ops_from_tree_1): Renamed from
5088         extract_ops_from_tree.  Add new arg for a third operand; fill it.
5089         (gimple_build_assign_stat): Support operations with three operands.
5090         (gimple_build_assign_with_ops_stat): Likewise.
5091         (gimple_assign_set_rhs_from_tree): Likewise.
5092         (gimple_assign_set_rhs_with_ops_1): Renamed from
5093         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
5094         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
5095         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
5096         WIDEN_MULT_MINUS_EXPR.
5097         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
5098         (extract_ops_from_tree_1): Adjust declaration.
5099         (gimple_assign_set_rhs_with_ops_1): Likewise.
5100         (gimple_build_assign_with_ops): Pass NULL for last operand.
5101         (gimple_build_assign_with_ops3): New macro.
5102         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
5103         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
5104         functions.
5105         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
5106         (verify_gimple_assign): Call it.
5107         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
5108         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
5109         functions for dealing with three-operand statements.
5110         * tree.c (commutative_ternary_tree_code): New function.
5111         * tree.h (commutative_ternary_tree_code): Declare it.
5112         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
5113         ternary statements.
5114         (gimple_assign_nonzero_warnv_p): Likewise.
5115         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
5116         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
5117         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
5118         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
5119         (struct hashtable_expr): New member ternary in the union.
5120         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
5121         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
5122         (iterative_hash_hashable_expr): Likewise.
5123         (print_expr_hash_elt): Handle EXPR_TERNARY.
5124         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
5125         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
5126         statements.  Handle GIMPLE_TERNARY_RHS.
5128 2010-06-25  Jan Hubicka  <jh@suse.cz>
5130         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
5132 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
5134         PR c/44517
5135         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
5136         parameters are not good.
5137         (c_parser_parameter_declaration): Error unknown type name if the type
5138         name can't start declaration specifiers.
5140 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
5142         * gcc.c (translate_options): Don't mention +e in comment.
5143         (process_command): Don't handle +e specially.
5145 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
5147         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
5149         * ira-build.c (merge_hard_reg_conflicts): New function.
5150         (create_cap_allocno, copy_info_to_removed_store_destinations,
5151         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
5152         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
5153         (remove_unnecessary_allocnos, remove_low_level_allocnos)
5154         copy_nifo_to_removed_store_destination): Use them.
5155         * ira-lives.c (make_hard_regno_born): New function, split out of
5156         make_regno_born.
5157         (make_allocno_born): Likewise.
5158         (make_hard_regno_dead): New function, split out of make_regno_dead.
5159         (make_allocno_dead): Likewise.
5160         (inc_register_pressure): New function, split out of set_allocno_live.
5161         (dec_register_pressure): New function, split out of clear_allocno_live.
5162         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
5163         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
5164         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
5165         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
5166         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
5167         mark_pseudo_regno_live.
5168         (process_bb_node_lives): Use mark_pseudo_regno_live,
5169         make_hard_regno_born and make_allocno_dead.
5170         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
5171         set_allocno_live, clear_allocno_live): Delete functions.
5173         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
5174         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
5175         functions.
5176         (ira_flattening): Use ira_parent_allocno.
5177         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
5178         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
5180         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
5181         statement.
5183         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
5184         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
5185         minmax_set_iter_cond, minmax_set_iter_next,
5186         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
5187         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
5188         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
5189         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
5190         uses changed.
5192         * ira-int.h (struct live_range, live_range_t): Renamed from struct
5193         ira_allocno_live_range and allocno_live_range_t; all uses changed.
5194         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
5195         All uses changed.
5197 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
5199         * thumb2.md (thumb2_tlobits_cbranch): Delete.
5200         (peephole2 to convert zero_extract/compare of single bit to
5201          lshift/compare): New.
5203 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
5205         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
5206         recursive call and call to 'int_const_binop'.
5207         (build_range_check, fold_cond_expr_with_comparison, unextend,
5208         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
5209         multiple_of_p): Adjust call to const_binop.
5211 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
5213         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
5214         determine size of XFmode operand.
5215         (XFmode extended DFmode push splitter): Ditto.
5216         (XFmode extended SFmode push splitter): Ditto.
5218 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
5220         PR target/44588
5221         * config/i386/i386.md (extract_code): New.
5222         (<u>divmodqi4): Likewise.
5223         (divmodhiqi3): Likewise.
5224         (udivmodhiqi3): Likewise.
5225         (<u>divqi3): Remvoved.
5227 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
5229         PR middle-end/44492
5230         * recog.h (struct recog_data): Add is_asm field.
5231         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
5232         present in constraints of inline-asm operand and memory operand
5233         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
5234         (extract_insn): Initialize recog_data.is_asm.
5235         * doc/md.texi (Constraints): Document operand side-effect rules.
5237 2010-06-24  Andi Kleen  <ak@linux.intel.com>
5239         * c-parser.c (c_parser_conditional_expression): Call
5240         warn_for_omitted_condop.
5241         * doc/invoke.texi: Document omitted condop warning.
5243 2010-06-24  Nick Clifton<nickc@redhat.com>
5245         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
5246         insn in the sequence is a jump insn before setting its label.
5248 2010-06-24  Alan Modra  <amodra@gmail.com>
5250         * collect2.c (main): Match exactly --version and --help.
5252 2010-06-24  DJ Delorie  <dj@redhat.com>
5254         * config/m32c/m32c-pragma.c: Don't include rtl.h.
5256 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
5258         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
5259         using X87MODEF mode iterator.
5260         (pushsf splitter): Macroize splitter using P mode iterator.
5261         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
5262         mode iterator.
5264         (*movxf_internal): Rename from *movxf_integer.
5265         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
5266         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
5267         (*movdf_internal): Rename from *movdf_integer.
5268         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
5269         (*movsf_internal): Rename from *movdf_1.
5271 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
5273         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
5274         (const_gimple_seq_node): Removed typedefs.
5276         * gimple.h (gimple_seq_node_d, gimple_seq_node)
5277         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
5279 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
5281         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
5282         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
5283         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
5284         and CODE_FOR_vec_extract_lo_v4df.
5286         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
5287         Changed to define_insn_and_split.
5288         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
5289         (vec_extract_lo_v16hi): Likewise.
5290         (vec_extract_lo_v32qi): Likewise.
5291         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
5292         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
5294 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
5296         PR target/44640
5297         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
5298         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
5299         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
5300         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
5301         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
5303         PR target/44640
5304         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
5306         PR other/44644
5307         * df-core.c (struct df): Rename to df_d.
5308         * df.h (struct df): Likewise.
5309         * dse.h (struct df): Remove forward declaration.
5310         * recog.h (struct insn_data): Rename to:
5311         (struct_insn_data_d).  Adjusted all users.
5313 2010-06-23  Arnaud Charlet  <charlet@adacore.com
5315         PR ada/22220
5316         * doc/install.texi: Update requirements to build GNAT.
5318 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
5320         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
5321         enum type.
5322         (m68k_sched_attr_opx_type): Remove unreachable return.
5323         (m68k_sched_attr_opy_type): Likewise.
5324         (m68k_sched_attr_size): Likewise.
5325         (sched_get_opxy_mem_type): Likewise.
5326         (m68k_sched_attr_op_mem): Likewise.
5328 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
5330         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
5331         new statement and adjust VDEF only if necessary.  Remove superfluous
5332         call to maybe_clean_or_replace_eh_stmt.
5333         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
5334         copy the flags.
5335         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
5336         * tree-inline.c (copy_bb): ...and not there.
5338 2010-06-22  Cary Coutant  <ccoutant@google.com>
5340         * dwarf2out.c (is_nested_in_subprogram): New function.
5341         (should_move_die_to_comdat): Use it.
5342         (copy_ancestor_tree): Don't mark DIEs here.
5343         (copy_decls_walk): Start walk from root of newly-added tree;
5344         mark DIEs here instead.
5346 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
5348         * config/i386/i386.md (unit): Also check sseishft1.
5350 2010-06-22  Jan Hubicka  <jh@suse.cz>
5352         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
5353         enabled.
5355 2010-06-22  Jan Hubicka  <jh@suse.cz>
5357         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
5358         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
5359         Return true if something changed.
5360         * df.h (df_confluence_function_n): Return bool.
5361         * df-core.c (df_worklist_propagate_forward,
5362         df_worklist_propagate_backward): Track changes and ages.
5363         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
5364         track ages.
5365         * dse.c (dse_confluence_n): Return always true.
5367 2010-06-22  Jan Hubicka  <jh@suse.cz>
5369         * bitmap.c (bitmap_clear_bit): Micro optimize.
5371 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
5373         * config/i386/i386.md (SWI1248x): New mode iterator.
5374         (SWI48x): Ditto.
5375         (SWI12): Ditto.
5376         (SWI24): Ditto.
5378         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
5379         SWI1248x mode iterator.
5380         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
5381         using SWI124 mode iterator.
5382         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
5383         mode iterator.
5384         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
5385         *pushdi2_prologue_rex64 using P mode iterator.
5386         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
5387         using SWI48 mode iterator.
5388         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
5389         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
5390         using SWI1248x mode iterator.
5391         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
5392         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
5393         SWI48 mode iterator.
5394         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
5395         iterator.
5396         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
5397         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
5398         SWI12 mode iterator.
5399         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
5400         SWI12 mode iterator.
5401         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
5402         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
5403         SWI24 mode iterator.
5404         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
5405         SWI48 mode iterator.
5406         (mov<mode>_insn_1): New expander.
5407         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
5408         using SWI48x mode iterator.
5410         (*movoi_internal_avx): Rename from *movoi_internal.
5411         (*movti_internal_rex64): Rename from *movti_rex64.
5412         (*movti_internal_sse): Rename from *movti_sse.
5413         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
5414         (*movdi_internal): Rename from *movdi_2.
5415         (*movsi_internal): Rename from *movsi_1.
5416         (*movhi_internal): Rename from *movhi_1.
5417         (*movqi_internal): Rename from *movqi_1.
5419         (insv): Update the call to gen_movsi_insv_1 for rename.
5420         * config/i386/i386.c (promote_duplicated_reg): Ditto.
5422 2010-06-22  Jan Hubicka  <jh@suse.cz>
5424         * passes.c (execute_function_todo): Move call of statistics_fini_pass
5425         to ...
5426         (execute_todo) ... this one.
5428 2010-06-22  Alan Modra  <amodra@gmail.com>
5430         PR target/44364
5431         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5432         * caller-save.c (insert_restore, insert_save): Use non-validate
5433         form of adjust_address.
5435 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5437         PR target/39690
5438         * config/pa/pa.c (override_options): Disable
5439         -freorder-blocks-and-partition.
5441 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5443         PR target/44615
5444         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
5446         * config/i386/i386.md (type): Add sseishft1
5448         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
5449         (ppro_insn_load): Likewise.
5450         (ppro_insn_store): Likewise.
5451         (ppro_insn_both): Likewise.
5453         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
5454         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
5455         for type.
5456         (*vec_extractv2di_1_avx): Likewise.
5457         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
5458         type.  Remove atom_unit.
5459         (*vec_extractv2di_1_sse2): Likewise.
5461 2010-06-21  DJ Delorie  <dj@redhat.com>
5463         * diagnostic.h (diagnostic_classification_change_t): New.
5464         (diagnostic_context): Add history and push/pop list.
5465         (diagnostic_push_diagnostics): Declare.
5466         (diagnostic_pop_diagnostics): Declare.
5467         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
5468         from pragmas in a history chain instead of the global table.
5469         (diagnostic_push_diagnostics): New.
5470         (diagnostic_pop_diagnostics): New.
5471         (diagnostic_report_diagnostic): Scan history chain to find state
5472         of diagnostics as of the diagnostic location.
5473         * opts.c (set_option): Pass UNKNOWN_LOCATION to
5474         diagnostic_classify_diagnostic.
5475         (enable_warning_as_error): Likewise.
5476         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
5477         use in the history chain.
5478         * doc/extend.texi: Document pragma GCC diagnostic changes.
5480 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
5482         * dwarf2out.c (add_linkage_name): New function.  Don't add
5483         anything to DW_TAG_member DIEs.
5484         (add_name_and_src_coords_attributes): Use it.
5485         (gen_variable_die): Call it for C++ static data members if
5486         specification is DW_TAG_member.
5488         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
5489         C++ char16_t and char32_t.
5491         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
5492         * genattrtab.c: Include vecprim.h.
5493         (cached_attrs, cached_attr_count, attrs_seen_once,
5494         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
5495         attrs_cached_after): New variables.
5496         (find_attrs_to_cache): New function.
5497         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
5498         (write_test_expr): Add attrs_cached argument, return it too,
5499         attempt to cache non-const attributes used more than once in
5500         a single case handling.
5501         (write_attr_get): Use find_attrs_to_cache, for caching candidates
5502         emit cached_* variables.  Adjust write_attr_set callers.
5503         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
5504         to find attributes that should be cached in this block.  Adjust
5505         write_test_expr callers.
5506         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
5507         callers.
5508         (make_automaton_attrs): Adjust write_test_expr caller.
5510         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
5511         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
5512         (make_automaton_attrs): If find_tune_attr returns non-NULL,
5513         write separate internal_dfa_insn_code_* and insn_default_latency_*
5514         functions for each attribute's value and emit init_sched_attrs
5515         function and function pointers.
5516         * genattr.c (const_attrs, reservations): New variables.
5517         (gen_attr): Add const attributes to const_attrs vector.
5518         (check_tune_attr, find_tune_attr): New functions.
5519         (main): Add reservations to reservations vector.  If find_tune_attr
5520         returns true, add prototype for init_sched_attrs and make
5521         internal_dfa_insn_code and insn_default_latency function pointers,
5522         otherwise define init_sched_attrs as dummy macro.
5523         * cfgexpand.c: Include insn-attr.h.
5524         (gimple_expand_cfg): Call init_sched_attrs.
5526         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
5528         PR target/44575
5529         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
5530         va_arg from a set of register save slots into a temporary,
5531         if the container is bigger than type size, do the copying
5532         using smaller mode or using memcpy.
5534         PR bootstrap/44426
5535         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
5536         prototype.
5537         (sel_print_to_dot): Remove macro.
5538         (sel_print): Likewise.  New prototype.
5539         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
5540         (sel_print): New function.
5542 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5544         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
5545         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
5547 2010-06-21  Nick Clifton  <nickc@redhat.com>
5549         * config/rx/rx.h (PTRDIFF_TYPE): Define.
5550         (SMALL_REGISTER_CLASS): Define (to zero).
5551         (PRINT_OPERAND): Delete.
5552         (PRINT_OPERAND_ADDRESS): Delete.
5553         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
5554         (rx_print_operand_address): Delete prototype.
5555         * config/rx/rx.c (rx_print_operand): Make static.
5556         Allow %H and %L to handle CONST_DOUBLEs.
5557         (rx_print_operand_address): Make static.
5558         (rx_gen_move_template): Rename local variable 'template' to
5559         out_template.
5560         (rx_function_arg): Do not pass unknown sized objects in registers.
5561         (TARGET_PRINT_OPERAND): Define.
5562         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5564 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5566         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
5568 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
5570         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
5571         stack-alignment for simple leaf-functions.
5573 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
5575         * doc/install.texi: Document bootstrap-lto.
5577 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
5579         PR debug/44248
5580         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
5581         (input_function): Drop them here, if VTA is disabled.
5583 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
5585         PR target/44546
5586         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
5587         New predicate.
5588         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
5589         ix86_swapped_fp_comparsion_operator instead of
5590         ix86_fp_comparison_operator.
5592         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
5593         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
5594         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
5595         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
5596         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
5597         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
5599 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
5601         PR other/32998
5602         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
5603         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
5604         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
5605         (decode_cmdline_option): Update for this return value.  Set
5606         orig_option_with_args_text field.  Set arg field for unknown
5607         options.  Make static.
5608         (decode_cmdline_options_to_array): New.
5609         (prune_options): Update handling of find_opt return value.
5610         * opts.c (read_cmdline_option): Take decoded option.  Return void.
5611         (read_cmdline_options): Take decoded options.
5612         (decode_options): Add parameters for decoded options.  Use
5613         decode_cmdline_options_to_array.  Use decoded options for -O
5614         scan.  Use integral_argument for -O parameters.  Update call to
5615         read_cmdline_options.
5616         (enable_warning_as_error): Update handling of find_opt return value.
5617         * opts.h: Update comment on unknown options.
5618         (struct cl_decoded_option): Update comments on opt_index and arg.
5619         Add orig_option_with_args_text.
5620         (decode_cmdline_option): Remove.
5621         (decode_cmdline_options_to_array): Declare.
5622         (decode_options): Update prototype.
5623         * toplev.c (save_argv): Remove.
5624         (save_decoded_options, save_decoded_options_count): New.
5625         (read_integral_parameter): Remove.
5626         (print_switch_values): Use decoded options.
5627         (toplev_main): Don't set save_argv.  Update call to decode_options.
5628         * toplev.h (read_integral_parameter): Remove.
5629         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
5631 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
5633         PR target/44072
5634         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
5635         immediate.
5636         * constraints.md (Pw, Px): New constraints.
5637         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
5639 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
5641         * config/i386/sse.md (fma4modesuffixf4): Removed.
5642         (ssemodesuffixf2s): Likewise.
5643         (ssemodesuffixf4): Likewise.
5644         (ssemodesuffixf2c): Likewise.
5645         (ssescalarmodesuffix2s): Likewise.
5646         (avxmodesuffixf2c): Likewise.
5647         (ssemodesuffix): New.
5648         (ssescalarmodesuffix): Likewise.
5649         Update patterns with ssemodesuffix and ssescalarmodesuffix.
5651 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
5653         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
5655 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5657         * stor-layout.c (debug_rli): Remove unused local variables.
5659 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
5661         PR rtl-optimization/40900
5662         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
5663         original expression for later reuse.
5664         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
5665         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
5667 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
5669         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
5670         double_int_fits_in_uhwi_p): Implement as static inline.
5671         (double_int_xor): New inline function.
5672         (double_int_lrotate, double_int_rrotate, double_int_max,
5673         double_int_umax, double_int_smax, double_int_min, double_int_umin,
5674         double_int_smin): Declare.
5675         (lrotate_double, rrotate_double): Remove declaration.
5676         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
5677         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
5678         (double_int_lrotate, double_int_rrotate, double_int_max,
5679         double_int_umax, double_int_smax, double_int_min, double_int_umin,
5680         double_int_smin): New function.
5681         * fold-const.c (int_const_binop): Clean up, use double_int_*
5682         functions.
5683         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
5684         double_int_* and immed_double_int_const functions.
5686 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
5688         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
5689         * function.c (types_used_by_cur_var_decl): Likewise.
5690         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
5692 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
5694         * tree.h (record_layout_info): Change type of pending_statics field
5695         to a VEC.
5696         * stor-layout.c (start_record_layout): Store NULL into
5697         pending_statics.
5698         (debug_rli): Call debug_vec_tree instead of debug_tree.
5699         (place_field): Likewise.
5700         (finish_record_layout): Likewise.
5702 2010-06-18  Alan Modra  <amodra@gmail.com>
5704         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
5706 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5708         PR target/43740
5709         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
5710         for SET source operand from SET destination operand.
5712 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
5714         PR rtl-optimization/39871
5715         * reload1.c (init_eliminable_invariants): For flag_pic, disable
5716         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
5717         (function_invariant_p): Rule out a plus of frame or arg pointer with
5718         a SYMBOL_REF.
5719         * ira.c (find_reg_equiv_invariant_const): Likewise.
5721 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
5723         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
5724         print_operand_address and puts to output the operand for CONST.
5726 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
5728         PR debug/44572
5729         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
5730         hook.
5732 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5734         * v850-protos.h (print_operand): Delete.
5735         (print_operand_address): Delete.
5736         * v850.h (PRINT_OPERAND): Delete.
5737         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5738         (PRINT_OPERAND_ADDRESS): Delete.
5739         * v850.c (print_operand_address): Rename to...
5740         (v850_print_operand_address): ...this.  Make static. Call
5741         v850_print_operand.
5742         (print_operand): Rename to...
5743         (v850_print_operand): ...this.  Make static.  Call
5744         v850_print_operand_address.
5745         (v850_print_operand_punct_valid_p): New function.
5746         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5747         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5749 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5751         * config/sh/sh-protos.h (print_operand): Delete.
5752         (print_operand_address): Delete.
5753         * config/sh/sh.h (PRINT_OPERAND): Delete.
5754         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5755         (PRINT_OPERAND_ADDRESS): Delete.
5756         * config/sh/sh.c (sh_print_operand_address): Make static.
5757         (sh_print_operand): Make static.  Call sh_print_operand_address
5758         and sh_print_operand.
5759         (sh_print_operand_punct_valid_p): New function.
5760         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5761         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5763 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5765         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
5766         (mcore_print_operand_address): Delete.
5767         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
5768         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5769         (PRINT_OPERAND_ADDRESS): Delete.
5770         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
5771         (mcore_print_operand): Make static.
5772         (mcore_print_operand_punct_valid_p): New function.
5773         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
5774         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5776 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5778         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
5779         (print_operand_address): Delete.
5780         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
5781         (PRINT_OPERAND_ADDRESS): Delete.
5782         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
5783         static.
5784         (m68hc11_print_operand): Make static.
5785         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5787 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5789         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
5790         (m32r_print_operand_address): Delete.
5791         * config/m32r/m32r.h (m32r_punct_chars): Delete.
5792         (PRINT_OPERAND): Delete.
5793         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5794         (PRINT_OPERAND_ADDRESS): Delete.
5795         * config/m32r/m32r.c (m32r_punct_chars): Make static.
5796         (m32r_print_operand_address): Make static.
5797         (m32r_print_operand): Make static.
5798         (m32r_print_operand_punct_valid_p): New function.
5799         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5800         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5802 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5804         * config/iq2000/iq2000-protos.h (print_operand): Delete.
5805         (print_operand_address): Delete.
5806         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
5807         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5808         (PRINT_OPERAND_ADDRESS): Delete.
5809         (iq2000_print_operand_punct): Delete.
5810         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
5811         (iq2000_print_operand_address): Make static.
5812         (iq2000_print_operand): Make static.
5813         (iq2000_print_operand_punct_valid_p): New function.
5814         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5815         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5817 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5819         * config/frv/frv-protos.h (frv_print_operand): Delete.
5820         (frv_print_operand_address): Delete.
5821         * config/frv/frv.h (PRINT_OPERAND): Delete.
5822         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5823         (PRINT_OPERAND_ADDRESS): Delete.
5824         * config/frv/frv.c (frv_print_operand_address): Make static.
5825         (frv_print_operand): Make static.
5826         (frv_print_operand_punct_valid_p): New function.
5827         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5828         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5830 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5832         * tree.h (vec_member): Declare.
5833         * tree.c (vec_member): Define.
5835 2010-06-17  Richard Guenther  <rguenther@suse.de>
5837         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
5838         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
5840 2010-06-17  Richard Guenther  <rguenther@suse.de>
5842         * tree-inline.c (declare_return_variable): Remove bogus code.
5844 2010-06-17  Richard Guenther  <rguenther@suse.de>
5846         * gimplify.c (gimplify_bind_expr): Always promote complex
5847         and vector variables to registers if possible.
5849 2010-06-17  Richard Guenther  <rguenther@suse.de>
5851         * expr.c (get_inner_reference): Use double_int for bit_offset
5852         calculation.
5854 2010-06-16  DJ Delorie  <dj@redhat.com>
5856         * common.opt (-fstrict-volatile-bitfields): new.
5857         * doc/invoke.texi: Document it.
5858         * fold-const.c (optimize_bit_field_compare): For volatile
5859         bitfields, use the field's type to determine the mode, not the
5860         field's size.
5861         * expr.c (expand_assignment): Likewise.
5862         (get_inner_reference): Likewise.
5863         (expand_expr_real_1): Likewise.
5864         * expmed.c (store_fixed_bit_field): Likewise.
5865         (extract_bit_field_1): Likewise.
5866         (extract_fixed_bit_field): Likewise.
5868 2010-06-16  Richard Guenther  <rguenther@suse.de>
5870         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
5872 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
5874         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
5875         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
5876         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
5877         * debug.c: Likewise.
5878         * sdbout.c: Likewise.
5879         * vmsdbgout.c: Likewise.
5880         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
5881         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
5882         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
5883         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
5884         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
5885         * dwarf2out.c (dw_fde_struct): New fields
5886         dw_fde_vms_{end,begin}_prologue.
5887         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
5888         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
5889         (dwarf2out_vms_end_prologue): New function.
5890         (dwarf2out_vms_begin_epilogue): New function.
5891         (dw_val_struct): New value dw_val_class_vms_delta.
5892         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
5893         begin_epilogue for VMS.
5894         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
5895         new static functions.
5896         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
5897         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
5898         static functions.
5899         (print_die): New case dw_val_class_vms_delta.
5900         (attr_checksum): Likewise.
5901         (same_dw_val_p: Likewise.
5902         (size_of_die): Likewise.
5903         (value_format): Likewise.
5904         (output_die): Likewise.
5905         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
5906         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
5907         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
5908         dwarf2out_cfi_begin_epilogue
5909         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
5911 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
5913         * config/cris/cris-protos.h (cris_print_operand): Delete.
5914         (cris_print_operand_address): Delete.
5915         * config/cris/cris.h (PRINT_OPERAND): Delete.
5916         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5917         (PRINT_OPERAND_ADDRESS): Delete.
5918         * config/cris/cris.c (cris_print_operand_address): Make static.
5919         (cris_print_operand): Make static.
5920         (cris_print_operand_punct_valid_p): New function.
5921         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5922         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5924 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
5926         * config/arm/arm-protos.h (arm_print_operand): Delete.
5927         (arm_print_operand_address): Delete.
5928         * config/arm/arm.h (PRINT_OPERAND): Delete.
5929         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5930         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
5931         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
5932         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
5933         (arm_print_operand): Make static.
5934         (arm_print_operand_punct_valid_p): New function.
5935         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5936         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5938 2010-06-16  Nick Clifton  <nickc@redhat.com>
5940         * config/rx/constraints.md (NEGint4): New constraint.
5941         * config/rx/rx.md (attr cc): Add set_zsc.
5942         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
5943         initialised.
5944         (cmpsf): Likewise.
5945         (call_internal): Clobber the cc0 register.
5946         (call_value_internal): Likewise.
5947         (cstoresi4): Likewise.
5948         (movsieq): Likewise.
5949         (movsine): Likewise.
5950         (addsi3): Add alternative to handle small negative constants.
5951         (sunsi3): Likewise.
5952         (addsi3): Do not set the O bit in the cc0 register.
5953         (adddi3): Likewise.
5954         (subsi3): Likewise.
5955         (subdi3): Likewise.
5956         (andsi3): Reorder alternatives to prefer shorter forms.
5957         (mulsi3): Likewise.
5958         (iorsi3): Likewise.
5959         (negsi2): Note that the cc0 flags are set.
5960         (rotlsi3): Note that only the Z and S bits are set in cc0.
5961         (lshrsi3): Likewise.
5962         (ashlsi3): Likewise.
5963         (subsf3): Use %Q for the MEM operand.
5964         (fix_truncsfsi2): Likewise.
5965         (floatsisf2): Likewise.
5966         (bitset): Remove early clobber from destination.
5967         (bitset_in_memory): Likewise.
5968         (lrintsf2): Clobber the cc0 register.
5969         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
5970         (rx_print_operand): Handle %N.
5972 2010-06-16  Jan Hubicka  <jh@suse.cz>
5974         * df-core.c (df_compact_blocks): Free problem_temps vector.
5976 2010-06-16  Martin Jambor  <mjambor@suse.cz>
5978         PR tree-optimization/43905
5979         * tree-sra.c: Include tree-inline.h.
5980         (create_abstract_origin): Removed.
5981         (modify_function): Version the call graph node instead of creating
5982         abstract origins and dealing with same_body aliases.
5983         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
5984         function is versionable.
5985         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
5987 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
5989         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
5990         (CHOOSE_DYNAMIC_LINKER): Update.
5992 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
5994         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
5995         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
5996         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
5997         *prefetch_3dnow_rex.
5999 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
6001         * target.h (struct asm_out):Add declare_constant_name field.
6002         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6003         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
6004         * output.h (default_asm_declare_constant_name): Declare.
6005         (assemble_label): Update prototype.
6006         * varasm.c (assemble_constant_contents): Use
6007         targetm.asm_out.declare_constant_name target hook.
6008         (assemble_label): Add 'file' argument.
6009         (default_asm_declare_constant_name): New function.
6010         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
6011         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
6012         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
6014         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
6015         * config/darwin.c (darwin_asm_declare_constant_name): New function.
6016         (machopic_output_indirection): Update assemble_label argument list.
6017         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
6018         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6020 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
6022         PR middle-end/44391
6023         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6024         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
6026 2010-06-15  Richard Guenther  <rguenther@suse.de>
6028         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
6030 2010-06-15  Paul Brook  <paul@codesourcery.com>
6032         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
6033         hard-float ABI.
6035 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
6037         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
6038         don't get a vector type for output.
6040 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
6042         PR fortran/44536
6043         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
6044         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
6045         (LANG_HOOKS_DECLS): Add it.
6046         * gimplify.c (omp_notice_variable): Call
6047         lang_hooks.decls.omp_report_decl.
6049 2010-06-15  Martin Jambor  <mjambor@suse.cz>
6051         PR lto/44464
6052         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
6053         on the newly dead SSA name.
6055 2010-06-15  Alan Modra  <amodra@gmail.com>
6057         * doc/invoke.texi: Add mcmodel to powerpc options.
6058         * configure.ac: Add HAVE_LD_LARGE_TOC test.
6059         * configure: Regenerate.
6060         * config.in: Regenerate.
6061         * config/rs6000/linux64.opt (mcmodel): New.
6062         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
6063         (TARGET_CMODEL, SET_CMODEL): Define.
6064         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
6065         select CMODEL_MEDIUM default.
6066         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
6067         (TARGET_CMODEL): Define default.
6068         * config/rs6000/rs6000.c (cmodel): New variable.
6069         (rs6000_explicit_options): Add cmodel field.
6070         (rs6000_handle_option): Handle -mcmodel.
6071         (create_TOC_reference): Add largetoc_reg param.  Generate high,
6072         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
6073         (rs6000_delegitimize_address): Recognise new toc reference rtl
6074         and minimal-toc rtl.
6075         (rs6000_legitimize_reload_address): Handle new toc references.
6076         (print_operand_address): Handle legitimate_constant_pool_address_p
6077         match before lo_sum.
6078         (rs6000_eliminate_indexed_memrefs): Tidy.
6079         (rs6000_emit_move): Tweak threshold for inlining constants.
6080         Keep rs6000_emit_allocate_stack large stack frame offsets
6081         loaded into r0 inline.
6082         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
6083         (tocrel_base, tocrel_offset): New variables.
6084         (toc_relative_expr_p): Set them here.
6085         (print_operand_address): Skip over any offset on constant pool address.
6086         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
6087         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
6088         (offsettable_ok_by_alignment): New function.
6089         (rs6000_emit_move): Address suitably aligned local symbol_refs
6090         relative to the toc pointer for -mcmodel=medium.
6091         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
6092         strict param.  Allow lo_sum version of addressing.  Verify reg
6093         used for -mminimal-toc and -mcmodel != small.  Update all callers.
6094         * config/rs6000/constraints.md: Update for above change.
6095         * config/rs6000/predicates.md: Likewise.
6096         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
6097         code.
6098         (tls_gd): Split for -mcmodel=medium/large.
6099         (tls_gd_high, tls_gd_low): New.
6100         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
6101         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
6102         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
6103         (largetoc_high, largetoc_low): New.
6104         (cmptf_internal2): Add clobber.
6105         * config/rs6000/rs6000-protos.h: Update.
6107 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
6109         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
6110         true if no prefetch is going to be generated for a given group.
6111         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
6112         estimate the prefetch_count.
6113         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
6114         prefetch count by considering the unroll_factor and prefetch_mod
6115         for is_loop_prefetching_profitable.
6117 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
6119         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
6120         anything if the argument is not a MEM.
6122 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
6124         PR debug/43650
6125         PR debug/44181
6126         PR debug/44247
6127         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
6128         debug stmts.
6129         (canonicalize_loop_ivs): Likewise.
6131 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
6133         PR debug/43656
6134         * haifa-sched.c (setup_insn_reg_pressure_info,
6135         update_register_pressure): Reject debug insns.
6136         (ready_sort): Don't setup reg pressure for debug insns.
6137         (schedule_insn): Don't update reg pressure for debug insns.
6139 2010-06-14  Richard Guenther  <rguenther@suse.de>
6141         * lto-streamer.c (cached_bp): Remove.
6142         (bitpack_delete): Likewise.
6143         (bitpack_create): Likewise.
6144         (bp_get_next_word): Likewise.
6145         (bp_pack_value, bp_unpack_value): Move ...
6146         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
6147         Re-implement.
6148         (struct bitpack_d): Likewise.
6149         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
6150         New inline functions.
6151         * lto-streamer-out.c (lto_output_bitpack): Remove.
6152         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
6153         (pack_value_fields): Adjust.
6154         (lto_write_tree): Likewise.
6155         (output_gimple_stmt): Likewise.
6156         (output_function): Likewise.
6157         * lto-streamer-in.c (input_gimple_stmt): Adjust.
6158         (input_function): Likewise.
6159         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
6160         (lto_input_bitpack): Remove.
6161         (lto_materialize_tree): Adjust.
6162         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
6163         * lto-cgraph.c (lto_output_edge): Adjust.
6164         (lto_output_node): Likewise.
6165         (lto_output_varpool_node): Likewise.
6166         (lto_output_ref): Likewise.
6167         (input_node): Likewise.
6168         (input_varpool_node): Likewise.
6169         (input_ref): Likewise.
6170         (input_edge): Likewise.
6171         (output_node_opt_summary): Likewise.
6172         (input_node_opt_summary): Likewise.
6173         * ipa-pure-const.c (pure_const_write_summary): Likewise.
6174         (pure_const_read_summary): Likewise.
6175         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
6176         (ipa_read_indirect_edge_info): Likewise.
6177         (ipa_write_node_info): Likewise.
6178         (ipa_read_node_info): Likewise.
6180 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6182         PR target/44534
6183         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
6184         (vec_extract_lo_v16hi): Likewise.
6185         (vec_extract_lo_v32qi): Likewise.
6187 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
6189         PR bootstrap/44426
6190         * tree.h (build_call_expr): Don't define as vararg macro, instead
6191         add a prototype.
6192         * builtins.c (build_call_nofold): Remove.
6193         (expand_builtin_int_roundingfn, expand_builtin_pow,
6194         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
6195         expand_builtin_memset_args, expand_builtin_strcmp,
6196         expand_builtin_strncmp, expand_builtin_memory_chk): Use
6197         build_call_nofold_loc instead of build_call_nofold.
6198         (build_call_expr): New function.
6200         PR tree-optimization/44508
6201         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
6202         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
6203         don't eliminate trivially dead stmts.
6204         * tree-vrp.c (vrp_finalize): Pass false as last argument
6205         to substitute_and_fold.
6206         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
6207         to substitute_and_fold.
6208         * tree-ssa-ccp.c (ccp_finalize): Likewise.
6210         PR bootstrap/44509
6211         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
6213 2010-06-14  Ira Rosen  <irar@il.ibm.com>
6215         PR tree-optimization/44507
6216         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
6217         to build initial vector for BIT_AND_EXPR.
6218         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6220 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
6222         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
6223         adjust z10prop set_attr.
6225 2010-06-13  Jan Hubicka  <jh@suse.cz>
6227         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
6228         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
6229         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
6230         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
6231         datastructure checks into checking asserts.
6232         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
6233         * tree-ssa-sccvn.c (VN_INFO): Likewise.
6234         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
6235         df_ref_create_structure): Likewise.
6236         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
6237         pool_free): Use gcc_checking_assert.
6238         * alias.c (get_alias_set): Likewise.
6239         * var-tracking.c (variable_htab_free, shared_hash_copy,
6240         canonicalize_values_mark, variable_merge_over_cur): Likewise.
6241         * lto-streamer.c (bp_unpack_value): Likewise.
6243 2010-06-13  Richard Guenther  <rguenther@suse.de>
6245         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
6246         Do not stream but initialize TYPE_CANONICAL to NULL.
6247         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
6248         * gimple.c (gimple_types_compatible_p): Disregard
6249         TYPE_STRUCTURAL_EQUALITY_P.
6250         (gimple_register_type): Use TYPE_CANONICAL as cache.
6251         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
6252         before registering common types.
6253         * config/i386/i386.c (ix86_function_arg_boundary): Do not
6254         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
6255         * tree.h (TYPE_CANONICAL): Clarify documentation.
6257 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
6259         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6260         LIBCALL_VALUE): Remove macros.
6261         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
6262         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6263         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6264         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
6265         (ia64_function_value): Make static. Handle receiving the function
6266         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
6268 2010-06-12  Jan Hubicka  <jh@suse.cz>
6270         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
6271         at correct place.
6273 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
6275         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
6277 2010-06-12  Jan Hubicka  <jh@suse.cz>
6279         * df-core.c (df_clear_bb_info): New function.
6280         (df_set_blocks): bb_info is always allocated.
6281         (df_get_bb_info): Use block_info_elt_size.
6282         (df_set_bb_info): Likewise.
6283         (df_compact_blocks): Update for new block_info.
6284         (grow_bb_info): New function.
6285         * df-problems.c (df_grow_bb_info): Move to df-core.c
6286         (df_rd_set_bb_info): Remove.
6287         (df_rd_free_bb_info): Do not free block pool.
6288         (df_rd_alloc): Do not create pool, use check for
6289         obstack presence instead of NULL pointer for new blocks.
6290         (df_rd_free): DO not free alloc pool; clear block_info.
6291         (problem_RD): Add size of block info structure.
6292         (df_lr_set_bb_info): Remove.
6293         (df_lr_free_bb_info): Do not free block pool.
6294         (df_lr_alloc): Do not create pool, use check for
6295         obstack presence instead of NULL pointer for new blocks.
6296         (df_lr_free): DO not free alloc pool; clear block_info.
6297         (problem_LR): Add size of block info structure.
6298         (df_live_set_bb_info): Remove.
6299         (df_live_free_bb_info): Do not free block pool.
6300         (df_live_alloc): Do not create pool, use check for
6301         obstack presence instead of NULL pointer for new blocks.
6302         (df_live_free): DO not free alloc pool; clear block_info.
6303         (problem_LIVE): Add size of block info structure.
6304         (problem_CHAIN): Add size of block info structure.
6305         (df_byte_lr_set_bb_info): Remove.
6306         (df_byte_lr_free_bb_info): Do not free block pool.
6307         (df_byte_lr_alloc): Do not create pool, use check for
6308         obstack presence instead of NULL pointer for new blocks.
6309         (df_byte_lr_free): DO not free alloc pool; clear block_info.
6310         (problem_BYTE_LR): Add size of block info structure.
6311         (problem_NOTE): Add size of block info structure.
6312         (df_byte_MD_set_bb_info): Remove.
6313         (df_byte_MD_free_bb_info): Do not free block pool.
6314         (df_byte_MD_alloc): Do not create pool, use check for
6315         obstack presence instead of NULL pointer for new blocks.
6316         (df_byte_MD_free): DO not free alloc pool; clear block_info.
6317         (problem_BD): Add size of block info structure.
6318         * df-scan.c (df_scan_free_internal): Free block pool.
6319         (df_scan_set_bb_info): Remove.
6320         (df_scan_free_bb_info): Check for artificial_defs instead
6321         of bb_info being non-NULL.
6322         (df_scan_alloc): DO not create df_scan_block pool.
6323         (problem_SCAN): Set size of block info.
6324         (df_bb_refs_record): Do not allocate bb_info.
6325         * df.h (df_problem): Add block_info_elt_size.
6326         (struct dataflow): Change block_info to void *.
6327         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
6328         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
6329         in-line structures.
6331 2010-06-12  Jan Hubicka  <jh@suse.cz>
6333         PR tree-optimize/44485
6334         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
6335         containing use of return value of noreturn function.
6337 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
6339         * targhooks.c (default_function_value): Don't use
6340         FUNCTION_OUTGOING_VALUE.
6341         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
6342         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
6344 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
6346         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
6347         Add crtfastmath.o to extra_parts.
6348         * config/mips/crtfastmath.c: New.
6349         * config/mips/linux.h (ENDFILE_SPEC): New.
6351 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
6353         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
6354         old_type in parameter.
6355         (gcc_type_for_value): Update call to gcc_type_for_interval.
6356         (compute_type_for_level_1): Renamed compute_type_for_level.
6357         Update call to gcc_type_for_interval.
6359 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
6361         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
6362         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
6364 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
6366         * opts-common.c: Include options.h.
6367         (integral_argument): Move from opts.c.
6368         (decode_cmdline_option): New.  Based on read_cmdline_option.
6369         * opts.c (integral_argument): Move to opts-common.c.
6370         (read_cmdline_option): Move most contents to
6371         decode_cmdline_option.  Use %qs in diagnostics.
6372         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
6373         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
6374         decode_cmdline_option): New.
6376 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
6378         PR target/44481
6379         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
6380         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
6381         (partiysi2_cmp): Ditto.
6382         (*partiyhi2_cmp): Ditto.
6383         (*parityqi2_cmp): Remove.
6385 2010-06-11  Jan Hubicka  <jh@suse.cz>
6387         * bitmap.h (bmp_iter_next_bit): New.
6388         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
6390 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
6391             Eric Botcazou  <ebotcazou@adacore.com>
6393         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
6394         computed cost.
6396 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
6398         * config/i386/i386.md (unspec): New define_c_enum.
6399         (unspecv): Ditto.
6401 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
6403         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
6405 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
6407         PR middle-end/44483
6408         * tree-if-conv.c (bb_predicate_s): New struct.
6409         (bb_predicate_p): New.
6410         (bb_has_predicate): New.
6411         (bb_predicate): New.
6412         (set_bb_predicate): New.
6413         (bb_predicate_gimplified_stmts): New.
6414         (set_bb_predicate_gimplified_stmts): New.
6415         (add_bb_predicate_gimplified_stmts): New.
6416         (init_bb_predicate): New.
6417         (free_bb_predicate): New.
6418         (is_predicated): Use bb_predicate.
6419         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
6420         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
6421         before processing their successors.
6422         (clean_predicate_lists): Removed.
6423         (find_phi_replacement_condition): Use bb_predicate.
6424         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
6425         computations.
6426         (insert_gimplified_predicates): New.
6427         (combine_blocks): Call insert_gimplified_predicates.
6428         (tree_if_conversion): Call free_bb_predicate instead of
6429         clean_predicate_lists.
6431 2010-10-11  Paul Brook  <paul@codesourcery.com>
6433         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
6434         * config/arm/arm.c (all_architectures): Change v7e-m default to
6435         cortexm4.
6436         * config/arm/arm-cores.def: Add cortex-m4.
6437         * config/arm/arm-tune.md: Regenerate.
6439 2010-06-11  Jan Hubicka  <jh@suse.cz>
6441         * ipa-pure-const.c (special_builtlin_state): New function.
6442         (check_call): Use it instead of special casign BUILT_IN_RETURN.
6443         (propagate_pure_const): Use it.
6445 2010-06-11  Jan Hubicka  <jh@suse.cz>
6447         * df-problems.c (df_live_scratch): Convert to bitmap_head.
6448         (df_live_alloc): Initialize df_live_scratch when initializing
6449         problem_data.
6450         (df_live_transfer_function): Update uses of df_live_scratch.
6451         (df_live_free): Free problem_data; clear df_live_scratch before
6452         releasing the obstack.
6453         (df_md_free): Free problem data.
6455 2010-06-11  Jan Hubicka  <jh@suse.cz>
6457         * doc/invoke.texi (Wsuggest-attribute): Document.
6458         (Wmissing-noreturn): Remove.
6459         * ipa-pure-const.c (warn_function_noreturn): New function.
6460         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
6461         warn_missing_noreturn.
6462         * common.opt (Wsuggest-attribute=noreturn): New.
6463         * tree-flow.h (warn_function_noreturn): Declare.
6464         * tree-cfg.c (execute_warn_function_noreturn): Use
6465         warn_function_noreturn.
6466         (gate_warn_function_noreturn): New.
6467         (pass_warn_function_noreturn): Update.
6469 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6471         * c-typeck.c (handle_warn_cast_qual): Add loc
6472         parameter. Improve warning message.
6473         (build_c_cast): Pass location to handle_warn_cast_qual.
6475 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
6477         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
6478         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
6479         insn mnemonic.
6480         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
6482 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
6484         Fix bootstap on mips
6485         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
6486         be naming typedefs.
6488 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
6490         * system.h (helper_const_non_const_cast): New inline for
6491         gcc version <= 4.0.
6492         (CONST_CAST2): For gcc version <= 4.0 use
6493         new helper to do const/non-const casting.
6495 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6497         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
6498         * Makefile.in (OBJS-common): Include insn-enums.o.
6499         (insn-enums.o): New rule.
6500         (simple_generated_c): Add insn-enums.c.
6501         (build/genenums.o): New rule.
6502         (genprogmd): Add "enums".
6503         * genconstants.c (print_enum_type): Declare a C string array
6504         for each enum.
6505         * genenums.c: New file.
6506         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
6507         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
6508         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
6510 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6512         * doc/md.texi (define_enum_attr): Document.
6513         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
6514         * read-md.h (lookup_enum_type): Declare.
6515         * read-md.c (lookup_enum_type): New function.
6516         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
6517         * genattrtab.c (attr_desc): Add an enum_name field.
6518         (evaluate_eq_attr): Take the associated attribute as argument.
6519         Get the enum prefix from the enum_name field, if defined.
6520         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
6521         (simplify_test_exp): Pass attr to evaluate_eq_attr.
6522         (add_attr_value): New function, split out from...
6523         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
6524         (write_test_expr): Pass attr to evaluate_eq_attr.
6525         (write_attr_get): Use the enum_name as the enum tag, if defined.
6526         (write_attr_valueq): Use the enum_name as a prefix, if defined.
6527         (find_attr): Initialize enum_name.
6528         (main): Handle DEFINE_ENUM_ATTR.
6529         * gensupport.c (process_rtx): Likewise.
6530         * config/mips/mips.h (mips_tune_attr): Delete.
6531         * config/mips/mips.md (cpu): Use define_attr_enum.
6533 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6535         * doc/md.texi (define_c_enum, define_enum): Document.
6536         * read-md.h (md_constant): Add a parent_enum field.
6537         (enum_value, enum_type): New structures.
6538         (upcase_string, traverse_enum_types): Declare.
6539         * read-md.c (enum_types): New variable.
6540         (upcase_string, add_constant): New functions.
6541         (handle_constants): Don't create the hash table here.
6542         Use add_constant.
6543         (traverse_md_constants): Don't check for a null md_constants.
6544         (decimal_string, handle_enum, traverse_enum_types): New functions.
6545         (read_md_files): Initialize md_constants and md_enums.
6546         * genconstants.c (print_md_constant): Ignore info argument.
6547         Only print constants that belong to no enum.
6548         (print_enum_type): New function.
6549         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
6550         for each defined enum type.
6551         * config/mips/mips.md (processor): New define_enum.
6552         (unspec): New define_c_enum.
6553         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
6554         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
6555         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
6556         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
6557         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
6558         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
6559         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
6560         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
6561         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
6562         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
6563         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
6564         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
6565         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
6566         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
6567         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
6568         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
6569         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
6570         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
6571         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
6572         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
6573         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
6574         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
6575         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6576         (UNSPEC_RDDSP): Move to mips-dsp.md.
6577         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
6578         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
6579         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
6580         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
6581         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
6582         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
6583         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
6584         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
6585         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
6586         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
6587         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
6588         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
6589         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
6590         Moved to mips-dspr2.md.
6591         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
6592         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
6593         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
6594         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
6595         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
6596         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
6597         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6598         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6599         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6600         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6601         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6602         UNSPEC_LOONGSON_PSADBH)
6603         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6604         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6605         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
6606         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6607         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6608         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6609         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
6610         (cpu): Update comment.
6611         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
6612         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
6613         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
6614         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
6615         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
6616         UNSPEC_LOONGSON_PCMPEQ)
6617         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
6618         UNSPEC_LOONGSON_PINSR_0)
6619         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6620         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6621         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6622         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6623         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6624         UNSPEC_LOONGSON_PSADBH)
6625         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6626         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6627         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
6628         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6629         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6630         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6631         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
6632         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
6633         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
6634         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
6635         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
6636         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
6637         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
6638         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
6639         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
6640         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
6641         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
6642         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
6643         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
6644         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
6645         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
6646         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
6647         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
6648         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
6649         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
6650         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
6651         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6652         (UNSPEC_RDDSP): Moved from mips.md.
6653         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
6654         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
6655         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
6656         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
6657         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
6658         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
6659         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
6660         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
6661         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
6662         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
6663         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
6664         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
6665         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
6666         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
6667         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
6668         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
6669         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
6670         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
6671         (UNSPEC_SCC): Moved from mips.md.
6672         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
6673         "processor_type" to "processor".
6674         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
6675         * config/mips/mips.h (processor_type): Delete.
6676         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
6677         "processor_type" to "processor".
6679 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6681         * configure.ac (tm_include_list): Add insn-constants.h.
6682         * configure: Regenerate.
6683         * Makefile.in (GTM_H): Move insn-constants.h here from...
6684         (TM_H): ...here.
6685         * mkconfig.sh: Remove special handling for insn-constants.h.
6687 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6689         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
6690         (BUILD_MD): ...this new variable.
6691         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
6692         that include the old contents of simple_generated_h and
6693         simple_generated_c.
6694         (simple_generated_h, simple_generated_c): Include them.  Add
6695         insn-constants.h.
6696         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
6697         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
6698         Remove these dependencies from the main rule and include
6699         insn-conditions.md in the command line only if it appears
6700         in the dependency list.
6701         (insn-constants.h, s-constants): Delete.
6702         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
6703         or gensupport.h.
6704         (build/genmddeps.o): Likewise.
6705         (genprogrtl): New variable that contains everything from genprogmd
6706         except mddeps and constants.
6707         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
6708         depend on $(BUILD_MD)
6709         (genprog): New variable.  Make these programs depend on
6710         $(BUILD_ERRORS).
6711         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
6712         (main): Use read_md_files instead of init_rtx_reader_args.
6713         * genconstants.c: As for genmddeps.c.
6714         * read-md.h (read_skip_construct): Declare.
6715         * read-md.c (read_skip_construct): New function.
6716         (handle_file): Allow a null handle_directive, skipping the
6717         construct if so.
6718         (parse_include): Update the comment accordingly.
6720 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6722         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
6723         * genmddeps.c: Include read-md.h.
6724         (main): Call init_rtx_reader_args instead of init_md_reader_args.
6725         * genattr.c (main): Likewise.
6726         * genattrtab.c (main): Likewise.
6727         * genautomata.c (main): Likewise.
6728         * gencodes.c (main): Likewise.
6729         * genconditions.c (main): Likewise.
6730         * genconfig.c (main): Likewise.
6731         * genconstants.c (main): Likewise.
6732         * genemit.c (main): Likewise.
6733         * genextract.c (main): Likewise.
6734         * genflags.c (main): Likewise.
6735         * genopinit.c (main): Likewise.
6736         * genoutput.c (main): Likewise.
6737         * genpeep.c (main): Likewise.
6738         * genrecog.c (main): Likewise.
6739         * genpreds.c (main): Likewise.
6740         * gensupport.h (in_fname): Move to read-md.h.
6741         (init_md_reader_args_cb): Rename to...
6742         (init_rtx_reader_args_cb): ...this and return a bool.
6743         (init_md_reader_args): Rename to...
6744         (init_rtx_reader_args): ...this and return a bool.
6745         (include_callback): Move to read-md.h.
6746         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
6747         (file_name_list, first_dir_md_include): Move to read-md.c
6748         (first_bracket_include): Delete unused variable.
6749         (last_dir_md_include): Move to read-md.c.
6750         (process_include): Delete, moving code to read-md.c:handle_include.
6751         (process_rtx): Don't handle INCLUDE.
6752         (save_string): Delete.
6753         (rtx_handle_directive): New function.
6754         (init_md_reader_args_cb): Rename to...
6755         (init_rtx_reader_args_cb): ...this and return a boolean success value.
6756         Use read_md_args.
6757         (init_md_reader_args): Rename to...
6758         (init_rtx_reader_args): ...this and return a boolean success value.
6759         * rtl.def (INCLUDE): Delete.
6760         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
6761         argument.
6762         * read-rtl.c (read_conditions): Don't gobble ')' here.
6763         (read_mapping): Likewise.
6764         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
6765         Handle top-level non-rtx constructs here rather than in read_rtx_1.
6766         Store the whole queue in *X.  Remove call to init_md_reader.
6767         (read_rtx_1): Rename to...
6768         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
6769         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
6770         here.
6771         (read_nested_rtx): New function.  Handle (nil) here rather than
6772         in read_rtx_code.
6773         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
6774         gobble ')' here.
6775         * read-md.h (directive_handler_t): New type.
6776         (in_fname, include_callback): Moved from read-md.h.
6777         (read_constants, init_md_reader): Delete.
6778         (read_md_files): Declare.
6779         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
6780         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
6781         from gensupport.c.
6782         (read_constants): Rename to...
6783         (handle_constants): ...this.  Don't gobble ')' here.
6784         (handle_include, handle_file, handle_toplevel_file)
6785         (parse_include): New functions, mostly taken from gensupport.c.
6786         (init_md_reader): Subsume into...
6787         (read_md_files): ...this new function.
6789 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6791         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
6792         (unread_char): Decrement read_md_lineno after putting back '\n'.
6793         * read-md.c (fatal_with_file_and_line): Push back any characters
6794         that we decide not to add to the context.
6795         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
6796         fatal_expected_char in cases where '/' ends a line (for example).
6797         (read_name): Don't increment read_md_lineno here.
6798         (read_escape): Likewise.
6799         (read_quoted_string): Likewise.
6800         (read_braced_string): Likewise.
6802 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6804         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
6805         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
6806         * genconstants.c: Include read-md.h.
6807         * read-rtl.c (md_constants): Move to read-md.c.
6808         (md_name): Move to read-md.h.
6809         (initialize_iterators): Use leading_string_hash instead of def_hash
6810         and leading_string_eq_p instead of def_name_eq_p.
6811         (read_name): Move to read-md.c.
6812         (def_hash, def_name_eq_p): Delete.
6813         (read_constants, traverse_md_constants): Move to read-md.c.
6814         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
6815         * read-md.h: Include hashtab.h.
6816         (md_name): Moved from read-rtl.c.
6817         (md_constant): Moved from read-md.h.
6818         (leading_string_hash, leading_string_eq_p, read_name)
6819         (read_constants, traverse_md_constants): Declare.
6820         * read-md.c (md_constants): Moved from read-rtl.c.
6821         (leading_string_hash, leading_string_eq_p): New functions.
6822         (read_name, read_constants, traverse_md_constants): Moved from
6823         read-rtl.c.
6825 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6827         * read-rtl.c (md_name): New structure.
6828         (read_name): Take an md_name instead of a buffer pointer.
6829         Use the "string" field instead of strcpy when expanding constants.
6830         (read_constants): Remove the tmp_char argument.  Update the calls
6831         to read_name, using two local name buffers instead of the tmp_char
6832         argument.  Merge the constant-creation code.
6833         (read_conditions): Remove the tmp_char argument.  Update the calls
6834         to read_name, using a local name buffer instead of the tmp_char
6835         argument.
6836         (read_mapping): Replace tmp_char variable with a local name buffer.
6837         Update the calls to read_name.
6838         (read_rtx_1): Likewise.  Update the calls to read_constants and
6839         read_conditions.
6841 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6843         * Makefile.in (build/read-md.o): Depend on errors.h.
6844         * read-md.h (error_with_line): Declare.
6845         * read-md.c: Include errors.h.
6846         (message_with_line_1): New function, extracted from...
6847         (message_with_line): ...here.
6848         (error_with_line): New function.
6849         * genattrtab.c: If a call to message_with_line is followed by
6850         "have_error = 1;", replace both statements with a call to
6851         error_with_line.
6852         * genoutput.c: Likewise.
6853         * genpreds.c: Likewise.
6854         * genrecog.c: If a call to message_with_line is followed by
6855         "error_count++;", replace both statements with a call to
6856         error_with_line.
6857         (errorcount): Delete.
6858         (main): Don't check it.
6859         * gensupport.c: If a call to message_with_line is followed by
6860         "errors = 1;", replace both statements with a call to error_with_line.
6861         (errors): Delete.
6862         (process_define_cond_exec): Check have_error instead of errors.
6863         (init_md_reader_args_cb): Likewise.  Don't set errors.
6865 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6867         * read-md.h (read_md_file): Declare.
6868         (read_char, unread_char): New functions.
6869         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6870         (read_quoted_string, read_string): Remove FILE * argument.
6871         * read-md.c (read_md_file): New variable.
6872         (read_md_filename, read_md_lineno): Update comments and remove
6873         unnecessary initialization.
6874         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6875         (read_escape, read_quoted_string, read_braced_string, read_string):
6876         Remove FILE * argument.  Update calls accordingly, using read_char
6877         and unread_char instead of getc and ungetc.
6878         * rtl.h (read_rtx): Remove FILE * argument.
6879         * read-rtl.c (iterator_group): Remove FILE * argument from
6880         "find_builtin".
6881         (iterator_traverse_data): Remove "infile" field.
6882         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
6883         (add_mapping, read_name, read_constants, read_conditions)
6884         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
6885         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
6886         Remove file arguments from all calls, using read_char and unread_char
6887         instead of getc and ungetc.
6888         * gensupport.c (process_include): Preserve read_md_file around
6889         the include.  Set read_md_file to the handle of the included file.
6890         Update call to read_rtx.
6891         (init_md_reader_args_cb): Set read_md_file to the handle of the file
6892         and remove local FILE *.  Update calls to read_rtx.
6894 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6896         * read-md.h (read_rtx_lineno): Rename to...
6897         (read_md_lineno): ...this.
6898         (read_rtx_filename): Rename to...
6899         (read_md_filename): ...this.
6900         (copy_rtx_ptr_loc): Rename to...
6901         (copy_md_ptr_loc): ...this.
6902         (print_rtx_ptr_loc): Rename to...
6903         (print_md_ptr_loc): ...this.
6904         * read-md.c: Likewise.  Update references after renaming.
6905         (string_obstack): Replace RTL with MD in comment.
6906         (set_rtx_ptr_loc): Rename to...
6907         (set_md_ptr_loc): ...this.
6908         (get_rtx_ptr_loc): Rename to...
6909         (get_md_ptr_loc): ...this.
6910         * genconditions.c: Update references after renaming.
6911         * genemit.c: Likewise.
6912         * genoutput.c: Likewise.
6913         * genpreds.c: Likewise.
6914         * gensupport.c: Likewise.
6915         * read-rtl.c: Likewise.
6917 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6919         * Makefile.in (READ_MD_H): New variable.
6920         (BUILD_RTL): Add build/read-md.o.
6921         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
6922         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
6923         (build/genattrtab.o, build/genconditions.o build/genemit.o)
6924         (build/genextract.o, build/genflags.o, build/genoutput.o)
6925         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
6926         (build/read-md.o): New rule.
6927         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
6928         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
6929         * coretypes.h: ...here.
6930         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
6931         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
6932         * genattr.c: Include read-md.h.
6933         * genattrtab.c: Likewise.
6934         * genconditions.c: Likewise.
6935         * genemit.c: Likewise.
6936         * genextract.c: Likewise.
6937         * genflags.c: Likewise.
6938         * genoutput.c: Likewise.
6939         * genpreds.c: Likewise.
6940         * genrecog.c: Likewise.
6941         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
6942         (join_c_conditions, print_c_condition, read_rtx_filename)
6943         (read_rtx_lineno): Move to read-md.h.
6944         * read-rtl.c: Include read-md.h.
6945         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
6946         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
6947         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
6948         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
6949         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
6950         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
6951         (read_braced_string, read_string): Move to read-md.c.
6952         (read_rtx): Move some initialization to init_md_reader and call
6953         init_md_reader here.
6954         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
6955         Move to read-md.h.
6956         * gensupport.c: Include read-md.h.
6957         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
6958         * read-md.h, read-md.c: New files.
6960 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
6962         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6963         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6964         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
6965         * config/moxie/moxie.c (moxie_function_value): Make static.
6966         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
6967         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6969 2010-06-10  Martin Jambor  <mjambor@suse.cz>
6971         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
6972         * dbgcnt.def (tree_sra): New counter.
6973         * tree-sra.c: Include dbgcnt.h.
6974         (gate_intra_sra): Check tree_sra debug counter.
6976 2010-06-10  Martin Jambor  <mjambor@suse.cz>
6978         PR tree-optimization/44258
6979         * tree-sra.c (build_access_subtree): Return false iff there is a
6980         partial overlap.
6981         (build_access_trees): Likewise.
6982         (analyze_all_variable_accesses): Disqualify candidates if
6983         build_access_trees returns true for them.
6985 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
6987         PR debug/41371
6988         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
6989         tail-recurse into canonical node.  Fast-forward over
6990         non-canonical VALUEs.
6992 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
6994         PR boostrap/44470
6995         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
6996         (*addsi_1_zext) <TYPE_LEA>: Likewise.
6997         (add lea splitter): Likewise.
6998         (add_zext lea splitter): Likewise.
7000 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
7002         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
7004 2010-06-10  Jan Hubicka  <jh@suse.cz>
7006         * df-problems.c (df_live_problem_data): Add live_bitmaps.
7007         (df_live_alloc): Initialize problem data and live_osbtacks.
7008         (df_live_finalize): Remove obstack, problem data; do not
7009         clear all bitmaps.
7010         (df_live_top_dump, df_live_bottom_dump): Do not dump old
7011         data when not allocated.
7012         (df_live_verify_solution_start): Do not allocate problem data.
7013         (df_live_verify_solution_end): Check if out is allocated.
7014         (struct df_md_problem_data): New structure.
7015         (df_md_alloc): Allocate problem data.
7016         (df_md_free): Free problem data; do not clear bitmaps.
7018 2010-06-10  Jan Beulich  <jbeulich@novell.com>
7020         PR bootstrap/37304
7021         * configure.ac: Replace $() with ${} when intending to expand
7022         variables rather than invoking commands.
7023         * configure: Re-generate.
7025 2010-06-10  Jan Hubicka  <jh@suse.cz>
7027         PR rtl-optimization/44460
7028         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7029         TYPE_NEEDS_CONSTRUCTING sanity check.
7031 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
7033         * doc/include/fdl.texi: Move to GFDL version 1.3.
7035         * doc/cpp.texi: Move to GFDL version 1.3.
7036         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
7037         * doc/gccint.texi: Move to GFDL version 1.3.
7038         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
7039         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
7040         * doc/invoke.texi: Move to GFDL version 1.3.
7042 2010-06-09  Jan Hubicka  <jh@suse.cz>
7044         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
7045         Break out from ...
7046         (propagate) ... here; swap the order.
7048 2010-06-09  Jan Hubicka  <jh@suse.cz>
7050         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
7051         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
7052         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
7053         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
7055 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
7057         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
7058         Do not the gather memory reference in the outer loop if the step
7059         is not a constant.
7061 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
7063         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
7064         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
7065         8 to 4.  Minor change of the related comments.
7067 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7069         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
7070         the scev analysis when the variable is not used outside the loop
7071         in a close phi node: call compute_overall_effect_of_inner_loop.
7073 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7075         * graphite-sese-to-poly.c (single_pred_cond): Renamed
7076         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
7077         (build_sese_conditions_before): Renamed call to single_pred_cond.
7078         (build_sese_conditions_after): Same.
7080 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7082         * graphite-poly.h: Fix comments and indentation.
7083         * graphite-sese-to-poly.c: Same.
7084         (build_sese_conditions_before): Compute stmt and gbb only when needed.
7085         * tree-chrec.c: Fix comments and indentation.
7086         (tree-ssa-loop-niter.c): Same.
7088 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
7090         PR rtl-optimization/42461
7091         * dce.c (deletable_insn_p): Return true for const or pure calls again.
7092         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
7094 2010-06-09  Jan Hubicka  <jh@suse.cz>
7096         * bitmap.c (bitmap_and): Walk array forward.
7097         (bitmap_and_compl_into): Likewise.
7098         (bitmap_xor): Likewise.
7099         (bitmap_xor_into):  Likewise.
7100         (bitmap_equal_p): Likewise.
7101         (bitmap_intersect_p): Likewise.
7102         (bitmap_intersect_compl_p): Likewise.
7103         (bitmap_ior_and_into): Likewise.
7104         (bitmap_elt_copy): Likewise.
7105         (bitmap_and_compl): Likewise.
7106         (bitmap_elt_ior): Likewise.
7108 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
7110         * opts-common.c (prune_options): Ensure replacement argv array
7111         is correctly terminated by a NULL entry.
7113 2010-06-09  Jan Hubicka  <jh@suse.cz>
7115         * cgraph.h (varpool_first_static_initializer,
7116         varpool_next_static_initializer): Make checking only when
7117         checking enabled.
7118         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
7119         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
7120         gcc_assert to gcc_checking_assert.
7121         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
7122         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
7123         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
7124         op_iter_init_phiuse, op_iter_init_phidef,
7125         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
7126         gcc_checking_assert.
7127         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
7128         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
7129         partition_is_global, live_on_entry, live_on_exit,
7130         live_merge_and_clear): Likewise.
7131         * system.h (gcc_checking_assert): New macro.
7132         * gimple.h (set_bb_seq): Use gcc_checking_assert.
7134 2010-06-09  Jason Merrill  <jason@redhat.com>
7136         * Makefile.in (TAGS): Collect tags info from c-family.
7138 2010-06-09  Jan Hubicka  <jh@suse.cz>
7140         * gimple.h (gcc_gimple_checking_assert): New macro.
7141         (gimple_set_def_ops, gimple_set_use_ops,
7142         gimple_set_vuse, gimple_set_vdef,
7143         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
7144         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
7145         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
7146         gimple_asm_output_op, gimple_asm_output_op_ptr,
7147         gimple_asm_set_output_op, gimple_asm_clobber_op,
7148         gimple_asm_set_clobber_op, gimple_asm_label_op,
7149         gimple_asm_set_label_op, gimple_try_set_kind,
7150         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
7151         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
7152         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
7153         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
7154         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
7155         gimple_omp_for_set_initial, gimple_omp_for_final,
7156         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
7157         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
7158         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
7159         conditional with ENABLE_GIMPLE_CHECKING.
7160         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
7162 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
7164         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
7165         (get_computation_cost_at): Use it.
7166         (determine_use_iv_cost_condition): Likewise.
7167         (determine_iv_cost): Likewise.
7169 2010-06-09  Richard Guenther  <rguenther@suse.de>
7171         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
7172         replace constants.
7174 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
7176         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
7178 2010-06-09  Martin Jambor  <mjambor@suse.cz>
7180         PR tree-optimization/44423
7181         * tree-sra.c (dump_access): Dump also grp_assignment_read.
7182         (analyze_access_subtree): Pass negative allow_replacements to children
7183         if the current type is scalar.
7185 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
7187         PR testsuite/42843
7188         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
7189         * doc/plugins.texi (Plugin license check): Update information
7190         on type of plugin_is_GPL_compatible.
7191         * Makefile.in (PLUGINCC): Define as $(COMPILER).
7192         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
7194 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
7196         * config/arm/arm.c (thumb2_reorg): New function.
7197         (arm_reorg): Call it.
7198         * config/arm/thumb2.md (define_peephole2 for flag clobbering
7199         arithmetic operations): Delete.
7201 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
7203         PR target/44067
7204         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
7205         e500v2 target.
7207 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
7209         PR plugins/44459
7210         * gcc-plugin.h: Encapsulate all declarations in extern "C".
7212 2010-06-08  Jan Hubicka  <jh@suse.cz>
7214         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
7215         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
7217 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
7219         PR tree-optimization/39874
7220         PR middle-end/28685
7221         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
7222         Declare.
7223         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
7224         same_bool_result_p): New.
7225         (and_var_with_comparison, and_var_with_comparison_1,
7226         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
7227         (or_var_with_comparison, or_var_with_comparison_1,
7228         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
7229         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
7230         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
7231         of combine_comparisons.
7232         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
7234 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
7236         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7237         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7238         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
7239         pdp11_function_value_regno_p): New functions.
7240         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7241         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7243 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
7245         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
7246         Thumb-2 in the MINUS case.
7248 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7250         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
7252         * doc/gty.texi (GTY Options): Document typed GC allocation and
7253         variable_size GTY option.
7255         * ggc-internal.h: New.
7257         * ggc.h: Update copyright year.
7258         (digit_string): Move to stringpool.c.
7259         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
7260         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
7261         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
7262         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
7263         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
7264         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
7265         (ggc_force_collect, ggc_get_size, ggc_statistics)
7266         (ggc_print_common_statistics): Move to ggc-internal.h.
7267         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
7268         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
7269         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
7270         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
7271         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
7272         (ggc_alloc_zone_pass_stat): Remove.
7273         (ggc_internal_alloc_stat, ggc_internal_alloc)
7274         (ggc_internal_cleared_alloc_stat): New.
7275         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
7276         (ggc_internal_vec_alloc_stat)
7277         (ggc_internal_cleared_vec_alloc_stat)
7278         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
7279         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
7280         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
7281         (ggc_cleared_alloc_ptr_array_two_args): New.
7282         (htab_create_ggc, splay_tree_new_ggc): Redefine.
7283         (ggc_splay_alloc): Change the type of the first argument to
7284         enum gt_types_enum.
7285         (ggc_alloc_string): Make macro.
7286         (ggc_alloc_string_stat): New.
7287         (ggc_strdup): Redefine.
7288         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
7289         (ggc_alloc_rtvec_sized): New.
7290         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
7291         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
7292         (ggc_internal_cleared_alloc_zone_stat)
7293         (ggc_internal_zone_alloc_stat)
7294         (ggc_internal_zone_cleared_alloc_stat)
7295         (ggc_internal_zone_vec_alloc_stat)
7296         (ggc_alloc_zone_rtx_def_stat)
7297         (ggc_alloc_zone_tree_node_stat)
7298         (ggc_alloc_zone_cleared_tree_node_stat)
7299         (ggc_alloc_cleared_gimple_statement_d_stat): New.
7301         * ggc-common.c: Include ggc-internal.h.
7302         (ggc_internal_cleared_alloc_stat): Rename from
7303         ggc_alloc_cleared_stat.
7304         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
7305         (ggc_calloc): Remove.
7306         (ggc_cleared_alloc_htab_ignore_args): New.
7307         (ggc_cleared_alloc_ptr_array_two_args): New.
7308         (ggc_splay_alloc): Add obj_type parameter.
7309         (init_ggc_heuristics): Formatting fixes.
7311         * ggc-none.c: Update copyright year.
7312         (ggc_alloc_stat): Rename to ggc_alloc_stat.
7313         (ggc_alloc_cleared_stat): Rename to
7314         ggc_internal_cleared_alloc_stat.
7315         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
7317         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
7318         Remove references to ggc_alloc in comments.
7319         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
7320         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
7321         (new_ggc_zone, destroy_ggc_zone): Remove.
7322         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
7324         * ggc-zone.c: Include ggc-internal.h.  Remove references to
7325         ggc_alloc in comments.
7326         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
7327         (ggc_internal_alloc_zone_pass_stat): New.
7328         (ggc_internal_cleared_alloc_zone_stat): New.
7329         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
7330         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
7331         (new_ggc_zone, destroy_ggc_zone): Remove.
7333         * stringpool.c: Update copyright year.  Include ggc-internal.h
7334         (digit_vector): Make static.
7335         (digit_string): Moved from ggc.h.
7336         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
7337         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
7339         * Makefile.in (GGC_INTERNAL_H): New.
7340         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
7341         $(GGC_INTERNAL_H) to dependencies.
7343         * gentype.c: Update copyright year.
7344         (walk_type): Accept variable_size GTY option.
7345         (USED_BY_TYPED_GC_P): New macro.
7346         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
7347         whitespace at the end of strings.
7348         (get_type_specifier, variable_size_p): New functions.
7349         (alloc_quantity, alloc_zone): New enums.
7350         (write_typed_alloc_def): New function.
7351         (write_typed_struct_alloc_def): Likewise.
7352         (write_typed_typed_typedef_alloc_def): Likewise.
7353         (write_typed_alloc_defns): Likewise.
7354         (output_typename, write_splay_tree_allocator_def): Likewise.
7355         (write_splay_tree_allocators): Likewise.
7356         (main): Call write_typed_alloc_defns and
7357         write_splay_tree_allocators.
7359         * lto-streamer.h (lto_file_decl_data_ptr): New.
7361         * passes.c (order): Define using cgraph_node_ptr.
7363         * strinpool.c (struct string_pool_data): Declare nested_ptr using
7364         ht_identifier_ptr.
7366         * gimple.h (union gimple_statement_d): Likewise.
7368         * rtl.h (struct rtx_def): Likewise.
7369         (struct rtvec_def): Likewise.
7371         * tree.h (union tree_node): Likewise.
7373         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
7375         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
7377         * tree-scalar-evolution.c (scev_initialize): Likewise.
7379         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
7381         * dwarf2asm.c (dw2_force_const_mem): Likewise.
7383         * omp-low.c (lower_omp_critical): Likewise.
7385         * bitmap.h (struct bitmap_head_def): Update comment to not
7386         reference ggc_alloc.
7388         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
7390         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
7392         * ipa-prop.c (duplicate_ggc_array): Rename to
7393         duplicate_ipa_jump_func_array.  Use typed GC allocation.
7394         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
7396         * gimple.c (gimple_alloc_stat): Use
7397         ggc_alloc_cleared_gimple_statement_d_stat.
7399         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
7401         * tree.c (make_node_stat): Use
7402         ggc_alloc_zone_cleared_tree_node_stat.
7403         (make_tree_vec_stat): Likewise.
7404         (build_vl_exp_stat): Likewise.
7405         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
7406         (make_tree_binfo_stat): Likewise.
7407         (tree_cons_stat): Likewise.
7409         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
7410         (shallow_copy_rtx_stat): Likewise.
7411         (make_node_stat): Likewise.
7413         * lto-symtab.c: Fix comment.
7415         * tree-cfg.c (create_bb): Update comment to not reference
7416         ggc_alloc_cleared.
7417         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
7419         * varpool.c (varpool_node): Use typed GC allocation.
7420         (varpool_extra_name_alias): Likewise.
7422         * varasm.c (emutls_decl): Likewise.
7423         (get_unnamed_section): Likewise.
7424         (get_noswitch_section): Likewise.
7425         (get_section): Likewise.
7426         (get_block_for_section): Likewise.
7427         (build_constant_desc): Likewise.
7428         (create_constant_pool): Likewise.
7429         (force_const_mem): Likewise.
7431         * tree.c (build_vl_exp_stat): Likewise.
7432         (build_real): Likewise.
7433         (build_string): Likewise.
7434         (decl_debug_expr_insert): Likewise.
7435         (decl_value_expr_insert): Likewise.
7436         (type_hash_add): Likewise.
7437         (build_omp_clause): Likewise.
7439         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
7441         * tree-ssa.c (init_tree_ssa): Likewise.
7443         * tree-ssa-structalias.c (heapvar_insert): Likewise.
7445         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
7447         * tree-ssa-loop-niter.c (record_estimate): Likewise.
7449         * tree-ssa-alias.c (get_ptr_info): Likewise.
7451         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
7453         * tree-phinodes.c (allocate_phi_node): Likewise.
7455         * tree-iterator.c (tsi_link_before): Likewise.
7456         (tsi_link_after): Likewise.
7458         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
7460         * tree-dfa.c (create_var_ann): Likewise.
7462         * tree-cfg.c (create_bb): Likewise.
7464         * toplev.c (alloc_for_identifier_to_locale): Likewise.
7465         (general_init): Likewise.
7467         * stringpool.c (stringpool_ggc_alloc): Likewise.
7468         (gt_pch_save_stringpool): Likewise.
7470         * sese.c (if_region_set_false_region): Likewise.
7472         * passes.c (do_per_function_toporder): Likewise.
7474         * optabs.c (set_optab_libfunc): Likewise.
7475         (set_conv_libfunc): Likewise.
7477         * lto-symtab.c (lto_symtab_register_decl): Likewise.
7479         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
7480         (input_eh_region): Likewise.
7481         (input_eh_lp): Likewise.
7482         (make_new_block): Likewise.
7483         (unpack_ts_real_cst_value_fields): Likewise.
7485         * lto-section-in.c (lto_new_in_decl_state): Likewise.
7487         * lto-cgraph.c (input_node_opt_summary): Likewise.
7489         * loop-init.c (loop_optimizer_init): Likewise.
7491         * lambda.h (lambda_vector_new): Likewise.
7493         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
7495         * ira.c (update_equiv_regs): Likewise.
7497         * ipa.c (cgraph_node_set_new): Likewise.
7498         (cgraph_node_set_add): Likewise.
7499         (varpool_node_set_new): Likewise.
7500         (varpool_node_set_add): Likewise.
7502         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
7503         (duplicate_ipa_jump_func_array): Likewise.
7504         (ipa_read_node_info): Likewise.
7506         * ipa-cp.c (ipcp_create_replace_map): Likewise.
7508         * integrate.c (get_hard_reg_initial_val): Likewise.
7510         * gimple.c (gimple_alloc_stat): Likewise.
7511         (gimple_build_omp_for): Likewise.
7512         (gimple_seq_alloc): Likewise.
7513         (gimple_copy): Likewise.
7515         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
7516         (gsi_insert_after_without_update): Likewise.
7518         * function.c (add_frame_space): Likewise.
7519         (insert_temp_slot_address): Likewise.
7520         (assign_stack_temp_for_type): Likewise.
7521         (allocate_struct_function): Likewise.
7522         (types_used_by_var_decl_insert): Likewise.
7524         * except.c (init_eh_for_function): Likewise.
7525         (gen_eh_region): Likewise.
7526         (gen_eh_region_catch): Likewise.
7527         (gen_eh_landing_pad): Likewise.
7528         (add_call_site): Likewise.
7530         * emit-rtl.c (get_mem_attrs): Likewise.
7531         (get_reg_attrs): Likewise.
7532         (start_sequence): Likewise.
7533         (init_emit): Likewise.
7535         * dwarf2out.c (new_cfi): Likewise.
7536         (queue_reg_save): Likewise.
7537         (dwarf2out_frame_init): Likewise.
7538         (new_loc_descr): Likewise.
7539         (find_AT_string): Likewise.
7540         (new_die): Likewise.
7541         (add_var_loc_to_decl): Likewise.
7542         (clone_die): Likewise.
7543         (clone_as_declaration): Likewise.
7544         (break_out_comdat_types): Likewise.
7545         (new_loc_list): Likewise.
7546         (loc_descriptor): Likewise.
7547         (add_loc_descr_to_each): Likewise.
7548         (add_const_value_attribute): Likewise.
7549         (tree_add_const_value_attribute): Likewise.
7550         (add_comp_dir_attribute): Likewise.
7551         (add_name_and_src_coords_attributes): Likewise.
7552         (lookup_filename): Likewise.
7553         (store_vcall_insn): Likewise.
7554         (dwarf2out_init): Likewise.
7556         * dbxout.c (dbxout_init): Likewise.
7558         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
7560         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
7562         * config/score/score7.c (score7_output_external): Likewise.
7564         * config/score/score3.c (score3_output_external): Likewise.
7566         * config/s390/s390.c (s390_init_machine_status): Likewise.
7568         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
7569         (rs6000_init_machine_status): Likewise.
7570         (output_toc): Likewise.
7572         * config/pa/pa.c (pa_init_machine_status): Likewise.
7573         (get_deferred_plabel): Likewise.
7575         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
7577         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
7579         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
7581         * config/mep/mep.c (mep_init_machine_status): Likewise.
7582         (mep_note_pragma_flag): Likewise.
7584         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
7586         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
7588         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
7590         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
7591         (i386_pe_maybe_record_exported_symbol): Likewise.
7593         * config/i386/i386.c (get_dllimport_decl): Likewise.
7594         (ix86_init_machine_status): Likewise.
7595         (assign_386_stack_local): Likewise.
7597         * config/frv/frv.c (frv_init_machine_status): Likewise.
7599         * config/darwin.c (machopic_indirection_name): Likewise.
7601         * config/cris/cris.c (cris_init_machine_status): Likewise.
7603         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
7605         * config/avr/avr.c (avr_init_machine_status): Likewise.
7607         * config/arm/arm.c (arm_init_machine_status): Likewise.
7609         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
7610         (alpha_need_linkage): Likewise.
7611         (alpha_use_linkage): Likewise.
7613         * cgraph.c (cgraph_allocate_node): Likewise.
7614         (cgraph_create_edge_1): Likewise.
7615         (cgraph_create_indirect_edge): Likewise.
7616         (cgraph_add_asm_node): Likewise.
7618         * cfgrtl.c (init_rtl_bb_info): Likewise.
7620         * cfgloop.c (alloc_loop): Likewise.
7621         (rescan_loop_exit): Likewise.
7623         * cfg.c (init_flow): Likewise.
7624         (alloc_block): Likewise.
7625         (unchecked_make_edge): Likewise.
7627         * c-parser.c (c_parse_init): Likewise.
7628         (c_parse_file): Likewise.
7630         * c-decl.c (bind): Likewise.
7631         (record_inline_static): Likewise.
7632         (push_scope): Likewise.
7633         (make_label): Likewise.
7634         (lookup_label_for_goto): Likewise.
7635         (finish_struct): Likewise.
7636         (finish_enum): Likewise.
7637         (c_push_function_context): Likewise.
7639         * bitmap.c (bitmap_element_allocate): Likewise.
7640         (bitmap_gc_alloc_stat): Likewise.
7642         * alias.c (record_alias_subset): Likewise.
7643         (init_alias_analysis): Likewise.
7645 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
7647         * fold-const.c (fold_comparison): Remove redundant parenthesis.
7648         * tree-inline.c (expand_call_inline): Pass translated return value of
7649         cgraph_inline_failed_string to diagnostic function.
7651 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
7652             Shujing Zhao  <pearly.zhao@oracle.com>
7654         PR c/37724
7655         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
7656         implicit bad conversions is initialization.
7657         (error_init): Use gmsgid instead of msgid for argument name and change
7658         the call for error.
7659         (pedwarn_init): Use gmsgid instead of msgid for argument name and
7660         change the call for pedwarn.
7661         (warning_init): Use gmsgid instead of msgid for argument name and
7662         change the call for warning.
7664 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
7666         * config/mips/mips-protos.h (mips_print_operand): Delete.
7667         (mips_print_operand_address): Delete.
7668         * config/mips/mips.h (mips_print_operand_punct): Delete.
7669         (PRINT_OPERAND): Delete.
7670         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7671         (PRINT_OPERAND_ADDRESS): Delete.
7672         * config/mips/mips.c (mips_print_operand_punct): Make static.
7673         (mips_print_operand_address): Make static.
7674         (mips_print_operand): Make static.  Call
7675         mips_print_operand_punct_valid_p.
7676         (mips_print_operand_punct_valid_p): New function.
7677         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7678         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7680 2010-06-07  Jan Hubicka  <jh@suse.cz>
7682         PR middle-end/44454
7683         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
7684         are allocated.
7686 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7688         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
7689         name of RECORD.
7691 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7693         * doc/sourcebuild.texi (Effective-Target Keywords, Other
7694         attributes): Document gas.
7696 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
7698         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
7699         <TYPE_LEA>: Split instruction.
7700         <default>: Remove alternative 2 handling.
7701         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
7702         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
7703         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
7705         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
7706         (ashift_zext lea splitter): Use DImode for multiplication.
7708         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
7709         to generate addition.
7711 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
7713         * common.opt (fira-verbose): Use Var.
7714         (fpcc-struct-return): Use Init instead of VarExists.
7715         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
7716         toplev.c.
7717         * flags.h (flag_signed_char, flag_short_enums,
7718         flag_pcc_struct_return, flag_ira_verbose,
7719         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
7720         * toplev.c (flag_detailed_statistics, flag_signed_char,
7721         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
7722         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
7723         * toplev.h (flag_crossjumping, flag_if_conversion,
7724         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
7725         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
7726         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
7727         flag_cprop_registers, time_report, flag_ira_loop_pressure,
7728         flag_ira_coalesce, flag_ira_move_spills,
7729         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
7731 2010-06-07  Jan Hubicka  <jh@suse.cz>
7733         * df-core.c (df_analyze_problem): Do verification after allocation.
7735         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
7736         (df_lr_alloc): Initialize problem data; move bitmaps to
7737         lr_bitmaps obstack.
7738         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
7739         (df_lr_verify_solution_start): Do not initialize problem data;
7740         allocate bitmaps in lr_bitmaps.
7741         (df_lr_verify_solution_end): Do not free problem data.
7743 2010-06-07  Jan Hubicka  <jh@suse.cz>
7745         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
7746         if caller is noreturn.
7747         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
7748         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
7749         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
7750         * ipa-pure-const.c (check_decl): Add IPA parameter.
7751         (state_from_flags): New function.
7752         (better_state, worse_state): New functions.
7753         (check_call): When in IPA mode, do not care about callees.
7754         (check_load, check_store): Update.
7755         (check_ipa_load, check_ipa_store): New.
7756         (check_stmt): When in IPA mode, use IPA checkers.
7757         (analyze_function): Use state_from_flags.
7758         (propagate): Check indirect edges and references.
7760 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
7762         PR rtl-optimization/44404
7763         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
7764         of count_occurrences to see if it's safe to modify mem_insn.
7766 2010-06-07  Richard Guenther  <rguenther@suse.de>
7768         * gimplify.c (gimplify_cleanup_point_expr): For empty body
7769         and EH-only cleanup drop the cleanup instead of inserting it
7770         unconditionally.
7772 2010-06-07  Ira Rosen  <irar@il.ibm.com>
7774         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
7775         documentation.
7776         * targhooks.c (default_builtin_vectorization_cost): New function.
7777         * targhooks.h (default_builtin_vectorization_cost): Declare.
7778         * target.h (enum vect_cost_for_stmt): Define.
7779         (builtin_vectorization_cost): Change argument and comment.
7780         * tree-vectorizer.h: Remove cost model macros.
7781         * tree-vect-loop.c: Include target.h.
7782         (vect_get_cost): New function.
7783         (vect_estimate_min_profitable_iters): Replace cost model macros with
7784         calls to vect_get_cost.
7785         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
7786         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
7787         default implementation.
7788         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
7789         calls to target hook builtin_vectorization_cost.
7790         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
7791         Likewise.
7792         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
7793         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
7794         implementation to return costs.
7795         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7796         * config/spu/spu.h: Remove vectorizer cost model macros.
7797         * config/i386/i386.h: Likewise.
7798         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
7799         a call to target hook builtin_vectorization_cost.
7801 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
7803         PR target/44319
7804         * config/i386/i386.c (override_options): Turn zee pass on for level 2
7805         and above and defer till target is known.
7806         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
7807         turn off otherwise.
7809 2010-05-25  Jan Hubicka  <jh@suse.cz>
7811         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
7812         (df_compact_blocks): Likewise.
7813         * df.h (struct df): Turn hardware_regs_used,
7814         regular_block_artificial_uses, eh_block_artificial_uses,
7815         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
7816         bitmap_head.
7817         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
7818         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
7819         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
7820         df_scan_blocks, df_insn_delete, df_insn_rescan,
7821         df_insn_rescan_debug_internal, df_insn_rescan_all,
7822         df_process_deferred_rescans, df_process_deferred_rescans,
7823         df_notes_rescan, df_get_call_refs, df_get_call_refs,
7824         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
7825         df_record_entry_block_defs, df_record_exit_block_uses,
7826         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
7827         df_scan_verify): Update.
7829 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
7831         PR c++/44188
7832         * c-common.c (is_typedef_decl): Move this definition ...
7833         * tree.c (is_typedef_decl): ... here.
7834         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7835         * c-common.h (is_typedef_decl): Move this declaration ...
7836         * tree.h (is_typedef_decl): ... here.
7837         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7838         * dwarf2out.c (is_naming_typedef_decl): New function.
7839         (gen_tagged_type_die): Split out of ...
7840         (gen_type_die_with_usage): ... this function. When an anonymous
7841         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7842         is emitted for the typedef.
7843         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7844         anonymous tagged types.
7846 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7848         PR c/20000
7849         * c-decl.c (grokdeclarator): Delete warning.
7851 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7853         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
7854         newly built CALL_EXPR.
7855         * tree-profile.c (tree_profiling): Don't profile functions produced
7856         for built-in stuff.
7858 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
7860         PR bootstrap/44427
7861         PR bootstrap/44428
7862         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
7863         endianness-independent.
7865 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
7867         * c-common.c: Move to c-family/.
7868         * c-common.def: Likewise.
7869         * c-common.h: Likewise.
7870         * c-cppbuiltin.c: Likewise.
7871         * c-dump.c: Likewise.
7872         * c-format.c: Likewise.
7873         * c-format.h : Likewise.
7874         * c-gimplify.c: Likewise.
7875         * c-lex.c: Likewise.
7876         * c-omp.c: Likewise.
7877         * c.opt: Likewise.
7878         * c-opts.c: Likewise.
7879         * c-pch.c: Likewise.
7880         * c-ppoutput.c: Likewise.
7881         * c-pragma.c: Likewise.
7882         * c-pragma.h: Likewise.
7883         * c-pretty-print.c: Likewise.
7884         * c-pretty-print.h: Likewise.
7885         * c-semantics.c: Likewise.
7886         * stub-objc.c: Likewise.
7888         * gengtype.c (get_file_langdir): Special-case files in c-family/.
7889         (get_output_file_with_visibility): Fix name for c-common.h.
7890         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
7892         * c-tree.h: Update include path for moved files.
7893         * c-lang.c: Likewise.
7894         * c-lang.h: Likewise.
7895         * c-parser.c: Likewise.
7896         * c-convert.c: Likewise.
7897         * c-decl.c: Likewise.
7898         * c-objc-common.c: Likewise.
7899         * configure.ac: Make sure c-family/ exists in the build directory.
7900         * configure: Regenerate.
7901         * Makefile.in: Update paths for moved files.  Regroup files per
7902         location and update dependencies.  Move generated_files down after
7903         ALL_GTFILES_H.
7905         * config/spu/spu-c.c: Update paths for moved files.
7906         * config/mep/mep-pragma.c: Likewise.
7907         * config/darwin-c.c: Likewise.
7908         * config/i386/msformat-c.c: Likewise.
7909         * config/i386/i386-c.c: Likewise.
7910         * config/avr/avr-c.c: Likewise.
7911         * config/sol2-c.c: Likewise.
7912         * config/ia64/ia64-c.c: Likewise.
7913         * config/rs6000/rs6000-c.c: Likewise.
7914         * config/arm/arm.c: Likewise.
7915         * config/arm/arm-c.c: Likewise.
7916         * config/h8300/h8300.c: Likewise.
7917         * config/v850/v850-c.c: Likewise.
7919         * config/t-darwin: Fix dependencies for moved files.
7920         * config/t-sol2: Fix dependencies for moved files.
7921         * config/mep/t-mep: Fix dependencies for moved files.
7922         * config/ia64/t-ia64: Fix dependencies for moved files.
7923         * config/rs6000/t-rs6000: Fix dependencies for moved files.
7924         * config/v850/t-v850: Fix dependencies for moved files.
7925         * config/v850/t-v850e: Fix dependencies for moved files.
7927         * config/m32c/m32c-pragma.c
7929         * po/exgettext: Look in c-family/ also.
7931 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
7933         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
7934         (mark_control_dependent_edges_necessary): Call it instead of marking
7935         the last statement manually.
7936         (propagate_necessity): Likewise.
7938 2010-06-05  Jan Hubicka  <jh@suse.cz>
7940         * basic-block.h (compute_dominance_frontiers): Updated.
7941         (compute_idf): Likewise.
7943         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
7944         for dominance frontiers.
7945         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
7946         (insert_updated_phi_nodes_for): Likewise.
7947         (update_ssa): Likewise.
7948         * cfganal.c (compute_dominance_frontiers_1): Likewise.
7949         (compute_dominance_frontiers): Likewise.
7950         (compute_idf): Likewise.
7951         * df-problems.c (df_md_local_compute): Likewise.
7953 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
7955         * target.h (struct gcc_target): Add memory_move_cost field.
7956         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
7957         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
7958         * targhooks.c (default_memory_move_cost): New function.
7959         * targhooks.h (default_memory_move_cost): Declare function.
7960         * reload.h (memory_move_cost): Declare.
7961         (memory_move_secondary_cost): Change type of 'in' argument to bool.
7962         * reginfo.c (memory_move_cost): New function.
7963         (memory_move_secondary_cost): Change type of 'in' argument to bool.
7964         * ira.h (ira_memory_move_cost): Update comment.
7965         * ira.c (ira_memory_move_cost): Update comment.
7966         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
7967         with memory_move_cost.
7968         * postreload.c (reload_cse_simplify_set): (Ditto.).
7969         * reload1.c (choose_reload_regs): (Ditto.).
7970         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
7971         (MEMORY_MOVE_COST):  Revise documentation.
7973         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7974         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7975         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
7976         type of 'in' argument to bool.
7977         (TARGET_MEMORY_MOVE_COST): Define.
7979 2010-06-05  Jan Hubicka  <jh@suse.cz>
7981         * ipa-pure-const.c (propagate): Fix typo in handling of functions
7982         that cannot return.  Be more careful when merging the results with
7983         previously known ones.
7985 2010-06-05  Matthias Klose  <doko@ubuntu.com>
7987         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
7988         function to add the -iplugindir option.
7989         (find_plugindir_spec_function): Add new declaration and function.
7990         (static_spec_func): Use it for "find-plugindir".
7992 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
7994         PR c++/44361
7995         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
7996         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
7997         statement expression.
7999 2010-06-05  Jan Hubicka  <jh@suse.cz>
8001         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
8002         (df_rd_problem_data): Convert sparse_invalidated_by_call,
8003         dense_invalidated_by_call to bitmap head.
8004         (df_rd_alloc, df_rd_bb_local_compute_process_def,
8005         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
8006         df_rd_start_dump, df_lr_verify_transfer_functions,
8007         df_live_verify_transfer_functions, df_chain_create_bb,
8008         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
8009         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
8010         df_simulate_one_insn_forwards, df_md_alloc,
8011         df_md_bb_local_compute_process_def,
8012         df_md_bb_local_compute_process_def, df_md_local_compute,
8013         df_md_transfer_function df_md_free): Update.
8015 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
8017         PR c/44322
8018         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
8019         target type for ADDR_EXPR; require no changes to qualifiers except
8020         for function types.
8021         * c-tree.h (c_build_type_variant): Remove.
8023 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
8025         * genautomata.c (get_excl_set): Do work per element, not per char.
8026         (check_presence_pattern_sets): Similar.
8027         (check_absence_pattern_sets): Similar.
8029 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
8031         * genautomata.c (curr_state_pass_num): Delete.
8032         (min_issue_delay_pass_states): Delete.
8033         (min_issue_delay): Delete.
8034         (initiate_min_issue_delay_pass_states): Delete.
8035         (output_min_issue_delay_table): Compute min_issue_delay_vect
8036         using a breadth-first search variant.
8037         (output_tables): Don't call initiate_min_issue_delay_pass_states.
8039 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
8041         PR boostrap/44421
8042         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
8043         (df_byte_lr_bb_local_compute): Likewise.
8045 2010-06-03  Jason Merrill  <jason@redhat.com>
8047         Implement noexcept operator (5.3.7)
8048         * c-common.c (c_common_reswords): Add noexcept.
8049         * c-common.h (enum rid): Add RID_NOEXCEPT.
8051 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
8053         * config/darwin-driver.c (darwin_default_min_version): Use
8054         GCC-specific formats in diagnostics.
8055         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
8056         diagnostics.
8057         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
8058         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
8059         eval_spec_function, handle_braces, process_brace_body, main,
8060         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
8061         getenv_spec_function, compare_version_strings,
8062         version_compare_spec_function): Use GCC-specific formats in
8063         diagnostics.
8065 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8067         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
8068         that operand 0 and operand 1 are equal.
8069         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
8070         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
8071         and operand 1 are equal.
8072         <default>: Ditto.  Remove ??? comment.
8073         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
8074         and operand 1 are equal.
8075         <default>: Ditto.  Remove ??? comment.
8076         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
8077         are equal.
8078         (*add<mode>_4) <default>: Ditto.
8079         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
8081 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
8083         * config/i386/i386-protos.h (ix86_print_operand): Declare.
8084         * config/i386/i386.c (ix86_print_operand): Make non-static.
8085         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
8086         * output.h (output_operand): Declare.
8087         * final.c (output_operand): Make non-static.
8089 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
8091         PR rtl-optimization/44013
8092         * sched-deps.c (add_dependence_list_and_free): Don't free lists
8093         when processing debug insns.
8095         PR debug/41371
8096         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
8097         recursing.  Check that recursion is bounded.  Rename inner var
8098         to avoid hiding incoming argument.
8100 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8102         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
8103         operands[2] == 255.
8104         (*addqi_3): Ditto.
8105         (*addqi_4): Ditto.
8106         (*addqi_5): Ditto.
8107         (*addqi_ext_1_rex64): Ditto.
8108         (*addqi_ext_1): Ditto.
8110         (*addqi_4): Check for incdec_operand in QImode.
8112         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
8113         using SWI mode iterator.
8114         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
8115         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
8116         mode iterator.
8117         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
8118         using SWI mode iterator.
8120 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8122         PR c/25880
8123         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
8124         * c-format.c (gcc_diag_flag_specs): Add hash.
8125         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
8126         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
8127         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
8128         pp_c_cv_qualifiers. Handle qualifiers spelling here.
8129         (pp_c_type_qualifier_list): Call the function above.
8130         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
8131         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
8132         (WARN_FOR_QUALIFIERS): New macro.
8133         (convert_for_assignment): Use it.
8135 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
8137         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
8139 2010-06-04  Jan Hubicka  <jh@suse.cz>
8141         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
8142         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
8143         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
8144         DF_BYTE_LR_OUT): Update for embedded bitmaps.
8145         * fwprop.c (single_def_use_enter_block): Likewise.
8146         * ddg.c (create_ddg_dep_from_intra_loop_link,
8147         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
8148         * loop-iv.c (latch_dominating_def): Likewise.
8149         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
8150         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
8151         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
8152         df_rd_transfer_function, df_rd_top_dump,
8153         df_rd_bottom_dump): Update.
8154         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
8155         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
8156         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
8157         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
8158         df_lr_verify_solution_start, df_lr_verify_solution_end,
8159         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
8160         df_live_free_bb_info, df_live_alloc, df_live_reset,
8161         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
8162         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
8163         df_live_verify_solution_start, df_live_verify_solution_end,
8164         df_live_verify_transfer_functions, df_chain_create_bb,
8165         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
8166         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8167         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8168         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
8169         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
8170         df_byte_lr_transfer_function, df_byte_lr_top_dump,
8171         df_byte_lr_bottom_dump, df_create_unused_note,
8172         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
8173         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
8174         df_md_transfer_function, df_md_init, df_md_confluence_0,
8175         df_md_confluence_n,
8176         df_md_top_dump, df_md_bottom_dump): Update.
8177         (struct df_lr_problem_data): Embedd bitmap headers.
8179 2010-06-04  Jan Hubicka  <jh@suse.cz>
8181         * dce.c (dce_process_block): Do not re-scan already marked
8182         instructions.
8184 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
8186         PR rtl-optimization/39871
8187         PR rtl-optimization/40615
8188         PR rtl-optimization/42500
8189         PR rtl-optimization/42502
8190         * ira.c (init_reg_equiv_memory_loc: New function.
8191         (ira): Call it twice.
8192         * reload.h (calculate_elim_costs_all_insns): Declare.
8193         * ira-costs.c: Include "reload.h".
8194         (regno_equiv_gains): New static variable.
8195         (init_costs): Allocate it.
8196         (finish_costs): Free it.
8197         (ira_costs): Call calculate_elim_costs_all_insns.
8198         (find_costs_and_classes): Take estimated elimination costs
8199         into account.
8200         (ira_adjust_equiv_reg_cost): New function.
8201         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
8202         * reload1.c (init_eliminable_invariants, free_reg_equiv,
8203         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
8204         (elim_bb): New static variable.
8205         (reload): Move code out of here into init_eliminable_invariants and
8206         free_reg_equiv.  Call them.
8207         (calculate_elim_costs_all_insns): New function.
8208         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
8209         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
8210         but call note_reg_elim_costly if we turned a valid memory address
8211         into an invalid one.
8212         * Makefile.in (ira-costs.o): Depend on reload.h.
8214 2010-06-04  Julian Brown  <julian@codesourcery.com>
8216         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
8217         for pool ranges.
8219 2010-06-04  Richard Guenther  <rguenther@suse.de>
8221         PR lto/41584
8222         * cgraph.h (struct varpool_node): Add lto_file_data field.
8223         * lto-cgraph.c (input_varpool_node): Initialize it.
8225 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8227         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
8228         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
8229         predicate in "type" attribute calculation.
8230         (*addsi_1_zext): Ditto.
8231         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
8232         (*addsi_2_zext): Ditto.
8233         (*add<mode>_3): Ditto.
8234         (*addsi_3_zext): Ditto.
8235         (*add<mode>_5): Ditto.
8237 2010-06-03  Jan Hubicka  <jh@suse.cz>
8239         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
8240         of bitmap_bit_p.
8241         * cfganal.c (compute_dominance_frontiers_1): Likewise.
8243 2010-06-03  Jan Hubicka  <jh@suse.cz>
8245         * df-problems.c (df_create_unused_note, df_note_bb_compute):
8246         micro-optimize the checks when to add new note.
8248 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
8250         * final.c (output_asm_insn): Call
8251         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
8252         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
8253         (output_address): Call targetm.asm_out.print_operand_address.
8254         Update comments.
8255         * target.h (struct gcc_target): Add print_operand,
8256         print_operand_address, and print_operand_punct_valid_p fields.
8257         * targhooks.h (default_print_operand): Declare.
8258         (default_print_operand_address): Declare.
8259         (default_print_operand_punct_valid_p): Declare.
8260         * targhooks.c (default_print_operand): Define.
8261         (default_print_operand_address): Define.
8262         (default_print_operand_punct_valid_p): Define.
8263         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
8264         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
8265         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
8266         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
8267         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
8268         * vmsdbgout.c (addr_const_to_string): Update comment.
8269         * config/i386/i386.c (print_operand): Rename to...
8270         (ix86_print_operand): ...this.  Make static.
8271         (print_operand_address): Rename to...
8272         (ix86_print_operand_address): ...this.  Make static.  Call
8273         ix86_print_operand instead of PRINT_OPERAND.
8274         (ix86_print_operand_punct_valid_p): New function.
8275         (TARGET_PRINT_OPERAND): Define.
8276         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8277         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8278         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
8279         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8280         (PRINT_OPERAND): Delete.
8281         (PRINT_OPERAND_ADDRESS): Delete.
8282         * config/i386/i386-protos.h (print_operand): Delete prototype.
8283         (print_operand_address): Delete prototype.
8285 2010-06-03  Richard Guenther  <rguenther@suse.de>
8287         PR tree-optimization/44403
8288         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8289         Preserve pointer qualifiers.
8290         (vect_create_data_ref_ptr): Likewise.
8292 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
8294         PR c++/44294
8295         * defaults.h (MAX_FIXED_MODE_SIZE): New.
8297         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
8299 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
8301         PR debug/44375
8302         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
8303         return false if merging the bbs would lead to goto_locus
8304         location being lost from the IL.
8306 2010-06-03  Jan Hubicka  <jh@suse.cz>
8307             Jakub Jelinek  <jakub@redhat.com>
8309         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
8310         set->regs[i] is NULL or has just one entry.
8312 2010-06-03  Jan Hubicka  <jh@suse.cz>
8314         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
8315         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
8317 2010-06-03  Paul Brook  <paul@codesourcery.com>
8319         * config/arm/arm.c (FL_TUNE): Define.
8320         (arm_default_cpu, arm_cpu_select): Remove.
8321         (all_cores): Populate core field.
8322         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
8323         (arm_find_cpu): New function.
8324         (arm_handle_option): Lookup cpu/architecture names.
8325         (arm_override_options): Cleanup mcpu/march/mtune handling.
8326         (arm_file_start): Ditto.
8328 2010-06-03  Alan Modra  <amodra@gmail.com>
8330         PR target/44169
8331         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
8332         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
8333         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
8334         (rs6000_emit_load_toc_table): Likewise.
8336 2010-06-02  Jan Hubicka  <jh@suse.cz>
8338         * passes.c (init_optimization_passes): Put ipa reference
8339         after ipa pure-const.
8341 2010-06-02  Jan Hubicka  <jh@suse.cz>
8343         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
8344         calls_read_all and calls_write_all.
8345         (get_reference_optimization_summary): Fix formatting.
8346         (is_proper_for_analysis): Check that decl is not readonly.
8347         (propagate_bits): Check CONST/PURE/noreturn flags.
8348         (ipa_init): Move all_module_statics to optimization_summary_obstack.
8349         (analyze_function): Ignore indirect edges.
8350         (copy_global_bitmap): For all module statics, do nothing.
8351         (generate_summary): Do not print calls_read_all/calls_write_all.
8352         (read_write_all_from_decl): Take node as argument; check
8353         cgraph_node_cannot_return.
8354         (propagate): Reorganize read_all/write_all computation;
8355         check indirect edges; check ecf flags; use all_module_statics
8356         in the results; do not free all_module_statics.
8357         (stream_out_bitmap): Handle all_module_statics.
8358         (ipa_reference_write_optimization_summary): Likewise; use
8359         varpool/cgraph encoders to get boundaries.
8360         (ipa_reference_read_optimization_summary): Read in all_module_statics;
8361         use it when possible.
8363 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8365         PR target/44218
8366         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
8367         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
8369         * doc/extend.texi (powerpc builtins): Document vec_recip,
8370         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
8372         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
8373         (rs6000_emit_swrsqrt): Ditto.
8374         (rs6000_emit_swdivsf): Delete.
8375         (rs6000_emit_swdivdf): Ditto.
8376         (rs6000_emit_swrsqrtsf): Ditto.
8378         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
8379         describe the reciprocal estimate support for each type.
8380         (recip_options): Map -mrecip=<opt> into option bits.
8381         (gen_2arg_fn_t): New typedef for binary rtx gen function.
8382         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
8383         reciprocal estimate instructions.
8384         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
8385         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
8386         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
8387         cost information if -mdebug=cost or -mdebug=reg.
8388         (rs6000_override_options): Set -mrecip-precision for power6, and
8389         power7 machines.  If -mvsx or -mdfp, enable various options that
8390         came in previous instruction set ISAs, unless the option was
8391         explicitly disabled by the command line option.  Parse
8392         -mrecip=<opt> options.
8393         (rs6000_builtin_vectorized_function): Add support for vectorizing
8394         the reciprocal estimate builtins and expansions.
8395         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
8396         (bdesc_2arg): Add reciprocal estimate builtins.
8397         (bdesc_1arg): Add reciprocal square root estimate builtins.
8398         (rs6000_expand_builtin): Rewrite to use a switch statement,
8399         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
8400         (rs6000_init_builtins): Create declarations for reciprocal
8401         estimate builtins.
8402         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
8403         sized, prefer traditional floating point registers, if integer
8404         vector types, prefer altivec registers.  Don't actually look at
8405         the memory address any more.
8406         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
8407         builtins.
8408         (rs6000_load_constant_and_splat): New helper function to load up
8409         the constant for reciprocal estimate instructions.
8410         (rs6000_emit_madd): New helper function for generating
8411         multiply/add type instructions, based on the current switches.
8412         (rs6000_emit_msub): Ditto.
8413         (rs6000_emit_mnsub): Ditto.
8414         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
8415         replace a divide with a reciprocal estimate and fixup, adding
8416         support for machines with high precision and vectors.
8417         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
8418         low precision machines.
8419         (rs6000_emit_swdiv): New common function to be called to replace a
8420         division with reciprocal estimate and fixup.
8421         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
8422         for double and vector types.  Add support for high precision machines.
8424         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
8425         the reciprocal estimate instructions can be generated.
8426         (TARGET_FRE): Ditto.
8427         (TARGET_FRSQRTES): Ditto.
8428         (TARGET_FRSQRTE): Ditto.
8429         (RS6000_RECIP_*): New macros for reciprocal estimate support.
8431         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
8432         square root estimate on vectors.
8433         (re<mode>2): New insn for reciprocal division estimate on vectors.
8435         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
8436         New builtin.
8437         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
8438         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
8439         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
8440         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
8441         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
8442         (RS6000_BUILTIN_RSQRT): Ditto.
8443         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
8444         floating point builtin.
8446         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8447         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
8448         __RECIP_PRECISION__ based on the command line switches.
8449         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
8451         * config/rs6000/rs6000.opt (-mrecip): Document add support for
8452         replacing division instructions with reciprocal estimate and fixup.
8453         (-mrecip=<opt>): New option.
8454         (-mrecip-precision): Ditto.
8456         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
8457         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
8458         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
8459         precision scalar.
8461         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
8462         (UNSPEC_VREFP): Ditto.
8463         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
8464         conterparts with regard to support of -mno-fused-madd and -ffast-math.
8465         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
8466         reciprocal estimate instructions to be generated.
8467         (altivec_vrefp): Ditto.
8469         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
8470         estimate support.
8471         (rreg): New mode attribute for reciprocal estimate support.
8472         (recip<mode>3): New insn for division using reciprocal estimate
8473         and fixup builtins.
8474         (divide define_split): New define_split to convert floating point
8475         division to use reciprocal estimate if the user used the
8476         appropriate options and the split is run when we can add new
8477         pseudo registers for the fixup.
8478         (rsqrt<mode>2): New insn for reciprocal square root support.
8479         (recipsf3): Move into recip<mode>3.
8480         (recipdf3): Ditto.
8481         (fres): Use TARGET_FRES.
8482         (rsqrtsf2): Move into rsqrt<mode>2.
8483         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
8484         (copysignsf3): Add support for VSX.
8485         (fred): Use TARGET_FRE.
8486         (fred_fpr): Ditto.
8487         (rsqrtdf_internal1): New function for frsqrte instruciton.
8489         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
8490         (vec_rsqrt): Ditto.
8492 2010-06-03  Richard Guenther  <rguenther@suse.de>
8494         PR middle-end/44291
8495         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
8496         (set_user_assembler_libfunc): Likewise.
8498 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
8500         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
8501         defaults.h.
8502         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
8503         to defaults.h
8504         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
8505         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
8506         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
8507         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
8508         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
8509         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
8510         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
8511         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
8512         * defaults.h: Updated for above mentioned changes.
8514 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
8516         * c-common.c: Remove header include of tm_p.h.
8517         * Makefile.in (c-common.o): Remove TM_P_H dependency.
8519 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
8521         * tree.h (struct tree_decl_map): New type.
8522         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
8523         (tree_decl_map_hash): New prototype.
8524         (debug_expr_for_decl, value_expr_for_decl): Change into
8525         tree_decl_map hashtab from tree_map.
8526         (init_ttree): Adjust initialization.
8527         (tree_decl_map_hash): New function.
8528         (decl_debug_expr_lookup, decl_debug_expr_insert,
8529         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
8531 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8533         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
8534         linker emulations.
8535         * configure: Regenerate.
8536         * config.in: Regenerate.
8538         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
8539         (X86_64_EMULATION): Define.
8540         (TARGET_LD_EMULATION): Use them.
8542         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
8543         (SPARC64_EMULATION): Define.
8544         (LINK_ARCH_SPEC): Use them.
8546 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
8548         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
8549         smallest_mode_for_size for computing the precision types of new
8550         graphite IVs.  Do not call lang_hooks.types.type_for_size.
8552 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
8554         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
8555         information.
8556         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
8558 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
8560         PR middle-end/44363
8561         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
8562         return false instead.
8564 2010-06-02  Jan Hubicka  <jh@suse.cz>
8566         PR middle-end/44295
8567         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
8568         create new cgraph node to check callee.
8570 2010-06-02  Richard Guenther  <rguenther@suse.de>
8572         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
8574 2010-06-02  Richard Guenther  <rguenther@suse.de>
8576         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
8577         (lto_wrapper_cleanup): ... this.  Do not exit.
8578         (fatal): Adjust.  Exit here.
8579         (fatal_perror): Likewise.
8580         (fatal_signal): New function.
8581         (main): Set up signal handlers to cleanup temporary files.
8582         * Makefile.in (lto-wrapper.o): Adjust dependencies.
8584 2010-06-02  Richard Guenther  <rguenther@suse.de>
8586         PR tree-optimization/44377
8587         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
8589 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8591         * config/s390/2097.md (z10_fhex): Remove insn reservation.
8592         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
8593         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
8594         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
8595         instruction.
8596         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
8598 2010-06-02  Jan Hubicka  <jh@suse.cz>
8600         * bitmap.c (bitmap_descriptor): Add search_iter.
8601         (bitmap_find_bit): Increment it.
8602         (print_statistics): Print it.
8604 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
8606         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
8607         instead of gimple_build_call_vec.  Delete unnecessary local variable.
8609 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
8611         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
8612         change from yesterday.
8614 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
8616         * c-ada-spec.c: Clean up redundant includes.
8618 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
8620         * gimplify.c: Do not include except.h and optabs.h.
8621         (gimplify_body): Do not initialize RTL profiling.
8622         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
8623         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
8624         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
8625         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
8626         langhooks.h.
8628         * tree-pretty-print.h: Include pretty-print.h.
8629         * gimple-pretty-print.h: Include pretty-print.h.
8631         * tree-pretty-print.c: Do not include diagnostic.h.
8632         * tree-vrp.c: Likewise.
8633         * tree-tailcall.c: Likewise
8634         * tree-scalar-evolution.c: Likewise
8635         * tree-ssa-dse.c: Likewise
8636         * tree-chrec.c: Likewise
8637         * tree-ssa-sccvn.c: Likewise
8638         * tree-ssa-copyrename.c: Likewise
8639         * tree-nomudflap.c: Likewise
8640         * tree-call-cdce.c: Likewise
8641         * tree-stdarg.c: Likewise
8642         * tree-ssa-math-opts.c: Likewise
8643         * tree-nrv.c: Likewise
8644         * tree-ssa-sink.c: Likewise
8645         * tree-browser.c: Likewise
8646         * tree-ssa-loop-ivcanon.c: Likewise
8647         * tree-ssa-loop.c: Likewise
8648         * tree-parloops.c: Likewise
8649         * tree-ssa-address.c: Likewise
8650         * tree-ssa-ifcombine.c: Likewise
8651         * tree-if-conv.c: Likewise
8652         * tree-data-ref.c: Likewise
8653         * tree-affine.c: Likewise
8654         * tree-ssa-phiopt.c: Likewise
8655         * tree-ssa-coalesce.c: Likewise
8656         * tree-ssa-pre.c: Likewise
8657         * tree-ssa-live.c: Likewise
8658         * tree-predcom.c: Likewise
8659         * tree-ssa-forwprop.c: Likewise
8660         * tree-ssa-dce.c: Likewise
8661         * tree-ssa-ter.c: Likewise
8662         * tree-ssa-loop-prefetch.c: Likewise
8663         * tree-optimize.c: Likewise
8664         * tree-ssa-phiprop.c: Likewise
8665         * tree-object-size.c: Likewise
8666         * tree-outof-ssa.c: Likewise
8667         * tree-ssa-structalias.c: Likewise
8668         * tree-switch-conversion.c: Likewise
8669         * tree-ssa-reassoc.c: Likewise
8670         * tree-ssa-operands.c: Likewise
8671         * tree-vectorizer.c: Likewise
8672         * tree-vect-data-refs.c: Likewise
8673         * tree-vect-generic.c: Likewise
8674         * tree-vect-stmts.c: Likewise
8675         * tree-vect-patterns.c: Likewise
8676         * tree-vect-slp.c: Likewise
8677         * tree-vect-loop.c: Likewise
8678         * tree-ssa-loop-ivopts.c: Likewise
8679         * tree-ssa-loop-im.c: Likewise
8680         * tree-ssa-loop-niter.c: Likewise
8681         * tree-ssa-loop-unswitch.c: Likewise
8682         * tree-ssa-loop-manip.c: Likewise
8683         * tree-ssa-loop-ch.c: Likewise
8684         * tree-dump.c: Likewise
8685         * tree-complex.c: Likewise
8687         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
8688         * tree-ssa-uninit.c: Likewise
8689         * tree-ssa-threadupdate.c: Likewise
8690         * tree-ssa-uncprop.c: Likewise
8691         * tree-ssa-ccp.c: Likewise
8692         * tree-ssa-dom.c: Likewise
8693         * tree-ssa-propagate.c: Likewise
8694         * tree-ssa-alias.c: Likewise
8695         * tree-dfa.c: Likewise
8696         * tree-cfgcleanup.c: Likewise
8697         * tree-sra.c: Likewise
8698         * tree-ssa-copy.c: Likewise
8699         * tree-ssa.c: Likewise
8700         * tree-profile.c: Likewise
8701         * tree-cfg.c: Likewise
8702         * tree-ssa-threadedge.c: Likewise
8703         * tree-vect-loop-manip.c: Likewise
8705         * tree-inline.c: Do not include diagnostic.h and expr.h.
8706         Include rtl.h.
8707         (copy_decl_for_dup_finish): Do not use NULL_RTX.
8709         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
8710         * tree-loop-distribution.c: Likewise.
8712 2010-06-01  Jan Hubicka  <jh@suse.cz>
8714         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
8716 2010-06-01  Jan Hubicka  <jh@suse.cz>
8718         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
8719         remove return value.
8720         (split_bbs_on_noreturn_calls) .... here.
8721         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
8722         * tree-flow.h (fixup_noreturn_call): New.
8724 2010-06-01  Jan Hubicka  <jh@suse.cz>
8726         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
8728 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
8730         * tree.h (build_nt_call_list): Delete.
8731         * tree.c (build_nt_call_list): Delete.
8733 2010-06-01  Jan Hubicka  <jh@suse.cz>
8735         * fwprop.c: Make emit-rtl.h include last.
8736         * rtlanal.c: Include emit-rtl.h.
8737         * genautomata.c: Output emit-rtl include into insn-automata.c
8738         * df-scan.c: Include emit-rtl.h.
8739         * haifa-sched.c: Indlude emit-rtl.h.
8740         * mode-switching.c: Indlude emit-rtl.h.
8741         * graph.c: Indlude emit-rtl.h.
8742         * sel-sched.c: Include emit-rtl.h.
8743         * sel-sched-ir.c: Include emit-rtl.h.
8744         * ira-build.c: Include emit-rtl.h.
8745         * emit-rtl.c (first_insn, last_insn): Remove defines.
8746         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
8747         Move to emit-rtl.h.
8748         (set_new_first_and_last_insn, get_last_insn_anywhere,
8749         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
8750         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
8751         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
8752         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
8753         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
8754         Use accessor functions.
8755         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8756          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8757         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8758         mem_expr_equal_p): Move here from rtl.h.
8759         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
8760         Move here from emit-rtl.c; make inline.
8761         * cfglayout.h: Include emit-rtl.h.
8762         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8763          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8764         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8765         mem_expr_equal_p, get_insns, set_first-insn,
8766         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
8767         * reg-stack.c: Include emit-rtl.h.
8768         * dce.c: Likewise.
8770 2010-06-01  Jan Hubicka  <jh@suse.cz>
8772         * cgraph.h (tree_function_versioning): Update prototype.
8773         (cgraph_function_versioning): Update prototype.
8774         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
8775         bitmap.
8776         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
8777         (cgraph_materialize_clone, save_inline_function_body): Update use of
8778         tree_function_versioning.
8779         * tree-inline.c (copy_bb): Look for previous copied block to link
8780         after; fix debug output.
8781         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
8782         (copy_body): Likewise.
8783         (expand_call_inline): Update use of copy_body.
8784         (tree_function_versioning): Update use of copy body; accept
8785         blocks_to_copy and new_entry.
8787 2010-06-01  Jan Hubicka  <jh@suse.cz>
8789         * gegenrtl.c: Remove unnecesary prototypes.
8790         (gendecl): Remove.
8791         (gendef): Produce static inline.
8792         (gencode): Remove.
8793         (main): Do not decode parameters; generate header only.
8794         * Makefile.in (genrtl.c): Remove.
8796 2010-06-01  Jan Hubicka  <jh@suse.cz>
8798         * tree-switch-conversion.c (build_one_array): Make it readonly.
8800 2010-06-01  Richard Guenther  <rguenther@suse.de>
8802         * optabs.c (init_optabs): Guard all accesses to reinit.
8803         * ipa-pure-const.c (propagate): Fix another typo.
8804         * opts.c (common_handle_option): Split assignment to bool.
8805         * c-opts.c (c_common_handle_option): Likewise.
8807 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
8808             Matthew Gingell  <gingell@adacore.com>
8810         * doc/invoke.texi: Mention -fdump-ada-spec.
8811         * tree-dump.c (dump_files): Add ada-spec.
8812         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
8813         * tree-pass.h (tree_dump_index): Add TDI_ada.
8814         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
8815         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
8816         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
8817         * c-decl.c: Include c-ada-spec.h.
8818         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
8819         functions.
8820         (c_write_global_declarations): Add handling of -fdump-ada-spec.
8821         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
8822         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
8823         * c-ada-spec.h, c-ada-spec.c: New files.
8825 2010-06-01  Richard Guenther  <rguenther@suse.de>
8827         PR lto/43853
8828         * ipa-pure-const.c (get_function_state): Hand back varying state
8829         if we do not have one.
8830         (has_function_state): New function.
8831         (duplicate_node_data): Adjust.
8832         (remove_node_data): Likewise.
8833         (pure_const_write_summary): Likewise.
8834         (propagate): Likewise.  Fix typo.
8836 2010-06-01  Jan Hubicka  <jh@suse.cz>
8838         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
8839         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
8840         (execute_all_ipa_transforms): Do not play with the states.
8842 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
8844         * config/arm/t-linux-androideabi: New.
8845         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
8847 2010-06-01  Jan Hubicka  <jh@suse.cz>
8849         * tree-inline.c (estimate_num_insns): For stdarg functions look
8850         into call statement to count cost of argument passing.
8852 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
8854         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
8855         argument for fprintf.
8856         (ix86_output_addr_diff_elt): Likewise.
8857         (x86_function_profiler): Likewise.
8858         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
8859         (LPREFIX): Likewise.
8860         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8862 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
8864         PR target/44338
8865         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
8866         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
8867         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
8868         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
8869         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
8870         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
8871         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
8872         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
8873         TARGET_FUSED_MADD.
8875 2010-05-31  Jan Hubicka  <jh@suse.cz>
8877         * tree.h (tree_range_check_failed): Declare noreturn.
8879 2010-05-31  Jan Hubicka  <jh@suse.cz>
8881         * gimple.c (gimple_call_builtin_p): New function.
8882         * gimple.h (gimple_call_builtin_p): Declare.
8883         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
8884         to exit.
8885         (execute_warn_function_return): BUILT_IN_RETURN is return.
8886         (split_critical_edges): Return edges are not critical.
8887         (is_ctrl_altering_stmt): Builtin_in_return is altering.
8888         (gimple_verify_flow_info): Handle built_in_return.
8889         (execute_warn_function_return): Handle built_in_return.
8890         * ipa-pure-const.c (check_call): Ignore builtin_return.
8892 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
8894         PR middle-end/44337
8895         * expr.c (expand_assignment): Don't store anything for out-of-bounds
8896         array accesses with non-MEM.
8898         PR tree-optimization/44182
8899         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
8900         newly needs to end a bb is followed by debug stmts, instead return
8901         true from the function at the end.
8902         (maybe_move_debug_stmts_to_successors): New function.
8903         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
8905 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
8907         PR target/44161
8908         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
8910 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
8912         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
8913         for nested functions in non-optimized compilation.
8915 2010-05-31  Richard Guenther  <rguenther@suse.de>
8917         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
8919 2010-05-30  Jan Hubicka  <jh@suse.cz>
8921         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
8923 2010-05-30  Richard Guenther  <rguenther@suse.de>
8925         PR lto/42975
8926         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
8927         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
8928         no longer needed.
8930 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
8932         * config/darwin.c (output_objc_section_asm_op): Add comment.
8933         (name_needs_quotes): Add '_' to list of valid comment chars.
8934         (machopic_output_function_base_name): Remove unneeded quotes.
8935         (darwin_encode_section_info): Adjust asm whitespace.
8936         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
8937         (ASM_OUTPUT_LOCAL): Ditto.
8938         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
8939         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
8940         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
8942 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8944         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
8945         RS6000_OUTPUT_BASENAME unconditionally.
8946         (rs6000_output_function_epilogue): Likewise.
8948 2010-05-30  Jan Hubicka  <jh@suse.cz>
8950         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
8951         nodes.
8953 2010-05-30  Richard Guenther  <rguenther@suse.de>
8955         * tree-cfg.c (verify_gimple_assign_single): Implement
8956         verification for COND_EXPR rhs.
8958 2010-05-30  Jan Hubicka  <jh@suse.cz>
8960         * cgraph.h (cgraph_dump_file): Declare.
8961         * cgraphunit.c (cgraph_dump_file): Export.
8962         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
8964 2010-05-30  Jan Hubicka  <jh@suse.cz>
8966         * dwarf2out.c (reference_to_unused,
8967         premark_types_used_by_global_vars_helper): Avoid creation of new
8968         varpool nodes.
8970 2010-05-30  Jan Hubicka  <jh@suse.cz>
8972         * cgraph.h (cgraph_node_cannot_return,
8973         cgraph_edge_cannot_lead_to_return): New functions.
8974         * cgraph.c (cgraph_node_cannot_return,
8975         cgraph_edge_cannot_lead_to_return): Use them.
8976         * ipa-pure-const.c (pure_const_names): New static var.
8977         (check_call): Handle calls not leading to return.
8978         (pure_const_read_summary): Dump info read.
8979         (propagate): Dump info about propagation process; ignore side effects
8980         of functions not leading to exit; fix handling of pure functions.
8982 2010-05-30  Jan Hubicka  <jh@suse.cz>
8984         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
8985         for tail call epilogues.
8987 2010-05-30  Jan Hubicka  <jh@suse.cz>
8989         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
8990         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
8991         dump files.
8993 2010-05-29  Jan Hubicka  <jh@suse.cz>
8995         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
8996         node; remove references in node we no longer keep in cgrpah but need
8997         body of.
8999 2010-05-29  Jan Hubicka  <jh@suse.cz>
9001         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
9003 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9005         PR target/44165
9006         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
9008 2010-05-29  Jan Hubicka  <jh@suse.cz>
9010         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
9011         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
9012         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
9013         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
9014         debug_names_replaced_by, debug_update_ssa): Likewise.
9015         * sbitmap.c (debug_sbitmap): Likewise.
9016         * genrecog.c (debug_decision, debug_decision_list): Likewise.
9017         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
9018         debug_tree_chain): Likewise.
9019         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
9020         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
9021         * optabs.c (debug_optab_libfuncs): Likewise.
9022         (verify_loop_closed_ssa): Likewise.
9023         * value-prof.c (verify_histograms): Likewise.
9024         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
9025         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
9026         * cfghooks.c (verify_flow_info): Likewise.
9027         * fold-const.c (debug_fold_checksum): Likewise.
9028         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
9029         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
9030         Likewise.
9031         * omega.c (debug_omega_problem): Likewise.
9032         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
9033         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
9034         * dominance.c (verify_dominators, debug_dominance_info,
9035         debug_dominance_tree): Likewise.
9036         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
9037         * df_regno_debug, df_ref_debug,
9038         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
9039         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
9040         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
9041         * sel-sched.c (debug_state): Likewise.
9042         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
9043         Likewise.
9044         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
9045         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
9046         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
9047         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
9048         Likewise.
9049         * c-pretty-print.c (debug_c_tree): Likewise.
9050         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
9051         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
9052         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
9053         * ebitmap.c (debug_ebitmap): Likewise.
9054         * function.c (debug_find_var_in_block_tree): Likewise.
9055         * print-rtl.c (debug_rtx): Likewise.
9056         (debug_rtx_count): Likewise.
9057         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
9058         * stor-layout.c (debug_rli): Likewise.
9059         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
9060         * tree-data-ref.c (debug_data_references,
9061         debug_data_dependence_relations, debug_data_reference,
9062         debug_data_dependence_relation, debug_rdg_vertex,
9063         debug_rdg_component, debug_rdg): Likewise.
9064         * tree-affine.c (debug_aff): Likewise.
9065         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
9066         Likewise.
9067         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
9068         * emit-rtl.c (verify_rtl_sharing): Likewise.
9069         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
9070         debug_value_expressions): Likewise.
9071         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
9072         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
9073         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
9074         * cfglayout.c (verify_insn_chain): Likewise.
9075         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
9076         debug_clast_stmt, debug_generated_program): Likewise.
9077         * ggc-page.c (debug_print_page_list): Likewise.
9078         * tree-ssa-ter.c (debug_ter): Likewise.
9079         * graphite-dependences.c (debug_pddr): Likewise.
9080         * sched-deps.c (debug_ds): Likewise.
9081         * tree-ssa.c (verify_ssa): Likewise.
9082         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
9083         debug_scattering_functions, debug_iteration_domains, debug_pdr,
9084         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
9085         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
9086         * tree-inline.c (debug_find_tree): Likewise.
9087         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
9088         debug_ppl_powerset_matrix): Likewise.
9089         * var-tracking.c (debug_dv): Likewise.
9090         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
9091         * cfgloop.c (verify_loop_structure): Likewise.
9092         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
9093         * c-common.c (verify_sequence_points): Likewise.
9094         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
9095         debug_candidates, debug_rgn_dependencies): Likewise.
9096         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
9097         * debug_constraint_graph, debug_solution_for_var,
9098         debug_sa_points_to_info): Likewise.
9099         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
9100         Likewie.
9101         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
9102         debug_loops, debug_loop, debug_loop_num): Likewise.
9103         * passes.c (debug_pass): Likewise.
9104         (dump_properties): Likewise; add cfglayout property.
9105         (debug_properties): Likewise.
9106         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
9107         * varpool.c (debug_varpool): Likewise.
9108         * regcprop.c (debug_value_data): Likewise.
9109         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
9110         debug_immediate_uses_for): Likewise.
9112 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
9114         PR bootstrap/44315
9115         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
9116         Filter out insn-flags.h.
9118 2010-05-29  Jan Hubicka  <jh@suse.cz>
9120         * cgraph.h (struct varpool_node_set_def,
9121         struct cgraph_node_set_def): Remove unused AUX pointer.
9122         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
9123         VEC_empty macro.
9125 2010-05-29  Jan Hubicka  <jh@suse.cz>
9127         PR middle-end/44324
9128         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
9130 2010-05-29  Richard Guenther  <rguenther@suse.de>
9132         * lto-streamer.c (cached_bp): New global variable.
9133         (bitpack_create): Return the cached bitpack, if available.
9134         (bitpack_delete): Clear and cache the bitpack, if appropriate.
9135         (bp_pack_value): Remove redundant asserts.
9137 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
9139         PR middle-end/44306
9140         * tree-if-conv.c (is_true_predicate): New.
9141         (is_predicated): Use is_true_predicate.
9142         (add_to_predicate_list): Same.  Do not use unshare_expr.
9143         (add_to_dst_predicate_list): Same.
9145 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
9147         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
9148         field on edges.
9149         (predicate_bbs): Same.
9150         (clean_predicate_lists): Same.
9151         (find_phi_replacement_condition): Do not AND the predicate from
9152         edge->aux.
9154 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
9156         PR bootstrap/44315
9157         * Makefile.in (build/gencondmd.o): Add a missing `\'.
9159 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9161         PR target/44261
9162         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
9163         (negdf2): Adjust expander pattern and use negdf2_slow.
9164         (negsf2): Likewise.
9166 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
9168         * basic-block.h (struct control_flow_graph): Move last_label_uid field
9169         up.
9170         * df.h (struct df_base_ref): Move regno field up.
9171         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
9172         * expr.h (struct separate_ops): Move location field up.
9173         * optabs.h (struct optab_d): Move libcall_basename field down.
9174         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
9175         * config/i386/i386.h (struct machine_function): Convert call_abi field
9176         into a bitfield.  Move cfa field to the end of the structure.
9178 2010-05-29  Jan Hubicka  <jh@suse.cz>
9180         * varpool.c (varpool_get_node): Fix lookup.
9182 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9184         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
9185         RTL specific prototypes with #ifdef RTX_CODE.
9186         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
9187         * config/spu/t-spu-elf: Fix dependencies.
9189         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
9191 2010-05-29  Mike Stump  <mikestump@comcast.net>
9193         PR bootstrap/44315
9194         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
9195         TM_H when building to avoid dependency loops.
9197 2010-05-29  Jan Hubicka  <jh@suse.cz>
9199         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
9200         refs and body; not the whole node for masters of materialized clones.
9202 2010-05-29  Mike Stump  <mikestump@comcast.net>
9204         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
9206 2010-05-29  Jan Hubicka  <jh@suse.cz>
9208         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
9209         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
9210         use of clone_function_name.
9211         * cgraph.h (cgraph_create_virtual_clone,
9212         cgraph_function_versioning): update prototypes.
9213         (clone_function_name): Declare.
9214         * ipa-cp.c (ipcp_insert_stage): Update call of
9215         cgraph_create_virtual_clone.
9216         * omp-low.c (create_omp_child_function_name): Use
9217         cgraph_create_virtual_clone.
9218         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
9219         (cgraph_function_versioning): Take SUFFIX argument; produce new name
9220         and make decl local.
9222 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9224         * vec.h: Include statistics.h
9225         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
9226         with VEC_H.
9228 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9230         * c-lex.c: Do not include c-tree.h.
9231         * c-pretty-print.c: Likewise.
9232         * c-opts.c: Likewise.
9233         * c-gimplify.c: Likewise.
9234         * c-common.c: Likewise.
9235         * c-dump.c: Likewise.  Include c-common.h.
9237 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9239         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
9240         before including diagnostic-core.h.
9241         (c_cpp_error): New prototype moved from c-tree.h.
9242         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
9243         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
9244         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
9245         (c_cpp_error): Prototype moved to c-common.h.
9246         * Makefile.in: Update dependency for C_COMMON_H.
9248 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9250         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
9251         * c-common.c (c_register_addr_space): Remove here.
9252         * c-decl.c (c_register_addr_space): Re-add here.
9254 2010-05-28  Mike Stump  <mikestump@comcast.net>
9256         * config/darwin-c.c: Remove c-tree.h include.
9258 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9260         * gcc.c: Include diagnostic.h.
9261         (error_count): Remove.  All users changed to use errorcount.
9262         (programname): Remove.  All users changed to use progname.
9263         (fancy_abort, internal_error, fatal_error, error, warning, inform,
9264         fnotice): Remove.
9265         (execute): Don't include "Internal error" and bug reporting
9266         information in argument of internal_error call.
9267         (process_command): Don't increment error_count after calling
9268         perror_with_name.
9269         (input_filename): Rename to gcc_input_filename.  All users
9270         changed.
9271         (main): Call diagnostic_initialize.  Register delete_temp_files
9272         with atexit.  Use seen_error to test for errors.
9273         * gcc.h: Include diagnostic-core.h.
9274         (fatal_error, error, warning): Remove.
9275         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
9276         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
9277         (gcc.o): Update dependencies.
9279 2010-05-28  Jeff Law  <law@redhat.com>
9281         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
9282         functions.
9283         * ira.h (ira_bad_reload_regno): Declare
9284         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
9286         * ira-color.c (update_curr_costs): Free updated hard reg costs.
9287         (ira_reassign_conflict_allocnos): Remove bogus asserts.
9288         (allocno_reload_assign): Likewise.
9290 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
9292         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
9293         build1_stat.
9295 2010-05-28  Richard Guenther  <rguenther@suse.de>
9297         PR lto/44312
9298         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
9299         Stream fixed-point constants mode.
9300         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
9301         and TYPE_PRECISION.
9302         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
9303         Stream fixed-point constants mode.
9304         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
9305         and TYPE_PRECISION.
9307 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
9309         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
9310         only place it was called from.
9311         (number_of_latch_executions): Do not return chrec_dont_know when the
9312         may_be_zero is a runtime condition: instead, return a COND_EXPR
9313         including the may_be_zero condition.
9314         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
9315         of nb_iterations.
9316         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
9317         COND_EXPRs.
9319 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
9321         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
9322         generate COND_EXPRs for degenerate_phi_result.
9324 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
9326         PR middle-end/44293
9327         * tree-if-conv.c (if_convertible_loop_p): Check the
9328         if-convertibility of phi nodes in non predicated BBs.
9330 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9332         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
9334 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9336         PR driver/15303
9337         * gcc.c (inform, warning, inform): New functions.
9338         (fatal_ice): Rename to internal_error; change cmsgid parameter to
9339         gmsgid.  All callers changed.
9340         (notice): Rename to fnotice; add parameter fp.  All callers changed.
9341         (fatal_error): Rename to fatal_signal.  All users changed.
9342         (fatal): Rename to fatal_error; change cmsgid parameter to
9343         gmsgid.  All callers changed.
9344         (process_command): Use warning instead of error for warnings.
9345         (end_going_arg): Don't use _() around argument of error.
9346         (do_spec_1): Use inform for message from %n specs.  Use warning
9347         instead of error for warnings.
9348         (main): Use inform for comparison messages.  Use warning for
9349         message about unused linker input.
9350         (error): Increment error_count.  Print "error: ".
9351         * gcc.h (fatal): Change to fatal_error.
9352         (warning): Declare.
9353         * config/darwin-driver.c (darwin_default_min_version): Use warning
9354         instead of fprintf for warnings.
9355         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
9357 2010-05-28  Julian Brown  <julian@codesourcery.com>
9359         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
9360         (*thumb2_addsi3_compare0_scratch): New.
9361         * config/arm/constraints.md (Pv): New.
9362         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
9363         for ARM mode only.
9364         (*addsi3_compare0_scratch): Likewise.
9366 2010-05-28  Jan Hubicka  <jh@suse.cz>
9368         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
9369         check.
9370         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
9371         only on local statics.
9373 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
9375         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
9377 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
9379         PR bootstrap/44314
9380         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
9381         (OPTION_GLIBC): Define.
9383 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
9385         PR debug/41048
9386         * dwarf2out.c (double_int_type_size_in_bits): New function.
9387         (round_up_to_align): Change first argument and return value to
9388         double_int.
9389         (field_byte_offset): Work internally on double_ints.
9391         PR target/43636
9392         * builtins.c (expand_movstr): Use a temporary pseudo instead
9393         of target even when target is not NULL and not const0_rtx, but
9394         fails movstr predicate.
9395         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
9397 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9399         * final.c (rest_of_clean_state): Use %m in errors instead of
9400         strerror (errno).
9401         * gengtype.c (read_input_list, close_output_files): Use xstrerror
9402         instead of strerror.
9403         * toplev.c (process_options): Use %m in errors instead of strerror
9404         (errno).
9405         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
9406         (errno).
9408 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
9410         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
9411         (ix86_canonical_va_list_type): Make static.  Add declaration.
9412         (ix86_enum_va_list): Make static.  Reindent.
9413         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
9414         (ix86_canonical_va_list_type): Ditto.
9415         (ix86_enum_va_list): Ditto.
9417 2010-05-28  Richard Guenther  <rguenther@suse.de>
9419         * lto-wrapper.c (run_gcc): With -save-temps generate a
9420         user-visible ltrans filename.  Fixup ltrans unit numbering.
9422 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
9424         * c-common.c (c_common_nodes_and_builtins): Replace use
9425         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
9426         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
9427         to ix86_enum_va_list.
9428         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
9429         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
9430         (TARGET_ENUM_VA_LIST_P): Add hook description.
9431         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
9432         * target.h (gcc_target): Add enum_va_list hook.
9434         PR bootstrap/44299
9435         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
9436         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
9437         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
9439 2010-05-28  Alan Modra  <amodra@gmail.com>
9441         PR target/44266
9442         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9443         emit_library_call machinery to set up __tls_get_addr calls.
9445 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9447         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
9449 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
9451         Revert fix for PR c++/44188
9452         * c-common.c (is_typedef_decl): Revert the moving of  this
9453         definition ...
9454         * tree.c (is_typedef_decl): ... here.
9455         (typdef_variant_p): Revert the moving of this  definition
9456         here from gcc/cp/tree.c.
9457         * c-common.h (is_typedef_decl): Revert the moving of this
9458         declaration ...
9459         * tree.h (is_typedef_decl): ... here.
9460         (typedef_variant_p): Revert the moving of this  declaration here
9461         from gcc/cp/cp-tree.h
9462         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
9463         (gen_tagged_type_die): Revert the splitting out of ...
9464         (gen_type_die_with_usage): ... this function. Revert the anonymous
9465         tagged type handling.
9466         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
9467         typedefs naming anonymous tagged types.
9469 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
9471         * config/rs6000/rs6000-modes.def (PSImode): Delete.
9473 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
9475         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
9476         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
9477         throughout.
9478         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
9479         "xer" to "ca".
9480         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
9481         XER_REGS to CA_REGS throughout.
9482         * config/rs6000/rs6000.h: Same.
9483         (ADDITIONAL_REGISTER_NAMES): Add "xer".
9484         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
9485         that mode_iterator "P" is the size for arithmetic carries as well.
9486         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
9488 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
9490         PR bootstrap/44255
9491         * combine.c (struct rtx_subst_pair): Define unconditionally.
9492         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
9493         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
9494         Call make_compound_operation on pair->to.
9495         (propagate_for_debug): Don't call make_compound_operation here.
9496         Always use simplify_replace_fn_rtx.
9498 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
9500         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
9501         * config/xtensa/xtensa.c (override_options): Check
9502           TARGET_FORCE_NO_PIC and set flag_pic.
9503         * config/xtensa/xtensa.opt: Document -mforce-no-pic
9505 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
9507         PR bootstrap/44299
9508         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
9509         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
9511 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
9513         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
9514         toplev.h.
9515         * diagnostic.c: Don't include toplev.h.
9516         (progname): Define.  Moved from toplev.c.
9517         (seen_error): New function.
9518         * diagnostic.h: Include diagnostic-core.h.
9519         (diagnostic_t, emit_diagnostic): Don't declare here.
9520         * toplev.c (progname): Move to toplev.c.
9521         (emit_debug_global_declarations, compile_file, finalize,
9522         do_compile, toplev_main): Use seen_error.
9523         * toplev.h: Include diagnostic-core.h.
9524         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
9525         internal_error, warning, warning_at, error, error_n, error_at,
9526         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
9527         verbatim, fnotice, progname): Move to diagnostic-core.h.
9528         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
9529         (expand_builtin_expect): Use seen_error.
9530         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
9531         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
9532         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
9533         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
9534         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
9535         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
9536         errorcount for errors.
9537         * c-opts.c (c_common_finish): Use seen_error.
9538         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
9539         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
9540         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
9541         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
9542         (get_coverage_counts): Use seen_error.
9543         * dwarf2out.c (dwarf2out_finish): Use seen_error.
9544         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
9545         gimplify_body): Use seen_error.
9546         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
9547         * ipa-pure-const.c (gate_pure_const): Use seen_error.
9548         * ipa-reference.c (gate_reference): Use seen_error.
9549         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
9550         * lambda-code.c: Include diagnostic-core.h instead of
9551         diagnostic.h.
9552         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
9553         * lto-compress.c: Include diagnostic-core.h instead of
9554         diagnostic.h.
9555         * lto-section-in.c: Include diagnostic-core.h instead of
9556         diagnostic.h.
9557         * lto-streamer-out.c: Include diagnostic-core.h instead of
9558         diagnostic.h.
9559         * lto-streamer.c: Include diagnostic-core.h instead of
9560         diagnostic.h.
9561         (gate_lto_out): Use seen_error.
9562         * matrix-reorg.c: Include diagnostic-core.h instead of
9563         diagnostic.h.
9564         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
9565         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
9566         (gate_expand_omp, lower_omp_1): Use seen_error.
9567         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
9568         (rest_of_decl_compilation, rest_of_type_compilation,
9569         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
9570         * tree-cfg.c (label_to_block_fn): Use seen_error.
9571         * tree-inline.c (optimize_inline_calls): Use seen_error.
9572         * tree-mudflap.c (mudflap_finish_file): Use
9573         seen_error.
9574         * tree-optimize.c (gate_all_optimizations,
9575         gate_all_early_local_passes, gate_all_early_optimizations): Use
9576         seen_error.
9577         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
9578         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
9579         (varpool_remove_unreferenced_decls,
9580         varpool_assemble_pending_decls): Use seen_error.
9581         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
9582         (TOPLEV_H, DIAGNOSTIC_H): Update.
9583         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
9584         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
9585         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
9586         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
9587         coverage.o, lambda-code.o): Update dependencies.
9589 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
9591         PR c++/44188
9592         * c-common.c (is_typedef_decl): Move this definition ...
9593         * tree.c (is_typedef_decl): ... here.
9594         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
9595         * c-common.h (is_typedef_decl): Move this declaration ...
9596         * tree.h (is_typedef_decl): ... here.
9597         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
9598         * dwarf2out.c (is_naming_typedef_decl): New function.
9599         (gen_tagged_type_die): Split out of ...
9600         (gen_type_die_with_usage): ... this function. When an anonymous
9601         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
9602         is emitted for the typedef.
9603         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
9604         anonymous tagged types.
9606 2010-05-27  Jason Merrill  <jason@redhat.com>
9608         * print-tree.c (debug_vec_tree): New fn.
9609         (print_vec_tree): New fn.
9610         * tree.h: Declare them.
9611         * gdbinit.in (pvt): New command.
9613         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
9615         * gdbinit.in (pdd): New command.
9617 2010-05-27  Jan Hubicka  <jh@suse.cz>
9619         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
9620         (update_caller_keys): Return early if there are no callers;
9621         only update fibheap when decresing the key.
9622         (update_callee_keys): Avoid recursion.
9623         (decide_inlining_of_small_functions): When badness does not match;
9624         re-insert into fibheap.
9626 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
9628         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
9629         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
9630         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
9631         (ALL_HOST_OBJS): Now a union of the above two.
9632         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
9633         all files in ALL_HOST_FRONTEND_OBJS.
9634         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
9636         * c-common.c: Pretend to be a backend file by undefining
9637         IN_GCC_FRONTEND (still need rtl.h here).
9639 2010-05-27  Jan Hubicka  <jh@suse.cz>
9641         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
9642         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
9644 2010-05-27  Jan Hubicka  <jh@suse.cz>
9646         * sched-ebb.c: Rename struct deps to struct deps_desc.
9647         * ddg.c: Likewise.
9648         * sel-sched-ir.c: Likewise.
9649         * sched-deps.c: Likewise.
9650         * sched-int.h: Likewise.
9651         * sched-rgn.c: Likewise.
9653 2010-05-27  Jon Beniston  <jon@beniston.com>
9655         PR 43726
9656         * config/lm32/lm32.h: Remove definition of
9657         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
9659 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
9661         PR lto/44230
9662         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
9664 2010-05-27  Richard Guenther  <rguenther@suse.de>
9666         PR tree-optimization/44284
9667         * tree-vect-stmts.c (vectorizable_assignment): Handle
9668         sign-changing conversions as simple copy.
9670 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9672         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
9673         Bionic C library.
9674         (__gthread_active_p): Check for pthread_create if compiling against
9675         Bionic C library.
9677 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9679         Support compilation for Android platform.  Reimplement -mandroid.
9681         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
9682         (*android*): Set ANDROID_DEFAULT.
9683         (arm*-*-linux*): Include linux-android.h.
9684         (arm*-*-eabi*): Don't include previous -mandroid implementation.
9685         * config/arm/eabi.h: Remove, move Android-specific parts ...
9686         * config/linux-android.h: ... here.  New file.
9687         * config/arm/eabi.opt: Rename to ...
9688         * config/linux-android.opt: ... this.
9689         (mandroid): Allow -mno-android option.  Initialize based on
9690         ANDROID_DEFAULT.
9691         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
9692         Move logic to corresponding LINUX_TARGET_* macros.
9693         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
9694         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
9695         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
9696         Android definitions.
9697         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
9698         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
9699         Document.
9701 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9703         Add support for Bionic C library
9705         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
9706         macro.
9707         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
9708         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
9710         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
9711         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
9712         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
9713         to support multiple C libraries.  Handle Bionic.
9714         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
9715         (BIONIC_DYNAMIC_LINKER64): Define.
9716         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
9717         Update.
9718         (TARGET_HAS_SINCOS): Enable for Bionic.
9720         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
9721         the last option specified on command line take effect.
9722         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
9723         (mbionic): New.
9724         (mglibc, muclibc): Update.
9726         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
9727         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
9728         DEFAULT_LIBC.
9730         * doc/invoke.texi (-mglibc, -muclibc): Update.
9731         (-mbionic): Document.
9733 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9735         * c-common.h (c_register_addr_space): Add prototype.
9736         (ADDR_SPACE_KEYWORD): Remove.
9737         * c-common.c (c_register_addr_space): New function.
9738         (c_addr_space_name): Reimplement.
9739         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
9741         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
9742         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
9744         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
9745         Remove TARGET_ADDR_SPACE_KEYWORDS.
9747 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
9749         * input.c: New file.
9750         * input.h (main_input_filename): Move declaration to toplev.h.
9751         * toplev.c (input_location, line_table): Move to input.c
9752         * toplev.h (main_input_filename): Move declaration from input.h.
9753         * tree.c (expand_location): Move to input.c.
9754         * Makefile.in (OBJS-common): Add input.o.
9755         (input.o): Add dependencies.
9757 2010-05-27  Richard Guenther  <rguenther@suse.de>
9759         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
9760         for non-existant files.
9761         (fork_execute): Mark args_name file as deleted.
9763 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
9765         PR bootstrp/44287
9766         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
9767         (narrow_signed_type): Likewise.
9769 2010-05-26  Jan Hubicka  <jh@suse.cz>
9771         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
9772         edge only when checking is enabled; check using former_clone_of;
9773         check inline clones too.
9774         (cgraph_materialize_clone): Record former_clone_of pointer.
9775         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
9776         combining redirections; dump args_to_skip bitmap
9777         (cgraph_materialize_all_clones): Do no redirection here.
9778         * ipa-inline.c (inline_transform): Do redirection here.
9779         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
9780         cheking only).
9782 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9784         * config/avr/avr-c.c: Do not include regs.h.
9785         Include cpplib.h for cpp_define and tree.h for c-common.h.
9786         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
9787         * config/avr/t-avr: Fix dependencies for avr-c.o.
9789 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9791         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
9792         string instead of SYMBOL_REF rtx.
9793         * rtl.h (set_stack_check_libfunc): Move prototype from here...
9794         * libfuncs.h: ...to here.  Adjust for explow.c change.
9796 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
9798         * pretty-print.c: Don't include ggc.h.
9799         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
9800         (identifier_to_locale): Use them for allocation.
9801         * pretty-print.h (identifier_to_locale_alloc,
9802         identifier_to_locale_free): Declare.
9803         * toplev.c (alloc_for_identifier_to_locale): New.
9804         (general_init): Set identifier_to_locale_alloc and
9805         identifier_to_locale_free.
9806         * Makefile.in (pretty-print.o): Update dependencies.
9808 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
9810         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
9811         pointer types if they have different alignment or mode.
9813 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
9815         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9816         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9817         * config/sparc/sparc-protos.h (function_value): Remove declaration.
9818         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
9819         sparc_function_value_regno_p): New functions.
9820         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9821         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9822         (function_value): Rename to...
9823         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
9824         argument to 'outgoing'.
9825         (function_arg_record_value, function_arg_union_value,
9826         function_arg_vector_value): Update comment.
9828 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
9830         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
9831         (fde_needed_for_eh_p): New predicate.
9832         (output_call_frame_info): Use it throughout to decide whether FDEs
9833         are needed for EH purpose.
9834         (dwarf2out_begin_prologue): Reorder assignments.
9836 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9838         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
9839         special case loop->header.
9840         (is_predicated): New.
9841         (if_convertible_loop_p): Call it.
9843 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9845         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
9846         iterator in parameter.  Do not generate code during the analysis.
9847         (tree_if_convert_cond_stmt): Removed.
9848         (tree_if_convert_stmt): Removed.
9849         (predicate_bbs): New.
9850         (if_convertible_loop_p): Call predicate_bbs.
9851         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
9852         now contains all the analysis part.
9854 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9856         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
9857         statements in the analysis part.
9858         (tree_if_convert_stmt): Update comment.
9859         (remove_conditions_and_labels): New.
9860         (combine_blocks): Call remove_conditions_and_labels.
9861         (tree_if_conversion): Update comment.
9863 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9865         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
9866         than 2 predecessors or more than 2 successors.
9868 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9870         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
9871         of loops in which the data dependence analysis fails.
9873 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9875         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
9876         CDI_POST_DOMINATORS.
9877         (tree_if_conversion): Same.
9879 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9881         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
9883 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9885         * tree-if-conv.c: Update copyright years.  Fix comments.
9886         Fix indentation.
9888 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
9890         * builtin-types.def (BT_INT128): New primitive type.
9891         (BT_UINT128): Likewise.
9892         * c-common.c (c_common_r): Add __int128 keyword.
9893         (c_common_type_for_size): Handle __int128.
9894         (c_common_type_for_mode): Likewise.
9895         (c_common_signed_or_unsigned_type): Likewise.
9896         (c_common_nodes_and_builtins): Add builtin type
9897         if target supports 128-bit integer scalar.
9898         * c-common.h (enum rid): Add RID_INT128.
9899         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
9900         if target supports 128-bit integer scalar.
9901         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
9902         (finish_declspecs): Likewise.
9903         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
9904         (c_token_starts_declspecs): Likewise.
9905         (c_parser_declspecs): Likewise.
9906         (c_parser_attributes): Likewise.
9907         (c_parser_objc_selector): Likewise.
9908         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
9909         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
9910         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
9911         * tree.c (make_or_reuse_type): Likewise.
9912         (make_unsigned_type): Likewise.
9913         (build_common_tree_nodes_2): Likewise.
9914         * tree.h (enum integer_type_kind): Add itk_int128 and
9915         itk_unsigned_int128.
9916         (int128_integer_type_node): New define.
9917         (int128_unsigned_type_node): New define.
9918         * doc/extend.texi: Add documentation about __int128 type.
9920 2010-05-26  Richard Guenther  <rguenther@suse.de>
9922         * tree-ssa-sccvn.c (copy_nary): Adjust.
9923         (copy_phis): Rename to ...
9924         (copy_phi): ... this.  Adjust.
9925         (copy_references): Rename to ...
9926         (copy_reference): ... this.  Adjust.
9927         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
9928         result into the valid table.
9930 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9932         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
9933         insn-config.h, insn-codes.h, recog.h, and optabs.h.
9935 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9937         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
9939 2010-05-26  Richard Guenther  <rguenther@suse.de>
9941         * opts.c (common_handle_option): Handle OPT_Ofast.
9943 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
9945         * diagnostic.c: Don't include opts.h.
9946         (permissive_error_option): Define.
9947         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
9948         for classify_diagnostic.  Don't use memset for
9949         classify_diagnostic.  Initialize new and recently added fields.
9950         (diagnostic_classify_diagnostic): Use context->n_opts instead of
9951         N_OPTS.
9952         (diagnostic_report_diagnostic): Pass context parameter to
9953         diagnostic_report_warnings_p.  Use option_enabled and option_name
9954         hooks from context.
9955         (emit_diagnostic): Use permissive_error_option.
9956         (permerror): Likewise.
9957         * diagnostic.h: Don't include options.h.
9958         (struct diagnostic_context): Add n_opts, opt_permissive,
9959         inhibit_warnings, warn_system_headers, option_enabled and
9960         option_name fields.  Change classify_diagnostic to a pointer.
9961         * opts-diagnostic.h: New file.
9962         * opts.c: Include opts-diagnostic.h.
9963         (common_handle_option): Set global_dc fields for -Wfatal-errors,
9964         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
9965         (option_name): New function.
9966         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
9967         (c_common_handle_option): Set global_dc->permissive for
9968         -fpermissive.
9969         * c-common.c (c_cpp_error): Save and restore
9970         global_dc->warn_system_headers, not variable warn_system_headers.
9971         * toplev.c: Include opts-diagnostic.h.
9972         (general_init): Update call to diagnostic_initialize.  Set
9973         global_dc->show_column, global_dc->option_enabled and
9974         global_dc->option_name.
9975         (process_options): Don't set global_dc fields here.
9976         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
9977         (diagnostic.o, opts.o, toplev.o): Update dependencies.
9979 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
9981         * config/picochip/picochip.md (movsi): Split a movsi from a
9982         const after reload.
9984 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9986         * ggc-zone.c: Update copyright year.
9987         (poison_region): Mark memory for Valgrind as undefined before
9988         memset () call and inaccessible afterwards.
9989         (ggc_pch_total_size): Change type of i to int.
9991 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9993         * ggc-common.c (ggc_free_overhead): Allow empty slot.
9995 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9997         * ggc-common.c: Update copyright year.
9998         (ggc_rlimit_bound): Remove prototype.  Compile only if
9999         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
10000         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
10001         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
10002         (ggc_min_heapsize_heuristic): Likewise.
10004 2010-05-26  Richard Guenther  <rguenther@suse.de>
10006         PR rtl-optimization/44164
10007         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
10008         no-common access-path disambiguation.
10009         (indirect_ref_may_alias_decl_p): Adjust.
10010         (indirect_refs_may_alias_p): Likewise.
10011         (refs_may_alias_p_1): Likewise.
10013 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10015         * c-typeck.c: Do not include expr.h.
10017 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10019         * rtl.h (decl_default_tls_model): Move prototype from here...
10020         * output.h: ...to here.
10021         * c-decl.c: Do not include rtl.h.
10022         * c-pragma.c: Likewise.
10023         * c-parser.c: Likewise.
10024         * c-gimplify.c: Likewise.  And also not hard-reg-set.
10025         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
10026         FIXME note for it.  Add a FIXME note for expr.h.
10027         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
10028         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
10029         defined.
10031 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
10033         PR target/44199
10034         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
10035         or total_size is larger than red zone size for non-V4 ABI, emit a
10036         stack_tie resp. frame_tie insn before stack pointer restore.
10037         * config/rs6000/rs6000.md (frame_tie): New insn.
10039 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
10041         * function.h (struct function): Add can_throw_non_call_exceptions bit.
10042         * lto-streamer-in.c (input_function): Stream it in.
10043         * lto-streamer-out.c (output_function): Stream it out.
10044         * function.c (allocate_struct_function): Set it.
10045         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
10046         for flag_non_call_exceptions.
10047         * cfgbuild.c (control_flow_insn_p): Likewise.
10048         (make_edges): Likewise.
10049         * cfgexpand.c (expand_stack_alignment): Likewise.
10050         * combine.c (distribute_notes): Likewise.
10051         * cse.c (cse_extended_basic_block): Likewise.
10052         * except.c (insn_could_throw_p): Likewise.
10053         * gcse.c (simple_mem): Likewise.
10054         * ipa-pure-const.c (check_call): Likewise.
10055         (check_stmt ): Likewise.
10056         * lower-subreg.c (lower-subreg.c): Likewise.
10057         * optabs.c (emit_libcall_block): Likewise.
10058         (prepare_cmp_insn): Likewise.
10059         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
10060         * postreload.c (rest_of_handle_postreload): Likewise.
10061         * reload1.c (reload_as_needed): Likewise.
10062         (emit_input_reload_insns): Likewise.
10063         (emit_output_reload_insns): Likewise.
10064         (fixup_abnormal_edges): Likewise.
10065         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
10066         * store-motion.c (find_moveable_store): Likewise.
10067         * tree-eh.c (stmt_could_throw_p): Likewise.
10068         (tree_could_throw_p): Likewise.
10069         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10070         * config/arm/arm.c (arm_expand_prologue): Likewise.
10071         (thumb1_expand_prologue): Likewise.
10072         * config/rx/rx.md (cbranchsf4): Likewise.
10073         (cmpsf): Likewise.
10074         * config/s390/s390.c (s390_emit_prologue): Likewise.
10075         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
10076         (inline_forbidden_into_p): New predicate.
10077         (expand_call_inline): Use it to forbid inlining.
10078         (tree_can_inline_p): Likewise.
10080 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10082         * config/i386/i386-c.c: Do not include rtl.h.
10083         * config/i386/t-i386: Update dependencies.
10085 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10087         * attribs.c: Do not include rtl.h.
10088         * Makefile.in: Update dependencies.
10090 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
10092         * double-int.h (double_int_and): New.
10093         * combine.c (try_combine): Clean up, use double_int_* and
10094         immed_double_int_const functions.
10096 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10098         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
10099         stderr to /dev/null instead of grep -q.
10100         * configure: Regenerate.
10102 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10104         * Makefile.in (EXCEPT_H): Fix typo.
10106 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
10108         * ira-build.c (update_conflict_hard_reg_costs): New.
10109         (ira_build): Call update_conflict_hard_reg_costs.
10111 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
10113         PR debug/41371
10114         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
10115         ENABLE_CHECKING.
10116         (intersect_loc_chains): Walk the s2var's loc_chain together
10117         with s1node chain as long as the locations are equal, don't
10118         call find_loc_in_1pdv in that case.
10120         PR debug/42801
10121         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
10122         (copy_bind_expr): ... instead of here.
10123         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
10124         if the block hasn't been remapped.
10125         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
10126         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
10128 2010-05-25  Richard Guenther  <rguenther@suse.de>
10130         PR middle-end/44069
10131         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
10132         out-of-bounds array accesses.
10134 2010-05-25  Richard Guenther  <rguenther@suse.de>
10136         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
10137         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
10138         (run_gcc): Re-organize to make cleanup easier.
10140 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10142         * config/s390/s390.c (optimization_options): Fix and move the
10143         flag_prefetch_loop_arrays override ...
10144         (override_options): ... here.
10146 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
10148         * diagnostic.c: Don't include plugin.h.
10149         (diagnostic_report_diagnostic): Don't handle plugins specially
10150         here.  Pass context to internal_error callback.
10151         * diagnostic.h (struct diagnostic_context): Add context parameter
10152         to internal_error callback.
10153         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
10154         * plugin.h (struct diagnostic_context): Declare.
10155         (warn_if_plugins, plugins_internal_error_function): Declare.
10156         * toplev.c (general_init): Set global_dc->internal_error.
10157         * Makefile.in (diagnostic.o): Update dependencies.
10159 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
10161         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
10162         * config/rs6000/t-darwin64: New.
10163         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
10164         build crt2.
10166 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
10168         PR 44203
10169         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
10170         match the original (and intended) behaviour before r159557.  This
10171         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
10172         in two ways.
10174 2010-05-25  Richard Guenther  <rguenther@suse.de>
10176         * doc/invoke.texi: Document -Ofast.
10177         * target.h (struct gcc_target): Add handle_ofast.
10178         * target-def.h (TARGET_HANDLE_OFAST): Add.
10179         (TARGET_INITIALIZER): Adjust.
10180         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
10181         * common.opt (Ofast): Add.
10183 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
10185         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
10186         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
10188 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
10190         PR target/43610
10191         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
10192         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
10193         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
10194         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
10196 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
10198         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
10199         DW_OP_minus with negated offset instead of DW_OP_plus.
10200         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
10202 2010-05-25  Wei Guozhi  <carrot@google.com>
10204         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
10205         tst instruction and a new alternative.
10206         * config/arm/constraints.md (Pu): New constraint.
10208 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
10210         * function.c (assign_stack_local_1): Initialize variable
10211         to avoid warning when bootstrapping at -O3.
10213 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
10215         * configure.ac (all_lang_makefiles): Remove everything related to it.
10216         * configure: Regenerate.
10217         * Makefile.in: Fix reference to ada Make-lang.in.
10218         Remove support for LANG_MAKEFILES.
10220 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
10221             Sandra Loosemore  <sandra@codesourcery.com>
10223         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
10224         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
10225         description.  Add arm_neon_fp16_ok.
10226         (Add Options): Add arm_neon and arm_neon_fp16.
10228 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
10230         * diagnostic.c: Don't include flags.h.
10231         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
10232         context parameters.  Check flags in the context passed as a parameter.
10233         (diagnostic_build_prefix): Add context parameter.  Check
10234         show_column flag in context.
10235         (diagnostic_action_after_output): Check fatal_errors flag in context.
10236         (diagnostic_report_current_module): Check show_column flag in context.
10237         (default_diagnostic_starter): Update call to
10238         diagnostic_build_prefix.
10239         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
10240         (emit_diagnostic): Pass context to permissive_error_kind.
10241         (permerror): Pass context to permissive_error_kind.
10242         * diagnostic.h (struct diagnostic_context): Add show_column,
10243         pedantic_errors, permissive and fatal_errors fields.
10244         (diagnostic_build_prefix): Update prototype.
10245         * langhooks.c
10246         * toplev.c (process_options): Set flags in global_dc from
10247         flag_show_column, flag_pedantic_errors, flag_permissive,
10248         flag_fatal_errors.
10249         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
10250         to diagnostic_build_prefix.
10251         * Makefile.in (diagnostic.o): Update dependencies.
10253 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10255         * config/i386/ia32intrin.h (__crc32q): Define only if
10256         __SSE4_2__ is defined.
10258 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
10260         PR target/44132
10261         PR middle-end/43602
10262         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
10263         DECL_VISIBILITY_SPECIFIED.
10264         (emutls_decl): Set DECL_PRESERVE_P and copy
10265         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
10266         (emutls_finalize_control_var): New callback.
10267         (emutls_finish): Finalize emutls control variables.
10268         * toplev.c (compile_file): Move the call to emutls_finish ()
10269         before varpool_assemble_pending_decls ().
10271 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
10273         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
10274         added to the preprocessor condition.
10276 2010-05-24  Paul Brook  <paul@codesourcery.com>
10278         * gengtype-lex.l: Add HARD_REG_SET.
10279         * expr.c (expand_expr_real_1): Record writes to hard registers.
10280         * function.c (rtl_data): Add asm_clobbers.
10281         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
10282         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
10283         Use crtl->asm_clobbers.
10285 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10287         * doc/makefile.texi (Makefile): Mention stages 'profile'
10288         and 'feedback' for profiledbootstrap.
10290 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10292         PR target/44245
10293         * config/i386/i386.c (def_builtin): Properly check
10294         OPTION_MASK_ISA_64BIT.
10296 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
10298         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
10299         typedefs with different but compatible types.  Allow duplicate
10300         typedefs with the same type except for pedantic non-C1X, but give
10301         warning for variably modified types.
10302         * c-typeck.c (tagged_types_tu_compatible_p,
10303         function_types_compatible_p, type_lists_compatible_p,
10304         comptypes_internal): Add parameter different_types_p; set
10305         *different_types_p for different but compatible types.  All
10306         callers changed.
10307         (comptypes_check_different_types): New.
10308         * c-tree.h (comptypes_check_different_types): Declare.
10310 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
10312         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
10313         * jump.c: Include basic-block.h.
10314         * profile.c: Likewise.
10315         * tree-profile.c: Likewise.
10316         * coverage.c: Likewise.
10317         * basic-block.h (optimize_function_for_size_p): Move to function.h.
10318         (optimize_function_for_speed_p): Likewise.
10319         * function.h (optimize_function_for_size_p,
10320         optimize_function_for_speed_p): Moved here from basic-block.h.
10321         * Makefile.in: Update dependencies.
10323 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10325         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
10326         before calling make; allow override through $MAKE.
10327         * doc/invoke.texi (Optimize Options): Document override.
10329 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
10331         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
10332         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10333         (rs6000_mode_dependent_address_ptr): Make static.
10334         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10335         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
10336         Remove.
10338 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
10340         PR target/43869
10341         * config/i386/i386.c: Make sure that the correct regparm is passed.
10343 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
10345         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
10346         * sbitmap.c: ...to here to internalize sbitmap element access.
10347         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
10348         Explain why basic-block.h is included.
10349         * function.h: Include tm.h for CUMULATIVE_ARGS.
10350         * Makefile.in: Update dependencies.
10352 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
10354         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
10355         New core types.
10356         * sbitmap.h (struct sbitmap_def): Do not typedef here.
10357         * sbitmap.c: Include sbitmap.h.
10358         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
10359         hard-reg-set.h.  Split everything related to regsets out from here...
10360         * regset.h: ...to here.  New file.
10361         * df.h: Include regset.h and sbitmap.h.
10362         * tree-flow.h: Likewise.
10363         * cfgloop.h: Likewise.
10364         * except.h: Do not include sbitmap.h.  Include hashtab.h.
10365         * cgraph.h: Include vec.h and function.h.
10366         * reload.h (struct insn_chain): Change types of live_throughout
10367         and dead_or_set from regset_head to bitmap_head.
10368         (compute_use_by_pseudos): Be defined also if regset.h is not included.
10369         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
10370         spilled_regs from regset_head to bitmap_head to avoid dependency
10371         in regset.h.
10372         * sel-sched-ir.h: Include regset.h.
10373         * reload.c: Include df.h before reload.h.
10374         * caller-save.c: Likewise.
10375         * reload1.c: Likewise.
10376         * ira.c: Likewise.
10377         (mark_elimination): Update type of r to bitmap, consistent with
10378         DF_LR_IN.
10379         * dominance.c: Include bitmap.h.
10380         * modulo-sched.c: Include df.h.
10381         * cfganal.c: Include bitmap.h and sbitmap.h.
10382         * cfgbuild.c: Include sbitmap.h.
10383         * lcm.c: Include sbitmap.h.
10384         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
10385         * domwalk.c: Include sbitmap.h, exclude ggc.h.
10386         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
10387         * cselib.c: Include bitmap.h.
10388         * tree-optimize.c: Include regset.h.
10389         * stmt.c: Include bitmap.h.
10390         * Makefile.in: Update dependencies.
10392 2010-05-22  Jan Hubicka  <jh@suse.cz>
10394         * cgraph.h (struct varpool_node): Add same_comdat_group.
10395         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
10396         pointer.
10397         (output_varpool): Update call of lto_output_varpool_node.
10398         (input_varpool): Read same_comdat_group pointer.
10399         (input_varpool_1): Fixup same_comdat_group pointer.
10400         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
10401         group is needed, all are.
10402         * varpool.c (varpool_remove_node): Remove node from same comdat group
10403         linklist too.
10404         (varpool_analyze_pending_decls): Walk same comdat groups.
10406 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
10408         * rtl.h (union rtunion_def): Remove rt_bit member.
10409         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
10410         * print-rtl (print_rtx): Do not print the member.
10411         * gengtype.c (adjust_field_rtx_def): Do not handle it.
10412         * gengenrtl.c (type_from_format): Likewise.
10413         (accessor_from_format): Likewise.
10415 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
10417         * dbgcnt.c: Include toplev.h instead of errors.h.
10418         * ira-emit.c: Don't include errors.h.
10419         * ira.c: Include toplev.h instead of errors.h.
10420         * lto-compress.c: Include toplev.h instead of errors.h.
10421         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
10422         ira.o, dbgcnt.o): Update dependencies.
10424 2010-05-22  Richard Guenther  <rguenther@suse.de>
10426         * gimple.c (gimple_types_compatible_p): Check type qualifications
10427         before merging pointer to complete and pointer to incomplete type.
10428         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
10429         we use our own resolution algorithm.  The gold linker plugin
10430         doesn't do the job we want it to do here.
10432 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
10434         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10435         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10436         (sparc_mode_dependent_address_p): New function.
10438 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
10440         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
10442         * timevar.c: Do not include any core headers.
10443         (timevar_print): De-i18n-ize.
10444         (print_time): Likewise.
10445         * timevar.h (timevar_push, timevar_pop): Make inline functions.
10447 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
10449         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
10450         langhooks-def.h.
10451         (diagnostic_initialize): Initialize x_data not last_function.
10452         (diagnostic_report_current_function): Move to tree-diagnostic.c.
10453         (default_diagnostic_starter): Call
10454         diagnostic_report_current_module not
10455         diagnostic_report_current_function.
10456         (diagnostic_report_diagnostic): Initialize x_data not
10457         abstract_origin.
10458         (verbatim): Likewise.
10459         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
10460         x_data.
10461         (struct diagnostic_context): Change last_function to x_data.
10462         (diagnostic_auxiliary_data): Replace with
10463         diagnostic_context_auxiliary_data and
10464         diagnostic_info_auxiliary_data.
10465         (diagnostic_last_function_changed, diagnostic_set_last_function,
10466         diagnostic_report_current_function): Move to tree-diagnostic.h.
10467         (print_declaration, dump_generic_node, print_generic_stmt,
10468         print_generic_stmt_indented, print_generic_expr,
10469         print_generic_decl, debug_c_tree, dump_omp_clauses,
10470         print_call_name, debug_generic_expr, debug_generic_stmt,
10471         debug_tree_chain, default_tree_printer): Move to
10472         tree-pretty-print.h.
10473         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
10474         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
10475         gimple-pretty-print.h.
10476         * pretty-print.c: Don't include tree.h
10477         (pp_base_format): Don't handle %K here.
10478         (pp_base_tree_identifier): Move to tree-pretty-print.c.
10479         * pretty-print.h (text_info): Change abstract_origin to x_data.
10480         (pp_tree_identifier, pp_unsupported_tree,
10481         pp_base_tree_identifier): Move to tree-pretty-print.h.
10482         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
10483         tree-pretty-print.h: New files.
10484         * tree-pretty-print.c: Include tree-pretty-print.h.
10485         (percent_K_format): New.  Moved from pretty-print.c.
10486         (pp_base_tree_identifier): Move from pretty-print.c.
10487         * c-objc-common.c: Include tree-pretty-print.h.
10488         (c_tree_printer): Handle %K here.
10489         * langhooks.c: Include tree-diagnostic.h.
10490         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
10491         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
10492         (default_tree_printer): Handle %K using percent_K_format.
10493         (general_init): Use default_tree_diagnostic_starter.
10494         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
10495         (free_lang_data): Use default_tree_diagnostic_starter.
10496         * c-pretty-print.c: Include tree-pretty-print.h.
10497         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10498         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10499         * dwarf2out.c: Include tree-pretty-print.h.
10500         * except.c: Include tree-pretty-print.h.
10501         * gimple-pretty-print.c: Include tree-pretty-print.h and
10502         gimple-pretty-print.h.
10503         * gimplify.c: Include tree-pretty-print.h.
10504         * graphite-poly.c: Include tree-pretty-print.h and
10505         gimple-pretty-print.h.
10506         * ipa-cp.c: Include tree-pretty-print.h.
10507         * ipa-inline.c: Include gimple-pretty-print.h.
10508         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10509         * ipa-pure-const.c: Include gimple-pretty-print.h.
10510         * ipa-struct-reorg.c: Include tree-pretty-print.h and
10511         gimple-pretty-print.h.
10512         * ipa-type-escape.c: Include tree-pretty-print.h.
10513         * print-rtl.c: Include tree-pretty-print.h.
10514         * print-tree.c: Include gimple-pretty-print.h.
10515         * sese.c: Include tree-pretty-print.h.
10516         * tree-affine.c: Include tree-pretty-print.h.
10517         * tree-browser.c: Include tree-pretty-print.h.
10518         * tree-call-cdce.c: Include gimple-pretty-print.h.
10519         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10520         * tree-chrec.c: Include tree-pretty-print.h.
10521         * tree-data-ref.c: Include tree-pretty-print.h and
10522         gimple-pretty-print.h.
10523         * tree-dfa.c: Include tree-pretty-print.h.
10524         * tree-if-conv.c: Include tree-pretty-print.h and
10525         gimple-pretty-print.h.
10526         * tree-inline.c: Include tree-pretty-print.h.
10527         * tree-into-ssa.c: Include tree-pretty-print.h and
10528         gimple-pretty-print.h.
10529         * tree-nrv.c: Include tree-pretty-print.h.
10530         * tree-object-size.c: Include tree-pretty-print.h and
10531         gimple-pretty-print.h.
10532         * tree-outof-ssa.c: Include tree-pretty-print.h and
10533         gimple-pretty-print.h.
10534         * tree-parloops.c: Include tree-pretty-print.h and
10535         gimple-pretty-print.h.
10536         * tree-predcom.c: Include tree-pretty-print.h and
10537         gimple-pretty-print.h.
10538         * tree-scalar-evolution.c: Include tree-pretty-print.h and
10539         gimple-pretty-print.h.
10540         * tree-sra.c: Include tree-pretty-print.h.
10541         * tree-ssa-address.c: Include tree-pretty-print.h.
10542         * tree-ssa-alias.c: Include tree-pretty-print.h.
10543         * tree-ssa-ccp.c: Include tree-pretty-print.h and
10544         gimple-pretty-print.h.
10545         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
10546         * tree-ssa-copy.c: Include tree-pretty-print.h and
10547         gimple-pretty-print.h.
10548         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
10549         * tree-ssa-dce.c: Include tree-pretty-print.h and
10550         gimple-pretty-print.h.
10551         * tree-ssa-dom.c: Include tree-pretty-print.h and
10552         gimple-pretty-print.h.
10553         * tree-ssa-dse.c: Include gimple-pretty-print.h.
10554         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
10555         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
10556         * tree-ssa-live.c: Include tree-pretty-print.h and
10557         gimple-pretty-print.h.
10558         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
10559         gimple-pretty-print.h.
10560         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
10561         gimple-pretty-print.h.
10562         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
10563         gimple-pretty-print.h.
10564         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
10565         gimple-pretty-print.h.
10566         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
10567         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
10568         * tree-ssa-operands.c: Include tree-pretty-print.h and
10569         gimple-pretty-print.h.
10570         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
10571         gimple-pretty-print.h.
10572         * tree-ssa-pre.c: Include tree-pretty-print.h and
10573         gimple-pretty-print.h.
10574         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
10575         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
10576         gimple-pretty-print.h.
10577         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
10578         gimple-pretty-print.h.
10579         * tree-ssa-sink.c: Include gimple-pretty-print.h.
10580         * tree-ssa-ter.c: Include tree-pretty-print.h and
10581         gimple-pretty-print.h.
10582         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
10583         * tree-ssa.c: Include tree-pretty-print.h and
10584         gimple-pretty-print.h.
10585         * tree-stdarg.c: Include gimple-pretty-print.h.
10586         * tree-switch-conversion.c: Include gimple-pretty-print.h.
10587         * tree-tailcall.c: Include tree-pretty-print.h and
10588         gimple-pretty-print.h.
10589         * tree-vect-data-refs.c: Include tree-pretty-print.h and
10590         gimple-pretty-print.h.
10591         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
10592         gimple-pretty-print.h.
10593         * tree-vect-loop.c: Include tree-pretty-print.h and
10594         gimple-pretty-print.h.
10595         * tree-vect-patterns.c: Include gimple-pretty-print.h.
10596         * tree-vect-slp.c: Include tree-pretty-print.h and
10597         gimple-pretty-print.h.
10598         * tree-vect-stmts.c: Include tree-pretty-print.h and
10599         gimple-pretty-print.h.
10600         * tree-vectorizer.c: Include tree-pretty-print.h.
10601         * tree-vrp.c: Include tree-pretty-print.h and
10602         gimple-pretty-print.h.
10603         * value-prof.c: Include tree-pretty-print.h and
10604         gimple-pretty-print.h.
10605         * var-tracking.c: Include tree-pretty-print.h.
10606         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
10607         (tree-diagnostic.o): New dependencies.
10608         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
10609         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
10610         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
10611         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
10612         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
10613         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
10614         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
10615         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
10616         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
10617         tree-ssa-address.o, tree-ssa-loop-niter.o,
10618         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
10619         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
10620         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
10621         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
10622         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
10623         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
10624         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
10625         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
10626         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
10627         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
10628         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
10629         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
10630         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
10631         tree-switch-conversion.o, var-tracking.o, value-prof.o,
10632         cfgexpand.o, pretty-print.o): Update dependencies.
10634 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
10636         * tree-ssa-structalias.c: Remove tm_p.h from include.
10638 2010-05-21  Jeff Law  <law@redhat.com>
10640         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
10642 2010-05-21  Jason Merrill  <jason@redhat.com>
10644         * tree-eh.c (cleanup_is_dead_in): New.
10645         (lower_try_finally): Don't generate a dead cleanup region.
10646         (lower_cleanup): Likewise.
10648 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
10650         PR debug/44223
10651         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
10652         unchain each use from the cyclic next_regno_use chain first.
10654 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
10656         * real: Do not include gmp.h, mpfr.h, and mpc.h.
10657         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
10658         (real_value_negate, real_value_abs): New prototypes.
10659         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
10660         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
10661         new include file for interface between MPFR and REAL_VALUE_TYPE.
10662         * real.c: Include realmpfr.h.
10663         (real_arithmetic2): Remove legacy function.
10664         (real_value_negate): New.
10665         (real_value_abs): New.
10666         (mfpr_from_real, real_from_mpfr): Move from here...
10667         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
10668         * builtins.c: Include realmpfr.h.
10669         * fold-const.c: Include realmpfr.h.
10670         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
10671         (fold_negate_const): Likewise.
10672         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
10673         * toplev.c: Include realmpfr.h.
10674         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
10675         and real_value_negate.
10676         * fixed-value.c (check_real_for_fixed_mode): Likewise.
10677         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
10678         (vfp3_const_double_index): Likewise.
10679         (arm_print_operand): Likewise.
10680         * Makefile.in: Update dependencies.
10682 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10684         * config/s390/s390.c (override_options): Increase the default
10685         of max-completely-peel-times.
10687 2010-05-21  Julian Brown  <julian@codesourcery.com>
10688             Mark Mitchell  <mark@codesourcery.com>
10690         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
10691         sibling calls for Thumb-1.
10692         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
10693         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
10694         Thumb-2.
10695         (*call_insn, *call_value_insn): Don't use for Thumb-2.
10696         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
10697         for Thumb-2.
10698         (return): New expander.
10699         (*arm_return): New name for ARM return insn.
10700         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
10702 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
10704         * config.gcc (sparc64-*-rtems*): New target.
10706 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
10708         * tree.c (build_function_decl_skip_args): Fix grammar.
10709         (build_function_type_list_1): Fix typos, adjust formatting.
10711 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
10713         * tree.h: Include real.h and fixed-value.h as basic datatypes.
10714         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
10715         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
10716         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
10717         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
10718         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
10719         tree-pretty-print.c, tree-loop-distribution.c,
10720         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
10721         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
10722         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
10723         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
10724         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
10725         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
10726         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
10727         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
10728         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
10729         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
10730         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
10731         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
10732         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
10733         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
10734         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
10735         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
10736         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
10737         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
10738         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
10739         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
10740         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
10741         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
10742         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
10743         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
10744         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
10745         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
10746         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
10747         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
10748         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
10749         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
10750         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
10751         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
10752         config/score/score7.c, config/score/score.c, config/arm/arm.c,
10753         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
10754         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
10755         config/bfin/bfin.c: Clean up redundant includes.
10756         * Makefile.in: Update accordingly.
10758 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
10760         PR middle-end/44204
10761         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
10762         statement has no arguments.
10764 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
10766         PR/44139
10767         * varasm.c (emutls_decl): Merge attributes to new decl.
10769 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
10771         PR middle-end/44101
10772         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
10773         around the uniquized constructor if its type requires a conversion.
10775 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
10777         PR debug/44205
10778         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
10779         at -O0 goto_locus of any of the incoming edges differs from
10780         goto_locus of outgoing edge, or gimple_location of any of the
10781         labels differs.
10783 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
10785         * ira.c (ira_non_ordered_class_hard_regs): Define.
10786         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
10787         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
10788         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
10789         cost of unaligned hard regs when allocating multi-reg pseudos.
10791 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
10793         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
10794         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
10795         for TARGET_NO_FLOAT.
10796         * config/mips/mips.c (mips_file_start): Expand conditional expression
10797         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
10798         (mips_override_options): Move -mno-float override -msoft-float and
10799         -mhard-float.
10800         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
10801         Condition(TARGET_SUPPORTS_NO_FLOAT).
10802         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
10803         __mips_no_float here.
10804         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
10805         (TARGET_SUPPORTS_NO_FLOAT): Define.
10806         * config/mips/sdemtk.opt: Delete.
10808 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
10810         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
10812 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
10814         PR target/43733
10815         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
10816         * configure: Regenerate.
10817         * config.in: Regenerate.
10818         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
10819         instead of sahf only for 64bit targets.
10821 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
10823         PR debug/44178
10824         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
10825         setup_ref_regs for DEBUG_INSNs.
10827 2010-05-20  Jan Hubicka  <jh@suse.cz>
10829         PR middle-end/44197
10830         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
10832 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
10834         PR bootstrap/43870
10835         * df-scan.c (df_ref_compare): Stabilize sort.
10837 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
10839         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
10840         argument.  Don't use DW_OP_piece if offset is non-zero,
10841         put offset into second DW_OP_bit_piece argument.
10842         (dw_sra_loc_expr): Adjust callers.  For memory expressions
10843         compute offset.
10845 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
10847         PR target/44202
10848         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
10849         settings for 16-bit-constant "addo" alternative.
10851 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
10853         * config/mips/mips-dsp.md (add<DSPV:mode>3,
10854         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
10856         PR target/43764
10857         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
10858         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
10859         Use it.
10861 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
10863         * diagnostic.c (FLOAT, FFS): Don't undefine.
10864         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
10865         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
10866         include ordering.
10868 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
10870         * combine.c (propagate_for_debug): Call make_compound_operation
10871         on the source value.
10872         (try_combine): When implementing a split chosen by find_split_point,
10873         either copy i2src or set it to null.  Assert that i2src is not null
10874         before substituting into CALL_INSN_FUNCTION_USAGE.
10876 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
10878         * double-int.h (double_int_ior): New function.
10879         * tree.h (build_int_cst_wide_type): Remove.
10880         * tree.c (build_int_cst_wide_type): Remove.
10881         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
10882         of build_int_cst_wide_type.
10883         * stor-layout.c (set_sizetype): (Ditto.).
10884         * dojump.c (do_jump): Use build_int_cstu instead of
10885         build_int_cst_wide_type.
10887 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10889         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
10890         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
10891         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
10892         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
10893         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
10894         propagate the 'data' argument to copy_tree_r.
10895         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
10896         Propagate 'data' argument to walk_tree.
10897         (copy_if_shared): New function.
10898         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
10899         (unmark_visited): New function.
10900         (unshare_body): Call copy_if_shared instead of doing it manually.
10901         (unvisit_body): Call unmark_visited instead of doing it manually.
10903 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
10905         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
10906         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
10907         * hooks.c: Likewise.
10908         * target-def.h (TARGET_FOLD_BUILTIN): Define to
10909         hook_tree_tree_int_treep_bool_null.
10910         * target.h (struct gcc_target): Update signature of fold_builtin
10911         field.
10912         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
10913         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
10914         instead of the call expression.
10915         (fold_builtin_call_array): Pass n and argarray directly.
10916         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
10917         consing a list.
10918         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
10919         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
10920         `i' and use it in place of `arity'.
10921         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
10922         Dereference `args' directly.
10923         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
10925 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10927         * doc/sourcebuild.texi (Effective-Target Keywords): Document
10928         3dnow, sse3, sse2.
10929         (Directives): Document optional dg-require-effective-target
10930         selector.
10932 2010-05-19  Richard Guenther  <rguenther@suse.de>
10934         PR lto/44196
10935         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
10937 2010-05-19  Richard Guenther  <rguenther@suse.de>
10939         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
10940         * common.opt (fwhopr=): New.
10941         * opts.c (common_handle_option): Handle OPT_fwhopr.
10942         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
10943         * collect2.c (main): Match -fwhopr*.
10944         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
10945         Execute ltrans stage in parallel when jobs is bigger than 1.
10947 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10949         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10950         pentiumpro on Solaris 8/x86 with Sun as.
10951         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
10952         hidden alias bug.
10953         (gcc_cv_as_ix86_quad): Check for .quad directive.
10954         * configure: Regenerate.
10955         * config.in: Regenerate.
10956         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
10958 2010-05-19  Martin Jambor  <mjambor@suse.cz>
10960         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
10961         also for indirect edges.  Actual printing moved...
10962         (ipa_print_node_jump_functions_for_edge): ...here.
10963         (ipa_compute_jump_functions): Renamed to
10964         ipa_compute_jump_functions_for_edge and made static.
10965         (ipa_compute_jump_functions): New function.
10966         (make_edge_direct_to_target): Check if the number of arguments on
10967         the newly direct edge is the same as the number of parametrs of
10968         the callee.
10969         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
10970         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
10971         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10972         analysis functions unconditionally, call the new
10973         ipa_analyze_params_uses on the node instead of every edge.
10975 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
10977         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
10978         to tree.
10979         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
10980         also checks for a constant int vs.  non-constant but
10981         loop-invariant steps.
10982         (find_or_create_group): Change the sort algorithm to only consider
10983         steps that are constant ints.
10984         (idx_analyze_ref): Adopt code to handle a tree instead of a
10985         HOST_WIDE_INT for step.
10986         (gather_memory_references_ref): Handle tree instead of int and be
10987         prepared to see a NULL_TREE.
10988         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
10989         prefetches if the step cannot be calculated at compile time.
10990         (issue_prefetch_ref): Issue prefetches for non-constant but
10991         loop-invariant steps.
10993 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
10995         Revert:
10996         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
10998         * tree.h (build_call_list): Remove.
10999         * tree.c (build_call_list): Remove.
11001 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11003         * tree.h (build_call_list): Remove.
11004         * tree.c (build_call_list): Remove.
11006 2010-05-18  Jan Hubicka  <jh@suse.cz>
11008         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
11010 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
11012         PR rtl-optimization/43332
11013         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
11015 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
11017         * tree.h (build_int_cstu): Implement as static inline.
11018         * tree.c (build_int_cstu): Remove function.
11019         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
11020         sign extended.
11022 2010-05-18  Richard Guenther  <rguenther@suse.de>
11024         PR lto/44143
11025         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
11026         (debug): Initialize from -save-temps.
11027         (collect_execute): Print command-line when verbose.
11028         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
11029         for ltrans invocation.  Produce -dumpbase flag again.
11030         (process_args): Remove.
11031         (main): Simplify.
11032         * collect2.c (maybe_run_lto_and_relink): Only pass object
11033         files to lto-wrapper.
11034         * gcc.c (LINK_COMMAND_SPEC): Likewise.
11036 2010-05-18  Jan Hubicka  <jh@suse.cz>
11038         * opts.c (decode_options): Do not disable whopr at ipa_cp.
11039         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
11041 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
11043         PR lto/44184
11044         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
11045         in a GIMPLE_ASM.
11046         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
11047         in a GIMPLE_ASM.
11049 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
11051         PR debug/41371
11052         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
11053         rtx_equal_p inline.
11055 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
11057         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
11058         lto-macho as lto_binary_reader.
11060         * darwin.c (darwin_asm_named_section): Do not add assembler comment
11061         after .section directive; just print it before the directive instead.
11063 2010-05-17  Jan Hubicka  <jh@suse.cz>
11065         * cgraph.c (cgraph_create_virtual_clone): Only check
11066         versionable_function_p when not in wpa and checking is enabled.
11067         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
11068         there are no more functions to materialize.
11070 2010-05-17  Jan Hubicka  <jh@suse.cz>
11072         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
11073         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
11074         New functions.
11075         (output_cgraph): Call output_cgraph_opt_summary.
11076         (input_cgrpah): Call input_cgraph_opt_summary.
11077         (output_cgraph_opt_summary_p, output_node_opt_summary,
11078         input_node_opt_summary, input_cgraph_opt_section): New functions.
11079         * lto-section-in.c (lto_section_name): Add cgraphopt.
11080         * tree-inline.c (tree_function_versioning): Handle parm_num.
11081         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
11082         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
11084 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
11086         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
11087         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
11088         the insn to prefetch ratio heuristic to loops with known trip count.
11090 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
11092         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
11093         (schedule_prefetches): Do not generate a prefetch if the unroll factor
11094         is far from what is required by the prefetch.
11096 2010-05-17  Jan Hubicka  <jh@suse.cz>
11098         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
11099         (ipcp_estimate_growth): Likewise.
11100         (ipcp_const_param_count): Likewise.
11101         (ipcp_insert_stage): Likewise.
11102         * ipa-prop.c (visit_load_for_mod_analysis): New function.
11103         (visit_store_addr_for_mod_analysis): Set used flag.
11104         (ipa_detect_param_modifications): Set used flag for SSE params;
11105         update use of walk_stmt_load_store_addr_ops.
11106         (ipa_print_node_params): Print used flag.
11107         (ipa_write_node_info): Stream used flag.
11108         (ipa_read_node_info): Likewise.
11109         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
11110         (ipa_is_param_used): New function.
11111         (lto_ipa_fixup_call_notes): Remove unused declaration.
11113 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11115         PR target/44074
11116         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
11117         * configure: Regenerate.
11118         * config.in: Regenerate.
11119         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
11120         !HAVE_AS_IX86_REP_LOCK_PREFIX.
11121         Don't emit whitespace.
11122         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
11123         (*rep_movsi): Likewise.
11124         (*rep_movsi_rex64): Likewise.
11125         (*rep_movqi): Likewise.
11126         (*rep_movqi_rex64): Likewise.
11127         (*rep_stosdi_rex64): Likewise.
11128         (*rep_stossi): Likewise.
11129         (*rep_stossi_rex64): Likewise.
11130         (*rep_stosqi): Likewise.
11131         (*rep_stosqi_rex64): Likewise.
11132         (*cmpstrnqi_nz_1): Use {%;} after repz.
11133         (*cmpstrnqi_nz_rex_1): Likewise.
11134         (*cmpstrnqi_1): Likewise.
11135         (*cmpstrnqi_rex_1): Likewise.
11136         (*strlenqi_1): Use {%;} after repnz.
11137         (*strlenqi_rex_1): Likewise.
11138         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
11139         (*sync_compare_and_swap<mode>): Likewise.
11140         (sync_double_compare_and_swap<mode>): Likewise.
11141         (*sync_double_compare_and_swapdi_pic): Likewise.
11142         (sync_old_add<mode>): Likewise.
11143         (sync_add<mode>): Likewise.
11144         (sync_sub<mode>): Likewise.
11145         (sync_<code><mode>): Likewise.
11147 2010-05-17  Martin Jambor  <mjambor@suse.cz>
11149         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
11150         otr_token and polymorphic.
11151         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
11152         (cgraph_clone_edge): Copy the above fields.
11153         * tree.c (get_binfo_at_offset): New function.
11154         * tree.h (get_binfo_at_offset): Declare.
11155         * ipa-prop.h (enum jump_func_type): Added known_type jump function
11156         type, reordered items, updated comments.
11157         (union jump_func_value): Added base_type field, reordered fields.
11158         (enum ipa_lattice_type): Moved down in the file.
11159         (struct ipa_param_descriptor): New field polymorphic.
11160         (ipa_is_param_polymorphic): New function.
11161         * ipa-prop.c: Include gimple.h and gimple-fold.h.
11162         (ipa_print_node_jump_functions): Print known type jump functions.
11163         (compute_complex_pass_through): Renamed to...
11164         (compute_complex_assign_jump_func): this.
11165         (compute_complex_ancestor_jump_func): New function.
11166         (compute_known_type_jump_func): Likewise.
11167         (compute_scalar_jump_functions): Create known type and complex ancestor
11168         jump functions.
11169         (ipa_note_param_call): New parameter polymorphic, set the corresponding
11170         flag in the call note accordingly.
11171         (ipa_analyze_call_uses): Renamed to...
11172         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
11173         variable var only in the block where it is used.
11174         (ipa_analyze_virtual_call_uses): New function.
11175         (ipa_analyze_call_uses): Likewise.
11176         (combine_known_type_and_ancestor_jfs): Likewise.
11177         (update_jump_functions_after_inlining): Implemented handling of a
11178         number of new jump function types combination.
11179         (print_edge_addition_message): Removed.
11180         (make_edge_direct_to_target): New function.
11181         (try_make_edge_direct_simple_call): Likewise.
11182         (try_make_edge_direct_virtual_call): Likewise.
11183         (update_call_notes_after_inlining): Renamed to...
11184         (update_indirect_edges_after_inlining): this.  Moved edge creation for
11185         indirect calls to try_make_edge_direct_simple_call, also calls
11186         try_make_edge_direct_virtual_call for virtual calls.
11187         (ipa_print_node_params): Changed the header message.
11188         (ipa_write_jump_function): Stream also known type jump functions.
11189         (ipa_read_jump_function): Likewise.
11190         (ipa_write_indirect_edge_info): Stream new fields in
11191         cgraph_indirect_call_info.
11192         (ipa_read_indirect_edge_info): Likewise.
11193         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
11194         GIMPLE_FOLD_H.
11196 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11198         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
11200 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
11202         * tree.h (CALL_EXPR_ARGS): Delete.
11203         (call_expr_arglist): Delete.
11204         * tree.c (call_expr_arglist): Delete.
11205         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
11206         targetm.fold_builtin.
11207         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
11208         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
11209         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
11210         arglist parameter.  Use CALL_EXPR_ARG.
11211         (picochip_expand_builtin_3op): Likewise.
11212         (picochip_expand_builtin_2opvoid): Likewise.
11213         (picochip_expand_array_get): Likewise.
11214         (picochip_expand_array_put): Likewise.
11215         (picochip_expand_array_testport): Likewise.
11216         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
11217         rather than arglist.
11218         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
11219         CALL_EXPR_ARGS.
11220         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
11221         than TREE_VALUE and TREE_CHAIN.
11222         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
11223         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
11224         the arglist.
11226 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
11228         PR bootstrap/42347
11229         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
11230         to have no fallthru edge.
11232         PR middle-end/44102
11233         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
11234         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
11235         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
11236         add BARRIER after previous bb if needed.
11238 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
11240         * tree.c (build_function_type_list_1): Remove bogus assert condition.
11242 2010-05-17  Alan Modra  <amodra@gmail.com>
11244         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
11245         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
11246         with copy_reg rtx param.
11247         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
11248         Correct cases where code for ABI_V4 did not initialise the reg
11249         used to access frame.  Also leave frame_reg_rtx as sp for large
11250         frames that save no regs.
11252 2010-05-17  Martin Jambor  <mjambor@suse.cz>
11254         PR middle-end/44133
11255         * tree-sra.c (create_access_replacement): New parameter rename, mark
11256         the replaement for renaming only when it is true.
11257         (get_access_replacement): Pass true in the rename parameter of
11258         create_access_replacement.
11259         (get_unrenamed_access_replacement): New function.
11260         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
11261         replacement declaration from it.
11263 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
11265         * function.c (try_fit_stack_local, add_frame_space): New static
11266         functions.
11267         (assign_stack_local_1): Use them.  Look for opportunities to use
11268         space previously wasted on alignment.
11269         * function.h (struct frame_space): New.
11270         (struct rtl_data): Add FRAME_SPACE_LIST member.
11271         * reload1.c (something_was_spilled): New static variable.
11272         (alter_reg): Set it.
11273         (reload): Test it in addition to testing if the frame size changed.
11275 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
11277         * config/s390/s390.c: Define sane prefetch settings and activate
11278         flag_prefetch_loop_arrays on -O3.
11279         * config/s390/s390.h: Declare that read can use write prefetch.
11281 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
11283         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
11284         build.
11286 2010-05-16  Jan Hubicka  <jh@suse.cz>
11288         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
11289         function body; do not check stdarg field of struct function.
11291 2010-05-16  Jan Hubicka  <jh@suse.cz>
11293         * cgraph.c (dump_cgraph_node): Dump versionable flag.
11294         * cgraph.h (cgraph_local_info): Add versionable flag.
11295         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
11296         (ipcp_versionable_function_p): Use it.
11297         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11298         versionable flag.
11300 2010-05-16  Jan Hubicka  <jh@suse.cz>
11302         * cgraph.c (cgraph_clone_node): Take decl argument and insert
11303         clone into hash when it is different from orig.
11304         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
11305         * cgraph.h (cgraph_clone_node): Update prototype.
11306         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
11307         (lto_cgraph_encoder_delete): Delete body map.
11308         (lto_cgraph_encoder_size): Move to header.
11309         (lto_cgraph_encoder_encode_body_p,
11310         lto_set_cgraph_encoder_encode_body): New.
11311         (lto_output_node): Do not take written_decls argument; output clone_of
11312         pointer.
11313         (add_node_to): Add include_body_argument; call
11314         lto_set_cgraph_encoder_encode_body on master of the clone.
11315         (add_references): Update use of add_node_to.
11316         (compute_ltrans_boundary): Likewise.
11317         (output_cgraph): Do not create written_decls bitmap.
11318         (input_node): Take nodes argument; stream in clone_of correctly.
11319         (input_cgraph_1): Update use of input_node.
11320         * lto-streamer-out.c (lto_output): Use encoder info to decide
11321         what bodies to output.
11322         * ipa-inline.c (cgraph_clone_inlined_nodes,
11323         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
11324         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
11325         (lto_cgraph_encoder_size): Define here.
11326         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
11327         Declare.
11329 2010-05-16  Richard Guenther  <rguenther@suse.de>
11331         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
11332         -fipa-type-escape.
11333         * ipa-type-escape.c (gate_type_escape_vars): Run when
11334         -fipa-struct-reorg runs.
11335         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
11336         * common.opt (fipa-type-escape): Remove.
11338 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
11340         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
11341         (decode_options): Likewise.
11342         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
11344 2010-05-16  Jan Hubicka  <jh@suse.cz>
11346         * ipa.c (function_and_variable_visibility): Also bring local all
11347         aliases.
11349 2010-05-16  Richard Guenther  <rguenther@suse.de>
11351         * alias.c (nonoverlapping_memrefs_p): Remove use of
11352         IPA type-escape information.
11354 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
11356         * c-common.c (c_common_reswords): Add _Static_assert for C.
11357         * c-parser.c (c_token_starts_declaration,
11358         c_parser_next_token_starts_declaration,
11359         c_parser_static_assert_declaration_no_semi,
11360         c_parser_static_assert_declaration): New.
11361         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
11362         Handle static assertions if static_assert_ok.
11363         (c_parser_external_declaration, c_parser_declaration_or_fndef,
11364         c_parser_compound_statement_nostart, c_parser_label,
11365         c_parser_for_statement, c_parser_objc_methodprotolist,
11366         c_parser_omp_for_loop): All callers of
11367         c_parser_declaration_or_fndef changed.
11368         (c_parser_struct_declaration): Handle static assertions.
11369         (c_parser_compound_statement_nostart): Use
11370         c_parser_next_token_starts_declaration and
11371         c_token_starts_declaration to detect start of declarations.
11372         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
11373         Likewise.
11375 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
11377         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11378         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11379         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11380         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11381         (mmix_function_outgoing_value): Rename to...
11382         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
11383         (mmix_function_value_regno_p): Make static.
11384         (mmix_libcall_value): New function.
11385         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
11386         mmix_function_value_regno_p): Remove declaration.
11388 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
11390         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
11391         BUILT_IN_ALLOCA if stack checking is enabled.
11393 2010-05-16  Richard Guenther  <rguenther@suse.de>
11395         * var-tracking.c (vars_copy_1): Inline ...
11396         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
11397         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
11398         (variable_merge_over_cur): Adjust.  Merge asserts.
11399         (variable_merge_over_src): Likewise.
11400         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
11401         (variable_post_merge_new_vals): Merge asserts.
11402         (variable_post_merge_perm_vals): Likewise.
11403         (find_mem_expr_in_1pdv): Likewise.
11404         (dataflow_set_different_value): Remove.
11405         (onepart_variable_different_p): Merge asserts.
11406         (variable_different_p): Likewise.
11407         (dataflow_set_different_1): Inline ...
11408         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
11409         (emit_notes_for_differences_1): Merge asserts.
11411 2010-05-16  Richard Guenther  <rguenther@suse.de>
11413         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
11414         * optabs.c (libfunc_decl_hash): Likewise.
11415         * varasm.c (emutls_decl): Likewise.
11417 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
11419         * c-decl.c: Don't include gimple.h.
11420         (merge_decls): Do not copy gimple_body.
11422 2010-05-15  Jason Merrill  <jason@redhat.com>
11424         * c.opt: Add -fnothrow-opt.
11426 2010-05-15  Jan Hubicka  <jh@suse.cz>
11428         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
11429         analyzed.
11430         * passes.c (ipa_write_summaries): Write all analyzed nodes.
11432 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
11434         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
11435         * Makefile.in: Add it.
11436         Fix all other Makefile dependencies for changes below.
11437         * tree.h: Include it instead of defining VEC primitives here.
11438         * gimple.h: Likewise.
11439         * rtl.h: Likewise.
11440         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
11441         * except.h: Include vecir.h, break dependence on tree.h.
11443         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
11444         Move from here...
11445         * tree-iterator.c: ...to here.
11446         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
11448         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
11449         tm_p.h.
11450         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
11451         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
11452         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
11453         tree-mudflap.h, and target.h.
11454         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
11455         predict.h, tree-inline.h, gimple.h, and langhooks.h.
11456         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
11457         Add FIXME for why gimple.h is still included (should be unnecessary
11458         since GCC 4.5 gimplification unit-at-a-time).
11459         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
11460         * c-pragma.c: Add FIXME for why function.h needs to be included just
11461         for cfun, at front-end level.
11462         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
11463         Do not include ggc.h, but include vecprim.h for VEC(char).
11464         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
11465         Explain why target.h is included.
11466         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
11467         Explain why gimple.h is included.
11468         * c-ppoutput.c: Do not include tm.h.
11469         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
11470         * c-parses.c: Explain why rtl.h is included, and that this (and only
11471         this) is also why tm.h must be included.
11472         Do not include except.h.
11473         * c-lang.c: Do not include ggc.h.
11475 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
11477         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
11479 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
11481         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
11482         unions by default if those structs and unions have no tags.  Do
11483         not condition anonymous struct and unions handling on flag_iso.
11484         Allow anonymous structs and unions for C1X.
11485         (finish_struct): Do not diagnose lack of named fields when
11486         anonymous structs and unions present for C1X.  Accept flexible
11487         array members in structure with anonymous structs or unions but no
11488         directly named fields.
11489         * doc/extend.texi (Unnamed Fields): Update.
11491 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
11493         * gimple.h (compare_field_offset): Rename into...
11494         (gimple_compare_field_offset): ...this.
11495         * gimple.c (compare_field_offset): Rename into...
11496         (gimple_compare_field_offset): ...this.  Compare the full access if
11497         the offset is self-referential.
11498         (gimple_types_compatible_p): Adjust for above renaming.
11499         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
11500         DECL_NONADDRESSABLE_P flag of fields before merging them.
11502 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
11504         * tree.h (ctor_to_list): Delete.
11505         * tree.c (ctor_to_list): Delete.
11507 2010-05-15  Jan Hubicka  <jh@suse.cz>
11509         * ipa-reference.c: Include toplev.h
11510         (is_proper_for_analysis): Only add to all_module_statics
11511         if it is allocated.
11512         (write_node_summary_p, stream_out_bitmap,
11513         ipa_reference_write_optimization_summary,
11514         ipa_reference_read_optimization_summary): New.
11515         (struct ipa_opt_pass_d pass_ipa_reference): Add
11516         optimization summary streaming.
11517         * lto-cgraph.c (referenced_from_this_partition_p,
11518         reachable_from_this_partition_p): New functions.
11519         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11520         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
11521         * opts.c (decode_options): Enable ipa_reference.
11522         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
11523         * lto-streamer.h (referenced_from_this_partition_p,
11524         reachable_from_this_partition_p): Declare.
11526 2010-05-15  Richard Guenther  <rguenther@suse.de>
11528         PR tree-optimization/44038
11529         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
11530         taking the address of a V_C_E of a constant.
11532 2010-05-14  Jan Hubicka  <jh@suse.cz>
11534         * tree.h (memory_identifier_string): Remove.
11535         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
11536         (ipa_reference_global_vars_info_d): Remove statics_not_read and
11537         statics_not_written.
11538         (ipa_reference_optimization_summary_d): New structure.
11539         (ipa_reference_optimization_summary_t): New type and vector.
11540         (ipa_reference_vars_info_d): Embedd structures instead of using
11541         pointers.
11542         (reference_vars_to_consider): Remove out of GGC space.
11543         (module_statics_escape): Remove.
11544         (global_info_obstack): Rename to ...
11545         (optimization_summary_obstack): ... this one.
11546         (initialization_status_t): Remove.
11547         (memory_identifier_string): Remove.
11548         (get_reference_vars_info): Fix indenting.
11549         (set_reference_vars_info): Likewise.
11550         (get_reference_optimization_summary): New.
11551         (set_reference_optimization_summary): New.
11552         (get_global_reference_vars_info): Remove.
11553         (ipa_reference_get_read_global): Remove.
11554         (ipa_reference_get_written_global): Remove.
11555         (ipa_reference_get_not_read_global): Update.
11556         (ipa_reference_get_not_written_global): Update.
11557         (is_proper_for_analysis): Outlaw addressable.
11558         (propagate_bits): Update for new datastructures.
11559         (analyze_variable): Remove.
11560         (init_function_info): Update for new datastructures.
11561         (clean_function_local_data): Remove.
11562         (clean_function): Remove.
11563         (copy_global_bitmap): Use optimizations_summary_obstack.
11564         (duplicate_node_data): Duplicate optimization summary only.
11565         (remove_node_data): Remove optimization summary only.
11566         (generate_summary): Do not analyze variables; do not compute
11567         module_statics_escape; do not prune solutions by it.
11568         (read_write_all_from_decl): Fix typos in comments.
11569         (propagate): Doscover readonly and nonaddressable first;
11570         update for new datastructures; share global bitmaps.
11571         * ipa-reference.h (ipa_reference_get_read_global,
11572         ipa_reference_get_written_global): Remove.
11573         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
11574         * Makefile.in: Remove ipa-refereference from GT files.
11576 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
11578         PR debug/44112
11579         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
11580         for all SYMBOL_REF_DECLs.
11582 2010-05-14  Jan Hubicka  <jh@suse.cz>
11584         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
11585         (varpool_all_refs_explicit_p): New inline function.
11586         * ipa-reference.c: Update comment.
11587         (module_statics_written): Remove.
11588         (get_static_decl): Remove.
11589         (ipa_init): Do not initialize module_statics_written.
11590         (analyze_function): Likewise.
11591         (generate_summary): Likewise; do not compute module_statics_readonly
11592         and do not update variable flags.
11593         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
11594         * ipa.c: Inlucde flags.h
11595         (cgraph_local_node_p): New.
11596         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
11597         promote functions to local.
11598         (ipa_discover_readonly_nonaddressable_vars): New function.
11599         (function_and_variable_visibility): Use cgraph_local_node_p.
11600         * varpool.c (varpool_finalize_decl): Set force_output for
11601         DECL_PRESERVE_P vars.
11603 2010-05-14  Jan Hubicka  <jh@suse.cz>
11605         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
11607 2010-05-14  Richard Guenther  <rguenther@suse.de>
11609         PR tree-optimization/44119
11610         * tree-ssa-pre.c (eliminate): Properly mark replacement of
11611         a PHI node necessary.
11613 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
11615         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
11617 2010-05-14  Jason Merrill  <jason@redhat.com>
11619         PR c++/44127
11620         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
11621         (gimple_call_set_nothrow): New.
11622         * gimple.c (gimple_build_call_from_tree): Call it.
11623         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
11625         PR c++/44127
11626         * gimplify.c (gimplify_seq_add_stmt): No longer static.
11627         * gimple.h: Declare it.
11628         * gimple.c (gimple_build_eh_filter): No ops.
11630 2010-05-14  Jan Hubicka  <jh@suse.cz>
11632         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
11633         nodes already in queue.
11634         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
11635         re-enqueueing node.
11637 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
11639         PR debug/44136
11640         * cfgexpand.c (expand_debug_expr): If non-memory op0
11641         has BLKmode, return NULL.
11643 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
11645         * config.gcc: Add support for --with-cpu option for bdver1.
11646         * config/i386/i386.h (TARGET_BDVER1): New macro.
11647         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
11648         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11649         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
11650         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11651         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
11652         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
11653         (processor_type): Add PROCESSOR_BDVER1.
11654         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
11655         processor_type in config/i386/i386.h.
11656         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
11657         movaps <reg, reg> instead of movapd <reg, reg> when replacing
11658         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
11659         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
11660         to emit packed xor instead of packed double/packed integer
11661         xor for SSE and AVX when moving a zero value.
11662         * config/i386/sse.md: Add check for
11663         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
11664         movapd/movdqa for SSE and AVX.
11665         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
11666         single logical operations i.e and, or and xor instead of packed double
11667         logical operations for SSE and AVX.
11668         * config/i386/i386-c.c (ix86_target_macros_internal):
11669         Add PROCESSOR_BDVER1.
11670         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
11671         (has_fma4, has_xop): New.
11672         * config/i386/i386.c (bdver1_cost): New variable.
11673         (m_BDVER1): New macro.
11674         (m_AMD_MULTIPLE): Add m_BDVER1.
11675         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
11676         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
11677         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
11678         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
11679         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
11680         x86_tune_sse_partial_reg_dependency,
11681         x86_tune_sse_unaligned_load_optimal,
11682         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
11683         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
11684         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
11685         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
11686         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
11687         Enable/disable for bdver1.
11688         (processor_target_table): Add bdver1_cost.
11689         (cpu_names): Add bdver1.
11690         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
11691          processor_alias_table.
11692         (ix86_expand_vector_move_misalign): Change.
11693         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
11694         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
11695         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
11696         of movupd/movdqu for SSE and AVX.
11697         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
11698         (ix86_tune_adjust_cost): Add code for bdver1.
11699         (standard_sse_constant_opcode): Add check for
11700         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
11701         of packed double xor for SSE and AVX.
11703 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
11705         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
11706         result to unsigned.
11708 2010-05-14  Tristan Gingold  <gingold@adacore.com>
11710         * toplev.c (default_debug_hooks): Remove this variable.
11711         (process_options): Remove assignments to default_debug_hooks.
11713 2010-05-14  Martin Jambor  <mjambor@suse.cz>
11715         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
11716         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
11717         * langhooks.h (struct lang_hooks_for_decls): Removed field
11718         fold_obj_type_ref.
11719         * tree.c (free_lang_data): Remove assignment to
11720         lang_hooks.fold_obj_type_ref.
11721         * tree.def (OBJ_TYPE_REF): Update comment.
11723 2010-05-14  Richard Guenther  <rguenther@suse.de>
11725         PR tree-optimization/44124
11726         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
11728 2010-05-14  Alan Modra  <amodra@gmail.com>
11730         PR target/44075
11731         * config/rs6000/rs6000.c (struct machine_function): Reorder
11732         fields for better packing.  Add lr_save_state.
11733         (rs6000_ra_ever_killed): Return lr_save_state if set.
11734         (rs6000_emit_eh_reg_restore): Set lr_save_state.
11736 2010-05-13  Jan Hubicka  <jh@suse.cz>
11738         * varpool.c (decide_is_variable_needed): Drop code checking
11739         TREE_SYMBOL_REFERENCED.
11741 2010-05-13  Jan Hubicka  <jh@suse.cz>
11743         * final.c (output_addr_const): Do not call mark_decl_referenced.
11744         * cgraphunit.c (process_function_and_variable_attributes): Use
11745         mark_needed_node dirrectly.
11746         (assemble_thunk): Do not call mark_decl_referenced.
11748 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
11750         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
11752 2010-05-13  Jeff Law  <law@redhat.com>
11754         * ira-conflicts.c (print_allocno_conflicts): New function broken out
11755         from...
11756         (print_conflicts): Call print_allocno_conflicts.
11758 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
11760         PR debug/44104
11761         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
11762         if it is NULL.
11764 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
11766         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
11767         t-mingw-w64 or t-mingw-w32 for multilib configuration.
11768         * config/i386/t-mingw-w32: New.
11769         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
11771 2010-05-13  Martin Jambor  <mjambor@suse.cz>
11773         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
11774         gimple-fold.c).
11775         * gimple-fold.c (get_base_binfo_for_type): New function.
11776         (gimple_get_relevant_ref_binfo): Likewise.
11777         (gimple_fold_obj_type_ref_known_binfo): Likewise.
11778         (gimple_fold_obj_type_ref): Likewise.
11779         (fold_gimple_call): Simplify condition for folding virtual calls
11780         and call gimple_fold_obj_type_ref.
11781         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
11782         (gimple_fold_obj_type_ref_known_binfo): Likewise.
11784 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
11786         * config/rs6000/rs6000-protos.h
11787         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
11788         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
11789         (rs6000_debug_mode_dependent_address)
11790         (rs6000_mode_dependent_address_ptr): Likewise.
11792 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
11794         PR debug/43983
11795         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
11796         by SRA.
11797         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
11798         * tree-sra.c (create_access_replacement): Call unshare_expr before
11799         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
11800         * dwarf2out.c: Include tree-flow.h.
11801         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
11802         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11803         Handle DW_OP_bit_piece.
11804         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
11805         construct_piece_list, adjust_piece_list): New functions.
11806         (add_var_loc_to_decl): Handle SRA optimized variables.
11807         Adjust for var_loc_note to loc field renaming.
11808         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
11809         in VAR_LOCATION note.
11810         (new_loc_descr_op_bit_piece): New function.
11811         (dw_sra_loc_expr): New function.
11812         (dw_loc_list): Use it.  Don't handle the last range after the
11813         loop, handle it inside of the loop.  Adjust for var_loc_note
11814         to loc field renaming.
11815         (add_location_or_const_value_attribute): Only special case
11816         single entry loc lists if loc is NOTE_P.  Adjust for
11817         var_loc_note to loc field renaming.
11818         (dwarf2out_var_location): Don't set newloc->var_loc_note
11819         and newloc->next here.
11821 2010-05-12  Jan Hubicka  <jh@suse.cz>
11823         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
11824         flag.
11825         * cgraph.h (cgraph_only_called_directly_p,
11826         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
11827         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
11828         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
11829         (assemble
11830         * ipa.c (cgraph_remove_unreachable_nodes): Use
11831         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
11832         flags.
11833         * tree-inline.c (copy_bb): Check address_taken flag.
11834         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
11835         externally_visible flag.
11837 2010-05-12  Jason Merrill  <jason@redhat.com>
11839         PR bootstrap/44048
11840         PR target/44099
11841         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
11842         * sdbout.c (plain_type_1): Likewise.
11843         * dwarf2out.c (is_base_type): Likewise.
11844         (gen_type_die_with_usage): Likewise.  Generate
11845         DW_TAG_unspecified_type for any LANG_TYPE.
11847 2010-05-12  Jan Hubicka  <jh@suse.cz>
11849         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
11850         indrect edges too.
11851         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
11852         (cgraph_clone_edge): Update.
11853         (cgraph_node_remove_callees): Remove indirect calls too.
11854         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
11855         (cgraph_create_indirect_edge): Update prototype.
11856         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
11857         is_proper_for_analysis.
11858         (add_new_function, visited_nodes, function_insertion_hook_holder,
11859         get_local_reference_vars_info, mark_address_taken, mark_address,
11860         mark_load, mark_store, check_asm_memory_clobber, check_call,
11861         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
11862         (ipa_init): Do not initialize visited_nodes;
11863         function_insertion_hook_holder.
11864         (analyze_variable): Rewrite.
11865         (analyze_function): Rewrite.
11866         (copy_local_bitmap): Remove.
11867         (duplicate_node_dat): Do not duplicate local info.
11868         (generate_summary): Simplify to only walk cgraph.
11869         (write_node_summary_p, ipa_reference_write_summary,
11870         ipa_reference_read_summary): Remove.
11871         (propagate): Do not remove function insertion;
11872         generate summary.
11873         (pass_ipa_reference): NULLify summary handling fields.
11874         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
11875         (input_edge): Input ecf_flags.
11876         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
11877         (update_indirect_edges_after_inlining): Ignore edges with unknown
11878         param.
11880 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
11882         * implicit-zee.c: New file.
11883         * tree-pass.h (pass_implicit_zee): Declare.
11884         * passes.c (init_optimization_passes): Add zee pass.
11885         * common.opt (fzee): New flag.
11886         * timevar.def (TV_ZEE): Define.
11887         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
11888         and beyond.
11889         * Makefile.in (implicit-zee.o): Add new build file.
11891 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11892             Nathan Froyd  <froydnj@codesourcery.com>
11894         * c-common.c (sync_resolve_params): Remove write-only variable.
11896 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
11898         * target.h (struct gcc_target): Add mode_dependent_address_p field.
11899         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11900         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
11901         * targhooks.c (default_mode_dependent_address_p): New function.
11902         * targhooks.h (default_mode_dependent_address_p): Declare function.
11903         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11904         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
11905         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
11906         target hook. Change return type to bool.
11907         * recog.h (mode_dependent_address_p): Change return type to bool.
11909 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11910             Nathan Froyd  <froydnj@codesourcery.com>
11912         * tree-mudflap.c (build_function_type_0, build_function_type_1,
11913         build_function_type_2, build_function_type_3): Remove.
11914         (mudflap_init): Use build_function_type_list.
11916 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11917             Nathan Froyd  <froydnj@codesourcery.com>
11919         * coverage.c (build_fn_info_value): Call build_constructor instead of
11920         build_constructor_from_list.
11921         (build_ctr_info_value): Likewise.
11922         (build_gcov_info): Likewise.
11924 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
11926         * tree.c (build_constructor): Compute TREE_CONSTANT for the
11927         resultant constructor.
11928         (build_constructor_single): Don't set TREE_CONSTANT.
11929         (build_constructor_from_list): Don't compute TREE_CONSTANT.
11931 2010-05-12  Jan Hubicka  <jh@suse.cz>
11933         * cgraph.h (struct varpool_node): Add aux.
11934         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
11935         * varpool.c (varpool_remove_node): Do not remove initializer.
11936         (varpool_reset_queue): Export.
11937         (varpool_finalize_decl): Volatile vars are forced to be output.
11938         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
11939         replaced decl.
11940         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
11941         process_references, varpool_can_remove_if_no_refs): New functions.
11942         (cgraph_remove_unreachable_nodes): Handle variables too.
11944 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
11946         PR target/44088
11947         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
11949 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
11951         PR middle-end/44085
11952         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
11953         change value of ORT_TASK.
11954         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
11955         (omp_notice_threadprivate_variable): New function.
11956         (omp_notice_variable): Call it for threadprivate variables.
11957         If enclosing ctx is a task, print enclosing task rather than
11958         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
11959         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
11960         if task has untied clause.
11962         PR debug/42278
11963         * dwarf2out.c (base_type_die): Don't add name attribute here.
11964         (modified_type_die): Instead of sizetype use
11965         its underlying original type.  If a DW_TAG_base_type doesn't
11966         have name added, add __unknown__.
11967         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
11968         always call force_type_die instead.
11970 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
11972         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
11973         for __stack_chk_guard.
11975 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
11977         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
11978         don't call start_source_file debug hook here...
11979         (finish_options): ... but here, after outputting predefined and
11980         command line defines and undefs.
11982         PR middle-end/44071
11983         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
11984         no fallthru edge.
11985         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
11986         optimizing away empty bb with no successors, move over its
11987         footer chain to fallthru predecessor.
11988         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
11989         (rtl_split_edge): For asm goto call patch_jump_insn even if
11990         splitting fallthru edge.
11992         PR c++/44059
11993         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
11994         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
11995         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
11996         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
11997         on DW.ref.* decls.
11999         PR c++/44062
12000         * c-parser.c (c_parser_expression): Mark LHS of a comma
12001         expression as read if it is a decl, handled component or
12002         COMPOUND_EXPR with that on the RHS.
12003         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
12004         if it is a decl or handled component.
12006 2010-05-11  Jan Hubicka  <jh@suse.cz>
12008         * lto-symtab.c (lto_symtab_free): New function.
12009         * lto-streamer.h (lto_symtab_free): Declare.
12011 2010-05-11  Jan Hubicka  <jh@suse.cz>
12013         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
12014         that if function is needed it is reachable.
12015         (lto_output_node): See if it the function is reachable or referenced.
12016         (output_cgraph): Update call of lto_output_node.
12017         * lto-streamer.h (reachable_from_other_partition_p): Declare.
12019 2010-05-11  Jan Hubicka  <jh@suse.cz>
12021         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
12022         Mark as used.
12024 2010-05-11  Jan Hubicka  <jh@suse.cz>
12026         PR tree-optimize/44063
12027         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
12028         queue.
12029         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
12030         limits.
12031         (estimate_function_body_sizes): Compute sizes even when disregarding.
12033 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
12035         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
12037 2010-05-11  Jan Hubicka  <jh@suse.cz>
12039         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
12040         into every boundary.
12042 2010-05-11  Jan Hubicka  <jh@suse.cz>
12044         * matrix-reorg.c (matrix_reorg): Rebuild edges.
12046 2010-05-11  Jan Hubicka  <jh@suse.cz>
12048         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
12049         lto_streamer_cache_delete): Put nodes into heap.
12050         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
12051         heap.
12053 2010-05-11  Jan Hubicka  <jh@suse.cz>
12055         * cgraphbuild.c (cgraph_rebuild_references): New.
12056         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
12057         out extern inlines.
12058         * cgraph.h (cgraph_rebuild_references): Declare.
12059         * tree-inline.c (tree_function_versioning): Use it.
12060         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
12062 2010-05-11  Jan Hubicka  <jh@suse.cz>
12064         * cgraph.c: Include ipa-utils.h
12065         (cgraph_create_virtual_clone): Update references.
12066         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
12068 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
12070         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
12071         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
12072         cache size.
12074 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
12076         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
12078 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
12080         * gcc.c (execute): For -### don't quote arguments that
12081         contain just alphanumerics and _/-. characters.
12082         * doc/invoke.texi: Document that change for -###.
12084         PR debug/44023
12085         * df-problems.c (struct dead_debug): Add to_rescan field.
12086         (dead_debug_init): Clear to_rescan field.
12087         (dead_debug_finish): Rescan all debug insns in to_rescan
12088         bitmap and free the bitmap.
12089         (dead_debug_insert_before): Instead of rescanning debug insns
12090         immediately queue their rescanning until dead_debug_finish.
12091         (df_note_bb_compute): After dead_debug_add do continue instead
12092         of break.
12094 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
12096         PR debug/44028
12097         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
12098         clear also INSN_REG_USE_LIST.
12100 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12102         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
12104 2010-05-10  Jan Hubicka  <jh@suse.cz>
12106         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
12107         commited change.
12109 2010-05-10  Jan Hubicka  <jh@suse.cz>
12111         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
12112         Allocate encoders.
12113         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
12114         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
12115         (lto_streamer_cache_create): Init alloc pool.
12116         (lto_streamer_cache_delete): Free alloc pool.
12117         * lto-streamer.h: Include alloc pool.
12118         (lto_streamer_cache_d): Use alloc pool.
12119         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
12121 2010-05-10  Jan Hubicka  <jh@suse.cz>
12123         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
12124         * cgraphbuild.c: Include except.h
12125         (record_type_list, record_eh_tables): New function.
12126         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
12128 2010-05-10  Jan Hubicka  <jh@suse.cz>
12130         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
12131         __frame_dummy_init_array_entry, force_to_data): Attribute as used
12132         rather than unused.
12134 2010-05-10  Michael Matz  <matz@suse.de>
12136         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
12137         (can_reassociate_p): Use FLOAT_TYPE_P.
12138         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
12139         (vect_force_simple_reduction): ... this.
12140         * tree-parloops.c (gather_scalar_reductions): Use
12141         vect_force_simple_reduction.
12142         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
12143         vect_is_simple_reduction, add modify argument, if true rewrite
12144         "a-b" into "a+(-b)".
12145         (vect_is_simple_reduction, vect_force_simple_reduction): New
12146         functions.
12147         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
12149 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12150             Vladimir Makarov  <vmakarov@redhat.com>
12152         PR rtl-optimization/44012
12153         * ira-build.c (remove_unnecessary_allocnos): Nullify
12154         regno_allocno_map of the removed allocno.
12156 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12158         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
12159         to /dev/null.
12160         * configure: Regenerate.
12162 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12164         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
12165         unused.
12166         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
12167         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
12168         support in Sun ld.
12169         * configure: Regenerate.
12171 2010-05-10  Richard Guenther  <rguenther@suse.de>
12173         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
12174         marked if the entry identifier is marked.
12176 2010-05-10  Richard Guenther  <rguenther@suse.de>
12178         * c-common.c (struct c_common_attributes): Add fnspec attribute.
12179         (handle_fnspec_attribute): New function.
12180         * gimple.h (gimple_call_return_flags): Declare.
12181         (gimple_call_arg_flags): Likewise.
12182         * gimple.c (gimple_call_arg_flags): New function.
12183         (gimple_call_return_flags): Likewise.
12184         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
12185         New argument flags.
12186         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
12187         return value flags.
12188         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
12189         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
12190         main work to ...
12191         (make_heapvar_for): ... this new function.
12192         (handle_rhs_call): Handle fnspec attribute argument specifiers.
12193         (handle_lhs_call): Likewise.
12194         (find_func_aliases): Adjust.
12196 2010-05-10  Richard Guenther  <rguenther@suse.de>
12198         PR tree-optimization/44050
12199         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
12201 2010-05-10  Wei Guozhi  <carrot@google.com>
12203         PR target/42879
12204         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
12206 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
12208         PR c/10676
12209         * c-typeck.c (lookup_field): Take a type directly.  Update
12210         recursive calls.
12211         (build_component_ref): Update call to lookup_field.
12212         (set_init_label): Use lookup_field to find initialized field.
12213         Handle returned list of fields like a sequence of designators.
12215 2010-05-09  Richard Guenther  <rguenther@suse.de>
12217         PR middle-end/44024
12218         * fold-const.c (tree_single_nonzero_warnv_p): Properly
12219         handle &FUNCTION_DECL.
12221 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
12223         PR c/4784
12224         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
12225         structures and unions recursively.
12226         (detect_field_duplicates): Move duplicate detection with a hash to
12227         detect_field_duplicates_hash.  Always use a hash if anonymous
12228         structures or unions are present.
12229         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
12230         give errors.
12232 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12234         PR target/44046
12235         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
12236         detect Atom, Core 2 and Core i7.
12238 2010-05-09  Richard Guenther  <rguenther@suse.de>
12240         * gcc.c (store_arg): Handle temporary file deletion for
12241         joined arguments.
12243 2010-05-09  Richard Guenther  <rguenther@suse.de>
12245         PR middle-end/44043
12246         * ipa-inline.c (estimate_function_body_sizes): Return after
12247         disregarding inline limits.
12249 2010-05-09  Richard Guenther  <rguenther@suse.de>
12251         * gcc.c (store_arg): Revert last change.
12253 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
12255         PR middle-end/28685
12256         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
12257         (optimize_ops_list): Call it.
12259 2010-05-08  Richard Guenther  <rguenther@suse.de>
12261         PR tree-optimization/44030
12262         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
12263         NECESSARY flag if we propagate from a inserted expression.
12265 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
12267         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
12268         domain types as equal if they are both PLACEHOLDER_EXPRs.
12270 2010-05-08  Richard Guenther  <rguenther@suse.de>
12272         * lto-wrapper.c (run_gcc): Remove linker output from
12273         command line for LTRANS invocation.
12275 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
12277         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12278         lto-macho as lto_binary_reader.
12279         * target.h (struct gcc_target): New hooks lto_start and lto_end.
12280         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
12281         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
12282         in lto_start and lto_end calls.
12283         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
12284         magic numbers.
12285         (scan_prog_file): Update is_elf_or_coff call.
12286         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
12288         * collect2.c (main): Fix enum comparison.
12290         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
12291         Add prototypes.
12292         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
12293         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
12294         and TARGET_ASM_LTO_END.
12295         * darwin.c: Include obstack.h and lto-streamer.h.
12296         (lto_section_names_offset, lto_section_names_obstack,
12297         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
12298         global variables.
12299         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
12300         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
12301         to a temporary file.
12302         (darwin_asm_lto_end): New function.  Restore asm_out_file.
12303         (darwin_asm_named_section): For LTO sections, replace the name with
12304         the offset of the section name in a string table, and build this
12305         table.
12306         (darwin_file_start): Initialize global vars for LTO support.
12307         (darwin_file_end): If output to asm_out_file was redirected, append it
12308         to the proper asm_out_file here.  Add the section names section.
12310 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
12312         * c-pragma.c (pending_weak_d, pending_weak): New.
12313         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
12314         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
12315         handle_pragma_weak): Update the uses of pending_weaks.
12317 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12319         PR documentation/44016
12320         * doc/standards.texi (Standards): Link to unversioned
12321         cxx0x_status.html page.
12323 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
12325         PR target/43708
12326         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
12327         in addition to TREE_USED, to avoid "set but unused" warnings.
12329 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
12331         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
12332         (is_loop_prefetching_profitable): Do not insert prefetches
12333         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
12334         times the prefetch ahead distance.
12336 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
12338         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
12339         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
12340         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
12341         the unroll_factor.
12343 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
12345         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
12346         a diagnostic info when the insn-to-mem ratio is too small.
12348 2010-05-07  Richard Guenther  <rguenther@suse.de>
12350         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
12351         the linker plugin.
12352         (store_arg): Queue temp_filename for deletion instead of
12353         the whole argument.
12355 2010-05-07  Richard Guenther  <rguenther@suse.de>
12357         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
12358         (run_gcc): Handle LTRANS phase invocation.
12359         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
12361 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
12363         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
12364         this is also meaningful on PARM_DECLs and RESULT_DECLs.
12366 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12368         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
12370 2010-05-07  Richard Guenther  <rguenther@suse.de>
12372         PR tree-optimization/44020
12373         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
12374         code when PRE is not yet initialized.
12376 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12378         * config/mips/dbxmdebug.h: Remove.
12379         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
12381 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
12383         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
12384         with null pointer and also warn about ordered comparison of zero with
12385         pointer if -Wextra.
12387 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12389         * graphite-blocking.c
12390         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
12391         * graphite-clast-to-gimple.c
12392         (clast_to_gcc_expression): Same.
12393         (precision_for_value): Same.
12394         (precision_for_interval): Same.
12395         (gcc_type_for_interval): Same.
12396         (graphite_create_new_guard): Same.
12397         (compute_bounds_for_level): Same.
12398         (graphite_create_new_loop_guard): Same.
12399         * graphite-interchange.c
12400         (build_linearized_memory_access): Same.
12401         (pdr_stride_in_loop): Same.
12402         (memory_strides_in_loop_1): Same.
12403         (memory_strides_in_loop): Same.
12404         (extend_scattering): Same.
12405         (psct_scattering_dim_for_loop_depth): Same.
12406         (pbb_number_of_iterations): Same.
12407         * graphite-poly.h
12408         (debug_iteration_domains): Same.
12409         * graphite-ppl.c
12410         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12411         (ppl_set_inhomogeneous_gmp): Same.
12412         (ppl_strip_loop): Same.
12413         (ppl_lexico_compare_linear_expressions): Same.
12414         (ppl_read_polyhedron_matrix): Same.
12415         (ppl_max_for_le_pointset): Same.
12416         * graphite-ppl.h
12417         (ppl_read_polyhedron_matrix): Same.
12418         (tree_int_to_gmp): Same.
12419         (gmp_cst_to_tree): Same.
12420         (ppl_set_inhomogeneous): Same.
12421         (ppl_set_inhomogeneous_tree): Same.
12422         (ppl_set_coef): Same.
12423         (ppl_set_coef_tree): Same.
12424         * graphite-sese-to-poly.c
12425         (build_pbb_scattering_polyhedrons): Same.
12426         (build_scop_scattering): Same.
12427         (scan_tree_for_params_right_scev): Same.
12428         (scan_tree_for_params): Same.
12429         (find_params_in_bb): Same.
12430         (find_scop_parameters): Same.
12431         (add_upper_bounds_from_estimated_nit): Same.
12432         (build_loop_iteration_domains): Same.
12433         (add_condition_to_domain): Same.
12434         (pdr_add_memory_accesses): Same.
12436 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12438         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
12439         CLooG's value_* macros to their respective mpz_* counterparts.
12440         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
12441         (graphite_create_new_loop_guard): Same.
12442         * graphite-interchange.c (build_linearized_memory_access): Same.
12443         (pdr_stride_in_loop): Same.
12444         (memory_strides_in_loop_1): Same.
12445         (1st_interchange_profitable_p): Same.
12446         * graphite-poly.c (extend_scattering): Same.
12447         (psct_scattering_dim_for_loop_depth): Same.
12448         (pbb_number_of_iterations): Same.
12449         (pbb_number_of_iterations_at_time): Same.
12450         * graphite-poly.h (new_1st_loop): Same.
12451         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
12452         (oppose_constraint): Same.
12453         (insert_constraint_into_matrix): Same.
12454         (ppl_set_inhomogeneous_gmp): Same.
12455         (ppl_set_coef_gmp): Same.
12456         (ppl_strip_loop): Same.
12457         (ppl_lexico_compare_linear_expressions): Same.
12458         (ppl_max_for_le_pointset): Same.
12459         (ppl_min_for_le_pointset): Same.
12460         (ppl_build_realtion): Same.
12461         * graphite-ppl.h (gmp_cst_to_tree): Same.
12462         (ppl_set_inhomogeneous): Same.
12463         (ppl_set_inhomogeneous_tree): Same.
12464         (ppl_set_coef): Same.
12465         (ppl_set_coef_tree): Same.
12466         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
12467         (build_scop_scattering): Same.
12468         (add_value_to_dim): Same.
12469         (scan_tree_for_params_right_scev): Same.
12470         (scan_tree_for_params_int): Same.
12471         (scan_tree_for_params): Same.
12472         (find_params_in_bb): Same.
12473         (find_scop_parameters): Same.
12474         (add_upper_bounds_from_estimated_nit): Same.
12475         (build_loop_iteration_domains): Same.
12476         (create_linear_expr_from_tree): Same.
12477         (add_condition_to_domain): Same.
12478         (pdr_add_memory_accesses): Same.
12480 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
12481             Jason Merrill  <jason@redhat.com>
12483         * c-common.c (c_common_reswords): Add nullptr.
12484         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
12485         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
12486         (gen_type_die_with_usage): Likewise.
12487         * dbxout.c (dbxout_type): Likewise.
12488         * sdbout.c (plain_type_1): Likewise.
12490 2010-05-06  Jason Merrill  <jason@redhat.com>
12492         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
12493         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
12494         ret appropriately.
12495         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
12497         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
12498         stripping WITH_SIZE_EXPR.
12499         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
12500         change.
12502 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12504         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
12505         list of obsolete configurations.
12506         Disabled check for obsolete configurations.
12507         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
12508         Removed support for previous versions.
12509         * config/mips/iris.h: Removed.
12510         * config/mips/iris5.h: Removed.
12511         * config/mips/iris6.h: Merged old iris.h contents.
12512         (TARGET_IRIX): Removed.
12513         (DRIVER_SELF_SPECS): Removed mabi=32.
12514         (IDENT_ASM_OP): Removed undef.
12515         (STARTFILE_SPEC): Removed mabi=32.
12516         (ENDFILE_SPEC): Likewise.
12517         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
12518         (MACHINE_TYPE): Update for IRIX 6.5.
12519         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
12520         TARGET_IRIX by TARGET_IRIX6.
12521         (mips_file_start): Likewise.
12522         (mips_output_external): Remove IRIX 5/6 O32 support.
12523         (mips_output_function_prologue): Likewise.
12524         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
12525         TARGET_IRIX6.
12526         (TARGET_CPU_CPP_BUILTINS): Likewise.
12527         (TARGET_IRIX): Removed.
12528         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
12529         (MULTILIB_DIRNAMES): Removed 32.
12530         (MULTILIB_OSDIRNAMES): Removed ../lib.
12531         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
12532         (Specific, mips-sgi-irix5): Document removal.
12533         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
12534         Remove references to older IRIX 6 releases and the O32 ABI.
12536 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
12538         PR bootstrap/43994
12539         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
12540         instead of DF_REF_REAL_REG.
12542 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
12544         PR target/43888
12545         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
12546         handling to still return true for x64 targets.
12548 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12550         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
12552 2010-05-06  Jan Hubicka  <jh@suse.cz>
12554         PR tree-optimization/43791
12555         * ipa-inline.c (update_caller_keys): Remove bogus
12556         disregard_inline_limits check.
12558 2010-05-06  Michael Matz  <matz@suse.de>
12560         PR tree-optimization/43984
12561         * tree-ssa-pre.c (inserted_phi_names): Remove.
12562         (inserted_exprs): Change to bitmap.
12563         (create_expression_by_pieces): Set bits, don't append to vector.
12564         (insert_into_preds_of_block): Don't handle inserted_phi_names.
12565         (eliminate): Don't look at inserted_phi_names, remove deleted
12566         insns from inserted_exprs.
12567         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
12568         (init_pre, fini_pre): Allocate and free bitmaps.
12569         (execute_pre): Insert insns on edges before elimination.
12571 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12573         * tree.c (initializer_zerop): Handle STRING_CST.
12575 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12577         PR 40989
12578         * doc/invoke.texi (Wimplicit): Document as C only.
12579         * opts.c (common_handle_option): Add argument kind.
12580         (handle_option): Rename as read_cmdline_option. Factor out code to...
12581         (handle_option): ... here. New.
12582         (handle_options): Rename as read_cmdline_options.
12583         (decode_options): Update call.
12584         (set_option): Use option index instead of option pointer. Classify
12585         diagnostics correctly.
12586         (enable_warning_as_error): Call handle_option.
12587         * opts.h (set_option): Update declaration.
12588         (handle_option): Declare.
12589         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
12590         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
12591         * c-opts.c (set_Wimplicit): Delete.
12592         (c_family_lang_mask): New static constant.
12593         (c_common_handle_option): Add argument kind. Use handle_option
12594         instead of set_Wimplicit.
12595         (c_common_post_options): warn_implicit and warn_implicit_int
12596         are disabled by default.
12597         * c-common.c (warn_implicit): Do not define here.
12598         * c-common.h (warn_implicit): Do not declare here.
12599         (c_common_handle_option): Update declaration.
12600         * lto-opts.c (lto_reissue_options): Update call to set_option.
12602 2010-05-06  Richard Guenther  <rguenther@suse.de>
12604         PR tree-optimization/43571
12605         * domwalk.c (walk_dominator_tree): Walk the dominator
12606         sons in more optimal order.
12608 2010-05-06  Richard Guenther  <rguenther@suse.de>
12610         PR tree-optimization/43934
12611         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
12612         (stmt_cost): Likewise.
12613         (extract_true_false_args_from_phi): New helper.
12614         (determine_max_movement): For PHI nodes verify we can hoist them
12615         and compute their cost.
12616         (determine_invariantness_stmt): Handle PHI nodes.
12617         (move_computations_stmt): Likewise.  Hoist PHI nodes in
12618         if-converted form using COND_EXPRs.
12619         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
12620         (tree_ssa_lim): Likewise.
12621         * tree-flow.h (tree_ssa_lim): Adjust prototype.
12622         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
12624 2010-05-06  Richard Guenther  <rguenther@suse.de>
12626         PR tree-optimization/43987
12627         * tree-ssa-structalias.c (could_have_pointers): For possibly
12628         address-taken variables force pointers to be recorded.
12629         (create_variable_info_for_1): Likewise.
12630         (push_fields_onto_fieldstack): Pass in wheter all fields
12631         must have pointers.
12632         (find_func_aliases): Query types instead of vars whether
12633         they contain pointers where appropriate.
12635 2010-05-06  Jan Hubicka  <jh@suse.cz>
12637         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
12638         (record_reference, mark_address, mark_load, mark_store): Record
12639         references.
12640         (record_references_in_initializer): Update call of record_references.
12641         (rebuild_cgraph_edges): Remove all references before rebuiding.
12642         * cgraph.c (cgraph_create_node): Clear ref list.
12643         (cgraph_remove_node): Remove references.
12644         (dump_cgraph_node): Dump references.
12645         (cgraph_clone_node): Clone references.
12646         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
12647         (struct cgraph_node, varpool_node): Add ref_lst.
12648         * ipa-ref.c: New file.
12649         * ipa-ref.h: New file.
12650         * ipa-ref-inline.h: New file.
12651         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
12652         (referenced_from_other_partition_p): New function.
12653         (lto_output_varpool_node): Take set arugment; call
12654         referenced_from_other_partition.
12655         (lto_output_ref): New.
12656         (add_references): New.
12657         (output_refs): New.
12658         (output_cgraph): Compute boundary based on references; output refs.
12659         (output_varpool): Accept cgraph_node_set argument.
12660         (input_ref): New.
12661         (input_refs): New.
12662         (input_cgraph): Call input_refs.
12663         * lto-section-in.c (lto_section_name): Add refs.
12664         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
12665         (ipa-ref.o): New file.
12666         * varpool.c (varpool_node): Clear ipa ref list.
12667         (varpool_remove_node): Remove references.
12668         (dump_varpool_node): Dump references.
12669         (varpool_assemble_decl): Only compile finalized ones.
12670         (varpool_extra_name_alias): Initialize ref list.
12671         * lto-streamer.c (lto-get_section_name): Add .refs section.
12672         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
12673         (referenced_from_other_partition_p): Declared.
12675 2010-05-06  Ira Rosen  <irar@il.ibm.com>
12677         PR tree-optimization/43901
12678         * tree-vect-stmts.c (vectorizable_call): Assert that vector
12679         type is not NULL if it's transformation phase, and return
12680         FALSE if it's analysis.
12681         (vectorizable_conversion, vectorizable_operation,
12682         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
12684 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
12686         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12687         Delete.
12688         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12689         New define.
12690         * config/mips/mips-protos.h
12691         (mips_small_register_classes_for_mode_p): Delete prototype.
12693 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
12695         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
12696         * config/arm/arm.c (multiple_operation_profitable_p,
12697         compute_offset_order): New static functions.
12698         (load_multiple_sequence, store_multiple_sequence): Use them.
12699         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
12700         memory offsets, not register numbers.
12701         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
12703 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
12705         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
12706         (get_pending_sizes, put_pending_size, put_pending_sizes):
12707         Update the uses of pending_sizes.
12708         * c-decl.c (store_parm_decls): Likewise.
12709         * c-tree.h (struct c_arg_info): Likewise.
12710         * tree.h: Update the prototype for get_pending_sizes and
12711         put_pending_sizes.
12713 2010-05-05  Jason Merrill  <jason@redhat.com>
12715         PR debug/43370
12716         * c-common.c (handle_aligned_attribute): Respect
12717         ATTR_FLAG_TYPE_IN_PLACE.
12719         PR testsuite/43758
12720         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
12721         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12722         (TARGET_INITIALIZER): Use it.
12723         * c-common.c (attribute_takes_identifier_p): Call it.
12724         * c-common.h: Update prototype.
12725         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
12726         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12728 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
12730         PR debug/43950
12731         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
12732         DW_ID_down_case for Fortran compilation units.
12734 2010-05-05  Jan Hubicka  <jh@suse.cz>
12736         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
12737         handle aliases.
12739 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
12741         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
12742         a variable-sized RESULT_DECL.
12744 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
12746         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
12748 2010-05-05  Jason Merrill  <jason@redhat.com>
12750         PR c++/43787
12751         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
12752         returns GS_OK.
12753         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
12755 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
12756             Jakub Jelinek  <jakub@redhat.com>
12758         PR debug/43478
12759         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
12760         (dead_debug_init, dead_debug_finish): New functions.
12761         (dead_debug_add, dead_debug_insert_before): Likewise.
12762         (df_note_bb_compute): Initialize a dead_debug object, add dead
12763         debug uses to it, insert debug bind insns before death insns,
12764         reset debug insns that refer to pending uses at the end.
12765         * rtl.h (make_debug_expr_from_rtl): New prototype.
12766         * varasm.c (make_debug_expr_from_rtl): New function.
12768 2010-05-05  Jan Hubicka  <jh@suse.cz>
12770         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
12771         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
12772         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
12773         lto_varpool_encoder_deref, lto_varpool_encoder_size,
12774         lto_varpool_encoder_encode_initializer_p,
12775         lto_set_varpool_encoder_encode_initializer): New functions.
12776         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
12777         call output_varpool.
12778         (input_varpool_node): Do not always set analyzed.
12779         (input_cgraph_1): Return vector of cgraph nodes.
12780         (input_varpool_1): Return vector of varpools.
12781         (input_cgraph): Free the vectors.
12782         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12783         output only initializers needed.
12784         (lto_output): Only call output_cgraph.
12785         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
12786         * lto-section-out.c (lto_new_out_decl_state): Initialize
12787         state->varpool_node_encoder.
12788         * lto-streamer.h (lto_varpool_encoder_d): New.
12789         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
12790         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
12791         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
12792         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
12793         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
12794         Declare.
12795         (output_varpool, input_varpool): Remove declarations.
12797 2010-05-05  Jan Hubicka  <jh@suse.cz>
12799         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
12800         with body can prevail.
12802 2010-05-05  Jan Hubicka  <jh@suse.cz>
12804         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
12805         size.
12807 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12809         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
12811         * gengtype.h (erro_at_line): Constify pos argument.
12813         * gengtype.c: Include hashtab.h.
12814         (enum gc_used): Document GC_MAYBE_POINTED_TO.
12815         (error_at_line): Constify pos argument.
12816         (do_typedef): Initialize p->opt field.
12817         (get_file_gtfilename): Fix comment typo.
12818         (struct walk_type_data): Constify line field.
12819         (get_output_file_for_structure): New function.
12820         (write_local_func_for_structure): Constify orig_s argument.
12821         Use get_output_file_for_structure.
12822         (write_func_for_structure): Use get_output_file_for_structure.
12823         (INDENT): New define.
12824         (dump_pair, dump_type, dump_type_list, dump_typekind)
12825         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
12826         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
12827         functions.
12828         (seen_types): New variable.
12829         (main): New variable do_dump.  Process "-d" command line option.
12830         Call dump_everything if dump requested.
12832 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
12834         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
12835         in a temporary instead of invoking the macro multiple times.
12836         (track_expr_p): Likewise.
12838 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
12840         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
12841         per new semantics.
12842         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
12843         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
12844         conditions for printing notes.
12845         * common.opt (-Wcoverage-mismatch): Allow negative, default to
12846         true, update documentation.
12847         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
12849 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
12851         PR c/43981
12852         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
12853         on dimen.
12855 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
12857         PR target/43799
12858         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
12859         (*sse_prologue_save_insn1): Likewise.
12860         (SSE prologue save splitter): Likewise.
12862 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
12864         * tree.c (free_lang_data_in_one_sizepos): New inline function.
12865         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
12866         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
12867         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
12868         all decls.  Call it on DECL_FIELD_OFFSET of fields.
12869         (find_decls_types_r): Follow DECL_VALUE_EXPR.
12870         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
12872 2010-05-04  Martin Jambor  <mjambor@suse.cz>
12874         * tree-sra.c (build_access_from_expr_1): The first parameter type
12875         changed to simple tree.
12876         (build_access_from_expr): Likewise, gsi parameter was eliminated.
12877         (scan_assign_result): Renamed to assignment_mod_result, enum elements
12878         renamed as well.
12879         (build_accesses_from_assign): Removed all parameters except for a
12880         simple gimple statement.  Now returns a simple bool.
12881         (scan_function): All non-analysis parts moved to separate functions
12882         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
12883         parameters and updated both callers.
12884         (sra_modify_expr): Removed parameter data.
12885         (sra_modify_function_body): New function.
12886         (perform_intra_sra): Call sra_modify_function_body to modify the
12887         function body.
12888         (replace_removed_params_ssa_names): Parameter data changed into
12889         adjustments vector.
12890         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
12891         changed the parameter dont_convert to convert with the opposite
12892         meaning.
12893         (sra_ipa_modify_assign): Parameter data changed into adjustments
12894         vector, return value changed to bool.
12895         (ipa_sra_modify_function_body): New function.
12896         (sra_ipa_reset_debug_stmts): Updated a comment.
12897         (modify_function): Use ipa_sra_modify_function_body to modify function
12898         body.
12900 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
12902         PR middle-end/43671
12903         * alias.c (true_dependence): Handle the same VALUE in x and mem.
12904         (canon_true_dependence): Likewise.
12905         (write_dependence_p): Likewise.
12907 2010-05-04  Jan Hubicka  <jh@suse.cz>
12909         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
12910         * cgraphbuild.c: Include ipa-utils.h
12911         (record_reference_ctx): New struct.
12912         (record_reference): Simplify to work on initializers; not statements.
12913         (mark_address, mark_load, mark_store): New.
12914         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12915         walk PHI nodes too.
12916         (record_references_in_initializer): Update use of record_reference.
12917         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12918         walk PHI nodes too.
12920 2010-05-04  Jan Hubicka  <jh@suse.cz>
12922         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
12923         node will be removed anyway.
12924         (lto_varpool_replace_node): Allow also unanalyzed nodes;
12925         relink aliases of node into prevailing node.
12926         * varpool.c (varpool_remove_node): Remove aliases properly;
12927         when removing node, remove all its aliases too; remove DECL_INITIAL
12928         of removed node; ggc_free the varpool node.
12930 2010-05-04  Richard Guenther  <rguenther@suse.de>
12932         PR tree-optimization/43879
12933         * tree-ssa-structalias.c (alias_get_name): Use
12934         DECL_ASSEMBLER_NAME if available.
12935         (create_function_info_for): Return the varinfo node.
12936         (ipa_pta_execute): Associate same-body aliases and extra names
12937         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
12939 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
12941         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
12943 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
12945         PR bootstrap/43964
12946         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
12947         only if HONOR_REG_ALLOC_ORDER is not defined.
12949 2010-05-04  Richard Guenther  <rguenther@suse.de>
12951         PR tree-optimization/43949
12952         * tree-vrp.c (extract_range_from_binary_expr): Only handle
12953         TRUNC_MOD_EXPR.
12955 2010-04-26  Jason Merrill  <jason@redhat.com>
12957         * c.opt (-fstrict-enums): New.
12958         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
12960 2010-05-03  David Ung  <davidu@mips.com>
12961             James E. Wilson  <wilson@codesourcery.com>
12963         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
12964         emit the trap instruction before the divide for TUNE_74K.
12966 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
12968         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
12969         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
12970         based on the above, for new target hook.
12972         * hooks.c (hook_bool_mode_true): New generic hook.
12973         * hooks.h (hook_bool_mode_true): Add prototype.
12975         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
12976         target hook.
12977         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
12978         target hook, set to hook_bool_mode_false.
12979         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
12980         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
12981         with targetm.small_register_classes_for_mode_p.
12982         (find_reusable_reload): Likewise.
12983         (combine_reloads): Likewise.
12984         * reload1.c (reload_as_needed): Likewise.
12985         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
12986         * ifcvt.c (noce_process_if_block, check_cond_move_block,
12987         dead_or_predicable): Likewise.
12988         * regmove.c (optimize_reg_copy_1): Likewise.
12989         * calls.c (prepare_call_address): Likewise.
12990         (precompute_register_parameters): Likewise.
12992         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
12993         hook definition.
12994         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
12995         implementation of the hook that considers all register classes
12996         small except for SH64.
12997         (sh_override_options): Use the new hook.
12998         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
12999         Add prototype.
13001         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
13002         hook definition.
13003         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
13004         implementation of the hook that considers all register classes
13005         small for THUMB1.
13006         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
13007         Add prototype.
13009         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
13010         hook definition.
13011         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
13012         implementation of the hook that considers all register classes
13013         small for MIPS16.
13014         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
13015         Add prototype.
13017         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
13018         hook definition.
13019         * config/m32c/m32c.h: Likewise.
13020         * config/pdp11/pdp11.h: Likewise.
13021         * config/avr/avr.h: Likewise.
13022         * config/xtensa/xtensa.h: Likewise.
13023         * config/m68hc11/m68hc11.h: Likewise.
13024         * config/mn10300/mn10300.h: Likewise.
13025         * config/mcore/mcore.h: Likewise.
13026         * config/h8300/h8300.h: Likewise.
13027         * config/bfin/bfin.h: Likewise.
13029         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
13030         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
13032 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
13034         * double-int.h (tree_to_double_int): Remove macro.
13035         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
13036         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13037         (tree_to_double_int): New function.
13038         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
13039         Move ...
13040         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13042 2010-05-03  Richard Guenther  <rguenther@suse.de>
13044         PR tree-optimization/43971
13045         * tree-ssa-structalias.c (get_constraint_for_1): Fix
13046         constraints in the !flag_delete_null_pointer_checks case.
13048 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
13050         PR debug/43972
13051         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
13052         result mode matches original rtl mode.
13054 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
13056         PR target/43888
13057         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
13059 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13061         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
13062         when processing flag options.
13064 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13066         * gcov-iov.c (main): Change format string placeholder
13067         from %#08x to 0x%08x.
13068         * genchecksum.c (dosum): Change format string placeholder
13069         from %#02x to 0x%02x.
13071 2010-05-02  Richard Guenther  <rguenther@suse.de>
13073         PR tree-optimization/43879
13074         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
13076 2010-05-02  Bruno Haible  <bruno@clisp.org>
13078         * doc/extend.texi (Function Attributes): Fix a typo.
13080 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13082         Revert:
13083         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
13084         placeholder from 0x%x to %#x.
13085         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
13086         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13087         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13088         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13089         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13090         * config/i386/i386.c (ix86_target_string): Ditto.
13091         * config/i386/i386.c (output_pic_addr_const): Ditto.
13092         (print_operand): Ditto.
13094 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13096         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
13097         placeholder from 0x%x to %#x.
13098         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
13099         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
13100         (ASM_OUTPUT_DEBUG_DATA): Ditto.
13101         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
13102         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
13103         * optc-gen.awk: Ditto.
13104         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
13105         (HOST_WIDE_INT_PRINT_HEX): Ditto.
13106         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
13107         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
13109 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
13111         * target.h (struct calls): Add function_value_regno_p field.
13112         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
13113         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
13114         * targhooks.c (default_function_value_regno_p): New function.
13115         * targhooks.h (default_function_value_regno_p): Declare function.
13116         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
13117         * builtins.c. (apply_result_size): (Ditto.).
13118         * combine.c. (likely_spilled_retval_p): (Ditto.).
13119         * mode-switching.c. Include 'target.h'.
13120         (create_pre_exit): Use function_value_regno_p hook.
13121         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
13122         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
13123         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
13125         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
13126         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
13127         (ix86_function_value_regno_p): Declare as static, change argument
13128         type to const unsigned int.
13129         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
13131 2010-05-01  Richard Guenther  <rguenther@suse.de>
13133         PR tree-optimization/43949
13134         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
13135         types.
13136         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
13138 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
13140         * rtl.h (CONST_DOUBLE_P): Define.
13141         (rtx_to_double_int): Declare.
13142         * emit-rtl.c (rtx_to_double_int): New function.
13143         * dwarf2out.c (insert_double): New function.
13144         (loc_descriptor, add_const_value_attribute): Clean up, use
13145         rtx_to_double_int and insert_double functions.
13147 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
13149         * doc/extend.texi (Inline): Add missing return keyword to examples.
13150         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
13151         "command-line".
13153 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
13155         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
13156         the variable part of the offset as well.  Use highest_pow2_factor for
13157         all alignment checks.
13159 2010-04-30  Richard Guenther  <rguenther@suse.de>
13161         PR tree-optimization/43879
13162         * tree-ssa-structalias.c (type_could_have_pointers): Functions
13163         can have pointers.
13165 2010-04-30  Jan Hubicka  <jh@suse.cz>
13167         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
13168         varpool.
13169         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
13171 2010-04-30  Jan Hubicka  <jh@suse.cz>
13173         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
13174         New.
13175         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
13176         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
13177         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
13178         cgraph_node_set_needs_ltrans_p): Remove.
13180 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
13182         * sdbout.c: Include vec.h, do not include varray.h.
13183         (deferred_global_decls, sdbout_global_decl,
13184         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
13185         * toplev.c: Do not include varray.h.
13186         (dump_memory_report): Do not dump VARRAY statistics.
13187         * gengtype.c (open_base_file): Ignore varray.h.
13188         * Makefile.in: Update for abovementioned changes.
13189         Remove all traces of varray.c and varray.h.
13190         * varray.c: Remove file.
13191         * varray.h: Remove file.
13193 2010-04-30  Jan Hubicka  <jh@suse.cz>
13195         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
13196         references.
13198 2010-04-30  Jan Hubicka  <jh@suse.cz>
13200         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
13201         needed.
13203 2010-04-30  Richard Guenther  <rguenther@suse.de>
13205         * tree-ssa-structalias.c (get_constraint_for_1): Generate
13206         constraints for CONSTRUCTOR.
13208 2010-04-30  Richard Guenther  <rguenther@suse.de>
13210         PR lto/43946
13211         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
13212         first after all lowering passes.
13214 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
13216         * toplev.c: Include varray.h for statistics dumping.
13217         * tree.h: Do not declare varray_head_tag.
13218         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
13219         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
13220         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
13221         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
13222         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
13223         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
13224         c-common.c, c-common.h, reg-stack.c, basic-block.h,
13225         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
13226         include varray.h.
13227         * Makefile.in: Update for abovementioned changes.
13229 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
13231         PR debug/43942
13232         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
13234 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13236         * config/picochip/picochip.c (picochip_legitimize_address): Define.
13237         Use this function to do machine-specific conversion.
13238         (picochip_legitimize_reload_address): Likewise.
13239         (picochip_legitimate_address_p): Check valid base register only if
13240         strict.
13241         (picochip_check_conditional_copy): Check for modw only if opnd is
13242         register.
13243         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
13244         to call the function in c.
13245         * config/picochip/picochip-protos.h
13246         (picochip_legitimize_reload_address): Define.
13247         * config/picochip/picochip.md (supported_compare1): Define.
13249 2010-04-30  Jan Hubicka  <jh@suse.cz>
13251         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
13252         (cgraph_global_info): Remove inlined.
13253         (LTO_cgraph_tag_names): Remove.
13254         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
13255         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
13256         simplify cgraph tags and document.
13257         (lto_output_node): Use only LTO_cgraph_unavail_node and
13258         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
13259         for_functions_valid, global info, process and output flags.
13260         (input_overwrite_node): Initialize estimated stack size and
13261         estimated growth.  Do not read flags we no longer store.
13262         (input_node): Likewise do not read info no longer stored.
13263         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
13264         flag.
13266 2010-04-30  Richard Guenther  <rguenther@suse.de>
13268         PR tree-optimization/43879
13269         * tree-ssa-structalias.c (get_constraint_for_1): Properly
13270         handle non-zero initializers.
13272 2010-04-30  Richard Guenther  <rguenther@suse.de>
13274         * builtins.c (fold_builtin_1): Delete free (0).
13276 2010-04-29  Jan Hubicka  <jh@suse.cz>
13278         * gengtype.c (open_base_files): Add lto-streamer.h
13279         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
13280         (pass_ipa_cp): GGC collect.
13281         * toplev. (compile_file): Do not output symbols.
13282         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
13283         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
13284         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
13285         * lto-section-in.c: Include ggc.h
13286         (lto_new_in_decl_state): Alloc in GGC.
13287         (lto_delete_in_decl_state): Likewise.
13288         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
13289         Collect.
13291 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
13293         PR target/42895
13294         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
13295         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
13296         (HONOR_REG_ALLOC_ORDER): Describe new macro.
13297         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
13298         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
13299         account only if HONOR_REG_ALLOC_ORDER is not defined.
13300         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
13301         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
13303 2010-04-29  Jon Grant  <04@jguk.org>
13305         * collect2.c (vflag): Change type from int to bool.
13306         (debug): Likewise.
13307         (helpflag): New global bool.
13308         (main): Set vflag and debug with boolean, not integer truth values.
13309         Accept new "--help" option and output usage text if found.
13310         * collect2.h (vflag): Update prototype.
13311         (debug): Likewise.
13313 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
13315         PR bootstrap/43936
13316         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
13318 2010-04-29  Richard Guenther  <rguenther@suse.de>
13320         PR bootstrap/43935
13321         * plugin.h (invoke_plugin_callbacks): Annotate arguments
13322         with ATTRIBUTE_UNUSED.
13324 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
13326         PR target/43921
13327         * config/i386/i386.c (get_some_local_dynamic_name): Replace
13328         INSN_P with NONDEBUG_INSN_P.
13329         (distance_non_agu_define): Likewise.
13330         (distance_agu_use): Likewise.
13332 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
13334         From Dominique d'Humieres  <dominiq@lps.ens.fr>
13335         PR bootstrap/43858
13336         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
13337         test_set.
13339 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
13341         * plugin.h (invoke_plugin_callbacks): New inline function.
13342         * plugin.c (flag_plugin_added): New global flag.
13343         (add_new_plugin): Initialize above flag.
13344         (invoke_plugin_callbacks): Rename to ...
13345         (invoke_plugin_callbacks_full): ... this.
13347 2010-04-28  Jan Hubicka  <jh@suse.cz>
13349         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
13350         (lto_varpool_replace_node): New.
13351         (lto_symtab_resolve_symbols): Resolve varpool nodes.
13352         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
13353         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
13354         * cgraph.h (varpool_node_ptr): New type.
13355         (varpool_node_ptr): New vector.
13356         (varpool_node_set_def): New structure.
13357         (varpool_node_set): New type.
13358         (varpool_node_set): New vector.
13359         (varpool_node_set_element_def): New structure.
13360         (varpool_node_set_element, const_varpool_node_set_element): New types.
13361         (varpool_node_set_iterator): New type.
13362         (varpool_node): Add prev pointers, add used_from_other_partition,
13363         in_other_partition.
13364         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
13365         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
13366         varpool_get_node, varpool_remove_node): Declare.
13367         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
13368         varpool_node_set_size): New inlines.
13369         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
13370         * tree-pass.h (varpool_node_set_def): Forward declare.
13371         (ipa_opt_pass_d): Summary writting takes vnode sets too.
13372         (ipa_write_optimization_summaries): Update prototype.
13373         * ipa-cp.c (ipcp_write_summary): Update.
13374         * ipa-reference.c (ipa_reference_write_summary): Update.
13375         * lto-cgraph.c (lto_output_varpool_node): New static function.
13376         (output_varpool): New function.
13377         (input_varpool_node): New static function.
13378         (input_varpool_1): New function.
13379         (input_cgraph): Input varpool.
13380         * ipa-pure-const.c (pure_const_write_summary): Update.
13381         * lto-streamer-out.c (lto_output): Update, output varpool too.
13382         (write_global_stream): Kill WPA hack.
13383         (produce_asm_for_decls): Update.
13384         (output_alias_pair_p): Handle variables.
13385         (output_unreferenced_globals): Output only needed partition of varpool.
13386         * ipa-inline.c (inline_write_summary): Update.
13387         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
13388         cgraph.
13389         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
13390         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
13391         varpool_node_set_new, varpool_node_set_add,
13392         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
13393         debug_varpool_node_set): New functions.
13394         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
13395         (execute_one_pass): Process new decls too.
13396         (ipa_write_summaries_2): Pass around vsets.
13397         (ipa_write_summaries_1): Likewise.
13398         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
13399         to add.
13400         (ipa_write_optimization_summaries_1): Pass around vsets.
13401         (ipa_write_optimization_summaries): Likewise.
13402         * varpool.c (varpool_get_node): New.
13403         (varpool_node): Update doubly linked lists.
13404         (varpool_remove_node): New.
13405         (dump_varpool_node): More dumping.
13406         (varpool_enqueue_needed_node): Update doubly linked lists.
13407         (decide_is_variable_needed): Kill ltrans hack.
13408         (varpool_finalize_decl): Kill lto hack.
13409         (varpool_assemble_decl): Skip decls in other partitions.
13410         (varpool_assemble_pending_decls): Update doubly linkes lists.
13411         (varpool_empty_needed_queue): Likewise.
13412         (varpool_extra_name_alias): Likewise.
13413         * lto-streamer.c (lto_get_section_name): Add vars section.
13414         * lto-streamer.h (lto_section_type): Update.
13415         (output_varpool, input_varpool): Declare.
13417 2010-04-28  Mike Stump  <mikestump@comcast.net>
13419         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
13421 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
13423         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
13424         record or union type with RECORD_OR_UNION_TYPE_P predicate.
13425         (lto_input_ts_type_tree_pointers): Likewise.
13426         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
13427         (lto_output_ts_type_tree_pointers): Likewise.
13429 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
13431         Uniquization of constants at the Tree level
13432         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
13433         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
13434         bit to the end.
13435         (tree_output_constant_def): Declare.
13436         * gimplify.c (gimplify_init_constructor): When using block copy, first
13437         uniquize the constant constructor on the RHS.
13438         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
13439         DECL_IN_CONSTANT_POOL flag.
13440         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
13441         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
13442         constant pool.
13443         (assemble_variable): Deal with symbols belonging to the tree constant
13444         pool.
13445         (get_constant_section): Add ALIGN parameter and simplify.
13446         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
13447         (assemble_constant_contents): Use the expression of the VAR_DECL.
13448         (output_constant_def_contents): Use the alignment of the VAR_DECL.
13449         (tree_output_constant_def): New global function.
13450         (mark_constant): Use the expression of the VAR_DECL.
13451         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
13452         its expression.
13453         (output_object_block): Likewise and assemble the expression.
13455 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
13457         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
13458         hash_tree, eq_tree): New tree hash table.
13459         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
13460         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
13461         lto_orig_address_remove): Reimplement.
13463 2010-04-28  Xinliang David Li  <davidxl@google.com>
13465         PR c/42643
13466         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
13467         (compute_uninit_opnds_pos): New function.
13468         (is_non_loop_exit_postdominating): New function.
13469         (compute_control_dep_chain): New function.
13470         (find_pdom): New function.
13471         (convert_control_dep_chain_into_preds): New function.
13472         (find_predicates): New function.
13473         (find_control_equiv_block): New function.
13474         (collect_phi_def_edges): New function.
13475         (find_def_preds): New function.
13476         (find_dom): New function.
13477         (dump_predicates): New function.
13478         (get_cmp_code): New function.
13479         (is_value_included_in): New function.
13480         (find_matching_predicate_in_rest_chains): New function.
13481         (use_pred_not_overlap_with_undef_path_pred): New function.
13482         (is_use_properly_guarded): New function.
13483         (normalize_cond_1): New function.
13484         (is_and_or_or): New function.
13485         (normalize_cond): New function.
13486         (is_gcond_subset_of): New function.
13487         (is_subset_of_any): New function.
13488         (is_or_set_subset_of): New function.
13489         (is_and_set_subset_of): New function.
13490         (is_norm_cond_subset_of): New function.
13491         (is_pred_expr_subset_of): New function.
13492         (is_pred_chain_subset_of): New function.
13493         (is_included_in): New function.
13494         (is_superset_of): New function.
13495         (find_uninit_use): New function.
13496         (warn_uninitialized_phi): New function.
13497         (compute_possibly_undefined_names): New function.
13498         (ssa_undefined_value_p): New function.
13499         (execute_late_warn_uninitialized): New function.
13500         * tree-ssa.c (ssa_undefined_value_p): Removed.
13501         (warn_uninit): Changed to extern.
13502         (warn_uninitialized_phi): Removed.
13503         (warn_uninitialized_vars): Changed to extern.
13504         (execute_late_warn_uninitialized): Removed
13505         * tree-flow.h: Add new prototypes.
13506         * timevar.def: Add new time variable.
13507         * Makefile.in: Add new build file.
13509 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
13511         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
13512         type if available.
13514 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13516         PR target/22224
13517         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
13519 2010-04-28  Martin Jambor  <mjambor@suse.cz>
13521         * cgraph.h (struct cgraph_node): New field indirect_calls.
13522         (struct cgraph_indirect_call_info): New type.
13523         (struct cgraph_edge): Removed field indirect_call. New fields
13524         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
13525         (cgraph_create_indirect_edge): Declare.
13526         (cgraph_make_edge_direct): Likewise.
13527         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
13528         * ipa-prop.h (struct ipa_param_call_note): Removed.
13529         (struct ipa_node_params): Removed field param_calls.
13530         (ipa_create_all_structures_for_iinln): Declare.
13531         * cgraph.c: Described indirect edges and uids in initial comment.
13532         (cgraph_add_edge_to_call_site_hash): New function.
13533         (cgraph_edge): Search also among the indirect edges, use
13534         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
13535         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
13536         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
13537         site hash.
13538         (initialize_inline_failed): Assign a reason to indirect edges.
13539         (cgraph_create_edge_1): New function.
13540         (cgraph_create_edge): Moved some functionality to
13541         cgraph_create_edge_1.
13542         (cgraph_create_indirect_edge): New function.
13543         (cgraph_edge_remove_callee): Add an assert checking for
13544         non-indirectness.
13545         (cgraph_edge_remove_caller): Special-case indirect edges.
13546         (cgraph_remove_edge): Likewise.
13547         (cgraph_set_edge_callee): New function.
13548         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
13549         (cgraph_make_edge_direct): New function.
13550         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
13551         the declaration of the call statement matches.
13552         (cgraph_node_remove_callees): Special-case indirect edges.
13553         (cgraph_clone_edge): Likewise.
13554         (cgraph_clone_node): Clone also the indirect edges.
13555         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
13556         indirect_call, dump count of indirect_calls edges.
13557         * ipa-prop.c (iinlining_processed_edges): New variable.
13558         (ipa_note_param_call): Create indirect edges instead of
13559         creating notes.  New parameter node.
13560         (ipa_analyze_call_uses): New parameter node, pass it on to
13561         ipa_note_param_call.
13562         (ipa_analyze_stmt_uses): Likewise.
13563         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
13564         (print_edge_addition_message): Work on edges rather than on notes.
13565         (update_call_notes_after_inlining): Likewise, renamed to
13566         update_indirect_edges_after_inlining.
13567         (ipa_create_all_structures_for_iinln): New function.
13568         (ipa_free_node_params_substructures): Do not free notes.
13569         (ipa_edge_duplication_hook): Propagate bits within
13570         iinlining_processed_edges bitmap.
13571         (ipa_node_duplication_hook): Do not duplicate notes.
13572         (free_all_ipa_structures_after_ipa_cp): Renamed to
13573         ipa_free_all_structures_after_ipa_cp.
13574         (free_all_ipa_structures_after_iinln): Renamed to
13575         ipa_free_all_structures_after_iinln.
13576         (ipa_write_param_call_note): Removed.
13577         (ipa_read_param_call_note): Removed.
13578         (ipa_write_indirect_edge_info): New function.
13579         (ipa_read_indirect_edge_info): Likewise.
13580         (ipa_write_node_info): Do not stream notes, do stream information
13581         in indirect edges.
13582         (ipa_read_node_info): Likewise.
13583         (lto_ipa_fixup_call_notes): Removed.
13584         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
13585         * ipa-inline.c (pass_ipa_inline): Likewise.
13586         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
13587         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
13588         * tree-inline.c (copy_bb): Removed an unnecessary double check for
13589         is_gimple_call.
13590         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
13591         edges.
13592         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
13593         (output_cgraph): Stream also indirect edges.
13594         (lto_output_edge): Added capability to stream indirect edges.
13595         (input_edge): Likewise.
13596         (input_cgraph_1): Likewise.
13597         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
13598         of indirect edges.
13600 2010-04-28  Richard Guenther  <rguenther@suse.de>
13602         PR tree-optimization/43879
13603         PR tree-optimization/43909
13604         * tree-ssa-structalias.c (struct variable_info): Add
13605         only_restrict_pointers flag.
13606         (new_var_info): Initialize it.  Increment stats.total_vars here.
13607         (create_function_info_for): Do not increment stats.total_vars here.
13608         (get_function_part_constraint): Fix build with C++.
13609         (insert_into_field_list): Remove.
13610         (push_fields_onto_fieldstack): Properly merge fields.
13611         (create_variable_info_for): Split and simplify.
13612         (create_variable_info_for_1): New piece.
13613         (intra_create_variable_infos): Properly make restrict constraints
13614         from parameters.
13616 2010-04-28  Richard Guenther  <rguenther@suse.de>
13618         PR c++/43880
13619         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
13621 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13622             Jan Hubicka  <hubicka@ucw.cz>
13624         * doc/invoke.texi (-Wsuggest-attribute=const,
13625         -Wsuggest-attribute=pure): Document.
13626         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
13627         (function_always_visible_to_compiler_p,
13628         suggest_attribute, warn_function_pure, warn_function_const):
13629         New functions.
13630         (check_call): Improve debug info.
13631         (analyze_function): Do not check availability.
13632         (add_new_function): Check availability.
13633         (propagate): Output warnings.
13634         (skip_function_for_local_pure_const): New function.
13635         (local_pure_const): Use it; output warnings.
13636         * common.opt (Wsuggest-attribute=const,
13637         Wsuggest-attribute=pure): New.
13639 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
13641         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
13642         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
13643         or DW_CFA_def_cfa_offset{,_sf}.
13645 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13647         * tree.h: Fix truncated long macros.
13649 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
13651         * collect2.c (TARGET_64BIT): Redefine to target's default.
13652         * tlink.c: Likewise.
13653         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
13654         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
13655         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
13656         for underscoring __USER_LABEL_PREFIX__.
13657         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
13658         (SUB_LINK_ENTRY32): New.
13659         (SUB_LINK_ENTRY64): New.
13660         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
13661         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
13662         (SUB_LINK_ENTRY64): New.
13663         (SUB_LINK_ENTRY): New.
13664         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
13665         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
13666         x64 target is choosen.
13667         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
13668         * configure: Regenerated.
13669         * configure.ac (leading-mingw64-underscores): Option added.
13671 2010-04-27  Jan Hubicka  <jh@suse.cz>
13673         * doc/invoke.texi (-fipa-profile): Document.
13674         * opts.c (decode_options): Enable ipa-profile at -O1.
13675         * timevar.def (TV_IPA_PROFILE): Define.
13676         * common.opt (fipa-profile): Add.
13677         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
13678         flag for clones.
13679         (cgraph_propagate_frequency): Handle only local ones.
13680         * tree-pass.h (pass_ipa_profile): Declare.
13681         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
13682         (pass_ipa_profile): Use TV_IPA_PROFILE.
13683         * ipa.c (ipa_profile): New function.
13684         (gate_ipa_profile): Likewise.
13685         (pass_ipa_profile): New global variable.
13686         * passes.c (pass_ipa_profile): New.
13688 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
13690         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
13692 2010-04-27  Martin Jambor  <mjambor@suse.cz>
13694         PR middle-end/43812
13695         * ipa.c (dissolve_same_comdat_group_list): New function.
13696         (function_and_variable_visibility): Call
13697         dissolve_same_comdat_group_list when comdat group contains external or
13698         newly local nodes.
13699         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
13700         lists are circular and that they contain only DECL_ONE_ONLY nodes.
13702 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13704         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
13705         (const_hash_1) <VECTOR_CST>: New case.
13706         (compare_constant) <VECTOR_CST>: Likewise.
13707         <ADDR_EXPR>: Deal with LABEL_REFs.
13708         (copy_constant) <VECTOR_CST>: New case.
13710 2010-04-27  Jan Hubicka  <jh@suse.cz>
13712         * cgraph.c (cgraph_propagate_frequency): New function.
13713         * cgraph.h (cgraph_propagate_frequency): Declare.
13714         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
13715         cgraph_propagate_frequency.
13717 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
13719         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
13721 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
13723         PR target/40657
13724         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
13725         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
13726         here to determine which regs to push and how much stack to reserve.
13728 2010-04-27  Jie Zhang  <jie@codesourcery.com>
13730         * doc/gimple.texi (gimple_statement_with_ops): Remove
13731         addresses_taken field.
13732         (gimple_statement_with_memory_ops): Likewise.
13734 2010-04-27  Jan Hubicka  <jh@suse.cz>
13736         * tree-inline.c (eni_inlining_weights): Remove.
13737         (estimate_num_insns): Special case more builtins.
13739 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
13741         PR c/32207
13742         * c-typeck.c (build_binary_op): Move forward check for comparison
13743         pointer with null pointer constant and adjust the diagnostic message.
13745 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
13747         PR lto/42776
13748         * configure.ac (gcc_cv_as_section_has_align): Set if installed
13749         binutils supports extended .section directive needed by LTO, or
13750         warn if older binutils found.
13751         (LTO_BINARY_READER): New AC_SUBST'd variable.
13752         (LTO_USE_LIBELF): Likewise.
13753         * gcc/config.gcc (lto_binary_reader): New target-specific configure
13754         variable.
13755         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
13756         (LTO_USE_LIBELF): Likewise.
13757         * configure: Regenerate.
13759         * collect2.c (is_elf): Rename from this ...
13760         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
13761          object files in addition to ELF-formatted ones.
13762         (scan_prog_file): Caller updated.  Also allow for LTO info marker
13763         symbol to be prefixed or not by an extra underscore.
13765         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
13766         * config/i386/winnt.c: Also #include lto-streamer.h
13767         (i386_pe_asm_named_section): Specify 1-byte section alignment for
13768         LTO named sections.
13769         (i386_pe_asm_output_aligned_decl_common): Add comment.
13770         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
13772 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
13774         PR target/43889
13775         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
13776         Add missing earlyclobber for second alternative.
13778 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
13780         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
13781         bits for artificial defs at the top of the block.
13782         * fwprop.c (single_def_use_enter_block): Don't call it.
13784 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
13786         PR 43715
13787         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
13788         instead of "$gcc_cv_objdump -T".
13789         Use "-undefined dynamic_lookup" on darwin.
13790         * gcc/configure: Regenerate.
13792 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13794         PR c/43893
13795         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
13797 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
13799         * c-parser.c (struct c_token): Move location field up.
13800         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
13801         (struct c_declspecs): Convert typespec_word, storage_class, and
13802         default_int_p into bitfields.
13803         (struct c_declarator): Move loc field up.
13805 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
13807         * cfgloop.h (struct loop): Move can_be_parallel field up.
13808         * ipa-prop.h (struct ip_node_params): Move bitfields up.
13809         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
13810         down.
13811         (struct iv_cand): Convert pos field into a bitfield.
13812         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
13813         field up.
13814         (struct _stmt_vec_info): Shuffle fields for better packing.
13816 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
13818         * varasm.c (IN_NAMED_SECTION): Remove guard.
13819         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
13820         (IN_NAMED_SECTION_P): ...this.
13821         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
13822         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13824 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
13826         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
13827         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
13828         of shadowing it.  Fix comments.
13830 2010-04-26  Jan Hubicka  <jh@suse.cz>
13832         * cgraph.c (cgraph_create_node): Set node frequency to normal.
13833         (cgraph_clone_node): Copy function frequency.
13834         * cgraph.h (node_frequency): New enum
13835         (struct cgraph_node): Add.
13836         * final.c (rest_of_clean_state): Update.
13837         * lto-cgraph.c (lto_output_node): Output node frequency.
13838         (input_overwrite_node): Input node frequency.
13839         * tre-ssa-loop-ivopts (computation_cost): Update.
13840         * lto-streamer-out.c (output_function): Do not output function
13841         frequency.
13842         * predict.c (maybe_hot_frequency_p): Update and handle functions
13843         executed once.
13844         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
13845         attribute lookup.
13846         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
13847         (compute_function_frequency): Set noreturn functions to be executed
13848         once.
13849         (choose_function_section): Update.
13850         * lto-streamer-in.c (input_function): Do not input function frequency.
13851         * function.c (allocate_struct_function): Do not initialize function
13852         frequency.
13853         * function.h (function_frequency): Remove.
13854         (struct function): Remove function frequency.
13855         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
13856         (try_update): Update.
13857         * tree-inline.c (initialize_cfun): Do not update function frequency.
13858         * passes.c (pass_init_dump_file): Update.
13859         * i386.c (ix86_compute_frame_layout): Update.
13860         (ix86_pad_returns): Update.
13862 2010-04-26  Jie Zhang  <jie@codesourcery.com>
13864         PR tree-optimization/43833
13865         * tree-vrp.c (range_int_cst_p): New.
13866         (range_int_cst_singleton_p): New.
13867         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
13868         when both operands are constants.  Use range_int_cst_p in
13869         BIT_IOR_EXPR case.
13871 2010-04-26  Jan Hubicka  <jh@suse.cz>
13873         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
13875 2010-04-26  Richard Guenther  <rguenther@suse.de>
13877         PR lto/43080
13878         * gimple.c (gimple_decl_printable_name): Deal gracefully
13879         with a NULL DECL_NAME.
13881 2010-04-26  Richard Guenther  <rguenther@suse.de>
13883         PR lto/42425
13884         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
13885         if emitting debug information and it is either a function
13886         or a namespace decl.
13888 2010-04-26  Ira Rosen  <irar@il.ibm.com>
13890         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
13891         determine if the statement is vectorizable, and a macro to access it.
13892         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13893         Skip statements that can't be vectorized. If the analysis fails,
13894         mark the statement as unvectorizable if vectorizing basic block.
13895         (vect_compute_data_refs_alignment): Likewise.
13896         (vect_verify_datarefs_alignment): Skip statements marked as
13897         unvectorizable. Add print.
13898         (vect_analyze_group_access): Skip statements that can't be
13899         vectorized. If the analysis fails, mark the statement as
13900         unvectorizable if vectorizing basic block.
13901         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
13902         * tree-vect-stmts.c (vectorizable_store): Fix the number of
13903         generated stmts for SLP.
13904         (new_stmt_vec_info): Initialize the new field.
13905         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
13906         statements marked as unvectorizable.
13908 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
13910         * c-common.c (flag_isoc1x): New.
13911         (flag_isoc99): Update comment.
13912         * c-common.h (flag_isoc1x): New.
13913         (flag_isoc99): Update comment.
13914         * c-cppbuiltin.c (builtin_define_float_constants): Also define
13915         __<type>_DECIMAL_DIG__.
13916         * c-opts.c (set_std_c1x): New.
13917         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
13918         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
13919         * c.opt (-std=c1x, -std=gnu1x): New options.
13920         * doc/cpp.texi: Mention -std=c1x.
13921         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
13922         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
13923         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
13924         * doc/standards.texi: Mention C1X.
13925         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
13926         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
13927         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
13928         Define for C1X.
13930 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
13932         * config/i386/gmon-sol2.c (_mcleanup): Change format string
13933         placeholder from 0x%x to %#x.
13934         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13935         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13936         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13937         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13938         * config/i386/i386.c (ix86_target_string): Ditto.
13939         (output_pic_addr_const): Ditto.
13940         (print_operand): Ditto.
13942 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
13944         * combine.c (find_split_point): Add third argument.  Use it
13945         to find nested multiply-accumulate instructions.  Adjust calls.
13946         (try_combine): Adjust call to find_split_point.
13948 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
13950         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
13952 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
13954         PR tree-optimization/41442
13955         * fold-const.c (merge_truthop_with_opposite_arm): New function.
13956         (fold_binary_loc): Call it.
13958 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13960         * toplev.c (general_init): Set default for fdiagnostics-show-option.
13961         * opts.c (common_handle_option): Allow disabling it.
13962         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
13964 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
13966         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
13967         between modes if both types are integral.
13969 2010-04-23  Richard Guenther  <rguenther@suse.de>
13971         PR tree-optimization/43572
13972         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
13974 2010-04-23  Richard Guenther  <rguenther@suse.de>
13976         PR lto/43455
13977         * tree-inline.c (tree_can_inline_p): Also check compatibility
13978         of return types.
13980 2010-04-23  Martin Jambor  <mjambor@suse.cz>
13982         PR tree-optimization/43846
13983         * tree-sra.c (struct access): New flag grp_assignment_read.
13984         (build_accesses_from_assign): Set grp_assignment_read.
13985         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
13986         (enum mark_read_status): New type.
13987         (analyze_access_subtree): Propagate grp_assignment_read, create
13988         accesses also if both direct_read and root->grp_assignment_read.
13990 2010-04-23  Martin Jambor  <mjambor@suse.cz>
13992         PR middle-end/43835
13993         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
13994         function does not have type attributes.
13996 2010-04-23  Richard Guenther  <rguenther@suse.de>
13998         PR lto/42653
13999         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
14000         of FUNCTION_DECLs.
14002 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14004         * sese.h (create_if_region_on_edge): Remove.
14006         * sese.c (create_if_region_on_edge): Make static.
14008         * tree-inline.c: Do not include ggc.h.
14010         * expr.c: Do not include ggc.h.
14012         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
14013         dependencies.
14015 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14017         PR target/43744
14018         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14019         in the middle of insns for casesi_worker_2.
14021 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
14023         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
14025 2010-04-22  Ira Rosen  <irar@il.ibm.com>
14027         PR tree-optimization/43842
14028         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
14029         loop unrolling in update of exit phis. Fix comment.
14030         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
14031         least two reduction statements in the loop before starting SLP
14032         analysis.
14034 2010-04-22  Nick Clifton  <nickc@redhat.com>
14036         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
14038 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
14040         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
14041         to simplify a + ~a.
14043 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14045         * tree-parloops.c (loop_parallel_p): New argument
14046         parloop_obstack.  Pass it down.
14047         (parallelize_loops): New variable parloop_obstack.  Initialize it,
14048         pass it down, free it.
14050         * tree-loop-linear.c (linear_transform_loops): Pass down
14051         lambda_obstack.
14053         * tree-data-ref.h (lambda_compute_access_matrices): New argument
14054         of type struct obstack *.
14056         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
14057         scratch_obstack.  Initialize it, pass down, free it.
14059         * lambda.h (lambda_loop_new): Remove.
14060         (lambda_matrix_new, lambda_matrix_inverse)
14061         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
14062         argument of type struct obstack *.
14064         * lambda-trans.c (lambda_trans_matrix_new): New argument
14065         lambda_obstack.  Pass it down, use obstack allocation for ret.
14066         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
14067         it down.
14069         * lambda-mat.c (lambda_matrix_get_column)
14070         (lambda_matrix_project_to_null): Remove.
14071         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
14072         allocation for mat.
14073         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
14074         lambda_obstack.
14076         * lambda-code.c (lambda_loop_new): New function.
14077         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
14078         (lambda_compute_auxillary_space, lambda_compute_target_space)
14079         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
14080         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
14081         (build_access_matrix): New argument lambda_obstack.  Use obstack
14082         allocation for am.
14083         (lambda_compute_step_signs, lambda_compute_access_matrices): New
14084         argument lambda_obstack.  Pass it down.
14086 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14088         * optabs.h (expand_widening_mult): Declare.
14090 2010-04-22  Richard Guenther  <rguenther@suse.de>
14092         PR tree-optimization/43845
14093         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
14094         lookup the CALL_EXPR function and arguments.
14096 2010-04-22  Nick Clifton  <nickc@redhat.com>
14098         * config/stormy16/stormy16.c
14099         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
14100         * config/stormy16/stormy16.h: Tidy up formatting.
14101         (DONT_USE_BUILTIN_SETJMP): Remove definition.
14102         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
14103         (ineqbranchsi): Delete pattern.
14104         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
14105         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
14106         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
14107         stormy16-lib2-ucmpsi2.c.
14109 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14111         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
14112         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
14113         extra set merge_set_noclobber, and use it to relax the final test
14114         slightly.
14115         * df.h (df_simulate_find_noclobber_defs): Declare.
14116         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
14117         conditional defs.
14118         (df_simulate_find_noclobber_defs): New function.
14120 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
14122         * config/i386/i386.md: Use {} around multi-line preparation statements.
14124 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14126         * c-tree.h (push_init_level, pop_init_level, set_init_index)
14127         (process_init_element): New argument of type struct obstack *.
14129         * c-typeck.c (push_init_level, pop_init_level, set_designator)
14130         (set_init_index, set_init_label, set_nonincremental_init)
14131         (set_nonincremental_init_from_string, find_init_member)
14132         (output_init_element, output_pending_init_elements)
14133         (process_init_element): New argument braced_init_obstack.  Pass it
14134         down.
14135         (push_range_stack, add_pending_init): New argument
14136         braced_init_obstack.  Use obstack allocation.
14138         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
14139         braced_init_obstack.  Pass it down.
14140         (c_parser_braced_init): New variables ret, braced_init_obstack.
14141         Initialize obstack, pass it down and finally free it.
14143 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14145         PR middle-end/29274
14146         * tree-pass.h (pass_optimize_widening_mul): Declare.
14147         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
14148         gate_optimize_widening_mul): New static functions.
14149         (pass_optimize_widening_mul): New.
14150         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
14151         <case MULT_EXPR>: Remove support for widening multiplies.
14152         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
14153         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
14154         simplify_gen_unary rather than directly building extensions.
14155         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
14156         WIDEN_MULT_EXPR.
14157         * expmed.c (expand_widening_mult): New function.
14158         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
14160 2010-04-21  Jan Hubicka  <jh@suse.cz>
14162         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
14163         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
14164         * lto-wpa-fixup.c: Remove.
14165         * Makefile.in (lto-wpa-fixup.o): Remove.
14166         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
14167         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
14168         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
14170 2010-04-21  Jan Hubicka  <jh@suse.cz>
14172         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
14173         add write_optimization_summary, read_optimization_summary.
14174         (ipa_write_summaries_of_cgraph_node_set): Remove.
14175         (ipa_write_optimization_summaries): Declare.
14176         (ipa_read_optimization_summaries): Declare.
14177         * ipa-cp.c (pass_ipa_cp): Update.
14178         * ipa-reference.c (pass_ipa_reference): Update.
14179         * ipa-pure-const.c (pass_ipa_pure_const): Update.
14180         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
14181         Update.
14182         * ipa-inline.c (pass_ipa_inline): Update.
14183         * ipa.c (pass_ipa_whole_program): Update.
14184         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
14185         * passes.c (ipa_write_summaries_1): Do not test wpa.
14186         (ipa_write_optimization_summaries_1): New.
14187         (ipa_write_optimization_summaries): New.
14188         (ipa_read_summaries): Do not test ltrans.
14189         (ipa_read_optimization_summaries_1): New.
14190         (ipa_read_optimization_summaries): New.
14192 2010-04-21  Jan Hubicka  <jh@suse.cz>
14194         * lto-cgraph.c (lto_output_node): Do not output comdat groups
14195         for boundary nodes.
14196         (output_cgraph): Do not arrange comdat groups for boundary nodes.
14198 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14200         PR debug/40040
14201         * dwarf2out.c (add_name_and_src_coords_attributes): Add
14202         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
14204 2010-04-21  Jan Hubicka  <jh@suse.cz>
14206         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
14208 2010-04-21  Jan Hubicka  <jh@suse.cz>
14210         * varpool.c (decide_is_variable_needed): Variable is always needed
14211         during ltrans.
14213 2010-04-21  Jan Hubicka  <jh@suse.cz>
14215         * opts.c (decode_options): Enable pure-const pass for whopr.
14217 2010-04-21  Jan Hubicka  <jh@suse.cz>
14219         * cgraph.c (dump_cgraph_node): Dump also assembler name.
14220         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
14221         at WPA dumping.
14222         (cgraph_decide_inlining): Do not expect callee to be removed in all
14223         cases.
14225 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
14227         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
14229 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
14231         * config/i386/i386.md (x86_shrd): Add athlon_decode and
14232         amdfam10_decode attributes.
14234 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14236         PR middle-end/43570
14237         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
14238         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
14239         (lower_copyprivate_clauses): Use private var in outer
14240         context instead of original var.  Make sure the types
14241         are correct for VLAs.
14243 2010-04-21  Richard Guenther  <rguenther@suse.de>
14245         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
14246         to non-pointer objects.
14248 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14250         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
14251         last chain entry if it starts with the still current label.
14252         (add_location_or_const_value_attribute): Check that
14253         loc_list->first->next is NULL instead of comparing ->first with ->last.
14254         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
14255         to add_var_loc_to_decl.
14257         * dwarf2out.c (output_call_frame_info): For dw_cie_version
14258         >= 4 add also address size and segment size fields into CIE header.
14260         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
14261         long as address size is the same as sizeof (void *) and
14262         segment size is 0.
14263         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
14264         address size or segment size is unexpected, return DW_EH_PE_omit.
14265         (classify_object_over_fdes): If get_cie_encoding returned
14266         DW_EH_PE_omit, return -1.
14267         (init_object): If classify_object_over_fdes returned -1,
14268         pretend there were no FDEs at all.
14270 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
14272         * config/i386/i386.md (bswap<mode>2): Macroize expander from
14273         bswap{si,di}2 using SWI48 mode iterator.
14274         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
14275         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
14276         set modrm attribute of bswap insn to 0 and remove length attribute.
14277         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
14278         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
14279         set mode attribute to <MODE> and remove length attribute.
14281 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
14283         PR rtl-optimization/43520
14284         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
14285         zero available registers.
14287 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14289         * builtins.c (fold_builtin_cproj): Fold more cases.
14291 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14293         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
14294         (fold_builtin_1): Fold builtin cproj.
14295         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
14296         Use ATTR_CONST_NOTHROW_LIST.
14298 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
14300         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
14301         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
14302         ffsi2_no_cmove for !TARGET_CMOVE.
14303         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
14304         (ffssi2): Remove expander.
14305         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
14306         mode iterator.
14307         (ctz<mode>2): Ditto from ctz{si,di}2.
14308         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
14309         mode iterator.
14310         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
14311         mode iterator.
14313 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
14315         * dwarf2out.c (AT_linkage_name): Define.
14316         (clone_as_declaration): Handle DW_AT_linkage_name.
14317         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
14318         of DW_AT_MIPS_linkage_name.
14319         (move_linkage_attr): Likewise.
14320         (dwarf2out_finish): Likewise.
14322 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
14324         PR middle-end/41952
14325         * fold-const.c (fold_comparison): New folding rule.
14327 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
14329         * double-int.h (double_int_setbit): Declare.
14330         * double-int.c (double_int_setbit): New function.
14331         * rtl.h (immed_double_int_const): Declare.
14332         * emit-rtl.c (immed_double_int_const): New function.
14333         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
14334         and immed_double_int_const functions.
14335         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
14336         expand_copysign_bit): (Ditto.).
14337         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
14338         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
14339         * dojump.c (prefer_and_bit_test): (Ditto.).
14340         * expr.c (convert_modes, reduce_to_bit_field_precision,
14341         const_vector_from_tree): (Ditto.).
14342         * expmed.c (mask_rtx, lshift_value): (Ditto.).
14344 2010-04-20  Jan Hubicka  <jh@suse.cz>
14346         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
14347         (dump_cgraph_node): Dump new flags.
14348         * cgraph.h (struct cgraph_node): Add flags
14349         reachable_from_other_partition and in_other_partition.
14350         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
14351         other partition can not be removed.
14352         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
14353         the other partition must be output; silence sanity checking on
14354         leaking functions bodies from other paritition.
14355         * lto-cgraph.c (reachable_from_other_partition_p): New function.
14356         (lto_output_node): Output new flags; do not sanity check that inline
14357         clones are output; drop lto_forced_extern_inline_p code; do not mock
14358         visibility flags at partition boundaries.
14359         (add_node_to): New function.
14360         (output_cgraph): Use it to sort functions so masters appear before
14361         clones.
14362         (input_overwrite_node): Input new flags.
14363         * passes.c (ipa_write_summaries): Do not call
14364         lto_new_extern_inline_states.
14365         * lto-section-out.c (forced_extern_inline,
14366         lto_new_extern_inline_states lto_delete_extern_inline_states,
14367         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
14368         * lto-streamer.h (lto_new_extern_inline_states,
14369         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
14370         lto_forced_extern_inline_p): Kill.
14372 2010-04-20  Richard Guenther  <rguenther@suse.de>
14374         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
14375         from vars that can have pointers.
14376         (process_constraint): Dump useless constraints.
14378 2010-04-20  Richard Guenther  <rguenther@suse.de>
14380         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
14381         (dump_sa_points_to_info): Remove asserts.
14382         (init_base_vars): nothing_id isn't an escape point nor does it
14383         have pointers.
14385 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
14387         * tree.h (TYPE_REF_IS_RVALUE): Define.
14388         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
14389         should_move_die_to_comdat, prune_unused_types_walk): Handle
14390         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
14391         (modified_type_die, gen_reference_type_die): Emit
14392         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
14393         if TYPE_REF_IS_RVALUE and -gdwarf-4.
14395 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14397         PR target/43635
14398         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
14399         calls for -fpic -m31 if they have been sibcall optimized.
14401 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
14403         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
14404         ar.lc fixed and call-used.
14406         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
14408 2010-04-19  Jan Hubicka  <jh@suse.cz>
14410         * opts.c (decode_options): Disable whpr incompatible passes.
14411         * lto/lto.c (lto_1_to_1_map): Skip clones.
14412         (read_cgraph_and_symbols): Do not mark everything as needed.
14413         (do_whole_program_analysis): Do map only after optimizing;
14414         set proper cgraph_state; use passmanager.
14416 2010-04-19  DJ Delorie  <dj@redhat.com>
14418         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
14419         POINTER_PLUS_EXPR and fix them.
14421 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
14423         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
14424         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
14425         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
14426         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
14427         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
14428         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
14429         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
14430         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
14431         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
14432         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
14433         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
14435 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14437         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
14438         (check_cond_move_block): Likewise.
14439         (cond_move_process_if_block): Likewise.
14440         (noce_find_if_block): Improve formatting.
14441         (find_if_header): Pass 0 to memset and tweak conditions.
14442         (cond_exec_find_if_block): Fix long lines and tweak conditions.
14444 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
14446         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
14447         for -gdwarf-4.
14449         PR middle-end/43337
14450         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
14451         with non-local decl doesn't need chain.
14453 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
14455         * ira-color.c (allocno_reload_assign): Avoid accumulating
14456         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
14458 2010-04-19  Martin Jambor  <mjambor@suse.cz>
14460         * gimple.h (create_tmp_reg): Declare.
14461         * gimplify.c (create_tmp_reg): New function.
14462         (gimplify_return_expr): Use create_tmp_reg.
14463         (gimplify_omp_atomic): Likewise.
14464         (gimple_regimplify_operands): Likewise.
14465         * tree-dfa.c (make_rename_temp): Likewise.
14466         * tree-predcom.c (predcom_tmp_var): Likewise.
14467         (reassociate_to_the_same_stmt): Likewise.
14468         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
14469         (get_replaced_param_substitute): Likewise.
14470         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14471         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
14472         * tree-ssa-pre.c (get_representative_for): Likewise.
14473         (create_expression_by_pieces): Likewise.
14474         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
14475         (create_tailcall_accumulator): Likewise.
14477 2010-04-19  Martin Jambor  <mjambor@suse.cz>
14479         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
14480         new_stmt.
14481         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
14483 2010-04-19  Richard Guenther  <rguenther@suse.de>
14485         PR tree-optimization/43796
14486         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
14487         from SCEV in the lattice.
14488         (vrp_visit_phi_node): Dump change.
14490 2010-04-19  Richard Guenther  <rguenther@suse.de>
14492         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
14493         * configure: Re-generated.
14495 2010-04-19  Richard Guenther  <rguenther@suse.de>
14497         PR tree-optimization/43783
14498         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
14499         constant ARRAY_REF operands two and three if possible.
14501 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
14503         PR target/43766
14504         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
14506 2010-04-19  Jie Zhang  <jie@codesourcery.com>
14508         PR target/43662
14509         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
14511 2010-04-19  Ira Rosen  <irar@il.ibm.com>
14513         PR tree-optimization/37027
14514         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
14515         and macro to access it.
14516         (vectorizable_reduction): Add argument.
14517         (vect_get_slp_defs): Likewise.
14518         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
14519         statements for possible use in SLP.
14520         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
14521         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
14522         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
14523         add new argument.
14524         (vectorizable_reduction): Likewise.
14525         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
14526         vect_get_slp_defs.
14527         (vectorizable_type_demotion, vectorizable_type_promotion,
14528         vectorizable_store): Likewise.
14529         (vect_analyze_stmt): Update call to vectorizable_reduction.
14530         (vect_transform_stmt): Likewise.
14531         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
14532         (vect_build_slp_tree): Fix indentation. Check that there are no loads
14533         from different interleaving chains in same node.
14534         (vect_slp_rearrange_stmts): New function.
14535         (vect_supported_load_permutation_p): Allow load permutations for
14536         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
14537         inside SLP nodes if necessary.
14538         (vect_analyze_slp_instance): Handle reductions.
14539         (vect_analyze_slp): Try to build SLP instances originating from groups
14540         of reductions.
14541         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
14542         (vect_get_constant_vectors): Create initial vectors for reductions
14543         according to reduction code. Add new argument.
14544         (vect_get_slp_defs): Add new argument, pass it to
14545         vect_get_constant_vectors.
14546         (vect_schedule_slp_instance): Remove SLP tree root statements.
14548 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
14550         * tree.h (ENUM_IS_SCOPED): Define.
14551         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
14552         for ENUM_IS_SCOPED enums.
14554 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
14556         * fold-const.c (fold_comparison): Use ssizetype.
14557         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14558         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
14559         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
14560         * tree-object-size.c (compute_object_sizes): Use size_type_node.
14562         * tree.h (initialize_sizetypes): Remove parameter.
14563         (build_common_tree_nodes): Remove second parameter.
14564         * stor-layout.c (initialize_sizetypes): Remove parameter.
14565         Always create an unsigned type.
14566         (set_sizetype): Assert that the passed type is unsigned and simplify.
14567         * tree.c (build_common_tree_nodes): Remove second parameter.
14568         Adjust call to initialize_sizetypes.
14569         * c-decl.c (c_init_decl_processing): Remove second argument in call to
14570         build_common_tree_nodes.
14572 2010-04-18  Matthias Klose  <doko@ubuntu.com>
14574         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
14576 2010-04-18  Ira Rosen  <irar@il.ibm.com>
14578         PR tree-optimization/43771
14579         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
14580         load permutation doesn't have gaps.
14582 2010-04-18  Jan Hubicka  <jh@suse.cz>
14584         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
14585         (sse_prologue_save_insn expander): Use new pattern.
14586         (sse_prologue_save_insn1): New pattern and splitter.
14587         (sse_prologue_save_insn): Update to deal also with 64bit aligned
14588         blocks.
14589         * i386.c (setup_incoming_varargs_64): Do not compute jump
14590         destination here.
14591         (ix86_gimplify_va_arg): Update alignment needed.
14592         (ix86_local_alignment): Do not align all local arrays to 128bit.
14594 2010-04-17  Jan Hubicka  <jh@suse.cz>
14596         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
14598 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
14600         * arm.md (negdi2): Remove redundant code to force values into a
14601         register.
14603 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
14605         * arm/bpabi.S: Add EABI alignment attributes to objects.
14606         * arm/bpabi-v6m.S: Likewise.
14607         * arm/crti.asm: Likewise.
14608         * arm/crtn.asm: Likewise.
14609         * arm/lib1funcs.asm: Likewise.
14610         * arm/libunwind.S: Likewise.
14612 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
14614         * arm-protos.h (tune_params): New structure.
14615         * arm.c (current_tune): New variable.
14616         (arm_constant_limit): Delete.
14617         (struct processors): Add pointer to the tune parameters.
14618         (arm_slowmul_tune): New tuning option.
14619         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
14620         (all_cores): Adjust to pick up the tuning model.
14621         (arm_constant_limit): New function.
14622         (arm_override_options): Select the appropriate tuning model.  Delete
14623         initialization of arm_const_limit.
14624         (arm_split_constant): Use the new constant-limit model.
14625         (arm_rtx_costs): Pick up the current tuning model.
14626         * arm.md (is_strongarm, is_xscale): Delete.
14627         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
14628         for Xscale variant architectures.
14629         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
14631 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14633         * config/arm/arm.c (arm_gen_constant): Remove unused variable
14634         can_shift.
14635         (arm_rtx_costs_1): Remove unused variable extra_cost.
14636         (arm_unwind_emit_set): Use variable offset.
14637         (thumb1_output_casesi): Remove unused variable flags.
14639 2010-04-16  Jeff Law  <law@redhat.com>
14641         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
14642         needing assignment rather than doing a two-phase assignment.  Remove
14643         unused variable 'm'.
14645 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
14647         PR bootstrap/43767
14648         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
14650 2010-04-16  Doug Kwan  <dougkwan@google.com>
14652         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
14653         (next_operand_entry_id): New static variable.
14654         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
14655         (add_to_ops_vec): Assigned unique ID to operand entry.
14656         (struct oecount_s): New field ID.
14657         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
14658         (undistribute_ops_list): Assign unique IDs to oecounts.
14659         (init_reassoc): reset next_operand_entry_id.
14661 2010-04-16  Doug Kwan  <dougkwan@google.com>
14663         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
14664         missing left parenthesis.
14666 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
14668         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
14669         *btdi_rex64 using SWI48 mode iterator.
14670         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
14671         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
14672         *jcc_btdi_mask_rex64.
14674 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
14676         * double-int.h (tree_to_double_int): Convert to macro.
14677         * double-int.c (tree_to_double_int): Remove.
14679 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
14681         PR debug/43762
14682         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
14683         with want_address 2 and in case a single element list might be
14684         possible, call it again with want_address 0.
14686 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14688         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
14689         case 'W' print operands for HI mode.
14690         * config/h8300/h8300.h (Y0, Y2) : New constraints.
14691         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
14692         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
14693         * config/h8300/predicate.md (bit_register_indirect_operand): New.
14695         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
14697         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
14698         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
14699         #xx:3 and #xx:4 mode.
14701         * config/h8300/h8300.md (inverted load with HImode dest): Add
14702         support for H8300SX.
14704         * config/h8300/predicate.md (bit_operand): Allow immediate values that
14705         satisfy 'U' constraint.
14707 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14709         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
14710         * configure: Regenerate.
14711         * config.in: Regenerate.
14712         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
14713         works.
14715 2010-04-16  Richard Guenther  <rguenther@suse.de>
14717         * tree.h (struct tree_decl_minimal): Move pt_uid ...
14718         (struct tree_decl_common): ... here.
14719         (DECL_PT_UID): Adjust.
14720         (SET_DECL_PT_UID): Likewise.
14721         (DECL_PT_UID_SET_P): Likewise.
14723 2010-04-16  Richard Guenther  <rguenther@suse.de>
14725         PR tree-optimization/43572
14726         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
14727         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
14728         * tree-flow.h (is_call_clobbered): Remove.
14729         * tree-flow-inline.h (is_call_clobbered): Likewise.
14730         * tree-dfa.c (dump_variable): Do not dump call clobber state.
14731         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
14732         (execute_return_slot_opt): Adjust.
14733         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
14734         check for call clobbered vars here.
14735         (find_tail_calls): Move tailcall verification to the
14736         proper place.
14738 2010-04-16  Diego Novillo  <dnovillo@google.com>
14740         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
14742 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
14744         PR target/40603
14745         * config/arm/arm.md (cbranchqi4): New pattern.
14746         * config/arm/predicates.md (const0_operand,
14747         cbranchqi4_comparison_operator): New predicates.
14749 2010-04-16  Richard Guenther  <rguenther@suse.de>
14751         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
14752         (dump_gimple_stmt): Likewise.
14754 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
14756         * recog.h (struct recog_data): New field is_operator.
14757         (struct insn_operand_data): New field is_operator.
14758         * recog.c (extract_insn): Set recog_data.is_operator.
14759         * genoutput.c (output_operand_data): Emit code to set the
14760         is_operator field.
14761         * reload.c (find_reloads): Use it rather than testing for an
14762         empty constraint string.
14764         PR target/41514
14765         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
14766         If the previous insn is a cbranchsi4_insn with the same arguments,
14767         omit the compare instruction.
14769         * config/arm/arm.md (addsi3_cbranch): If destination is a high
14770         register, inputs must be low registers and we need a low register
14771         scratch.  Handle alternative 2 like alternative 3.
14773 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
14775         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
14776         don't call get_addr on both.  If one expression is a VALUE and
14777         the other a REG, check VALUE's locs if the REG isn't among them.
14779 2010-04-16  Christian Bruel  <christian.bruel@st.com>
14781         * config/sh/sh.h (sh_frame_pointer_required): New function.
14782         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
14783         (flag_omit_frame_pointer) Set.
14784         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
14785         (rounded_frame_size): Adjust size with outgoing_args_size.
14786         (sh_set_return_address): Must return from stack pointer.
14787         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
14788         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
14789         (ACCUMULATE_OUTGOING_ARGS): Define.
14790         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
14791         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
14793 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
14795         PR target/43471
14796         * config/sh/sh.c (sh_legitimize_reload_address): Use
14797         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
14798         Remove a unneeded check for offset_base.
14800 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
14802         * configure: Regenerated.
14804 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14806         * config/s390/s390.c (s390_call_save_register_used): Switch back
14807         to HARD_REGNO_NREGS.
14809 2010-04-15  Richard Guenther  <rguenther@suse.de>
14811         * alias.c (alias_set_subset_of): Handle alias-set zero
14812         child properly.
14814 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
14815             Julian Brown  <julian@codesourcery.com>
14817         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
14818         alternatives according to use of high and low regs.
14819         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14820         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
14821         optimizing for size on Thumb-2.
14823 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
14825         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
14827 2010-04-15  Richard Guenther  <rguenther@suse.de>
14829         * tree-ssa-structalias.c (struct variable_info): Add
14830         is_fn_info flag.
14831         (new_var_info): Initialize it.
14832         (dump_constraints): Support printing last added constraints.
14833         (debug_constraints): Adjust.
14834         (dump_constraint_graph): Likewise.
14835         (make_heapvar_for): Check for NULL cfun.
14836         (get_function_part_constraint): New function.
14837         (get_fi_for_callee): Likewise.
14838         (find_func_aliases): Properly implement IPA PTA constraints.
14839         (process_ipa_clobber): New function.
14840         (find_func_clobbers): Likewise.
14841         (insert_into_field_list_sorted): Remove.
14842         (create_function_info_for): Properly allocate vars for IPA mode.
14843         Do not use insert_into_field_list_sorted.
14844         (create_variable_info_for): Properly generate constraints for
14845         global vars in IPA mode.
14846         (dump_solution_for_var): Always dump the solution.
14847         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
14848         (find_what_var_points_to): Adjust.
14849         (pt_solution_set): Change.
14850         (pt_solution_ior_into): New function.
14851         (pt_solution_empty_p): Export.
14852         (pt_solution_includes_global): Adjust.
14853         (pt_solution_includes_1): Likewise.
14854         (pt_solutions_intersect_1): Likewise.
14855         (dump_sa_points_to_info): Check some invariants.
14856         (solve_constraints): Move constraint dumping ...
14857         (compute_points_to_sets): ... here.
14858         (ipa_pta_execute): ... and here.
14859         (compute_may_aliases): Do not re-compute points-to info
14860         locally if IPA info is available.
14861         (ipa_escaped_pt): New global var.
14862         (ipa_pta_execute): Properly implement IPA PTA.
14863         * tree-into-ssa.c (dump_decl_set): Support dumping
14864         decls not in referenced-vars.
14865         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
14866         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
14867         (dump_points_to_solution): Likewise.
14868         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
14869         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
14870         (remap_gimple_stmt): Reset call clobber/use information if necessary.
14871         (copy_decl_to_var): Copy DECL_PT_UID.
14872         (copy_result_decl_to_var): Likewise.
14873         * tree.c (make_node_stat): Initialize DECL_PT_UID.
14874         (copy_node_stat): Copy it.
14875         * tree.h (DECL_PT_UID): New macro.
14876         (SET_DECL_PT_UID): Likewise.
14877         (DECL_PT_UID_SET_P): Likewise.
14878         (struct tree_decl_minimal): Add pt_uid member.
14879         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
14880         (pt_solution_empty_p): Declare.
14881         (pt_solution_set): Adjust.
14882         (ipa_escaped_pt): Declare.
14883         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
14884         * gimple-pretty-print.c (pp_points_to_solution): New function.
14885         (dump_gimple_call): Dump call clobber/use information.
14886         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
14887         * tree-pass.h (TDF_ALIAS): New dump option.
14888         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
14889         * doc/invoke.texi (-fipa-pta): Update documentation.
14891 2010-04-15  Richard Guenther  <rguenther@suse.de>
14893         * Makefile.in (OBJS-common): Add gimple-fold.o.
14894         (gimple-fold.o): New rule.
14895         * tree.h (maybe_fold_offset_to_reference,
14896         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
14897         prototypes ...
14898         * gimple.h: ... here.
14899         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
14900         may_propagate_address_into_dereference): Move prototypes ...
14901         * gimple.h: ... here.
14902         * tree-ssa-ccp.c (get_symbol_constant_value,
14903         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
14904         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
14905         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
14906         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
14907         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
14908         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
14909         gimplify_and_update_call_from_tree): Move ...
14910         * gimple-fold.c: ... here.  New file.
14911         (ccp_fold_builtin): Rename to ...
14912         (gimple_fold_builtin): ... this.
14913         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
14915 2010-04-15  Richard Guenther  <rguenther@suse.de>
14917         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
14918         fit_double_type, force_fit_type_double, add_double_with_sign,
14919         neg_double, mul_double_with_sign, lshift_double, rshift_double,
14920         lrotate_double, rrotate_double, div_and_round_double): Move ...
14921         * double-int.c: ... here.
14922         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
14923         add_double, neg_double, mul_double_with_sign, mul_double,
14924         lshift_double, rshift_double, lrotate_double, rrotate_double,
14925         div_and_round_double): Move prototypes ...
14926         * double-int.h: ... here.
14928 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
14930         PR target/43742
14931         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
14932         matching constraints to ensure inputs match the output.
14934 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
14936         PR target/43742
14937         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
14938         in an input-only operand.
14940 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
14942         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
14943         (double_int_not, double_int_lshift, double_int_rshift): Declare.
14944         (double_int_negative_p): Convert to static inline function.
14945         * double-int.c (double_int_lshift, double_int_lshift): New functions.
14946         (double_int_negative_p): Remove.
14947         * tree.h (lshift_double, rshift_double):
14948         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
14949         * fold-const.c (fold_convert_const_int_from_real,
14950         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
14951         (lshift_double): Change type of arith argument to bool.
14952         (rshift_double): Change type of arith argument to bool. Correct
14953         comment.
14954         * expmed.c (mask_rtx, lshift_value): (Ditto.).
14956 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
14958         PR target/21803
14959         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
14960         at the start and end of the then/else blocks, and omit them from the
14961         conversion.
14962         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
14963         argument; all callers changed.  Pass zero to old_insns_match_p instead.
14964         (flow_find_head_matching_sequence): New function.
14965         (old_insns_match_p): Check REG_EH_REGION notes for calls.
14966         * basic-block.h (flow_find_cross_jump,
14967         flow_find_head_matching_sequence): Declare functions.
14969 2010-04-14  Jason Merrill  <jason@redhat.com>
14971         PR c++/36625
14972         * c-common.c (attribute_takes_identifier_p): New fn.
14973         * c-common.h: Declare it.
14975 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
14977         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
14978         splitter condition.
14979         (*udivmod<mode>4): Ditto.
14981 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
14983         * config/i386/i386.md (maxmin_int): Rename code attribute from
14984         maxminiprefix and update all users.
14985         (maxmin_float): Ditto from maxminfprefix.
14986         (logic): Ditto from logicprefix.
14987         (absneg_mnemonic): Ditto from absnegprefix.
14988         * config/i386/mmx.md: Update all users of maxminiprefix,
14989         maxminfprefix and logicprefix for rename.
14990         * config/i386/sse.md: Ditto.
14991         * config/i386/sync.md (sync_<code><mode>): Update for
14992         logicprefix rename.
14994 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14996         PR 42966
14997         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
14998         warnings converted to errors.
15000 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15002         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
15003         used insn_type variable.
15004         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
15005         to avoid set-but-not-used warning.
15007 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15009         * df-core.c (df_ref_debug): Change format string placeholder
15010         from 0x%x to %#x.
15011         * dwarf2asm.c (dw2_asm_output_data_raw,
15012         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
15013         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
15014         * dwarf2out.c (output_cfi, output_cfi_directive,
15015         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
15016         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
15017         Ditto.
15018         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
15019         * print-rtl.c (print_rtx): Ditto.
15021 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15023         PR middle-end/42694
15024         * builtins.c (expand_builtin_pow_root): New function to expand pow
15025         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
15026         series of sqrt and cbrt calls under -ffast-math.
15027         (expand_builtin_pow): Call it.
15029 2010-04-14  Michael Matz  <matz@suse.de>
15031         PR tree-optimization/42963
15032         * tree-cfg.c (touched_switch_bbs): New static variable.
15033         (group_case_labels_stmt): New function broken out from ...
15034         (group_case_labels): ... here, use the above.
15035         (start_recording_case_labels): Allocate touched_switch_bbs.
15036         (end_recording_case_labels): Deallocate it, call
15037         group_case_labels_stmt.
15038         (gimple_redirect_edge_and_branch): Remember index of affected BB.
15040 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15042         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
15043         from insn template.
15045 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15047         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
15049 2010-04-13  Jan Hubicka  <jh@suse.cz>
15051         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
15052         of optimized out static functions.
15053         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
15054         cost computation.  Also sanity check for overflows.
15055         (update_caller_keys): Update cgraph_edge_badness call; properly
15056         update fibheap and sanity check that it is up to date.
15057         (add_new_edges_to_heap): Update cgraph_edge_badness.
15058         (cgraph_decide_inlining_of_small_function): Likewise;
15059         add sanity checking that badness in heap is up to date;
15060         improve dumping of reason; Update badness of calls to the
15061         offline copy of function currently inlined; dump badness
15062         of functions not inlined because of unit growth limits.
15064 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
15066         PR middle-end/32628
15067         * c-common.c (pointer_int_sum): Disregard overflow that occured only
15068         because of sign-extension change when converting to sizetype here...
15069         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
15071         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
15072         the folding to constants.  Remove redundant final conversion.
15073         (fold_binary) <associate>: Do not associate if the re-association of
15074         constants alone overflows.
15075         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
15076         to the end of the list.
15077         (multiple_of_p) <COND_EXPR>: New case.
15079 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15081         * opt-functions.awk (opt_sanitized_name): New.
15082         (opt_enum): New.
15083         * optc-gen.awk: Use it
15084         * opth-gen.awk: Use it.
15086 2010-04-13  Martin Jambor  <mjambor@suse.cz>
15088         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
15089         (sra_modify_assign): Delete stmts loading dead data even if racc has no
15090         children.  Call replace_uses_with_default_def_ssa_name to handle
15091         SSA_NAES on lhs.
15093 2010-04-13  Michael Matz  <matz@suse.de>
15095         PR middle-end/43730
15096         * builtins.c (expand_builtin_interclass_mathfn): Also create
15097         a register if the predicate doesn't match.
15099 2010-04-13  Diego Novillo  <dnovillo@google.com>
15101         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
15102         * c-pch.c: Include timevar.h.
15103         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
15104         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
15105         * ggc-common.c: Include timevar.h.
15106         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
15107         * timevar.def (TV_PCH_SAVE): Define.
15108         (TV_PCH_CPP_SAVE): Define.
15109         (TV_PCH_PTR_REALLOC): Define.
15110         (TV_PCH_PTR_SORT): Define.
15111         (TV_PCH_RESTORE): Define.
15112         (TV_PCH_CPP_RESTORE): Define.
15114 2010-04-13  Michael Matz  <matz@suse.de>
15116         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
15117         into MINUS_EXPRs.
15118         (can_reassociate_p): New function.
15119         (break_up_subtract_bb, reassociate_bb): Use it.
15121 2010-04-13  Richard Guenther  <rguenther@suse.de>
15123         PR bootstrap/43737
15124         * builtins.c (c_readstr): Fix assert.
15126 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
15128         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
15129         when generating cltd insn.
15131         (*ashl<mode>3_1): Remove special handling for register operand 2.
15132         (*ashlsi3_1_zext): Ditto.
15133         (*ashlhi3_1): Ditto.
15134         (*ashlhi3_1_lea): Ditto.
15135         (*ashlqi3_1): Ditto.
15136         (*ashlqi3_1_lea): Ditto.
15137         (*<shiftrt_insn><mode>3_1): Ditto.
15138         (*<shiftrt_insn>si3_1_zext): Ditto.
15139         (*<shiftrt_insn>qi3_1_slp): Ditto.
15140         (*<rotate_insn><mode>3_1): Ditto.
15141         (*<rotate_insn>si3_1_zext): Ditto.
15142         (*<rotate_insn>qi3_1_slp): Ditto.
15144 2010-04-13  Richard Guenther  <rguenther@suse.de>
15146         * tree-ssa-structalias.c (callused_id): Remove.
15147         (call_stmt_vars): New.
15148         (get_call_vi): Likewise.
15149         (lookup_call_use_vi): Likewise.
15150         (lookup_call_clobber_vi): Likewise.
15151         (get_call_use_vi): Likewise.
15152         (get_call_clobber_vi): Likewise.
15153         (make_transitive_closure_constraints): Likewise.
15154         (handle_const_call): Adjust to do per-call call-used handling.
15155         (handle_pure_call): Likewise.
15156         (find_what_var_points_to): Remove general callused handling.
15157         (init_base_vars): Likewise.
15158         (init_alias_vars): Initialize call_stmt_vars.
15159         (compute_points_to_sets): Process call-used and call-clobbered
15160         vars for call statements.
15161         (delete_points_to_sets): Free call_stmt_vars.
15163 2010-04-13  Richard Guenther  <rguenther@suse.de>
15165         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15166         Only add RW dependence for dependence distance zero.
15167         Adjust maximal vectorization factor according to dependences.
15168         Move alignment handling ...
15169         (vect_find_same_alignment_drs): ... here.  New function.
15170         (vect_analyze_data_ref_dependences): Adjust.
15171         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
15172         (vect_analyze_data_refs): Adjust minimal vectorization factor
15173         according to data references.
15174         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
15175         dependences before determining the vectorization factor.
15176         Analyze alignment after determining the vectorization factor.
15177         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
15178         dependences before alignment.
15179         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
15180         Adjust prototype.
15181         (vect_analyze_data_refs): Likewise.
15182         (MAX_VECTORIZATION_FACTOR): New define.
15184 2010-04-13  Duncan Sands  <baldrick@free.fr>
15186         * except.h (lang_eh_type_covers): Remove.
15187         * except.c (lang_eh_type_covers): Likewise.
15189 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15190             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15192         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
15193         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
15194         UNITS_PER_LONG where it is ABI relevant.
15195         (s390_return_addr_rtx): Likewise.
15196         (s390_back_chain_rtx): Likewise.
15197         (s390_frame_area): Likewise.
15198         (s390_frame_info): Likewise.
15199         (s390_initial_elimination_offset): Likewise.
15200         (save_gprs): Likewise.
15201         (s390_emit_prologue): Likewise.
15202         (s390_emit_epilogue): Likewise.
15203         (s390_function_arg_advance): Likewise.
15204         (s390_function_arg): Likewise.
15205         (s390_va_start): Likewise.
15206         (s390_gimplify_va_arg): Likewise.
15207         (s390_function_profiler): Likewise.
15208         (s390_optimize_prologue): Likewise.
15209         (s390_rtx_costs): Likewise.
15210         (s390_secondary_reload): Likewise.
15211         (s390_promote_function_mode): Likewise.
15212         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
15213         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
15214         registers available.
15215         (s390_unwind_word_mode): New function.
15216         (s390_function_value): Split 64 bit values into register pair if
15217         used as return value.
15218         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
15219         function call parameters.  Handle parallels.
15220         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
15221         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
15222         (DWARF_CIE_DATA_ALIGNMENT): New macro.
15223         (s390_expand_setmem): Remove unused variable src_addr.
15224         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
15225         deal with 64 bit registers.
15226         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
15227         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
15228         (UNITS_PER_LONG): New macro.
15229         * libjava/include/s390-signal.h: Define extended ucontext
15230         structure containing the upper halfs of the 64 bit registers.
15232 2010-04-13  Simon Baldwin  <simonb@google.com>
15234         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
15236 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
15238         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
15239         rvalue on the RHS if the LHS is of a non-renamable type.
15240         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
15242 2010-04-13  Matthias Klose  <doko@ubuntu.com>
15244         * gcc.c (cc1_options): Handle -iplugindir before processing
15245         the cc1 spec. Only add -iplugindir once.
15246         (cpp_unique_options): Add -iplugindir option if -fplugin* options
15247         found.
15248         * common.opt (iplugindir): Remove `Separate' property, initialize.
15249         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
15250         option.
15251         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
15252         (distclean): Remove plugin dir.
15253         * doc/invoke.texi: Document -iplugindir.
15255 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
15257         * doc/plugins.texi (Loading Plugins): Document short
15258         -fplugin=foo option.
15259         (Plugin API): Mention default_plugin_dir_name function.
15261         * gcc.c (find_file_spec_function): Add new declaration.
15262         (static_spec_func): Use it for "find-file".
15263         (find_file_spec_function): Add new function.
15264         (cc1_options): Add -iplugindir option if -fplugin* options found.
15266         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
15268         * plugin.c (add_new_plugin): Updated comment, and handle short
15269         plugin name.
15270         (default_plugin_dir_name): Added new function.
15272         * common.opt (iplugindir): New option to set the plugin directory.
15274 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
15276         * config/i386/i386.md (any_rotate): New code iterator.
15277         (rotate_insn): New code attribute.
15278         (rotate): Ditto.
15279         (SWIM124): New mode iterator.
15280         (<rotate_insn>ti3): New expander.
15281         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
15282         any_rotate code iterator.
15283         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
15284         using any_rotate code iterator and SWIM124 mode iterator.
15285         (ix86_rotlti3): New insn_and_split pattern.
15286         (ix86_rotrti3): Ditto.
15287         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
15288         ix86_rotl{di,ti}3 patterns.
15289         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
15290         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
15291         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
15292         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
15293         code iterator and SWI mode iterator.
15294         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
15295         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
15296         code iterator.
15297         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
15298         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
15299         (bswap rotatert splitter): Add splitter.
15300         (bswap splitter): Macroize splitter using any_rotate code iterator.
15301         Add insn predicate to split only for TARGET_USE_XCHGB or when
15302         optimizing function for size.
15304 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
15306         * config/pa/pa.c (emit_move_sequence): Remove use of
15307         deleted variable flag_argument_noalias.
15309 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15311         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
15312         configurations.
15313         Add to unsupported targets list.
15314         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
15315         sparc*-sun-solaris2.[567]* from target lists.
15316         * configure: Regenerate.
15317         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
15318         removal.
15319         Remove Solaris 7 patch references.
15320         (Specific, sparc-sun-solaris2.7): Removed.
15321         (sparc-sun-solaris2*): Update Solaris 7 example.
15322         (sparc64-*-solaris2*): Likewise.
15324 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15326         * config.build (alpha*-dec-osf4*): Remove.
15327         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
15328         of obsolete configurations.
15329         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
15330         support.
15331         * config/alpha/t-osf4: Renamed to ...
15332         * config/alpha/t-osf5: ... this.
15333         * config/alpha/osf.h: Renamed to ...
15334         * config/alpha/osf5.h: ... this.
15335         Merged old osf5.h contents.
15336         Update comments.
15337         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
15338         (EXTRA_SPECS): Removed.
15339         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
15340         reflect removal of Tru64 UNIX V4.0/V5.0 support.
15341         Document that.
15343 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15345         * doc/contrib.texi (Contributors, Rainer Orth): Update.
15347 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
15349         PR/43702
15350         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
15351         __thiscall convention.
15353 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
15355         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
15356         orig_base.
15357         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
15359 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
15361         * function.c (assign_parms_initialize_all): Add unused attribute
15362         to fntype.
15364 2010-04-12  Richard Guenther  <rguenther@suse.de>
15366         * gsstruct.def (GSS_CALL): New.
15367         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
15368         * gimple.h: Include tree-ssa-alias.h.
15369         (struct gimple_statement_call): New.
15370         (union gimple_statement_struct_d): Add gimple_call member.
15371         (gimple_call_reset_alias_info): Declare.
15372         (gimple_call_use_set): New function.
15373         (gimple_call_clobber_set): Likewise.
15374         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
15375         * gimple.c (gimple_call_reset_alias_info): New function.
15376         (gimple_build_call_1): Call it.
15377         * lto-streamer-in.c (input_gimple_stmt): Likewise.
15378         * tree-inline.c (remap_gimple_stmt): Likewise.
15379         (expand_call_inline): Remove callused handling.
15380         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
15381         * tree-dfa.c (dump_variable): Likewise.
15382         * tree-parloops.c (parallelize_loops): Likewise.
15383         * tree-ssa.c (init_tree_ssa): Likewise.
15384         (delete_tree_ssa): Likewise.
15385         * tree-flow-inline.h (is_call_used): Remove.
15386         * tree-flow.h (struct gimple_df): Remove callused member.
15387         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
15388         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
15389         (ref_maybe_used_by_call_p_1): Simplify.
15390         (call_may_clobber_ref_p_1): Likewise.
15391         * tree-ssa-structalias.c (compute_points_to_sets): Set
15392         the call stmt used and clobbered sets.
15393         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
15394         (find_tail_calls): Verify the tail call.
15396 2010-04-12  Richard Guenther  <rguenther@suse.de>
15398         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
15399         single-iteration always-inline inlining.
15400         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
15401         (cgraph_decide_inlining): Do not handle always-inline specially.
15402         (try_inline): Remove always-inline cycle detection special case.
15403         Do not recurse on always-inlines.
15404         (cgraph_early_inlining): Do not iterate if not optimizing.
15405         (cgraph_gate_early_inlining): remove.
15406         (pass_early_inline): Run unconditionally.
15407         (gate_cgraph_decide_inlining): New function.
15408         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
15409         not inlining or optimizing.
15410         (cgraph_decide_inlining_of_small_functions): Also consider
15411         always-inline functions.
15412         (cgraph_default_inline_p): Return true for nodes which should
15413         disregard inline limits.
15414         (estimate_function_body_sizes): Assume zero size and time for
15415         nodes which are marked as disregarding inline limits.
15416         (cgraph_decide_recursive_inlining): Do not perform recursive
15417         inlining on always-inline nodes.
15419 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
15421         PR bootstrap/43699
15422         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
15423         for exprs satisfying handled_component_p.
15425 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
15427         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
15428         non-constant aggregate elements.
15430         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
15431         is a real initialization.
15433 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
15435         PR c/36774
15436         * c-decl.c (start_function): Move forward check for nested function.
15438 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
15440         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
15441         * config/sh/sh.c: Include reload.h.
15442         (sh_legitimize_reload_address): New.
15443         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
15444         sh_legitimize_reload_address.
15446 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
15448         * config/sh/sh.md (*movqi_pop): New insn pattern.
15449         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
15451 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
15453         * config/i386/i386.md (any_shiftrt): New code iterator.
15454         (shiftrt_insn): New code attribute.
15455         (shiftrt): Ditto.
15456         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
15457         using any_shiftrt code iterator.
15458         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
15459         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
15460         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
15461         pattern from corresponding peephole2 patterns.
15462         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
15463         using any_shiftrt code iterator.
15464         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
15465         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
15466         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
15467         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
15468         *{ashr,lshr}<mode>3_cmp_zext.
15469         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
15471 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
15473         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
15474         scratch register.
15475         (*lshr<mode>3_cconly): Ditto.
15477 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
15479         * config/i386/i386.md (lshr<mode>3): Macroize expander from
15480         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
15481         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
15482         pattern from *lshr{di,ti}3_1 and corresponding splitters using
15483         DWI mode iterator.
15484         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
15485         from corresponding peephole2 patterns.
15486         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
15487         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
15488         and *lshrdi3_1_rex64 using SWI mode iterator.
15489         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
15490         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
15491         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
15492         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
15493         and *lshrdi3_cmp_rex64 using SWI mode iterator.
15494         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
15495         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
15496         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
15497         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
15498         SWI mode iterator.
15500 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
15502         * config/i386/i386.md (ashr<mode>3): Macroize expander from
15503         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
15504         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
15505         pattern from *ashr{di,ti}3_1 and corresponding splitters using
15506         DWI mode iterator.
15507         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
15508         from corresponding peephole2 patterns.
15509         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
15510         (ashrsi3_cvt): Rename from ashrsi3_31.
15511         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
15512         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
15513         and x86_64_shift_adj_3 using SWI48 mode iterator.
15514         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
15515         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
15516         and *ashrdi3_1_rex64 using SWI mode iterator.
15517         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
15518         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
15519         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
15520         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
15521         and *ashrdi3_cmp_rex64 using SWI mode iterator.
15522         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
15523         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
15524         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
15525         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
15526         SWI mode iterator.
15527         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
15528         * config/i386/i386.c (ix86_split_ashr): Update for renamed
15529         x86_shift<mode>_adj_3 expanders.
15531 2010-04-10  Wei Guozhi  <carrot@google.com>
15533         PR target/42601
15534         * config/arm/arm.c (arm_pic_static_addr): New function.
15535         (legitimize_pic_address): Call arm_pic_static_addr when it detects
15536         a static symbol.
15537         (arm_output_addr_const_extra): Output expression for new pattern.
15538         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
15540 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
15542         * ira-costs.c (record_reg_classes): Ignore alternatives that are
15543         not enabled.
15545         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
15546         * web.c: Include "insn-config.h" and "recog.h".
15547         (union_match_dups): New function.
15548         (web_main): Call it.
15549         (union_defs): Don't try to recognize match_dups.
15551         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
15552         if doing so would replace the entire pattern.
15554 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
15556         PR target/43707
15557         PR target/43709
15558         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
15559         and splitter pattern.  Change splitter operand 1 predicate to
15560         nonmemory_operand.
15562 2010-04-09  Martin Jambor  <mjambor@suse.cz>
15564         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
15565         lattices are addresses of CONST_DECLs with the same initial value.
15566         (ipcp_print_all_lattices): Print values of CONST_DECLs.
15567         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
15569 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
15570             Bernd Schmidt  <bernds@codesourcery.com>
15572         * loop-invariant.c (replace_uses): New static function.
15573         (move_invariant_reg): Use it to ensure we can replace the uses.
15575 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
15577         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
15578         function template.
15579         (picochip_override_options): Enable section anchors only above -O1.
15580         (picochip_reorg): Fixed a couple of build warnings.
15582 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15584         * configure.ac (plugin -rdynamic test): Log result.
15585         * configure: Regenerate.
15586         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
15587         (RDYNAMIC_SPEC): Define.
15588         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
15590 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15592         * configure.ac: Determine Sun ld version numbers.
15593         (comdat_group): Restrict GNU ld version checks to gld.
15594         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
15595         (enable_comdat): Support --enable-comdat.
15596         * configure: Regenerate.
15597         * doc/install.texi (Configuration): Document --enable-comdat.
15599 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15601         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
15602         * config/sol2-gld.h: ... here.
15603         * config.gcc (sparc*-*-solaris2*): Reflect this.
15604         (i[34567]86-*-solaris2*): Use it.
15606 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
15608         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
15609         setup_clocks_p.
15610         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
15612 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15614         PR 42965
15615         * diagnostic.c (diagnostic_initialize): Initialize
15616         some_warnings_are_errors.
15617         (diagnostic_finish): New.
15618         (diagnostic_action_after_output): Call it before exiting.
15619         (diagnostic_report_diagnostic): Do not print message here. Set
15620         some_warnings_are_errors.
15621         * diagnostic.h (diagnostic_context): Delete
15622         issue_warnings_are_errors_message. Add some_warnings_are_errors.
15623         (diagnostic_finish): Declare.
15624         * toplev.c (toplev_main): Call it before exit.
15626 2010-04-09  Jason Merrill  <jason@redhat.com>
15628         PR c++/42623
15629         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
15630         for incomplete type.
15632         PR c++/41788
15633         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
15634         based on a warning flag.
15636 2010-04-09  Richard Guenther  <rguenther@suse.de>
15638         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
15640 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
15642         PR bootstrap/43684
15643         * varasm.c (default_assemble_visibility): Wrap vars that are
15644         set, but unused, by targets without GAS.
15645         * config/rs6000/rs6000.c (paired_emit_vector_compare):
15646         Remove set, but unused, vars.
15647         (rs6000_legitimize_tls_address): Likewise.
15648         (altivec_expand_dst_builtin): Likewise.
15649         * config/darwin.c (machopic_classify_symbol): Likewise.
15650         (machopic_indirection_name): Likewise.
15652 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
15654         * config/i386/i386.md (DWI): New mode iterator.
15655         (S): New mode attribute.
15656         (shift_operand): Ditto.
15657         (shift_immediate_operand): Ditto.
15658         (ashl_input_operand): Ditto.
15659         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
15660         using SDWIM mode iterator.
15661         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
15662         pattern from *ashl{di,ti}3_1 and corresponding splitters using
15663         DWI mode iterator.
15664         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
15665         from corresponding peephole2 patterns.
15666         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
15667         and x86_64_shift_adj_1 using SWI48 mode iterator.
15668         (x86_shift<mode>_adj_2): Ditto.
15669         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
15670         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
15671         using SWI48 mode iterator.
15672         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
15673         *ashldi3_cmp_rex64 using SWI mode iterator.
15674         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
15675         *ashldi3_cconly_rex64 using SWI mode iterator.
15676         * config/i386/i386.c (ix86_split_ashl): Update for renamed
15677         x86_shift<mode>_adj_{1,2}.
15678         (ix86_split_ashr): Ditto.
15679         (ix86_split_lshr): Ditto.
15681 2010-04-09  Richard Guenther  <rguenther@suse.de>
15683         * target.h (builtin_conversion): Pass in input and output types.
15684         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
15685         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
15686         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
15687         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
15689         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
15690         Handle AVX modes.
15691         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
15693 2010-04-09  Richard Guenther  <rguenther@suse.de>
15695         PR target/43152
15696         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
15698 2010-04-09  Richard Guenther  <rguenther@suse.de>
15700         * tree-vectorizer.h (struct _stmt_vec_info): Document
15701         that vectype is the type of the LHS.
15702         (supportable_widening_operation, supportable_narrowing_operation):
15703         Get both input and output vector types as arguments.
15704         (vect_is_simple_use_1): Declare.
15705         (get_same_sized_vectype): Likewise.
15706         * tree-vect-loop.c (vect_determine_vectorization_factor):
15707         Set STMT_VINFO_VECTYPE to the vector type of the def.
15708         (vectorizable_reduction): Adjust.
15709         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
15710         Adjust.  Specify the output vector type.
15711         (vect_pattern_recog_1): Adjust.
15712         * tree-vect-stmts.c (get_same_sized_vectype): New function.
15713         (vectorizable_call): Adjust.
15714         (vectorizable_conversion): Likewise.
15715         (vectorizable_operation): Likewise.
15716         (vectorizable_type_demotion): Likewise.
15717         (vectorizable_type_promotion): Likewise.
15718         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
15719         the def.
15720         (vect_is_simple_use_1): New function.
15721         (supportable_widening_operation): Get both input and output
15722         vector types.
15723         (supportable_narrowing_operation): Likewise.
15724         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
15726 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
15728         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
15729         __thiscall and _thiscall as predefined macros.
15730         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
15731         thiscall attribute handling.
15732         (ix86_comp_type_attributes): Likewise.
15733         (ix86_function_regparm): Likewise.
15734         (ix86_return_pops_args): Likewise.
15735         (init_cumulative_args): Likewise.
15736         (find_drap_reg): Likewise.
15737         (ix86_static_chain): Likewise.
15738         (x86_this_parameter): Likewise.
15739         (x86_output_mi_thunk): Likewise.
15740         (ix86_attribute_table): Add description for thiscall attribute.
15741         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
15742         * doc/extend.texi: Add documentation for thiscall.
15744 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15746         PR c++/28584
15747         * c.opt (Wint-to-pointer-cast): Available in C++.
15748         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
15750 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
15752         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
15753         * calls.c (expand_call): Pass the function type to aggregate_value_p.
15754         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
15755         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
15756         function type instead.  Reorder and simplify checks.
15758         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
15760 2010-04-08  Jing Yu  <jingyu@google.com>
15761             Zdenek Dvorak  <ook@ucw.cz>
15763         PR tree-optimization/42720
15764         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
15765         loop unswitch conditions here from ...
15766         (tree_unswitch_single_loop): ... here.
15768 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
15770         * tree-if-conv.c: Fix comments and simplify logic.
15772 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
15774         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
15775         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
15776         (main_tree_if_conversion): Update call to tree_if_conversion.
15778 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15780         PR 42485
15781         * doc/invoke.texi (-b,-V): Delete.
15782         * doc/tm.texi: Do not mention -b.
15783         * gcc.c (display_help): Delete -b and -V.
15784         (process_command): Delete -b and -V.
15785         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
15787 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
15788             Wolfgang Gellerich  <gellerich@de.ibm.com>
15790         Implement target hook for loop unrolling
15791         * target.h (loop_unroll_adjust): Add a new target hook function.
15792         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
15793         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
15794         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
15795         (s390_loop_unroll_adjust): Implement the new target hook for s390.
15796         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
15797         target hook.
15798         (decide_unroll_stupid): Likewise.
15800 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15802         PR target/43643
15803         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
15805 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15807         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
15808         (Specific, *-*-solaris2*): Likewise.
15809         Don't prefer Sun as over GNU as.
15811 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
15813         * config/s390/s390.c (override_options): Adjust the z10 defaults
15814         for max-unroll-times, max-completely-peeled-insns
15815         and max-completely-peel-times.
15817 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15819         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
15820         instructions for z10.
15821         (s390_expand_setmem): Likewise.
15822         (s390_expand_cmpmem): Likewise.
15824 2010-04-08  Richard Guenther  <rguenther@suse.de>
15826         PR tree-optimization/43679
15827         * tree-ssa-pre.c (eliminate): Only propagate copies.
15829 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
15831         PR bootstrap/43681
15832         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
15833         set but not used variable warning.
15835 2010-04-08  Wei Guozhi  <carrot@google.com>
15837         PR target/41653
15838         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
15839         (arm_size_rtx_costs): Call the new function when optimized for size.
15841 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
15843         PR debug/43670
15844         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
15845         op0 is not a MEM, just return NULL instead of assertion
15846         failure.
15847         (discover_nonconstant_array_refs): Don't walk debug stmts.
15849 2010-04-08  Doug Kwan  <dougkwan@google.com>
15851         * configure.ac: Recognize gold and do not use its version number
15852         to test ld features.
15853         * configure: Regenerate.
15855 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
15857         PR middle-end/40815
15858         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
15859         (negate_value): Move code to push elements to broken_up_substracts ...
15860         (eliminate_plus_minus_pair): ... here.  Push operands that have no
15861         negative pair to plus_negates.
15862         (repropagate_negates, init_reassoc, fini_reassoc): Update.
15864 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15866         * doc/install.texi (Configuration): Move description of
15867         --enable-lto, --with-libelf*, --enable-gold from Java section to
15868         general section.
15870         * doc/generic.texi (Working with declarations)
15871         (Function Properties, C and C++ Trees): Fix typos.
15872         * doc/sourcebuild.texi (Top Level): Likewise.
15874 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
15876         PR c/18624
15877         * tree.h (DECL_READ_P): Define.
15878         (struct tree_decl_common): Add decl_read_flag.
15879         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
15880         a set but not used warning.
15881         (merge_decls): Merge DECL_READ_P flag.
15882         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
15883         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
15884         * c-common.c (handle_used_attribute, handle_unused_attribute):
15885         Likewise.
15886         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
15887         New prototypes.
15888         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
15889         New functions.
15890         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
15891         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
15892         c_parser_binary_expression, c_parser_cast_expression,
15893         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
15894         Call default_function_array_read_conversion instead of
15895         default_function_array_conversion where needed.
15896         (c_parser_unary_expression, c_parser_conditional_expression,
15897         c_parser_postfix_expression_after_primary, c_parser_initelt):
15898         Likewise.  Call mark_exp_read where needed.
15899         (c_parser_statement_after_labels, c_parser_asm_operands,
15900         c_parser_typeof_specifier, c_parser_sizeof_expression,
15901         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
15902         where needed.
15903         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
15904         New.
15905         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
15906         (warn_unused_but_set_parameter): Default to warn_unused
15907         && extra_warnings.
15908         * doc/invoke.texi: Document -Wunused-but-set-variable and
15909         -Wunused-but-set-parameter.
15911         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
15912         used count variable.
15913         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
15914         when operandN variables aren't used in the body of the expander
15915         or splitter.
15916         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
15917         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
15918         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
15919         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
15920         FOR_EACH_IMM_USE_ON_STMT): Likewise.
15921         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
15922         * tree.c (PROCESS_ARG): Likewise.
15924 2010-04-07  Simon Baldwin  <simonb@google.com>
15926         * diagnostic.h (diagnostic_override_option_index): New macro to
15927         set a diagnostic's option_index.
15928         * c-tree.h (c_cpp_error): Add warning reason argument.
15929         * opts.c (_warning_as_error_callback): New.
15930         (register_warning_as_error_callback): Store callback for
15931         warnings enabled via enable_warning_as_error.
15932         (enable_warning_as_error): Call callback, minor code tidy.
15933         * opts.h (register_warning_as_error_callback): Declare.
15934         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
15935         response to -Werror=.
15936         (c_common_init_options): Register warning_as_error_callback in opts.c.
15937         * common.opt: Add -Wno-cpp option.
15938         * c-common.c (struct reason_option_codes_t): Map cpp warning
15939         reason codes to gcc option indexes.
15940         * (c_option_controlling_cpp_error): New function, lookup the gcc
15941         option index for a cpp warning reason code.
15942         * (c_cpp_error): Add warning reason argument, call
15943         c_option_controlling_cpp_error for diagnostic_override_option_index.
15944         * doc/invoke.texi: Document -Wno-cpp.
15946 2010-04-07  Richard Guenther  <rguenther@suse.de>
15948         * ipa-reference.c (mark_load): Use get_base_address.
15949         (mark_store): Likewise.
15951         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
15952         inserting GIMPLE_NOPs into the IL.
15953         * tree-ssa-structalias.c (get_constraint_for_component_ref):
15954         Explicitly strip handled components and indirect references.
15956         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
15957         folding address expressions.
15958         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
15959         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
15960         operand_equal_p to compare decls.
15961         (ptr_deref_may_alias_decl_p): Likewise.
15962         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
15963         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
15964         Handle reversed comparison ops.
15965         * tree-sra.c (asm_visit_addr): Use get_base_address.
15966         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
15967         * ipa-reference.c (mark_address): Use get_base_address.
15969 2010-04-07  Richard Guenther  <rguenther@suse.de>
15971         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
15972         Propagate constants everywhere.
15974 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
15976         PR debug/43516
15977         * tree.c (MAX_INT_CACHED_PREC): Define.
15978         (nonstandard_integer_type_cache): New array.
15979         (build_nonstandard_integer_type): Cache results for precision
15980         <= MAX_INT_CACHED_PREC.
15982 2010-04-07  Richard Guenther  <rguenther@suse.de>
15984         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
15985         -fargument-noalias-global, -fargument-noalias-anything): Remove.
15986         * common.opt: Likewise.
15987         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
15988         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
15989         (nonoverlapping_memrefs_p): Likewise.
15990         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15991         * opts.c (common_handle_option): Handle OPT_fargument_alias,
15992         OPT_fargument_noalias, OPT_fargument_noalias_anything and
15993         OPT_fargument_noalias_global for backward compatibility.
15995 2010-04-07  Richard Guenther  <rguenther@suse.de>
15997         PR tree-optimization/43270
15998         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
15999         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
16000         * tree-ssa-pre.c (phi_translate_1): Adjust.
16001         (fully_constant_expression): Split out vn_reference handling to ...
16002         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
16003         Fold reads from constant strings.
16004         (vn_reference_lookup): Handle fully constant references.
16005         (vn_reference_lookup_pieces): Likewise.
16006         * Makefile.in (expmed.o-warn): Add -Wno-error.
16008 2010-04-07  Martin Jambor  <mjambor@suse.cz>
16010         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
16012 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
16014         PR driver/41594
16015         * gcc.c: Add -static-libstdc++ to list of recognized options.
16017 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16019         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
16021 2010-04-07  Richard Guenther  <rguenther@suse.de>
16023         PR middle-end/42617
16024         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
16025         bases build simple mem attributes to retain points-to information.
16027 2010-04-07  Richard Guenther  <rguenther@suse.de>
16029         PR middle-end/42617
16030         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
16031         preserve points-to related information.
16033 2010-04-07  Richard Guenther  <rguenther@suse.de>
16035         PR middle-end/42617
16036         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
16037         discard plain indirect references.
16038         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
16039         * tree.c (tree_nop_conversion): Likewise.
16041 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
16043         PR debug/43628
16044         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
16046 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
16048         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
16049         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
16051 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16053         * tree-if-conv.c: Fix indentation and comments.
16055 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16057         * tree-if-conv.c: Sort static functions in topological order.
16059 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16061         * tree-if-conv.c: Fix indentation and comments.
16063 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16065         PR middle-end/43519
16066         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
16067         lang_hooks.types.type_for_size instead of
16068         build_nonstandard_integer_type.
16069         When converting an unsigned type to signed, double its precision.
16070         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
16071         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
16072         (graphite_create_new_loop_guard): When ub + 1 wraps around,
16073         use lb <= ub.
16075 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16077         PR middle-end/43519
16078         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16079         POINTER_PLUS_EXPR for pointer types.
16081 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16083         PR middle-end/43519
16084         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
16085         * graphite-clast-to-gimple.c: Include langhooks.h.
16086         (max_signed_precision_type): New.
16087         (max_precision_type): Takes two types as arguments.
16088         (precision_for_value): New.
16089         (precision_for_interval): New.
16090         (gcc_type_for_interval): New.
16091         (gcc_type_for_value): New.
16092         (gcc_type_for_clast_term): New.
16093         (gcc_type_for_clast_red): New.
16094         (gcc_type_for_clast_bin): New.
16095         (gcc_type_for_clast_expr): Split up into several functions.
16096         (gcc_type_for_clast_eq): Rewritten.
16097         (compute_bounds_for_level): New.
16098         (compute_type_for_level_1): New.
16099         (compute_type_for_level): New.
16100         (gcc_type_for_cloog_iv): Removed.
16101         (gcc_type_for_iv_of_clast_loop): Rewritten.
16102         (graphite_create_new_loop): Compute the lower and upper bound types
16103         with gcc_type_for_clast_expr.
16104         (graphite_create_new_loop_guard): Same.
16105         (find_cloog_iv_in_expr): Removed.
16106         (compute_cloog_iv_types_1): Removed.
16107         (compute_cloog_iv_types): Removed.
16108         (gloog): Do not call compute_cloog_iv_types.
16109         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
16110         GBB_CLOOG_IV_TYPES.
16111         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
16112         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
16113         (GBB_CLOOG_IV_TYPES): Removed.
16115 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16117         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
16118         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
16119         (detect_commutative_reduction): Same.
16121 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16123         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
16124         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
16125         argument.
16126         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
16127         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
16128         (rewrite_commutative_reductions_out_of_ssa): Same.
16129         * passes.c (execute_function_todo): Call verify_ssa for every pass
16130         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
16131         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
16132         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
16133         with an extra argument.
16134         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
16135         verify_ssa only when the extra argument is true.
16136         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
16137         with an extra argument.
16138         (tree_transform_and_unroll_loop): Same.
16140 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16142         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
16143         for all the passes of the LNO having LOOP_CLOSED_SSA.
16144         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
16145         * tree-loop-distribution.c (pass_loop_distribution): Same.
16146         * tree-pass.h (TODO_verify_loops): Removed.
16147         * tree-ssa-loop.c (pass_tree_loop_init): Same.
16148         (pass_lim): Same.
16149         (pass_tree_unswitch): Same.
16150         (pass_predcom): Same.
16151         (pass_vectorize): Same.
16152         (pass_linear_transform): Same.
16153         (pass_graphite_transforms): Same.
16154         (pass_iv_canon): Same.
16155         (pass_complete_unroll): Same.
16156         (pass_complete_unrolli): Same.
16157         (pass_parallelize_loops): Same.
16158         (pass_loop_prefetch): Same.
16159         (pass_iv_optimize): Same.
16161 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
16163         PR middle-end/32824
16164         * passes.c (init_optimization_passes): Move pass_lim before
16165         pass_copy_prop and pass_dce_loop.
16167 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
16169         PR target/43667
16170         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
16171         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
16172         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
16173         MULTI_* defines for 4 argument vpermil2p* builtins.
16175 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
16177         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
16178         * config/i386/i386.c (x86_maybe_negate_const_int): New.
16179         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
16180         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
16181         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
16182         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
16183         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
16184         Use x86_maybe_negate_const_int to output insn mnemonic.
16185         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
16186         check from instruction predicate.  Update comments.
16187         * config/i386/sync.md (sync_add<mode>): Use
16188         x86_maybe_negate_const_int to output insn mnemonic.
16190 2010-04-06  Jan Hubicka  <jh@suse.cz>
16192         PR tree-optimization/42906
16193         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
16194         IGNORE_SELF argument.  Set visited_control_parents for fully
16195         processed BBs.
16196         (find_obviously_necessary_stmts): Update call of
16197         mark_control_dependent_edges_necessary.
16198         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
16200 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
16202         * config/i386/i386.md: Remove comment about 'e' and 'E'
16203         operand modifier.
16205 2010-04-06  Richard Guenther  <rguenther@suse.de>
16207         PR tree-optimization/43627
16208         * tree-vrp.c (extract_range_from_unary_expr): Widenings
16209         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
16210         not varying.
16212 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
16214         * BASE-VER: Change to 4.6.0.
16216         PR target/43638
16217         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
16218         handling.
16220 2010-04-06  Richard Guenther  <rguenther@suse.de>
16222         PR middle-end/43661
16223         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
16225 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16227         * doc/invoke.texi (Optimize Options): Document that LTO
16228         won't remove object access purely due to incompatible
16229         declarations.
16231 2010-04-04  Matthias Klose  <doko@ubuntu.com>
16233         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
16234         Initialize variable.
16236 2010-04-03  Richard Guenther  <rguenther@suse.de>
16238         PR middle-end/42509
16239         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
16240         require a non-NULL MEM_OFFSET.
16242 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
16244         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
16245         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
16246         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
16247         config/alpha/predicates.md, config/arm/arm.md,
16248         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
16249         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
16250         config/darwin9.h, config/darwin.c, config/darwin.h,
16251         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
16252         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
16253         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
16254         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
16255         config/mips/mips.md, config/mn10300/mn10300.c,
16256         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
16257         config/rs6000/aix.h, config/rs6000/dfp.md,
16258         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
16259         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
16260         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
16261         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
16262         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
16263         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
16264         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
16265         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
16266         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
16267         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
16268         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
16269         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
16270         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
16271         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
16272         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
16273         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
16274         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
16275         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
16276         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
16277         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
16278         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
16279         opt-functions.awk, opth-gen.awk, params.def, passes.c,
16280         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
16281         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
16282         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
16283         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
16284         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
16285         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
16286         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
16287         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
16288         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
16289         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16290         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
16291         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
16292         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
16293         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
16295 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16297         PR other/43620
16298         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
16299         * aclocal.m4: Regenerate.
16301 2010-04-02  Richard Guenther  <rguenther@suse.de>
16303         PR tree-optimization/43629
16304         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
16305         if we have seen a constant value.
16307 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
16309         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
16311 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
16313         PR target/43469
16314         * arm.c (legitimize_tls_address): Adjust call to
16315         gen_tls_load_dot_plus_four.
16316         (arm_note_pic_base): New function.
16317         (arm_cannot_copy_insn_p): Use it.
16318         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
16319         constraint.
16321 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16323         PR bootstrap/43531
16325         Revert:
16326         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16328         * Makefile.in ($(out_object_file)): Depend on
16329         gt-$(basename $(notdir $(out_file))).h.
16331 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
16333         * config.gcc (lm32-*-rtems*): Add t-lm32.
16335 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
16337         * config.gcc: Add lm32-*-rtems*.
16338         * config/lm32/rtems.h: New file.
16340 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
16342         PR target/42609
16343         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
16345 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
16347         * dwarf2out.c (output_compilation_unit_header): For
16348         -gdwarf-4 use version 4 instead of version 3.
16349         (output_line_info): For version 4 and above emit additional
16350         maximum ops per insn header field.
16351         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
16353         * dwarf2out.c (is_c_family, is_java): Remove.
16354         (lower_bound_default): New function.
16355         (add_bound_info, gen_descr_array_type_die): Use it.
16357 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
16359         PR debug/43325
16360         * dwarf2out.c (gen_variable_die): Allow debug info for variable
16361         re-declaration when it happens in a function.
16363 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
16365         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
16366         (cgraph_remove_function_insertion_hook): Same.
16367         (cgraph_call_function_insertion_hooks): Same.
16369 2010-04-01  Richard Guenther  <rguenther@suse.de>
16371         PR middle-end/43614
16372         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
16373         and TREE_THIS_VOLATILE.
16374         (copy_ref_info): Likewise.
16375         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
16376         * tree.c (build6_stat): Ignore side-effects of all but arg5
16377         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
16378         TARGET_MEM_REF.
16380 2010-04-01  Richard Guenther  <rguenther@suse.de>
16382         PR tree-optimization/43607
16383         * ipa-type-escape.c (check_call): Do not access non-existing
16384         arguments.
16386 2010-04-01  Richard Guenther  <rguenther@suse.de>
16388         PR middle-end/43602
16389         Revert
16390         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
16391                     Jack Howarth  <howarth@bromo.med.uc.edu>
16393         * tree-profile.c (tree_init_ic_make_global_vars): Make static
16394         variables TLS.
16396 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16398         * doc/install.texi (Prerequisites): Document libelf usability on
16399         IRIX 5/6 and Solaris 2.
16400         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
16401         Update GNU as, GNU ld requirements.
16402         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
16403         Document Sun Studio compiler download.
16404         Update and simplify as, ld recommendations.
16405         (Specific, *-*-solaris2.7): Note obsoletion, removal.
16407 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16409         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
16410         with_tune_32 to pentium4.
16412 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
16414         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
16416 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16418         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
16419         obsoletion, removal.
16420         Update IDO URL.
16421         Document GNU as requirement.
16422         Update configure requirements.
16423         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
16424         Recomment IRIX 6.5.18+.
16425         Document IDF/IDL requirement.
16426         Document GNU as requirement.
16427         Document GNU ld bootstrap failure.
16428         Remove freeware.sgi.com reference.
16430 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16432         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
16433         UNIX V4.0, V5.0 obsoletion, removal.
16434         Remove --with-gc=simple reference.
16435         Update VM requirements during bootstrap.
16436         Remove -oldas bootstrap description.
16437         Update binutils reference.
16438         Remove comparison failure note.
16440 2010-03-31  Richard Guenther  <rguenther@suse.de>
16441             Zdenek Dvorak  <ook@ucw.cz>
16442             Sebastian Pop  <sebastian.pop@amd.com>
16444         PR middle-end/43464
16445         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
16446         with multiple arguments.
16447         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
16449 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
16451         * graphite-dependences.c (print_pddr): Call print_pdr with an
16452         extra argument.
16453         * graphite-poly.c (debug_pdr): Add an extra argument for the
16454         verbosity level.
16455         (print_pdr): Same.
16456         (print_pbb_domain): Same.
16457         (print_pbb): Same.
16458         (print_scop_context): Same.
16459         (print_scop): Same.
16460         (print_cloog): Same.
16461         (debug_pbb_domain): Same.
16462         (debug_pbb): Same.
16463         (print_pdrs): Same.
16464         (debug_pdrs): Same.
16465         (debug_scop_context): Same.
16466         (debug_scop): Same.
16467         (debug_cloog): Same.
16468         (print_scop_params): Same.
16469         (debug_scop_params): Same.
16470         (print_iteration_domain): Same.
16471         (print_iteration_domains): Same.
16472         (debug_iteration_domain): Same.
16473         (debug_iteration_domains): Same.
16474         (print_scattering_function): Same.
16475         (print_scattering_functions): Same.
16476         (debug_scattering_function): Same.
16477         (debug_scattering_functions): Same.
16478         * graphite-poly.h (debug_pdr): Update declaration.
16479         (print_pdr): Same.
16480         (print_pbb_domain): Same.
16481         (print_pbb): Same.
16482         (print_scop_context): Same.
16483         (print_scop): Same.
16484         (print_cloog): Same.
16485         (debug_pbb_domain): Same.
16486         (debug_pbb): Same.
16487         (print_pdrs): Same.
16488         (debug_pdrs): Same.
16489         (debug_scop_context): Same.
16490         (debug_scop): Same.
16491         (debug_cloog): Same.
16492         (print_scop_params): Same.
16493         (debug_scop_params): Same.
16494         (print_iteration_domain): Same.
16495         (print_iteration_domains): Same.
16496         (debug_iteration_domain): Same.
16497         (debug_iteration_domains): Same.
16498         (print_scattering_function): Same.
16499         (print_scattering_functions): Same.
16500         (debug_scattering_function): Same.
16501         (debug_scattering_functions): Same.
16503 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
16505         * graphite-poly.c (print_scattering_function_1): New.
16506         (print_scattering_function): Call it.
16507         (print_scop_params): Remove spaces at the end of lines.
16508         (print_cloog): New.
16509         (debug_cloog): New.
16510         * graphite-poly.h (print_cloog): Declared.
16511         (debug_cloog): Declared.
16513 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
16515         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
16516         in loop->header.
16517         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
16518         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
16519         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
16520         to switch between adding the IV bump in loop->latch or in loop->header.
16522 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
16524         * graphite-poly.c (print_scattering_function): Pretty print following
16525         the scoplib format.
16526         (print_pdr): Same.
16527         (print_pbb_domain): Same.
16528         (dump_gbb_cases): Same.
16529         (dump_gbb_conditions): Same.
16530         (print_pdrs): Same.
16531         (print_pbb): Same.
16532         (print_scop_params): Same.
16533         (print_scop_context): Same.
16534         (print_scop): Same.
16535         (print_pbb_body): New.
16536         (lst_indent_to): New.
16537         (print_lst): Start new lines with a #.
16538         * graphite-poly.h (pbb_bb): New.
16539         (pbb_index): Use pbb_bb.
16540         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
16541         disjuncts.
16542         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
16544 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
16546         * dwarf2out.c (size_of_die): For -gdwarf-4 use
16547         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
16548         and 0 instead of 1 for dw_val_class_flag.
16549         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
16550         dw_val_class_range_list, dw_val_class_loc_list,
16551         dw_val_class_lineptr and dw_val_class_macptr, use
16552         DW_FORM_flag_present for dw_val_class_flag and
16553         DW_FORM_exprloc for dw_val_class_loc.
16554         (output_die): For -gdwarf-4 print dw_val_class_loc
16555         size as uleb128 instead of 1 or 2 bytes and don't print
16556         anything for dw_val_class_flag.
16558         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
16559         instead of cselib_lookup following by tweaking locs->setting_insn.
16561         PR bootstrap/43596
16562         * cselib.c (cselib_process_insn): Clear cselib_current_insn
16563         even before returning from label, setjmp call or volatile asm
16564         handling.
16566 2010-03-31  Richard Guenther  <rguenther@suse.de>
16568         PR middle-end/43600
16569         * cgraphunit.c (cgraph_output_in_order): Do not allocate
16570         temporary data on stack.
16572 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16574         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
16575         (PUSHSECTION_ASM_OP): Remove.
16576         (POPSECTION_ASM_OP): Remove.
16577         (PUSHSECTION_FORMAT): Remove.
16578         * config/sol2.h (PUSHSECTION_FORMAT): Define.
16579         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
16580         * config/sol2.c (solaris_output_init_fini): Use it.
16582 2010-03-31  Jie Zhang  <jie@codesourcery.com>
16584         PR 43574
16585         * opt-functions.awk (var_type_struct): Use signed char type
16586         for simple variables.
16588 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16590         * config/sol2.c: Include output.h.
16591         (solaris_assemble_visibility): New function.
16592         * config/t-sol2 (sol2.o): Add output.h dependency.
16593         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
16594         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
16595         Redefine.
16597 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
16599         PR target/43580
16600         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
16601         V2SImode or XFmode on PRE_DEC.
16603         PR debug/43557
16604         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
16605         BLKmode.
16607 2010-03-31  Jie Zhang  <jie@codesourcery.com>
16609         PR 43562
16610         * reload.h (caller_save_initialized_p): Declare.
16611         * toplev.c (backend_init_target): Don't call
16612         init_caller_save but set caller_save_initialized_p to false.
16613         * caller-save.c (caller_save_initialized_p): Define.
16614         (init_caller_save): Check caller_save_initialized_p.
16615         * ira.c (ira): Call init_caller_save if flag_caller_saves.
16617 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16619         PR target/39048
16620         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
16621         and soft-fp/t-softfp to tmake_file.
16622         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
16623         (LIBGCC2_TF_CEXT): Define.
16624         (TF_SIZE): Define.
16626 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
16628         PR debug/42977
16629         * cselib.c (n_useless_values): Document handling of debug locs.
16630         (n_useless_debug_values, n_debug_values): New variables.
16631         (new_elt_loc_list): Don't add to debug values, keep count.
16632         (promote_debug_loc): New.
16633         (cselib_reset_table): Zero new variables.
16634         (entry_and_rtx_equal_p): Promote debug locs.
16635         (discard_useless_locs): Increment n_useless_debug_values for
16636         debug values.
16637         (remove_useless_values): Adjust n_useless_values and n_debug_values
16638         with n_useless_debug_values.
16639         (add_mem_for_addr): Promote debug locs.
16640         (cselib_lookup_mem): Likewise.
16641         (cselib_lookup_addr): Renamed to...
16642         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
16643         (cselib_log_lookup): ... this.  Turn into...
16644         (cselib_lookup_addr): ... new wrapper.
16645         (cselib_lookup_from_insn): New.
16646         (cselib_invalidate_regno): Increment n_useless_debug_values for
16647         debug values.
16648         (cselib_invalidate_mem): Likewise.
16649         (cselib_process_insn): Take n_deleted and n_debug_values into
16650         account to guard remove_useless_value call.
16651         (cselib_finish): Zero n_useless_debug_values.
16652         * cselib.h (cselib_lookup_from_insn): Declare.
16653         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
16654         (sched_analyze_2): Likewise.
16656 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
16658         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
16659         functions.
16660         (adjust_mems): Replace narrowing SUBREG of expression containing
16661         just PLUS, MINUS, MULT and ASHIFT of registers and constants
16662         with operations in the narrower mode.
16664         PR debug/43593
16665         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
16666         regs_invalidated_by_call instead all call_used_reg_set registers.
16668 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
16670         PR middle-end/43430
16671         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
16672         pointer comparisons with types_compatible_p.
16673         * tree-vect-stmts.c (vectorizable_call): Same.
16674         (vectorizable_condition): Same.
16676 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16678         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
16679         stack check if the mask would be zero.
16681 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
16682             Jack Howarth  <howarth@bromo.med.uc.edu>
16684         * tree-profile.c (tree_init_ic_make_global_vars): Make static
16685         variables TLS.
16687 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
16689         PR other/25232
16690         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
16691         and __unordtf2.
16692         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
16693         Include ___unordxf2 and ___unordtf2.
16694         * config/i386/libgcc-glibc.ver: Do not define inheritance from
16695         GCC_4.4.0 here.
16697 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
16699         * config/lm32/t-lm32: New file.
16700         * config.gcc: Use the above file when targetting lm32.
16702 2010-03-28  Duncan Sands  <baldrick@free.fr>
16704         * Makefile.in (PLUGIN_HEADERS): Add except.h.
16706 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
16708         PR middle-end/43431
16709         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16710         Improve vectorization cost model diagnostic.
16712 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
16714         PR middle-end/43436
16715         * tree-vect-data-refs.c (vect_analyze_data_refs): When
16716         compute_data_dependences_for_loop returns false, early exit
16717         and output an extra diagnostic for the failed data reference
16718         analysis.
16720 2010-03-29  Richard Guenther  <rguenther@suse.de>
16722         PR tree-optimization/43560
16723         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
16724         (can_sm_ref_p): Treat stores to readonly locations as trapping.
16726 2010-03-29  Jie Zhang  <jie@codesourcery.com>
16728         PR 43564
16729         * toplev.c (process_options): Set optimization_default_node
16730         and optimization_current_node.
16731         * opts.c (decode_options): Don't set optimization_default_node
16732         and optimization_current_node.
16734 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
16736         * config/rtems.h: Abandon -qrtems_debug.
16738 2010-03-28  Jan Hubicka  <jh@suse.cz>
16740         PR tree-optimization/43505
16741         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
16742         map should not be copied.
16744 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16746         PR middle-end/41674
16747         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
16748         cdtors, set DECL_PRESERVE_P.
16749         * ipa.c (cgraph_externally_visible_p): Return true if declaration
16750         should be preseved.
16752 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
16754         PR tree-optimization/43528
16755         * stor-layout.c (place_field): Check that constant fits into
16756         unsigned HWI when skipping calculation of MS bitfield layout.
16758 2010-03-27  Jan Hubicka  <jh@suse.cz>
16760         PR middle-end/43391
16761         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
16762         notice_global_symbol work.
16764 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
16766         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
16767         instead of dwarf2out_decl.
16768         (struct var_loc_node): Remove section_label field.
16769         (dwarf2out_function_decl): New function.
16770         (dwarf2out_var_location): Don't set section_label field.
16771         (dwarf2out_begin_function): Don't empty decl_loc_table here.
16773 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16775         PR tree-optimization/43544
16776         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16777         First argument for builtin vectorized function hook is now a
16778         tree to be able to distinguish between machine specific and
16779         standard builtins.
16780         * targhooks.c (default_builtin_vectorized_function): Ditto.
16781         * targhooks.h (default_builtin_vectorized_function): Ditto.
16782         * target.h (struct gcc_target): Ditto.
16783         * tree-vect-stmts.c (vectorizable_function): Ditto.
16784         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
16785         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
16786         Ditto.
16788 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
16790         PR c/43381
16791         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
16792         nested binding iff it is a FUNCTION_DECL.
16793         (store_parm_decls_newstyle): Pass nested=true to bind for
16794         FUNCTION_DECLs amongst parameters.
16796 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
16798         * var-tracking.c (vt_expand_loc_callback): Don't run
16799         cselib_expand_value_rtx_cb in dummy mode if
16800         cselib_dummy_expand_value_rtx_cb returned false.
16802         * var-tracking.c (emit_note_insn_var_location): For one part
16803         notes with offset 0, don't add EXPR_LIST around the location.
16804         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
16805         add_location_or_const_value_attribute): Adjust for that change.
16807         PR debug/43540
16808         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
16809         into first operand and location into second.
16810         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
16811         dw_cfi_oprnd_loc for DW_CFA_expression.
16812         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
16813         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
16814         assume first argument is regnum and second argument is location.
16816 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
16818         PR target/42113
16819         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
16820         of scratch register to DImode.  Split to DImode comparison operator.
16821         Use SImode subreg of scratch register in the multiplication.
16822         (*cmp_sadd_sidi): Ditto.
16823         (*cmp_ssub_si): Ditto.
16824         (*cmp_ssub_sidi): Ditto.
16826 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
16828         PR target/43524
16829         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
16830         Remove invalid assert and wrong comment.
16832 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
16834         PR debug/43516
16835         * flags.h (final_insns_dump_p): New extern.
16836         * final.c (final_insns_dump_p): New variable.
16837         (rest_of_clean_state): Set it before -fdump-final-insns=
16838         dumping, clear afterwards.
16839         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
16840         MEM_ALIAS_SET on MEMs.
16842 2010-03-26  David S. Miller  <davem@davemloft.net>
16844         * configure.ac: Fix sparc GOTDATA_OP bug check.
16845         * configure: Rebuild.
16847 2010-03-26  Alan Modra  <amodra@gmail.com>
16849         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
16851 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16853         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
16854         TLS_SECTION_ASM_FLAG.
16856 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
16858         PR bootstrap/43511
16859         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
16860         Clear first_function_block_is_cold.
16862         PR c/43385
16863         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
16864         argument if the argument is truth_value_p.
16866 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
16868         * config/rs6000/constraints.md: Update copyright year for my changes.
16870         PR target/43484
16871         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
16872         used in reg+reg addressing, swap registers.
16874 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
16876         PR debug/43293
16877         * target.h (struct gcc_target): Add code_end hook.
16878         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
16879         if not yet defined.
16880         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
16881         * toplev.c (compile_file): Call targetm.asm_out.code_end
16882         hook before unwind info/debug info output.
16883         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
16884         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
16885         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16886         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
16887         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16888         * config/i386/i386.c (ix86_file_end): Renamed to...
16889         (ix86_code_end): ... this.  Make static.  Don't call
16890         file_end_indicate_exec_stack.  Emit unwind info using
16891         final_start_function/final_end_function.
16892         (darwin_x86_file_end): Remove.
16893         (TARGET_ASM_CODE_END): Define.
16894         * config/i386/i386.h (TARGET_ASM_FILE_END,
16895         NEED_INDICATE_EXEC_STACK): Don't define.
16896         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
16897         (TARGET_ASM_FILE_END): Define to darwin_file_end.
16898         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
16899         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
16901         PR target/43498
16902         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
16903         at the beginning and final_end_function at the end.
16904         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16906 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16908         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
16909         and Sun as TLS syntax.
16910         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
16911         * configure: Regenerate.
16912         * config.in: Regenerate.
16913         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
16914         (default_elf_asm_named_section): Use it.
16915         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
16916         (i386_output_dwarf_dtprel): Likewise.
16917         (output_addr_const_extra): Likewise.
16918         (output_pic_addr_const): Lowercase @GOTTPOFF.
16919         (output_addr_const_extra): Likewise.
16920         (output_pic_addr_const): Lowercase @GOTNTPOFF.
16921         (output_addr_const_extra): Likewise.
16922         (output_pic_addr_const): Lowercase @INDNTPOFF.
16923         (output_addr_const_extra): Likewise.
16924         (output_pic_addr_const): Lowercase @NTPOFF.
16925         (output_addr_const_extra): Likewise.
16926         (output_pic_addr_const): Lowercase @TPOFF.
16927         (output_addr_const_extra): Likewise.
16928         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
16929         (*tls_global_dynamic_64): Likewise.
16930         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
16931         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
16933         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
16934         (ASM_OUTPUT_TLS_COMMON): Use it.
16935         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
16937         PR target/38118
16938         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
16939         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
16940         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
16941         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
16942         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16943         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
16945 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16947         * config/i386/i386.c (override_options): Don't accept
16948         -mtls-dialect=sun any longer.
16949         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
16950         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
16951         (*tls_local_dynamic_base_32_sun): Likewise.
16952         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16954 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
16956         PR debug/43508
16957         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16958         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
16960         PR debug/43479
16961         * ira.c (adjust_cleared_regs): New function.
16962         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
16964         PR debug/19192
16965         PR debug/43479
16966         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
16967         from gimple_block.
16968         * expr.c (expand_expr_real): Restore previous
16969         curr_insn_source_location and curr_insn_block after
16970         expand_expr_real_1 call.
16971         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
16972         instead of expand_expr_real_1.
16974 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
16976         PR rtl-optimization/43413
16977         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
16978         hard regs too.
16980 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
16982         PR target/43348
16983         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
16984         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
16986 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16988         * config/i386/i386.c (ix86_target_string): Add -mfma.
16989         Fix a typo in comment.
16991 2010-03-22  Mike Stump  <mikestump@comcast.net>
16993         PR target/23071
16994         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
16995         Don't overly align based upon packed packed fields.
16997 2010-03-22  Jason Merrill  <jason@redhat.com>
16999         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
17000         Use () rather than [], and move before the element type.
17002 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17004         * doc/configfiles.texi (Configuration Files): Removed
17005         fixinc/Makefile*, intl/Makefile.*.
17006         * doc/makefile.texi: Fixed markup. Abstract from version
17007         control system used.
17008         (Makefile): Removed obsolete gcc/java/parse.y example.
17009         * doc/sourcebuild.texi: Likewise.
17010         (Top Level): Added config, gnattools, libdecnumber, libgcc,
17011         libgomp, libssp.  Removed fastjar.
17012         (Miscellaneous Docs): Clarify location.
17013         Added COPYING3, COPYING3.LIB.
17014         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
17016 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17018         PR target/38085
17019         * config/i386/i386.c (x86_function_profiler)
17020         [!NO_PROFILE_COUNTERS]: Fix typo.
17021         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
17022         instead of callq.
17024 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
17025             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17027         * doc/sourcebuild.texi (Test Directives): Split into six
17028         subsections, with most of the current text in new subsections
17029         Directives, Selectors, and Final Actions.
17030         (Directives): Split list of test directives into multiple
17031         subsubsections.
17032         (Selectors): Describe use and syntax of selectors.
17033         (Effective-Target Keywords): Describe all existing keywords.
17034         (Add Options): Describe features for dg-add-options.
17035         (Require Support): Describe variants of dg-require-support.
17036         (Final Actions): Describe commands to use in dg-final.
17038 2010-03-22  Michael Matz  <matz@suse.de>
17040         PR middle-end/43475
17041         * recog.c (validate_replace_rtx_group): Replace also in
17042         REG_EQUAL and REG_EQUIV notes.
17044 2010-03-22  Richard Guenther  <rguenther@suse.de>
17046         PR tree-optimization/43390
17047         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
17048         sure vector extracts are type correct.
17050 2010-03-22  Richard Guenther  <rguenther@suse.de>
17052         PR middle-end/40106
17053         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
17054         x * sqrt (x) even when optimizing for size if the target
17055         has native support for sqrt.
17057 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17059         * varasm.c (make_decl_rtl_for_debug): Also clear
17060         flag_mudflap for the duration of make_decl_rtl call.
17062         PR debug/43443
17063         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
17064         locs from preserved VALUEs.
17066 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17068         PR middle-end/42718
17069         * pa.md (movmemsi): Set align to one if zero.
17070         (movmemdi): Likewise.
17072 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
17074         PR target/42321
17075         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
17076         with their corresponding prologue pushes.
17078 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
17080         PR target/43156
17081         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
17082         at the begining or end.
17083         (spu_expand_epilogue): Likewise.
17085 2010-03-20  Richard Guenther  <rguenther@suse.de>
17087         PR rtl-optimization/43438
17088         * combine.c (make_extraction): Properly zero-/sign-extend an
17089         extraction of the low part of a CONST_INT.  Also handle
17090         CONST_DOUBLE.
17092 2010-03-19  Mike Stump  <mikestump@comcast.net>
17094         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
17095         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
17096         (override_options): Use SUBTARGET32_DEFAULT_CPU.
17098 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
17100         PR c/43211
17101         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
17102         an error.
17104 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
17106         PR rtl-optimization/42258
17107         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
17108         use that may match DEF.
17110         PR target/40697
17111         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
17112         the cost of loading the constant rather than assuming
17113         COSTS_N_INSNS (1).
17114         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
17115         outer code is AND, do the same tests as the andsi3 expander and
17116         return COSTS_N_INSNS (1) if and is cheap.
17118         * optabs.c (avoid_expensive_constant): Fix formatting.
17120 2010-03-19  Michael Matz  <matz@suse.de>
17122         PR c++/43116
17123         * attribs.c (decl_attributes): When rebuilding a function pointer
17124         type use the same qualifiers as the original pointer type.
17126 2010-03-19  Martin Jambor  <mjambor@suse.cz>
17128         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
17129         and is_gimple_ip_invariant_address.
17131 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17133         Revert
17134         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17136         * config/arm/arm.c (arm_override_options): Turn off
17137         flag_dwarf2_cfi_asm for AAPCS variants.
17139 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17141         PR target/43399
17142         * config/arm/arm.c (emit_multi_reg_push): Update comments.
17143         Use PRE_MODIFY instead of PRE_DEC.
17144         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
17145         (vfp_emit_fstmd): Likewise.
17147 2010-03-19  Michael Matz  <matz@suse.de>
17149         PR target/43305
17150         * builtins.c (expand_builtin_interclass_mathfn,
17151         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
17152         if that fails.
17154 2010-03-19  Richard Guenther  <rguenther@suse.de>
17156         PR tree-optimization/43415
17157         * tree-ssa-pre.c (phi_translate): Split out worker to ...
17158         (phi_translate_1): ... this.
17159         (phi_translate): Move all caching here.  Cache all NARY
17160         and REFERENCE translations.
17162 2010-03-19  David S. Miller  <davem@davemloft.net>
17164         With help from Eric Botcazou.
17165         * config/sparc/sparc.c: Include dwarf2out.h.
17166         (emit_pic_helper): Delete.
17167         (pic_helper_symbol_name): Delete.
17168         (pic_helper_emitted_p): Delete.
17169         (pic_helper_needed): New.
17170         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
17171         (get_pc_thunk_name): New.
17172         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
17173         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
17174         Set pic_helper_needed to true.  Don't call emit_pic_helper.
17175         (sparc_expand_prologue): Update load_pic_register call.
17176         (sparc_output_mi_thunk): Likewise.
17177         (sparc_file_end): Emit a hidden comdat symbol for the PIC
17178         thunk if possible.  Output CFI information as needed.
17180 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17181             Jack Howarth  <howarth@bromo.med.uc.edu>
17183         PR target/36399
17184         * config/i386/i386.h: Fix ABI on darwin x86-32.
17186 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
17188         * tree.h: Declare make_decl_rtl_for_debug.
17189         * varasm.c (make_decl_rtl_for_debug): New.
17190         * dwarf2out.c (rtl_for_decl_location): Call it.
17191         * cfgexpand.c (expand_debug_expr): Call it.
17193 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
17195         PR bootstrap/43399
17196         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
17197         mem_mode.
17199         PR bootstrap/43403
17200         * var-tracking.c (vt_init_cfa_base): Do nothing if
17201         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
17203 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
17205         PR debug/42873
17206         * var-tracking.c (canonicalize_vars_star): New.
17207         (dataflow_post_merge_adjust): Use it.
17209 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
17211         PR debug/43058
17212         * var-tracking.c (non_suitable_const): New function.
17213         (add_uses): For DEBUG_INSNs with constants, don't record any
17214         value, instead just the constant value itself.
17215         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
17216         is not VAR_LOC_UNKNOWN_P, set var to the constant.
17217         (emit_notes_in_bb): Likewise.
17218         (emit_note_insn_var_location): For onepart variables if
17219         cur_loc is a VOIDmode constant, use DECL_MODE.
17221 2010-03-18  Martin Jambor  <mjambor@suse.cz>
17223         PR middle-end/42450
17224         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
17225         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
17226         all non-clones.  Moved call redirection...
17227         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
17228         (cgraph_materialize_all_clones): Dispose of all
17229         combined_args_to_skip bitmaps.
17230         (verify_cgraph_node): Do not check for edges pointing to wrong
17231         nodes in inline clones.
17232         * tree-inline.c (copy_bb): Call
17233         cgraph_redirect_edge_call_stmt_to_callee.
17234         * ipa.c (cgraph_remove_unreachable_nodes): Call
17235         cgraph_node_remove_callees even when there are used clones.
17237 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
17239         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
17241 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
17243         PR target/43383
17244         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
17245         for 32bit.
17247 2010-03-18  Michael Matz  <matz@suse.de>
17249         PR middle-end/43419
17250         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
17251         into sqrt(x) if we need to preserve signed zeros.
17253 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
17254             Eric Botcazou  <ebotcazou@adacore.com>
17256         PR rtl-optimization/43360
17257         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
17258         note if we don't know its invariant status.
17260 2010-03-18  Michael Matz  <matz@suse.de>
17262         PR tree-optimization/43402
17263         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
17264         PHI chains of ssa names registered for update.
17266 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
17268         PR target/42427
17269         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
17270         non-offsettable and pre_modify update addressing.
17271         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
17272         and "2" alternatives "#".
17273         (*movdd_softfloat32): Make all alternatives "#";
17274         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
17275         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
17276         (*movdf_softfloat32): Make all alternatives "#";
17277         (movdi): Use the new DIFD mode iterator to create a common splitter
17278         for movdi, movdf and movdd patterns.
17280 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
17282         * common.opt (dumpdir): Remove redundant tab.
17284 2010-03-17  Martin Jambor  <mjambor@suse.cz>
17286         PR tree-optimization/43347
17287         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
17288         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
17290 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
17292         PR rtl-optimization/42216
17293         * regrename.c (create_new_chain): New function, broken out from...
17294         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
17295         appending a use to an empty chain.
17296         (build_def_use): Remove previous changes that convert OP_INOUT to
17297         OP_OUT operands; instead detect the case where an OP_INOUT operand
17298         uses a previously untracked register and create an empty chain for it.
17300 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17302         * doc/extend.texi (Function Attributes): Rewrite unfinished
17303         sentence in ms_abi documentation.
17305 2010-03-17  Alan Modra  <amodra@gmail.com>
17307         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
17308         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
17309         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
17310         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
17312 2010-03-16  Richard Henderson  <rth@redhat.com>
17314         PR middle-end/43365
17315         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
17316         (lower_try_finally): Save and restore eh_seq around the expansion
17317         of the try-finally.
17319 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
17321         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
17322         statements before splitting block.
17324 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17326         * doc/sourcebuild.texi (Testsuites): Fix markup.
17327         Use pathnames relative to gcc/testsuite.
17328         (Test Directives): Move description of how timeout is determined.
17329         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
17330         (C Tests): Correct gcc.misc-tests directory.
17331         Framework tests now live in gcc.test-framework.
17333 2010-03-16  Richard Guenther  <rguenther@suse.de>
17335         PR middle-end/43379
17336         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
17337         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
17339 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
17340             Alexandre Oliva  <aoliva@redhat.com>
17342         PR tree-optimization/42917
17343         * lambda-code.c (remove_iv): Skip debug statements.
17344         (lambda_loopnest_to_gcc_loopnest): Likewise.
17345         (not_interesting_stmt): Debug statements are not interesting.
17347 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
17349         PR debug/43051
17350         PR debug/43092
17351         * cselib.c (cselib_preserve_constants,
17352         cfa_base_preserved_val): New static variables.
17353         (preserve_only_constants): New function.
17354         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
17355         clear its REG_VALUES.  If cselib_preserve_constants, don't
17356         empty the whole hash table, but preserve there VALUEs with constants,
17357         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
17358         (cselib_preserve_cfa_base_value): New function.
17359         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
17360         (cselib_init): Change argument to int bitfield.  Set
17361         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
17362         is in it.
17363         (cselib_finish): Clear cselib_preserve_constants and
17364         cfa_base_preserved_val.
17365         * cselib.h (enum cselib_record_what): New enum.
17366         (cselib_init): Change argument to int.
17367         (cselib_preserve_cfa_base_value): New prototype.
17368         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
17369         * dse.c (dse_step1): Likewise.
17370         * cfgcleanup.c (thread_jump): Likewise.
17371         * sched-deps.c (sched_analyze): Likewise.
17372         * gcse.c (local_cprop_pass): Likewise.
17373         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
17374         If FN is non-NULL, call the callback always and whenever it returns
17375         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
17376         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
17377         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
17378         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
17379         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
17380         * var-tracking.c: Include recog.h.
17381         (bb_stack_adjust_offset): Remove.
17382         (vt_stack_adjustments): Don't call it, instead just gather the
17383         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
17384         (adjust_stack_reference): Remove.
17385         (compute_cfa_pointer): New function.
17386         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
17387         (struct adjust_mem_data): New type.
17388         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
17389         functions.
17390         (get_address_mode): New function.
17391         (replace_expr_with_values): Use it.
17392         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
17393         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
17394         (adjust_sets): Remove.
17395         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
17396         Use get_address_mode.
17397         (get_adjusted_src): Remove.
17398         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
17399         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
17400         (add_with_sets): Don't call adjust_sets.
17401         (fp_setter, vt_init_cfa_base): New functions.
17402         (vt_initialize): Change return type to bool.  Move most of pool etc.
17403         initialization to the beginning of the function from end.  Pass
17404         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
17405         If !frame_pointer_needed, call vt_stack_adjustment before mos
17406         vector is filled, call vt_init_cfa_base if argp/framep has been
17407         eliminated to sp.  If frame_pointer_needed and argp/framep has
17408         been eliminated to hard frame pointer, set
17409         hard_frame_pointer_adjustment and call vt_init_cfa_base after
17410         encountering fp setter in the prologue.  For MO_ADJUST, call
17411         log_op_type before pusing the op into mos vector, not afterwards.
17412         Call adjust_insn before cselib_process_insn/add_with_sets,
17413         call cancel_changes (0) afterwards.
17414         (variable_tracking_main_1): Adjust for vt_initialize calling
17415         vt_stack_adjustments and returning whether it succeeded or not.
17417 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
17419         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
17420         debug statements.
17422 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
17424         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
17425         has been set.
17426         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
17427         drap_reg has not been set.
17429 2010-03-15  Michael Matz  <matz@suse.de>
17431         PR middle-end/43300
17432         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
17433         use it to expand block copies.
17434         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
17435         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
17436         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
17438 2010-03-15  Richard Guenther  <rguenther@suse.de>
17440         PR tree-optimization/43367
17441         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
17442         elimination check.
17444 2010-03-15  Richard Guenther  <rguenther@suse.de>
17446         PR tree-optimization/43317
17447         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
17449 2010-03-15  Martin Jambor  <mjambor@suse.cz>
17451         PR tree-optimization/43141
17452         * tree-sra.c (create_abstract_origin): New function.
17453         (modify_function): Call create_abstract_origin.
17455 2010-03-15  Chris Demetriou  <cgd@google.com>
17457         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
17458         wasn't copied.
17460 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17462         PR middle-end/43354
17463         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
17464         call insert_out_of_ssa_copy for default definitions.
17466 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17468         * graphite-clast-to-gimple.c (my_long_long): Defined.
17469         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
17470         * graphite-sese-to-poly.c (my_long_long): Defined.
17471         (scop_ivs_can_be_represented): Use it.
17473 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17475         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
17476         graphite-max-bbs-per-function, and loop-block-tile-size.
17477         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
17478         with "maximum".
17479         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
17481 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17483         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
17484         forward declaration.
17485         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
17486         (add_upper_bounds_from_estimated_nit): New.
17487         (build_loop_iteration_domains): Use it.
17489 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17491         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
17493 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17495         PR middle-end/43306
17496         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
17497         should be an INTEGER_CST.  Also handle CASE_CONVERT.
17499 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17501         * graphite.c (graphite_initialize): To bound the number of bbs per
17502         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
17503         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
17504         * doc/invoke.texi: Document it.
17506 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17508         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
17509         * graphite-sese-to-poly.h (build_poly_scop): Same.
17511 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17513         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
17514         the number of parameters in the scop.  Use as an upper bound
17515         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
17516         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
17517         * doc/invoke.texi: Document it.
17519 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
17521         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
17522         * doc/c-tree.texi: Remove.
17523         * doc/generic.texi: Merge c-tree.texi here.
17524         * doc/gccint.texi (Trees): Remove menu entry.
17525         (c-tree.texi): Remove @include.
17526         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
17527         * doc/languages.texi (Reading RTL): Ditto.
17529 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
17531         PR target/42869
17532         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
17534 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17536         PR middle-end/42431
17537         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
17538         code added to work around reload clobbering CONST insns.
17540 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
17542         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
17543         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
17544         (cselib_preserve_only_values): Remove retain argument, don't
17545         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
17546         * cselib.h (cselib_preserve_only_values): Remove retain argument.
17547         * var-tracking.c (micro_operation): Move insn field before union.
17548         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
17549         (struct variable_tracking_info_def): Remove n_mos field, change
17550         mos into a vector of micro_operations.
17551         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
17552         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
17553         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
17554         changing into a vector.
17555         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
17556         come before all other uops generated by add_stores.
17557         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
17558         argument removal.
17559         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
17560         a vector.  Run just one pass over the bbs instead of separate counting
17561         and computation phase.
17562         (vt_finalize): Free VTI (bb)->mos vector instead of array.
17564         PR debug/43329
17565         * tree-inline.c (remap_decls): Put old_var rather than origin_var
17566         into *nonlocalized_list vector.
17567         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
17568         even if origin is non-NULL.
17569         (gen_variable_die): Likewise.
17570         (process_scope_var): Don't change origin.
17571         (gen_decl_die): Likewise.
17572         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
17573         before adding new edges instead of after it, fix moving over
17574         debug stmts.
17576 2010-03-11  David S. Miller  <davem@davemloft.net>
17578         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
17579         of four.
17580         * configure: Rebuild.
17582 2010-03-11  Martin Jambor  <mjambor@suse.cz>
17584         PR tree-optimization/43257
17585         * tree.c (assign_assembler_name_if_neeeded): New function.
17586         (free_lang_data_in_cgraph): Assembler name assignment moved to the
17587         above new function.
17588         * tree.h (assign_assembler_name_if_neeeded): Declare.
17589         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
17590         the function if needed.
17592 2010-03-11  Chris Demetriou  <cgd@google.com>
17594         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
17595         include/stdint-gcc.h, and include/stdint.h world-readable.
17597 2010-03-11  Richard Guenther  <rguenther@suse.de>
17599         PR tree-optimization/43255
17600         * tree-vrp.c (process_assert_insertions_for): Do not insert
17601         asserts for trivial conditions.
17603 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17605         PR tree-optimization/43280
17606         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
17607         generation.  Move calculation of size out of the if branch.
17608         (find_bswap): Modify compare number generation.
17610 2010-03-11  Richard Guenther  <rguenther@suse.de>
17612         PR lto/43200
17613         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
17614         (input_gimple_stmt): Fixup handled component types during
17615         operand read.  Also fix up decls in ADDR_EXPRs.
17617 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
17619         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
17620         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
17622 2010-03-10  Jan Hubicka  <jh@suse.cz>
17624         PR c/43288
17625         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
17626         * varasm.c (get_variable_section): Don't do that here...
17627         (make_decl_rtl): ... and here.
17628         (do_assemble_alias): Produce decl RTL.
17629         (assemble_alias): Likewise.
17631 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
17633         PR debug/43290
17634         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
17635         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
17636         of fde->vdrap_reg.
17637         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
17638         (based_loc_descr): Only express drap or vdrap regno based expressions
17639         using DW_OP_fbreg when not optimizing.
17640         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
17641         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
17642         REG_CFA_SET_VDRAP note.
17644 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
17646         PR tree-optimization/43236
17647         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
17648         error in calculation of base address in reverse iteration case.
17649         (generate_builtin): Take number of latch executions if the statement
17650         is in the latch.
17652 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
17654         PR middle-end/42859
17655         * tree-eh.c: Include pointer-set.h.
17656         (lower_eh_dispatch): Filter out duplicate case labels and
17657         remove the unneeded edge when the label is unused.  Return
17658         true when some edges are removed.
17659         (execute_lower_eh_dispatch): When any lowering resulted in
17660         removing an edge, also delete unreachable blocks.
17662 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
17664         PR bootstrap/43287
17665         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17666         UNSPEC_MACHOPIC_OFFSET.
17668 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
17670         PR target/43294
17671         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
17672         (m68k_delegitimize_address): New function.
17674 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
17676         PR debug/43299
17677         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
17679         PR debug/43299
17680         * var-tracking.c (adjust_sets): New function.
17681         (count_with_sets, add_with_sets): Use it.
17682         (get_adjusted_src): New inline function.
17683         (add_stores): Use it.
17685         PR debug/43304
17686         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
17687         call cselib_dummy_expand_value_rtx_cb instead of
17688         cselib_expand_value_rtx_cb.
17690         PR debug/43293
17691         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
17692         * config/i386/i386.c: Include debug.h and dwarf2out.h.
17693         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
17694         and .cfi_endproc around the pic thunks.
17695         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
17696         all queued unwind info register saves are saved before the call.
17697         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
17698         considered as sp-=4 for unwind info and the pop as sp+=4 which
17699         also clobbers dest, but doesn't actually restore it.
17701         PR debug/43290
17702         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
17703         RTX_FRAME_RELATED_P.
17705 2010-03-09  Jie Zhang  <jie@codesourcery.com>
17707         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
17708         whitespaces in output template.
17710 2010-03-09  Jie Zhang  <jie@codesourcery.com>
17712         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
17713         out array boundary.
17715 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
17717         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
17718         builtins.exp in a separate job.
17720 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17722         * graphite-sese-to-poly.c (add_param_constraints): Use
17723         lower_bound_in_type and upper_bound_in_type.
17725 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17727         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
17728         instead of unsigned_type_node.
17730 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17731             Reza Yazdani  <reza.yazdani@amd.com>
17733         PR middle-end/43065
17734         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
17735         on pointer type parameters.
17737 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17739         PR middle-end/42644
17740         PR middle-end/42130
17741         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
17742         handle conversions from pointer to integers.
17743         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
17744         induction variable, to be able to work with code generated by CLooG.
17745         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
17746         (build_poly_scop): Bail out if we cannot codegen a loop.
17748 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17750         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
17751         code generation with gloog_error.
17753 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17755         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
17756         Call fold_convert on all the returned values.
17757         (expand_scalar_variables_expr): Pass to
17758         expand_scalar_variables_ssa_name the type of the resulting expression.
17760 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17762         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
17763         ppl_min_for_le_pointset.
17764         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
17765         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
17767 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17769         * graphite-dependences.c (map_into_dep_poly): Removed.
17770         (dependence_polyhedron_1): Use combine_context_id_scat.
17772 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17774         * graphite-poly.h (struct poly_scattering): Add layout documentation.
17775         (struct poly_bb): Same.
17776         (combine_context_id_scat): New.
17778 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17780         PR middle-end/42326
17781         * sese.c (name_defined_in_loop_p): Return false for default
17782         definitions.
17784 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17786         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
17787         and clean up the logic.
17789 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17791         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
17792         early return.
17794 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
17796         * var-tracking.c (remove_cselib_value_chains): Define only for
17797         ENABLE_CHECKING.
17798         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
17799         delete_slot_part, emit_notes_for_differences_1): Don't call
17800         remove_cselib_value_chains here.
17801         (set_slot_part, emit_notes_for_differences_2): Don't call
17802         add_cselib_value_chains here.
17803         (preserved_values): New vector.
17804         (preserve_value): New function.
17805         (add_uses, add_stores, vt_add_function_parameters): Use it
17806         instead of cselib_preserve_value.
17807         (changed_values_stack): New vector.
17808         (check_changed_vars_0): New function.
17809         (check_changed_vars_1, check_changed_vars_2): Use it.
17810         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
17811         changed_values_stack VALUEs.
17812         (vt_emit_notes): For all preserved_values call
17813         add_cselib_value_chains.  If ENABLE_CHECKING call
17814         remove_cselib_value_chains before verifying value_chains is empty.
17815         Initialize and free changed_values_stack.
17816         (vt_initialize): Initialize preserved_values.
17817         (vt_finalize): Free preserved_values.
17819 2010-03-08  Richard Guenther  <rguenther@suse.de>
17821         PR tree-optimization/43269
17822         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
17823         region detection.
17825 2010-03-08  Martin Jambor  <mjambor@suse.cz>
17827         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
17828         (ipa_is_param_called): Removed.
17829         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
17830         (ipa_print_node_params): Do not print the called flag.
17831         (ipa_write_node_info): Do not stream the called flag.
17832         (ipa_read_node_info): Likewise.
17834 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
17836         PR debug/43176
17837         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
17838         * cselib.c (struct expand_value_data): Add dummy field.
17839         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
17840         dummy to false.
17841         (cselib_dummy_expand_value_rtx_cb): New function.
17842         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
17843         any rtl.
17844         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
17845         * var-tracking.c: Include pointer-set.h.
17846         (variable): Change n_var_parts to char from int.  Add
17847         cur_loc_changed and in_changed_variables fields.
17848         (variable_canonicalize): Remove.
17849         (shared_var_p): New inline function.
17850         (unshare_variable): Maintain cur_loc_changed and
17851         in_changed_variables fields.  If var was in changed_variables,
17852         replace it there with new_var.  Just copy cur_loc instead of
17853         resetting it to something else.
17854         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
17855         (dataflow_set_union): Don't call variable_canonicalize.
17856         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
17857         of their DEBUG_EXPR_TREE_DECLs.
17858         (canonicalize_loc_order_check): Verify that cur_loc is NULL
17859         and in_changed_variables and cur_loc_changed is false.
17860         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
17861         and cur_loc_changed.  Don't update cur_loc here.
17862         (variable_merge_over_src): Don't call variable_canonicalize.
17863         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
17864         removing loc that is equal to cur_loc, clear cur_loc,
17865         set cur_loc_changed and ensure variable_was_changed is called.
17866         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
17867         compare pointers in cur_loc check, if it is equal to loc,
17868         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
17869         (variable_different_p): Remove compare_current_location argument,
17870         don't compare cur_loc.
17871         (dataflow_set_different_1): Adjust variable_different_p caller.
17872         (variable_was_changed): If dv had some var in changed_variables
17873         already, reset in_changed_variables flag for it and propagate
17874         cur_loc_changed over to the new variable.  On empty var
17875         always set cur_loc_changed.  Set in_changed_variables on whatever
17876         var is added to changed_variables.
17877         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
17878         Use shared_var_p.  When removing loc that is equal to cur_loc,
17879         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
17880         end, don't set it to something else, just call variable_was_changed.
17881         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
17882         loc being removed, clear cur_loc and set cur_loc_changed.
17883         Set cur_loc_changed if all locations have been removed.
17884         (struct expand_loc_callback_data): New type.
17885         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
17886         allocated.  Always create SUBREGs if simplify_subreg failed.
17887         Prefer to use cur_loc, when that fails and still in
17888         changed_variables (and seen first time) recompute it.  Set
17889         cur_loc_changed of variables which had to change cur_loc and
17890         compute elcd->cur_loc_changed if any of the subexpressions used
17891         had to change cur_loc.
17892         (vt_expand_loc): Adjust to pass arguments in
17893         expand_loc_callback_data structure.
17894         (vt_expand_loc_dummy): New function.
17895         (emitted_notes): New variable.
17896         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
17897         that weren't used for any other decl in current
17898         emit_notes_for_changes call call vt_expand_loc_dummy to update
17899         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
17900         first loc_chain location if NULL before.  Always use just
17901         cur_loc instead of first loc_chain location.  When cur_loc_changed
17902         is false, when not --enable-checking=rtl just don't emit any note.
17903         When rtl checking, compute the note and assert it is the same
17904         as previous note.  Clear cur_loc_changed and in_changed_variables
17905         at the end before removing from changed_variables.
17906         (check_changed_vars_3): New function.
17907         (emit_notes_for_changes): Traverse changed_vars to call
17908         check_changed_vars_3 on each changed var.
17909         (emit_notes_for_differences_1): Clear cur_loc_changed and
17910         in_changed_variables.  Recompute cur_loc of new_var.
17911         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
17912         (vt_emit_notes): Initialize and destroy emitted_notes.
17914 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
17916         PR rtl-optimization/42220
17917         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
17918         Use verify_reg_tracked to determine if we should use OP_OUT rather
17919         than OP_INOUT.
17920         (build_def_use): If we see an in-out operand for a register that we
17921         know nothing about, treat is an output if possible, fail the block if
17922         not.
17924 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17926         PR debug/42897
17927         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
17928         permanently.
17930 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17932         PR debug/42897
17933         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
17934         uses of relevant DEFs that are dead outside the loop too.
17936 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17938         * var-tracking.c (dataflow_set_merge): Swap src and src2.
17939         Reverted:
17940         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
17941         PR debug/41371
17942         * var-tracking.c (values_to_unmark): New variable.
17943         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17944         values_to_unmark vector.  Moved body to...
17945         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
17946         instead queue it into values_to_unmark vector.
17947         (vt_find_locations): Free values_to_unmark vector.
17949 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
17951         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
17952         (site.exp): Export them when plugins are enabled.
17954 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
17956         PR middle-end/42326
17957         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
17958         that contain scevs.
17959         (chrec_fold_multiply): Same.
17961 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
17963         PR c/43248
17964         * c-decl.c (build_compound_literal): Return early if init is
17965         an error_mark_node.
17967 2010-03-04  Martin Jambor  <mjambor@suse.cz>
17969         PR tree-optimization/43164
17970         PR tree-optimization/43191
17971         * tree-sra.c (type_consists_of_records_p): Reject records with
17972         zero-size bit-fields at the end.
17974 2010-03-04  Mike Stump  <mikestump@comcast.net>
17976         * Makefile.in (TAGS): Remove *.y.
17978 2010-03-04  Richard Guenther  <rguenther@suse.de>
17980         PR tree-optimization/40761
17981         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
17982         in reverse order.
17983         (my_rev_post_order_compute): New function.
17984         (init_pre): Call it.
17986 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
17988         PR middle-end/43209
17989         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
17990         decrease the cost of an IV candidate when the cost is infinite.
17992 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17994         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
17995         Use '3DNow!' for the extension of that name, ensure normal space
17996         after the string.
17997         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
17999 2010-03-03  Jeff Law  <law@redhat.com>
18001         * PR middle-end/32693
18002         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
18003         than gen_rtx_SUBREG.
18004         (extract_bit_field_1): Likewise.
18006 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
18008         * doc/sourcebuild.texi (Test directives): Document that arguments
18009         include-opts and exclude-opts are now optional for dg-skip-if,
18010         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
18012 2010-03-03  Jason Merrill  <jason@redhat.com>
18014         PR c++/12909
18015         * cgraph.h (varpool_node): Add extra_name field.
18016         * varpool.c (varpool_extra_name_alias): New.
18017         (varpool_assemble_decl): Emit extra name aliases.
18018         (varpool_mark_needed_node): Look past an extra name alias.
18019         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
18020         * lto-streamer-in.c (lto_input_tree): Read it.
18021         * lto-streamer-out.c (output_unreferenced_globals): Write it.
18023 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18025         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
18026         (sparc*-*-solaris2*): ...this.
18028 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
18030         PR debug/43229
18031         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
18032         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
18033         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
18034         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
18036         PR debug/43237
18037         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
18038         fallthrough to default handling, just with want_address 0 instead of 2.
18039         For single element lists, add_AT_loc directly, otherwise create an
18040         artificial variable DIE and stick location list to it.
18042         PR debug/43177
18043         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
18044         (VAL_EXPR_HAS_REVERSE): Define.
18045         (reverse_op): New function.
18046         (add_stores): For reversible operations add an extra MO_VAL_USE.
18048 2010-03-02  Jason Merrill  <jason@redhat.com>
18050         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
18052 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
18054         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
18055         (sparc64-*-linux*): Likewise.
18056         (sparc64-*-solaris2*): Include assembler files before linker ones.
18057         (sparc-*-solaris2*): Simplify and reorder to match previous case.
18058         * config/sparc/gas.h: Delete.
18059         * config/sparc/sol2-64.h: Add copyright notice.
18060         * config/sparc/sol2-gas-bi.h: Likewise.
18061         * config/sparc/sol2-gld.h: Likewise.
18062         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
18063         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
18064         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
18065         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
18066         (sparc_elf_asm_named_section): Rename into...
18067         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
18069 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
18071         * config/alpha/alpha.c (override_options): Fix -mtune error message.
18073 2010-03-02  Jeff Law  <law@redhat.com>
18075         PR middle-end/42431
18076         * reload1.c (rtx_p, substitute_stack): Declare.
18077         (substitute): Record addresses of changed rtxs.
18078         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
18079         Restore the original rtx when complete.
18080         (reload): Free subsitute_stack when complete.
18082 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
18084         * doc/gccint.texi (menu): Add Testsuites as a chapter.
18085         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
18086         new chapter.
18087         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
18088         LTO Testing, gcov Testing, profopt Testing, compat Testing,
18089         Torture Tests): Change from subsection to section.
18091 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
18092             Steven Bosscher  <steven@gcc.gnu.org>
18094         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
18095         instead of bb.
18097 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
18099         PR middle-end/42640
18100         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
18101         the assignment from the new induction variable to the assignment
18102         of the value from the original loop PHI function.
18104 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
18105             Daniel Jacobowitz  <dan@codesourcery.com>
18107         * doc/sourcebuild.texi (Test directives): Clarify options to
18108         dg-skip-if.
18110 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18112         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
18113         Disable cfi directives unless GCC and gas agree on using read-only
18114         .eh_frame sections for 64-bit.
18115         * configure: Regenerate.
18117 2010-03-01  Richard Guenther  <rguenther@suse.de>
18119         PR tree-optimization/43220
18120         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
18121         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
18123 2010-03-01  Richard Guenther  <rguenther@suse.de>
18124             Martin Jambor  <mjambor@suse.cz>
18126         PR middle-end/41250
18127         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
18128         gimplified parameters.
18130 2010-03-01  Christian Bruel  <christian.bruel@st.com>
18132         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
18134 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18136         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
18138 2010-03-01  Richard Guenther  <rguenther@suse.de>
18140         PR middle-end/43213
18141         * expr.c (expand_assignment): Use the alias-oracle to tell
18142         if the rhs aliases the result decl.
18144 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18146         PR pch/14940
18147         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
18148         to sol_gt_pch_get_address.
18149         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
18150         64-bit, SPARC and x86.
18151         (sol_gt_pch_get_address): New function.
18153 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
18155         * toplev.h (inform_n, error_n): Declare.
18156         * diagnostic.c (inform_n, error_n): New function.
18158 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
18160         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
18161         has no rtl yet when processing local_decls, queue it and recheck
18162         if deferred stack allocation hasn't assigned it rtl.
18164 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
18166         * config/sh/sh.c (unspec_bbr_uid): New.
18167         (gen_block_redirect): Use it instead of INSN_UID.
18168         (gen_far_branch): Likewise.
18170 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
18172         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
18173         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
18175 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18177         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
18178         (Warning Options): -Wno-conversion-null is valid for
18179         Objective-C++ as well.
18180         * doc/tm.texi (Named Address Spaces): Likewise.
18181         * doc/plugins.texi (Plugins): Replace TABs with spaces.
18182         * doc/tree-ssa.texi (Tree SSA): Likewise.
18184 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18186         PR bootstrap/43202
18187         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
18188         by default.  Don't set the default arch for
18189         i[34567]86-*-darwin*|x86_64-*-darwin*.
18191 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18193         PR bootstrap/43202
18194         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
18195         default.  Set the default 32bit/64bit archs with $with_arch
18196         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
18198 2010-02-27  Richard Guenther  <rguenther@suse.de>
18200         PR tree-optimization/43186
18201         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
18202         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
18203         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
18204         unroller iterations.
18206 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18208         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
18209         required and i[34567]86-*-* targets don't support 64bit ISA.
18211 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
18213         PR ada/43096
18214         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18215         the same alias set.
18217 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
18219         * config.gcc: Set the default arch at least to Prescott for
18220         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
18221         if SSE math is enabled.
18223 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18225         * diagnostic.c (diagnostic_initialize): Update.
18226         (diagnostic_report_diagnostic): Test inhibit_notes_p for
18227         informative notes.
18228         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
18229         (diagnostic_inhibit_notes): New.
18230         * toplev.c (process_options): inhibit notes with -fcompare-debug.
18232 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18234         PR c/20631
18235         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
18236         * doc/standards.texi: Likewise.
18237         * doc/extend.texi: Likewise.
18238         * doc/trouble.texi: Likewise.
18239         * doc/cppopts.texi: Likewise.
18240         * doc/install.texi: Likewise.
18241         * c.opt (std=c90,std=gnu90): New options.
18242         * c-opts.c (c_common_handle_option): Handle them.
18244 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18246         PR c/24577
18247         * c-decl.c (undeclared_variable): Use an informative note.
18249 2010-02-26  Richard Guenther  <rguenther@suse.de>
18251         PR tree-optimization/43186
18252         * gimple.h (gimple_fold): Remove.
18253         * gimple.c (gimple_fold): Remove.  Inline into single user ...
18254         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
18255         Try harder for conditions.
18257 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
18259         PR debug/43190
18260         * function.c (used_types_insert): Don't skip through named pointer
18261         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
18262         and it is different from the main variant's type.
18264 2010-02-26  Nick Clifton  <nickc@redhat.com>
18266         * config/rx/rx.md (sminsi3): Remove bogus alternative.
18268 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
18270         * config.gcc: Support --with-fpmath=sse for x86.
18272         * config/i386/ssemath.h: New.
18274         * doc/install.texi (--with-fpmath=sse): Documented.
18276 2010-02-26  Richard Guenther  <rguenther@suse.de>
18278         PR tree-optimization/43188
18279         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
18280         vector types of over-aligned element type.
18282 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
18284         PR target/43175
18285         * config/i386/i386.c (expand_vec_perm_blend): Use correct
18286         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
18288 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
18290         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
18292 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
18294         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
18295         * var-tracking.c: Include diagnostic.h.
18296         (debug_dv): New function.
18297         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
18299         PR debug/43160
18300         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
18301         (add_value_chain, add_value_chains, remove_value_chain,
18302         remove_value_chains): Handle DEBUG_EXPRs.
18303         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
18305         PR debug/43161
18306         * regcprop.c (struct queued_debug_insn_change): New type.
18307         (struct value_data_entry): Add debug_insn_changes field.
18308         (struct value_data): Add n_debug_insn_changes field.
18309         (debug_insn_changes_pool): New variable.
18310         (free_debug_insn_changes, apply_debug_insn_changes,
18311         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
18312         (kill_value_one_regno): Call free_debug_insn_changes if needed.
18313         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
18314         fields.
18315         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
18316         changes for them.
18317         (copyprop_hardreg_forward_1): Don't call apply_change_group for
18318         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
18319         changes, call cprop_find_used_regs via note_stores.
18320         (copyprop_hardreg_forward): When copying vd from predecessor
18321         which has any queued DEBUG_INSN changes, make sure the pointers are
18322         cleared.  At the end call df_analyze and then if there are any
18323         DEBUG_INSN changes queued at the end of some basic block for still
18324         live registers, apply them.
18325         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
18327 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
18329         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
18330         (arm*-*-*): Ditto.
18332 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
18334         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
18335         targets.  Set the default with_cpu/with_arch from arch/cpu.
18336         Allow x86-64 and native for with_cpu/with_arch.
18338 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
18340         * ebitmap.c: Change calls to verify_popcount with calls to
18341         sbitmap_verify_popcount.
18342         (ebitmap_clear_bit): Fixed map->cacheindex test and
18343         map>cache update when bit clearing results in an empty
18344         element.
18346 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
18348         PR target/43154
18349         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
18350         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
18351         and support both V2DF and V2DI modes.
18352         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
18353         support both V2DF and V2DI modes.
18354         (general): Delete trailing whitespace from a few patterns.
18356         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18357         V2DF/V2DI interleave high/low builtins.
18359         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
18360         new VSX builtins.
18362         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
18363         interleave high/low functions.
18365 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
18367         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
18368         #pragma extern_prefix.
18370 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
18372         PR debug/43166
18373         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
18374         BLKmode, assert op0 is a MEM and just adjust its mode.
18376         PR debug/43165
18377         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
18378         if bitpos isn't multiple of mode's bitsize.
18380 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18382         * c.opt (-ftemplate-depth=): New.
18383         (-ftemplate-depth-): Deprecate.
18384         * optc-gen.awk: Handle -ftemplate-depth=.
18385         * opth-gen.awk: Likewise.
18386         * c-opts.c (c_common_handle_option): Likewise.
18387         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
18389 2010-02-24  Jason Merrill  <jason@redhat.com>
18391         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
18393 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18395         * cfg.c (alloc_aux_for_block): Remove inline.
18396         (alloc_aux_for_edge): Likewise.
18398 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18400         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
18402 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18404         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
18405         * config/i386/sol2-gas.h: New file.
18406         * config.gcc (i[34567]86-*-solaris2*): Use it.
18408 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18410         PR c/43128
18411         * c-typeck.c (ep_convert_and_check): New.
18412         (build_conditional_expr): Use it.
18413         (build_binary_op): Likewise.
18415 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
18417         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
18419         PR debug/43150
18420         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
18421         bounds even for -O+.
18422         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
18423         expr needs to have DECL_NAME set.
18425 2010-02-24  Nick Clifton  <nickc@redhat.com>
18427         * config/mep/mep.c: Include gimple.h.
18428         (mep_function_uses_sp): Delete unused function.
18429         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
18430         parameters.  Use unsigned integers to count args.  Return a
18431         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
18433 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
18435         PR target/43107
18436         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
18437         greater or equal to nelt instead of 2 * nelt.
18438         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
18439         with nelt - 1.
18441 2010-02-23  Jason Merrill  <jason@redhat.com>
18443         PR debug/42800
18444         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
18445         in cfun->local_decls even if they have register types.
18447         PR c++/42837
18448         * stor-layout.c (place_field): Don't warn about unnecessary
18449         DECL_PACKED if the type is packed.
18451 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
18453         PR target/43139
18454         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
18455         GOTOFF relocs, even when the base reg isn't pic pointer.
18457 2010-02-23  Michael Matz  <matz@suse.de>
18459         PR debug/43077
18460         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
18461         (expand_gimple_basic_block): Generate and use debug temps if there
18462         are debug uses left after the last real use of TERed ssa names.
18463         Unlink debug immediate uses when they are expanded.
18465 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18467         PR 43123
18468         * config/i386/i386.c (override_options): Reorganise to provide
18469         better error messages.
18471 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18473         PR middle-end/43083
18474         * graphite-scop-detection.c (create_single_exit_edge): Move
18475         the call to find_single_exit_edge to....
18476         (create_sese_edges): ...here.  Don't handle multiple edges
18477         exiting the function.
18478         (build_graphite_scops): Don't handle multiple edges
18479         exiting the function.
18481 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18483         PR middle-end/43097
18484         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
18485         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
18487 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18489         PR middle-end/43026
18490         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
18492 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18494         PR c++/43126
18495         * c-typeck.c (convert_arguments): Print declaration location.
18496         * c-common.c (validate_nargs): Rename as
18497         builtin_function_validate_nargs.
18498         (check_builtin_function_arguments): Update.
18500 2010-02-22  Richard Guenther  <rguenther@suse.de>
18502         PR lto/43045
18503         * tree-inline.c (declare_return_variable): Use the type of
18504         the call stmt lhs if available.
18506 2010-02-22  Duncan Sands  <baldrick@free.fr>
18508         * passes.c (register_pass): Always consider all pass lists when
18509         ref_pass_instance_number is zero.
18511 2010-02-22  Richard Guenther  <rguenther@suse.de>
18513         PR tree-optimization/42749
18514         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
18515         parameter.  Do arithmetic in the original type.
18516         (update_accumulator_with_ops): Likewise.
18517         (adjust_accumulator_values): Adjust.
18519 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18521         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
18522         (QI to BLKmode splitter): New splitter.
18524 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
18526         * config/i386/i386.c (initial_ix86_tune_features): Turn on
18527         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
18529 2010-02-22  Richard Guenther  <rguenther@suse.de>
18531         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
18533 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
18535         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
18536         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
18537         ($(T)crti.o, $(T)crtn.o): Remove rules.
18539 2010-02-21  Tobias Burnus  <burnus@net-b.de>
18541         PR fortran/35259
18542         * doc/invoke.texi (-fassociative-math): Document that this
18543         option is automatically enabled for Fortran.
18545 2010-02-20  David S. Miller  <davem@davemloft.net>
18547         * configure.ac: Test if linker and assembler properly support
18548         GOTDATA_OP relocations.
18549         * configure: Rebuild.
18550         * config.in: Likewise.
18551         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
18552         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
18553         (movsi_high_pic): Likewise.
18554         (movdi_lo_sum_pic): Likewise.
18555         (movdi_high_pic): Likewise.
18556         (movsi_pic_gotdata_op): New pattern.
18557         (movdi_pic_gotdata_op): Likewise.
18558         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
18559         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
18561 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
18563         PR target/43067
18564         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
18565         attribute to ssemul.
18566         (xop_mulv2div2di3_high): Ditto.
18568 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18570         PR c++/35669
18571         * c.opt (Wconversion-null): New option.
18572         * doc/invoke.texi (Wconversion-null): Document.
18574 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18576         * common.opt (Wlarger-than-): Add Undocumented.
18578 2010-02-19  Mike Stump  <mikestump@comcast.net>
18580         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
18582 2010-02-19  Jason Merrill  <jason@redhat.com>
18584         PR target/40332
18585         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
18586         * configure: Likewise.
18588 2010-02-20  Alan Modra  <amodra@gmail.com>
18590         PR middle-end/42344
18591         * cgraph.h (cgraph_make_decl_local): Declare.
18592         * cgraph.c (cgraph_make_decl_local): New function.
18593         (cgraph_make_node_local): Use it.
18594         * cgraphunit.c (cgraph_function_versioning): Likewise.
18595         * ipa.c (function_and_variable_visibility): Likewise.
18597 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
18599         PR bootstrap/43121
18600         * except.c (sjlj_emit_function_enter): Don't call
18601         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
18602         directly.
18603         * rtl.h (add_reg_br_prob_note): Remove prototype.
18605 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18607         PR 41779
18608         * c-common.c (conversion_warning): Remove widening conversions
18609         before checking the conversion of integers to reals.
18611 2010-02-19  Mike Stump  <mikestump@comcast.net>
18613         PR middle-end/43125
18614         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
18616         PR objc/43061
18617         * cgraphunit.c (process_function_and_variable_attributes): Check
18618         DECL_PRESERVE_P instead of looking up attribute "used".
18619         * ipa-pure-const.c (check_decl): Likewise.
18620         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
18621         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
18622         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
18623         instead of attribute "used".
18624         * config/sol2-c.c (solaris_pragma_init): Likewise.
18625         (solaris_pragma_fini): Likewise.
18627 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
18629         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
18630         Use XCNEW instead of xcalloc.
18631         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
18632         XNEW instead of xmalloc.
18633         (get_fields): Use XNEWVEC instead of xmalloc.
18635         PR debug/43084
18636         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
18637         populate vars array.
18638         (create_new_general_access): For debug stmts just reset value.
18639         (get_stmt_accesses): For accesses within debug stmts just record them
18640         using add_access_to_acc_sites instead of preventing the peeling or
18641         counting them as accesses.
18643         PR middle-end/42233
18644         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
18646 2010-02-19  Richard Guenther  <rguenther@suse.de>
18648         PR tree-optimization/42916
18649         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
18650         instructions.
18652 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
18654         * configure.ac: Replace all uses of changequote in macro arguments
18655         with proper quoting.
18657 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
18659         PR middle-end/42233
18660         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
18662 2010-02-19  Richard Guenther  <rguenther@suse.de>
18664         PR tree-optimization/42944
18665         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
18666         test for aliasing with errno.
18668 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
18670         PR middle-end/42233
18671         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
18672         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
18673         * dojump.c: Include output.h.
18674         (inv): New inline function.
18675         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
18676         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
18677         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
18678         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
18679         argument, pass it down to other calls.
18680         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
18681         add REG_BR_PROB note to the conditional jump.
18682         * cfgexpand.c (add_reg_br_prob_note): Removed.
18683         (expand_gimple_cond): Don't call it, add the probability
18684         as last argument to jumpif_1/jumpifnot_1.
18685         * Makefile.in (dojump.o): Depend on output.h.
18686         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
18687         callers.
18688         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
18689         * stmt.c (do_jump_if_equal): Likewise.
18690         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
18691         * loop-unswitch.c (compare_and_jump_seq): Likewise.
18692         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
18693         Likewise.
18694         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
18695         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
18696         jumpifnot_1 callers.
18697         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
18698         callers.
18699         (store_expr): Adjust jumpifnot caller.
18700         (store_constructor): Adjust jumpif caller.
18702         PR middle-end/42233
18703         * gimplify.c (gimple_boolify): For __builtin_expect call
18704         gimple_boolify also on its first argument.
18706 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
18708         * configure.ac (gnu-unique-object): Wrap regexps using [] in
18709         changequote block.
18710         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
18711         * configure: Regenerated.
18713 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18715         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
18716         lang_hooks.types_compatible_p instead of comptypes.
18718 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18720         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
18721         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
18722         if __prefer_thumb__ is defined.
18724 2010-02-18  Martin Jambor  <mjambor@suse.cz>
18726         PR tree-optimization/43066
18727         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
18728         array with zero-sized element type.
18730 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
18732         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
18733         rtx, allocate struct var_loc_node here and return it to the
18734         caller, and only if it is actually needed.
18735         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
18736         move it earlier and return immediately if it returns NULL.
18738 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
18740         * config/sparc/gas.h: New file.  Restore
18741         TARGET_ASM_NAMED_SECTION to its ELF default.
18742         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
18743         check !HAVE_GNU_AS.
18744         * config/sparc/sparc.c (sparc_elf_asm_named_section):
18745         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
18746         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
18747         after sparc/sysv4.h.
18749 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
18751         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
18753 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
18755         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
18756         patterns from predicated pattern.
18758 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
18760         PR target/43103
18761         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
18762         for insn mnemonic suffix.
18764 2010-02-17  Richard Guenther  <rguenther@suse.de>
18766         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
18767         to loop PHI nodes.
18769 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
18771         PR debug/42918
18772         * caller-save.c (save_call_clobbered_regs): If BB ends with
18773         a DEBUG_INSN, move any notes in between last real insn and the last
18774         DEBUG_INSN after the last DEBUG_INSN.
18776 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
18778         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
18779         Fix return type.  Fix argument type.  Explain meaning of return value.
18781 2010-02-16  Richard Guenther  <rguenther@suse.de>
18783         PR tree-optimization/41043
18784         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
18785         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
18786         statements ...
18787         (vrp_visit_phi_node): ... but only for loop PHI nodes.
18789 2010-02-16  Ira Rosen  <irar@il.ibm.com>
18791         PR tree-optimization/43074
18792         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
18793         * tree-vect-loop.c (vect_analyze_loop_operations): Add
18794         vectorizable cycles in hybrid SLP check.
18795         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
18797 2010-02-16  Richard Guenther  <rguenther@suse.de>
18799         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
18800         (true_dependence): If memrefs_conflict_p computes must-alias
18801         trust it.  Move TBAA check after offset-based disambiguation.
18802         (canon_true_dependence): Likewise.
18804 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
18806         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
18807         * doc/invoke.texi: Document it.
18808         * var-tracking.c: Include toplev.h and params.h.
18809         (vt_find_locations): Return bool indicating success.  Compute
18810         hash sizes unconditionally.  Check new parameter, report.
18811         (variable_tracking_main_1): Check vt_find_locations results and
18812         retry.  Renamed from...
18813         (variable_tracking_main): ... this.  New wrapper to preserve
18814         flag_var_tracking_assignments.
18815         * Makefile.in (var-tracking.o): Adjust dependencies.
18817 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
18818             Jakub Jelinek  <jakub@redhat.com>
18820         PR target/42854
18821         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
18822         if weak_import attribute is present.
18823         * config/darwin.c (machopic_select_section): Likewise.
18825 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
18827         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
18828         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
18829         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
18830         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
18832         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
18833         types.
18835         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18836         Fix argument types.
18838         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
18839         Rewrite text to refer to the names.
18841 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
18843         * config/i386/i386-builtin-types.def
18844         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
18845         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
18846         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
18847         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
18848         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
18849         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
18850         IX86_BUILTIN_VPERMIL2PS256.
18851         (MULTI_ARG_4_DF2_DI_I): Defined.
18852         (MULTI_ARG_4_DF2_DI_I1): Defined.
18853         (MULTI_ARG_4_SF2_SI_I): Defined.
18854         (MULTI_ARG_4_SF2_SI_I1): Defined.
18855         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
18856         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
18857         __builtin_ia32_vpermil2ps256.
18858         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18859         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18860         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
18861         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18862         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18863         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
18864         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
18865         CODE_FOR_xop_vpermil2v8sf3.
18866         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
18867         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
18868         * config/i386/xopintrin.h (_mm_permute2_pd): New.
18869         (_mm256_permute2_pd): New.
18870         (_mm_permute2_ps): New.
18871         (_mm256_permute2_ps): New.
18873 2010-02-15  Nick Clifton  <nickc@redhat.com>
18875         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
18876         boolean parameters.  Use emit_jump_insn when emitting a pop
18877         instruction containing a return insn.
18878         (push): Use 'true' rather than '1' as second parameter to F.
18879         (h8300_expand_prologue): Likewise.
18880         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
18881         (h8300_expand_epilogue): Likewise.
18883 2010-02-15  Richard Guenther  <rguenther@suse.de>
18885         PR middle-end/43068
18886         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
18887         if that is zero.
18889 2010-02-15  Nick Clifton  <nickc@redhat.com>
18891         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
18892         delta.
18894 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
18896         * intl.c (fake_ngettext): New function.
18897         * intl.h (fake_ngettext): Declare.
18898         (ngettext): Define macro.
18899         * collect2.c (notice_translated): New function.
18900         (main): Use notice_translated and ngettext.
18901         * collect2.h (notice_translated): Declare.
18903 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
18905         * reorg.c (delete_computation): Comment fixes.
18906         * caller-save.c (setup_save_areas): Idem.
18907         * sel-sched-dump.c (dump_lv_set): Idem.
18908         * rtl.def: Idem.
18910 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18912         * config/s390/s390.c (s390_sched_init): New function.
18913         (TARGET_SCHED_INIT): Target hook defined.
18915 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
18916             Jack Howarth  <howarth@bromo.med.uc.edu>
18917             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18919         PR target/42982
18920         Partial revert of unintended change in fix for PR41605.
18921         * config/darwin.h: Fix typo.
18922         * config/darwin9.h: Same.
18924 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
18926         * c-pch.c (pch_init): Clear v.
18928 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18930         PR middle-end/42930
18931         * graphite-scop-detection.c (graphite_can_represent_scev): Call
18932         graphite_can_represent_init for MULT_EXPR.
18934 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18936         PR middle-end/42914
18937         PR middle-end/42530
18938         * graphite-sese-to-poly.c (remove_phi): New.
18939         (translate_scalar_reduction_to_array): Call remove_phi.
18941 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18943         PR middle-end/42771
18944         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
18945         * graphite-clast-to-gimple.h (gloog): Update declaration.
18946         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
18947         * graphite-poly.h (struct poly_bb): Add missing comments.
18948         (struct scop): Add poly_scop_p field.
18949         (POLY_SCOP_P): New.
18950         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
18951         * graphite.c (graphite_transform_loops): Build the polyhedral
18952         representation for each scop before code generation.
18953         * sese.c (rename_variables_in_operand): Removed.
18954         (rename_variables_in_expr): Return the renamed expression.
18955         (rename_sese_parameters): New.
18956         * sese.h (rename_sese_parameters): Declared.
18958 2010-02-11  Richard Guenther  <rguenther@suse.de>
18960         PR tree-optimization/42998
18961         * tree-ssa-pre.c (create_expression_by_pieces): Treat
18962         POINTER_PLUS_EXPR properly.
18964 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18965             Changpeng Fang  <changpeng.fang@amd.com>
18967         PR middle-end/40886
18968         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
18969         the cost of an IV candidate when the IV is used in a test against zero.
18971         * gcc.dg/tree-ssa/ivopts-3.c: New.
18973 2010-02-11  Richard Guenther  <rguenther@suse.de>
18975         PR lto/41664
18976         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
18977         pointer-vs-decl case by swapping refs.  Handle some cases
18978         of pointer-vs-decl disambiguations more conservatively.
18979         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
18980         to false after expanding.
18982 2010-02-11  Richard Guenther  <rguenther@suse.de>
18984         PR driver/43021
18985         * gcc.c (process_command): Handle LTO file@offset case more
18986         appropriately.
18988 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
18990         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
18991         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
18992         of DEBUG_INSNs.
18993         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
18995         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
18996         if MEM's mode size isn't DWARF2_ADDR_SIZE.
18997         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
18998         Optimize eq/ne comparisons when both arguments are known to be
18999         zero-extended.
19000         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
19001         Don't mask operands unnecessarily if they are known to be already
19002         zero-extended.
19004 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
19006         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
19007         instead of loop.
19009 2010-02-10  Richard Guenther  <rguenther@suse.de>
19011         PR tree-optimization/43017
19012         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
19013         for wrapping signed arithmetic.
19015 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
19017         PR debug/43010
19018         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
19019         if no debug info should be emitted for it.
19021 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
19023         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
19024         note when flag_exceptions is set.
19026 2010-02-10  Duncan Sands  <baldrick@free.fr>
19028         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
19030 2010-02-10  Richard Guenther  <rguenther@suse.de>
19032         PR c/43007
19033         * tree.c (get_unwidened): Handle constants.
19034         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
19036 2010-02-10  Martin Jambor  <mjambor@suse.cz>
19038         PR lto/42985
19039         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
19040         check for variable argument counts independently.
19042 2010-02-10  Christian Bruel  <christian.bruel@st.com>
19044         PR target/42841
19045         * config/sh/sh.c (find_barrier): Increase length for non delayed
19046         conditional branches.
19048 2010-02-10  Christian Bruel  <christian.bruel@st.com>
19050         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
19052 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
19054         * builtins.c (set_builtin_user_assembler_name): Also handle
19055         ffs if int is smaller than word.
19057 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
19059         PR middle-end/42973
19060         * ira-conflicts.c (get_dup): Remove.
19061         (process_reg_shuffles): Add new parameter.  Use it as an
19062         additional guard for copy generation.
19063         (add_insn_allocno_copies): Rewrite.
19065 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
19067         * common.opt (fsched2-use-traces): Preserved for backward
19068         compatibility.
19069         * doc/invoke.texi: Remove the documentation about option
19070         -fsched2-use-traces.
19071         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
19072         flag_sched2_use_traces.
19073         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
19074         the backward compatibility flag section.
19076 2010-02-09  Richard Guenther  <rguenther@suse.de>
19078         PR tree-optimization/43008
19079         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
19080         make HEAP variables initialized from global memory if they
19081         are not known builtin functions.
19082         (find_func_aliases): Adjust.
19084 2010-02-09  Richard Guenther  <rguenther@suse.de>
19086         PR tree-optimization/43000
19087         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
19088         arithmetic manually.
19090 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
19092         PR tree-optimization/42931
19093         * tree-loop-linear.c (try_interchange_loops): Don't call
19094         double_int_mul if estimated_loop_iterations failed.
19096 2010-02-08  Martin Jambor  <mjambor@suse.cz>
19098         PR middle-end/42898
19099         * tree-sra.c (build_accesses_from_assign): Do not mark in
19100         should_scalarize_away_bitmap if stmt has volatile ops.
19101         (sra_modify_assign): Do not process assigns piecemeal if if stmt
19102         has volatile ops.
19104 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
19106         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
19108 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
19110         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
19111         before the pattern.
19113 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
19115         PR middle-end/42946
19116         * df-core.c (df_finish_pass): Change type of saved_flags to int.
19118 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
19120         PR middle-end/42988
19121         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
19122         to unknown_dependence.
19123         (graphite_legal_transform_dr): Handle the unknown_dependence.
19124         (graphite_carried_dependence_level_k): Same.
19126 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
19128         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
19130 2010-02-07  Richard Guenther  <rguenther@suse.de>
19132         PR middle-end/42991
19133         * expr.c (get_inner_reference): Always initialize *pbitsize.
19135 2010-02-07  Richard Guenther  <rguenther@suse.de>
19137         PR middle-end/42956
19138         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
19139         new ARRAY_REFs on variable size element or minimal index arrays.
19140         Complete.
19141         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
19142         gimple_fold_indirect_ref.
19144 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
19146         PR target/42957
19147         * arm.c (arm_override_options): Just return if the user has specified
19148         an invalid fpu name.
19150 2010-02-03  Jason Merrill  <jason@redhat.com>
19152         PR c++/42870
19153         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
19154         i386_pe_maybe_record_exported_symbol.
19156 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
19158         PR target/42924
19159         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19160         (pa_delegitimize_address): New function.
19162 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
19164         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
19165         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
19167 2010-02-05  Richard Guenther  <rguenther@suse.de>
19169         PR lto/42762
19170         * lto-streamer-in.c (get_resolution): Deal with references
19171         to undefined functions.
19173 2010-02-05  Richard Guenther  <rguenther@suse.de>
19175         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
19176         (fold_const_aggregate_ref): Likewise.
19177         (ccp_fold_stmt): Substitute loads.
19178         (maybe_fold_reference): Verify types before substituting.
19179         Unshare properly.
19180         (fold_gimple_assign): Unshare properly.
19181         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
19183 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
19185         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
19186         for rs6000_gen_cell_microcode.
19188 2010-02-04  Richard Guenther  <rguenther@suse.de>
19190         PR rtl-optimization/42952
19191         * dse.c (const_or_frame_p): Remove MEM handling.
19193 2010-02-04  Nick Clifton  <nickc@redhat.com>
19195         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19196         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
19197         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
19198         (mn10300_asm_output_mi_thunk): New function.
19199         (mn10300_can_output_mu_thunk): New function.
19200         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
19201         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
19202         (FUNCTION_ARG): Delete incorrect comment.
19204 2010-02-03  Jason Merrill  <jason@redhat.com>
19206         PR c++/40138
19207         * fold-const.c (operand_equal_p): Handle erroneous types.
19209 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19211         * config/h8300/h8300.md (can_delay): Fix attibute condition.
19213 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
19215         PR rtl-optimization/42941
19216         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
19217         of xmalloc.
19219 2010-02-03  Jason Merrill  <jason@redhat.com>
19221         PR c++/35652
19222         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
19224 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
19226         PR debug/42896
19227         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
19228         (cselib_reset_table): Renamed from...
19229         (cselib_reset_table_with_next_value): ... this.
19230         (cselib_get_next_uid): Renamed from...
19231         (cselib_get_next_unknown_value): ... this.
19232         * cselib.c (next_uid): Renamed from...
19233         (next_unknown_value): ... this.
19234         (cselib_clear_table): Adjust.
19235         (cselib_reset_table): Adjust.  Renamed from...
19236         (cselib_reset_table_with_next_value): ... this.
19237         (cselib_get_next_uid): Adjust.  Renamed from...
19238         (cselib_get_next_unknown_value): ... this.
19239         (get_value_hash): Use hash.
19240         (cselib_hash_rtx): Likewise.
19241         (new_cselib_val): Adjust.  Set and dump uid.
19242         (cselib_lookup_mem): Pass next_uid as hash.
19243         (cselib_subst_to_values): Likewise.
19244         (cselib_log_lookup): Dump uid.
19245         (cselib_lookup): Pass next_uid as hash.  Adjust.
19246         (cselib_process_insn): Adjust.
19247         (cselib_init): Initialize next_uid.
19248         (cselib_finish): Adjust.
19249         (dump_cselib_table): Likewise.
19250         * dse.c (canon_address): Dump value uid.
19251         * print-rtl.c (print_rtx): Print value uid.
19252         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
19253         (dvuid): New type.
19254         (dv_uid): New function, sort of renamed from...
19255         (dv_htab_hash): ... this, reimplemented in terms of it and...
19256         (dv_uid2hash): ... this.  New.
19257         (variable_htab_eq): Drop excess assertions.
19258         (tie_break_pointers): Removed.
19259         (canon_value_cmp): Compare uids.
19260         (variable_post_merge_New_vals): Print uids.
19261         (vt_add_function_parameters): Adjust.
19262         (vt_initialize): Reset table.  Adjust.
19264 2010-02-03  Richard Guenther  <rguenther@suse.de>
19266         PR tree-optimization/42944
19267         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
19268         (call_may_clobber_ref_p_1): Likewise.  Properly handle
19269         malloc and calloc clobbering errno.
19271 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
19273         * doc/invoke.texi: Fix name of sched1 dump.
19275         * opts.c (decode_options): Set flag_tree_switch_conversion
19276         only conditionally on optimize >= 2.
19278         * gcse.c: Assorted comment fixes in pass description.
19280 2010-02-03  Anthony Green  <green@moxielogic.com>
19282         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
19283         nop padding in order to maintain alignment of storage location of
19284         target function address.
19285         (moxie_trampoline_init): Store target function address at newly
19286         aligned location.
19287         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
19288         to 32.
19289         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
19291 2010-02-03  Richard Guenther  <rguenther@suse.de>
19293         PR middle-end/42927
19294         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
19296 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19298         * config.gcc: Reenable check for obsolete targets.
19299         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
19300         mips-sgi-irix6.[0-4]*.
19302 2010-02-02  Nick Clifton  <nickc@redhat.com>
19304         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
19305         constant size of 4 as being the same as 0.
19306         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
19307         can take values in the range 0..4.
19309 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
19311         PR java/41991
19312         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
19313         as _darwin10_Unwind_FindEnclosingFunction().
19314         * libgcc-libsystem.ver: New.
19316 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
19318         PR target/41399
19319         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
19320         implicitly set registers.
19322 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
19324         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
19325         (arm_override_options): Allow automatic selection of the thread
19326         pointer register if thumb2.
19327         (legitimize_pic_address): Improve code sequences for Thumb2.
19328         (arm_call_tls_get_addr): Likewise.
19329         (legitimize_tls_address): Likewise.
19330         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
19331         (pic_load_addr_32bit): ... this.  New named pattern.
19332         * thumb2.md (pic_load_addr_thumb2): Delete.
19333         (pic_load_dot_plus_four): Delete.
19334         (tls_load_dot_plus_four): New named pattern.
19336 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19338         PR libgomp/29986
19339         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
19340         Document fix for TLS bug.
19342 2010-01-31  Richard Guenther  <rguenther@suse.de>
19344         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
19345         conservatively correct.
19347 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19349         PR target/42850
19350         Revert:
19351         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19353         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19355 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19357         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
19359 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
19361         * config.gcc: Adjust order of makefile fragments for mingw targets.
19363 2010-01-31  Richard Guenther  <rguenther@suse.de>
19365         PR middle-end/42898
19366         * gimplify.c (gimplify_init_constructor): For volatile LHS
19367         initialize a temporary.
19369 2010-01-31  Matthias Klose  <doko@ubuntu.com>
19371         * configure.ac: Fix __stack_chk_fail check for cross builds configured
19372         --with-headers
19373         * configure: Regenerate.
19375 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
19377         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19378         the same alias set and their sizes different constantness.
19379         (aliasing_component_refs_p): Revert 2009-10-24 change.
19381 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19383         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
19384         unused.
19386 2010-01-29  Richard Guenther  <rguenther@suse.de>
19388         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
19389         Assert we successfully updated the call.
19391 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
19393         PR rtl-optimization/42889
19394         * df.h (df_set_bb_dirty_nonlr): New prototype.
19395         * df-core.c (df_set_bb_dirty_nonlr): New function.
19396         * df-scan.c (df_insn_rescan): Call it instead of
19397         df_set_bb_dirty for DEBUG_INSNs.
19399 2010-01-29  Richard Guenther  <rguenther@suse.de>
19401         PR middle-end/37448
19402         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
19403         quadratic behavior in most cases.
19405 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
19407         PR target/42891
19408         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
19409         in the call to gen_x86_movsicc_0_m1.
19411 2010-01-28  Richard Guenther  <rguenther@suse.de>
19413         PR tree-optimization/42871
19414         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
19416 2010-01-28  Richard Guenther  <rguenther@suse.de>
19418         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
19419         into call arguments.
19421 2010-01-28  Richard Guenther  <rguenther@suse.de>
19423         PR middle-end/42883
19424         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
19425         the forwarder if the destination is an EH landing pad.
19427 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
19429         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
19430         block list passed to gimple_duplicate_sese_tail.
19431         (parallelize_loops): Avoid parallelization when the function
19432         has_nonlocal_label.
19433         Avoid parallelization when the preheader is IRREDUCIBLE.
19434         Try to optimize when estimated_loop_iterations_int is unresolved.
19435         Add the loop's location to the dump file.
19436         * tree-cfg.c (add_phi_args_after_redirect): Remove.
19437         (gimple_duplicate_sese_tail): Remove the check for the latch.
19438         Redirect nexits to the exit block.
19439         Remove handling of the incoming edges to the latch.
19440         Redirect the backedge from the copied latch to the exit bb.
19442 2010-01-28  Michael Matz  <matz@suse.de>
19444         PR target/42881
19445         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
19446         Wrap force_reg into a sequence, emit it before user.
19448 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
19450         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
19451         (arm_rev): New.
19452         (arm_legacy_rev): Likewise.
19453         (thumb_legacy_rev): Likewise.
19455 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
19457         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
19458         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
19459         on MEM's address failed, try avoid_constant_pool_reference and
19460         recurse if it returned something different.
19461         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
19462         address, try avoid_constant_pool_reference and recurse if it
19463         returned something different.
19464         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
19465         address and avoid_constant_pool_reference returned something
19466         different, don't set have_address.
19468 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
19470         PR debug/42861
19471         * var-tracking.c (val_store): Add modified argument, obey it.
19472         Adjust callers.
19473         (count_uses): Move down logging of main.
19474         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
19475         don't need resolution.
19476         (emit_notes_in_bb): Likewise.
19478 2010-01-27  Richard Guenther  <rguenther@suse.de>
19480         PR middle-end/42878
19481         * tree-inline.c (remap_decl): Delay remapping of SSA name
19482         default definitions until we need them.
19484 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
19486         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19487         (rs6000_delegitimize_address): New function.
19489         * config/s390/s390.c (s390_delegitimize_address): Call
19490         delegitimize_mem_from_attrs.
19492         PR middle-end/42874
19493         * tree-inline.c (cannot_copy_type_1): Removed.
19494         (copy_forbidden): Don't forbid copying of functions containing
19495         records/unions with variable length fields.
19497 2010-01-27  Christian Bruel  <christian.bruel@st.com>
19499         Revert:
19500         PR target/42841
19501         * config/sh/sh.c (find_barrier): Increase length for non delayed
19502         conditional branches.
19504 2010-01-27  Matthias Klose  <doko@ubuntu.com>
19506         * configure.ac (gnu-unique-object): Fix ldd version check.
19507         * configure: Regenerate.
19509 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19511         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
19512         HAVE_GNU_AS value.
19513         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
19514         Test for HAVE_GNU_AS value.
19516 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19518         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
19519         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
19520         INT64_TYPE): Define.
19521         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
19522         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19523         INT_LEAST64_TYPE): Define.
19524         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
19525         UINT_LEAST64_TYPE): Define.
19526         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
19527         INT_FAST64_TYPE): Define.
19528         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19529         UINT_FAST64_TYPE): Define.
19530         (INTMAX_TYPE, UINTMAX_TYPE): Define.
19531         (INTPTR_TYPE, UINTPTR_TYPE): Define.
19532         (SIG_ATOMIC_TYPE): Define.
19534 2010-01-26  Richard Guenther  <rguenther@suse.de>
19536         * df-scan.c (df_scan_set_bb_info): Remove assert.
19537         (df_insn_rescan_debug_internal): Merge asserts.
19538         (df_install_ref): Likewise.
19539         (df_mark_reg): Use bitmap_set_range.
19540         (df_hard_reg_used_p): Remove assert.
19541         (df_hard_reg_used_count): Likewise.
19543 2010-01-26  Richard Guenther  <rguenther@suse.de>
19545         PR rtl-optimization/42685
19546         * web.c (web_main): Ignore DEBUG_INSNs.
19548 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
19550         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
19552         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
19553         Fix types of fndecl and arglist parameters.
19555 2010-01-26  Richard Guenther  <rguenther@suse.de>
19557         PR middle-end/42806
19558         * tree-eh.c (unsplit_eh): Skip debug insns.
19560 2010-01-26  Richard Guenther  <rguenther@suse.de>
19562         PR tree-optimization/42250
19563         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
19565 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
19567         PR fortran/42866
19568         * omp-low.c (expand_omp_sections): Only use single_pred if
19569         l2_bb is single_pred_p.
19571 2010-01-25  Christian Bruel  <christian.bruel@st.com>
19573         PR target/42841
19574         * config/sh/sh.c (find_barrier): Increase length for non delayed
19575         conditional branches.
19576         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
19578 2010-01-24  David S. Miller  <davem@davemloft.net>
19580         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
19581         define if not using GAS.
19582         * config/sparc/sparc.c (sparc_elf_asm_named_section):
19583         Likewise.  Delete SECTION_MERGE code, which is only applicable
19584         when using GAS.
19586 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
19588         PR c++/42748
19589         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
19590         mangling of va_list in system headers.
19592 2010-01-23  Toon Moene  <toon@moene.org>
19594         * tree-predcom.c (combine_chains): Return NULL, not false.
19596 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
19598         * tree-loop-distribution.c (distribute_loop): Fix declaration and
19599         initialization of variable res to agree with return type.
19601 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
19603         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
19604         * tree-sra.c: Add include of expr.h.
19606 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
19608         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
19609         insert the debug stmt on the single non-EH edge from the stmt.
19611 2010-01-22  Richard Henderson  <rth@redhat.com>
19613         PR tree-opt/42833
19614         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
19615         the RHS until after generate_subtree_copies has insertted its
19616         code before the current statement.
19618 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
19620         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
19622         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
19624 2010-01-21  Martin Jambor  <mjambor@suse.cz>
19626         PR tree-optimization/42585
19627         * tree-sra.c (struct access): New field grp_total_scalarization.
19628         (dump_access): Dump the new field.
19629         (should_scalarize_away_bitmap): New variable.
19630         (cannot_scalarize_away_bitmap): Likewise.
19631         (sra_initialize): Allocate new bitmaps.
19632         (sra_deinitialize): Free new bitmaps.
19633         (create_access_1): New function.
19634         (create_access): Parts moved to create_access_1.
19635         (type_consists_of_records_p): New function.
19636         (completely_scalarize_record): Likewise.
19637         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
19638         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
19639         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
19640         access.
19641         (analyze_all_variable_accesses): Completely scalarize small eligible
19642         records.
19644 2010-01-21  Martin Jambor  <mjambor@suse.cz>
19646         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
19648 2010-01-21  Andrew Haley  <aph@redhat.com>
19650         * gcc.c (process_command): Move lang_specific_driver before
19651         setting cc_libexec_prefix.
19653 2010-01-21  Richard Guenther  <rguenther@suse.de>
19655         PR middle-end/19988
19656         * fold-const.c (negate_expr_p): Pretend only negative
19657         real constants are easily negatable.
19659 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
19660             Jason Merrill  <jason@redhat.com>
19662         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
19663         (TYPE_TRANSPARENT_AGGR): this, for union and record.
19664         * calls.c (initialize argument_information): Handle it.
19665         * c-common.c (handle_transparent_union_attribute): Use new name.
19666         * c-decl.c (finish_struct): Ditto.
19667         * c-typeck.c (type_lists_compatible_p): Ditto.
19668         (convert_for_assignment): Use new name and also handle record.
19669         * function.c (aggregate_value_p): Handle it.
19670         (pass_by_reference): Ditto.
19671         (assign_parm_data_types): Ditto.
19672         * print-tree.c (print_node): Ditto.
19673         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
19674         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
19675         * tree.c (first_field): New fn.
19677 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
19679         PR target/42818
19680         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
19681         even when linking statically, for now.
19683 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
19685         PR debug/42715
19686         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
19687         without a cselib val.
19688         (count_uses): Accept MO_VAL_SET with no val on stores.
19689         (add_stores): Likewise.
19691 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
19693         * var-tracking.c (check_value_val): Add a compile time assertion.
19694         (dv_is_decl_p): Simplify.
19695         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
19696         gcc_assert if ENABLE_CHECKING.
19698 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
19700         PR debug/42782
19701         * var-tracking.c: Include tree-flow.h.
19702         (mem_dies_at_call): New.
19703         (dataflow_set_preserve_mem_locs): Use it.
19704         (dataflow_set_remove_mem_locs): Likewise.
19705         (dump_var): Renamed from dump_variable.  Adjust all callers.
19706         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
19707         * Makefile.in (var-tracking.o): Adjust deps.
19709 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
19711         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
19713 2010-01-20  Richard Guenther  <rguenther@suse.de>
19715         PR tree-optimization/42717
19716         * tree-ssa-dce.c (get_live_post_dom): Remove.
19717         (forward_edge_to_pdom): Take an arbitrary edge to copy
19718         degenerate PHI args from.
19719         (remove_dead_stmt): Use the first post-dominator even if it
19720         does not contain live statements as redirection destination.
19722 2010-01-20  Richard Guenther  <rguenther@suse.de>
19724         * tree-inline.c (estimate_num_insns): Handle EH builtins.
19726 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
19728         * sel-sched.c (create_speculation_check): Remove set but not used
19729         variable twin.
19730         (try_transformation_cache): Remove set but not used variable ds.
19731         (calculate_privileged_insns): Remove set but not used variables
19732         cur_insn and min_spec_insn.
19733         (find_best_expr): Remove set but not used variable avail_n.
19734         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
19735         variable e.
19736         * cgraphunit.c (assemble_thunk): Remove set but not used variable
19737         false_label.
19738         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
19739         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
19740         new_scop_exit_edge.
19742 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
19744         PR bootstrap/42786
19745         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
19746         cpu types.  Add support for *-sse3 cpu types.
19747         (x86_64-*-*): Ditto.
19749 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
19751         PR middle-end/42803
19752         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
19753         argument, call initializer_constant_valid_p_1 instead of
19754         initializer_constant_valid_p, pass CACHE to it, return NULL
19755         immediately if first call returns NULL.
19756         (initializer_constant_valid_p_1): New function.
19757         (initializer_constant_valid_p): Use it.
19759 2010-01-20  Thomas Quinot  <quinot@adacore.com>
19761         * tree.def (PLACEHOLDER_EXPR): Fix comment.
19763 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
19765         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
19766         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
19767         (loc_list_from_tree): Don't handle unsigned division.  Handle
19768         signed modulo using DW_OP_{over,over,div,mul,minus}.
19769         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
19770         modulo instead of signed.
19772 2010-01-20  DJ Delorie  <dj@redhat.com>
19774         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
19775         (Fpa): Pass it
19776         (h8300_emit_stack_adjustment): Propogate it.
19777         (push): Pass it.
19778         (h8300_expand_prologue): Likewise.
19779         (h8300_expand_epilogue): Likewise.
19781 2010-01-19  Michael Matz  <matz@suse.de>
19783         PR tree-optimization/41783
19784         * tree-data-ref.c (toplevel): Include flags.h.
19785         (dump_data_dependence_relation):  Also dump the inputs if the
19786         result will be unknown.
19787         (split_constant_offset_1): Look through some conversions.
19788         * tree-predcom.c (determine_roots_comp): Restart a new chain if
19789         the offset from last element is too large.
19790         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
19791         (reassociate_to_the_same_stmt): Handle vector registers.
19792         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
19793         (e.g. conversions).
19794         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
19795         wide_prolog_niters argument, emit widening instructions.
19796         (vect_do_peeling_for_alignment): Adjust caller, use widened
19797         variant of the iteration cound.
19798         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
19800 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19802         PR target/38697
19803         * config/arm/neon-testgen.m (emit_automatics): New parameter
19804         features. Adjust for Fixed_return_reg feature.
19805         (test_intrinsic): Call emit_automatics with new feature.
19806         * config/arm/neon.ml: Update copyright years.
19807         (features): New Fixed_return_reg feature.
19808         (ops): Update feature for Vget_low.
19810 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
19812         PR tree-optimization/42719
19813         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
19814         stmt uses.
19816         PR debug/42728
19817         * fwprop.c (all_uses_available_at): Return false if def_set dest
19818         is a REG that is used in def_insn.
19820 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
19822         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
19824         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
19825         Add argument names.
19827         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
19829         * target.h (struct gcc_target) <secondary_reload>: Change type
19830         of last argument to secondary_reload_info *.
19832 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
19834         PR target/42774
19835         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
19836         memory references with unaligned offsets.  Remove CQImode handling.
19837         (unaligned_memory_operand): Return 1 for memory references with
19838         unaligned offsets.  Remove CQImode handling.
19840 2010-01-18  Richard Guenther  <rguenther@suse.de>
19842         PR middle-end/39954
19843         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
19844         builtin calls.
19846 2010-01-18  Richard Guenther  <rguenther@suse.de>
19848         PR tree-optimization/42781
19849         * tree-ssa-structalias.c (find_what_var_points_to): Skip
19850         restrict processing only if the original variable was artificial.
19852 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
19854         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
19855         find number of popped argument bytes.
19857         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
19858         Fix the text that describes the return value for invalid insns.
19860         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
19862         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
19863         Clarify what 'cost of the -dependence' is.  Fix quoting.
19865         * toplev.c (default_get_pch_validity): Rename argument to "sz".
19866         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
19868 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
19870         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19871         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
19873 2010-01-17  Richard Guenther  <rguenther@suse.de>
19875         PR middle-end/42248
19876         * function.c (split_complex_args): Take a VEC to modify.
19877         (assign_parms_augmented_arg_list): Build a VEC instead of
19878         a chain of PARM_DECLs.
19879         (assign_parms_unsplit_complex): Take a VEC of arguments.
19880         Do not fixup unmodified parms.
19881         (assign_parms): Deal with the VEC.
19882         (gimplify_parameters): Likewise.
19884 2010-01-17  Richard Guenther  <rguenther@suse.de>
19886         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
19887         node existence check.
19888         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
19889         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
19890         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
19891         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
19892         (gimple_execute_on_growing_pred): Likewise.
19894 2010-01-17  Richard Guenther  <rguenther@suse.de>
19896         PR tree-optimization/42773
19897         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
19898         (compute_antic_aux): Likewise.
19899         (compute_partial_antic_aux): Likewise.
19901 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
19903         PR debug/42767
19904         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
19905         and US_TRUNCATE.
19907 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
19909         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
19910         appearance.
19912         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
19913         Fix markup for strict argument.
19915         (TARGET_SCHED_REORDER2): Fix argument types.
19917         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
19918         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
19920         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
19921         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
19923         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
19924         Add argument name.
19926         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
19927         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
19928         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
19929         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
19930         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
19932         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
19934         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
19936         (TARGET_ASM_RELOC_RW_MASK): Add return type.
19937         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
19939         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
19941         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
19942         Use prototype.
19944         (TARGET_ASM_NAMED_SECTION): Fix argument list.
19946         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
19947         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
19949         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
19951         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
19953         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
19954         referring to it.  Fix language.
19956         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
19958         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
19960         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
19962         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
19964         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
19965         '@var{stream}.  Remove stray 'and'.
19967         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
19969         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
19971         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
19973         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
19974         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
19976         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
19977         Fix description of return value.
19978         Rename argument "sz" to "len."
19980         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
19981         Clarify meaning of 'true' return value.
19983         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
19985         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
19986         rep_mode versus mode_rep.
19988         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
19990         (TARGET_BUILTIN_DECL): Fix name.
19992         (TARGET_COMMUTATIVE_P): Fix type of first argument.
19994         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
19996         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
19998         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
20000         (TARGET_RELAXED_ORDERING): Use @deftypevr.
20002         (TARGET_GET_DRAP_RTX): Note that this is a hook.
20003         Clarify language.
20005         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
20006         Rename argument tm_fn to md_fn.
20008         (TARGET_OPTION_PRINT): Fix argument list.
20010 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
20012         PR target/42664
20013         * config/i386/i386.c (ix86_fixup_binary_operands):
20014         Revert FMA4 fixup of operands.
20016 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20018         PR gcc/42525
20019         * Makefile.in (write_entries_to_file, install-plugin):
20020         Use \012 instead of \n with tr.
20022 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
20024         * configure.ac (HAVE_AS_REF): New C macro.
20025         * configure: Regenerate.
20026         * config.in: Likewise.
20027         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
20028         if HAVE_AS_REF.
20029         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
20030         if HAVE_AS_REF.
20032 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
20034         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
20036         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
20038         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
20040         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
20042         (TARGET_IN_SMALL_DATA_P): Fix argument type.
20044         (TARGET_BINDS_LOCAL_P): Fix argument type.
20046         (TARGET_ASM_FILE_END): Use prototype.
20048         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
20050         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
20052         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
20054         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
20056         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
20057         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
20059         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
20060         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
20062         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
20063         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
20064         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
20065         (TARGET_ADDR_SPACE_CONVERT): Likewise.
20067         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
20069         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
20071         (TARGET_INIT_BUILTINS): Use prototype.
20073         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
20074         Put 'const char *' in braces.  Fix parameter types.
20075         (TARGET_INVALID_CONVERSION): Fix parameter types.
20076         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
20077         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
20079         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
20080         Fix argument type.
20082         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
20084         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
20086 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
20088         * doc/tm.texi (TARGET_HELP): Fix return type.
20090         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
20091         in braces.  Fix argument types.
20093         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
20095         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
20097         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
20099         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
20100         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
20102         (TARGET_MANGLE_TYPE): Fix argument types.
20104         (TARGET_IRA_COVER_CLASSES): Use prototype.
20106         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
20108         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
20110         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
20112         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
20114         (TARGET_CALLEE_COPIES): Fix argument types.
20116         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
20118         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
20120         (TARGET_FUNCTION_VALUE): Fix argument types.
20122         (TARGET_RETURN_IN_MSB): Fix argument type.
20124         (TARGET_RETURN_IN_MEMORY): Fix argument types.
20126         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
20128         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
20130         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
20131         agree with return type.
20133         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
20135 2010-01-15  Jing Yu  <jingyu@google.com>
20137         PR rtl-optimization/42691
20138         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
20139         a pseudo to a constant and are merged, and adjust comments.
20141 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
20143         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
20145 2010-01-15  Richard Guenther  <rguenther@suse.de>
20147         PR middle-end/42739
20148         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
20149         labels of computed or non-local gotos to the destination.
20150         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
20151         landing pad label is the first label.
20153 2010-01-15  Richard Guenther  <rguenther@suse.de>
20155         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
20157 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20159         PR target/42747
20160         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
20161         to allow generation of the xssqrtdp instruction on power7.
20162         (sqrtdf2_fpr): Ditto.
20164 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
20166         PR middle-end/42674
20167         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
20168         functions with noreturn attribute.
20170         PR c++/42608
20171         * varasm.c (declare_weak): Add weak attribute to decl if it
20172         doesn't have one already.
20173         (assemble_external): Only add decls to weak_decls if they also
20174         have weak attribute.
20176 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
20178         * var-tracking.c (var_reg_delete): Don't delete the association
20179         between REGs and values or one-part variables if the register
20180         isn't clobbered.
20182 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
20184         PR debug/42657
20185         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
20186         because its first operand is a non-localized variable.
20188 2010-01-14  Martin Jambor  <mjambor@suse.cz>
20190         PR tree-optimization/42706
20191         * tree-sra.c (encountered_recursive_call): New variable.
20192         (encountered_unchangable_recursive_call): Likewise.
20193         (sra_initialize): Initialize both new variables.
20194         (callsite_has_enough_arguments_p): New function.
20195         (scan_function): Call decl and flags check only for IPA-SRA, check
20196         whether there is a recursive call and whether it has enough arguments.
20197         (all_callers_have_enough_arguments_p): New function.
20198         (convert_callers): Look for recursive calls only when
20199         encountered_recursive_call is set.
20200         (ipa_early_sra): Bail out either if
20201         !all_callers_have_enough_arguments_p or
20202         encountered_unchangable_recursive_call.
20204 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20206         * sel-sched.c: Add 2010 to copyright years.
20207         * sel-sched-ir.c: Likewise.
20208         * sel-sched-ir.h: Likewise.
20210 2010-01-14  Martin Jambor  <mjambor@suse.cz>
20212         PR tree-optimization/42714
20213         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
20214         constructors specially.
20216 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20218         * config/i386/drivers-i386.c (detect_caches_intel):
20219         Add l2sizekb parameter and fill in.
20220         (host_detect_local_cpu): Add l2sizekb, fill in.
20221         Add Atom small cache heuristic.
20223 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20225         * config/i386/drivers-i386.c (detect_caches_cpuid4):
20226         Add level3 parameter and fill in.
20227         (detect_caches_intel): Handle level3 cache.
20229 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20231         * config/i386/drivers-i386.c (host_detect_local_cpu):
20232         Fix core duo detection.
20234 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20236         * config/i386/drivers-i386.c (host_detect_local_cpu):
20237         Fix Atom detection.
20239 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20241         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
20242         (rs6000_variable_issue_1): this.  Use...
20243         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
20245 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20247         * sel-sched-ir.c (sel_restore_other_notes): Rename to
20248         sel_restore_notes.  Update all callers.  Call reemit_notes
20249         for all insns.
20251 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20253         PR rtl-optimization/42246
20254         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
20255         loops.
20257 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20259         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
20260         all successors is the same as number of successors in current region.
20262 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20264         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
20265         to rename is not separable.  Otherwise check that its LHS is not NULL.
20267 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20269         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
20271 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20273         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
20274         available registers when failed to discover LHS register class.
20275         Fix indentation.  Update comment.
20277 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20278             Alexander Monakov  <amonakov@ispras.ru>
20280         PR rtl-optimization/42389
20281         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
20282         to can_issue_more.
20283         (advance_state_on_fence): Likewise.
20284         (sel_target_adjust_priority): Print debug output only when
20285         sched_verbose >= 4, not 2.
20286         (get_expr_cost): Do not issue all unique insns on the next cycle.
20287         (fill_insns): Initialize can_issue_more from the value saved
20288         with the fence.
20289         * sel-sched-ir.c (flist_add): New parameter issue_more.
20290         Init FENCE_ISSUE_MORE with it.
20291         (merge_fences): Likewise.
20292         (init_fences): Update call to flist_add.
20293         (add_to_fences, add_clean_fence_to_fences)
20294         (add_dirty_fence_to_fences): Likewise.
20295         (move_fence_to_fences): Update call to merge_fences.
20296         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
20297         sched groups.
20298         * sel-sched-ir.h (struct _fence): New field issue_more.
20299         (FENCE_ISSUE_MORE): New accessor macro.
20301 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20303         PR rtl-optimization/42388
20304         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
20305         that have no predecessors nor successors.  Do not call move_bb_info
20306         for empty blocks outside of current region.
20308 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20310         PR rtl-optimization/42294
20311         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
20312         * sel-sched.c (move_exprs_to_boundary): Transitively add all
20313         originators' originators.
20315 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20317         PR rtl-optimization/39453
20318         PR rtl-optimization/42246
20319         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
20320         for pipelining_p.
20321         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
20323 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20324             Alexander Monakov  <amonakov@ispras.ru>
20326         PR middle-end/42245
20327         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
20328         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
20329         argument.  Update all callers.
20330         (tidy_control_flow): ... and here.  Recompute topological order
20331         of basic blocks in region if necessary.
20332         (sel_redirect_edge_and_branch): Change return type.  Return true
20333         if topological order might have been invalidated.
20334         (purge_empty_blocks): Export and move from...
20335         * sel-sched.c (purge_empty_blocks): ... here.
20336         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
20337         (maybe_tidy_empty_bb): Delete prototype.
20338         (purge_empty_blocks): Declare.
20340 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20342         PR rtl-optimization/42249
20343         * sel-sched.c (try_replace_dest_reg): When chosen register
20344         and original register is the same, do not bail out early, but
20345         still check all original insns for validity of replacing destination
20346         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
20347         in this case.
20349 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
20351         PR c/42721
20352         Port from no-undefined-overflow branch:
20353         2009-03-09  Richard Guenther  <rguenther@suse.de>
20355         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
20357 2010-01-14  Richard Guenther  <rguenther@suse.de>
20359         PR lto/42665
20360         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
20362 2010-01-14  Ira Rosen  <irar@il.ibm.com>
20364         PR tree-optimization/42709
20365         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
20366         as scalar type in creation of constant vector operand.
20368 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20370         PR testsuite/42414
20371         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
20372         (check-parallel-%): Match `testsuite' directory component only
20373         at the end.
20375 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
20377         PR translation/39521
20378         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
20379         strings with _().
20381 2010-01-13  Richard Guenther  <rguenther@suse.de>
20383         PR tree-optimization/42730
20384         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
20385         offset zero.
20387 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
20389         PR target/pr42542
20390         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
20391         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
20392         them signed.
20394 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
20396         * config/bfin/libgcc-bfin.ver: Regenerate based on current
20397         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
20398         ___umulsi3_highpart.
20400         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
20401         rather than schedule_insns if the pass is enabled.
20403 2010-01-13  Martin Jambor  <mjambor@suse.cz>
20405         PR tree-optimization/42704
20406         * tree-sra.c (sra_modify_assign): Do not delete assignments to
20407         SSA_NAMEs.
20409 2010-01-13  Martin Jambor  <mjambor@suse.cz>
20411         PR tree-optimization/42703
20412         * tree-sra.c (analyze_access_subtree): Check that we can build a
20413         reference to the original data within the aggregate.
20415 2010-01-13  Richard Guenther  <rguenther@suse.de>
20417         PR tree-optimization/42705
20418         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
20420 2010-01-13  Richard Guenther  <rguenther@suse.de>
20422         PR middle-end/42716
20423         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
20425 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
20427         PR debug/41371
20428         * var-tracking.c (values_to_unmark): New variable.
20429         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20430         values_to_unmark vector.  Moved body to...
20431         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
20432         instead queue it into values_to_unmark vector.
20433         (vt_find_locations): Free values_to_unmark vector.
20435 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
20437         * config/s390/s390.c (override_options): Set
20438         default of max-pending-list-length to 256
20440 2010-01-13  Richard Guenther  <rguenther@suse.de>
20442         PR lto/42678
20443         * tree-pass.h (PROP_gimple_lcx): New.
20444         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
20445         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
20446         before the final cleanup_eh.
20447         (dump_properties): Dump PROP_gimple_lcx.
20448         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
20449         (tree_lower_complex_O0): Remove.
20450         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
20451         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
20452         tree_lower_complex, schedule TODO_update_ssa.
20453         * lto-streamer-out.c (output_function): Stream the functions
20454         properties.
20455         * lto-streamer-in.c (input_function): Likewise.
20456         (lto_read_body): Do not override them here.
20458 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
20460         PR c/42708
20461         * c-typeck.c (build_c_cast): Fold value cast to union type before
20462         wrapping it in a CONSTRUCTOR.
20464 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
20466         PR rtl-optimization/42699
20467         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
20468         involved.
20470 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20472         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
20473         SUBTARGET_WARN_UNUSED_SPEC): Move ...
20474         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
20475         SUBTARGET_WARN_UNUSED_SPEC): ... here
20476         * config/mips/iris5.h (LIBGCC_SPEC): Define.
20478 2010-01-12  Julian Brown  <julian@codesourcery.com>
20480         * config/arm/neon-schedgen.ml (Utils): Don't try to
20481         open missing module.
20482         (find_with_result): New.
20484 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
20486         PR debug/42662
20487         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
20488         sharing when canonicalizing ({lt,ge}u (plus a b) b).
20490         PR tree-optimization/42645
20491         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
20492         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
20493         decl_map, set processing_debug_stmt to -1 and return name without
20494         any remapping.
20496 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
20498         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
20499         binutils version, and reword target configuration description.
20501 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
20503         * config/avr/avr.h (LINKER_NAME): Remove.
20505 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
20507         PR target/42416
20508         * config/rs6000/rs6000.c (rs6000_override_options): On targets
20509         that support VSX, warn for -mno-altivec if vsx is not disabled,
20510         and disable vsx.
20512 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
20513             Shujing Zhao  <pearly.zhao@oracle.com>
20515         PR translation/42469
20516         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
20517         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
20518         character between option name and help text.
20519         * c.opt (imultilib): Likewise.
20521 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
20523         * lto-streamer-out.c (output_unreferenced_globals): Output static
20524         variables.
20526 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
20528         PR rtl-optimization/42621
20529         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
20530         optimizing for size.
20531         (duplicate_computed_gotos): Remove now-redundant check.
20533 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
20535         PR target/37454
20536         * configure.ac: Save and restore LDFLAGS and LIBS
20537         * configure: Regenerate.
20539 2010-01-10  Richard Guenther  <rguenther@suse.de>
20541         PR middle-end/42667
20542         * builtins.c (fold_builtin_strlen): Add type argument and
20543         convert the resulting length to it.
20544         (fold_builtin_1): Adjust.
20546 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
20548         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
20549         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
20550         1 insn.
20551         (num_insns_constant_wide): Adjust for that change.
20553 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20555         PR debug/42631
20556         * web.c (union_defs): Add used argument, to combine uses of
20557         uninitialized regs.
20558         (entry_register): Adjust type and tests of used argument.
20559         (web_main): Widen used for new use.  Pass it to union_defs.
20560         * df.h (union_defs): Adjust prototype.
20562 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20564         PR debug/42630
20565         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
20566         uses in new incoming argument.  Free body.
20567         (reset_debug_uses_in_loop): New.
20568         (analyze_insn_to_expand_var): Call the latter if the former found
20569         anything.  Fix whitespace.  Reject invalid dest overlaps before
20570         going through all insns in the loop.
20572 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20574         PR debug/42629
20575         * haifa-sched.c (dying_use_p): Debug insns don't count.
20577 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20579         PR middle-end/42363
20580         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
20581         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
20582         (verify_gimple_call): Reject LHS in noreturn calls.
20584 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20586         PR debug/42604
20587         PR debug/42395
20588         * tree-vect-loop-manip.c (adjust_info): New type.
20589         (adjust_vec): New pointer to vector.
20590         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
20591         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
20592         (slpeel_update_phis_for_duplicate_loop): Use them.
20593         (slpeel_update_phi_nodes_for_guard1): Likewise.
20594         (slpeel_update_phi_nodes_for_guard2): Likewise.
20595         (slpeel_tree_peel_loop_to_edge): Likewise.
20596         (vect_update_ivs_after_vectorizer): Likewise.
20598 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20600         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
20601         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
20603 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20605         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
20606         bogus uninitialized warning.
20608 2010-01-09  Richard Guenther  <rguenther@suse.de>
20610         PR middle-end/42512
20611         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
20612         the evolution is compatible with the initial condition.
20614 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
20616         * gcc.c (process_command): Update copyright notice dates.
20617         * gcov.c (print_version): Likewise.
20618         * gcov-dump.c (print_version): Likewise.
20619         * mips-tfile.c (main): Likewise.
20620         * mips-tdump.c (main): Likewise.
20622 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
20624         PR target/41885
20625         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
20626         (rotlhi3): Delete.
20627         (rotlhi3_8): Delete.
20628         (rotlsi3): Delete.
20629         (rotlsi3_8): Delete.
20630         (rotlsi3_16): Delete.
20631         (rotlsi3_24): Delete.
20632         (rotl<mode>3): New.
20633         (*rotw<mode>3): New.
20634         (*rotb<mode>3): New.
20635         * config/avr/avr.c (avr_rotate_bytes): New function.
20636         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
20638 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
20640         PR target/37454
20641         * configure.ac: Modify -rdynamic check.
20642         * configure: Regenerate.
20644 2010-01-08  DJ Delorie  <dj@redhat.com>
20646         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
20647         register popping order.
20649 2010-01-08  Richard Guenther  <rguenther@suse.de>
20651         PR lto/42528
20652         * c.opt (fsigned-char): Also let LTO handle this option.
20653         (funsigned-char): Likewise.
20655 2010-01-07  Richard Guenther  <rguenther@suse.de>
20657         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
20658         (gimple_op): Likewise.
20659         (gimple_op_ptr): Likewise.
20660         (gimple_assign_set_lhs): Remove gcc_assert.
20661         (gimple_assign_set_rhs1): Likewise.
20662         (gimple_assign_set_rhs2): Likewise.
20663         (gimple_call_set_lhs): Likewise.
20664         (gimple_call_set_fn): Likewise.
20665         (gimple_call_set_fndecl): Likewise.
20666         (gimple_call_fndecl): Likewise.
20667         (gimple_call_return_type): Likewise.
20668         (gimple_call_set_chain): Likewise.
20669         (gimple_call_num_args): Likewise.
20670         (gimple_call_set_arg): Likewise.
20671         (gimple_cond_set_code): Likewise.
20672         (gimple_cond_set_lhs): Likewise.
20673         (gimple_cond_set_rhs): Likewise.
20674         (gimple_cond_set_true_label): Likewise.
20675         (gimple_cond_set_false_label): Likewise.
20676         (gimple_label_set_label): Likewise.
20677         (gimple_goto_set_dest): Likewise.
20678         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
20679         (gimple_debug_bind_get_value): Likewise.
20680         (gimple_debug_bind_get_value_ptr): Likewise.
20681         (gimple_debug_bind_set_var): Likewise.
20682         (gimple_debug_bind_set_value): Likewise.
20683         (gimple_debug_bind_reset_value): Likewise.
20684         (gimple_debug_bind_has_value_p): Likewise.
20685         (gimple_return_retval_ptr): Remove gcc_assert.
20686         (gimple_return_retval): Likewise.
20687         (gimple_return_set_retval): Likewise.
20688         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
20689         (safe_referenced_var_iterator): Remove.
20690         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
20691         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
20692         (fill_referenced_var_vec): Remove.
20693         (first_readonly_imm_use): Remove redundant gcc_assert.
20694         (phi_arg_index_from_use): Combine gcc_asserts.
20695         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
20696         (first_imm_use_stmt): Remove redundant gcc_assert.
20697         * tree-cfg.c (verify_gimple_call): Verify function and chain
20698         operands.  Verify arguments.
20699         (verify_types_in_gimple_stmt): Verify condition code and labels.
20701 2010-01-07  Richard Guenther  <rguenther@suse.de>
20703         PR tree-optimization/42641
20704         * sese.c (rename_map_elt_info): Use the SSA name version, do
20705         not hash pointers.
20707 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
20709         PR tree-optimization/42625
20710         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
20711         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
20713 2010-01-07  Duncan Sands  <baldrick@free.fr>
20715         * Makefile.in (PLUGIN_HEADERS): Add version.h.
20717 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
20719         PR target/42511
20720         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
20721         note itself is not function_invariant_p.
20723 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
20725         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
20726         Do not add the DF_NOTE problem.
20727         * store-motion.c (execute_rtl_store_motion): Likewise.
20729 2010-01-07  Martin Jambor  <mjambor@suse.cz>
20731         PR tree-optimization/42157
20732         * tree-sra.c (compare_access_positions): Stabilize sort if both
20733         accesses have integer types, return zero immediately if they are the
20734         same.
20736 2010-01-06  Richard Henderson  <rth@redhat.com>
20738         PR middle-end/41883
20739         * haifa-sched.c (add_to_note_list): Merge into ...
20740         (concat_note_lists): ... here, and ...
20741         (unlink_other_notes, rm_other_notes): Merge into...
20742         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
20743         NOTE_INSN_EPILOGUE_BEG.
20745 2010-01-06  Richard Guenther  <rguenther@suse.de>
20747         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
20748         not inline regular functions into always-inline functions.
20750 2010-01-06  Nick Clifton  <nickc@redhat.com>
20752         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
20753         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
20754         used together.
20755         (OVERRIDE_OPTIONS): Delete.
20756         (OPTIMIZATION_OPTIONS): Define.
20757         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
20758         * config/rx/rx.c (rx_handle_option): Issue an error message if
20759         -mcpu=rx200 and -fpu are used together.
20760         (rx_set_optimization_options): New function.  Issue an error
20761         message if an optimization attribute attempts to reset the FPU/
20762         math optimization pairing.
20763         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
20764         * config/rx/rx.opt: Set the default to 32-bit doubles.
20765         * config/rx/t-rx: Add multilibs for -nofpu option.
20766         * doc/invoke.texi: Update documentation of RX options.
20768 2010-01-06  Richard Guenther  <rguenther@suse.de>
20770         * tree-ssa-pre.c (name_to_id): New global.
20771         (alloc_expression_id): Simplify SSA name handling.
20772         (lookup_expression_id): Likewise.
20773         (init_pre): Zero name_to_id.
20774         (fini_pre): Free it.
20776 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
20778         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
20780 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
20782         PR target/42542
20783         * config/i386/sse.md (smaxv2di3): New.
20784         (umaxv2di3): Likewise.
20785         (sminv2di3): Likewise.
20786         (uminv2di3): Likewise.
20788 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
20790         PR target/42564
20791         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
20792         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
20793         (legitimize_tls_address): Likewise.
20794         (sparc_tls_referenced_p): Likewise.
20795         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
20796         and adjust calls to legitimize_pic_address.
20797         (legitimate_constant_p) Use sparc_tls_referenced_p.
20798         (legitimate_pic_operand_p): Likewise.
20799         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
20800         (sparc_tls_symbol_ref_1): Delete.
20801         (sparc_tls_referenced_p): Make static, recognize specific patterns.
20802         (legitimize_tls_address): Make static, handle CONST patterns.
20803         (legitimize_pic_address): Make static, remove unused parameter and
20804         adjust recursive calls.
20805         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
20806         and adjust call to legitimize_pic_address.
20807         (sparc_output_mi_thunk): Likewise.
20809 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
20810             H.J. Lu  <hongjiu.lu@intel.com>
20812         PR target/42542
20813         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
20814         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
20815         operands to make them signed.
20817         Revert:
20818         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
20820         PR target/42542
20821         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20822         GTU to GT for V4SI and V2DI.
20824         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20825         (umin<mode>3): Removed.
20826         (uminv8hi3): New.
20827         (uminv4si3): Likewise.
20829 2010-01-05  Martin Jambor  <mjambor@suse.cz>
20831         PR tree-optimization/42462
20832         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
20833         current_function_decl to helper functions and macros.
20835 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20837         PR bootstrap/41771
20838         * flags.h: Don't include real.h.
20839         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
20840         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
20841         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
20842         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
20843         * dominance.c: Update copyright.
20844         * gimple.c (walk_gimple_op): Remove inline.
20845         * tree-ssa-reassoc.c: Include real.h.
20846         * Makefile.in (FLAGS_H): Remove $(REAL_H).
20847         (tree-ssa-reassoc.o): Depend on $(REAL_H).
20849 2010-01-05  Nick Clifton  <nickc@redhat.com>
20851         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
20852         register to push into the stack frame when the accumulator has to
20853         be saved during interrupts.
20855 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
20857         * doc/invoke.texi: Remove the documentation about option
20858         -Wunreachable-code.
20859         * common.opt (Wunreachable-code):  Preserved for backward
20860         compatibility.
20861         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
20862         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
20863         the backward compatibility flag section.
20865 2010-01-05  Richard Guenther  <rguenther@suse.de>
20867         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
20869 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
20871         PR other/42611
20872         * cfgexpand.c (expand_one_var): Diagnose too large variables.
20874         PR tree-optimization/42508
20875         * tree-sra.c (convert_callers): Check for recursive call
20876         by comparing cgraph nodes instead of decls.
20877         (modify_function): Call ipa_modify_formal_parameters also
20878         on all same_body aliases.
20880         * cgraphunit.c (cgraph_materialize_all_clones): Compare
20881         cgraph nodes when checking for same_body aliases.
20883 2010-01-05  Richard Guenther  <rguenther@suse.de>
20885         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
20886         allocation and lookup.
20887         (get_or_alloc_expr_for_constant): Likewise.
20888         (phi_translate): Sink allocation.
20890 2010-01-04  Richard Guenther  <rguenther@suse.de>
20892         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
20893         a new entry only if needed.
20894         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
20895         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
20896         hashtable lookup.
20897         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
20898         the result array.
20899         (phi_translate): Handle CONSTANTs early.
20901 2010-01-04  Martin Jambor  <mjambor@suse.cz>
20903         PR tree-optimization/42398
20904         * tree-sra.c (struct access): Removed flag grp_different_types.
20905         (dump_access): Do not dump the removed flag.
20906         (sort_and_splice_var_accesses): Do not set the removed flag.
20907         (sra_modify_expr): Check for type compatibility directly.
20909 2010-01-04  Martin Jambor  <mjambor@suse.cz>
20911         PR tree-optimization/42366
20912         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
20913         edges with variable number of parameters.
20914         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
20915         flag instead of asserting it.
20916         (ipa_read_node_info): Read uses_analysis_done flag.
20918 2010-01-04  Richard Guenther  <rguenther@suse.de>
20920         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
20921         iterative_hash_* as intended.
20922         (vn_reference_compute_hash): Likewise.  Simplify hashing
20923         SSA names.
20924         (vn_reference_lookup_2): Likewise.
20925         (vn_nary_op_compute_hash): Likewise.
20926         (vn_phi_compute_hash): Likewise.
20927         (expressions_equal_p): Remove strange code.
20928         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
20929         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
20930         (bitmap_insert_into_set_1): Take value-id as parameter.
20931         (add_to_value): Pass it.
20932         (bitmap_insert_into_set): Likewise.
20933         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
20935 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
20937         PR driver/42442
20938         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
20939         (do_self_spec): For switches with SWITCH_IGNORE set set also
20940         SWITCH_IGNORE_PERMANENTLY.
20941         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
20942         of SWITCH_IGNORE.
20944 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
20946         * lto-streamer-out.c (output_unreferenced_globals): Output the full
20947         tree of an unreferenced global var.
20949 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
20951         PR target/42542
20952         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20953         GTU to GT for V4SI and V2DI.
20955         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20956         (umin<mode>3): Removed.
20957         (uminv8hi3): New.
20958         (uminv4si3): Likewise.
20960 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
20962         PR lto/42581
20963         * collect2.c (main): Turn on trace in collect2 if -v is passed
20964         to gcc with LTO.
20966 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
20968         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
20969         description of expression operand.
20971 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
20973         * configure.ac: Add install-html to target_list for Make-hooks.
20974         * configure: Regenerate.
20975         * fortran/Make-lang.in (F95_HTMLFILES): New.
20976         (fortran.html): Use it.
20977         (fortran.install-html): New.
20978         * Makefile.in (install-html): Add lang.install-html.
20979         * java/Make-lang.in (JAVA_HTMLFILES): New.
20980         (java.html): Use it.
20981         (java.install-html): New.
20982         * objc/Make-lang.in (objc.install-html): New.
20983         * objcp/Make-lang.in (obj-c++.install-html): New.
20984         * cp/Make-lang.in (c++.install-html): New.
20985         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
20986         * lto/Make-lang.in (lto.install-html): New.
20988 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
20990         PR lto/42520
20991         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
20993 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
20995         PR rtl-optimization/41862
20996         * store-motion.c (store_killed_in_insn, compute_store_table,
20997         remove_reachable_equiv_notes, replace_store_insn,
20998         build_store_vectors): Ignore all DEBUG_INSNs.
21000 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21002         PR lto/41564
21003         * common.opt: Add dumpdir.
21005         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
21006         isn't specified.
21007         (option_map): Add --dumpdir.
21009         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
21011         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
21013         * opts.c (decode_options): Try dump_dir_name first if
21014         dump_base_name isn't an absolute path.
21015         (common_handle_option): Handle OPT_dumpdir.
21017         * toplev.c (dump_dir_name): New.
21018         (print_switch_values): Also ignore -dumpdir.
21020         * toplev.h (dump_dir_name): New.
21022 2010-01-03  Richard Guenther  <rguenther@suse.de>
21024         PR tree-optimization/42589
21025         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
21026         double-word expansion of bswap32.
21028 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
21030         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
21031         with BLOCK_FOR_INSN.
21032         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
21033         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
21034         noce_process_if_block): Likewise.
21035         * gcse.c (compute_local_properties, insert_expr_in_table,
21036         insert_set_in_table, canon_list_insert, find_avail_set,
21037         pre_insert_copy_insn): Likewise.
21039         * basic-block.h (BLOCK_NUM): Move from here...
21040         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
21042 2010-01-03  Richard Guenther  <rguenther@suse.de>
21044         PR tree-optimization/42438
21045         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
21046         contains_may_not_return_call flag.
21047         (BB_MAY_NOTRETURN): New.
21048         (valid_in_sets): Trapping nary operations are not valid
21049         in blocks that may not return.
21050         (insert_into_preds_of_block): Remove check for trapping expressions.
21051         (compute_avail): Compute also BB_MAY_NOTRETURN.
21053 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
21055         * doc/invoke.texi: Add 2010 to copyright years.
21057 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
21059         * config/sparc/sparc.c: Fix formatting nits.
21061 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
21062             Alexander Monakov  <amonakov@ispras.ru>
21064         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
21066 2010-01-02  Richard Guenther  <rguenther@suse.de>
21068         PR middle-end/42577
21069         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
21070         (simplify_switch_using_ranges): Mark to be removed edges
21071         as non-executable.
21073 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21075         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
21077         * collect2.c (scan_libraries): Add missing argument in call to
21078         scan_prog_file.
21080 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
21082         PR target/42448
21083         * config/alpha/predicates.md (aligned_memory_operand): Return false
21084         for CQImode.
21085         (unaligned_memory_operand): Return true for CQImode.
21086         * config/alpha/alpha.c (get_aligned_mem): Assert that location
21087         doesn not cross aligned SImode word boundary.
21089 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
21091         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
21092         Remove.
21093         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
21094         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
21096 2010-01-02  Richard Guenther  <rguenther@suse.de>
21098         PR lto/41597
21099         * toplev.c (compile_file): Emit LTO marker properly.  Change
21100         it to __gnu_lto_v1.
21101         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
21103 2010-01-01  Richard Guenther  <rguenther@suse.de>
21105         PR debug/42455
21106         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
21108 2010-01-01  Richard Guenther  <rguenther@suse.de>
21110         PR c/42570
21111         * c-decl.c (grokdeclarator): For zero-size arrays force
21112         structural equality checks as layout_type does.
21114 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
21116         * builtins.c: Update copyright to 2010.
21118 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
21120         PR lto/42531
21121         * lto-streamer-out.c (produce_asm): Revert the last change.
21122         (copy_function): Likewise.
21124         * lto-streamer.c (lto_get_section_name): Skip any leading
21125         asterisk in name.
21127 2010-01-01  Richard Guenther  <rguenther@suse.de>
21129         PR middle-end/42559
21130         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
21131         for LABEL_DECLs.
21134 Copyright (C) 2010 Free Software Foundation, Inc.
21136 Copying and distribution of this file, with or without modification,
21137 are permitted in any medium without royalty provided the copyright
21138 notice and this notice are preserved.