postreload.c (try_replace_in_use): New static function.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2
3         * postreload.c (try_replace_in_use): New static function.
4         (reload_combine_recognize_const_pattern): Use it here.  Allow
5         substituting into a final add insn, and substituting into a memory
6         reference in an insn that sets the reg.
7
8 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
9
10         * common.opt (o): Add MissingArgError.
11         * doc/options.texi (MissingArgError): Document.
12         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
13         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
14         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
15         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook
16         initializer.
17         * langhooks.h (struct lang_hooks): Remove missing_argument.
18         * optc-gen.awk: Handle MissingArgError and output new structure
19         field initializers.
20         * opts.c (read_cmdline_option): Use missing_argument_error field
21         instead of missing_argument langhook.
22         * opts.h (struct cl_option): Add missing_argument_error field.
23         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
24
25 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
26
27         PR target/29090
28         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
29         Darwin64 ABI, for zero-sized objects.
30
31 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
32
33         PR target/35491
34         PR target/29090
35
36         Merge from Apple local 4.2.1.
37         2005-05-11  Stan Shebs  <shebs@apple.com>
38         Fix 64-bit varargs for Darwin (Radar 4028089).
39         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
40         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
41         Add argument, add case for 8-byte register half-filled with a float.
42         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
43         single-precision floats specially.
44
45 2010-07-27  Ira Rosen  <irar@il.ibm.com>
46
47         PR tree-optimization/44152
48         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
49         complex numbers for further check.
50         (vect_supported_load_permutation_p): Check nodes with 
51         complex numbers.
52
53 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
54
55         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
56         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
57         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
58         (LANG_HOOKS_INITIALIZER): Add new hooks.
59         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
60         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
61         and complain_wrong_lang_p.  Update init_options prototype.
62         * c-objc-common.c (c_initialize_diagnostics): First call
63         c_common_initialize_diagnostics.
64         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
65         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
66         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
67         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
68         (hook_uint_void_0): New.
69         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
70         (hook_uint_void_0): New.
71         * opts-common.c (decode_cmdline_option,
72         decode_cmdline_options_to_array): Also fill in canonical_option field.
73         * opts.c (complain_wrong_lang): Use langhook to determine whether
74         to complain instead of special-casing LTO.
75         (decode_options): Separate lang_mask determination with
76         option_lang_mask hook from call of init_options hook.
77         * opts.h (struct cl_decoded_option): Add canonical_option.
78
79 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
80
81         PR tree-optimization/45083
82         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
83
84 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
85
86         * postreload.c (reload_combine_recognize_const_pattern): Move test
87         for limiting the insn movement to the right scope.
88
89         PR rtl-optimization/45051
90         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
91         than reg_mentioned_p.
92
93 2010-07-26  Richard Henderson  <rth@redhat.com>
94
95         PR target/44132
96         * tree-emutls.c: New file.
97         * Makefile.in (OBJS-common): Add it.
98         * tree-pass.h (pass_ipa_lower_emutls): Declare.
99         * passes.c (init_optimization_passes): Add it.
100
101         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
102         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
103         * expr.c (emutls_var_address): Delete.
104         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
105         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
106         (emutls_finish): Delete.
107         * toplev.c (compile_file): Don't call it.
108         * tree.h (emutls_decl): Delete.
109         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
110         (emutls_finish, emutls_finalize_control_var): Delete.
111         (emutls_object_type): Move to tree-emutls.c.
112         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
113         default_emutls_var_fields, get_emutls_object_type,
114         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
115         default_emutls_var_init): Likewise.
116         (get_variable_section): Don't special case emutls.
117         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
118         default_elf_select_section, default_unique_section,
119         default_encode_section_info): Likewise.
120         * varpool.c (decide_is_variable_needed): Likewise.
121         * gimple-iterator.c (update_call_edge_frequencies): New
122         (gsi_insert_on_edge_immediate): Use it.
123         (gsi_insert_seq_on_edge_immediate): Likewise.
124         (gsi_commit_one_edge_insert): Likewise.
125
126         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
127         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
128         (x86_64_elf_unique_section): Likewise.
129
130 2010-07-26  Jan Hubicka  <jh@suse.cz>
131
132         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
133         GTY((skip)).
134
135 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
136
137         * target.def (output_source_filename): New hook.
138         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
139         * doc/tm.texi: Regenerate.
140         * toplev.c (output_file_directive) Remove function.
141         * toplev.h (output_file_directive) Remove.
142         * output.h (default_asm_output_source_filename,
143         output_file_directive): Declare.
144         * varasm.h (default_asm_output_source_filename,
145         output_file_directive): New functions.
146
147         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
148         * config/mips/mips-protos.h (mips_output_filename): Remove.
149         * config/mips/mips.c (mips_output_filename): Make Static.
150         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
151
152 2010-07-26  Richard Guenther  <rguenther@suse.de>
153
154         PR tree-optimization/43784
155         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
156         if the destination is used by the call.
157
158 2010-07-26  Richard Guenther  <rguenther@suse.de>
159
160         PR middle-end/45073
161         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
162         SSA updating on being in SSA form.
163
164 2010-07-26  Richard Guenther  <rguenther@suse.de>
165
166         PR middle-end/45056
167         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
168
169 2010-07-26  Richard Guenther  <rguenther@suse.de>
170
171         PR tree-optimization/45071
172         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
173         adjust op->opcode.
174
175 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
176
177         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
178         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
179         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
180         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
181         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
182         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
183         save_r31, return_r31, save_interrupt, return_interrupt,
184         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
185         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
186         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
187         new ABI requirements.
188         (save_r6_r9, L_callt_save_r6_r9): Remove.
189         * config/v850/predicates.md (even_reg_operand, disp23_operand,
190         const_float_1_operand const_float_0_operand): New Predicates.
191         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
192         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
193         * config/v850/t-v850: Update multilibs for new target variants.
194         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
195         * config/v850/t-v850e: Likewise.
196         * config/v850/v850.c (v850_issue_rate): New.
197         (v850_strict_argument_naming): New.
198         (function_arg): Modify to generate a different ABI.
199         (print_operand): Update case 'z' to support float modes.
200         (output_move_single): Modify to generate appropriate and better
201         assembly.
202         (v850_float_z_comparison_operator, v850_select_cc_mode,
203         v850_float_nz_comparison_operator,  v850_gen_float_compare,
204         v850_gen_compare): New functions to support comparison of float values.
205         (ep_memory_offset): Add support for V850E2 targets.
206         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
207         (INTERRUPT_REGPARM_NUM): Remove.
208         (compute_register_save_size): Add extra case to save/restore long call.
209         (use_prolog_function): New function to support prologue.
210         (expand_prologue): Add support for V850E2 targets and modified
211         as per the current ABI requirements.
212         (expand_epilogue): Likewise.
213         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
214         (construct_save_jarl): Likewise.
215         (construct_dispose_instruction): Update as per the current ABI
216         requirements.
217         (construct_prepare_instruction): Likewise.
218         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
219         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
220         (CPP_SPEC): Updated to support v850e2 targets.
221         (STRICT_ALIGNMENT): Modified.
222         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
223         (FIXED_REGISTERS): Likewise.
224         (CALL_USED_REGISTERS): Likewise.
225         (CONDITIONAL_REGISTER_USAGE): Updated.
226         (HARD_REGNO_MODE_OK): Updated.
227         (reg_class): Updated to add even registers.
228         (REG_CLASS_NAMES): Likewise.
229         (REG_CLASS_CONTENTS): Likewise.
230         (REGNO_REG_CLASS): Updated for CC registers.
231         (REG_CLASS_FROM_LETTER): Added support for even registers.
232         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
233         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
234         ARG_POINTER_REGNUM): Updated.
235         (FUNCTION_ARG_ADVANCE): Define.
236         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
237         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
238         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
239         (GO_IF_LEGITIMATE_ADDRESS): Updated.
240         (SELECT_CC_MODE): Define.
241         (REGISTER_NAMES): Updated to add psw and fcc registers.
242         (ADDITIONAL_REGISTER_NAMES): Updated.
243         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
244         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
245         * config/v850/v850.md (define_constants): Define new constants.
246         (type): Update store,bit1,macc,div,fpu and single attributes.
247         (cpu): New attribute.
248         (cc): Add set_z attribute.
249         (unsign23byte_load, sign23byte_load, unsign23hword_load,
250         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
251         23word_store): New instructions for 23-bit displacement load and store.
252         (movqi_internal, movhi_internal): Update the attributes.
253         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
254         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
255         the attributes.
256         (v850_tst1): Modified using CC_REGNUM.
257         (tstsi): Remove.
258         (cmpsi): Modified as define_expand from define_insn.
259         (cmpsi_insn, cmpsf, cmpdf): New instructions.
260         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
261         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
262         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
263         one_cmplsi2): Clobber the CC_REGNUM register.
264         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
265         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
266         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
267         (setf_insn, set_z_insn, set_nz_insn): New instructions for
268         v850e2v3 target.
269         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
270         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
271         targets.
272         (sasf_1, sasf_2): Remove.
273         (sasf): New instruction.
274         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
275         targets. CC_REGNUM register is clobbered and attributes are
276         updated.
277         (branch_z_normal, branch_z_invert, branch_nz_normal,
278         branch_nz_invert): New branch related instructions.
279         (jump): Updated the attributes.
280         (switch): Update to support new targets. CC_REGNUM register is
281         clobbered and attributes are updated.
282         (call_internal_short, call_internal_long, call_value_internal_short,
283         call_value_internal_long): Updated the attributes.
284         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
285         clobbered and attributes are updated.
286         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
287         Update to support new targets. CC_REGNUM register is clobbered.
288         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
289         instructions.
290         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
291         are updated.
292         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
293         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
294         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
295         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
296         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
297         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
298         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
299         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
300         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
301         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
302         point instructions defined for V850e2v3 target.
303         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
304         Add support for V850E2 targets and CC_REGNUM register is clobbered.
305         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
306         support for new targets.
307         * config/v850/v850-modes.def: New file.
308         * config/v850/v850.opt(mstrict-align): Remove.
309         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
310         mv850e2v3): New command line options for V850.
311         * config.gcc: Update the newly added files.
312         * doc/invoke.texi: Update the newly added command line options for
313         V850 target.
314
315 2010-07-26  Richard Guenther  <rguenther@suse.de>
316
317         PR tree-optimization/45052
318         * ipa-pure-const.c (check_stmt): Check volatileness.
319
320 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
321
322         PR target/44707
323         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
324         * config/sparc/sparc.c: Include reload.h.
325         (legitimize_tls_address): Rename into...
326         (sparc_legitimize_tls_address): ...this.
327         (legitimize_pic_address): Rename into...
328         (sparc_legitimize_pic_address): ...this.
329         (sparc_expand_move): Adjust to above renaming.
330         (sparc_tls_referenced_p): Likewise.
331         (sparc_legitimize_tls_address): Likewise.
332         (sparc_legitimize_pic_address): Likewise.
333         (sparc_legitimize_address): Likewise.
334         (sparc_output_mi_thunk): Likewise.
335         (sparc_legitimize_reload_address): New global function.  Recognize
336         (lo_sum (high ...) ...) patterns generated by earlier passes.
337         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
338
339 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
340
341         PR target/44484
342         * config/sparc/predicates.md (memory_reg_operand): Delete.
343         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
344         (*sync_compare_and_swap): Encode the address form in the pattern.
345         (*sync_compare_and_swapdi_v8plus): Likewise.
346
347 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
348
349         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
350         Streamline paragraph on compatibility with the system compiler.
351
352 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
353
354         PR middle-end/45035
355         * alias.c (true_dependence_1): Fix thinko in merge of old
356         true_dependence and canon_true_dependence.
357
358 2010-07-23  Jan Hubicka  <jh@suse.cz>
359
360         * lto-streamer-out.c (write_symbol): Fix visibilities of external
361         references.
362
363 2010-07-23  Le-Chun Wu  <lcwu@google.com>
364
365         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
366         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
367         and an unnecessary assignment.
368         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
369         self-assign warning.
370         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
371         unnecessary self-init.
372
373 2010-07-23  Richard Guenther  <rguenther@suse.de>
374
375         PR lto/43071
376         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
377         for -flto and -fwhopr.
378
379 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
380
381         PR target/41943
382         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
383         (stmp-int-hdrs): Prefix/postfix headers by include_next.
384         * config.gcc (user_headers_inc_next_pre): New.
385         (user_headers_inc_next_post): Likewise.
386         (*-w64-mingw*): Use for float.h post-fixing, and for
387         stddef.h/stdarg.h pre-fixing by include_next.
388         * configure.ac (user_headers_inc_next_post): New.
389         (user_headers_inc_next_pre): New.
390         * configure: Regenerated.
391
392 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
393
394         * configure.ac: Don't disable TLS on Solaris 8/9 by default
395         Set tga_func for Solaris 2/x86 resp. SPARC.
396         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
397         (LIB_THREAD_LDFLAGS_SPEC): Define.
398         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
399         * configure: Regenerate.
400         * config.in: Regenerate.
401         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
402         -pthread, -threads, LIB_TLS_SPEC with -pthread.
403         * doc/install.texi (Specific, *-*-solaris2*): Document use of
404         alternate thread libraries on Solaris 8.
405         Document TLS patch requirements.
406         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
407         Document tls.
408
409         PR target/18788
410         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
411         -shared.
412
413 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
414
415         * tree.h (struct tree_base): Add nameless_flag bitfield.
416         (TYPE_NAMELESS, DECL_NAMELESS): Define.
417         * omp-low.c (create_omp_child_function, scan_omp_parallel,
418         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
419         DECL_ARTIFICIAL where needed.
420         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
421         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
422         has DECL_NAMELESS set.
423
424 2010-07-23  Martin Jambor  <mjambor@suse.cz>
425
426         PR tree-optimization/44915
427         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
428         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
429         (analyze_function): Likewise.
430
431 2010-07-23  Martin Jambor  <mjambor@suse.cz>
432
433         PR tree-optimization/44914
434         * tree-sra.c (sra_modify_function_body): Return true if CFG was
435         changed, add purging dead eh edges.
436         (ipa_sra_modify_function_body): Return true if CFG was changed,
437         simplify purging dead eh edges.
438         (modify_function): Return true if CFG was changed.
439         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
440         was changed.
441         (ipa_early_sra): Likewise.
442
443 2010-07-23  Jie Zhang  <jie@codesourcery.com>
444
445         PR target/44290
446         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
447         if "naked".
448         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
449         false if ! tree_versionable_function_p.
450
451 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
452
453         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
454         * ipa-pure-const.c (special_builtlin_state): Remove
455         BUILT_IN_ARGS_INFO case.
456         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
457         * builtins.c (expand_builtin): Likewise.
458         (expand_builtin_args_info): Remove.
459         * doc/tm.texi (__builtin_args_info): Remove.
460         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
461         * doc/tm.text.in: Likewise.
462
463 2010-07-23  Richard Guenther  <rguenther@suse.de>
464
465         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
466         (lto_symtab_merge_decls_2): Likewise.
467         * tree-ssa.c (useless_type_conversion_p): Likewise.
468         * lto-streamer-in.c (input_gimple_stmt): Likewise.
469         * gimple.c (gtc_visited2, gtc_ob2): Remove.
470         (struct type_pair_d): Make same_p an array indexed by mode.
471         Update comment.
472         (lookup_type_pair): Update initialization.
473         (struct sccs): Adjust same_p type.
474         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
475         Adjust.
476         (print_gimple_types_stats): Likewise.
477         * gimple.h (enum gtc_mode): New.
478         (gimple_types_compatible_p): Adjust prototype.
479
480 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
481
482         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
483         again after processing insn.
484
485 2010-07-23  Jie Zhang  <jie@codesourcery.com>
486
487         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
488         proper words when !tree_versionable_function_p.
489
490 2010-07-23  Richard Guenther  <rguenther@suse.de>
491
492         PR tree-optimization/45037
493         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
494
495 2010-07-23  Jie Zhang  <jie@codesourcery.com>
496
497         * doc/extend.texi: Remove IP2K from the description of naked attribute.
498         Add MCORE instead.
499
500 2010-07-10  Andi Kleen  <ak@linux.intel.com>
501
502         PR lto/44992
503         * lto-opts.c (lto_write_options): Add NULL file_data argument to
504         lto_get_section_name.
505         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
506         * lto-streamer-out.c (produce_asm): Likewise.
507         (copy_function): Likewise.
508         (produce_symtab): Likewise.
509         (produce_asm_for_decls): Likewise.
510         * lto-streamer.c (lto_get_section_name): Add file_data argument.
511         Rewrite to add random postfix to LTO sections.
512         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
513         (lto_get_section_name): Add file_data argument to prototype.
514
515 2010-07-10  Andi Kleen  <ak@linux.intel.com>
516
517         * lto-section-in.c (lto_section_name): Synchronize names
518         with lto_get_section_name.
519
520 2010-07-10  Andi Kleen  <ak@linux.intel.com>
521
522         * lto-opts.c (lto_read_file_options): Check for missing section.
523
524 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
525
526         * ira.c (check_allocation): Correctly handle the case where an allocno
527         with two objects was allocated to a single reg.
528
529 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
530
531         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
532         (is_widening_mult_p): Likewise.
533         (convert_to_widen): Use them.
534         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
535         well as integer ones.
536
537 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
538
539         * alias.c (true_dependence_1): New function, merged version of
540         true_dependence and canon_true_dependence.
541         (true_dependence): Simplify.
542         (canon_true_dependence): Simplify.
543
544 2010-07-22  Richard Henderson  <rth@redhat.com>
545
546         PR target/45027
547         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
548         of V4SFmode for the SSE saves; increase stack alignment if needed.
549         (ix86_gimplify_va_arg): Don't increase stack alignment here.
550
551 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
552
553         PR bootstrap/45028
554         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
555         call cprop_find_used_regs again via note_uses.
556
557 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
558
559         * alias.c (get_alias_set): Fix formatting issues.
560
561 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
562
563         PR middle-end/44878
564         * stmt.c (expand_value_return):  Call promote_function_mode with
565         a for_return argument of 2 when returning by reference.
566
567 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
568
569         PR debug/45024
570         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
571         unit DIE if we can find the scope DIE.
572
573 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
574
575         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
576         changed.  Initialize OBJECT_SUBWORD.
577         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
578         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
579         all callers changed.
580         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
581         (finish_allocno): Likewise.
582         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
583         (remove_low_level_allocnos): Likewise.
584         (update_bad_spill_attribute): Likewise.
585         (setup_min_max_allocno_live_range_point): Likewise.
586         (sort_conflict_id_map): Likewise.
587         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
588         (ior_hard_reg_conflicts): New function.
589         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
590         (compress_conflict_vecs): Iterate over objects, not allocnos.
591         (ira_add_live_range_to_object): New function.
592         (object_range_compare_func): Renamed from allocno_range_compare_func.
593         All callers changed.
594         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
595         subobjects, widen the min/max range of the lowest-order object to
596         potentially include all other such low-order objects.
597         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
598         (check_allocation): Likewise.  Use more fine-grained tests for register
599         conflicts.
600         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
601         allocno subobjects.
602         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
603         choices about which bits to set in each set.  Don't use
604         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
605         using the multiple sets we computed.
606         (push_allocno_to_stack): Iterate over allocno subobjects.
607         (all_conflicting_hard_regs_coalesced): New static function.
608         (setup_allocno_available_regs_num): Use it.
609         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
610         subobjects.
611         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
612         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
613         by ALLOCNO_NUM_OBJECTS.
614         (calculate_spill_cost): Likewise.
615         (color_pass): Express if statement in a more normal way.
616         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
617         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
618         (setup_slot_coalesced_allocno_live_ranges): Likewise.
619         (allocno_reload_assign): Likewise.
620         (ira_reassign_pseudos): Likewise.
621         (fast_allocation): Likewise.
622         * ira-conflicts.c (build_conflict_bit_table): Likewise.
623         (print_allocno_conflicts): Likewise.
624         (ira_build_conflicts): Likewise.
625         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
626         callers changed.  Test subword 0 of each allocno for conflicts.
627         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
628         callers changed.  Iterate over allocno subobjects.
629         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
630         * ira-int.h (struct ira_allocno): New member: num_objects.
631         Rename object to objects and change it into an array.
632         (ALLOCNO_OBJECT): Add new argument N.
633         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
634         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
635         (ior_hard_reg_conflicts): Declare.
636         (ira_add_live_range_to_object): Declare.
637         (ira_allocno_object_iterator): New.
638         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
639         (FOR_EACH_ALLOCNO_OBJECT): New macro.
640         * ira-lives.c (objects_live): Renamed from allocnos_live; all
641         uses changed.
642         (allocnos_processed): New sparseset.
643         (make_object_born): Renamed from make_allocno_born; take an
644         ira_object_t argument.  All callers changed.
645         (make_object_dead): Renamed from make_allocno_dead; take an
646         ira_object_t argument.  All callers changed.
647         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
648         All callers changed.
649         (mark_pseudo_regno_live): Iterate over allocno subobjects.
650         (mark_pseudo_regno_dead): Likewise.
651         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
652         functions.
653         (mark_ref_live): Detect subword accesses and call
654         mark_pseudo_regno_subword_live as appropriate.
655         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
656         (process_bb_nodes_live): Deal with object-related updates first; set
657         and test bits in allocnos_processed to avoid computing allocno
658         statistics more than once.
659         (create_start_finish_chains): Iterate over objects, not allocnos.
660         (print_object_live_ranges): New function.
661         (print_allocno_live_ranges): Use it.
662         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
663         and objects_live.
664
665 2010-07-22  Richard Guenther  <rguenther@suse.de>
666
667         PR lto/42451
668         * gimple.c (gtc_next_dfs_num): New global.
669         (struct sccs): Make value a union, add integer same_p member.
670         (gtc_visit): New function.
671         (gimple_types_compatible_p_1): New function, split out from ...
672         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
673         (iterative_hash_gimple_type): Adjust for sccs change.
674
675 2010-07-22  Martin Jambor  <mjambor@suse.cz>
676
677         PR tree-optimization/44891
678         * tree-sra.c: Include gimple-pretty-print.h.
679         (replace_uses_with_default_def_ssa_name): Renamed to
680         get_repl_default_def_ssa_name, return the new SSA name instead of
681         replacing the old one.
682         (sra_modify_assign): Dump a message when removing a load, if the LHS
683         is an SSA_NAME, do not do any propagation, just set the RHS to a
684         default definition SSA NAME, type convert if necessary.
685         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
686
687 2010-07-22  Richard Guenther  <rguenther@suse.de>
688
689         PR tree-optimization/45017
690         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
691         TYPE_PRECISION of integral types in addition to size.
692
693 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
694
695         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
696         when no C library is specified.
697
698 2010-07-22  Martin Jambor  <mjambor@suse.cz>
699
700         * ipa-prop.h (struct ipa_node_params): Updated comment.
701         (struct ipa_edge_args): Likewise.
702         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
703
704 2010-07-22  Martin Jambor  <mjambor@suse.cz>
705
706         * cgraphunit.c (verify_edge_count_and_frequency): New function.
707         (verify_cgraph_node): Verify frequencies of indirect edges.
708         * tree-inline.c (tree_function_versioning): Update frequencies of
709         indirect edges.
710
711 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
712
713         PR target/43698
714         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
715         Set *arm_rev to be predicable.
716
717 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
718
719         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
720         (LINK_COMMAND_SPEC_A): New.
721         (DSYMUTIL): New.
722         (DSYMUTIL_SPEC): New.
723         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
724         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
725
726 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
727
728         * calls.c (load_register_parameters): Move check for zero
729         sized items so that only the call to
730         mem_overlaps_already_clobbered_arg_p () is protected.
731
732 2010-07-22  Jan Hubicka  <jh@suse.cz>
733
734         * ipa-pure-const.c (varying_state): Break out from ...
735         (get_function_state): ... here; always return varying_state
736         when state would be NULL otherwise.
737         (remove_node_data): Do not free varying state.
738
739 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
740
741         PR bootstrap/44970
742         PR middle-end/45009
743         * postreload.c: Include "target.h".
744         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
745         into account.
746         (fixup_debug_insns): Don't copy the rtx.
747         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
748         Don't copy when replacing.  Call fixup_debug_insns in the case where
749         we merged one add with another.
750         (reload_combine_recognize_pattern): Fail if there aren't any uses.
751         Try harder to determine whether we're picking a valid index register.
752         Don't set store_ruid for an insn we're going to scan in the
753         next iteration.
754         (reload_combine): Remove unused code.
755         (reload_combine_note_use): When updating use information for
756         an old insn, ignore a use that occurs after store_ruid.
757         * Makefile.in (postreload.o): Update dependencies.
758
759         * function.c (record_hard_reg_sets): Restrict the previous change
760         to cases where the incoming nominal mode is the same as the
761         incoming promoted mode and everything happens in MODE_INT.
762
763 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
764
765         PR debug/45015
766         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
767         ASM_OPERANDS_OUTPUT_IDX.
768         (adjust_insn): For inline asm with multiple sets ensure first
769         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
770         the insn.
771
772 2010-07-21  Richard Henderson  <rth@redhat.com>
773
774         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
775         comparison for avoiding xmm register saves.  Emit the xmm register
776         saves explicitly.
777         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
778         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
779         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
780         Remove patterns and the associated splitters.
781
782 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
783
784         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
785         and imagine parts of a complex, so that they can have the same
786         base and fall into the same group.
787
788 2010-07-21  Richard Guenther  <rguenther@suse.de>
789
790         PR lto/45018
791         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
792         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
793         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
794
795 2010-07-21  Martin Jambor  <mjambor@suse.cz>
796
797         PR tree-optimization/44900
798         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
799         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
800
801 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
802
803         PR middle-end/44738
804         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
805
806 2010-07-21  Richard Guenther  <rguenther@suse.de>
807
808         PR middle-end/45013
809         * tree-ssa.c (useless_type_conversion_p): Dispatch to
810         gimple_types_compatible_p only when in lto.
811         * gimple.c (gimple_types_compatible_p): Use canonical types
812         to speed up comparison.
813
814 2010-07-21  Richard Guenther  <rguenther@suse.de>
815
816         * tree-flow.h (referenced_var): Move define ...
817         * tree-flow-inline.h (referenced_var): ... here as an inline
818         function.  Assert here ...
819         * tree-dfa.c (referenced_var_lookup): ... instead of here.
820         * tree-ssa.c (maybe_optimize_var): Check if the variable
821         is in referenced vars.
822         (execute_update_addresses_taken): Remove old broken check.
823         * gimple-pretty-print.c (pp_points_to_solution): Use
824         referenced_var_lookup.
825         * tree-into-ssa.c (dump_decl_set): Likewise.
826
827 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
828
829         PR debug/45003
830         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
831         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
832         ZERO_EXTEND here.
833
834 2010-07-20  Richard Henderson  <rth@redhat.com>
835
836         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
837
838 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
839
840         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
841         computing the sum of the stack pointer and a large constant.
842         * config/arm/constraints.md (M): Remove superfluous parentheses.
843         (Pc): New constraint.
844
845 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
846
847         PR debug/45006
848         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
849         operand's type if exp is tcc_unary class tree.
850
851 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
852
853         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
854         Reverse sense of if_then_else condition.
855
856 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
857
858         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
859         * config/rs6000/rs6000.c (rs6000_override_options): Set
860         rs6000_block_move_inline_limit appropriately.
861         (expand_block_move): Use rs6000_block_move_inline_limit.
862         * doc/invoke.texi (mblock-move-inline-limit): Document.
863
864 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
865
866         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
867         FROM and TO.  All callers changed.  Don't look for tracked uses,
868         just scan the RTL for DEBUG_INSNs and substitute.
869         (reload_combine_recognize_pattern): Call fixup_debug_insns.
870         (reload_combine): Ignore DEBUG_INSNs.
871
872 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
873
874         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
875         depth to 8 from 5.
876
877         PR debug/45003
878         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
879         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
880         instead of the result's type.
881
882 2010-07-20  Richard Guenther  <rguenther@suse.de>
883
884         PR tree-optimization/44977
885         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
886         SSA form.
887
888 2010-07-20  Richard Guenther  <rguenther@suse.de>
889
890         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
891         (lto_symtab_merge_decls_2): Likewise.
892         * gimple.h (gimple_types_compatible_p): Declare.
893         * gimple.c (gimple_queue_type_fixup): Remove.
894         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
895         (gimple_compatible_complete_and_incomplete_type_p): New function.
896         (gimple_types_compatible_p): Adjust.
897         (gimple_register_type): Remove type fixup code.
898         (print_gimple_types_stats): Adjust.
899         (free_gimple_type_tables): Likewise.
900         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
901         * tree-ssa.c (useless_type_conversion_p): Likewise.
902
903 2010-07-20  Richard Guenther  <rguenther@suse.de>
904
905         PR middle-end/44971
906         PR middle-end/44988
907         * tree-ssa.c (maybe_optimize_var): New function split out from ...
908         (execute_update_addresses_taken): ... here.
909         (non_rewritable_mem_ref_base): Likewise.
910         (execute_update_addresses_taken): Do not iterate over all referenced
911         vars but just all local decls and parms.
912         Properly check call and asm arguments and rewrite call arguments.
913
914 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
915
916         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
917         to top level.
918         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
919         definitions ...
920         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
921         New macro.
922         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
923
924 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
925
926         * gengtype.c (start_root_entry): New function, split out from
927         write_root.  Check whether V is null and raise an error if so.
928         (write_field_root): Check for V being null.  Don't raise an error here;
929         set V to null instead.
930         (write_root): Update comment above function.  Use start_root_entry.
931
932 2010-07-19  Xinliang David Li  <davidxl@google.com>
933
934         PR testsuite/44932
935         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
936         def edges.
937         (find_uninit_use): Add dump.
938         (is_use_properly_guarded): Ditto.
939         (warn_uninitialized_phi): Ditto.
940         (execute_late_warn_uninitialized): Ditto.
941
942 2010-07-19  Richard Guenther  <rguenther@suse.de>
943
944         PR middle-end/44941
945         * expr.c (emit_block_move_hints): Move zero size check first.
946         Move asserts to more useful places.
947         * calls.c (load_register_parameters): Check for zero size.
948
949 2010-07-19  Richard Henderson  <rth@redhat.com>
950
951         * tree-optimize.c (execute_all_early_local_passes): New.  Change
952         cgraph_state here ...
953         (execute_early_local_optimizations): ... not here.  Remove.
954         (pass_early_local_passes, pass_all_early_optimizations): Update.
955
956 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
957
958         * postreload.c (reload_combine_closest_single_use): Ignore the
959         number of uses for DEBUG_INSNs.
960         (fixup_debug_insns): New static function.
961         (reload_combine_recognize_const_pattern): Use it.  Don't let the
962         main loop be affected by DEBUG_INSNs.
963         Really disallow moving adds past a jump insn.
964         (reload_combine_recognize_pattern): Don't update use_ruid here.
965         (reload_combine_note_use): Do it here.
966         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
967
968 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
969
970         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
971         of a loop.
972         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
973
974 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
975
976         * config/i386/darwin.h: Define darwin_emit_branch_islands.
977         (TARGET_MACHO_BRANCH_ISLANDS): New.
978         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
979         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
980         default value.
981         * config/i386/i386.c (output_pic_addr_const): Do not emit
982         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
983         (x86_output_mi_thunk): Adjust symbol creation.
984         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
985         Remove out of date comment.
986         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
987         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
988         (DARWIN_GENERATE_ISLANDS): Ditto.
989         (output_call):  Do not emit branch islands unless
990         darwin_emit_branch_islands is set.
991         * config/darwin.c: Declare darwin_emit_branch_islands.
992         (machopic_indirect_data_reference): Do not emit unless
993         darwin_emit_branch_islands is set.
994         (darwin_override_options): Set darwin_emit_branch_islands
995         where it is needed.
996         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
997
998 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
999
1000         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1001         sse_runtime, sse2_runtime.
1002
1003 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
1004
1005         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
1006         low half of a single-register SCmode return value before ORing
1007         it with the high half.
1008         * config/mips/mips16.S (MERGE_GPRf): Likewise.
1009
1010 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1011
1012         PR target/44805
1013         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
1014         on all targets.
1015
1016 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
1017
1018         PR target/42235
1019         * postreload.c (reload_cse_move2add): Return bool, true if anything.
1020         changed.  All callers changed.
1021         (move2add_use_add2_insn): Likewise.
1022         (move2add_use_add3_insn): Likewise.
1023         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
1024         reload_combine.
1025         (RELOAD_COMBINE_MAX_USES): Bump to 16.
1026         (last_jump_ruid): New static variable.
1027         (struct reg_use): New members CONTAINING_MEM and RUID.
1028         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
1029         (reload_combine_split_one_ruid, reload_combine_split_ruids,
1030         reload_combine_purge_insn_uses, reload_combine_closest_single_use
1031         reload_combine_purge_reg_uses_after_ruid,
1032         reload_combine_recognize_const_pattern): New static functions.
1033         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
1034         is true for our reg and that we have available index regs.
1035         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
1036         callers changed.  Use them to initialize fields in struct reg_use.
1037         (reload_combine): Initialize last_jump_ruid.  Be careful when to
1038         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
1039         Call reload_combine_recognize_const_pattern.
1040         (reload_combine_note_store): Update REAL_STORE_RUID field.
1041
1042 2010-07-16  Jason Merrill  <jason@redhat.com>
1043
1044         * Makefile.in (opts-common.o): Depend on options.h.
1045
1046 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
1047
1048         * tree.c (build_common_builtin_nodes): Use build_function_type_list
1049         instead of build_function_type.
1050         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
1051         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1052
1053 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
1054
1055         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
1056         do all the work.
1057         (rs6000_emit_int_cmove): Use function pointers for insn generation.
1058         Don't force values into registers unnecessarily.
1059         (output_isel): Assert that we're not given conditions we can't handle.
1060         Delete corresponding code.
1061         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
1062         scc_comparison_operator constraint.  Permit 0 for the consequent
1063         operand.  Permit any GPR for the alternative operand.
1064         (isel_unsigned_<mode>): Likewise.
1065
1066 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
1067
1068         PR target/44942
1069         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
1070         argument to const_tree.
1071         * config/i386/i386.c (function_arg_advance): If padding needs to be
1072         inserted before argument, increment cum->words by number of padding
1073         words as well.
1074         (contains_aligned_value_p): Change argument to const_tree.
1075         (ix86_function_arg_boundary): Change second argument to const_tree.
1076
1077 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
1078
1079         PR target/42235
1080         * function.c (record_hard_reg_sets): New static function.
1081         (assign_parm_setup_reg): If an optab for extending exists and the
1082         generated code clobbbers no hard regs, emit the insn directly and
1083         create a REG_EQUIV note.
1084
1085 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1086
1087         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
1088         TREE_CHAIN.
1089         * c-typeck.c (push_init_level): Likewise.
1090         (process_init_element): Likewise.
1091
1092 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
1093
1094         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
1095         (integer_three_node): Add.
1096         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
1097         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
1098         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
1099         of call build_int_cst.
1100         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
1101         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
1102         (find_interesting_uses_address): Ditto.
1103         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
1104         * tree-eh.c (lower_eh_constructs_2): Ditto.
1105         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
1106         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
1107         * expmed.c (expand_divmod): Ditto.
1108         * tree-mudflap.c (mx_register_decls): Ditto.
1109         * varasm.c (array_size_for_constructor): Ditto.
1110         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1111         * c-parser.c (c_parser_postfix_expression): Ditto.
1112
1113 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
1114
1115         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
1116         New static variables.
1117         (reload_combine_recognize_pattern): New static function, broken out
1118         of reload_combine.
1119         (reload_combine): Use it.  Only initialize first_index_reg and
1120         last_index_reg once.
1121
1122 2010-07-15  Richard Henderson  <rth@redhat.com>
1123
1124         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
1125         when done.
1126
1127 2010-07-15  Jan Hubicka  <jh@suse.cz>
1128
1129         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
1130         comdats for broken gold.
1131         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
1132
1133 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1134
1135         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
1136
1137 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
1138
1139         * tree.h (DECL_CHAIN): Define.
1140         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1141         * c-decl.c: Likewise.
1142         * c-parser.c: Likewise.
1143         * c-typeck.c: Likewise.
1144         * cfgexpand.c: Likewise.
1145         * cgraph.c: Likewise.
1146         * cgraphunit.c: Likewise.
1147         * combine.c: Likewise.
1148         * config/alpha/alpha.c: Likewise.
1149         * config/arm/arm.c: Likewise.
1150         * config/frv/frv.c: Likewise.
1151         * config/i386/i386.c: Likewise.
1152         * config/i386/winnt-cxx.c: Likewise.
1153         * config/ia64/ia64.c: Likewise.
1154         * config/iq2000/iq2000.c: Likewise.
1155         * config/mep/mep.c: Likewise.
1156         * config/mips/mips.c: Likewise.
1157         * config/pa/som.h: Likewise.
1158         * config/rs6000/rs6000.c: Likewise.
1159         * config/s390/s390.c: Likewise.
1160         * config/sh/sh.c: Likewise.
1161         * config/sh/symbian-cxx.c: Likewise.
1162         * config/sparc/sparc.c: Likewise.
1163         * config/spu/spu.c: Likewise.
1164         * config/stormy16/stormy16.c: Likewise.
1165         * config/vxworks.c: Likewise.
1166         * config/xtensa/xtensa.c: Likewise.
1167         * coverage.c: Likewise.
1168         * dbxout.c: Likewise.
1169         * dwarf2out.c: Likewise.
1170         * emit-rtl.c: Likewise.
1171         * expr.c: Likewise.
1172         * function.c: Likewise.
1173         * gimple-low.c: Likewise.
1174         * gimple-pretty-print.c: Likewise.
1175         * gimplify.c: Likewise.
1176         * integrate.c: Likewise.
1177         * ipa-inline.c: Likewise.
1178         * ipa-prop.c: Likewise.
1179         * ipa-split.c: Likewise.
1180         * ipa-struct-reorg.c: Likewise.
1181         * ipa-type-escape.c: Likewise.
1182         * langhooks.c: Likewise.
1183         * lto-cgraph.c: Likewise.
1184         * omp-low.c: Likewise.
1185         * stor-layout.c: Likewise.
1186         * tree-cfg.c: Likewise.
1187         * tree-complex.c: Likewise.
1188         * tree-dfa.c: Likewise.
1189         * tree-dump.c: Likewise.
1190         * tree-inline.c: Likewise.
1191         * tree-mudflap.c: Likewise.
1192         * tree-nested.c: Likewise.
1193         * tree-object-size.c: Likewise.
1194         * tree-pretty-print.c: Likewise.
1195         * tree-sra.c: Likewise.
1196         * tree-ssa-live.c: Likewise.
1197         * tree-ssa-loop-niter.c: Likewise.
1198         * tree-ssa-math-opts.c: Likewise.
1199         * tree-ssa-reassoc.c: Likewise.
1200         * tree-ssa-sccvn.c: Likewise.
1201         * tree-ssa-structalias.c: Likewise.
1202         * tree-tailcall.c: Likewise.
1203         * tree-vrp.c: Likewise.
1204         * tree.c: Likewise.
1205         * var-tracking.c: Likewise.
1206         * varasm.c: Likewise.
1207
1208 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1209
1210         PR target/44877
1211         * config/spu/spu.c (spu_expand_builtin_1): Allow references
1212         (as well as pointers) as argument to mask_for_load builtins.
1213
1214 2010-07-15  Richard Guenther  <rguenther@suse.de>
1215
1216         PR tree-optimization/44946
1217         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
1218         with accessing only padding properly.
1219
1220 2010-07-15  Jan Hubicka  <jh@suse.cz>
1221
1222         * ipa.c (function_and_variable_visibility): Variables marked as used
1223         should not be localized.
1224
1225 2010-07-15  Jan Hubicka  <jh@suse.cz>
1226
1227         * cgraph.c: Include lto-streamer.h
1228         (change_decl_assembler_name): Work when assembler name hash is at place.
1229         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
1230         be sure to rename it to avoid name clash.
1231         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
1232         Localize hidden symbols only when locally defined.
1233
1234 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
1235
1236         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
1237
1238 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
1239             Kevin F. Quinn  <kevquinn@gentoo.org>
1240
1241         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
1242         * common.opt: Add -Wtrampolines.
1243         * doc/invoke.texi: Add -Wtrampolines.
1244
1245 2010-07-15  Jie Zhang  <jie@codesourcery.com>
1246
1247         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
1248         cortex_a8_issue_ls.
1249
1250 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
1251
1252         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
1253         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1254
1255 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1256
1257         * config/spu/spu.c (reg_names): Remove prototype.
1258         (call_used_regs): Likewise.
1259
1260 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
1261
1262         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
1263         "unused" with attribute "used".
1264         (__JCR_END__): Likewise.
1265         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
1266         "used" attribute.
1267         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
1268
1269 2010-07-14  Richard Guenther  <rguenther@suse.de>
1270
1271         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
1272         (maybe_fixup_decls): Likewise.
1273         (input_gimple_stmt): Do not fixup anything.
1274         * lto-streamer-out.c (output_gimple_stmt): Make sure all
1275         non-automatic variable uses are wrapped inside a MEM_REF.
1276
1277 2010-07-14  Richard Henderson  <rth@redhat.com>
1278
1279         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
1280         for functions.
1281         * varasm.c (assemble_variable): Remove early exit for functions;
1282         assert that we're given a variable.
1283
1284 2010-07-14  Jie Zhang  <jie@codesourcery.com>
1285
1286         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
1287         cortex_a8_default when neon_type is not none.
1288
1289 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1290
1291         * lower-subreg.c (subreg_context): New static bitmap.
1292         (decompose_multiword_subregs): Allocate and free it.
1293         (find_decomposable_subregs): Set a bit in it for a register that
1294         occurs in a subreg that changes mode but not size.
1295         (can_decompose_p): Test it instead of non_decomposable_context.
1296
1297 2010-07-14  Richard Guenther  <rguenther@suse.de>
1298
1299         PR tree-optimization/44824
1300         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
1301         is_gimple_mem_ref_addr.
1302         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
1303         non-decl_address_invariant_p addresses.
1304
1305 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1306
1307         * reload.c (find_reloads): Revert code to penalize small register
1308         classes that was brought in with the IRA merge.
1309
1310 2010-07-14  Richard Guenther  <rguenther@suse.de>
1311
1312         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
1313         as base of ARRAY_REFs.
1314
1315 2010-07-14  Richard Guenther  <rguenther@suse.de>
1316
1317         PR middle-end/44930
1318         * tree-pretty-print.c (do_niy): Do not print a newline.
1319
1320 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
1321
1322         * ira-int.h (struct ira_object): New.
1323         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
1324         (struct ira_allocno): Remove members min, max,
1325         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
1326         conflict_allocnos_num and conflict_vec_p.  Add new member object.
1327         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
1328         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
1329         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
1330         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
1331         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
1332         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
1333         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
1334         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
1335         an ira_object_t rather than ira_allocno_t.  All uses changed.
1336         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
1337         contains a vector of ira_object_t; all uses changed.
1338         (ira_objects_num): Declare variable.
1339         (ira_create_allocno_object): Declare function.
1340         (ira_conflict_vector_profitable_p): Adjust prototype.
1341         (ira_allocate_conflict_vec): Renamed from
1342         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
1343         (ira_allocate_object_conflicts): Renamed from
1344         ira_allocate_allocno_conflicts; first arg now ira_object_t.
1345         (struct ira_object_iterator): New.
1346         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
1347         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
1348         to conflict_vec_p.  All uses changed.
1349         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
1350         Changed to take into account that conflicts are now tracked for
1351         objects.
1352         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
1353         Args changed to accept ira_object_t.  All uses changed.
1354         (allocnos_conflict_p): New static function.
1355         (collected_conflict_objects): Renamed from collected_allocno_objects;
1356         now a vector of ira_object_t.  All uses changed.
1357         (build_conflict_bit_table): Changed to take into account that
1358         conflicts are now tracked for objects.
1359         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
1360         (print_allocno_conflicts, ira_build_conflicts): Likewise.
1361         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
1362         setup_allocno_left_conflicts_size, allocno_reload_assign,
1363         fast_allocation): Likewise.
1364         * ira-lives.c (make_hard_regno_born, make_allocno_born)
1365         process_single_reg_class_operands, process_bb_node_lives): Likewise.
1366         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
1367         Likewise.
1368         * ira-build.c (ira_objects_num): New variable.
1369         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
1370         contains a vector of ira_object_t; all uses changed.
1371         (ira_object_id_map_vec): Corresponding change.
1372         (object_pool): New static variable.
1373         (initiate_allocnos): Initialize it.
1374         (finish_allocnos): Free it.
1375         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
1376         New functions.
1377         (ira_create_allocno): Don't set members that were removed.
1378         (ira_set_allocno_cover_class): Don't change conflict hard regs.
1379         (merge_hard_reg_conflicts): Changed to take into account that
1380         conflicts are now tracked for objects.
1381         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
1382         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
1383         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
1384         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
1385         setup_min_max_conflict_allocno_ids, ):  Likewise.
1386         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
1387         to ira_object_t; all callers changed.
1388         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
1389         to ira_object_t, all callers changed.
1390         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
1391         to ira_object_t, all callers changed.
1392         (conflict_check, curr_conflict_check_tick): Renamed from
1393         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
1394         changed.
1395         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
1396         arg changed to ira_object_t, all callers changed.
1397         (create_cap_allocno): Call ira_create_allocno_object.
1398         (finish_allocno): Free the corresponding object.
1399         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
1400         callers changed.  Adjusted for dealing with objects.
1401         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
1402         dealing with objects.
1403         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
1404
1405         * ira-int.h (struct live_range): Rename allocno member to object
1406         and change type to ira_object_t.
1407         (struct ira_object): New member live_ranges.
1408         (struct ira_allocno): Remove member live_ranges.
1409         (ALLOCNO_LIVE_RANGES): Remove.
1410         (OBJECT_LIVE_RANGES): New macro.
1411         (ira_create_live_range, ira_copy_live_range_list,
1412         ira_merge_live_range_list, ira_live_ranges_intersect_p,
1413         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
1414         * ira-build.c (ira_create_object): Initialize live ranges here.
1415         (ira_create_allocno): Not here.
1416         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
1417         changed to ira_object_t, all callers changed.
1418         (copy_live_range): Rename from copy_allocno_live_range, all callers
1419         changed.
1420         (ira_copy_live_range_list): Rename from
1421         ira_copy_allocno_live_range_list, all callers changed.
1422         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
1423         all callers changed.
1424         (ira_live_ranges_intersect_p): Rename from
1425         ira_allocno_live_ranges_intersect_p, all callers changed.
1426         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
1427         callers changed.
1428         (ira_finish_live_range_list): Rename from
1429         ira_finish_allocno_live_range_list, all callers changed.
1430         (change_object_in_range_list): Rename from change_allocno_in_range_list,
1431         last arg changed to ira_object_t, all callers changed.
1432         (finish_allocno): Changed to expect live ranges in the allocno's object.
1433         (move_allocno_live_ranges, copy_allocno_live_ranges,
1434         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
1435         ira_flattening, ira_build): Likewise.
1436         * ira-color.c (allocnos_have_intersected_live_ranges_p,
1437         slot_coalesced_allocno_live_ranges_intersect,
1438         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
1439         * ira-conflicts.c (build_conflict_bit_table): Likewise.
1440         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
1441         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
1442         make_allocno_dead, create_start_finish_chains,
1443         remove_some_program_points_and_update_live_ranges,
1444         ira_debug_live_range_list): Likewise.
1445
1446         * ira-int.h (ira_object_conflict_iterator): Rename from
1447         ira_allocno_conflict_iterator.
1448         (ira_object_conflict_iter_init): Rename from
1449         ira_allocno_conflict_iter_init, second arg changed to
1450         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
1451         FOR_EACH_ALLOCNO_CONFLICT.
1452         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
1453         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
1454         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
1455         * ira-conflicts.c (print_allocno_conflicts): Likewise.
1456
1457 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
1458
1459         PR other/44874
1460         * tree-dump.c (dump_options): Add enumerate_locals entry.
1461         Add TDF_NOID exclusion to all entry.
1462         * tree-dump.h (dump_enumerated_decls): Declare.
1463         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
1464         Don't display type uid.
1465         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
1466         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
1467         * tree-ssa-live.c: Include gimple.h.
1468         (numbered_tree_d): New struct.
1469         (numbered_tree): New typedef.
1470         (DEF_VEC_O (numbered_tree): New.
1471         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
1472         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
1473         (dump_enumerated_decls): Likewise.
1474         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
1475         debug info and flag_dump_final_insns, call dump_enumerated_decls.
1476         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
1477         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
1478
1479 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
1480
1481         * expmed.h (MAX_BITS_PER_WORD): Move to...
1482         * defaults.h (MAX_BITS_PER_WORD): ...here.
1483
1484 2010-07-13  DJ Delorie  <dj@redhat.com>
1485
1486         * config/h8300/h8300.c (h8300_init_once): Default to
1487         -fstrict_volatile_bitfields.
1488
1489         * config/sh/sh.c (sh_override_options): Default to
1490         -fstrict_volatile_bitfields.
1491
1492         * config/rx/rx.c (rx_option_override): New.
1493
1494         * config/m32c/m32c.c (m32c_override_options): Default to
1495         -fstrict_volatile_bitfields.
1496
1497 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
1498
1499         * tree.h (build_function_call_expr): Delete.
1500         (build_call_expr_loc_array): New function.
1501         (build_call_expr_loc_vec): New function.
1502         * tree-flow.h (struct omp_region): Change type of ws_args field
1503         to a VEC.
1504         * builtins.c (build_function_call_expr): Delete.
1505         (build_call_expr_loc_array): New function.
1506         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
1507         (build_call_expr): Likewise.
1508         (build_call_expr_loc_vec): New function.
1509         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
1510         build_function_call_expr.
1511         * expr.c (emutls_var_address): Likewise.
1512         * varasm.c (emutls_common_1): Likewise.
1513         * omp-low.c (expand_omp_atomic_mutex): Likewise.
1514         (expand_omp_taskreg): Adjust for new type of region->ws_args.
1515         (get_ws_args_for): Return a VEC instead of a tree.
1516         (expand_parallel_call): Call build_call_expr_loc_vec instead of
1517         build_function_call_expr.
1518         * stor-layout.c (self_referential_size): Likewise.
1519
1520 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
1521
1522         PR testsuite/44701
1523         * recog.c (constrain_operands): Allow side-effects in memory
1524         operands if either < or > constraint is used, rather than if
1525         both < and > is used.
1526
1527 2010-07-13  Richard Guenther  <rguenther@suse.de>
1528
1529         PR middle-end/44911
1530         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
1531         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
1532         without name.
1533
1534 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
1535
1536         PR target/44761
1537         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
1538         to variable emited.
1539         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
1540         * config/sh/sh.md (symGOT_load): Likewise.
1541         (symDTPOFF2reg): Likewise.
1542         (symTPOFF2reg): Likewise.
1543
1544 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1545
1546         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
1547         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
1548
1549 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1550
1551         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
1552         explanation.
1553         Find ucontext_t * on Solaris 11.
1554         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
1555         Handle new Solaris 11 __sighndlr patterns.
1556
1557 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
1558
1559         PR debug/44901
1560         * vec.h (VEC_block_remove): Fix comment.
1561         * tree-ssa-live.c (remove_unused_locals): Don't use
1562         VEC_unordered_remove on local_decls, instead replace a single
1563         vector element in each iteration if at least one element had
1564         to be removed and VEC_truncate at the end.
1565         * omp-low.c (expand_omp_taskreg): Likewise.
1566
1567 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1568
1569         * c-decl.c (finish_function): Fix typo in comment.
1570
1571 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
1572
1573         PR bootstrap/44921
1574         * postreload.c (move2add_use_add3_insn): Silence gcc warning
1575         on min_regno.
1576
1577 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
1578
1579         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
1580         (simplify_stmt_using_ranges): Use it.
1581
1582 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1583
1584         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
1585         member.  Do not mark as GTY(()).
1586         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
1587         (spu_builtin_decls): New static variable.
1588         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
1589         (spu_init_builtins): Likewise.
1590         (spu_builtin_mul_widen_even): Likewise.
1591         (spu_builtin_mul_widen_odd): Likewise.
1592         (spu_builtin_mask_for_load): Likewise.
1593         (spu_builtin_vec_perm): Likewise.
1594         * config/spu/spu-c.c: Include "target.h".
1595         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
1596         of using spu_builtins[].fndecl.
1597
1598 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1599
1600         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
1601         imply -minterlink-mips16.
1602
1603 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1604
1605         * config/mips/mips.h (mips16_globals): Declare.
1606         (SWITCHABLE_TARGET): Define.
1607         * config/mips/mips.c: Include target-globals.h.
1608         (mips16_globals): New variable.
1609         (mips_set_mips16_mode): Use save_target_globals and
1610         restore_target_globals instead of target_reinit.
1611
1612 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1613
1614         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
1615         to say that the function can be called more than once.
1616         * target-globals.c (save_target_globals): Call init_reg_sets.
1617
1618 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1619
1620         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
1621         * bb-reorder.h: New file.
1622         * bb-reorder.c (default_target_bb_reorder): New variable.
1623         (this_target_bb_reorder): New conditional variable.
1624         (uncond_jump_length): Redefine as a macro.
1625         * target-globals.h (this_target_bb_reorder): Declare.
1626         (target_globals): Add a bb_reorder field.
1627         (restore_target_globals): Copy the bb_reorder field to
1628         this_target_bb-reorder.
1629         * target-globals.c: Include bb-reorder.h.
1630         (default_target_globals): Initialize the bb_reorder field.
1631         (save_target_globals): Likewise.
1632
1633 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1634
1635         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
1636         * gcse.h: New file.
1637         * gcse.c: Include gcse.h.
1638         (default_target_gcse): New variable.
1639         (this_target_gcse): New conditional variable.
1640         (can_copy): Redefine as a macro.
1641         (can_copy_init_p): New macro.
1642         (can_copy_p): Remove can_copy_init_p.
1643         * target-globals.h (this_target_gcse): Declare.
1644         (target_globals): Add a gcse field.
1645         (restore_target_globals): Copy the gcse field to this_target_gcse.
1646         * target-globals.c: Include gcse.h.
1647         (default_target_globals): Initialize the gcse field.
1648         (save_target_globals): Likewise.
1649
1650 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1651
1652         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
1653         and x_ira_prohibited_mode_move_regs_initialized_p.
1654         (ira_prohibited_mode_move_regs): Redefine as a macro.
1655         * ira.c (ira_prohibited_mode_move_regs): Delete.
1656         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
1657
1658 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1659
1660         * reload.h (target_reload): Add x_cached_reg_save_code and
1661         x_cached_reg_restore_code.
1662         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
1663         Redefine as macros.
1664
1665 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1666
1667         * Makefile.in (target-globals.o): Depend on builtins.h.
1668         * builtins.h: New file.
1669         * builtins.c: Include builtins.h.
1670         (default_target_builtins): New variable.
1671         (this_target_builtins): New conditional variable.
1672         (apply_args_mode, apply_result_mode): Redefine as macros.
1673         * target-globals.h (this_target_builtins): Declare.
1674         (target_globals): Add a builtins field.
1675         (restore_target_globals): Copy the builtins field to
1676         this_target_builtins.
1677         * target-globals.c: Include builtins.h.
1678         (default_target_globals): Initialize the builtins field.
1679         (save_target_globals): Likewise.
1680
1681 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1682
1683         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
1684         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
1685         from expmed.c.
1686         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
1687         (alg_hash, alg_hash_used_p): New macros.
1688         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
1689         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
1690         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
1691
1692 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1693
1694         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
1695         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
1696         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
1697         (this_op_costs, costs_classes): Redefine as macros.
1698         (record_reg_classes): Don't take op_costs as a parameter.
1699         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
1700         (scan_one_insn): Update call to record_operand_costs.
1701
1702 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1703
1704         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
1705         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
1706         (target_ira_int): New structure.
1707         (default_target_ira_int): Declare.
1708         (this_target_ira_int): Declare as a variable or define as a macro.
1709         (ira_reg_mode_hard_regset, ira_register_move_cost)
1710         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
1711         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
1712         (prohibited_class_mode_regs, ira_important_classes_num)
1713         (ira_important_classes, ira_reg_class_intersect)
1714         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
1715         (ira_reg_class_union): Redefine as macros.
1716         * ira.h (target_ira): New structure.
1717         (default_target_ira): Declare.
1718         (this_target_ira): Declare as a variable or define as a macro.
1719         (ira_available_class_regs, ira_hard_regno_cover_class)
1720         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
1721         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
1722         (ira_class_hard_regs_num): Redefine as macros.
1723         * ira.c (default_target_ira, default_target_ira_int): New variables.
1724         (this_target_ira, this_target_ira_int): New conditional variables.
1725         (ira_reg_mode_hard_regset, ira_memory_move_cost)
1726         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
1727         (ira_class_subset_p): Delete.
1728         (no_unit_alloc_regs): Redefine as a macro.
1729         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
1730         (ira_class_hard_regs_num, ira_class_hard_reg_index)
1731         (ira_available_class_regs): Delete.
1732         (alloc_reg_class_subclasses): Redefine as a macro.
1733         (ira_reg_class_cover_size, ira_reg_class_cover)
1734         (ira_important_classes_num, ira_important_classes)
1735         (ira_important_class_nums, ira_class_translate): Delete.
1736         (cover_class_order): Document the variable's lifetime.
1737         (reorder_important_classes): Don't set ira_important_class_nums.
1738         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
1739         (ira_reg_class_super_classes, ira_reg_class_union)
1740         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
1741         Delete.
1742         (setup_reg_class_nregs): Don't set ira_max_regs.
1743         (prohibited_class_mode_regs): Delete.
1744         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
1745         (target_globals): Add ira and ira_int fields.
1746         (restore_target_globals): Copy the ira field to this_target_ira
1747         and the ira_int field to this_target_ira_int.
1748         * target-globals.c: Include ira-int.h.
1749         (default_target_globals): Initialize the ira and ira_int fields.
1750         (save_target_globals): Likewise.
1751
1752 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1753
1754         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
1755         * cfgloop.h (target_cfgloop): New structure.
1756         (default_target_cfgloop): Declare.
1757         (this_target_cfgloop): Declare as a variable or define as a macro.
1758         (target_avail_regs, target_clobbered_regs, target_res_regs)
1759         (target_reg_cost, target_spill_cost): Redefine as macros.
1760         * cfgloopanal.c (default_target_cfgloop): New variable.
1761         (this_target_cfgloop): New conditional variable.
1762         (target_avail_regs, target_clobbered_regs, target_res_regs)
1763         (target_reg_cost, target_spill_cost): Delete.
1764         * target-globals.h (this_target_cfgloop): Declare.
1765         (target_globals): Add a cfgloop field.
1766         (restore_target_globals): Copy the cfgloop field to
1767         this_target_cfgloop.
1768         * target-globals.c: Include cfgloop.h.
1769         (default_target_globals): Initialize the cfgloop field.
1770         (save_target_globals): Likewise.
1771
1772 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1773
1774         * regs.h (target_regs): Add x_direct_load, x_direct_store and
1775         x_float_extend_from_mem.
1776         (direct_load, direct_store, float_extend_from_mem): New macros.
1777         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
1778
1779 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1780
1781         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
1782         (target-globals.o): Depend on $(LIBFUNCS_H).
1783         * libfuncs.h: Include hashtab.h.
1784         (libfunc_entry): Moved from optabs.c.
1785         (target_libfuncs): New structure.
1786         (default_target_libfuncs): Declare.
1787         (this_target_libfuncs): Declare as a variable or define as a macro.
1788         (libfunc_table): Redefine as a macro.
1789         * optabs.c (default_target_libfuncs): New variable.
1790         (this_target_libfuncs): New conditional variable.
1791         (libfunc_table): Delete.
1792         (libfunc_entry): Moved to optabs.h.
1793         (libfunc_hash): Redefine as a macro.
1794         (hash_libfunc, eq_libfunc): Fix comments.
1795         (init_optabs): Use libfunc_hash to detect cases where the function
1796         has already been called.  Clear the hash table instead of
1797         recreating it.
1798         * target-globals.h (this_target_libfuncs): Declare.
1799         (target_globals): Add a libfuncs field.
1800         (restore_target_globals): Copy the libfuncs field to
1801         this_target_libfuncs.
1802         * target-globals.c: Include libfuncs.h.
1803         (default_target_globals): Initialize the libfuncs field.
1804         (save_target_globals): Likewise.
1805
1806 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1807
1808         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
1809         in all dependency lists.
1810
1811 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1812
1813         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
1814         * optabs.h (target_optabs): New structure.
1815         (default_target_optabs): Declare.
1816         (this_target_optabs): Declare as a variable or define as a macro.
1817         (optab_table, convert_optab_table, direct_optab_table): Redefine
1818         as macros.
1819         * optabs.c (default_target_optabs): New variable.
1820         (this_target_optabs): New conditional variable.
1821         (optab_table, convert_optab_table, direct_optab_table): Delete.
1822         * target-globals.h (this_target_optabs): Declare.
1823         (target_globals): Add a optabs field.
1824         (restore_target_globals): Copy the optabs field to
1825         this_target_optabs.
1826         * target-globals.c: Include expr.h and optabs.h.
1827         (default_target_globals): Initialize the optabs field.
1828         (save_target_globals): Likewise.
1829
1830 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1831
1832         * flags.h (target_flagstate): Add x_flag_excess_precision.
1833         (flag_excess_precision): Redefine as a macro.
1834         * toplev.c (flag_excess_precision): Delete.
1835
1836 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1837
1838         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
1839         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
1840         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
1841         (no_caller_save_reg_set): Redefine as a macro.
1842         * reload.h (target_reload): Add x_caller_save_initialized_p and
1843         x_regno_save_mode.
1844         (caller_save_initialized_p): Redefine as a macro.
1845         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
1846         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
1847         (regno_save_mode): Redefine as a macro.
1848
1849 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1850
1851         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
1852         * expmed.h: New file.
1853         * expmed.c (default_target_costs): New variable.
1854         (this_target_costs): New conditional variable.
1855         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
1856         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
1857         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
1858         * target-globals.h (this_target_expmed): Declare.
1859         (target_globals): Add a expmed field.
1860         (restore_target_globals): Copy the expmed field to
1861         this_target_expmed.
1862         * target-globals.c: Include expmed.h.
1863         (default_target_globals): Initialize the expmed field.
1864         (save_target_globals): Likewise.
1865
1866 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1867
1868         * Makefile.in (target-globals.o): Depend on reload.h.
1869         * reload.h (target_reload): New structure.
1870         (default_target_reload): Declare.
1871         (this_target_reload): Declare as a variable or define as a macro.
1872         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
1873         * reload1.c (default_target_reload): New variable
1874         (this_target_reload): New conditional variable.
1875         (indirect_symref_ok, double_reg_address_ok): Delete.
1876         (spill_indirect_levels): Redefine as a macro.
1877         * target-globals.h (this_target_reload): Declare.
1878         (target_globals): Add a reload field.
1879         (restore_target_globals): Copy the reload field to
1880         this_target_reload.
1881         * target-globals.c: Include hard-reg-set.h.
1882         (default_target_globals): Initialize the reload field.
1883         (save_target_globals): Likewise.
1884
1885 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1886
1887         * rtl.h (target_rtl): Add x_static_reg_base_value.
1888         * alias.c (static_reg_base_value): Redefine as a macro.
1889
1890 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1891
1892         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
1893         (GTFILES): Remove reginfo.c.
1894         * rtl.h (target_rtl): Add x_top_of_stack.
1895         (top_of_stack): New macro.
1896         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
1897         (top_of_stack): Delete.
1898
1899 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1900
1901         * regs.h (target_regs): Add x_hard_regs_of_mode,
1902         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
1903         x_may_move_out_cost and x_last_mode_for_init_move_cost.
1904         (have_regs_of_mode, contains_reg_of_mode, move_cost)
1905         (may_move_in_cost, may_move_out_cost): Redefine as macros.
1906         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
1907         (may_move_in_cost, may_move_out_cost): Delete.
1908         (last_mode_for_init_move_cost): Redefine as a macro.
1909
1910 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1911
1912         * hard-reg-set.h (target_hard_regs): New structure.
1913         (default_target_hard_regs): Declare.
1914         (this_target_hard_regs): Declare as a variable or define as a macro.
1915         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
1916         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
1917         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
1918         (reg_class_size, reg_class_subclasses, reg_class_subunion)
1919         (reg_class_superunion, reg_names): Redefine as macros.
1920         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
1921         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
1922         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
1923         (reg_class_contents, reg_class_size, reg_class_subclasses)
1924         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
1925         (default_target_hard_regs): New variable
1926         (this_target_hard_regs, initial_call_really_used_regs)
1927         (initial_reg_alloc_order): New conditional variables.
1928         (initial_reg_names): New variable.
1929         (init_reg_sets): Assert that initial_call_really_used_regs,
1930         initial_reg_alloc_order and initial_reg_names
1931         are all the same size as their variable counterparts.  Use them to
1932         initialize those counterparts.
1933         * target-globals.h (this_target_hard_regs): Declare.
1934         (target_globals): Add a hard_regs field.
1935         (restore_target_globals): Copy the hard_regs field to
1936         this_target_hard_regs.
1937         * target-globals.c: Include hard-reg-set.h.
1938         (default_target_globals): Initialize the hard_regs field.
1939         (save_target_globals): Likewise.
1940
1941 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1942
1943         * Makefile.in (target-globals.o): Depend on $(RTL_H).
1944         * rtl.h (target_rtl): New structure.
1945         (default_target_rtl): Declare.
1946         (this_target_rtl): Declare as a variable or define as a macro.
1947         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
1948         Redefine as macros.
1949         * emit-rtl.c (default_target_rtl): New variable.
1950         (this_target_rtl): New conditional variable.
1951         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
1952         (return_address_pointer_rtx): Delete.
1953         (initial_regno_reg_rtx): New macro.
1954         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
1955         (init_emit_regs): Likewise.
1956         * target-globals.h (this_target_rtl): Declare.
1957         (target_globals): Add a rtl field.
1958         (restore_target_globals): Copy the rtl field to this_target_rtl.
1959         * target-globals.c: Include rtl.h.
1960         (default_target_globals): Initialize the rtl field.
1961         (save_target_globals): Likewise.
1962
1963 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1964
1965         * Makefile.in (target-globals.o): Depend on $(REGS_H).
1966         * regs.h (target_reg_modes): New structure.
1967         (default_target_reg_modes): Declare.
1968         (this_target_reg_modes): Declare as a variable or define as a macro.
1969         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
1970         * reginfo.c (default_target_reg_modes): New variable.
1971         (this_target_reg_modes): New conditional variable.
1972         (hard_regno_nregs, reg_raw_mode): Delete.
1973         * target-globals.h (this_target_regs): Declare.
1974         (target_globals): Add a regs field.
1975         (restore_target_globals): Copy the regs field to this_target_regs.
1976         * target-globals.c: Include regs.h.
1977         (default_target_globals): Initialize the regs field.
1978         (save_target_globals): Likewise.
1979
1980 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1981
1982         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
1983         * doc/tm.texi: Regenerate.
1984         * Makefile.in (OBJS-common): Add target-globals.o.
1985         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
1986         and target-globals.h.
1987         (target-globals.o): New rule.
1988         (GTFILES): Include $(srcdir)/target-globals.h.
1989         * defaults.h (SWITCHABLE_TARGET): Define.
1990         * gengtype.c (open_base_files): Add target-globals.h to the
1991         list of includes.
1992         * target-globals.h: New file.
1993         * target-globals.c: Likewise.
1994
1995         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
1996         * flags.h (target_flag_state): New structure.
1997         (default_target_flag_state): Declare.
1998         (this_target_flag_state): Declare as a variable or define as a macro.
1999         (align_loops_log): Redefine as a macro.
2000         (align_loops_max_skip, align_jumps_log): Likewise.
2001         (align_jumps_max_skip, align_labels_log): Likewise.
2002         (align_labels_max_skip, align_functions_log): Likewise.
2003         * toplev.c (default_target_flag_state): New variable.
2004         (this_target_flag_state): New conditional variable.
2005         (align_loops_log): Delete.
2006         (align_loops_max_skip, align_jumps_log): Likewise.
2007         (align_jumps_max_skip, align_labels_log): Likewise.
2008         (align_labels_max_skip, align_functions_log): Likewise.
2009         * target-globals.h (this_target_flag_state): Declare.
2010         (target_globals): Add a flag_state field.
2011         (restore_target_globals): Copy the flag_state field to
2012         this_target_flag_state.
2013         * target-globals.c: Include flags.h.
2014         (default_target_globals): Initialize the flag_state field.
2015         (save_target_globals): Likewise.
2016
2017 2010-07-12  Jie Zhang  <jie@codesourcery.com>
2018
2019         * postreload.c (reg_symbol_ref[]): New.
2020         (move2add_use_add2_insn): New.
2021         (move2add_use_add3_insn): New.
2022         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
2023         (move2add_note_store): Likewise.
2024
2025 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
2026
2027         PR rtl-optimization/44752
2028         * genautomata.c (main): Don't emit an empty file even if there
2029         is no automaton.
2030
2031 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2032
2033         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
2034         ix86_solaris_return_in_memory.
2035         * config/i386-protos.h: Reflect this.
2036         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
2037         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
2038         Move ...
2039         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
2040
2041 2010-07-12  Jie Zhang  <jie@codesourcery.com>
2042
2043         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
2044         align the stack when it's going to be saved.
2045
2046 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2047
2048         PR pch/14940
2049         * config/host-solaris.c (mmap_fixed): New function.
2050         (sol_gt_pch_get_address): Use it.
2051         (sol_gt_pch_use_address): Likewise.
2052
2053 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2054
2055         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2056         pentiumpro on Solaris 8 and 9/x86.
2057         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
2058         Document SSE/SSE2 support.
2059         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
2060
2061 2010-07-12  Andi Kleen  <ak@linux.intel.com>
2062
2063         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
2064         instead of gcc_assert to print better error message for multiple
2065         prevailing defs.
2066
2067 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
2068
2069         * config/i386/i386.c (ix86_asm_output_function_label): Change format
2070         string placeholder from 0x%x to %#x.
2071         (ix86_code_end): Use putc to output '\n'.
2072         (ix86_print_operand) <case ';'>: Use putc to output ';'.
2073
2074 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
2075
2076         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
2077         in directive -export.
2078
2079 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
2080
2081         * reginfo.h (reg_classes_intersect_p): Change arguments type to
2082         reg_class_t.
2083         * rtl.h (reg_classes_intersect_p): Adjust prototype.
2084
2085         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2086         Remove macros.
2087         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
2088         rs6000_memory_move_cost): Remove
2089         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
2090         TARGET_MEMORY_MOVE_COST): Define.
2091         (rs6000_register_move_cost): Make static. Change arguments type from
2092         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
2093         (rs6000_memory_move_cost): Make static. Change arguments type from
2094         'enum reg_class' to reg_class_t.
2095
2096 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
2097
2098         PR middle-end/42505
2099         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
2100         lookup code into....
2101         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
2102         new functions.
2103         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
2104         * cfgloopanal.c (target_clobbered_regs): Define.
2105         (init_set_costs): Initialize target_clobbered_regs.
2106         (estimate_reg_pressure_cost): Add call_p argument.  When true,
2107         adjust the number of available registers to exclude the
2108         call-clobbered registers.
2109         * cfgloop.h (target_clobbered_regs): Declare.
2110         (estimate_reg_pressure_cost): Adjust declaration.
2111         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
2112         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
2113         (determine_set_costs): Dump target_clobbered_regs.
2114         (loop_body_includes_call): New function.
2115         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
2116         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
2117         call_p flag through.
2118         (best_gain_for_invariant): Likewise.
2119         (find_invariants_to_move): Likewise.
2120         (move_single_loop_invariants): Likewise, using already-computed
2121         has_call field.
2122
2123 2010-07-10  Richard Guenther  <rguenther@suse.de>
2124             Joern Rennecke  <joern.rennecke@embecosm.com>
2125
2126         PR debug/44832
2127         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
2128         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
2129         unless they have DECL_IGNORED_P set.
2130
2131 2010-07-10  Richard Guenther  <rguenther@suse.de>
2132
2133         PR lto/44889
2134         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
2135         helper function.
2136         (gimple_types_compatible_p): Similar to pointed-to
2137         types allow and merge a mix of complete and incomplete aggregate.
2138         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
2139         (iterative_hash_gimple_type): Adjust for that.
2140
2141 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
2142
2143         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
2144
2145 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
2146
2147         PR objc/44140
2148         * config/darwin.c (output_objc_section_asm_op): Save and restore
2149         section when outputting ObjC section list.
2150
2151 2010-07-09  Jan Hubicka  <jh@suse.cz>
2152
2153         * lto-streamer-out.c (produce_symtab): Do not write alias
2154         cgraph/varpool nodes.
2155
2156 2010-07-09  Jan Hubicka  <jh@suse.cz>
2157
2158         * tree-inline.c (declare_return_variable): Fix ICE while
2159         inlining DECL_BY_VALUE function not in SSA form
2160
2161 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
2162
2163         PR tree-optimization/44576
2164         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
2165         New.  Pull out from is_loop_prefetching_profitable to implement
2166         the trip count to ahead ratio heuristic.
2167         (mem_ref_count_reasonable_p): New.  Pull out from
2168         is_loop_prefetching_profitable to implement the instruction to
2169         memory reference ratio heuristic.  Also consider not reasonable if
2170         the memory reference count is above a threshold (to avoid
2171         explosive compilation time.
2172         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
2173         is_loop_prefetching_profitable to implement the instruction to
2174         prefetch ratio heuristic.
2175         (is_loop_prefetching_profitable): Removed.
2176         (loop_prefetch_arrays): Distribute the cost analysis across the
2177         function to allow early exit of the prefetch analysis.
2178         is_loop_prefetching_profitable is splitted into three functions,
2179         with each one called as early as possible.
2180         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
2181         number of memory references in a loop is considered too many.
2182
2183 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
2184
2185         * reload.c (find_reloads): Don't clear badop if we have a winreg
2186         alternative, but not win, and the class only has fixed regs.
2187         * hard-reg-set.h (class_only_fixed_regs): Declare.
2188         * reginfo.c (class_only_fixed_regs): New array.
2189         (init_reg_sets_1): Initialize it.
2190         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
2191         discourage alternatives using the stack pointer.
2192
2193         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
2194
2195         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
2196
2197         * config/arm/arm.md (cbranchqi4): Fix array size.
2198         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
2199         calculating length.
2200
2201 2010-07-09  Richard Guenther  <rguenther@suse.de>
2202
2203         * gimple.c (struct type_fixup_s): New struct and VEC type.
2204         (gimple_register_type_fixups): New static global.
2205         (gimple_queue_type_fixup): New function.
2206         (gimple_types_compatible_p): Queue type fixups instead of
2207         applying them here.
2208         (gimple_register_type): Apply queued fixups for the
2209         canonical type.  Empty the type fixup queue.
2210
2211 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2212
2213         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
2214         * configure: Regenerate.
2215         * config.in: Ditto.
2216
2217 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
2218             Denys Vlasenko  <dvlasenk@redhat.com>
2219             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2220
2221         PR tree-optimization/28632
2222         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
2223         (extract_range_from_binary_expr): Further optimize
2224         BIT_AND_EXPR and BIT_IOR_EXPR.
2225
2226 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2227
2228         * tree-if-conv.c (fold_or_predicates): New.
2229         (add_to_predicate_list): Call it.
2230
2231 2010-07-09  Richard Guenther  <rguenther@suse.de>
2232
2233         PR middle-end/44890
2234         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
2235         if base is a pointer.
2236         * tree-cfg.c (verify_expr): Update MEM_REF checking.
2237
2238 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2239
2240         PR target/44877
2241         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
2242         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
2243         builtin mask for load/store builtins.
2244
2245 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2246
2247         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
2248         for "lock addl".
2249         * configure: Regenerate.
2250         * config/i386/i386.c (ix86_print_operand) <case ';'>:
2251         Remove TARGET_MACHO.
2252
2253 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
2254
2255         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
2256         default ISA flags.
2257         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
2258
2259 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
2260
2261         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
2262
2263 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2264
2265         * config/picochip/picochip.md (commsTestPort): Emit more
2266         efficient sequence for tstport instruction.
2267
2268 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
2269
2270         * config/i386/i386.c (ix86_veclib_handler): Make static.
2271
2272 2010-07-09  Richard Guenther  <rguenther@suse.de>
2273
2274         PR tree-optimization/44852
2275         * tree-ssa-alias.c: Include toplev.h for exact_log2.
2276         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
2277         in MEM_REF.
2278         (indirect_refs_may_alias_p): Likewise.
2279         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
2280
2281 2010-07-09  Richard Guenther  <rguenther@suse.de>
2282
2283         PR tree-optimization/44882
2284         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
2285         sets do conflict.
2286         (vectorizable_load): Likewise.
2287
2288 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
2289
2290         PR target/40657
2291         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
2292         All callers changed.
2293         Handle the case when we're called for the epilogue.
2294         (thumb_unexpanded_epilogue): Use it.
2295         (thumb1_expand_epilogue): Likewise.
2296
2297 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
2298
2299         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
2300         both ranges are range_int_cst_p with non-negative minimum,
2301         try harder to derive smaller range.
2302
2303 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2304
2305         * genrecog.c: Include diagnostic-core.h before toplev.h.
2306         * genoutput.c: Likewise.
2307         * genextract.c: Likewise.
2308         * genautomata.c: Likewise.
2309         * genemit.c: Likewise.
2310         * genpeep.c: Likewise.
2311         * genattrtab.c: Likewise.
2312         * genconditions.c: Likewise.
2313         * genpreds.c: Likewise.
2314
2315 2010-07-08  Andi Kleen  <ak@linux.intel.com>
2316
2317         * lto-section-in.c (lto_section_name): Add missing comma.
2318
2319 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
2320
2321         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
2322         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
2323         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
2324         (ia64_override_options): Rename to...
2325         (ia64_option_override): ... this one. Make static.
2326
2327 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2328
2329         PR middle-end/44843
2330         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
2331         pointed-to type of the offset in a MEM_REF to compute the alignment.
2332
2333 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
2334
2335         * final.c (final_scan_insn): Replace
2336         TARGET_UNWIND_INFO macro check by unwind_emit
2337         hook NULL check.
2338         * targhooks.c (default_unwind_emit): Removed.
2339         * targhooks.h (default_unwind_emit): Likewise.
2340         * target.def (unwind_emit): Set default value to NULL.
2341
2342         * config/i386/i386-protos.h (ix86_asm_output_function_label):
2343         New prototype.
2344         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
2345         for NULL fntype argument and allow 64-bit targets.
2346         (ix86_asm_output_function_label): New function.
2347         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
2348         (ix86_handle_fndecl_attribute): Likewise.
2349         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
2350         * doc/doc/tm.texi: Regenerated.
2351         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
2352         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
2353         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
2354         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
2355         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
2356         * config/elfos.h: Likewise.
2357         * config/i386/cygming.h: Likewise.
2358         * config/netbsd-aout.h: Likewise.
2359         * config/openbsd.h: Likewise.
2360         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
2361         by ix86_asm_output_function_label function call.
2362         * varasm.c (assemble_start_function): Use
2363         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
2364
2365 2010-07-08  Jan Hubicka  <jh@suse.cz>
2366
2367         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
2368         New function.
2369         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
2370         Declare.
2371         * ipa-cp.c (ipcp_estimate_growth): Use it.
2372         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
2373         Likewise.
2374
2375 2010-07-08  Jan Hubicka  <jh@suse.cz>
2376
2377         * tree-inline.c (declare_return_variable): Allocate annotation for new
2378         temporary.
2379
2380 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
2381
2382         PR tree-optimization/44710
2383         * tree-if-conv.c (parse_predicate): New.
2384         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
2385         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
2386
2387 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
2388
2389         * common.opt (ftree-loop-if-convert): New flag.
2390         * doc/invoke.texi (ftree-loop-if-convert): Documented.
2391         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
2392         when flag_tree_loop_if_convert is set.
2393
2394 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
2395
2396         * config/i386/i386.c: Use short syntax for function calls
2397         through function pointers.
2398         * config/i386/i386.md: Ditto.
2399
2400 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2401
2402         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
2403
2404 2010-07-08  Richard Guenther  <rguenther@suse.de>
2405
2406         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
2407         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
2408
2409 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
2410
2411         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
2412         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
2413         (loc_list_from_tree): Likewise.
2414         (output_loc_operands): Handle outputting DW_OP_const[48]u
2415         with loc->dtprel set.
2416         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
2417
2418 2010-07-08  Jan Hubicka  <jh@suse.cz>
2419
2420         * ipa.c: Include pointer-set.h
2421         (cgraph_externally_visible_p): New attribute ALIASED;
2422         when in LTO, hidden symbols are local unless they are aliased.
2423         (function_and_variable_visibility): Compute aliased nodes;
2424         handle LTO and hidden symbol on functions and vars.
2425         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
2426         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
2427
2428 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2429
2430         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2431         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2432         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2433         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2434         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2435         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
2436         (ix86_gen_probe_stack_range): Likewise.
2437         (override_options): Set them.
2438         (ix86_target_stack_probe): New function.
2439         (ix86_compute_frame_layout): Force use of push instructions to
2440         save registers if stack checking with probes is enabled.
2441         (get_scratch_register_on_entry): New function.
2442         (release_scratch_register_on_entry): Likewise.
2443         (ix86_adjust_stack_and_probe): Likewise.
2444         (output_adjust_stack_and_probe): Likewise.
2445         (ix86_emit_probe_stack_range): Likewise.
2446         (output_probe_stack_range): Likewise.
2447         (ix86_expand_prologue): Emit stack checking code if static built-in
2448         stack checking is enabled.
2449         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
2450         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
2451         (output_adjust_stack_and_probe): Likewise.
2452         (output_probe_stack_range): Likewise.
2453         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2454         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
2455         TARGET_STACK_PROBE.
2456         (allocate_stack_worker_64): Likewise.
2457         (allocate_stack): Likewise.
2458         (adjust_stack_and_probe): New insn.
2459         (probe_stack_range): Likewise.
2460
2461 2010-07-08  Richard Guenther  <rguenther@suse.de>
2462
2463         PR tree-optimization/44831
2464         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
2465         a MEM_REF preserving TBAA info of the original dereference.
2466         Dereference the original pointer if the address is not invariant.
2467         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
2468         at least one invariant address that we are going to dereference.
2469
2470 2010-07-08  Richard Guenther  <rguenther@suse.de>
2471
2472         PR tree-optimization/44861
2473         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
2474         information when building MEM_REFs.
2475         (vectorizable_load): Likewise.
2476         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
2477
2478 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2479
2480         * config/sol2-c.c: Do not include diagnostic-core.h.
2481
2482 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2483
2484         PR bootstrap/44768
2485         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
2486         with respect to current_function_decl. Pass decl of the function.
2487         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
2488         * ipa-inline.c (compute_inline_parameters): Pass decl to
2489         estimated_stack_frame_size.
2490
2491 2010-07-08  Richard Guenther  <rguenther@suse.de>
2492
2493         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2494         New function.
2495         (valueize_refs): Call it.
2496
2497 2010-07-08  Richard Guenther  <rguenther@suse.de>
2498
2499         PR rtl-optimization/44838
2500         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
2501         SSA form do not use pointer equivalence.
2502
2503 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
2504
2505         * dwarf2out.c (AT_linkage_name): Delete.
2506         (add_linkage_attr): New function.
2507         (add_linkage_name): Call it to emit the linkage attribute.
2508         (dwarf2out_finish): Likewise.
2509         (move_linkage_attr): Explicitly accept both attribute variants.
2510
2511 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2512
2513         * toplev.h: Do not include diagnostic-core.h.
2514         Include diagnostic-core.h in every file that includes toplev.h.
2515         * c-tree.h: Do not include toplev.h.
2516         * pretty-print.h: Update comment.
2517         * Makefile.in: Update dependencies.
2518         * alias.c: Include diagnostic-core.h in every file that includes
2519         toplev.h.
2520         * attribs.c: Likewise.
2521         * auto-inc-dec.c: Likewise.
2522         * bb-reorder.c: Likewise.
2523         * bt-load.c: Likewise.
2524         * caller-save.c: Likewise.
2525         * calls.c: Likewise.
2526         * cfg.c: Likewise.
2527         * cfganal.c: Likewise.
2528         * cfgbuild.c: Likewise.
2529         * cfgcleanup.c: Likewise.
2530         * cfghooks.c: Likewise.
2531         * cfgloop.c: Likewise.
2532         * combine.c: Likewise.
2533         * config/alpha/alpha.c: Likewise.
2534         * config/arc/arc.c: Likewise.
2535         * config/arm/arm.c: Likewise.
2536         * config/arm/pe.c: Likewise.
2537         * config/avr/avr.c: Likewise.
2538         * config/bfin/bfin.c: Likewise.
2539         * config/cris/cris.c: Likewise.
2540         * config/crx/crx.c: Likewise.
2541         * config/darwin-c.c: Likewise.
2542         * config/darwin.c: Likewise.
2543         * config/fr30/fr30.c: Likewise.
2544         * config/frv/frv.c: Likewise.
2545         * config/h8300/h8300.c: Likewise.
2546         * config/host-darwin.c: Likewise.
2547         * config/i386/i386.c: Likewise.
2548         * config/i386/netware.c: Likewise.
2549         * config/i386/nwld.c: Likewise.
2550         * config/i386/winnt-cxx.c: Likewise.
2551         * config/i386/winnt-stubs.c: Likewise.
2552         * config/i386/winnt.c: Likewise.
2553         * config/ia64/ia64-c.c: Likewise.
2554         * config/ia64/ia64.c: Likewise.
2555         * config/iq2000/iq2000.c: Likewise.
2556         * config/lm32/lm32.c: Likewise.
2557         * config/m32c/m32c-pragma.c: Likewise.
2558         * config/m32c/m32c.c: Likewise.
2559         * config/m32r/m32r.c: Likewise.
2560         * config/m68hc11/m68hc11.c: Likewise.
2561         * config/m68k/m68k.c: Likewise.
2562         * config/mcore/mcore.c: Likewise.
2563         * config/mep/mep-pragma.c: Likewise.
2564         * config/mep/mep.c: Likewise.
2565         * config/mmix/mmix.c: Likewise.
2566         * config/mn10300/mn10300.c: Likewise.
2567         * config/moxie/moxie.c: Likewise.
2568         * config/pa/pa.c: Likewise.
2569         * config/pdp11/pdp11.c: Likewise.
2570         * config/picochip/picochip.c: Likewise.
2571         * config/rs6000/rs6000-c.c: Likewise.
2572         * config/rs6000/rs6000.c: Likewise.
2573         * config/rx/rx.c: Likewise.
2574         * config/s390/s390.c: Likewise.
2575         * config/score/score.c: Likewise.
2576         * config/score/score3.c: Likewise.
2577         * config/score/score7.c: Likewise.
2578         * config/sh/sh.c: Likewise.
2579         * config/sh/symbian-base.c: Likewise.
2580         * config/sh/symbian-c.c: Likewise.
2581         * config/sh/symbian-cxx.c: Likewise.
2582         * config/sol2-c.c: Likewise.
2583         * config/sol2.c: Likewise.
2584         * config/sparc/sparc.c: Likewise.
2585         * config/spu/spu.c: Likewise.
2586         * config/stormy16/stormy16.c: Likewise.
2587         * config/v850/v850-c.c: Likewise.
2588         * config/v850/v850.c: Likewise.
2589         * config/vax/vax.c: Likewise.
2590         * config/vxworks.c: Likewise.
2591         * config/xtensa/xtensa.c: Likewise.
2592         * convert.c: Likewise.
2593         * cse.c: Likewise.
2594         * cselib.c: Likewise.
2595         * dbgcnt.c: Likewise.
2596         * dbxout.c: Likewise.
2597         * ddg.c: Likewise.
2598         * dominance.c: Likewise.
2599         * emit-rtl.c: Likewise.
2600         * explow.c: Likewise.
2601         * expmed.c: Likewise.
2602         * fixed-value.c: Likewise.
2603         * fold-const.c: Likewise.
2604         * fwprop.c: Likewise.
2605         * gcse.c: Likewise.
2606         * ggc-common.c: Likewise.
2607         * ggc-page.c: Likewise.
2608         * ggc-zone.c: Likewise.
2609         * gimple-low.c: Likewise.
2610         * gimplify.c: Likewise.
2611         * graph.c: Likewise.
2612         * haifa-sched.c: Likewise.
2613         * ifcvt.c: Likewise.
2614         * implicit-zee.c: Likewise.
2615         * integrate.c: Likewise.
2616         * ira-build.c: Likewise.
2617         * ira-color.c: Likewise.
2618         * ira-conflicts.c: Likewise.
2619         * ira-costs.c: Likewise.
2620         * ira-lives.c: Likewise.
2621         * ira.c: Likewise.
2622         * lists.c: Likewise.
2623         * loop-doloop.c: Likewise.
2624         * loop-iv.c: Likewise.
2625         * lto-opts.c: Likewise.
2626         * lto-symtab.c: Likewise.
2627         * main.c: Likewise.
2628         * modulo-sched.c: Likewise.
2629         * optabs.c: Likewise.
2630         * params.c: Likewise.
2631         * plugin.c: Likewise.
2632         * postreload-gcse.c: Likewise.
2633         * postreload.c: Likewise.
2634         * predict.c: Likewise.
2635         * profile.c: Likewise.
2636         * real.c: Likewise.
2637         * regcprop.c: Likewise.
2638         * reginfo.c: Likewise.
2639         * regmove.c: Likewise.
2640         * reorg.c: Likewise.
2641         * resource.c: Likewise.
2642         * rtl.c: Likewise.
2643         * rtlanal.c: Likewise.
2644         * sched-deps.c: Likewise.
2645         * sched-ebb.c: Likewise.
2646         * sched-rgn.c: Likewise.
2647         * sdbout.c: Likewise.
2648         * sel-sched-dump.c: Likewise.
2649         * sel-sched-ir.c: Likewise.
2650         * simplify-rtx.c: Likewise.
2651         * stmt.c: Likewise.
2652         * stor-layout.c: Likewise.
2653         * store-motion.c: Likewise.
2654         * targhooks.c: Likewise.
2655         * tree-cfg.c: Likewise.
2656         * tree-cfgcleanup.c: Likewise.
2657         * tree-dump.c: Likewise.
2658         * tree-eh.c: Likewise.
2659         * tree-inline.c: Likewise.
2660         * tree-nomudflap.c: Likewise.
2661         * tree-object-size.c: Likewise.
2662         * tree-optimize.c: Likewise.
2663         * tree-outof-ssa.c: Likewise.
2664         * tree-phinodes.c: Likewise.
2665         * tree-profile.c: Likewise.
2666         * tree-ssa-ccp.c: Likewise.
2667         * tree-ssa-coalesce.c: Likewise.
2668         * tree-ssa-live.c: Likewise.
2669         * tree-ssa-loop-niter.c: Likewise.
2670         * tree-ssa-loop-prefetch.c: Likewise.
2671         * tree-ssa-loop.c: Likewise.
2672         * tree-ssa-structalias.c: Likewise.
2673         * tree-ssa-uninit.c: Likewise.
2674         * tree-ssa.c: Likewise.
2675         * tree-vect-data-refs.c: Likewise.
2676         * tree-vect-loop-manip.c: Likewise.
2677         * tree-vect-loop.c: Likewise.
2678         * tree-vect-patterns.c: Likewise.
2679         * tree-vect-stmts.c: Likewise.
2680         * tree-vrp.c: Likewise.
2681         * varasm.c: Likewise.
2682         * vec.c: Likewise.
2683         * web.c: Likewise.
2684         * xcoffout.c: Likewise.
2685
2686 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
2687
2688         * gengtype.c (write_field_root): New function.
2689         (write_root): Use it.
2690
2691 2010-07-07  Wei Guozhi  <carrot@google.com>
2692
2693         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2694         of lowest bits to lshift/compare): Add a missing line.
2695
2696 2010-07-07  Wei Guozhi  <carrot@google.com>
2697
2698         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2699         of lowest bits to lshift/compare): New.
2700
2701 2010-07-07  Tom Tromey  <tromey@redhat.com>
2702
2703         * doc/tm.texi: Update.
2704         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
2705         Add @hook.
2706         * target.def (want_debug_pub_sections): New hook.
2707         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
2708         * dwarf2out.c (add_pubname_string): Check
2709         targetm.want_debug_pub_sections.
2710         (add_pubname): Likewise.
2711         (add_pubtype): Likewise.
2712
2713 2010-07-07  Jie Zhang  <jie@codesourcery.com>
2714
2715         * genautomata.c (output_automata_list_min_issue_delay_code):
2716         Correctly decompress min_issue_delay.
2717
2718 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2719
2720         PR rtl-optimization/44404
2721         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
2722         possible, use reg_overlap_mentioned_p instead.
2723
2724 2010-07-07  Duncan Sands  <baldrick@free.fr>
2725
2726         PR middle-end/41355
2727         * tree.c (build_function_type_skip_args): Copy the original type using
2728         build_distinct_type_copy rather than copy_node.
2729
2730 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2731
2732         PR target/44850
2733         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
2734         revision 161876.
2735         (ix86_expand_prologue): Likewise.
2736         (ix86_handle_fndecl_attribute): Likewise.
2737         (ix86_asm_declare_function_name): Likewise.
2738         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2739         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2740         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
2741         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
2742         * doc/extend.texi: Likewise.
2743
2744 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2745
2746         PR target/44844
2747         * config/i386/i386.md (rdrand<mode>): Changed to expand to
2748         retry if the carry flag isn't valid.
2749         (rdrand<mode>_1): New.
2750
2751 2010-07-07  Richard Guenther  <rguenther@suse.de>
2752
2753         PR middle-end/44790
2754         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
2755         for expanding the constant offset for MEM_REFs.
2756
2757 2010-07-07  Richard Guenther  <rguenther@suse.de>
2758
2759         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
2760         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
2761         * gimple.h (is_gimple_operand): Remove.
2762         * gimple.c (is_gimple_operand): Likewise.
2763         (walk_gimple_op): Fix wi->val_only setting for calls.
2764         * tree-cfg.c (verify_gimple_call): Fix argument validation.
2765         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
2766         invalid gimple calls.
2767
2768 2010-07-06  Jan Hubicka  <jh@suse.cz>
2769
2770         * lto-cgraph.c (output_cgraph): Add missing declaration.
2771
2772 2010-07-06  Jan Hubicka  <jh@suse.cz>
2773
2774         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
2775         partition.
2776
2777 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
2778
2779         * doc/gimple.texi (GIMPLE_DEBUG): Document.
2780         * doc/rtl.texi (Debug Information): New node.
2781         (NOTE_INSN_VAR_LOCATION): Document.
2782         (debug_insn): Likewise.
2783         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
2784
2785 2010-07-07  Jan Hubicka  <jh@suse.cz>
2786
2787         With parts by Richard Guenther.
2788
2789         PR middle-end/44813
2790         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
2791         for functions passed by reference.
2792         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
2793         in memory when passed by reference.
2794         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
2795         beggining.
2796         * ipa-split.c (split_function): Cleanup way return value is passed;
2797         handle SSA DECL_BY_REFERENCE retvals.
2798         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
2799         DECL_BY_REFERENCE is set.
2800         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
2801         find_what_p_points_to): Handle RESULT_DECL.
2802         * tree-inline.c (declare_return_variable): Get new entry_block argument;
2803         when passing by reference ensure that RESULT_DECL is gimple_val.
2804         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
2805         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
2806
2807 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
2808
2809         PR rtl-optimization/44787
2810         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
2811         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
2812
2813 2010-07-06  Jan Hubicka  <jh@suse.cz>
2814
2815         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
2816         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
2817         with body can prevail.
2818         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
2819         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
2820         * cgraph.c (cgraph_get_node_or_alias): New function.
2821         * cgraph.h (cgraph_get_node_or_alias): Declare.
2822
2823 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
2824
2825         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
2826         support.
2827         (ix86_expand_prologue): Likewise.
2828         (ix86_handle_fndecl_attribute): Likewise.
2829         (ix86_asm_declare_function_name): New function for
2830         ASM_DECLARE_FUNCTION_NAME.
2831         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
2832         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
2833         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
2834         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
2835         * doc/extend.texi: Adjust documentation about ms_hook_prologue
2836         attribute.
2837
2838 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2839
2840         * config/i386/i386.md (immediate_operand): New mode attribute.
2841
2842         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
2843         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
2844         using P mode iterator.
2845         (pro_epilogue_adjust_stack_di_2): Rename from
2846         pro_epilogue_adjust_stack_rex64_2.
2847
2848         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
2849
2850 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2851
2852         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
2853         through gen_mov_insv_1 function pointer.
2854         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
2855         gen_truncxf<mode>2 through gen_truncxf function pointer.
2856         (remainder<mode>3): Ditto.
2857         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
2858         (allocate_stack): Call gen_allocate_stack_worker_64 or
2859         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
2860         function pointer.
2861         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
2862         function pointer.
2863
2864 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
2865
2866         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
2867         operand constraint instead of <r><i>m.
2868
2869 2010-07-06  Richard Guenther  <rguenther@suse.de>
2870
2871         PR middle-end/44828
2872         * convert.c (convert_to_integer): Watch out for overflowing
2873         MULT_EXPR as well.
2874
2875 2010-07-05  Jan Hubicka  <jh@suse.cz>
2876
2877         * lto-streamer.c (write_symbol_vec): Rename to ...
2878         (write_symbol) ... this one; write only symbol given and when
2879         present in cache. Sanity check that what is defined is present
2880         in cgraph/varpool with body/finalized decl.
2881         (write_symbols_of_kind): Remove.
2882         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
2883         pairs to produce symtab.
2884         (produce_asm_for_decls): Update call of produce_symtab; don't do so
2885         when doing WPA streaming.
2886
2887 2010-07-05  Jan Hubicka  <jh@suse.cz>
2888
2889         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
2890         function is still available to fold into.
2891
2892 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
2893
2894         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
2895         * function.h (struct_function): Change type of local_decls field
2896         to a VEC.
2897         (add_local_decl): New function.
2898         (FOR_EACH_LOCAL_DECL): New macro.
2899         * cfgexpand.c (init_vars_expansion): Adjust for new type of
2900         cfun->local_decls.
2901         (estimated_stack_frame_size): Likewise.
2902         (expand_used_vars): Likewise.
2903         * cgraphbuild.c (build_cgraph_edges): Likewise.
2904         * function.c (instantiate_decls_1): Likewise.
2905         * ipa-struct-reorg.c (build_data_structure): Likewise.
2906         * ipa-type-escape.c (analyze_function): Likewise.
2907         * lto-streamer-in.c (input_function): Likewise.
2908         * lto-streamer-out.c (output_function): Likewise.
2909         * tree-ssa-live.c (remove_unused_locals): Likewise.
2910         * tree.c (free_lang_data_in_decl): Likewise.
2911         (find_decls_types_in_node): Likewise.
2912         * omp-low.c (remove_exit_barrier): Likewise.
2913         (expand_omp_taskreg): Likewise.
2914         (list2chain): Rename to...
2915         (vec2chain): ...this.  Adjust.
2916         * cgraphunit.c (assemble_thunk): Call add_local_decl.
2917         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
2918         * gimple-low.c (record_vars_into): Likewise.
2919         * tree-inline.c (remap_decls): Likewise.
2920         (declare_return_variable): Likewise.
2921         (declare_inline_vars): Likewise.
2922         (copy_forbidden): Adjust for new type of cfun->local_decls.
2923         (add_local_variables): New function.
2924         (expand_call_inline): Call it.
2925         (tree_function_versioning): Likewise.
2926
2927 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2928
2929         AVX Programming Reference (June, 2010)
2930         * config/i386/cpuid.h (bit_F16C): New.
2931         (bit_RDRND): Likewise.
2932         (bit_FSGSBASE): Likewise.
2933
2934         * config/i386/i386-builtin-types.def: Add
2935         "DEF_FUNCTION_TYPE (UINT16)", function types for
2936         float16 <-> float conversions and
2937         "DEF_FUNCTION_TYPE (VOID, UINT64)".
2938
2939         * config/i386/i386-c.c (ix86_target_macros_internal): Support
2940         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
2941         OPTION_MASK_ISA_F16C.
2942
2943         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
2944         (OPTION_MASK_ISA_RDRND_SET): Likewise.
2945         (OPTION_MASK_ISA_F16C_SET): Likewise.
2946         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
2947         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
2948         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
2949         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
2950         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
2951         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
2952         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
2953         (override_options): Handle them.
2954         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
2955         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
2956         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
2957         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
2958         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
2959         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
2960         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
2961         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
2962         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
2963         (bdesc_args): Likewise.
2964         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
2965         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
2966         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
2967         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
2968         Handle non-memory store.
2969
2970         * config/i386/i386.h (TARGET_FSGSBASE): New.
2971         (TARGET_RDRND): Likewise.
2972         (TARGET_F12C): Likewise.
2973
2974         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
2975         (UNSPEC_VCVTPS2PH): Likewise.
2976         (UNSPECV_RDFSBASE): Likewise.
2977         (UNSPECV_RDGSBASE): Likewise.
2978         (UNSPECV_WRFSBASE): Likewise.
2979         (UNSPECV_WRGSBASE): Likewise.
2980         (UNSPECV_RDRAND): Likewise.
2981         (rdfsbase<mode>): Likewise.
2982         (rdgsbase<mode>): Likewise.
2983         (wrfsbase<mode>): Likewise.
2984         (wrgsbase<mode>): Likewise.
2985         (rdrand<mode>): Likewise.
2986
2987         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
2988
2989         * config/i386/immintrin.h (_rdrand_u16): New.
2990         (_rdrand_u32): Likewise.
2991         (_readfsbase_u32): Likewise.
2992         (_readfsbase_u64): Likewise.
2993         (_readgsbase_u32): Likewise.
2994         (_readgsbase_u64): Likewise.
2995         (_writefsbase_u32): Likewise.
2996         (_writefsbase_u64): Likewise.
2997         (_writegsbase_u32): Likewise.
2998         (_writegsbase_u64): Likewise.
2999         (_rdrand_u64): Likewise.
3000         (_cvtsh_ss): Likewise.
3001         (_mm_cvtph_ps): Likewise.
3002         (_mm256_cvtph_ps): Likewise.
3003         (_cvtss_sh): Likewise.
3004         (_mm_cvtps_ph): Likewise.
3005         (_mm256_cvtps_ph): Likewise.
3006
3007         * config/i386/sse.md (vcvtph2ps): New.
3008         (*vcvtph2ps_load): Likewise.
3009         (vcvtph2ps256): Likewise.
3010         (vcvtps2ph): Likewise.
3011         (*vcvtps2ph): Likewise.
3012         (*vcvtps2ph_store): Likewise.
3013         (vcvtps2ph256): Likewise.
3014
3015         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
3016
3017         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
3018
3019 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
3020
3021         PR bootstrap/44512
3022         * genenums.c (main): Output include of insn-constants.h
3023         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
3024
3025 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
3026
3027         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
3028         (override_options): Initialize it.
3029         (ix86_expand_prologue): Use it.
3030
3031 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
3032
3033         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
3034
3035 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
3036
3037         * double-int.h (fit_double_type): Remove declaration.
3038         * double-int.c (fit_double_type): Remove function.
3039         * tree.h (int_fits_type_p): Adjust prototype.
3040         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
3041         instead of fit_double_type.
3042         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
3043         instead of fit_double_type and build_int_cst_wide.
3044         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
3045         instead of fit_double_type and build_int_cst_wide.
3046         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
3047         of fit_double_type.
3048
3049 2010-07-05  Jan Hubicka  <jh@suse.cz>
3050
3051         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
3052         in_other_partition.
3053         * lto-cgraph.c (referenced_from_other_partition_p,
3054         reachable_from_other_partition_p): Use in_other_partition flags.
3055         (output_node, output_varpool_node): COMDAT nodes always have private
3056         copies and thus are never used from other partition.
3057
3058 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
3059
3060         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3061         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
3062         * config/ia64/ia64.c Include reload.h.
3063         (ia64_memory_move_cost): New function.
3064         (TARGET_MEMORY_MOVE_COST): Define.
3065         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
3066         memory_move_cost.
3067
3068 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
3069
3070         PR middle-end/42505
3071         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
3072         comments about cost model.
3073         (try_add_cand_for):  Add second strategy for choosing initial set
3074         based on original IVs, controlled by ORIGINALP argument.
3075         (get_initial_solution): Add ORIGINALP argument.
3076         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
3077         (find_optimal_iv_set): Try two different strategies for choosing
3078         the IV set, and return the one with lower cost.
3079
3080 2010-07-05  Richard Guenther  <rguenther@suse.de>
3081
3082         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
3083
3084 2010-07-05  Richard Guenther  <rguenther@suse.de>
3085
3086         * tree.c (reference_alias_ptr_type): New function.
3087         * tree.h (reference_alias_ptr_type): Declare.
3088         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
3089         allow non-TARGET_MEM_REF new refs.
3090         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
3091         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
3092         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
3093         (create_mem_ref): Get alias pointer type.  Adjust calls to
3094         create_mem_ref_raw.
3095         (maybe_fold_tmr): Likewise.
3096         * tree-flow.h (create_mem_ref): Adjust prototype.
3097
3098 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
3099
3100         PR c++/44808
3101         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
3102         *from_p is VAR_DECL.
3103
3104 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3105
3106         * tree.h (build_call_list): Remove.
3107         * tree.c (build_call_list): Remove.
3108
3109 2010-07-05  Richard Guenther  <rguenther@suse.de>
3110
3111         * double-int.h (double_int_sub): Declare.
3112         * double-int.c (double_int_sub): New function.
3113         * dwarf2out.c (field_byte_offset): Use it.
3114         * fixed-value.c (do_fixed_add): Likewise.
3115         (do_fixed_multiply): Likewise.
3116         (do_fixed_divide): Likewise.
3117         * tree-predcom.c (add_ref_to_chain): Likewise.
3118         (determine_roots_comp): Likewise.
3119         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3120
3121 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
3122
3123         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
3124         implementations.
3125
3126 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
3127
3128         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
3129         * arm-modes.def (CC_NOTB): Don't define.
3130         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
3131         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3132         (LTUGEU): New code_iterator.
3133         (cnb, optab): New corresponding code_attrs.
3134         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
3135         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
3136         using LTUGEU.
3137         (addsi3_carryin_shift_<optab>): Likewise.
3138         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
3139         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
3140         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
3141         (subsi3_compare): Renamed from subsi3_compare0_c.
3142         Change CC_NOTB to CC.
3143         (arm_subsi3_insn): Allow constants for operand 0.
3144         (compare_scc peephole for eq case): New.
3145         (compare_scc splitters): Change CC_NOTB to CC.
3146
3147 2010-07-05  Richard Guenther  <rguenther@suse.de>
3148
3149         * tree-ssa-loop-im.c (for_each_index): Do not handle
3150         ALIGN_INDIRECT_REF.
3151         (gen_lsm_tmp_name): Likewise.
3152         * tree-dump.c (dequeue_and_dump): Likewise.
3153         * tree-pretty-print.c (dump_generic_node): Likewise.
3154         (op_code_prio): Likewise.
3155         (op_symbol_code): Likewise.
3156         * tree.c (staticp): Likewise.
3157         (build1_stat): Likewise.
3158         * tree.h (INDIRECT_REF_P): Likewise.
3159         * fold-const.c (maybe_lvalue_p): Likewise.
3160         (operand_equal_p): Likewise.
3161         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3162         (ao_ref_init_from_vn_reference): Likewise.
3163         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3164         (find_interesting_uses_address): Likewise.
3165         * dwarf2out.c (loc_list_from_tree): Likewise.
3166         * gimplify.c (gimplify_expr): Likewise.
3167         * tree-eh.c (tree_could_trap_p): Likewise.
3168         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3169         * cfgexpand.c (expand_debug_expr): Likewise.
3170         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3171         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3172         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3173         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
3174         * tree-ssa-operands.c (get_expr_operands): Likewise.
3175         * expr.c (safe_from_p): Likewise.
3176         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
3177         * tree-vect-data-refs.c (vect_setup_realignment): Build
3178         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
3179         * tree-vect-stmts.c (vectorizable_load): Likewise.
3180         * tree.def (ALIGN_INDIRECT_REF): Remove.
3181
3182 2010-07-05  Richard Guenther  <rguenther@suse.de>
3183
3184         PR tree-optimization/44784
3185         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
3186         for inserted stmts.
3187         (find_or_generate_expression): Fix SCCVN insertion check.
3188
3189 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
3190
3191         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
3192         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
3193         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
3194         directives.
3195
3196 2010-07-05  Ira Rosen  <irar@il.ibm.com>
3197
3198         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
3199         statements that are not vectorized.
3200         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
3201         in INSIDE_COST.
3202
3203 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
3204
3205         PR bootstrap/44820
3206         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
3207
3208 2010-07-05  Richard Guenther  <rguenther@suse.de>
3209
3210         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
3211         RESULT_DECLs properly.
3212
3213 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3214
3215         PR rtl-optimization/44695
3216         * config/i386/i386.md (extract_code): Removed.
3217         (<u>divmodqi4): Likewise.
3218         (divmodqi4): New.
3219         (udivmodqi4): Likewise.
3220         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
3221         (udivmodhiqi3): Likewise.
3222
3223 2010-07-04  Jan Hubicka  <jh@suse.cz>
3224
3225         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
3226
3227 2010-07-04  Jan Hubicka  <jh@suse.cz>
3228
3229         * cgraphunit.c (init_cgraph): Only initialize dump file if it
3230         is not already initialized.
3231
3232 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3233
3234         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
3235         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
3236         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
3237         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
3238         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
3239         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
3240         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
3241         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
3242         (sync_new_nand_optab): Redefine as macros.
3243         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
3244         Delete.
3245         (direct_optab_index): New enum.
3246         (direct_optab_d): New structure.
3247         (direct_optab): New typedef.
3248         (direct_optab_table): Declare.
3249         (direct_optab_handler, set_direct_optab_handler): New functions.
3250         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
3251         (sync_lock_release_optab): New macros.
3252         * optabs.c (direct_optab_table): New variable.
3253         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
3254         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
3255         cmpstr_optab and cmpstrn_optab.
3256         (emit_conditional_move): Likewise for movcc_optab.
3257         (can_conditionally_move_p): Likewise for movcc_gen_code.
3258         (init_insn_codes): Clear direct_optab_table.
3259         (init_optabs): Don't initialize the new "direct optabs" here.
3260         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
3261         vcond_gen_code.
3262         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
3263         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
3264         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
3265         (expand_sync_operation): Likewise other sync_*_optabs.
3266         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
3267         to sync_compare_and_swap_optab.
3268         (expand_sync_lock_test_and_set): Use direct_optab_handler for
3269         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
3270         to the names of both.
3271         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
3272         cmpstr_optab and cmpstrn_optab.
3273         (expand_builtin_lock_release): Likewise sync_lock_release.
3274         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
3275         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
3276         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
3277         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
3278         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
3279         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
3280         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
3281         (sync_lock_test_and_set, sync_lock_release): Delete.
3282         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
3283         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
3284         * genopinit.c (optabs): Use set_direct_optab_handler for the new
3285         macro optabs.
3286         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
3287         the "optab" local variable.  Use direct_optab_handler for optab and
3288         sync_compare_and_swap_optab.
3289         * reload1.c (reload_in_optab, reload_out_optab): Delete.
3290         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
3291         reload_in_optab and reload_out_optab.
3292         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3293         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
3294         * config/pa/pa.c (pa_secondary_reload): Likewise.
3295         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
3296         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
3297         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
3298         (VMSupportsCS8_builtin): Likewise.
3299
3300 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3301
3302         * optabs.h (optab_handlers): Change type of insn_code to int.
3303         (optab_handler, set_optab_handler, convert_optab_handler)
3304         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
3305         CODE_FOR_nothing".
3306         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
3307         (init_insn_codes): Zero both the above arrays.
3308         (init_optabs): Never call init_insn_codes first time around.
3309
3310 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
3311
3312         * optabs.h (optab_handler, convert_optab_handler): Turn into
3313         inline functions that return an insn code.
3314         (set_optab_handler, set_convert_optab_handler): New functions.
3315         * builtins.c: Replace optab_handler(X)->insn_code with
3316         optab_handler or set_optab_handler thoughout.  Likewise
3317         convert_optab_handler(X)->insn_code with convert_optab_handler
3318         and set_convert_optab_handler.
3319         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
3320         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
3321         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
3322         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
3323         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
3324         config/spu/spu.c: Likewise.
3325
3326 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3327
3328         PR target/44531
3329         * config.gcc (sh*-*-*): Use regular expressions instead of
3330         the 'i' modifier for sed substitutions.
3331
3332 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
3333
3334         * gimple.c (gimple_body): Comments added.
3335
3336 2010-07-04  Richard Guenther  <rguenther@suse.de>
3337
3338         PR middle-end/44809
3339         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
3340         of an INDIRECT_REF.
3341
3342 2010-07-04  Richard Guenther  <rguenther@suse.de>
3343
3344         PR tree-optimization/44479
3345         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
3346         extra SSA name copy statements which preserves points-to
3347         information.
3348         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3349         Copy points-to information for all pointers.  Properly handle
3350         MEM_REFs.
3351         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
3352         copy statements.
3353         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
3354         dependency.
3355
3356 2010-07-04  Richard Guenther  <rguenther@suse.de>
3357
3358         PR middle-end/44785
3359         * tree-inline.c (initialize_inlined_parameters): Do not
3360         re-use pointer-map slot over remap_type call.
3361
3362 2010-07-04  Richard Guenther  <rguenther@suse.de>
3363
3364         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
3365
3366 2010-07-04  Richard Guenther  <rguenther@suse.de>
3367
3368         PR tree-optimization/44656
3369         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
3370         again after value-replacing in the defintions lhs.
3371
3372 2010-07-04  Ira Rosen  <irar@il.ibm.com>
3373             Revital Eres  <eres@il.ibm.com>
3374
3375         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
3376         Document new arguments.
3377         * doc/tm.texi: Regenerate.
3378         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
3379         Handle unaligned store.
3380         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
3381         * target.def (builtin_vectorization_cost): Add new arguments.
3382         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
3383         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
3384         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
3385         (vect_vfa_segment_size): Fix indentation.
3386         * tree-vectorizer.h (struct _vect_peel_info): New.
3387         (struct _vect_peel_extended_info): New.
3388         (struct _loop_vec_info): Add new field for peeling hash table and a
3389         macro for its access.
3390         (VECT_MAX_COST): Define.
3391         (vect_get_load_cost): Declare.
3392         (vect_get_store_cost, vect_get_known_peeling_cost,
3393         vect_get_single_scalar_iteraion_cost): Likewise.
3394         (vect_supportable_dr_alignment): Add new argument.
3395         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
3396         field.
3397         (destroy_loop_vec_info): Free peeling hash table.
3398         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
3399         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
3400         vect_analyze_slp. Fix indentation.
3401         (vect_get_single_scalar_iteraion_cost): New function.
3402         (vect_get_known_peeling_cost): Likewise.
3403         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
3404         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
3405         statement. Move outside cost calculation inside unknown peeling case.
3406         Call vect_get_known_peeling_cost for known amount of peeling.
3407         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
3408         reference to the print message of forced alignment.
3409         (vect_verify_datarefs_alignment): Update call to
3410         vect_supportable_dr_alignment.
3411         (vect_get_data_access_cost): New function.
3412         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
3413         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
3414         vect_peeling_hash_choose_best_peeling): Likewise.
3415         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
3416         to store all the accesses in the loop and find best possible access to
3417         align using peeling for known alignment case. For unknown alignment
3418         check if stores are preferred or if peeling is worthy.
3419         (vect_find_same_alignment_drs): Analyze pairs of loads too.
3420         (vect_supportable_dr_alignment): Add new argument and check aligned
3421         accesses according to it.
3422         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
3423         (cost_for_stmt): Call vect_get_stmt_cost.
3424         (vect_model_simple_cost): Likewise.
3425         (vect_model_store_cost): Call vect_get_stmt_cost. Call
3426         vect_get_store_cost to calculate the cost of the statement.
3427         (vect_get_store_cost): New function.
3428         (vect_model_load_cost): Call vect_get_stmt_cost. Call
3429         vect_get_load_cost to calculate the cost of the statement.
3430         (vect_get_load_cost): New function.
3431         (vectorizable_store): Update call to vect_supportable_dr_alignment.
3432         (vectorizable_load): Likewise.
3433         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
3434         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
3435         arguments. Handle unaligned store.
3436         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
3437         (rs6000_builtin_support_vector_misalignment): Return true for word and
3438         double word alignments for VSX.
3439         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
3440         vect_supportable_dr_alignment and builtin_vectorization_cost.
3441
3442 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3443
3444         PR target/44597
3445         * config/pa/predicates.md (prefetch_cc_operand): Remove.
3446         (prefetch_nocc_operand): Likewise.
3447         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
3448         (prefetch_20): New insn.
3449         (prefetch_cc): Remove.
3450         (prefetch_nocc): Likewise.
3451
3452 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3453
3454         * expr.c (vector_mode_valid_p): Move to c-common.c.
3455         * expr.h (vector_mode_valid_p): Do not declare here.
3456         * system.h: Poison GCC_EXPR_H in front-ends.
3457         * Makefile.in: Update dependencies.
3458
3459 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3460
3461         PR target/44705
3462         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
3463
3464 2010-07-03  Jan Hubicka  <jh@suse.cz>
3465
3466         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
3467         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
3468         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
3469         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
3470         Likewise.
3471
3472         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
3473         Update timevars.V
3474         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
3475         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
3476         TV_IPA_LTO_DECL_OUT): New.
3477         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
3478
3479 2010-07-03  Jan Hubicka  <jh@suse.cz>
3480
3481         * ipa-inline.c (update_edge_key): Break out from ...
3482         update_callers_keys): ... here;
3483         (update_callee_keys): Update only the edges from caller to callee.
3484         (update_all_calle_keys): Do what update_calle_keys did.
3485         (decide_inlining_of_small_functions): Avoid recomputing of all
3486         callees when badness increase.
3487
3488 2010-07-03  Jie Zhang  <jie@codesourcery.com>
3489
3490         * config/arm/arm.c (arm_attr_length_move_neon): New.
3491         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
3492         * config/arm/neon.md (define_mode_attr V_slen): Remove.
3493         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
3494         to compute length attribute.
3495
3496 2010-07-03  Jie Zhang  <jie@codesourcery.com>
3497
3498         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
3499         as predicate for operand 1 and remove its constraint.
3500         * config/arm/predicates.md (vfp_register_operand): New.
3501         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
3502         (*push_fp_multi): Likewise.
3503
3504 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
3505
3506         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
3507
3508 2010-07-03  Jan Hubicka  <jh@suse.cz>
3509
3510         * config/i386/i386.c (override_options): Revert accidental commit.
3511
3512 2010-07-02  Le-Chun Wu  <lcwu@google.com>
3513
3514         PR c++/44128
3515         * doc/invoke.texi: Update documentation of -Wshadow.
3516
3517 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
3518             Julian Brown  <julian@codesourcery.com>
3519             Sandra Loosemore <sandra@codesourcery.com>
3520
3521         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
3522         comparisons.  Adjust to take both operands.
3523         (arm_select_cc_mode): Handle DImode comparisons.
3524         (arm_gen_compare_reg): Generate a scratch register for DImode
3525         comparisons which require one.  Use xor for Thumb equality checks.
3526         (arm_const_double_by_immediates): New.
3527         (arm_print_operand): Allow 'Q' and 'R' for constants.
3528         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
3529         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
3530         arm_canonicalize_comparison.
3531         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
3532         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
3533         prototype.
3534         (arm_const_double_by_immediates): Declare.
3535         * config/arm/constraints.md (Di): New constraint.
3536         * config/arm/predicates.md (arm_immediate_di_operand)
3537         (arm_di_operand, cmpdi_operand): New.
3538         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
3539         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
3540         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
3541         (cstoredi4): Handle non-Cirrus also.
3542
3543 2010-07-02  Julian Brown  <julian@codesourcery.com>
3544             Sandra Loosemore <sandra@codesourcery.com>
3545
3546         PR target/43703
3547         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
3548         (smax<mode>3): Disable for NEON float modes when
3549         flag_unsafe_math_optimizations is false.
3550         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
3551         (*mul<mode>3_neon)
3552         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
3553         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
3554         for NEON float modes when flag_unsafe_math_optimizations is false.
3555         (quad_halves_<code>v4sf): Only enable if
3556         flag_unsafe_math_optimizations is true.
3557         * doc/invoke.texi (ARM Options): Add note about floating point
3558         vectorization requiring -funsafe-math-optimizations.
3559
3560 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
3561             Julian Brown  <julian@codesourcery.com>
3562
3563         * config/arm/neon.md (UNSPEC_VABA): Delete.
3564         (UNSPEC_VABAL): Delete.
3565         (UNSPEC_VABS): Delete.
3566         (UNSPEC_VMUL_N): Delete.
3567         (adddi3_neon): New.
3568         (subdi3_neon): New.
3569         (mul<mode>3add<mode>_neon): Make the pattern named.
3570         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
3571         (neon_vadd<mode>): Replace with define_expand, and move the remaining
3572         unspec parts...
3573         (neon_vadd<mode>_unspec): ...to this.
3574         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
3575         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
3576         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
3577         (neon_vaba<mode>): Rewrite in terms of vabd.
3578         (neon_vabal<mode>): Rewrite in terms of vabdl.
3579         (neon_vabs<mode>): Rewrite without unspec.
3580         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
3581         (*arm_subdi3): Likewise.
3582         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
3583         No_op attribute to disable assembly output checks.
3584         * config/arm/arm_neon.h: Regenerated.
3585         * doc/arm-neon-intrinsics.texi: Regenerated.
3586
3587 2010-07-02  Jan Hubicka  <jh@suse.cz>
3588
3589         * ipa-split.c (split_function): For aggregate values, set the return
3590         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
3591         *<retval> = fncall.part ().
3592         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
3593
3594 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
3595
3596         * config/arm/neon.md (UNSPEC_VAND): Delete.
3597         (UNSPEC_VBIC): Delete.
3598         (UNSPEC_VCLZ): Delete.
3599         (UNSPEC_VCNT): Delete.
3600         (UNSPEC_VEOR): Delete.
3601         (UNSPEC_VORN): Delete.
3602         (UNSPEC_VORR): Delete.
3603         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
3604         core registers too.
3605         (anddi3_neon): Likewise.
3606         (orndi3_neon): Likewise.
3607         (bicdi3_neon): Likewise.
3608         (xordi3_neon): Likewise.
3609         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
3610         rid of unspec and handle unused operand.
3611         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
3612         * config/arm/predicates.md (imm_for_neon_logic_operand):
3613         Require TARGET_NEON.
3614         (imm_for_neon_inv_logic_operand): Likewise.
3615         * config/arm/arm.md (define_split for logical_binary_operator):
3616         Disable for NEON registers.
3617         (anddi3): Add new define_expand, and rename the insn.  Disable
3618         this insn for NEON, where anddi3_neon now applies.
3619         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
3620         (iordi3): As for anddi3.
3621         (xordi3): Likewise.
3622         * config/arm/neon.ml (Vand): Split DImode variants and mark them
3623         as No_op to disable testing for exact instruction match.
3624         (Vorr): Likewise.
3625         (Veor): Likewise.
3626         (Vbic): Likewise.
3627         (Vorn): Likewise.
3628         * config/arm/arm_neon.h: Regenerated.
3629         * doc/arm-neon-intrinsics.texi: Regenerated.
3630
3631 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
3632
3633         * expr.h (emit_stack_probe): Declare.
3634         * explow.c (emit_stack_probe): Make global.
3635         (anti_adjust_stack_and_probe): Fix comments.
3636         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3637         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3638         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3639         * config/sparc/sparc.c: Include except.h.
3640         (sparc_emit_probe_stack_range): New function.
3641         (output_probe_stack_range): Likewise.
3642         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
3643         built-in stack checking is enabled.
3644         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
3645         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3646         (probe_stack_range): New insn.
3647
3648 2010-07-02  Richard Guenther  <rguenther@suse.de>
3649
3650         PR target/43958
3651         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
3652         for argument alignment.
3653
3654 2010-07-02  Jan Hubicka  <jh@suse.cz>
3655
3656         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
3657         walk backwards from entry_bb to check only those basic block of header
3658         that might lead to execution of split part.
3659         (consider_split) ... here.
3660         (find_return_bb): Allow assignment in return BB.
3661         (find_retval): New.
3662         (split_function): Fix name of cloned function; take care of updating
3663         return value in return_bb containing move.
3664
3665 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
3666
3667         PR target/44771
3668         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
3669         used variable insn.
3670
3671 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
3672
3673         * implicit-zee.c (combine_reaching_defs): Fix long lines.
3674         (is_set_with_extension_DI): Delete.
3675         (struct zero_extend_info): New structure.
3676         (add_removable_zero_extend): New function.
3677         (find_removable_zero_extends): Use note_stores to find SETs.
3678         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
3679
3680 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
3681
3682         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
3683         is_miss_rate_acceptable. Pull total_positions computation
3684         out of the loops.  Early return if miss_positions exceeds
3685         the acceptable threshold.
3686         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
3687         is_miss_rate_acceptable after renaming of compute_miss_rate.
3688
3689 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
3690
3691         PR middle-end/44576
3692         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
3693         of 1000) for miss rate if the address diference is greater than or
3694         equal to the cache line size (the two reference will never hit the
3695         same cache line).
3696
3697 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
3698
3699         PR target/42835
3700         * config/arm/arm-modes.def (CC_NOTB): New mode.
3701         * config/arm/arm.c (get_arm_condition_code): Handle it.
3702         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
3703         * config/arm/arm.md (subsi3_compare0_c): New pattern.
3704         (compare_scc): Now a define_and_split.  Add a number of extra
3705         splitters before it.
3706
3707         PR target/42172
3708         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
3709         and ZERO_EXTEND.
3710         (arm_rtx_costs_1): Likewise.
3711         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
3712         * config/arm/arm.md (is_arch6): New attribute.
3713         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
3714         extendqisi2): Tighten the code somewhat, avoiding invalid
3715         RTL to occur in the expander patterns.
3716         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
3717         (thumb1_zero_extendhisi2_v6): Delete.
3718         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
3719         (thumb1_extendhisi2_v6): Delete.
3720         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
3721         (thumb1_extendqisi2_v6): Delete.
3722         (zero_extendhisi2 for register input splitter): New.
3723         (zero_extendqisi2 for register input splitter): New.
3724         (thumb1_extendhisi2 for register input splitter): New.
3725         (extendhisi2 for register input splitter): New.
3726         (extendqisi2 for register input splitter): New.
3727         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
3728         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
3729         and add support for a register alternative requiring a split.
3730         (thumb1_zero_extendqisi2): Likewise.
3731         (arm_zero_extendqisi2): Likewise.
3732         (arm_extendhisi2): Likewise.
3733         (arm_extendqisi2): Likewise.
3734
3735 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
3736
3737         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
3738         instead of an unspec.
3739         (neon_expand_vector_init): Likewise.
3740         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
3741         (UNSPEC_VDUP_LANE): Delete.
3742         (UNSPEC VDUP_N): Delete.
3743         (UNSPEC_VGET_HIGH): Delete.
3744         (UNSPEC_VGET_LANE): Delete.
3745         (UNSPEC_VGET_LOW): Delete.
3746         (UNSPEC_VMVN): Delete.
3747         (UNSPEC_VSET_LANE): Delete.
3748         (V_double_vector_mode): New.
3749         (vec_set<mode>_internal): Make code emitted match that for the
3750         corresponding intrinsics.
3751         (vec_setv2di_internal): Likewise.
3752         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
3753         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
3754         (neon_vset_lane<mode>): Combine double and quad patterns and
3755         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
3756         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
3757         (neon_vdup_n<mode>): Rewrite RTL without unspec.
3758         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
3759         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
3760         with neon_vdup_lanev2di, adjusting the pattern from the latter
3761         to be predicable for consistency.
3762         (neon_vdup_lane<mode>_internal): New.
3763         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
3764         to avoid using an unspec.
3765         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
3766         (neon_vdup_lanev2di): Turn into a define_expand.
3767         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
3768         (neon_vget_high<mode>): Replace with....
3769         (neon_vget_highv16qi): New pattern using canonical RTL.
3770         (neon_vget_highv8hi): Likewise.
3771         (neon_vget_highv4si): Likewise.
3772         (neon_vget_highv4sf): Likewise.
3773         (neon_vget_highv2di): Likewise.
3774         (neon_vget_low<mode>): Replace with....
3775         (neon_vget_lowv16qi): New pattern using canonical RTL.
3776         (neon_vget_lowv8hi): Likewise.
3777         (neon_vget_lowv4si): Likewise.
3778         (neon_vget_lowv4sf): Likewise.
3779         (neon_vget_lowv2di): Likewise.
3780
3781         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
3782         test for this emitting vmov.
3783         (Vset_lane): Likewise.
3784         (Vdup_n): Likewise.
3785         (Vmov_n): Likewise.
3786
3787         * doc/arm-neon-intrinsics.texi: Regenerated.
3788
3789 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
3790
3791         * config/arm/neon.md (vec_extractv2di): Correct error in register
3792         numbering to reconcile with neon_vget_lanev2di.
3793
3794 2010-07-02  Richard Guenther  <rguenther@suse.de>
3795
3796         * tree-ssa-structalias.c (pt_solution_set_var): New function.
3797         * tree-ssa-alias.h (pt_solution_set_var): Declare.
3798         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
3799         points-to information.
3800
3801 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
3802
3803         * config/s390/s390.c (override_options): Adopt prefetching
3804         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
3805
3806 2010-07-02  Jan Hubicka  <jh@suse.cz>
3807
3808         * df-problems.c (df_kill_notes): Do not collect dead  notes.
3809         (df_set_note): Just call add_reg_note.
3810         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
3811         df_create_unused_note): Do not deal with lists of old notes.
3812         (df_note_bb_compute): Likewise.
3813
3814 2010-07-02  Richard Guenther  <rguenther@suse.de>
3815
3816         * tree-ssa-structalias.c (find_func_aliases): Handle
3817         pointer alignment via BIT_AND_EXPR.
3818         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
3819
3820 2010-07-02  Richard Guenther  <rguenther@suse.de>
3821
3822         * tree-data-ref.c (initialize_data_dependence_relation): Handle
3823         mismatching number of dimensions properly.
3824
3825 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3826
3827         PR target/44707
3828         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
3829         (lo_sum (high ...) ...) patterns generated by earlier passes.
3830
3831 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3832
3833         * doc/install.texi (Prerequisites): Document Perl requirement on
3834         Solaris 2.
3835         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
3836
3837 2010-07-02  Richard Guenther  <rguenther@suse.de>
3838
3839         PR middle-end/44777
3840         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
3841
3842 2010-07-02  Jan Hubicka  <jh@suse.cz>
3843
3844         PR middle-end/44706
3845         * predict.c (predict_paths_for_bb): Handle case when control dependence
3846         BB has only abnormal edges.
3847
3848 2010-07-02  Richard Guenther  <rguenther@suse.de>
3849
3850         PR tree-optimization/44748
3851         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
3852         the embedded conversion in MEM_REFs.
3853
3854 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
3855
3856         * reload.c: Include toplev.h.
3857         * recog.c:  Likewise.
3858         * Makefile.in: Adjust dependencies.
3859
3860 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
3861
3862         PR debug/44694
3863         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
3864         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
3865
3866 2010-07-01  Richard Guenther  <rguenther@suse.de>
3867
3868         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
3869         types for offsets.
3870
3871 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
3872
3873         PR target/44732
3874         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
3875         Fix argument types.
3876
3877 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
3878
3879         PR target/44727
3880         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3881         Make sure operand 0 dies.
3882
3883 2010-07-01  Richard Guenther  <rguenther@suse.de>
3884
3885         PR middle-end/42834
3886         PR middle-end/44468
3887         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
3888         * doc/generic.texi (References to storage): Document MEM_REF.
3889         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
3890         (print_call_name): Likewise.
3891         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
3892         (build_simple_mem_ref_loc): New function.
3893         (mem_ref_offset): Likewise.
3894         * tree.h (build_simple_mem_ref_loc): Declare.
3895         (build_simple_mem_ref): Define.
3896         (mem_ref_offset): Declare.
3897         * fold-const.c: Include tree-flow.h.
3898         (operand_equal_p): Handle MEM_REF.
3899         (build_fold_addr_expr_with_type_loc): Likewise.
3900         (fold_comparison): Likewise.
3901         (fold_unary_loc): Fold
3902         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
3903         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
3904         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
3905         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
3906         (ptr_deref_may_alias_ref_p_1): Likewise.
3907         (ao_ref_base_alias_set): Properly differentiate base object for
3908         offset and TBAA.
3909         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
3910         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
3911         (indirect_refs_may_alias_p): Likewise.
3912         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
3913         chasing code.
3914         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
3915         (call_may_clobber_ref_p_1): Likewise.
3916         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
3917         * expr.c (expand_assignment): Handle MEM_REF.
3918         (store_expr): Handle MEM_REFs from STRING_CSTs.
3919         (store_field): If expanding a MEM_REF of a non-addressable
3920         decl use bitfield operations.
3921         (get_inner_reference): Handle MEM_REF.
3922         (expand_expr_addr_expr_1): Likewise.
3923         (expand_expr_real_1): Likewise.
3924         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
3925         * alias.c (ao_ref_from_mem): Handle MEM_REF.
3926         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
3927         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
3928         (dr_analyze_indices): Likewise.
3929         (dr_analyze_alias): Likewise.
3930         (object_address_invariant_in_loop_p): Likewise.
3931         * gimplify.c (mark_addressable): Handle MEM_REF.
3932         (gimplify_cond_expr): Build MEM_REFs.
3933         (gimplify_modify_expr_to_memcpy): Likewise.
3934         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
3935         (gimple_fold_indirect_ref): Adjust.
3936         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
3937         * tree.def (MEM_REF): New tree code.
3938         * tree-dfa.c: Include toplev.h.
3939         (get_ref_base_and_extent): Handle MEM_REF.
3940         (get_addr_base_and_unit_offset): New function.
3941         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
3942         * gimple-fold.c (may_propagate_address_into_dereference): Handle
3943         MEM_REF.
3944         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
3945         accesses if the array has just one dimension.  Remove always true
3946         parameter.  Do not require type compatibility here.
3947         (maybe_fold_offset_to_component_ref): Remove.
3948         (maybe_fold_stmt_indirect): Remove.
3949         (maybe_fold_reference): Remove INDIRECT_REF handling.
3950         Fold back to non-MEM_REF.
3951         (maybe_fold_offset_to_address): Simplify.  Deal with type
3952         mismatches here.
3953         (maybe_fold_reference): Likewise.
3954         (maybe_fold_stmt_addition): Likewise.  Also handle
3955         &ARRAY + I in addition to &ARRAY[0] + I.
3956         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
3957         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
3958         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
3959         * tree-ssa.c (useless_type_conversion_p): Make most pointer
3960         conversions useless.
3961         (warn_uninitialized_var): Handle MEM_REF.
3962         (maybe_rewrite_mem_ref_base): New function.
3963         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
3964         to SSA form.
3965         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
3966         INDIRECT_REF handling.
3967         (copy_tree_body_r): Handle MEM_REF.
3968         * gimple.c (is_gimple_addressable): Adjust.
3969         (is_gimple_address): Likewise.
3970         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
3971         invariant base are invariant.
3972         (is_gimple_min_lval): Adjust.
3973         (is_gimple_mem_ref_addr): New function.
3974         (get_base_address): Handle MEM_REF.
3975         (count_ptr_derefs): Likewise.
3976         (get_base_loadstore): Likewise.
3977         * gimple.h (is_gimple_mem_ref_addr): Declare.
3978         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
3979         * tree-cfg.c (verify_address): New function, split out from ...
3980         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
3981         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
3982         INDIRECT_REFs.
3983         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
3984         INDIRECT_REF.  Allow conversions.
3985         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
3986         a register does not change its size.
3987         (verify_types_in_gimple_reference): Verify MEM_REF.
3988         (verify_gimple_assign_single): Disallow INDIRECT_REF.
3989         Handle MEM_REF.
3990         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
3991         New.
3992         (mark_address_taken): Handle MEM_REF.
3993         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
3994         (get_asm_expr_operands): Pass opf_not_non_addressable.
3995         (get_expr_operands): Handle opf_[not_]non_addressable.
3996         Handle MEM_REF.  Remove INDIRECT_REF handling.
3997         * tree-vrp.c (check_array_ref): Handle MEM_REF.
3998         (search_for_addr_array): Likewise.
3999         (check_array_bounds): Likewise.
4000         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
4001         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
4002         (ref_always_accessed_p): Likewise.
4003         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
4004         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
4005         Handle MEM_REF.
4006         * cgraphbuild.c (mark_load): Properly check for NULL result
4007         from get_base_address.
4008         (mark_store): Likewise.
4009         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
4010         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
4011         handling for MEM_REF.
4012         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
4013         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
4014         * builtins.c (stabilize_va_list_loc): Use the function ABI
4015         valist type if we couldn't canonicalize the argument type.
4016         Always dereference with the canonical va-list type.
4017         (maybe_emit_free_warning): Handle MEM_REF.
4018         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
4019         memmove to memcpy.
4020         * builtins.c (fold_builtin_memory_op): Use ref-all types
4021         for all memcpy foldings.
4022         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
4023         (build_outer_var_ref): Likewise.
4024         (scan_omp_1_op): Likewise.
4025         (lower_rec_input_clauses): Likewise.
4026         (lower_lastprivate_clauses): Likewise.
4027         (lower_reduction_clauses): Likewise.
4028         (lower_copyprivate_clauses): Likewise.
4029         (expand_omp_atomic_pipeline): Likewise.
4030         (expand_omp_atomic_mutex): Likewise.
4031         (create_task_copyfn): Likewise.
4032         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
4033         Remove old union trick.  Initialize constant offsets.
4034         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
4035         INDIRECT_REF.  Init base_alias_set properly.
4036         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
4037         (vn_reference_fold_indirect): Adjust for MEM_REFs.
4038         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
4039         for ARRAY_REFs.
4040         (may_insert): Remove.
4041         (visit_reference_op_load): Do not test may_insert.
4042         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
4043         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
4044         a field to store the constant offset this op applies.
4045         (run_scc_vn): Adjust prototype.
4046         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
4047         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
4048         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
4049         bother about volatile qualifiers on pointers.
4050         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
4051         * tree-ssa-loop-ivopts.c
4052         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
4053         (strip_offset_1): Likewise.
4054         (find_interesting_uses_address): Replace INDIRECT_REF handling with
4055         MEM_REF handling.
4056         (get_computation_cost_at): Likewise.
4057         * ipa-pure-const.c (check_op): Handle MEM_REF.
4058         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
4059         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
4060         and constants.
4061         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
4062         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
4063         (eliminate_local_variables_1): Likewise.
4064         (create_call_for_reduction_1): Likewise.
4065         (create_loads_for_reductions): Likewise.
4066         (create_loads_and_stores_for_name): Likewise.
4067         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
4068         (ssa_accessed_in_tree): Handle MEM_REF.
4069         (ssa_accessed_in_assign_rhs): Likewise.
4070         (update_type_size): Likewise.
4071         (analyze_accesses_for_call_stmt): Likewise.
4072         (analyze_accesses_for_assign_stmt): Likewise.
4073         (transform_access_sites): Likewise.
4074         (transform_allocation_sites): Likewise.
4075         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
4076         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4077         not handle INDIRECT_REF.
4078         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
4079         (cond_store_replacement): Likewise.
4080         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
4081         MEM_REF, no not handle INDIRECT_REFs.
4082         (insert_into_preds_of_block): Properly initialize avail.
4083         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
4084         for ARRAY_REFs.  Properly handle reference lookups that
4085         require a bit re-interpretation.
4086         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
4087         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
4088         (build_ref_for_offset_1): Remove.
4089         (build_ref_for_offset): Build MEM_REFs.
4090         (gate_intra_sra): Disable for now.
4091         (sra_ipa_modify_expr): Handle MEM_REF.
4092         (ipa_early_sra_gate): Disable for now.
4093         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
4094         MEM_REF handling.
4095         (disqualify_base_of_expr): Likewise.
4096         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
4097         MEM_REF handling.
4098         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
4099         Use mem_ref_offset.  Remove bogus folding.
4100         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
4101         (make_fancy_name_1): Add support for MEM_REF.
4102         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
4103         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
4104         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
4105         (compute_complex_ancestor_jump_func): Likewise.
4106         (ipa_analyze_virtual_call_uses): Likewise.
4107         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
4108         INDIRECT_REF folding with more generalized MEM_REF folding.
4109         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
4110         (forward_propagate_addr_into_variable_array_index): Also handle
4111         &ARRAY + I in addition to &ARRAY[0] + I.
4112         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
4113         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
4114         creates assignments with overlap.
4115         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
4116         (get_frame_field): Likewise.
4117         (get_nonlocal_debug_decl): Likewise.
4118         (convert_nonlocal_reference_op): Likewise.
4119         (struct nesting_info): Add mem_refs pointer-set.
4120         (create_nesting_tree): Allocate it.
4121         (convert_local_reference_op): Insert to be folded mem-refs.
4122         (fold_mem_refs): New function.
4123         (finalize_nesting_tree_1): Perform defered folding of mem-refs
4124         (free_nesting_tree): Free the pointer-set.
4125         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
4126         (vectorizable_load): Likewise.
4127         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
4128         (propagate_with_phi): Likewise.
4129         * tree-object-size.c (addr_object_size): Handle MEM_REFs
4130         instead of INDIRECT_REFs.
4131         (compute_object_offset): Handle MEM_REF.
4132         (plus_stmt_object_size): Handle MEM_REF.
4133         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
4134         for &MEM_REF.
4135         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
4136         (symbol_marked_for_renaming): Likewise.
4137         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
4138         (fold-const.o): Add $(TREE_FLOW_H).
4139         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
4140         (find_func_clobbers): Likewise.
4141         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
4142         (decompose_access): Likewise.
4143         (replace_field_acc): Likewise.
4144         (replace_field_access_stmt): Likewise.
4145         (insert_new_var_in_stmt): Likewise.
4146         (get_stmt_accesses): Likewise.
4147         (reorg_structs_drive): Disable.
4148         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
4149         (ix86_canonical_va_list_type): Likewise.
4150
4151 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4152
4153         PR other/44566
4154         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
4155         * target.def (struct gcc_target): Replace enum reg_class with
4156         reg_class_t in hook argument / return types.
4157         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
4158         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
4159         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4160         * targhooks.h (default_branch_target_register_class): Likewise.
4161         (default_ira_cover_classes, default_secondary_reload): Likewise.
4162         (default_memory_move_cost, default_register_move_cost): Likewise.
4163         * targhooks.c (default_branch_target_register_class): Likewise.
4164         (default_ira_cover_classes, default_secondary_reload): Likewise.
4165         (default_memory_move_cost, default_register_move_cost): Likewise.
4166         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
4167         * bt-load.c (branch_target_load_optimize): Likewise.
4168         * ira.c (setup_cover_and_important_classes): Likewise.
4169         * ira-costs.c (copy_cost): Likewise.
4170         * reload1.c (emit_input_reload_insns): Likewise.
4171         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4172         * config/frv/frv.c (frv_secondary_reload): Likewise.
4173         * config/s390/s390.c (s390_secondary_reload): Likewise.
4174         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
4175         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
4176         (ix86_register_move_cost): Likewise.
4177         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
4178         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
4179         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
4180         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
4181         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
4182         (rs6000_ira_cover_classes): Likewise.
4183         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
4184         * config/picochip/picochip-protos.h (picochip_secondary_reload):
4185         Likewise.
4186         * config/pa/pa.c (pa_secondary_reload): Likewise.
4187         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
4188         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
4189         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
4190         * doc/tm.texi: Regenerate.
4191
4192 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
4193
4194         PR bootstrrap/44726
4195         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
4196         use.
4197         (build_alias_set_optimal_p): Likewise.
4198         (build_base_obj_set_for_drs): Likewise.
4199
4200 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4201
4202         * target.def: Remove comment about licensing problems of function
4203         declarations.
4204
4205         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
4206         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
4207         * doc/tm.texi: Regenerate.
4208
4209         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
4210         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
4211
4212         * target.def (enum_va_list_p): Use DEFHOOK.
4213         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
4214         Rename ptype to ptree.
4215         * doc/tm.texi: Regenerate.
4216
4217         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
4218         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
4219         * doc/tm.texi: Regenerate.
4220
4221         * target.def (memory_move_cost): Use DEFHOOK.
4222         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
4223         Rename regclass AKA class to rclass.
4224         * doc/tm.texi: Regenerate.
4225
4226         * target.def (pragma_parse): Use DEFHOOK.
4227         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
4228         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
4229         * doc/tm.texi: Regenerate.
4230
4231         * target.def (pass_by_reference): Use DEFHOOK.
4232         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
4233         * doc/tm.texi: Regenerate.
4234
4235         * target.def (resolve_overloaded_builtin): Rename params to arglist.
4236         Use DEFHOOK.
4237         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
4238         * doc/tm.texi: Regenerate.
4239
4240         * target.def (return_pops_args): Use DEFHOOK.
4241         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
4242         Rename stack-size to size.
4243         * doc/tm.texi: Regenerate.
4244
4245         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
4246         last-sched_cycle to last_clock, cur_cycle to clock.
4247         * doc/tm.texi.in: Use @hook.
4248         * doc/tm.texi: Regenerate.
4249
4250         * target.def (print_operand, print_operand_address): Update comment.
4251         (print_operand_punct_valid_p): Likewise.
4252
4253 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4254
4255         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
4256         to rtl.h.
4257         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
4258         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
4259         * rtl-error.h: New.
4260         * regrename.c: Do not include toplev.h. Include rtl-error.h.
4261         * rtl-error.c: Likewise.
4262         * reload.c: Likewise.
4263         * recog.c:  Likewise.
4264         * sel-sched.c: Likewise.
4265         * function.c: Likewise.
4266         * reg-stack.c: Likewise.
4267         * cfgrtl.c: Likewise.
4268         * reload1.c: Likewise.
4269         * final.c: Include rtl-error.
4270         * Makefile.in: Adjust dependencies.
4271
4272 2010-06-30  Jan Hubicka  <jh@suse.cz>
4273
4274         PR middle-end/PR44706
4275         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
4276         to return the value.
4277
4278 2010-06-30  Michael Matz  <matz@suse.de>
4279
4280         PR bootstrap/44699
4281         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
4282         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
4283         a gimple reg, attach the original VDEF to the last store in the
4284         sequence.
4285
4286 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
4287
4288         PR other/44034
4289         * config/darwin.c (darwin_override_options): Use renamed
4290         targetm.asm_out.emit_unwind_label.
4291
4292 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
4293
4294         PR tree-optimization/39799
4295         * tree-inline.c (remap_ssa_name): Initialize variable only if
4296         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4297
4298 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
4299
4300         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
4301
4302 2010-06-30  Richard Guenther  <rguenther@suse.de>
4303
4304         PR target/44722
4305         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
4306         against oscillation with reverse peephole2.
4307
4308 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
4309
4310         PR target/44721
4311         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4312         Fix last commit.
4313
4314 2010-06-30  Nick Clifton  <nickc@redhat.com>
4315
4316         * config/rx/rx-modes.def: New file.
4317         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
4318         (CC_REGNUM): Define.
4319         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
4320         register.
4321         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
4322         (SELECT_CC_MODE): Define.
4323         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
4324         (reg:CC CC_REG) instead of (cc0).
4325         (attr "cc"): Delete.
4326         (cbranchsi4): Do not split compare and branch here. Instead move
4327         it to...
4328         (cbranchsi4_<code>): ... here.  New patterns.
4329         (cmpsi): Call rx-compare_redundant to find out if it is necessary
4330         to emit the compare instruction.
4331         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
4332         cc_status flags.
4333         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
4334         FIRST_PSEUDO_REGNUM.
4335         (rx_expand_prologue, rx_expand_epilogue): Likewise.
4336         (rx_notice_update_cc): Delete.
4337         (rx_cc_modes_compatible): New function.
4338         (flags_needed_for_conditional): New function.
4339         (flags_from_mode): New function.
4340         (rx_compare_redundant): New function - scans backwards through
4341         insn list to find out if condition flags are already set correctly.
4342         (TARGET_CC_MODES_COMPATIBLE): Define.
4343         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
4344
4345         * config/rx/rx.h (BRANCH_COST): Define.
4346         (REGISTER_MOVE_COST): Define.
4347         * config/rx/predicates (rx_source_operand): Allow all constant types.
4348         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
4349         (tstsi4): New pattern.
4350         * config/rx/rx.c (rx_memory_move_cost): Define.
4351         (TARGET_MEMORY_MOVE_COST): Define.
4352
4353 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4354
4355         * tree.h (block_may_fallthru): Declare here.
4356         * tree-flow.h (block_may_fallthru): Do not declare here.
4357         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
4358         bitmap.h
4359         * Makefile.in (c-typeck.o): Update dependencies.
4360
4361 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
4362
4363         PR debug/44694
4364         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
4365         * cselib.c (cfa_base_preserved_regno): New static variable.
4366         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
4367         of REGNO (cfa_base_preserved_val->locs->loc).
4368         (cselib_preserve_cfa_base_value): Add regno argument, set
4369         cfa_base_preserved_regno to it.
4370         (cselib_invalidate_regno): Allow removal of registers other than
4371         cfa_base_preserved_regno from cfa_base_preserved_val.
4372         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
4373         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
4374         of MEM addresses, if not on LHS.
4375         (reverse_op): Don't add reverse ops for cfa_base_rtx.
4376         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
4377
4378 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
4379
4380         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
4381         static variables.
4382         (peep2_buf_position): New static function.
4383         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
4384         peephole2_optimize): Use it.
4385         (peep2_attempt, peep2_update_life): New static functions, broken out
4386         of peephole2_optimize.
4387         (peep2_fill_buffer): New static function.
4388         (peephole2_optimize): Change the main loop to try to fill the buffer
4389         with the maximum number of insns before matching them against
4390         peepholes.  Use a forward scan.  Remove special case for targets with
4391         conditional execution.
4392         * genrecog.c (change_state): Delete dead code.
4393         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4394         Rewrite so as not to expect the second insn to have had a peephole
4395         applied yet.
4396
4397 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4398
4399         * genhooks.c (emit_findices): Cast field precision to int.
4400         (emit_documentation): Likewise.
4401
4402 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
4403
4404         PR tree-optimization/43801
4405         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
4406         if old_decl was DECL_ONE_ONLY.
4407
4408         PR debug/44668
4409         * dwarf2out.c (add_accessibility_attribute): New function.
4410         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
4411         instead of adding DW_AT_accessibility manually.
4412         (gen_enumeration_type_die, gen_struct_or_union_type_die,
4413         gen_typedef_die): Use it.
4414
4415 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4416
4417         * vmsdbgout.c (full_name): Just output the file name if not native.
4418
4419 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4420
4421         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
4422         (funcnam_table): New static table.
4423         (funcnum_table): New static table.
4424         (write_rtnbeg): Write value saved in funcnum_table.
4425         (write_rtnend): Write value saved in funcnum_table.
4426         (vmsdbgout_begin_function): Save current function info in
4427         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
4428         (vmsdbgout_finish): Iterate over funcnum_table.
4429
4430 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4431
4432         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
4433         (vmsdbgout_type_decl): Declare
4434         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
4435         (FUNC_EPILOGUE_LABEL): New macro
4436         (vmsdbgout_begin_epilogue): New function.
4437         (vmsdbgout_type_decl): New function.
4438
4439 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4440
4441         * vmsdbg.h: Update copyright.
4442
4443 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
4444
4445         * vmsdbg.h (DST_K_TBG): New DST constant.
4446         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
4447         (write_modbeg): Cast module_language to avoid warning.
4448         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
4449
4450 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4451
4452         PR other/44034
4453         * target.def, doc/tm.texi.in, genhooks.c: New files.
4454         * target.h: Instead of defining individual hook members,
4455         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
4456         include target.def.
4457         * target-def.h: Instead of defining individual hook initializers,
4458         include target-hooks-def.h.
4459         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
4460         targetm.live_on_entry -> targetm.extra_live_on_entry
4461         targetm.sched.md_finish ->targetm.sched.finish
4462         targetm.sched.md_init -> targetm.sched.init
4463         targetm.sched.md_init_global -> targetm.sched.init_global
4464         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
4465         targetm.asm_out.except_table_label ->
4466           targetm.asm_out.emit_except_table_label
4467         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
4468         targetm.target_help -> targetm.help
4469         targetm.vectorize.builtin_support_vector_misalignment ->
4470           targetm.vectorize.support_vector_misalignment
4471         targetm.file_start_app_off -> targetm.asm_file_start_app_off
4472         targetm.file_start_file_directive ->
4473          targetm.asm_file_start_file_directive
4474         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
4475         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
4476         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
4477         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
4478           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
4479         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
4480           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
4481         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
4482         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
4483         * Makefile.in (TARGET_H): Depend on target.def.
4484         (TARGET_DEF_H): Depend on target-hooks-def.h.
4485         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
4486         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
4487         * doc/tm.texi: Regenerate.
4488
4489         * Makefile.in (s-tm-texi): Remove stray tab / rule.
4490
4491         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
4492         (targetm.sched.init): Likewise.
4493
4494 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4495
4496         PR bootstrap/44713
4497         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
4498         (function_arg_advance_32): Const-ify TYPE parameter.
4499         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
4500         (ix86_function_arg_advance): Change type of NAMED to bool.
4501         (function_arg_32): Const-ify CUM and TYPE parameters.
4502         (function_arg_64): Likewise.  Change type of NAMED to bool.
4503         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
4504         to bool.
4505         (ix86_function_arg): Change type of NAMED to bool.
4506         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
4507         last argument as a bool.
4508
4509 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4510
4511         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
4512         (OVERRIDE_OPTIONS): Add note of obsolescence.
4513         Replace references with references to TARGET_OPTION_OVERRIDE.
4514         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
4515          the macro).
4516         * targhooks.c (default_target_option_override): New function.
4517         * targhooks.h (default_target_option_override): Declare.
4518         * target.h (struct gcc_target): Add override member to
4519         target_option member.
4520         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
4521         targetm.target_option.override call.
4522         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
4523         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
4524
4525 2010-06-29  Jan Hubicka  <jh@suse.cz>
4526
4527         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
4528
4529 2010-06-29  Jan Hubicka  <jh@suse.cz>
4530
4531         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
4532         unreachable.
4533         (rebuild_frequencies): New function.
4534         * predict.h (rebuild_frequencies): Declare.
4535         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
4536         entry block and edge reaching new_entry.
4537         (tree_function_versioning): When doing partial cloning, rebuild
4538         frequencies when done.
4539         * passes.c (execute_function_todo): Use rebild_frequencies.
4540
4541 2010-06-29  Richard Guenther  <rguenther@suse.de>
4542
4543         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
4544         * tree-flow.h (enum noalias_state): Remove.
4545         (struct var_ann_d): Remove noalias_state member.
4546
4547 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
4548
4549         PR target/43902
4550         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
4551         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
4552         (maddhidi4): Likewise.
4553
4554         Revert parts of the change for PR25130.
4555         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4556         MEM_ALIAS_SET.
4557
4558 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4559
4560         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
4561         targetm.calls.function_incoming_arg, and
4562         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
4563         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
4564         * target.h (struct gcc_target): Add function_arg_advance,
4565         function_arg, and function_incoming_arg fields.
4566         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
4567         (TARGET_FUNCTION_INCOMING_ARG): Define.
4568         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
4569         and TARGET_FUNCTION_INCOMING_ARG.
4570         * targhooks.h (default_function_arg_advance): Declare.
4571         (default_function_arg, default_function_incoming_arg): Declare.
4572         * targhooks.c (default_function_arg_advance): New function.
4573         (default_function_arg, default_function_incoming_arg): New function.
4574         * config/i386/i386.c (function_arg_advance): Rename to...
4575         (ix86_function_arg_advance): ...this.  Make static.
4576         (function_arg): Rename to...
4577         (ix86_function_arg): ...this.  Make static.
4578         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4579         (TARGET_FUNCTION_ARG): Define.
4580         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
4581         (FUNCTION_ARG): Delete.
4582         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
4583         (function_arg): Delete prototype.
4584
4585 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
4586
4587         * reginfo.c (init_reg_sets_1): Adjust comments.
4588         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
4589         * calls.c (prepare_call_address): Likewise.
4590         (emit_call_1): Use targetm.calls.return_pops_args.
4591         (expand_call): Likewise.
4592         * function.c (assign_parms): Likewise.
4593         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
4594         * target.h (struct gcc_target) [struct calls]: Add
4595         return_pops_args field.
4596         * targhooks.h (default_return_pops_args): Declare.
4597         * targhooks.c (default_return_pops_args): Define.
4598         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
4599         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
4600         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
4601         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
4602         documentation.
4603         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
4604         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
4605         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
4606         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
4607         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
4608         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
4609         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
4610         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
4611         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
4612         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
4613         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
4614         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
4615         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
4616         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
4617         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
4618         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
4619         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
4620         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
4621         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
4622         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
4623         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
4624         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
4625         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
4626         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
4627         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
4628         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
4629         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
4630         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
4631         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
4632         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
4633         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
4634         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
4635         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
4636         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
4637         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
4638         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
4639         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
4640         * config/i386/i386.c (ix86_return_pops_args): Make static.
4641         Constify arguments.
4642         (TARGET_RETURN_POPS_ARGS): Define.
4643         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
4644         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
4645         (TARGET_RETURN_POPS_ARGS): Define.
4646         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
4647         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
4648         (TARGET_RETURN_POPS_ARGS): Define.
4649
4650 2010-06-29  Richard Guenther  <rguenther@suse.de>
4651
4652         PR middle-end/44667
4653         * tree-inline.c (initialize_inlined_parameters): Make sure
4654         to remap the inlined parameter variable substitutions types.
4655
4656 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
4657
4658         PR rtl-optimization/44659
4659         * combine.c (make_compound_operation) <SUBREG>: Do not return the
4660         result of force_to_mode if it partially re-expanded the compound.
4661
4662 2010-06-28  Jan Hubicka  <jh@suse.cz>
4663
4664         PR middle-end/44671
4665         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
4666         RESULT_DECL.
4667
4668 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4669
4670         * double-int.h (force_fit_type_double): Remove declaration.
4671         * double-int.c (force_fit_type_double): Move to tree.c.
4672         * tree.h (force_fit_type_double): Declare.
4673         * tree.h (force_fit_type_double): Moved from double-int.c. Use
4674         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
4675         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
4676         * convert.c (convert_to_pointer): Adjust call to
4677         force_fit_type_double.
4678         * tree-vrp.c (extract_range_from_assert,
4679         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
4680         * fold-const.c: Update comment.
4681         (int_const_binop, fold_convert_const_int_from_int,
4682         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
4683         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
4684         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
4685         round_up_loc): Adjust call to force_fit_type_double.
4686
4687 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4688
4689         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
4690
4691 2010-06-28  Martin Jambor  <mjambor@suse.cz>
4692
4693         * tree-sra.c (convert_callers): New parameter, change fndecls of
4694         recursive calls.
4695         (modify_function): Pass the old decl to convert_callers.
4696
4697 2010-06-28  Martin Jambor  <mjambor@suse.cz>
4698
4699         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
4700         ipa_check_create_node_params and ipa_initialize_node_params with
4701         checking asserts they are not necessary.
4702
4703 2010-06-28  Jan Hubicka  <jh@suse.cz>
4704
4705         PR tree-optimization/44687
4706         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
4707
4708 2010-06-28  Martin Jambor  <mjambor@suse.cz>
4709
4710         PR c++/44535
4711         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
4712         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
4713         instead of BINFO_BASE_BINFO.
4714
4715 2010-06-28  Michael Matz  <matz@suse.de>
4716
4717         PR middle-end/44592
4718         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
4719         proper VDEF chain for intermediate stores in the sequence.
4720
4721 2010-06-28  Jan Hubicka  <jh@suse.cz>
4722
4723         PR tree-optimization/44357
4724         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
4725         uninlinable functions.
4726
4727 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4728
4729         * config.gcc (powerpc*-*-*): Handle titan.
4730         * config/rs6000/rs6000.c (titan_cost): New costs.
4731         (rs6000_override_options): Add "titan" to processor_target_table.
4732         Add Titan to branch alignment logic.
4733         Correctly set rs6000_cost for titan.
4734         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
4735         * config/rs6000/titan.md: New file.
4736         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
4737
4738 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
4739
4740         * tree-browser.c (TB_history_stack): Convert to a VEC.
4741         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
4742         (TB_history_prev): Likewise.
4743
4744 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
4745
4746         * vec.h (vec_heap_free): Add parentheses around free.
4747
4748 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4749
4750         * system.h: Poison GCC_EXCEPT_H for front-end files.
4751
4752         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
4753         langhook.
4754         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
4755         Define to NULL by default.
4756         * except.h: Define GCC_EXCEPT_H.
4757         (doing_eh): Remove prototype.
4758         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
4759         (lang_protect_cleanup_actions): Remove.
4760         * except.c (lang_protect_cleanup_actions): Remove.
4761         (doing_eh): Remove.
4762         (gen_eh_region): Don't check doing_eh here.
4763         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
4764         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
4765         instead of lang_protect_cleanup_actions.
4766         * omp-low.c (maybe_catch_exception): Likewise.
4767         * Makefile.in: Update dependencies.
4768
4769 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
4770
4771         * cgraph.h (struct varpool_node): new used_from_object_file flag.
4772         (struct cgraph_local_info): new used_from_object_file flag.
4773         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
4774         (cgraph_clone_node): initialize used_from_object_file.
4775         (cgraph_create_virtual_clone): initialize used_from_object_file.
4776         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
4777         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
4778         when compiling with -fwhole-program.
4779         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
4780         internal resolver.
4781         * ipa.c (function_and_variable_visibility): Set externally_visible
4782         flag of varpool_node if used_from_object_file flag is set.
4783         (cgraph_externally_visible_p): check used_from_object_file flag.
4784         * doc/invoke.texi (-fwhole-program option): Change description of
4785         externally_visible attribute accordingly.
4786         * doc/extend.texi (externally_visible): Ditto.
4787
4788 2010-06-27  Jan Hubicka  <jh@suse.cz>
4789
4790         * params.def (max-inline-insns-auto): Default to 40.
4791         * doc/invoke.texi (max-inline-insns-auto): Document the change.
4792
4793 2010-06-27  Jan Hubicka  <jh@suse.cz>
4794
4795         PR middle-end/44671
4796         PR middle-end/44686
4797         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
4798         signature change.
4799         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
4800         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
4801
4802 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
4803
4804         * target.h (struct gcc_target): Add register_move_cost field.
4805         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
4806         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
4807         * targhooks.c (default_register_move_cost): New function.
4808         * targhooks.h (default_register_move_cost): Declare function.
4809         * defaults.h (REGISTER_MOVE_COST): Delete.
4810         * ira-int.h (ira_register_move_cost): Update comment.
4811         * ira.c (ira_register_move_cost): Update comment.
4812         * reload.h (register_move_cost): Declare.
4813         * reginfo.c (register_move_cost): New function.
4814         (move_cost): Update comment.
4815         (init_move_cost, memory_move_secondary_cost): Replace
4816         REGISTER_MOVE_COST with register_move_cost.
4817         * postreload.c (reload_cse_simplify_set): (Ditto.).
4818         * reload.c (find_valid_class, find_reloads): (Ditto.).
4819         * reload1.c (choose_reload_regs): (Ditto.).
4820         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
4821         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
4822         * doc/md.texi (can_create_pseudo_p): Update documentation.
4823
4824         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4825         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4826         * config/i386/i386.h (ix86_memory_move_cost): Make static.
4827         (TARGET_MEMORY_MOVE_COST): Define.
4828
4829         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4830         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
4831         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
4832         (TARGET_MEMORY_MOVE_COST): Define.
4833
4834 2010-06-27  Richard Guenther  <rguenther@suse.de>
4835
4836         PR tree-optimization/44683
4837         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
4838         false edge from the inverted condition.
4839
4840 2010-06-27  Richard Guenther  <rguenther@suse.de>
4841
4842         PR middle-end/44684
4843         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
4844         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
4845         for register LHS.  Or non-store assignments.
4846
4847 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
4848
4849         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
4850         (sparc_emit_set_const64): Likewise.  Remove disabled code.
4851         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
4852         (sparc_emit_set_const64): Likewise.
4853
4854 2010-06-26  Catherine Moore  <clm@codesourcery.com>
4855
4856         * config/mips/mips.md (alu_type): New attribute.
4857         (type): Infer type from alu_type.
4858         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
4859         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
4860         *subsi3_extended, negsi2, negdi2, *low<mode>,
4861         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
4862         xor<mode>3, *nor<mode>3,
4863         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
4864         *zero_extendhi_truncqi):  Set alu_type instead of type.
4865
4866 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
4867
4868         * config/alpha/alpha.c (alpha_need_linkage): Adjust
4869         splay_tree_new_ggc call.
4870         (alpha_use_linkage): Likewise.
4871
4872 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
4873
4874         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
4875         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
4876         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
4877         (static_specs): Remove switches_need_spaces.
4878         (process_command, do_self_spec): Hardcode handling "-o" instead of
4879         checking switches_need_spaces.
4880         * system.h (SWITCHES_NEED_SPACES): Poison.
4881
4882 2010-06-26  Richard Guenther  <rguenther@suse.de>
4883
4884         PR tree-optimization/44393
4885         * tree-loop-distribution.c (generate_loops_for_partition): Fix
4886         stmt removal and VOP renaming.
4887         (generate_memset_zero): Remove redundant stmt updating.
4888         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
4889         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
4890
4891 2010-06-26  Jan Hubicka  <jh@suse.cz>
4892
4893         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
4894         edges comming from header are equivalent.
4895         (visit_bb): Handle PHIs correctly.
4896         * tree-inline.c (copy_phis_for_bb): Be able to copy
4897         PHI from entry edge.
4898         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
4899
4900 2010-06-26  Richard Guenther  <rguenther@suse.de>
4901
4902         PR middle-end/44674
4903         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
4904         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
4905
4906 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
4907
4908         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
4909         add_infile, alloc_switch): New.
4910         (process_command): Remove variable lang_n_infiles.  Process
4911         options in a single pass.  Use new functions for allocating
4912         infiles and switches arrays.  Properly skip operands of
4913         -Xpreprocessor and -Xassembler.
4914
4915 2010-06-26  Jan Hubicka  <jh@suse.cz>
4916
4917         PR middle-end/44671
4918         * cgraphunit.c (cgraph_function_versioning): Remove wrong
4919         cgraph_make_decl_local call; fix typo copying RTL data.
4920
4921 2010-06-25  DJ Delorie  <dj@redhat.com>
4922
4923         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
4924         (m32c_output_aligned_common): Likewise.
4925         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4926         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
4927         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
4928         (m32c_register_pragmas): Register it.
4929         * config/m32c/m32c.c (m32c_get_pragma_address): New.
4930         (m32c_insert_attributes): Set #pragma address decls volatile.
4931         (pragma_entry_eq): New.
4932         (pragma_entry_hash): New.
4933         (m32c_note_pragma_address): New.
4934         (m32c_get_pragma_address): New.
4935         (m32c_output_aligned_common): New.
4936         * doc/extend.texi: Document the new pragma.
4937
4938         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
4939         also.
4940         * config/m32c/predicates.md (m32c_any_operand): Check the code
4941         instead of memory_operand so as to allow matching volatile MEMs.
4942         (m32c_nonimmediate_operand): Likewise.
4943         (mra_operand): Allow volatiles.
4944
4945 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
4946
4947         PR debug/44610
4948         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
4949         address if the offset is unknown.
4950
4951 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
4952
4953         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
4954         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
4955         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
4956         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
4957         to ia64_start_function. Invoke it.
4958         * config/ia64/ia64.c (ia64_start_function): Call new function
4959         dwarf2out_vms_debug_main_pointer.
4960
4961 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4962
4963         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
4964         statements computing the true predicate.
4965
4966 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4967
4968         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
4969         to boolean_true_node.
4970         (reset_bb_predicate): New.
4971         (predicate_bbs): Call reset_bb_predicate.
4972
4973 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4974
4975         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
4976         (tree_if_conversion): Returns true when something has been changed.
4977         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
4978         changed something.
4979
4980 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
4981
4982         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
4983         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
4984         * tree-if-conv.c: Include dbgcnt.h.
4985         (tree_if_conversion): Use if_conversion_tree to count the number of
4986         if-convertible loops.
4987
4988 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
4989
4990         * common.opt (fprefetch-loop-arrays): Re-define
4991         -fprefetch-loop-arrays as a tri-state option with the initial
4992         value of -1.
4993         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
4994         pass only when flag_prefetch_loop_arrays > 0.
4995         * toplev.c (process_options): Note that, with tri-states,
4996         flag_prefetch_loop_arrays>0 means prefetching is enabled.
4997         * config/i386/i386.c (override_options): Enable prefetching at -O3
4998         for a set of CPUs that sw prefetching is helpful.
4999         (software_prefetching_beneficial_p): New.  Return TRUE if software
5000         prefetching is beneficial for the given CPU.
5001
5002 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5003
5004         PR rtl-optimization/44326
5005         * implicit-zee.c (find_removable_zero_extends): Replace
5006         INSN_P with NONDEBUG_INSN_P.
5007
5008 2010-06-25  Martin Jambor  <mjambor@suse.cz>
5009
5010         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
5011         (struct ipa_node_params): Removed the modification_analysis_done flag.
5012         (ipa_is_param_modified): Removed.
5013         (ipa_analyze_node): Declare.
5014         (ipa_compute_jump_functions): Remove declaration.
5015         (ipa_count_arguments): Likewise.
5016         (ipa_detect_param_modifications): Likewise.
5017         (ipa_analyze_params_uses): Likewise.
5018         * ipa-prop.c (struct param_analysis_info): New type.
5019         (visit_store_addr_for_mod_analysis): Removed.
5020         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
5021         moved down in the file.
5022         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
5023         (ipa_count_arguments): Made static.
5024         (mark_modified): New function.
5025         (is_parm_modified_before_call): New function.
5026         (compute_pass_through_member_ptrs): New parameter parms_info, call
5027         is_parm_modified_before_call instead of ipa_is_param_modified.
5028         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
5029         it to compute_pass_through_member_ptrs.
5030         (ipa_compute_jump_functions): New parameter parms_info, pass it to
5031         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
5032         on the callee if it is analyzed.  Made static.
5033         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
5034         is_parm_modified_before_call instead of ipa_is_param_modified.
5035         (ipa_analyze_call_uses): New parameter parms_info, pass it to
5036         ipa_analyze_indirect_call_uses.
5037         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
5038         ipa_analyze_call_uses.
5039         (ipa_analyze_params_uses): New parameter parms_info, pass it to
5040         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
5041         (ipa_analyze_node): New function.
5042         (ipa_print_node_params): Do not dump the modified flag.
5043         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
5044         it.  Do not stream the modified parameter flag.
5045         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
5046         it.  Do not stream the modified parameter flag.
5047         * ipa-cp.c (ipcp_analyze_node): Removed.
5048         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
5049         with only a call to ipa_analyze_node.
5050         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
5051         node with only a call to ipa_analyze_node.
5052
5053 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5054
5055         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
5056
5057 2010-06-25  Jan Hubicka  <jh@suse.cz>
5058
5059         * tree-pass.h (pass_split_functions): Declare.
5060         * opts.c (decode_options): Enable function splitting at -O2
5061         * timevar.def (TV_IPA_FNSPLIT): New macro.
5062         * ipa-split.c: New file.
5063         * common.opt (-fpartial-inlining): New flag.
5064         * Makefile.in (ipa-split.o): New object file.
5065         * passes.c (init_optimization_passes): Add ipa-split.
5066         * params.def (partial-inlining-entry-probability): New parameters.
5067         * doc/invoke.texi (-fpartial-inlining): New.
5068
5069 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5070
5071         PR 44665
5072         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
5073         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
5074         (gimplify_expr): Likewise.
5075
5076 2010-06-25  Martin Jambor  <mjambor@suse.cz>
5077
5078         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
5079         statements instead of bailing out on them.
5080         (ipa_analyze_indirect_call_uses): Do not require that loads from the
5081         parameter are in the same BB as the condition.  Update comments.
5082
5083 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
5084
5085         PR middle-end/43866
5086         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
5087         true or always false, return NULL_TREE.
5088         (tree_unswitch_single_loop): Optimize conditions even when reaching
5089         max-unswitch-level parameter.  If num > 0, optimize first all conditions
5090         using entry checks, then do still reachable block discovery and consider
5091         only conditions in still reachable basic blocks in the loop.
5092
5093         PR tree-optimization/44539
5094         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
5095         the call doesn't have LHS, but has VDEF.
5096
5097 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
5098
5099         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
5100         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
5101         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
5102         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
5103         * system.h (MODIFY_TARGET_NAME): Poison.
5104
5105 2010-06-25  Alan Modra  <amodra@gmail.com>
5106
5107         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
5108         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
5109         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5110         CMODEL_LARGE as default.
5111         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
5112         (offsettable_ok_by_alignment): Delete.
5113         (rs6000_emit_move): Remove mcmodel=medium optimization.
5114
5115 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
5116
5117         With large parts from Jim Wilson:
5118         PR target/43902
5119         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
5120         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
5121         * optabs.c (optab_for_tree_code): Likewise.
5122         (expand_widen_pattern_expr): Likewise.
5123         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
5124         out of execute_optimize_widening_mul.
5125         (convert_plusminus_to_widen): New function.
5126         (execute_optimize_widening_mul): Use the two new functions.
5127         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
5128         Remove code to generate widening multiply-accumulate.  Add support
5129         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
5130         * gimple-pretty-print.c (dump_ternary_rhs): New function.
5131         (dump_gimple_assign): Call it when appropriate.
5132         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
5133         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5134         (expand_gimple_stmt_1): Likewise.
5135         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
5136         WIDEN_MULT_MINUS_EXPR.
5137         * tree-ssa-operands.c (get_expr_operands): Likewise.
5138         * tree-inline.c (estimate_operator_cost): Likewise.
5139         * gimple.c (extract_ops_from_tree_1): Renamed from
5140         extract_ops_from_tree.  Add new arg for a third operand; fill it.
5141         (gimple_build_assign_stat): Support operations with three operands.
5142         (gimple_build_assign_with_ops_stat): Likewise.
5143         (gimple_assign_set_rhs_from_tree): Likewise.
5144         (gimple_assign_set_rhs_with_ops_1): Renamed from
5145         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
5146         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
5147         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
5148         WIDEN_MULT_MINUS_EXPR.
5149         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
5150         (extract_ops_from_tree_1): Adjust declaration.
5151         (gimple_assign_set_rhs_with_ops_1): Likewise.
5152         (gimple_build_assign_with_ops): Pass NULL for last operand.
5153         (gimple_build_assign_with_ops3): New macro.
5154         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
5155         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
5156         functions.
5157         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
5158         (verify_gimple_assign): Call it.
5159         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
5160         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
5161         functions for dealing with three-operand statements.
5162         * tree.c (commutative_ternary_tree_code): New function.
5163         * tree.h (commutative_ternary_tree_code): Declare it.
5164         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
5165         ternary statements.
5166         (gimple_assign_nonzero_warnv_p): Likewise.
5167         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
5168         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
5169         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
5170         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
5171         (struct hashtable_expr): New member ternary in the union.
5172         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
5173         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
5174         (iterative_hash_hashable_expr): Likewise.
5175         (print_expr_hash_elt): Handle EXPR_TERNARY.
5176         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
5177         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
5178         statements.  Handle GIMPLE_TERNARY_RHS.
5179
5180 2010-06-25  Jan Hubicka  <jh@suse.cz>
5181
5182         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
5183
5184 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
5185
5186         PR c/44517
5187         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
5188         parameters are not good.
5189         (c_parser_parameter_declaration): Error unknown type name if the type
5190         name can't start declaration specifiers.
5191
5192 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
5193
5194         * gcc.c (translate_options): Don't mention +e in comment.
5195         (process_command): Don't handle +e specially.
5196
5197 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
5198
5199         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
5200
5201         * ira-build.c (merge_hard_reg_conflicts): New function.
5202         (create_cap_allocno, copy_info_to_removed_store_destinations,
5203         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
5204         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
5205         (remove_unnecessary_allocnos, remove_low_level_allocnos)
5206         copy_nifo_to_removed_store_destination): Use them.
5207         * ira-lives.c (make_hard_regno_born): New function, split out of
5208         make_regno_born.
5209         (make_allocno_born): Likewise.
5210         (make_hard_regno_dead): New function, split out of make_regno_dead.
5211         (make_allocno_dead): Likewise.
5212         (inc_register_pressure): New function, split out of set_allocno_live.
5213         (dec_register_pressure): New function, split out of clear_allocno_live.
5214         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
5215         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
5216         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
5217         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
5218         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
5219         mark_pseudo_regno_live.
5220         (process_bb_node_lives): Use mark_pseudo_regno_live,
5221         make_hard_regno_born and make_allocno_dead.
5222         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
5223         set_allocno_live, clear_allocno_live): Delete functions.
5224
5225         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
5226         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
5227         functions.
5228         (ira_flattening): Use ira_parent_allocno.
5229         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
5230         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
5231
5232         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
5233         statement.
5234
5235         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
5236         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
5237         minmax_set_iter_cond, minmax_set_iter_next,
5238         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
5239         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
5240         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
5241         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
5242         uses changed.
5243
5244         * ira-int.h (struct live_range, live_range_t): Renamed from struct
5245         ira_allocno_live_range and allocno_live_range_t; all uses changed.
5246         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
5247         All uses changed.
5248
5249 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
5250
5251         * thumb2.md (thumb2_tlobits_cbranch): Delete.
5252         (peephole2 to convert zero_extract/compare of single bit to
5253          lshift/compare): New.
5254
5255 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
5256
5257         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
5258         recursive call and call to 'int_const_binop'.
5259         (build_range_check, fold_cond_expr_with_comparison, unextend,
5260         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
5261         multiple_of_p): Adjust call to const_binop.
5262
5263 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
5264
5265         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
5266         determine size of XFmode operand.
5267         (XFmode extended DFmode push splitter): Ditto.
5268         (XFmode extended SFmode push splitter): Ditto.
5269
5270 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
5271
5272         PR target/44588
5273         * config/i386/i386.md (extract_code): New.
5274         (<u>divmodqi4): Likewise.
5275         (divmodhiqi3): Likewise.
5276         (udivmodhiqi3): Likewise.
5277         (<u>divqi3): Remvoved.
5278
5279 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
5280
5281         PR middle-end/44492
5282         * recog.h (struct recog_data): Add is_asm field.
5283         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
5284         present in constraints of inline-asm operand and memory operand
5285         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
5286         (extract_insn): Initialize recog_data.is_asm.
5287         * doc/md.texi (Constraints): Document operand side-effect rules.
5288
5289 2010-06-24  Andi Kleen  <ak@linux.intel.com>
5290
5291         * c-parser.c (c_parser_conditional_expression): Call
5292         warn_for_omitted_condop.
5293         * doc/invoke.texi: Document omitted condop warning.
5294
5295 2010-06-24  Nick Clifton<nickc@redhat.com>
5296
5297         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
5298         insn in the sequence is a jump insn before setting its label.
5299
5300 2010-06-24  Alan Modra  <amodra@gmail.com>
5301
5302         * collect2.c (main): Match exactly --version and --help.
5303
5304 2010-06-24  DJ Delorie  <dj@redhat.com>
5305
5306         * config/m32c/m32c-pragma.c: Don't include rtl.h.
5307
5308 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
5309
5310         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
5311         using X87MODEF mode iterator.
5312         (pushsf splitter): Macroize splitter using P mode iterator.
5313         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
5314         mode iterator.
5315
5316         (*movxf_internal): Rename from *movxf_integer.
5317         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
5318         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
5319         (*movdf_internal): Rename from *movdf_integer.
5320         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
5321         (*movsf_internal): Rename from *movdf_1.
5322
5323 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
5324
5325         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
5326         (const_gimple_seq_node): Removed typedefs.
5327
5328         * gimple.h (gimple_seq_node_d, gimple_seq_node)
5329         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
5330
5331 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
5332
5333         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
5334         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
5335         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
5336         and CODE_FOR_vec_extract_lo_v4df.
5337
5338         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
5339         Changed to define_insn_and_split.
5340         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
5341         (vec_extract_lo_v16hi): Likewise.
5342         (vec_extract_lo_v32qi): Likewise.
5343         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
5344         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
5345
5346 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
5347
5348         PR target/44640
5349         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
5350         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
5351         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
5352         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
5353         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
5354
5355         PR target/44640
5356         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
5357
5358         PR other/44644
5359         * df-core.c (struct df): Rename to df_d.
5360         * df.h (struct df): Likewise.
5361         * dse.h (struct df): Remove forward declaration.
5362         * recog.h (struct insn_data): Rename to:
5363         (struct_insn_data_d).  Adjusted all users.
5364
5365 2010-06-23  Arnaud Charlet  <charlet@adacore.com
5366
5367         PR ada/22220
5368         * doc/install.texi: Update requirements to build GNAT.
5369
5370 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
5371
5372         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
5373         enum type.
5374         (m68k_sched_attr_opx_type): Remove unreachable return.
5375         (m68k_sched_attr_opy_type): Likewise.
5376         (m68k_sched_attr_size): Likewise.
5377         (sched_get_opxy_mem_type): Likewise.
5378         (m68k_sched_attr_op_mem): Likewise.
5379
5380 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
5381
5382         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
5383         new statement and adjust VDEF only if necessary.  Remove superfluous
5384         call to maybe_clean_or_replace_eh_stmt.
5385         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
5386         copy the flags.
5387         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
5388         * tree-inline.c (copy_bb): ...and not there.
5389
5390 2010-06-22  Cary Coutant  <ccoutant@google.com>
5391
5392         * dwarf2out.c (is_nested_in_subprogram): New function.
5393         (should_move_die_to_comdat): Use it.
5394         (copy_ancestor_tree): Don't mark DIEs here.
5395         (copy_decls_walk): Start walk from root of newly-added tree;
5396         mark DIEs here instead.
5397
5398 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
5399
5400         * config/i386/i386.md (unit): Also check sseishft1.
5401
5402 2010-06-22  Jan Hubicka  <jh@suse.cz>
5403
5404         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
5405         enabled.
5406
5407 2010-06-22  Jan Hubicka  <jh@suse.cz>
5408
5409         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
5410         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
5411         Return true if something changed.
5412         * df.h (df_confluence_function_n): Return bool.
5413         * df-core.c (df_worklist_propagate_forward,
5414         df_worklist_propagate_backward): Track changes and ages.
5415         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
5416         track ages.
5417         * dse.c (dse_confluence_n): Return always true.
5418
5419 2010-06-22  Jan Hubicka  <jh@suse.cz>
5420
5421         * bitmap.c (bitmap_clear_bit): Micro optimize.
5422
5423 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
5424
5425         * config/i386/i386.md (SWI1248x): New mode iterator.
5426         (SWI48x): Ditto.
5427         (SWI12): Ditto.
5428         (SWI24): Ditto.
5429
5430         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
5431         SWI1248x mode iterator.
5432         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
5433         using SWI124 mode iterator.
5434         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
5435         mode iterator.
5436         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
5437         *pushdi2_prologue_rex64 using P mode iterator.
5438         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
5439         using SWI48 mode iterator.
5440         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
5441         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
5442         using SWI1248x mode iterator.
5443         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
5444         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
5445         SWI48 mode iterator.
5446         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
5447         iterator.
5448         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
5449         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
5450         SWI12 mode iterator.
5451         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
5452         SWI12 mode iterator.
5453         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
5454         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
5455         SWI24 mode iterator.
5456         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
5457         SWI48 mode iterator.
5458         (mov<mode>_insn_1): New expander.
5459         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
5460         using SWI48x mode iterator.
5461
5462         (*movoi_internal_avx): Rename from *movoi_internal.
5463         (*movti_internal_rex64): Rename from *movti_rex64.
5464         (*movti_internal_sse): Rename from *movti_sse.
5465         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
5466         (*movdi_internal): Rename from *movdi_2.
5467         (*movsi_internal): Rename from *movsi_1.
5468         (*movhi_internal): Rename from *movhi_1.
5469         (*movqi_internal): Rename from *movqi_1.
5470
5471         (insv): Update the call to gen_movsi_insv_1 for rename.
5472         * config/i386/i386.c (promote_duplicated_reg): Ditto.
5473
5474 2010-06-22  Jan Hubicka  <jh@suse.cz>
5475
5476         * passes.c (execute_function_todo): Move call of statistics_fini_pass
5477         to ...
5478         (execute_todo) ... this one.
5479
5480 2010-06-22  Alan Modra  <amodra@gmail.com>
5481
5482         PR target/44364
5483         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5484         * caller-save.c (insert_restore, insert_save): Use non-validate
5485         form of adjust_address.
5486
5487 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5488
5489         PR target/39690
5490         * config/pa/pa.c (override_options): Disable
5491         -freorder-blocks-and-partition.
5492
5493 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5494
5495         PR target/44615
5496         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
5497
5498         * config/i386/i386.md (type): Add sseishft1
5499
5500         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
5501         (ppro_insn_load): Likewise.
5502         (ppro_insn_store): Likewise.
5503         (ppro_insn_both): Likewise.
5504
5505         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
5506         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
5507         for type.
5508         (*vec_extractv2di_1_avx): Likewise.
5509         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
5510         type.  Remove atom_unit.
5511         (*vec_extractv2di_1_sse2): Likewise.
5512
5513 2010-06-21  DJ Delorie  <dj@redhat.com>
5514
5515         * diagnostic.h (diagnostic_classification_change_t): New.
5516         (diagnostic_context): Add history and push/pop list.
5517         (diagnostic_push_diagnostics): Declare.
5518         (diagnostic_pop_diagnostics): Declare.
5519         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
5520         from pragmas in a history chain instead of the global table.
5521         (diagnostic_push_diagnostics): New.
5522         (diagnostic_pop_diagnostics): New.
5523         (diagnostic_report_diagnostic): Scan history chain to find state
5524         of diagnostics as of the diagnostic location.
5525         * opts.c (set_option): Pass UNKNOWN_LOCATION to
5526         diagnostic_classify_diagnostic.
5527         (enable_warning_as_error): Likewise.
5528         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
5529         use in the history chain.
5530         * doc/extend.texi: Document pragma GCC diagnostic changes.
5531
5532 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
5533
5534         * dwarf2out.c (add_linkage_name): New function.  Don't add
5535         anything to DW_TAG_member DIEs.
5536         (add_name_and_src_coords_attributes): Use it.
5537         (gen_variable_die): Call it for C++ static data members if
5538         specification is DW_TAG_member.
5539
5540         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
5541         C++ char16_t and char32_t.
5542
5543         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
5544         * genattrtab.c: Include vecprim.h.
5545         (cached_attrs, cached_attr_count, attrs_seen_once,
5546         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
5547         attrs_cached_after): New variables.
5548         (find_attrs_to_cache): New function.
5549         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
5550         (write_test_expr): Add attrs_cached argument, return it too,
5551         attempt to cache non-const attributes used more than once in
5552         a single case handling.
5553         (write_attr_get): Use find_attrs_to_cache, for caching candidates
5554         emit cached_* variables.  Adjust write_attr_set callers.
5555         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
5556         to find attributes that should be cached in this block.  Adjust
5557         write_test_expr callers.
5558         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
5559         callers.
5560         (make_automaton_attrs): Adjust write_test_expr caller.
5561
5562         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
5563         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
5564         (make_automaton_attrs): If find_tune_attr returns non-NULL,
5565         write separate internal_dfa_insn_code_* and insn_default_latency_*
5566         functions for each attribute's value and emit init_sched_attrs
5567         function and function pointers.
5568         * genattr.c (const_attrs, reservations): New variables.
5569         (gen_attr): Add const attributes to const_attrs vector.
5570         (check_tune_attr, find_tune_attr): New functions.
5571         (main): Add reservations to reservations vector.  If find_tune_attr
5572         returns true, add prototype for init_sched_attrs and make
5573         internal_dfa_insn_code and insn_default_latency function pointers,
5574         otherwise define init_sched_attrs as dummy macro.
5575         * cfgexpand.c: Include insn-attr.h.
5576         (gimple_expand_cfg): Call init_sched_attrs.
5577
5578         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
5579
5580         PR target/44575
5581         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
5582         va_arg from a set of register save slots into a temporary,
5583         if the container is bigger than type size, do the copying
5584         using smaller mode or using memcpy.
5585
5586         PR bootstrap/44426
5587         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
5588         prototype.
5589         (sel_print_to_dot): Remove macro.
5590         (sel_print): Likewise.  New prototype.
5591         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
5592         (sel_print): New function.
5593
5594 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5595
5596         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
5597         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
5598
5599 2010-06-21  Nick Clifton  <nickc@redhat.com>
5600
5601         * config/rx/rx.h (PTRDIFF_TYPE): Define.
5602         (SMALL_REGISTER_CLASS): Define (to zero).
5603         (PRINT_OPERAND): Delete.
5604         (PRINT_OPERAND_ADDRESS): Delete.
5605         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
5606         (rx_print_operand_address): Delete prototype.
5607         * config/rx/rx.c (rx_print_operand): Make static.
5608         Allow %H and %L to handle CONST_DOUBLEs.
5609         (rx_print_operand_address): Make static.
5610         (rx_gen_move_template): Rename local variable 'template' to
5611         out_template.
5612         (rx_function_arg): Do not pass unknown sized objects in registers.
5613         (TARGET_PRINT_OPERAND): Define.
5614         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5615
5616 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5617
5618         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
5619
5620 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
5621
5622         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
5623         stack-alignment for simple leaf-functions.
5624
5625 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
5626
5627         * doc/install.texi: Document bootstrap-lto.
5628
5629 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
5630
5631         PR debug/44248
5632         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
5633         (input_function): Drop them here, if VTA is disabled.
5634
5635 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
5636
5637         PR target/44546
5638         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
5639         New predicate.
5640         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
5641         ix86_swapped_fp_comparsion_operator instead of
5642         ix86_fp_comparison_operator.
5643
5644         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
5645         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
5646         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
5647         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
5648         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
5649         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
5650
5651 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
5652
5653         PR other/32998
5654         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
5655         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
5656         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
5657         (decode_cmdline_option): Update for this return value.  Set
5658         orig_option_with_args_text field.  Set arg field for unknown
5659         options.  Make static.
5660         (decode_cmdline_options_to_array): New.
5661         (prune_options): Update handling of find_opt return value.
5662         * opts.c (read_cmdline_option): Take decoded option.  Return void.
5663         (read_cmdline_options): Take decoded options.
5664         (decode_options): Add parameters for decoded options.  Use
5665         decode_cmdline_options_to_array.  Use decoded options for -O
5666         scan.  Use integral_argument for -O parameters.  Update call to
5667         read_cmdline_options.
5668         (enable_warning_as_error): Update handling of find_opt return value.
5669         * opts.h: Update comment on unknown options.
5670         (struct cl_decoded_option): Update comments on opt_index and arg.
5671         Add orig_option_with_args_text.
5672         (decode_cmdline_option): Remove.
5673         (decode_cmdline_options_to_array): Declare.
5674         (decode_options): Update prototype.
5675         * toplev.c (save_argv): Remove.
5676         (save_decoded_options, save_decoded_options_count): New.
5677         (read_integral_parameter): Remove.
5678         (print_switch_values): Use decoded options.
5679         (toplev_main): Don't set save_argv.  Update call to decode_options.
5680         * toplev.h (read_integral_parameter): Remove.
5681         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
5682
5683 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
5684
5685         PR target/44072
5686         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
5687         immediate.
5688         * constraints.md (Pw, Px): New constraints.
5689         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
5690
5691 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
5692
5693         * config/i386/sse.md (fma4modesuffixf4): Removed.
5694         (ssemodesuffixf2s): Likewise.
5695         (ssemodesuffixf4): Likewise.
5696         (ssemodesuffixf2c): Likewise.
5697         (ssescalarmodesuffix2s): Likewise.
5698         (avxmodesuffixf2c): Likewise.
5699         (ssemodesuffix): New.
5700         (ssescalarmodesuffix): Likewise.
5701         Update patterns with ssemodesuffix and ssescalarmodesuffix.
5702
5703 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
5704
5705         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
5706
5707 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5708
5709         * stor-layout.c (debug_rli): Remove unused local variables.
5710
5711 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
5712
5713         PR rtl-optimization/40900
5714         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
5715         original expression for later reuse.
5716         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
5717         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
5718
5719 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
5720
5721         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
5722         double_int_fits_in_uhwi_p): Implement as static inline.
5723         (double_int_xor): New inline function.
5724         (double_int_lrotate, double_int_rrotate, double_int_max,
5725         double_int_umax, double_int_smax, double_int_min, double_int_umin,
5726         double_int_smin): Declare.
5727         (lrotate_double, rrotate_double): Remove declaration.
5728         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
5729         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
5730         (double_int_lrotate, double_int_rrotate, double_int_max,
5731         double_int_umax, double_int_smax, double_int_min, double_int_umin,
5732         double_int_smin): New function.
5733         * fold-const.c (int_const_binop): Clean up, use double_int_*
5734         functions.
5735         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
5736         double_int_* and immed_double_int_const functions.
5737
5738 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
5739
5740         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
5741         * function.c (types_used_by_cur_var_decl): Likewise.
5742         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
5743
5744 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
5745
5746         * tree.h (record_layout_info): Change type of pending_statics field
5747         to a VEC.
5748         * stor-layout.c (start_record_layout): Store NULL into
5749         pending_statics.
5750         (debug_rli): Call debug_vec_tree instead of debug_tree.
5751         (place_field): Likewise.
5752         (finish_record_layout): Likewise.
5753
5754 2010-06-18  Alan Modra  <amodra@gmail.com>
5755
5756         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
5757
5758 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5759
5760         PR target/43740
5761         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
5762         for SET source operand from SET destination operand.
5763
5764 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
5765
5766         PR rtl-optimization/39871
5767         * reload1.c (init_eliminable_invariants): For flag_pic, disable
5768         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
5769         (function_invariant_p): Rule out a plus of frame or arg pointer with
5770         a SYMBOL_REF.
5771         * ira.c (find_reg_equiv_invariant_const): Likewise.
5772
5773 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
5774
5775         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
5776         print_operand_address and puts to output the operand for CONST.
5777
5778 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
5779
5780         PR debug/44572
5781         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
5782         hook.
5783
5784 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5785
5786         * v850-protos.h (print_operand): Delete.
5787         (print_operand_address): Delete.
5788         * v850.h (PRINT_OPERAND): Delete.
5789         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5790         (PRINT_OPERAND_ADDRESS): Delete.
5791         * v850.c (print_operand_address): Rename to...
5792         (v850_print_operand_address): ...this.  Make static. Call
5793         v850_print_operand.
5794         (print_operand): Rename to...
5795         (v850_print_operand): ...this.  Make static.  Call
5796         v850_print_operand_address.
5797         (v850_print_operand_punct_valid_p): New function.
5798         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5799         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5800
5801 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5802
5803         * config/sh/sh-protos.h (print_operand): Delete.
5804         (print_operand_address): Delete.
5805         * config/sh/sh.h (PRINT_OPERAND): Delete.
5806         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5807         (PRINT_OPERAND_ADDRESS): Delete.
5808         * config/sh/sh.c (sh_print_operand_address): Make static.
5809         (sh_print_operand): Make static.  Call sh_print_operand_address
5810         and sh_print_operand.
5811         (sh_print_operand_punct_valid_p): New function.
5812         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5813         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5814
5815 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5816
5817         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
5818         (mcore_print_operand_address): Delete.
5819         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
5820         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5821         (PRINT_OPERAND_ADDRESS): Delete.
5822         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
5823         (mcore_print_operand): Make static.
5824         (mcore_print_operand_punct_valid_p): New function.
5825         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
5826         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5827
5828 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5829
5830         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
5831         (print_operand_address): Delete.
5832         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
5833         (PRINT_OPERAND_ADDRESS): Delete.
5834         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
5835         static.
5836         (m68hc11_print_operand): Make static.
5837         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5838
5839 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5840
5841         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
5842         (m32r_print_operand_address): Delete.
5843         * config/m32r/m32r.h (m32r_punct_chars): Delete.
5844         (PRINT_OPERAND): Delete.
5845         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5846         (PRINT_OPERAND_ADDRESS): Delete.
5847         * config/m32r/m32r.c (m32r_punct_chars): Make static.
5848         (m32r_print_operand_address): Make static.
5849         (m32r_print_operand): Make static.
5850         (m32r_print_operand_punct_valid_p): New function.
5851         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5852         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5853
5854 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5855
5856         * config/iq2000/iq2000-protos.h (print_operand): Delete.
5857         (print_operand_address): Delete.
5858         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
5859         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5860         (PRINT_OPERAND_ADDRESS): Delete.
5861         (iq2000_print_operand_punct): Delete.
5862         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
5863         (iq2000_print_operand_address): Make static.
5864         (iq2000_print_operand): Make static.
5865         (iq2000_print_operand_punct_valid_p): New function.
5866         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5867         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5868
5869 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5870
5871         * config/frv/frv-protos.h (frv_print_operand): Delete.
5872         (frv_print_operand_address): Delete.
5873         * config/frv/frv.h (PRINT_OPERAND): Delete.
5874         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5875         (PRINT_OPERAND_ADDRESS): Delete.
5876         * config/frv/frv.c (frv_print_operand_address): Make static.
5877         (frv_print_operand): Make static.
5878         (frv_print_operand_punct_valid_p): New function.
5879         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5880         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5881
5882 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
5883
5884         * tree.h (vec_member): Declare.
5885         * tree.c (vec_member): Define.
5886
5887 2010-06-17  Richard Guenther  <rguenther@suse.de>
5888
5889         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
5890         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
5891
5892 2010-06-17  Richard Guenther  <rguenther@suse.de>
5893
5894         * tree-inline.c (declare_return_variable): Remove bogus code.
5895
5896 2010-06-17  Richard Guenther  <rguenther@suse.de>
5897
5898         * gimplify.c (gimplify_bind_expr): Always promote complex
5899         and vector variables to registers if possible.
5900
5901 2010-06-17  Richard Guenther  <rguenther@suse.de>
5902
5903         * expr.c (get_inner_reference): Use double_int for bit_offset
5904         calculation.
5905
5906 2010-06-16  DJ Delorie  <dj@redhat.com>
5907
5908         * common.opt (-fstrict-volatile-bitfields): new.
5909         * doc/invoke.texi: Document it.
5910         * fold-const.c (optimize_bit_field_compare): For volatile
5911         bitfields, use the field's type to determine the mode, not the
5912         field's size.
5913         * expr.c (expand_assignment): Likewise.
5914         (get_inner_reference): Likewise.
5915         (expand_expr_real_1): Likewise.
5916         * expmed.c (store_fixed_bit_field): Likewise.
5917         (extract_bit_field_1): Likewise.
5918         (extract_fixed_bit_field): Likewise.
5919
5920 2010-06-16  Richard Guenther  <rguenther@suse.de>
5921
5922         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
5923
5924 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
5925
5926         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
5927         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
5928         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
5929         * debug.c: Likewise.
5930         * sdbout.c: Likewise.
5931         * vmsdbgout.c: Likewise.
5932         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
5933         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
5934         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
5935         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
5936         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
5937         * dwarf2out.c (dw_fde_struct): New fields
5938         dw_fde_vms_{end,begin}_prologue.
5939         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
5940         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
5941         (dwarf2out_vms_end_prologue): New function.
5942         (dwarf2out_vms_begin_epilogue): New function.
5943         (dw_val_struct): New value dw_val_class_vms_delta.
5944         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
5945         begin_epilogue for VMS.
5946         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
5947         new static functions.
5948         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
5949         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
5950         static functions.
5951         (print_die): New case dw_val_class_vms_delta.
5952         (attr_checksum): Likewise.
5953         (same_dw_val_p: Likewise.
5954         (size_of_die): Likewise.
5955         (value_format): Likewise.
5956         (output_die): Likewise.
5957         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
5958         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
5959         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
5960         dwarf2out_cfi_begin_epilogue
5961         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
5962
5963 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
5964
5965         * config/cris/cris-protos.h (cris_print_operand): Delete.
5966         (cris_print_operand_address): Delete.
5967         * config/cris/cris.h (PRINT_OPERAND): Delete.
5968         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5969         (PRINT_OPERAND_ADDRESS): Delete.
5970         * config/cris/cris.c (cris_print_operand_address): Make static.
5971         (cris_print_operand): Make static.
5972         (cris_print_operand_punct_valid_p): New function.
5973         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5974         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5975
5976 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
5977
5978         * config/arm/arm-protos.h (arm_print_operand): Delete.
5979         (arm_print_operand_address): Delete.
5980         * config/arm/arm.h (PRINT_OPERAND): Delete.
5981         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5982         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
5983         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
5984         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
5985         (arm_print_operand): Make static.
5986         (arm_print_operand_punct_valid_p): New function.
5987         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5988         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5989
5990 2010-06-16  Nick Clifton  <nickc@redhat.com>
5991
5992         * config/rx/constraints.md (NEGint4): New constraint.
5993         * config/rx/rx.md (attr cc): Add set_zsc.
5994         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
5995         initialised.
5996         (cmpsf): Likewise.
5997         (call_internal): Clobber the cc0 register.
5998         (call_value_internal): Likewise.
5999         (cstoresi4): Likewise.
6000         (movsieq): Likewise.
6001         (movsine): Likewise.
6002         (addsi3): Add alternative to handle small negative constants.
6003         (sunsi3): Likewise.
6004         (addsi3): Do not set the O bit in the cc0 register.
6005         (adddi3): Likewise.
6006         (subsi3): Likewise.
6007         (subdi3): Likewise.
6008         (andsi3): Reorder alternatives to prefer shorter forms.
6009         (mulsi3): Likewise.
6010         (iorsi3): Likewise.
6011         (negsi2): Note that the cc0 flags are set.
6012         (rotlsi3): Note that only the Z and S bits are set in cc0.
6013         (lshrsi3): Likewise.
6014         (ashlsi3): Likewise.
6015         (subsf3): Use %Q for the MEM operand.
6016         (fix_truncsfsi2): Likewise.
6017         (floatsisf2): Likewise.
6018         (bitset): Remove early clobber from destination.
6019         (bitset_in_memory): Likewise.
6020         (lrintsf2): Clobber the cc0 register.
6021         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
6022         (rx_print_operand): Handle %N.
6023
6024 2010-06-16  Jan Hubicka  <jh@suse.cz>
6025
6026         * df-core.c (df_compact_blocks): Free problem_temps vector.
6027
6028 2010-06-16  Martin Jambor  <mjambor@suse.cz>
6029
6030         PR tree-optimization/43905
6031         * tree-sra.c: Include tree-inline.h.
6032         (create_abstract_origin): Removed.
6033         (modify_function): Version the call graph node instead of creating
6034         abstract origins and dealing with same_body aliases.
6035         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
6036         function is versionable.
6037         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
6038
6039 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
6040
6041         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
6042         (CHOOSE_DYNAMIC_LINKER): Update.
6043
6044 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
6045
6046         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
6047         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
6048         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
6049         *prefetch_3dnow_rex.
6050
6051 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
6052
6053         * target.h (struct asm_out):Add declare_constant_name field.
6054         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6055         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
6056         * output.h (default_asm_declare_constant_name): Declare.
6057         (assemble_label): Update prototype.
6058         * varasm.c (assemble_constant_contents): Use
6059         targetm.asm_out.declare_constant_name target hook.
6060         (assemble_label): Add 'file' argument.
6061         (default_asm_declare_constant_name): New function.
6062         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
6063         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
6064         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
6065
6066         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
6067         * config/darwin.c (darwin_asm_declare_constant_name): New function.
6068         (machopic_output_indirection): Update assemble_label argument list.
6069         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
6070         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6071
6072 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
6073
6074         PR middle-end/44391
6075         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6076         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
6077
6078 2010-06-15  Richard Guenther  <rguenther@suse.de>
6079
6080         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
6081
6082 2010-06-15  Paul Brook  <paul@codesourcery.com>
6083
6084         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
6085         hard-float ABI.
6086
6087 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
6088
6089         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
6090         don't get a vector type for output.
6091
6092 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
6093
6094         PR fortran/44536
6095         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
6096         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
6097         (LANG_HOOKS_DECLS): Add it.
6098         * gimplify.c (omp_notice_variable): Call
6099         lang_hooks.decls.omp_report_decl.
6100
6101 2010-06-15  Martin Jambor  <mjambor@suse.cz>
6102
6103         PR lto/44464
6104         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
6105         on the newly dead SSA name.
6106
6107 2010-06-15  Alan Modra  <amodra@gmail.com>
6108
6109         * doc/invoke.texi: Add mcmodel to powerpc options.
6110         * configure.ac: Add HAVE_LD_LARGE_TOC test.
6111         * configure: Regenerate.
6112         * config.in: Regenerate.
6113         * config/rs6000/linux64.opt (mcmodel): New.
6114         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
6115         (TARGET_CMODEL, SET_CMODEL): Define.
6116         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
6117         select CMODEL_MEDIUM default.
6118         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
6119         (TARGET_CMODEL): Define default.
6120         * config/rs6000/rs6000.c (cmodel): New variable.
6121         (rs6000_explicit_options): Add cmodel field.
6122         (rs6000_handle_option): Handle -mcmodel.
6123         (create_TOC_reference): Add largetoc_reg param.  Generate high,
6124         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
6125         (rs6000_delegitimize_address): Recognise new toc reference rtl
6126         and minimal-toc rtl.
6127         (rs6000_legitimize_reload_address): Handle new toc references.
6128         (print_operand_address): Handle legitimate_constant_pool_address_p
6129         match before lo_sum.
6130         (rs6000_eliminate_indexed_memrefs): Tidy.
6131         (rs6000_emit_move): Tweak threshold for inlining constants.
6132         Keep rs6000_emit_allocate_stack large stack frame offsets
6133         loaded into r0 inline.
6134         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
6135         (tocrel_base, tocrel_offset): New variables.
6136         (toc_relative_expr_p): Set them here.
6137         (print_operand_address): Skip over any offset on constant pool address.
6138         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
6139         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
6140         (offsettable_ok_by_alignment): New function.
6141         (rs6000_emit_move): Address suitably aligned local symbol_refs
6142         relative to the toc pointer for -mcmodel=medium.
6143         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
6144         strict param.  Allow lo_sum version of addressing.  Verify reg
6145         used for -mminimal-toc and -mcmodel != small.  Update all callers.
6146         * config/rs6000/constraints.md: Update for above change.
6147         * config/rs6000/predicates.md: Likewise.
6148         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
6149         code.
6150         (tls_gd): Split for -mcmodel=medium/large.
6151         (tls_gd_high, tls_gd_low): New.
6152         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
6153         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
6154         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
6155         (largetoc_high, largetoc_low): New.
6156         (cmptf_internal2): Add clobber.
6157         * config/rs6000/rs6000-protos.h: Update.
6158
6159 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
6160
6161         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
6162         true if no prefetch is going to be generated for a given group.
6163         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
6164         estimate the prefetch_count.
6165         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
6166         prefetch count by considering the unroll_factor and prefetch_mod
6167         for is_loop_prefetching_profitable.
6168
6169 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
6170
6171         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
6172         anything if the argument is not a MEM.
6173
6174 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
6175
6176         PR debug/43650
6177         PR debug/44181
6178         PR debug/44247
6179         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
6180         debug stmts.
6181         (canonicalize_loop_ivs): Likewise.
6182
6183 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
6184
6185         PR debug/43656
6186         * haifa-sched.c (setup_insn_reg_pressure_info,
6187         update_register_pressure): Reject debug insns.
6188         (ready_sort): Don't setup reg pressure for debug insns.
6189         (schedule_insn): Don't update reg pressure for debug insns.
6190
6191 2010-06-14  Richard Guenther  <rguenther@suse.de>
6192
6193         * lto-streamer.c (cached_bp): Remove.
6194         (bitpack_delete): Likewise.
6195         (bitpack_create): Likewise.
6196         (bp_get_next_word): Likewise.
6197         (bp_pack_value, bp_unpack_value): Move ...
6198         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
6199         Re-implement.
6200         (struct bitpack_d): Likewise.
6201         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
6202         New inline functions.
6203         * lto-streamer-out.c (lto_output_bitpack): Remove.
6204         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
6205         (pack_value_fields): Adjust.
6206         (lto_write_tree): Likewise.
6207         (output_gimple_stmt): Likewise.
6208         (output_function): Likewise.
6209         * lto-streamer-in.c (input_gimple_stmt): Adjust.
6210         (input_function): Likewise.
6211         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
6212         (lto_input_bitpack): Remove.
6213         (lto_materialize_tree): Adjust.
6214         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
6215         * lto-cgraph.c (lto_output_edge): Adjust.
6216         (lto_output_node): Likewise.
6217         (lto_output_varpool_node): Likewise.
6218         (lto_output_ref): Likewise.
6219         (input_node): Likewise.
6220         (input_varpool_node): Likewise.
6221         (input_ref): Likewise.
6222         (input_edge): Likewise.
6223         (output_node_opt_summary): Likewise.
6224         (input_node_opt_summary): Likewise.
6225         * ipa-pure-const.c (pure_const_write_summary): Likewise.
6226         (pure_const_read_summary): Likewise.
6227         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
6228         (ipa_read_indirect_edge_info): Likewise.
6229         (ipa_write_node_info): Likewise.
6230         (ipa_read_node_info): Likewise.
6231
6232 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6233
6234         PR target/44534
6235         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
6236         (vec_extract_lo_v16hi): Likewise.
6237         (vec_extract_lo_v32qi): Likewise.
6238
6239 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
6240
6241         PR bootstrap/44426
6242         * tree.h (build_call_expr): Don't define as vararg macro, instead
6243         add a prototype.
6244         * builtins.c (build_call_nofold): Remove.
6245         (expand_builtin_int_roundingfn, expand_builtin_pow,
6246         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
6247         expand_builtin_memset_args, expand_builtin_strcmp,
6248         expand_builtin_strncmp, expand_builtin_memory_chk): Use
6249         build_call_nofold_loc instead of build_call_nofold.
6250         (build_call_expr): New function.
6251
6252         PR tree-optimization/44508
6253         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
6254         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
6255         don't eliminate trivially dead stmts.
6256         * tree-vrp.c (vrp_finalize): Pass false as last argument
6257         to substitute_and_fold.
6258         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
6259         to substitute_and_fold.
6260         * tree-ssa-ccp.c (ccp_finalize): Likewise.
6261
6262         PR bootstrap/44509
6263         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
6264
6265 2010-06-14  Ira Rosen  <irar@il.ibm.com>
6266
6267         PR tree-optimization/44507
6268         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
6269         to build initial vector for BIT_AND_EXPR.
6270         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6271
6272 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
6273
6274         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
6275         adjust z10prop set_attr.
6276
6277 2010-06-13  Jan Hubicka  <jh@suse.cz>
6278
6279         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
6280         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
6281         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
6282         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
6283         datastructure checks into checking asserts.
6284         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
6285         * tree-ssa-sccvn.c (VN_INFO): Likewise.
6286         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
6287         df_ref_create_structure): Likewise.
6288         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
6289         pool_free): Use gcc_checking_assert.
6290         * alias.c (get_alias_set): Likewise.
6291         * var-tracking.c (variable_htab_free, shared_hash_copy,
6292         canonicalize_values_mark, variable_merge_over_cur): Likewise.
6293         * lto-streamer.c (bp_unpack_value): Likewise.
6294
6295 2010-06-13  Richard Guenther  <rguenther@suse.de>
6296
6297         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
6298         Do not stream but initialize TYPE_CANONICAL to NULL.
6299         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
6300         * gimple.c (gimple_types_compatible_p): Disregard
6301         TYPE_STRUCTURAL_EQUALITY_P.
6302         (gimple_register_type): Use TYPE_CANONICAL as cache.
6303         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
6304         before registering common types.
6305         * config/i386/i386.c (ix86_function_arg_boundary): Do not
6306         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
6307         * tree.h (TYPE_CANONICAL): Clarify documentation.
6308
6309 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
6310
6311         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6312         LIBCALL_VALUE): Remove macros.
6313         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
6314         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6315         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6316         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
6317         (ia64_function_value): Make static. Handle receiving the function
6318         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
6319
6320 2010-06-12  Jan Hubicka  <jh@suse.cz>
6321
6322         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
6323         at correct place.
6324
6325 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
6326
6327         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
6328
6329 2010-06-12  Jan Hubicka  <jh@suse.cz>
6330
6331         * df-core.c (df_clear_bb_info): New function.
6332         (df_set_blocks): bb_info is always allocated.
6333         (df_get_bb_info): Use block_info_elt_size.
6334         (df_set_bb_info): Likewise.
6335         (df_compact_blocks): Update for new block_info.
6336         (grow_bb_info): New function.
6337         * df-problems.c (df_grow_bb_info): Move to df-core.c
6338         (df_rd_set_bb_info): Remove.
6339         (df_rd_free_bb_info): Do not free block pool.
6340         (df_rd_alloc): Do not create pool, use check for
6341         obstack presence instead of NULL pointer for new blocks.
6342         (df_rd_free): DO not free alloc pool; clear block_info.
6343         (problem_RD): Add size of block info structure.
6344         (df_lr_set_bb_info): Remove.
6345         (df_lr_free_bb_info): Do not free block pool.
6346         (df_lr_alloc): Do not create pool, use check for
6347         obstack presence instead of NULL pointer for new blocks.
6348         (df_lr_free): DO not free alloc pool; clear block_info.
6349         (problem_LR): Add size of block info structure.
6350         (df_live_set_bb_info): Remove.
6351         (df_live_free_bb_info): Do not free block pool.
6352         (df_live_alloc): Do not create pool, use check for
6353         obstack presence instead of NULL pointer for new blocks.
6354         (df_live_free): DO not free alloc pool; clear block_info.
6355         (problem_LIVE): Add size of block info structure.
6356         (problem_CHAIN): Add size of block info structure.
6357         (df_byte_lr_set_bb_info): Remove.
6358         (df_byte_lr_free_bb_info): Do not free block pool.
6359         (df_byte_lr_alloc): Do not create pool, use check for
6360         obstack presence instead of NULL pointer for new blocks.
6361         (df_byte_lr_free): DO not free alloc pool; clear block_info.
6362         (problem_BYTE_LR): Add size of block info structure.
6363         (problem_NOTE): Add size of block info structure.
6364         (df_byte_MD_set_bb_info): Remove.
6365         (df_byte_MD_free_bb_info): Do not free block pool.
6366         (df_byte_MD_alloc): Do not create pool, use check for
6367         obstack presence instead of NULL pointer for new blocks.
6368         (df_byte_MD_free): DO not free alloc pool; clear block_info.
6369         (problem_BD): Add size of block info structure.
6370         * df-scan.c (df_scan_free_internal): Free block pool.
6371         (df_scan_set_bb_info): Remove.
6372         (df_scan_free_bb_info): Check for artificial_defs instead
6373         of bb_info being non-NULL.
6374         (df_scan_alloc): DO not create df_scan_block pool.
6375         (problem_SCAN): Set size of block info.
6376         (df_bb_refs_record): Do not allocate bb_info.
6377         * df.h (df_problem): Add block_info_elt_size.
6378         (struct dataflow): Change block_info to void *.
6379         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
6380         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
6381         in-line structures.
6382
6383 2010-06-12  Jan Hubicka  <jh@suse.cz>
6384
6385         PR tree-optimize/44485
6386         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
6387         containing use of return value of noreturn function.
6388
6389 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
6390
6391         * targhooks.c (default_function_value): Don't use
6392         FUNCTION_OUTGOING_VALUE.
6393         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
6394         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
6395
6396 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
6397
6398         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
6399         Add crtfastmath.o to extra_parts.
6400         * config/mips/crtfastmath.c: New.
6401         * config/mips/linux.h (ENDFILE_SPEC): New.
6402
6403 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
6404
6405         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
6406         old_type in parameter.
6407         (gcc_type_for_value): Update call to gcc_type_for_interval.
6408         (compute_type_for_level_1): Renamed compute_type_for_level.
6409         Update call to gcc_type_for_interval.
6410
6411 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
6412
6413         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
6414         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
6415
6416 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
6417
6418         * opts-common.c: Include options.h.
6419         (integral_argument): Move from opts.c.
6420         (decode_cmdline_option): New.  Based on read_cmdline_option.
6421         * opts.c (integral_argument): Move to opts-common.c.
6422         (read_cmdline_option): Move most contents to
6423         decode_cmdline_option.  Use %qs in diagnostics.
6424         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
6425         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
6426         decode_cmdline_option): New.
6427
6428 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
6429
6430         PR target/44481
6431         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
6432         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
6433         (partiysi2_cmp): Ditto.
6434         (*partiyhi2_cmp): Ditto.
6435         (*parityqi2_cmp): Remove.
6436
6437 2010-06-11  Jan Hubicka  <jh@suse.cz>
6438
6439         * bitmap.h (bmp_iter_next_bit): New.
6440         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
6441
6442 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
6443             Eric Botcazou  <ebotcazou@adacore.com>
6444
6445         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
6446         computed cost.
6447
6448 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
6449
6450         * config/i386/i386.md (unspec): New define_c_enum.
6451         (unspecv): Ditto.
6452
6453 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
6454
6455         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
6456
6457 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
6458
6459         PR middle-end/44483
6460         * tree-if-conv.c (bb_predicate_s): New struct.
6461         (bb_predicate_p): New.
6462         (bb_has_predicate): New.
6463         (bb_predicate): New.
6464         (set_bb_predicate): New.
6465         (bb_predicate_gimplified_stmts): New.
6466         (set_bb_predicate_gimplified_stmts): New.
6467         (add_bb_predicate_gimplified_stmts): New.
6468         (init_bb_predicate): New.
6469         (free_bb_predicate): New.
6470         (is_predicated): Use bb_predicate.
6471         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
6472         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
6473         before processing their successors.
6474         (clean_predicate_lists): Removed.
6475         (find_phi_replacement_condition): Use bb_predicate.
6476         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
6477         computations.
6478         (insert_gimplified_predicates): New.
6479         (combine_blocks): Call insert_gimplified_predicates.
6480         (tree_if_conversion): Call free_bb_predicate instead of
6481         clean_predicate_lists.
6482
6483 2010-10-11  Paul Brook  <paul@codesourcery.com>
6484
6485         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
6486         * config/arm/arm.c (all_architectures): Change v7e-m default to
6487         cortexm4.
6488         * config/arm/arm-cores.def: Add cortex-m4.
6489         * config/arm/arm-tune.md: Regenerate.
6490
6491 2010-06-11  Jan Hubicka  <jh@suse.cz>
6492
6493         * ipa-pure-const.c (special_builtlin_state): New function.
6494         (check_call): Use it instead of special casign BUILT_IN_RETURN.
6495         (propagate_pure_const): Use it.
6496
6497 2010-06-11  Jan Hubicka  <jh@suse.cz>
6498
6499         * df-problems.c (df_live_scratch): Convert to bitmap_head.
6500         (df_live_alloc): Initialize df_live_scratch when initializing
6501         problem_data.
6502         (df_live_transfer_function): Update uses of df_live_scratch.
6503         (df_live_free): Free problem_data; clear df_live_scratch before
6504         releasing the obstack.
6505         (df_md_free): Free problem data.
6506
6507 2010-06-11  Jan Hubicka  <jh@suse.cz>
6508
6509         * doc/invoke.texi (Wsuggest-attribute): Document.
6510         (Wmissing-noreturn): Remove.
6511         * ipa-pure-const.c (warn_function_noreturn): New function.
6512         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
6513         warn_missing_noreturn.
6514         * common.opt (Wsuggest-attribute=noreturn): New.
6515         * tree-flow.h (warn_function_noreturn): Declare.
6516         * tree-cfg.c (execute_warn_function_noreturn): Use
6517         warn_function_noreturn.
6518         (gate_warn_function_noreturn): New.
6519         (pass_warn_function_noreturn): Update.
6520
6521 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6522
6523         * c-typeck.c (handle_warn_cast_qual): Add loc
6524         parameter. Improve warning message.
6525         (build_c_cast): Pass location to handle_warn_cast_qual.
6526
6527 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
6528
6529         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
6530         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
6531         insn mnemonic.
6532         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
6533
6534 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
6535
6536         Fix bootstap on mips
6537         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
6538         be naming typedefs.
6539
6540 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
6541
6542         * system.h (helper_const_non_const_cast): New inline for
6543         gcc version <= 4.0.
6544         (CONST_CAST2): For gcc version <= 4.0 use
6545         new helper to do const/non-const casting.
6546
6547 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6548
6549         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
6550         * Makefile.in (OBJS-common): Include insn-enums.o.
6551         (insn-enums.o): New rule.
6552         (simple_generated_c): Add insn-enums.c.
6553         (build/genenums.o): New rule.
6554         (genprogmd): Add "enums".
6555         * genconstants.c (print_enum_type): Declare a C string array
6556         for each enum.
6557         * genenums.c: New file.
6558         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
6559         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
6560         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
6561
6562 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6563
6564         * doc/md.texi (define_enum_attr): Document.
6565         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
6566         * read-md.h (lookup_enum_type): Declare.
6567         * read-md.c (lookup_enum_type): New function.
6568         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
6569         * genattrtab.c (attr_desc): Add an enum_name field.
6570         (evaluate_eq_attr): Take the associated attribute as argument.
6571         Get the enum prefix from the enum_name field, if defined.
6572         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
6573         (simplify_test_exp): Pass attr to evaluate_eq_attr.
6574         (add_attr_value): New function, split out from...
6575         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
6576         (write_test_expr): Pass attr to evaluate_eq_attr.
6577         (write_attr_get): Use the enum_name as the enum tag, if defined.
6578         (write_attr_valueq): Use the enum_name as a prefix, if defined.
6579         (find_attr): Initialize enum_name.
6580         (main): Handle DEFINE_ENUM_ATTR.
6581         * gensupport.c (process_rtx): Likewise.
6582         * config/mips/mips.h (mips_tune_attr): Delete.
6583         * config/mips/mips.md (cpu): Use define_attr_enum.
6584
6585 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6586
6587         * doc/md.texi (define_c_enum, define_enum): Document.
6588         * read-md.h (md_constant): Add a parent_enum field.
6589         (enum_value, enum_type): New structures.
6590         (upcase_string, traverse_enum_types): Declare.
6591         * read-md.c (enum_types): New variable.
6592         (upcase_string, add_constant): New functions.
6593         (handle_constants): Don't create the hash table here.
6594         Use add_constant.
6595         (traverse_md_constants): Don't check for a null md_constants.
6596         (decimal_string, handle_enum, traverse_enum_types): New functions.
6597         (read_md_files): Initialize md_constants and md_enums.
6598         * genconstants.c (print_md_constant): Ignore info argument.
6599         Only print constants that belong to no enum.
6600         (print_enum_type): New function.
6601         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
6602         for each defined enum type.
6603         * config/mips/mips.md (processor): New define_enum.
6604         (unspec): New define_c_enum.
6605         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
6606         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
6607         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
6608         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
6609         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
6610         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
6611         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
6612         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
6613         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
6614         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
6615         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
6616         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
6617         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
6618         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
6619         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
6620         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
6621         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
6622         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
6623         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
6624         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
6625         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
6626         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
6627         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6628         (UNSPEC_RDDSP): Move to mips-dsp.md.
6629         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
6630         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
6631         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
6632         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
6633         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
6634         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
6635         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
6636         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
6637         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
6638         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
6639         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
6640         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
6641         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
6642         Moved to mips-dspr2.md.
6643         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
6644         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
6645         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
6646         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
6647         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
6648         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
6649         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6650         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6651         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6652         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6653         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6654         UNSPEC_LOONGSON_PSADBH)
6655         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6656         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6657         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
6658         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6659         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6660         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6661         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
6662         (cpu): Update comment.
6663         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
6664         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
6665         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
6666         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
6667         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
6668         UNSPEC_LOONGSON_PCMPEQ)
6669         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
6670         UNSPEC_LOONGSON_PINSR_0)
6671         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6672         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6673         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6674         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6675         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6676         UNSPEC_LOONGSON_PSADBH)
6677         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6678         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6679         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
6680         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6681         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6682         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6683         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
6684         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
6685         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
6686         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
6687         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
6688         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
6689         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
6690         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
6691         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
6692         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
6693         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
6694         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
6695         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
6696         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
6697         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
6698         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
6699         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
6700         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
6701         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
6702         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
6703         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6704         (UNSPEC_RDDSP): Moved from mips.md.
6705         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
6706         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
6707         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
6708         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
6709         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
6710         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
6711         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
6712         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
6713         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
6714         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
6715         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
6716         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
6717         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
6718         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
6719         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
6720         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
6721         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
6722         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
6723         (UNSPEC_SCC): Moved from mips.md.
6724         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
6725         "processor_type" to "processor".
6726         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
6727         * config/mips/mips.h (processor_type): Delete.
6728         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
6729         "processor_type" to "processor".
6730
6731 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6732
6733         * configure.ac (tm_include_list): Add insn-constants.h.
6734         * configure: Regenerate.
6735         * Makefile.in (GTM_H): Move insn-constants.h here from...
6736         (TM_H): ...here.
6737         * mkconfig.sh: Remove special handling for insn-constants.h.
6738
6739 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6740
6741         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
6742         (BUILD_MD): ...this new variable.
6743         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
6744         that include the old contents of simple_generated_h and
6745         simple_generated_c.
6746         (simple_generated_h, simple_generated_c): Include them.  Add
6747         insn-constants.h.
6748         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
6749         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
6750         Remove these dependencies from the main rule and include
6751         insn-conditions.md in the command line only if it appears
6752         in the dependency list.
6753         (insn-constants.h, s-constants): Delete.
6754         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
6755         or gensupport.h.
6756         (build/genmddeps.o): Likewise.
6757         (genprogrtl): New variable that contains everything from genprogmd
6758         except mddeps and constants.
6759         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
6760         depend on $(BUILD_MD)
6761         (genprog): New variable.  Make these programs depend on
6762         $(BUILD_ERRORS).
6763         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
6764         (main): Use read_md_files instead of init_rtx_reader_args.
6765         * genconstants.c: As for genmddeps.c.
6766         * read-md.h (read_skip_construct): Declare.
6767         * read-md.c (read_skip_construct): New function.
6768         (handle_file): Allow a null handle_directive, skipping the
6769         construct if so.
6770         (parse_include): Update the comment accordingly.
6771
6772 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6773
6774         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
6775         * genmddeps.c: Include read-md.h.
6776         (main): Call init_rtx_reader_args instead of init_md_reader_args.
6777         * genattr.c (main): Likewise.
6778         * genattrtab.c (main): Likewise.
6779         * genautomata.c (main): Likewise.
6780         * gencodes.c (main): Likewise.
6781         * genconditions.c (main): Likewise.
6782         * genconfig.c (main): Likewise.
6783         * genconstants.c (main): Likewise.
6784         * genemit.c (main): Likewise.
6785         * genextract.c (main): Likewise.
6786         * genflags.c (main): Likewise.
6787         * genopinit.c (main): Likewise.
6788         * genoutput.c (main): Likewise.
6789         * genpeep.c (main): Likewise.
6790         * genrecog.c (main): Likewise.
6791         * genpreds.c (main): Likewise.
6792         * gensupport.h (in_fname): Move to read-md.h.
6793         (init_md_reader_args_cb): Rename to...
6794         (init_rtx_reader_args_cb): ...this and return a bool.
6795         (init_md_reader_args): Rename to...
6796         (init_rtx_reader_args): ...this and return a bool.
6797         (include_callback): Move to read-md.h.
6798         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
6799         (file_name_list, first_dir_md_include): Move to read-md.c
6800         (first_bracket_include): Delete unused variable.
6801         (last_dir_md_include): Move to read-md.c.
6802         (process_include): Delete, moving code to read-md.c:handle_include.
6803         (process_rtx): Don't handle INCLUDE.
6804         (save_string): Delete.
6805         (rtx_handle_directive): New function.
6806         (init_md_reader_args_cb): Rename to...
6807         (init_rtx_reader_args_cb): ...this and return a boolean success value.
6808         Use read_md_args.
6809         (init_md_reader_args): Rename to...
6810         (init_rtx_reader_args): ...this and return a boolean success value.
6811         * rtl.def (INCLUDE): Delete.
6812         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
6813         argument.
6814         * read-rtl.c (read_conditions): Don't gobble ')' here.
6815         (read_mapping): Likewise.
6816         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
6817         Handle top-level non-rtx constructs here rather than in read_rtx_1.
6818         Store the whole queue in *X.  Remove call to init_md_reader.
6819         (read_rtx_1): Rename to...
6820         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
6821         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
6822         here.
6823         (read_nested_rtx): New function.  Handle (nil) here rather than
6824         in read_rtx_code.
6825         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
6826         gobble ')' here.
6827         * read-md.h (directive_handler_t): New type.
6828         (in_fname, include_callback): Moved from read-md.h.
6829         (read_constants, init_md_reader): Delete.
6830         (read_md_files): Declare.
6831         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
6832         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
6833         from gensupport.c.
6834         (read_constants): Rename to...
6835         (handle_constants): ...this.  Don't gobble ')' here.
6836         (handle_include, handle_file, handle_toplevel_file)
6837         (parse_include): New functions, mostly taken from gensupport.c.
6838         (init_md_reader): Subsume into...
6839         (read_md_files): ...this new function.
6840
6841 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6842
6843         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
6844         (unread_char): Decrement read_md_lineno after putting back '\n'.
6845         * read-md.c (fatal_with_file_and_line): Push back any characters
6846         that we decide not to add to the context.
6847         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
6848         fatal_expected_char in cases where '/' ends a line (for example).
6849         (read_name): Don't increment read_md_lineno here.
6850         (read_escape): Likewise.
6851         (read_quoted_string): Likewise.
6852         (read_braced_string): Likewise.
6853
6854 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6855
6856         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
6857         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
6858         * genconstants.c: Include read-md.h.
6859         * read-rtl.c (md_constants): Move to read-md.c.
6860         (md_name): Move to read-md.h.
6861         (initialize_iterators): Use leading_string_hash instead of def_hash
6862         and leading_string_eq_p instead of def_name_eq_p.
6863         (read_name): Move to read-md.c.
6864         (def_hash, def_name_eq_p): Delete.
6865         (read_constants, traverse_md_constants): Move to read-md.c.
6866         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
6867         * read-md.h: Include hashtab.h.
6868         (md_name): Moved from read-rtl.c.
6869         (md_constant): Moved from read-md.h.
6870         (leading_string_hash, leading_string_eq_p, read_name)
6871         (read_constants, traverse_md_constants): Declare.
6872         * read-md.c (md_constants): Moved from read-rtl.c.
6873         (leading_string_hash, leading_string_eq_p): New functions.
6874         (read_name, read_constants, traverse_md_constants): Moved from
6875         read-rtl.c.
6876
6877 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6878
6879         * read-rtl.c (md_name): New structure.
6880         (read_name): Take an md_name instead of a buffer pointer.
6881         Use the "string" field instead of strcpy when expanding constants.
6882         (read_constants): Remove the tmp_char argument.  Update the calls
6883         to read_name, using two local name buffers instead of the tmp_char
6884         argument.  Merge the constant-creation code.
6885         (read_conditions): Remove the tmp_char argument.  Update the calls
6886         to read_name, using a local name buffer instead of the tmp_char
6887         argument.
6888         (read_mapping): Replace tmp_char variable with a local name buffer.
6889         Update the calls to read_name.
6890         (read_rtx_1): Likewise.  Update the calls to read_constants and
6891         read_conditions.
6892
6893 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6894
6895         * Makefile.in (build/read-md.o): Depend on errors.h.
6896         * read-md.h (error_with_line): Declare.
6897         * read-md.c: Include errors.h.
6898         (message_with_line_1): New function, extracted from...
6899         (message_with_line): ...here.
6900         (error_with_line): New function.
6901         * genattrtab.c: If a call to message_with_line is followed by
6902         "have_error = 1;", replace both statements with a call to
6903         error_with_line.
6904         * genoutput.c: Likewise.
6905         * genpreds.c: Likewise.
6906         * genrecog.c: If a call to message_with_line is followed by
6907         "error_count++;", replace both statements with a call to
6908         error_with_line.
6909         (errorcount): Delete.
6910         (main): Don't check it.
6911         * gensupport.c: If a call to message_with_line is followed by
6912         "errors = 1;", replace both statements with a call to error_with_line.
6913         (errors): Delete.
6914         (process_define_cond_exec): Check have_error instead of errors.
6915         (init_md_reader_args_cb): Likewise.  Don't set errors.
6916
6917 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6918
6919         * read-md.h (read_md_file): Declare.
6920         (read_char, unread_char): New functions.
6921         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6922         (read_quoted_string, read_string): Remove FILE * argument.
6923         * read-md.c (read_md_file): New variable.
6924         (read_md_filename, read_md_lineno): Update comments and remove
6925         unnecessary initialization.
6926         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6927         (read_escape, read_quoted_string, read_braced_string, read_string):
6928         Remove FILE * argument.  Update calls accordingly, using read_char
6929         and unread_char instead of getc and ungetc.
6930         * rtl.h (read_rtx): Remove FILE * argument.
6931         * read-rtl.c (iterator_group): Remove FILE * argument from
6932         "find_builtin".
6933         (iterator_traverse_data): Remove "infile" field.
6934         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
6935         (add_mapping, read_name, read_constants, read_conditions)
6936         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
6937         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
6938         Remove file arguments from all calls, using read_char and unread_char
6939         instead of getc and ungetc.
6940         * gensupport.c (process_include): Preserve read_md_file around
6941         the include.  Set read_md_file to the handle of the included file.
6942         Update call to read_rtx.
6943         (init_md_reader_args_cb): Set read_md_file to the handle of the file
6944         and remove local FILE *.  Update calls to read_rtx.
6945
6946 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6947
6948         * read-md.h (read_rtx_lineno): Rename to...
6949         (read_md_lineno): ...this.
6950         (read_rtx_filename): Rename to...
6951         (read_md_filename): ...this.
6952         (copy_rtx_ptr_loc): Rename to...
6953         (copy_md_ptr_loc): ...this.
6954         (print_rtx_ptr_loc): Rename to...
6955         (print_md_ptr_loc): ...this.
6956         * read-md.c: Likewise.  Update references after renaming.
6957         (string_obstack): Replace RTL with MD in comment.
6958         (set_rtx_ptr_loc): Rename to...
6959         (set_md_ptr_loc): ...this.
6960         (get_rtx_ptr_loc): Rename to...
6961         (get_md_ptr_loc): ...this.
6962         * genconditions.c: Update references after renaming.
6963         * genemit.c: Likewise.
6964         * genoutput.c: Likewise.
6965         * genpreds.c: Likewise.
6966         * gensupport.c: Likewise.
6967         * read-rtl.c: Likewise.
6968
6969 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
6970
6971         * Makefile.in (READ_MD_H): New variable.
6972         (BUILD_RTL): Add build/read-md.o.
6973         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
6974         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
6975         (build/genattrtab.o, build/genconditions.o build/genemit.o)
6976         (build/genextract.o, build/genflags.o, build/genoutput.o)
6977         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
6978         (build/read-md.o): New rule.
6979         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
6980         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
6981         * coretypes.h: ...here.
6982         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
6983         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
6984         * genattr.c: Include read-md.h.
6985         * genattrtab.c: Likewise.
6986         * genconditions.c: Likewise.
6987         * genemit.c: Likewise.
6988         * genextract.c: Likewise.
6989         * genflags.c: Likewise.
6990         * genoutput.c: Likewise.
6991         * genpreds.c: Likewise.
6992         * genrecog.c: Likewise.
6993         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
6994         (join_c_conditions, print_c_condition, read_rtx_filename)
6995         (read_rtx_lineno): Move to read-md.h.
6996         * read-rtl.c: Include read-md.h.
6997         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
6998         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
6999         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
7000         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
7001         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
7002         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
7003         (read_braced_string, read_string): Move to read-md.c.
7004         (read_rtx): Move some initialization to init_md_reader and call
7005         init_md_reader here.
7006         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
7007         Move to read-md.h.
7008         * gensupport.c: Include read-md.h.
7009         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
7010         * read-md.h, read-md.c: New files.
7011
7012 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
7013
7014         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7015         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7016         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
7017         * config/moxie/moxie.c (moxie_function_value): Make static.
7018         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
7019         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7020
7021 2010-06-10  Martin Jambor  <mjambor@suse.cz>
7022
7023         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
7024         * dbgcnt.def (tree_sra): New counter.
7025         * tree-sra.c: Include dbgcnt.h.
7026         (gate_intra_sra): Check tree_sra debug counter.
7027
7028 2010-06-10  Martin Jambor  <mjambor@suse.cz>
7029
7030         PR tree-optimization/44258
7031         * tree-sra.c (build_access_subtree): Return false iff there is a
7032         partial overlap.
7033         (build_access_trees): Likewise.
7034         (analyze_all_variable_accesses): Disqualify candidates if
7035         build_access_trees returns true for them.
7036
7037 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
7038
7039         PR debug/41371
7040         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
7041         tail-recurse into canonical node.  Fast-forward over
7042         non-canonical VALUEs.
7043
7044 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
7045
7046         PR boostrap/44470
7047         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
7048         (*addsi_1_zext) <TYPE_LEA>: Likewise.
7049         (add lea splitter): Likewise.
7050         (add_zext lea splitter): Likewise.
7051
7052 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
7053
7054         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
7055
7056 2010-06-10  Jan Hubicka  <jh@suse.cz>
7057
7058         * df-problems.c (df_live_problem_data): Add live_bitmaps.
7059         (df_live_alloc): Initialize problem data and live_osbtacks.
7060         (df_live_finalize): Remove obstack, problem data; do not
7061         clear all bitmaps.
7062         (df_live_top_dump, df_live_bottom_dump): Do not dump old
7063         data when not allocated.
7064         (df_live_verify_solution_start): Do not allocate problem data.
7065         (df_live_verify_solution_end): Check if out is allocated.
7066         (struct df_md_problem_data): New structure.
7067         (df_md_alloc): Allocate problem data.
7068         (df_md_free): Free problem data; do not clear bitmaps.
7069
7070 2010-06-10  Jan Beulich  <jbeulich@novell.com>
7071
7072         PR bootstrap/37304
7073         * configure.ac: Replace $() with ${} when intending to expand
7074         variables rather than invoking commands.
7075         * configure: Re-generate.
7076
7077 2010-06-10  Jan Hubicka  <jh@suse.cz>
7078
7079         PR rtl-optimization/44460
7080         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7081         TYPE_NEEDS_CONSTRUCTING sanity check.
7082
7083 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
7084
7085         * doc/include/fdl.texi: Move to GFDL version 1.3.
7086
7087         * doc/cpp.texi: Move to GFDL version 1.3.
7088         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
7089         * doc/gccint.texi: Move to GFDL version 1.3.
7090         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
7091         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
7092         * doc/invoke.texi: Move to GFDL version 1.3.
7093
7094 2010-06-09  Jan Hubicka  <jh@suse.cz>
7095
7096         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
7097         Break out from ...
7098         (propagate) ... here; swap the order.
7099
7100 2010-06-09  Jan Hubicka  <jh@suse.cz>
7101
7102         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
7103         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
7104         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
7105         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
7106
7107 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
7108
7109         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
7110         Do not the gather memory reference in the outer loop if the step
7111         is not a constant.
7112
7113 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
7114
7115         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
7116         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
7117         8 to 4.  Minor change of the related comments.
7118
7119 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7120
7121         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
7122         the scev analysis when the variable is not used outside the loop
7123         in a close phi node: call compute_overall_effect_of_inner_loop.
7124
7125 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7126
7127         * graphite-sese-to-poly.c (single_pred_cond): Renamed
7128         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
7129         (build_sese_conditions_before): Renamed call to single_pred_cond.
7130         (build_sese_conditions_after): Same.
7131
7132 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
7133
7134         * graphite-poly.h: Fix comments and indentation.
7135         * graphite-sese-to-poly.c: Same.
7136         (build_sese_conditions_before): Compute stmt and gbb only when needed.
7137         * tree-chrec.c: Fix comments and indentation.
7138         (tree-ssa-loop-niter.c): Same.
7139
7140 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
7141
7142         PR rtl-optimization/42461
7143         * dce.c (deletable_insn_p): Return true for const or pure calls again.
7144         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
7145
7146 2010-06-09  Jan Hubicka  <jh@suse.cz>
7147
7148         * bitmap.c (bitmap_and): Walk array forward.
7149         (bitmap_and_compl_into): Likewise.
7150         (bitmap_xor): Likewise.
7151         (bitmap_xor_into):  Likewise.
7152         (bitmap_equal_p): Likewise.
7153         (bitmap_intersect_p): Likewise.
7154         (bitmap_intersect_compl_p): Likewise.
7155         (bitmap_ior_and_into): Likewise.
7156         (bitmap_elt_copy): Likewise.
7157         (bitmap_and_compl): Likewise.
7158         (bitmap_elt_ior): Likewise.
7159
7160 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
7161
7162         * opts-common.c (prune_options): Ensure replacement argv array
7163         is correctly terminated by a NULL entry.
7164
7165 2010-06-09  Jan Hubicka  <jh@suse.cz>
7166
7167         * cgraph.h (varpool_first_static_initializer,
7168         varpool_next_static_initializer): Make checking only when
7169         checking enabled.
7170         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
7171         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
7172         gcc_assert to gcc_checking_assert.
7173         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
7174         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
7175         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
7176         op_iter_init_phiuse, op_iter_init_phidef,
7177         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
7178         gcc_checking_assert.
7179         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
7180         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
7181         partition_is_global, live_on_entry, live_on_exit,
7182         live_merge_and_clear): Likewise.
7183         * system.h (gcc_checking_assert): New macro.
7184         * gimple.h (set_bb_seq): Use gcc_checking_assert.
7185
7186 2010-06-09  Jason Merrill  <jason@redhat.com>
7187
7188         * Makefile.in (TAGS): Collect tags info from c-family.
7189
7190 2010-06-09  Jan Hubicka  <jh@suse.cz>
7191
7192         * gimple.h (gcc_gimple_checking_assert): New macro.
7193         (gimple_set_def_ops, gimple_set_use_ops,
7194         gimple_set_vuse, gimple_set_vdef,
7195         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
7196         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
7197         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
7198         gimple_asm_output_op, gimple_asm_output_op_ptr,
7199         gimple_asm_set_output_op, gimple_asm_clobber_op,
7200         gimple_asm_set_clobber_op, gimple_asm_label_op,
7201         gimple_asm_set_label_op, gimple_try_set_kind,
7202         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
7203         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
7204         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
7205         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
7206         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
7207         gimple_omp_for_set_initial, gimple_omp_for_final,
7208         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
7209         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
7210         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
7211         conditional with ENABLE_GIMPLE_CHECKING.
7212         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
7213
7214 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
7215
7216         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
7217         (get_computation_cost_at): Use it.
7218         (determine_use_iv_cost_condition): Likewise.
7219         (determine_iv_cost): Likewise.
7220
7221 2010-06-09  Richard Guenther  <rguenther@suse.de>
7222
7223         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
7224         replace constants.
7225
7226 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
7227
7228         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
7229
7230 2010-06-09  Martin Jambor  <mjambor@suse.cz>
7231
7232         PR tree-optimization/44423
7233         * tree-sra.c (dump_access): Dump also grp_assignment_read.
7234         (analyze_access_subtree): Pass negative allow_replacements to children
7235         if the current type is scalar.
7236
7237 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
7238
7239         PR testsuite/42843
7240         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
7241         * doc/plugins.texi (Plugin license check): Update information
7242         on type of plugin_is_GPL_compatible.
7243         * Makefile.in (PLUGINCC): Define as $(COMPILER).
7244         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
7245
7246 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
7247
7248         * config/arm/arm.c (thumb2_reorg): New function.
7249         (arm_reorg): Call it.
7250         * config/arm/thumb2.md (define_peephole2 for flag clobbering
7251         arithmetic operations): Delete.
7252
7253 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
7254
7255         PR target/44067
7256         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
7257         e500v2 target.
7258
7259 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
7260
7261         PR plugins/44459
7262         * gcc-plugin.h: Encapsulate all declarations in extern "C".
7263
7264 2010-06-08  Jan Hubicka  <jh@suse.cz>
7265
7266         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
7267         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
7268
7269 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
7270
7271         PR tree-optimization/39874
7272         PR middle-end/28685
7273         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
7274         Declare.
7275         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
7276         same_bool_result_p): New.
7277         (and_var_with_comparison, and_var_with_comparison_1,
7278         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
7279         (or_var_with_comparison, or_var_with_comparison_1,
7280         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
7281         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
7282         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
7283         of combine_comparisons.
7284         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
7285
7286 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
7287
7288         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7289         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7290         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
7291         pdp11_function_value_regno_p): New functions.
7292         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7293         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7294
7295 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
7296
7297         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
7298         Thumb-2 in the MINUS case.
7299
7300 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7301
7302         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
7303
7304         * doc/gty.texi (GTY Options): Document typed GC allocation and
7305         variable_size GTY option.
7306
7307         * ggc-internal.h: New.
7308
7309         * ggc.h: Update copyright year.
7310         (digit_string): Move to stringpool.c.
7311         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
7312         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
7313         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
7314         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
7315         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
7316         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
7317         (ggc_force_collect, ggc_get_size, ggc_statistics)
7318         (ggc_print_common_statistics): Move to ggc-internal.h.
7319         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
7320         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
7321         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
7322         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
7323         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
7324         (ggc_alloc_zone_pass_stat): Remove.
7325         (ggc_internal_alloc_stat, ggc_internal_alloc)
7326         (ggc_internal_cleared_alloc_stat): New.
7327         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
7328         (ggc_internal_vec_alloc_stat)
7329         (ggc_internal_cleared_vec_alloc_stat)
7330         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
7331         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
7332         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
7333         (ggc_cleared_alloc_ptr_array_two_args): New.
7334         (htab_create_ggc, splay_tree_new_ggc): Redefine.
7335         (ggc_splay_alloc): Change the type of the first argument to
7336         enum gt_types_enum.
7337         (ggc_alloc_string): Make macro.
7338         (ggc_alloc_string_stat): New.
7339         (ggc_strdup): Redefine.
7340         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
7341         (ggc_alloc_rtvec_sized): New.
7342         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
7343         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
7344         (ggc_internal_cleared_alloc_zone_stat)
7345         (ggc_internal_zone_alloc_stat)
7346         (ggc_internal_zone_cleared_alloc_stat)
7347         (ggc_internal_zone_vec_alloc_stat)
7348         (ggc_alloc_zone_rtx_def_stat)
7349         (ggc_alloc_zone_tree_node_stat)
7350         (ggc_alloc_zone_cleared_tree_node_stat)
7351         (ggc_alloc_cleared_gimple_statement_d_stat): New.
7352
7353         * ggc-common.c: Include ggc-internal.h.
7354         (ggc_internal_cleared_alloc_stat): Rename from
7355         ggc_alloc_cleared_stat.
7356         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
7357         (ggc_calloc): Remove.
7358         (ggc_cleared_alloc_htab_ignore_args): New.
7359         (ggc_cleared_alloc_ptr_array_two_args): New.
7360         (ggc_splay_alloc): Add obj_type parameter.
7361         (init_ggc_heuristics): Formatting fixes.
7362
7363         * ggc-none.c: Update copyright year.
7364         (ggc_alloc_stat): Rename to ggc_alloc_stat.
7365         (ggc_alloc_cleared_stat): Rename to
7366         ggc_internal_cleared_alloc_stat.
7367         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
7368
7369         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
7370         Remove references to ggc_alloc in comments.
7371         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
7372         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
7373         (new_ggc_zone, destroy_ggc_zone): Remove.
7374         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
7375
7376         * ggc-zone.c: Include ggc-internal.h.  Remove references to
7377         ggc_alloc in comments.
7378         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
7379         (ggc_internal_alloc_zone_pass_stat): New.
7380         (ggc_internal_cleared_alloc_zone_stat): New.
7381         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
7382         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
7383         (new_ggc_zone, destroy_ggc_zone): Remove.
7384
7385         * stringpool.c: Update copyright year.  Include ggc-internal.h
7386         (digit_vector): Make static.
7387         (digit_string): Moved from ggc.h.
7388         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
7389         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
7390
7391         * Makefile.in (GGC_INTERNAL_H): New.
7392         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
7393         $(GGC_INTERNAL_H) to dependencies.
7394
7395         * gentype.c: Update copyright year.
7396         (walk_type): Accept variable_size GTY option.
7397         (USED_BY_TYPED_GC_P): New macro.
7398         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
7399         whitespace at the end of strings.
7400         (get_type_specifier, variable_size_p): New functions.
7401         (alloc_quantity, alloc_zone): New enums.
7402         (write_typed_alloc_def): New function.
7403         (write_typed_struct_alloc_def): Likewise.
7404         (write_typed_typed_typedef_alloc_def): Likewise.
7405         (write_typed_alloc_defns): Likewise.
7406         (output_typename, write_splay_tree_allocator_def): Likewise.
7407         (write_splay_tree_allocators): Likewise.
7408         (main): Call write_typed_alloc_defns and
7409         write_splay_tree_allocators.
7410
7411         * lto-streamer.h (lto_file_decl_data_ptr): New.
7412
7413         * passes.c (order): Define using cgraph_node_ptr.
7414
7415         * strinpool.c (struct string_pool_data): Declare nested_ptr using
7416         ht_identifier_ptr.
7417
7418         * gimple.h (union gimple_statement_d): Likewise.
7419
7420         * rtl.h (struct rtx_def): Likewise.
7421         (struct rtvec_def): Likewise.
7422
7423         * tree.h (union tree_node): Likewise.
7424
7425         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
7426
7427         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
7428
7429         * tree-scalar-evolution.c (scev_initialize): Likewise.
7430
7431         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
7432
7433         * dwarf2asm.c (dw2_force_const_mem): Likewise.
7434
7435         * omp-low.c (lower_omp_critical): Likewise.
7436
7437         * bitmap.h (struct bitmap_head_def): Update comment to not
7438         reference ggc_alloc.
7439
7440         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
7441
7442         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
7443
7444         * ipa-prop.c (duplicate_ggc_array): Rename to
7445         duplicate_ipa_jump_func_array.  Use typed GC allocation.
7446         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
7447
7448         * gimple.c (gimple_alloc_stat): Use
7449         ggc_alloc_cleared_gimple_statement_d_stat.
7450
7451         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
7452
7453         * tree.c (make_node_stat): Use
7454         ggc_alloc_zone_cleared_tree_node_stat.
7455         (make_tree_vec_stat): Likewise.
7456         (build_vl_exp_stat): Likewise.
7457         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
7458         (make_tree_binfo_stat): Likewise.
7459         (tree_cons_stat): Likewise.
7460
7461         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
7462         (shallow_copy_rtx_stat): Likewise.
7463         (make_node_stat): Likewise.
7464
7465         * lto-symtab.c: Fix comment.
7466
7467         * tree-cfg.c (create_bb): Update comment to not reference
7468         ggc_alloc_cleared.
7469         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
7470
7471         * varpool.c (varpool_node): Use typed GC allocation.
7472         (varpool_extra_name_alias): Likewise.
7473
7474         * varasm.c (emutls_decl): Likewise.
7475         (get_unnamed_section): Likewise.
7476         (get_noswitch_section): Likewise.
7477         (get_section): Likewise.
7478         (get_block_for_section): Likewise.
7479         (build_constant_desc): Likewise.
7480         (create_constant_pool): Likewise.
7481         (force_const_mem): Likewise.
7482
7483         * tree.c (build_vl_exp_stat): Likewise.
7484         (build_real): Likewise.
7485         (build_string): Likewise.
7486         (decl_debug_expr_insert): Likewise.
7487         (decl_value_expr_insert): Likewise.
7488         (type_hash_add): Likewise.
7489         (build_omp_clause): Likewise.
7490
7491         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
7492
7493         * tree-ssa.c (init_tree_ssa): Likewise.
7494
7495         * tree-ssa-structalias.c (heapvar_insert): Likewise.
7496
7497         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
7498
7499         * tree-ssa-loop-niter.c (record_estimate): Likewise.
7500
7501         * tree-ssa-alias.c (get_ptr_info): Likewise.
7502
7503         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
7504
7505         * tree-phinodes.c (allocate_phi_node): Likewise.
7506
7507         * tree-iterator.c (tsi_link_before): Likewise.
7508         (tsi_link_after): Likewise.
7509
7510         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
7511
7512         * tree-dfa.c (create_var_ann): Likewise.
7513
7514         * tree-cfg.c (create_bb): Likewise.
7515
7516         * toplev.c (alloc_for_identifier_to_locale): Likewise.
7517         (general_init): Likewise.
7518
7519         * stringpool.c (stringpool_ggc_alloc): Likewise.
7520         (gt_pch_save_stringpool): Likewise.
7521
7522         * sese.c (if_region_set_false_region): Likewise.
7523
7524         * passes.c (do_per_function_toporder): Likewise.
7525
7526         * optabs.c (set_optab_libfunc): Likewise.
7527         (set_conv_libfunc): Likewise.
7528
7529         * lto-symtab.c (lto_symtab_register_decl): Likewise.
7530
7531         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
7532         (input_eh_region): Likewise.
7533         (input_eh_lp): Likewise.
7534         (make_new_block): Likewise.
7535         (unpack_ts_real_cst_value_fields): Likewise.
7536
7537         * lto-section-in.c (lto_new_in_decl_state): Likewise.
7538
7539         * lto-cgraph.c (input_node_opt_summary): Likewise.
7540
7541         * loop-init.c (loop_optimizer_init): Likewise.
7542
7543         * lambda.h (lambda_vector_new): Likewise.
7544
7545         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
7546
7547         * ira.c (update_equiv_regs): Likewise.
7548
7549         * ipa.c (cgraph_node_set_new): Likewise.
7550         (cgraph_node_set_add): Likewise.
7551         (varpool_node_set_new): Likewise.
7552         (varpool_node_set_add): Likewise.
7553
7554         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
7555         (duplicate_ipa_jump_func_array): Likewise.
7556         (ipa_read_node_info): Likewise.
7557
7558         * ipa-cp.c (ipcp_create_replace_map): Likewise.
7559
7560         * integrate.c (get_hard_reg_initial_val): Likewise.
7561
7562         * gimple.c (gimple_alloc_stat): Likewise.
7563         (gimple_build_omp_for): Likewise.
7564         (gimple_seq_alloc): Likewise.
7565         (gimple_copy): Likewise.
7566
7567         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
7568         (gsi_insert_after_without_update): Likewise.
7569
7570         * function.c (add_frame_space): Likewise.
7571         (insert_temp_slot_address): Likewise.
7572         (assign_stack_temp_for_type): Likewise.
7573         (allocate_struct_function): Likewise.
7574         (types_used_by_var_decl_insert): Likewise.
7575
7576         * except.c (init_eh_for_function): Likewise.
7577         (gen_eh_region): Likewise.
7578         (gen_eh_region_catch): Likewise.
7579         (gen_eh_landing_pad): Likewise.
7580         (add_call_site): Likewise.
7581
7582         * emit-rtl.c (get_mem_attrs): Likewise.
7583         (get_reg_attrs): Likewise.
7584         (start_sequence): Likewise.
7585         (init_emit): Likewise.
7586
7587         * dwarf2out.c (new_cfi): Likewise.
7588         (queue_reg_save): Likewise.
7589         (dwarf2out_frame_init): Likewise.
7590         (new_loc_descr): Likewise.
7591         (find_AT_string): Likewise.
7592         (new_die): Likewise.
7593         (add_var_loc_to_decl): Likewise.
7594         (clone_die): Likewise.
7595         (clone_as_declaration): Likewise.
7596         (break_out_comdat_types): Likewise.
7597         (new_loc_list): Likewise.
7598         (loc_descriptor): Likewise.
7599         (add_loc_descr_to_each): Likewise.
7600         (add_const_value_attribute): Likewise.
7601         (tree_add_const_value_attribute): Likewise.
7602         (add_comp_dir_attribute): Likewise.
7603         (add_name_and_src_coords_attributes): Likewise.
7604         (lookup_filename): Likewise.
7605         (store_vcall_insn): Likewise.
7606         (dwarf2out_init): Likewise.
7607
7608         * dbxout.c (dbxout_init): Likewise.
7609
7610         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
7611
7612         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
7613
7614         * config/score/score7.c (score7_output_external): Likewise.
7615
7616         * config/score/score3.c (score3_output_external): Likewise.
7617
7618         * config/s390/s390.c (s390_init_machine_status): Likewise.
7619
7620         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
7621         (rs6000_init_machine_status): Likewise.
7622         (output_toc): Likewise.
7623
7624         * config/pa/pa.c (pa_init_machine_status): Likewise.
7625         (get_deferred_plabel): Likewise.
7626
7627         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
7628
7629         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
7630
7631         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
7632
7633         * config/mep/mep.c (mep_init_machine_status): Likewise.
7634         (mep_note_pragma_flag): Likewise.
7635
7636         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
7637
7638         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
7639
7640         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
7641
7642         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
7643         (i386_pe_maybe_record_exported_symbol): Likewise.
7644
7645         * config/i386/i386.c (get_dllimport_decl): Likewise.
7646         (ix86_init_machine_status): Likewise.
7647         (assign_386_stack_local): Likewise.
7648
7649         * config/frv/frv.c (frv_init_machine_status): Likewise.
7650
7651         * config/darwin.c (machopic_indirection_name): Likewise.
7652
7653         * config/cris/cris.c (cris_init_machine_status): Likewise.
7654
7655         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
7656
7657         * config/avr/avr.c (avr_init_machine_status): Likewise.
7658
7659         * config/arm/arm.c (arm_init_machine_status): Likewise.
7660
7661         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
7662         (alpha_need_linkage): Likewise.
7663         (alpha_use_linkage): Likewise.
7664
7665         * cgraph.c (cgraph_allocate_node): Likewise.
7666         (cgraph_create_edge_1): Likewise.
7667         (cgraph_create_indirect_edge): Likewise.
7668         (cgraph_add_asm_node): Likewise.
7669
7670         * cfgrtl.c (init_rtl_bb_info): Likewise.
7671
7672         * cfgloop.c (alloc_loop): Likewise.
7673         (rescan_loop_exit): Likewise.
7674
7675         * cfg.c (init_flow): Likewise.
7676         (alloc_block): Likewise.
7677         (unchecked_make_edge): Likewise.
7678
7679         * c-parser.c (c_parse_init): Likewise.
7680         (c_parse_file): Likewise.
7681
7682         * c-decl.c (bind): Likewise.
7683         (record_inline_static): Likewise.
7684         (push_scope): Likewise.
7685         (make_label): Likewise.
7686         (lookup_label_for_goto): Likewise.
7687         (finish_struct): Likewise.
7688         (finish_enum): Likewise.
7689         (c_push_function_context): Likewise.
7690
7691         * bitmap.c (bitmap_element_allocate): Likewise.
7692         (bitmap_gc_alloc_stat): Likewise.
7693
7694         * alias.c (record_alias_subset): Likewise.
7695         (init_alias_analysis): Likewise.
7696
7697 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
7698
7699         * fold-const.c (fold_comparison): Remove redundant parenthesis.
7700         * tree-inline.c (expand_call_inline): Pass translated return value of
7701         cgraph_inline_failed_string to diagnostic function.
7702
7703 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
7704             Shujing Zhao  <pearly.zhao@oracle.com>
7705
7706         PR c/37724
7707         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
7708         implicit bad conversions is initialization.
7709         (error_init): Use gmsgid instead of msgid for argument name and change
7710         the call for error.
7711         (pedwarn_init): Use gmsgid instead of msgid for argument name and
7712         change the call for pedwarn.
7713         (warning_init): Use gmsgid instead of msgid for argument name and
7714         change the call for warning.
7715
7716 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
7717
7718         * config/mips/mips-protos.h (mips_print_operand): Delete.
7719         (mips_print_operand_address): Delete.
7720         * config/mips/mips.h (mips_print_operand_punct): Delete.
7721         (PRINT_OPERAND): Delete.
7722         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7723         (PRINT_OPERAND_ADDRESS): Delete.
7724         * config/mips/mips.c (mips_print_operand_punct): Make static.
7725         (mips_print_operand_address): Make static.
7726         (mips_print_operand): Make static.  Call
7727         mips_print_operand_punct_valid_p.
7728         (mips_print_operand_punct_valid_p): New function.
7729         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7730         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7731
7732 2010-06-07  Jan Hubicka  <jh@suse.cz>
7733
7734         PR middle-end/44454
7735         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
7736         are allocated.
7737
7738 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
7739
7740         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
7741         name of RECORD.
7742
7743 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7744
7745         * doc/sourcebuild.texi (Effective-Target Keywords, Other
7746         attributes): Document gas.
7747
7748 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
7749
7750         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
7751         <TYPE_LEA>: Split instruction.
7752         <default>: Remove alternative 2 handling.
7753         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
7754         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
7755         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
7756
7757         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
7758         (ashift_zext lea splitter): Use DImode for multiplication.
7759
7760         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
7761         to generate addition.
7762
7763 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
7764
7765         * common.opt (fira-verbose): Use Var.
7766         (fpcc-struct-return): Use Init instead of VarExists.
7767         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
7768         toplev.c.
7769         * flags.h (flag_signed_char, flag_short_enums,
7770         flag_pcc_struct_return, flag_ira_verbose,
7771         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
7772         * toplev.c (flag_detailed_statistics, flag_signed_char,
7773         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
7774         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
7775         * toplev.h (flag_crossjumping, flag_if_conversion,
7776         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
7777         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
7778         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
7779         flag_cprop_registers, time_report, flag_ira_loop_pressure,
7780         flag_ira_coalesce, flag_ira_move_spills,
7781         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
7782
7783 2010-06-07  Jan Hubicka  <jh@suse.cz>
7784
7785         * df-core.c (df_analyze_problem): Do verification after allocation.
7786
7787         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
7788         (df_lr_alloc): Initialize problem data; move bitmaps to
7789         lr_bitmaps obstack.
7790         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
7791         (df_lr_verify_solution_start): Do not initialize problem data;
7792         allocate bitmaps in lr_bitmaps.
7793         (df_lr_verify_solution_end): Do not free problem data.
7794
7795 2010-06-07  Jan Hubicka  <jh@suse.cz>
7796
7797         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
7798         if caller is noreturn.
7799         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
7800         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
7801         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
7802         * ipa-pure-const.c (check_decl): Add IPA parameter.
7803         (state_from_flags): New function.
7804         (better_state, worse_state): New functions.
7805         (check_call): When in IPA mode, do not care about callees.
7806         (check_load, check_store): Update.
7807         (check_ipa_load, check_ipa_store): New.
7808         (check_stmt): When in IPA mode, use IPA checkers.
7809         (analyze_function): Use state_from_flags.
7810         (propagate): Check indirect edges and references.
7811
7812 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
7813
7814         PR rtl-optimization/44404
7815         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
7816         of count_occurrences to see if it's safe to modify mem_insn.
7817
7818 2010-06-07  Richard Guenther  <rguenther@suse.de>
7819
7820         * gimplify.c (gimplify_cleanup_point_expr): For empty body
7821         and EH-only cleanup drop the cleanup instead of inserting it
7822         unconditionally.
7823
7824 2010-06-07  Ira Rosen  <irar@il.ibm.com>
7825
7826         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
7827         documentation.
7828         * targhooks.c (default_builtin_vectorization_cost): New function.
7829         * targhooks.h (default_builtin_vectorization_cost): Declare.
7830         * target.h (enum vect_cost_for_stmt): Define.
7831         (builtin_vectorization_cost): Change argument and comment.
7832         * tree-vectorizer.h: Remove cost model macros.
7833         * tree-vect-loop.c: Include target.h.
7834         (vect_get_cost): New function.
7835         (vect_estimate_min_profitable_iters): Replace cost model macros with
7836         calls to vect_get_cost.
7837         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
7838         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
7839         default implementation.
7840         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
7841         calls to target hook builtin_vectorization_cost.
7842         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
7843         Likewise.
7844         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
7845         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
7846         implementation to return costs.
7847         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7848         * config/spu/spu.h: Remove vectorizer cost model macros.
7849         * config/i386/i386.h: Likewise.
7850         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
7851         a call to target hook builtin_vectorization_cost.
7852
7853 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
7854
7855         PR target/44319
7856         * config/i386/i386.c (override_options): Turn zee pass on for level 2
7857         and above and defer till target is known.
7858         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
7859         turn off otherwise.
7860
7861 2010-05-25  Jan Hubicka  <jh@suse.cz>
7862
7863         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
7864         (df_compact_blocks): Likewise.
7865         * df.h (struct df): Turn hardware_regs_used,
7866         regular_block_artificial_uses, eh_block_artificial_uses,
7867         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
7868         bitmap_head.
7869         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
7870         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
7871         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
7872         df_scan_blocks, df_insn_delete, df_insn_rescan,
7873         df_insn_rescan_debug_internal, df_insn_rescan_all,
7874         df_process_deferred_rescans, df_process_deferred_rescans,
7875         df_notes_rescan, df_get_call_refs, df_get_call_refs,
7876         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
7877         df_record_entry_block_defs, df_record_exit_block_uses,
7878         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
7879         df_scan_verify): Update.
7880
7881 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
7882
7883         PR c++/44188
7884         * c-common.c (is_typedef_decl): Move this definition ...
7885         * tree.c (is_typedef_decl): ... here.
7886         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7887         * c-common.h (is_typedef_decl): Move this declaration ...
7888         * tree.h (is_typedef_decl): ... here.
7889         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7890         * dwarf2out.c (is_naming_typedef_decl): New function.
7891         (gen_tagged_type_die): Split out of ...
7892         (gen_type_die_with_usage): ... this function. When an anonymous
7893         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7894         is emitted for the typedef.
7895         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7896         anonymous tagged types.
7897
7898 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7899
7900         PR c/20000
7901         * c-decl.c (grokdeclarator): Delete warning.
7902
7903 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7904
7905         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
7906         newly built CALL_EXPR.
7907         * tree-profile.c (tree_profiling): Don't profile functions produced
7908         for built-in stuff.
7909
7910 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
7911
7912         PR bootstrap/44427
7913         PR bootstrap/44428
7914         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
7915         endianness-independent.
7916
7917 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
7918
7919         * c-common.c: Move to c-family/.
7920         * c-common.def: Likewise.
7921         * c-common.h: Likewise.
7922         * c-cppbuiltin.c: Likewise.
7923         * c-dump.c: Likewise.
7924         * c-format.c: Likewise.
7925         * c-format.h : Likewise.
7926         * c-gimplify.c: Likewise.
7927         * c-lex.c: Likewise.
7928         * c-omp.c: Likewise.
7929         * c.opt: Likewise.
7930         * c-opts.c: Likewise.
7931         * c-pch.c: Likewise.
7932         * c-ppoutput.c: Likewise.
7933         * c-pragma.c: Likewise.
7934         * c-pragma.h: Likewise.
7935         * c-pretty-print.c: Likewise.
7936         * c-pretty-print.h: Likewise.
7937         * c-semantics.c: Likewise.
7938         * stub-objc.c: Likewise.
7939
7940         * gengtype.c (get_file_langdir): Special-case files in c-family/.
7941         (get_output_file_with_visibility): Fix name for c-common.h.
7942         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
7943
7944         * c-tree.h: Update include path for moved files.
7945         * c-lang.c: Likewise.
7946         * c-lang.h: Likewise.
7947         * c-parser.c: Likewise.
7948         * c-convert.c: Likewise.
7949         * c-decl.c: Likewise.
7950         * c-objc-common.c: Likewise.
7951         * configure.ac: Make sure c-family/ exists in the build directory.
7952         * configure: Regenerate.
7953         * Makefile.in: Update paths for moved files.  Regroup files per
7954         location and update dependencies.  Move generated_files down after
7955         ALL_GTFILES_H.
7956
7957         * config/spu/spu-c.c: Update paths for moved files.
7958         * config/mep/mep-pragma.c: Likewise.
7959         * config/darwin-c.c: Likewise.
7960         * config/i386/msformat-c.c: Likewise.
7961         * config/i386/i386-c.c: Likewise.
7962         * config/avr/avr-c.c: Likewise.
7963         * config/sol2-c.c: Likewise.
7964         * config/ia64/ia64-c.c: Likewise.
7965         * config/rs6000/rs6000-c.c: Likewise.
7966         * config/arm/arm.c: Likewise.
7967         * config/arm/arm-c.c: Likewise.
7968         * config/h8300/h8300.c: Likewise.
7969         * config/v850/v850-c.c: Likewise.
7970
7971         * config/t-darwin: Fix dependencies for moved files.
7972         * config/t-sol2: Fix dependencies for moved files.
7973         * config/mep/t-mep: Fix dependencies for moved files.
7974         * config/ia64/t-ia64: Fix dependencies for moved files.
7975         * config/rs6000/t-rs6000: Fix dependencies for moved files.
7976         * config/v850/t-v850: Fix dependencies for moved files.
7977         * config/v850/t-v850e: Fix dependencies for moved files.
7978
7979         * config/m32c/m32c-pragma.c
7980
7981         * po/exgettext: Look in c-family/ also.
7982
7983 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
7984
7985         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
7986         (mark_control_dependent_edges_necessary): Call it instead of marking
7987         the last statement manually.
7988         (propagate_necessity): Likewise.
7989
7990 2010-06-05  Jan Hubicka  <jh@suse.cz>
7991
7992         * basic-block.h (compute_dominance_frontiers): Updated.
7993         (compute_idf): Likewise.
7994
7995         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
7996         for dominance frontiers.
7997         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
7998         (insert_updated_phi_nodes_for): Likewise.
7999         (update_ssa): Likewise.
8000         * cfganal.c (compute_dominance_frontiers_1): Likewise.
8001         (compute_dominance_frontiers): Likewise.
8002         (compute_idf): Likewise.
8003         * df-problems.c (df_md_local_compute): Likewise.
8004
8005 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
8006
8007         * target.h (struct gcc_target): Add memory_move_cost field.
8008         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
8009         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
8010         * targhooks.c (default_memory_move_cost): New function.
8011         * targhooks.h (default_memory_move_cost): Declare function.
8012         * reload.h (memory_move_cost): Declare.
8013         (memory_move_secondary_cost): Change type of 'in' argument to bool.
8014         * reginfo.c (memory_move_cost): New function.
8015         (memory_move_secondary_cost): Change type of 'in' argument to bool.
8016         * ira.h (ira_memory_move_cost): Update comment.
8017         * ira.c (ira_memory_move_cost): Update comment.
8018         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
8019         with memory_move_cost.
8020         * postreload.c (reload_cse_simplify_set): (Ditto.).
8021         * reload1.c (choose_reload_regs): (Ditto.).
8022         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
8023         (MEMORY_MOVE_COST):  Revise documentation.
8024
8025         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
8026         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
8027         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
8028         type of 'in' argument to bool.
8029         (TARGET_MEMORY_MOVE_COST): Define.
8030
8031 2010-06-05  Jan Hubicka  <jh@suse.cz>
8032
8033         * ipa-pure-const.c (propagate): Fix typo in handling of functions
8034         that cannot return.  Be more careful when merging the results with
8035         previously known ones.
8036
8037 2010-06-05  Matthias Klose  <doko@ubuntu.com>
8038
8039         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
8040         function to add the -iplugindir option.
8041         (find_plugindir_spec_function): Add new declaration and function.
8042         (static_spec_func): Use it for "find-plugindir".
8043
8044 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
8045
8046         PR c++/44361
8047         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
8048         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
8049         statement expression.
8050
8051 2010-06-05  Jan Hubicka  <jh@suse.cz>
8052
8053         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
8054         (df_rd_problem_data): Convert sparse_invalidated_by_call,
8055         dense_invalidated_by_call to bitmap head.
8056         (df_rd_alloc, df_rd_bb_local_compute_process_def,
8057         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
8058         df_rd_start_dump, df_lr_verify_transfer_functions,
8059         df_live_verify_transfer_functions, df_chain_create_bb,
8060         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
8061         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
8062         df_simulate_one_insn_forwards, df_md_alloc,
8063         df_md_bb_local_compute_process_def,
8064         df_md_bb_local_compute_process_def, df_md_local_compute,
8065         df_md_transfer_function df_md_free): Update.
8066
8067 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
8068
8069         PR c/44322
8070         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
8071         target type for ADDR_EXPR; require no changes to qualifiers except
8072         for function types.
8073         * c-tree.h (c_build_type_variant): Remove.
8074
8075 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
8076
8077         * genautomata.c (get_excl_set): Do work per element, not per char.
8078         (check_presence_pattern_sets): Similar.
8079         (check_absence_pattern_sets): Similar.
8080
8081 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
8082
8083         * genautomata.c (curr_state_pass_num): Delete.
8084         (min_issue_delay_pass_states): Delete.
8085         (min_issue_delay): Delete.
8086         (initiate_min_issue_delay_pass_states): Delete.
8087         (output_min_issue_delay_table): Compute min_issue_delay_vect
8088         using a breadth-first search variant.
8089         (output_tables): Don't call initiate_min_issue_delay_pass_states.
8090
8091 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
8092
8093         PR boostrap/44421
8094         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
8095         (df_byte_lr_bb_local_compute): Likewise.
8096
8097 2010-06-03  Jason Merrill  <jason@redhat.com>
8098
8099         Implement noexcept operator (5.3.7)
8100         * c-common.c (c_common_reswords): Add noexcept.
8101         * c-common.h (enum rid): Add RID_NOEXCEPT.
8102
8103 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
8104
8105         * config/darwin-driver.c (darwin_default_min_version): Use
8106         GCC-specific formats in diagnostics.
8107         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
8108         diagnostics.
8109         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
8110         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
8111         eval_spec_function, handle_braces, process_brace_body, main,
8112         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
8113         getenv_spec_function, compare_version_strings,
8114         version_compare_spec_function): Use GCC-specific formats in
8115         diagnostics.
8116
8117 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8118
8119         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
8120         that operand 0 and operand 1 are equal.
8121         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
8122         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
8123         and operand 1 are equal.
8124         <default>: Ditto.  Remove ??? comment.
8125         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
8126         and operand 1 are equal.
8127         <default>: Ditto.  Remove ??? comment.
8128         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
8129         are equal.
8130         (*add<mode>_4) <default>: Ditto.
8131         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
8132
8133 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
8134
8135         * config/i386/i386-protos.h (ix86_print_operand): Declare.
8136         * config/i386/i386.c (ix86_print_operand): Make non-static.
8137         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
8138         * output.h (output_operand): Declare.
8139         * final.c (output_operand): Make non-static.
8140
8141 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
8142
8143         PR rtl-optimization/44013
8144         * sched-deps.c (add_dependence_list_and_free): Don't free lists
8145         when processing debug insns.
8146
8147         PR debug/41371
8148         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
8149         recursing.  Check that recursion is bounded.  Rename inner var
8150         to avoid hiding incoming argument.
8151
8152 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8153
8154         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
8155         operands[2] == 255.
8156         (*addqi_3): Ditto.
8157         (*addqi_4): Ditto.
8158         (*addqi_5): Ditto.
8159         (*addqi_ext_1_rex64): Ditto.
8160         (*addqi_ext_1): Ditto.
8161
8162         (*addqi_4): Check for incdec_operand in QImode.
8163
8164         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
8165         using SWI mode iterator.
8166         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
8167         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
8168         mode iterator.
8169         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
8170         using SWI mode iterator.
8171
8172 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8173
8174         PR c/25880
8175         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
8176         * c-format.c (gcc_diag_flag_specs): Add hash.
8177         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
8178         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
8179         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
8180         pp_c_cv_qualifiers. Handle qualifiers spelling here.
8181         (pp_c_type_qualifier_list): Call the function above.
8182         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
8183         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
8184         (WARN_FOR_QUALIFIERS): New macro.
8185         (convert_for_assignment): Use it.
8186
8187 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
8188
8189         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
8190
8191 2010-06-04  Jan Hubicka  <jh@suse.cz>
8192
8193         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
8194         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
8195         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
8196         DF_BYTE_LR_OUT): Update for embedded bitmaps.
8197         * fwprop.c (single_def_use_enter_block): Likewise.
8198         * ddg.c (create_ddg_dep_from_intra_loop_link,
8199         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
8200         * loop-iv.c (latch_dominating_def): Likewise.
8201         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
8202         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
8203         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
8204         df_rd_transfer_function, df_rd_top_dump,
8205         df_rd_bottom_dump): Update.
8206         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
8207         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
8208         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
8209         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
8210         df_lr_verify_solution_start, df_lr_verify_solution_end,
8211         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
8212         df_live_free_bb_info, df_live_alloc, df_live_reset,
8213         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
8214         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
8215         df_live_verify_solution_start, df_live_verify_solution_end,
8216         df_live_verify_transfer_functions, df_chain_create_bb,
8217         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
8218         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8219         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8220         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
8221         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
8222         df_byte_lr_transfer_function, df_byte_lr_top_dump,
8223         df_byte_lr_bottom_dump, df_create_unused_note,
8224         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
8225         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
8226         df_md_transfer_function, df_md_init, df_md_confluence_0,
8227         df_md_confluence_n,
8228         df_md_top_dump, df_md_bottom_dump): Update.
8229         (struct df_lr_problem_data): Embedd bitmap headers.
8230
8231 2010-06-04  Jan Hubicka  <jh@suse.cz>
8232
8233         * dce.c (dce_process_block): Do not re-scan already marked
8234         instructions.
8235
8236 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
8237
8238         PR rtl-optimization/39871
8239         PR rtl-optimization/40615
8240         PR rtl-optimization/42500
8241         PR rtl-optimization/42502
8242         * ira.c (init_reg_equiv_memory_loc: New function.
8243         (ira): Call it twice.
8244         * reload.h (calculate_elim_costs_all_insns): Declare.
8245         * ira-costs.c: Include "reload.h".
8246         (regno_equiv_gains): New static variable.
8247         (init_costs): Allocate it.
8248         (finish_costs): Free it.
8249         (ira_costs): Call calculate_elim_costs_all_insns.
8250         (find_costs_and_classes): Take estimated elimination costs
8251         into account.
8252         (ira_adjust_equiv_reg_cost): New function.
8253         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
8254         * reload1.c (init_eliminable_invariants, free_reg_equiv,
8255         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
8256         (elim_bb): New static variable.
8257         (reload): Move code out of here into init_eliminable_invariants and
8258         free_reg_equiv.  Call them.
8259         (calculate_elim_costs_all_insns): New function.
8260         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
8261         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
8262         but call note_reg_elim_costly if we turned a valid memory address
8263         into an invalid one.
8264         * Makefile.in (ira-costs.o): Depend on reload.h.
8265
8266 2010-06-04  Julian Brown  <julian@codesourcery.com>
8267
8268         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
8269         for pool ranges.
8270
8271 2010-06-04  Richard Guenther  <rguenther@suse.de>
8272
8273         PR lto/41584
8274         * cgraph.h (struct varpool_node): Add lto_file_data field.
8275         * lto-cgraph.c (input_varpool_node): Initialize it.
8276
8277 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
8278
8279         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
8280         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
8281         predicate in "type" attribute calculation.
8282         (*addsi_1_zext): Ditto.
8283         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
8284         (*addsi_2_zext): Ditto.
8285         (*add<mode>_3): Ditto.
8286         (*addsi_3_zext): Ditto.
8287         (*add<mode>_5): Ditto.
8288
8289 2010-06-03  Jan Hubicka  <jh@suse.cz>
8290
8291         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
8292         of bitmap_bit_p.
8293         * cfganal.c (compute_dominance_frontiers_1): Likewise.
8294
8295 2010-06-03  Jan Hubicka  <jh@suse.cz>
8296
8297         * df-problems.c (df_create_unused_note, df_note_bb_compute):
8298         micro-optimize the checks when to add new note.
8299
8300 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
8301
8302         * final.c (output_asm_insn): Call
8303         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
8304         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
8305         (output_address): Call targetm.asm_out.print_operand_address.
8306         Update comments.
8307         * target.h (struct gcc_target): Add print_operand,
8308         print_operand_address, and print_operand_punct_valid_p fields.
8309         * targhooks.h (default_print_operand): Declare.
8310         (default_print_operand_address): Declare.
8311         (default_print_operand_punct_valid_p): Declare.
8312         * targhooks.c (default_print_operand): Define.
8313         (default_print_operand_address): Define.
8314         (default_print_operand_punct_valid_p): Define.
8315         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
8316         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
8317         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
8318         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
8319         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
8320         * vmsdbgout.c (addr_const_to_string): Update comment.
8321         * config/i386/i386.c (print_operand): Rename to...
8322         (ix86_print_operand): ...this.  Make static.
8323         (print_operand_address): Rename to...
8324         (ix86_print_operand_address): ...this.  Make static.  Call
8325         ix86_print_operand instead of PRINT_OPERAND.
8326         (ix86_print_operand_punct_valid_p): New function.
8327         (TARGET_PRINT_OPERAND): Define.
8328         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8329         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8330         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
8331         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8332         (PRINT_OPERAND): Delete.
8333         (PRINT_OPERAND_ADDRESS): Delete.
8334         * config/i386/i386-protos.h (print_operand): Delete prototype.
8335         (print_operand_address): Delete prototype.
8336
8337 2010-06-03  Richard Guenther  <rguenther@suse.de>
8338
8339         PR tree-optimization/44403
8340         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8341         Preserve pointer qualifiers.
8342         (vect_create_data_ref_ptr): Likewise.
8343
8344 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
8345
8346         PR c++/44294
8347         * defaults.h (MAX_FIXED_MODE_SIZE): New.
8348
8349         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
8350
8351 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
8352
8353         PR debug/44375
8354         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
8355         return false if merging the bbs would lead to goto_locus
8356         location being lost from the IL.
8357
8358 2010-06-03  Jan Hubicka  <jh@suse.cz>
8359             Jakub Jelinek  <jakub@redhat.com>
8360
8361         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
8362         set->regs[i] is NULL or has just one entry.
8363
8364 2010-06-03  Jan Hubicka  <jh@suse.cz>
8365
8366         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
8367         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
8368
8369 2010-06-03  Paul Brook  <paul@codesourcery.com>
8370
8371         * config/arm/arm.c (FL_TUNE): Define.
8372         (arm_default_cpu, arm_cpu_select): Remove.
8373         (all_cores): Populate core field.
8374         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
8375         (arm_find_cpu): New function.
8376         (arm_handle_option): Lookup cpu/architecture names.
8377         (arm_override_options): Cleanup mcpu/march/mtune handling.
8378         (arm_file_start): Ditto.
8379
8380 2010-06-03  Alan Modra  <amodra@gmail.com>
8381
8382         PR target/44169
8383         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
8384         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
8385         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
8386         (rs6000_emit_load_toc_table): Likewise.
8387
8388 2010-06-02  Jan Hubicka  <jh@suse.cz>
8389
8390         * passes.c (init_optimization_passes): Put ipa reference
8391         after ipa pure-const.
8392
8393 2010-06-02  Jan Hubicka  <jh@suse.cz>
8394
8395         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
8396         calls_read_all and calls_write_all.
8397         (get_reference_optimization_summary): Fix formatting.
8398         (is_proper_for_analysis): Check that decl is not readonly.
8399         (propagate_bits): Check CONST/PURE/noreturn flags.
8400         (ipa_init): Move all_module_statics to optimization_summary_obstack.
8401         (analyze_function): Ignore indirect edges.
8402         (copy_global_bitmap): For all module statics, do nothing.
8403         (generate_summary): Do not print calls_read_all/calls_write_all.
8404         (read_write_all_from_decl): Take node as argument; check
8405         cgraph_node_cannot_return.
8406         (propagate): Reorganize read_all/write_all computation;
8407         check indirect edges; check ecf flags; use all_module_statics
8408         in the results; do not free all_module_statics.
8409         (stream_out_bitmap): Handle all_module_statics.
8410         (ipa_reference_write_optimization_summary): Likewise; use
8411         varpool/cgraph encoders to get boundaries.
8412         (ipa_reference_read_optimization_summary): Read in all_module_statics;
8413         use it when possible.
8414
8415 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8416
8417         PR target/44218
8418         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
8419         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
8420
8421         * doc/extend.texi (powerpc builtins): Document vec_recip,
8422         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
8423
8424         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
8425         (rs6000_emit_swrsqrt): Ditto.
8426         (rs6000_emit_swdivsf): Delete.
8427         (rs6000_emit_swdivdf): Ditto.
8428         (rs6000_emit_swrsqrtsf): Ditto.
8429
8430         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
8431         describe the reciprocal estimate support for each type.
8432         (recip_options): Map -mrecip=<opt> into option bits.
8433         (gen_2arg_fn_t): New typedef for binary rtx gen function.
8434         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
8435         reciprocal estimate instructions.
8436         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
8437         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
8438         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
8439         cost information if -mdebug=cost or -mdebug=reg.
8440         (rs6000_override_options): Set -mrecip-precision for power6, and
8441         power7 machines.  If -mvsx or -mdfp, enable various options that
8442         came in previous instruction set ISAs, unless the option was
8443         explicitly disabled by the command line option.  Parse
8444         -mrecip=<opt> options.
8445         (rs6000_builtin_vectorized_function): Add support for vectorizing
8446         the reciprocal estimate builtins and expansions.
8447         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
8448         (bdesc_2arg): Add reciprocal estimate builtins.
8449         (bdesc_1arg): Add reciprocal square root estimate builtins.
8450         (rs6000_expand_builtin): Rewrite to use a switch statement,
8451         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
8452         (rs6000_init_builtins): Create declarations for reciprocal
8453         estimate builtins.
8454         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
8455         sized, prefer traditional floating point registers, if integer
8456         vector types, prefer altivec registers.  Don't actually look at
8457         the memory address any more.
8458         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
8459         builtins.
8460         (rs6000_load_constant_and_splat): New helper function to load up
8461         the constant for reciprocal estimate instructions.
8462         (rs6000_emit_madd): New helper function for generating
8463         multiply/add type instructions, based on the current switches.
8464         (rs6000_emit_msub): Ditto.
8465         (rs6000_emit_mnsub): Ditto.
8466         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
8467         replace a divide with a reciprocal estimate and fixup, adding
8468         support for machines with high precision and vectors.
8469         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
8470         low precision machines.
8471         (rs6000_emit_swdiv): New common function to be called to replace a
8472         division with reciprocal estimate and fixup.
8473         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
8474         for double and vector types.  Add support for high precision machines.
8475
8476         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
8477         the reciprocal estimate instructions can be generated.
8478         (TARGET_FRE): Ditto.
8479         (TARGET_FRSQRTES): Ditto.
8480         (TARGET_FRSQRTE): Ditto.
8481         (RS6000_RECIP_*): New macros for reciprocal estimate support.
8482
8483         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
8484         square root estimate on vectors.
8485         (re<mode>2): New insn for reciprocal division estimate on vectors.
8486
8487         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
8488         New builtin.
8489         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
8490         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
8491         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
8492         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
8493         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
8494         (RS6000_BUILTIN_RSQRT): Ditto.
8495         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
8496         floating point builtin.
8497
8498         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8499         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
8500         __RECIP_PRECISION__ based on the command line switches.
8501         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
8502
8503         * config/rs6000/rs6000.opt (-mrecip): Document add support for
8504         replacing division instructions with reciprocal estimate and fixup.
8505         (-mrecip=<opt>): New option.
8506         (-mrecip-precision): Ditto.
8507
8508         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
8509         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
8510         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
8511         precision scalar.
8512
8513         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
8514         (UNSPEC_VREFP): Ditto.
8515         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
8516         conterparts with regard to support of -mno-fused-madd and -ffast-math.
8517         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
8518         reciprocal estimate instructions to be generated.
8519         (altivec_vrefp): Ditto.
8520
8521         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
8522         estimate support.
8523         (rreg): New mode attribute for reciprocal estimate support.
8524         (recip<mode>3): New insn for division using reciprocal estimate
8525         and fixup builtins.
8526         (divide define_split): New define_split to convert floating point
8527         division to use reciprocal estimate if the user used the
8528         appropriate options and the split is run when we can add new
8529         pseudo registers for the fixup.
8530         (rsqrt<mode>2): New insn for reciprocal square root support.
8531         (recipsf3): Move into recip<mode>3.
8532         (recipdf3): Ditto.
8533         (fres): Use TARGET_FRES.
8534         (rsqrtsf2): Move into rsqrt<mode>2.
8535         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
8536         (copysignsf3): Add support for VSX.
8537         (fred): Use TARGET_FRE.
8538         (fred_fpr): Ditto.
8539         (rsqrtdf_internal1): New function for frsqrte instruciton.
8540
8541         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
8542         (vec_rsqrt): Ditto.
8543
8544 2010-06-03  Richard Guenther  <rguenther@suse.de>
8545
8546         PR middle-end/44291
8547         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
8548         (set_user_assembler_libfunc): Likewise.
8549
8550 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
8551
8552         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
8553         defaults.h.
8554         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
8555         to defaults.h
8556         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
8557         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
8558         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
8559         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
8560         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
8561         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
8562         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
8563         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
8564         * defaults.h: Updated for above mentioned changes.
8565
8566 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
8567
8568         * c-common.c: Remove header include of tm_p.h.
8569         * Makefile.in (c-common.o): Remove TM_P_H dependency.
8570
8571 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
8572
8573         * tree.h (struct tree_decl_map): New type.
8574         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
8575         (tree_decl_map_hash): New prototype.
8576         (debug_expr_for_decl, value_expr_for_decl): Change into
8577         tree_decl_map hashtab from tree_map.
8578         (init_ttree): Adjust initialization.
8579         (tree_decl_map_hash): New function.
8580         (decl_debug_expr_lookup, decl_debug_expr_insert,
8581         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
8582
8583 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8584
8585         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
8586         linker emulations.
8587         * configure: Regenerate.
8588         * config.in: Regenerate.
8589
8590         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
8591         (X86_64_EMULATION): Define.
8592         (TARGET_LD_EMULATION): Use them.
8593
8594         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
8595         (SPARC64_EMULATION): Define.
8596         (LINK_ARCH_SPEC): Use them.
8597
8598 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
8599
8600         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
8601         smallest_mode_for_size for computing the precision types of new
8602         graphite IVs.  Do not call lang_hooks.types.type_for_size.
8603
8604 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
8605
8606         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
8607         information.
8608         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
8609
8610 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
8611
8612         PR middle-end/44363
8613         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
8614         return false instead.
8615
8616 2010-06-02  Jan Hubicka  <jh@suse.cz>
8617
8618         PR middle-end/44295
8619         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
8620         create new cgraph node to check callee.
8621
8622 2010-06-02  Richard Guenther  <rguenther@suse.de>
8623
8624         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
8625
8626 2010-06-02  Richard Guenther  <rguenther@suse.de>
8627
8628         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
8629         (lto_wrapper_cleanup): ... this.  Do not exit.
8630         (fatal): Adjust.  Exit here.
8631         (fatal_perror): Likewise.
8632         (fatal_signal): New function.
8633         (main): Set up signal handlers to cleanup temporary files.
8634         * Makefile.in (lto-wrapper.o): Adjust dependencies.
8635
8636 2010-06-02  Richard Guenther  <rguenther@suse.de>
8637
8638         PR tree-optimization/44377
8639         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
8640
8641 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8642
8643         * config/s390/2097.md (z10_fhex): Remove insn reservation.
8644         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
8645         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
8646         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
8647         instruction.
8648         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
8649
8650 2010-06-02  Jan Hubicka  <jh@suse.cz>
8651
8652         * bitmap.c (bitmap_descriptor): Add search_iter.
8653         (bitmap_find_bit): Increment it.
8654         (print_statistics): Print it.
8655
8656 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
8657
8658         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
8659         instead of gimple_build_call_vec.  Delete unnecessary local variable.
8660
8661 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
8662
8663         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
8664         change from yesterday.
8665
8666 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
8667
8668         * c-ada-spec.c: Clean up redundant includes.
8669
8670 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
8671
8672         * gimplify.c: Do not include except.h and optabs.h.
8673         (gimplify_body): Do not initialize RTL profiling.
8674         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
8675         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
8676         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
8677         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
8678         langhooks.h.
8679
8680         * tree-pretty-print.h: Include pretty-print.h.
8681         * gimple-pretty-print.h: Include pretty-print.h.
8682
8683         * tree-pretty-print.c: Do not include diagnostic.h.
8684         * tree-vrp.c: Likewise.
8685         * tree-tailcall.c: Likewise
8686         * tree-scalar-evolution.c: Likewise
8687         * tree-ssa-dse.c: Likewise
8688         * tree-chrec.c: Likewise
8689         * tree-ssa-sccvn.c: Likewise
8690         * tree-ssa-copyrename.c: Likewise
8691         * tree-nomudflap.c: Likewise
8692         * tree-call-cdce.c: Likewise
8693         * tree-stdarg.c: Likewise
8694         * tree-ssa-math-opts.c: Likewise
8695         * tree-nrv.c: Likewise
8696         * tree-ssa-sink.c: Likewise
8697         * tree-browser.c: Likewise
8698         * tree-ssa-loop-ivcanon.c: Likewise
8699         * tree-ssa-loop.c: Likewise
8700         * tree-parloops.c: Likewise
8701         * tree-ssa-address.c: Likewise
8702         * tree-ssa-ifcombine.c: Likewise
8703         * tree-if-conv.c: Likewise
8704         * tree-data-ref.c: Likewise
8705         * tree-affine.c: Likewise
8706         * tree-ssa-phiopt.c: Likewise
8707         * tree-ssa-coalesce.c: Likewise
8708         * tree-ssa-pre.c: Likewise
8709         * tree-ssa-live.c: Likewise
8710         * tree-predcom.c: Likewise
8711         * tree-ssa-forwprop.c: Likewise
8712         * tree-ssa-dce.c: Likewise
8713         * tree-ssa-ter.c: Likewise
8714         * tree-ssa-loop-prefetch.c: Likewise
8715         * tree-optimize.c: Likewise
8716         * tree-ssa-phiprop.c: Likewise
8717         * tree-object-size.c: Likewise
8718         * tree-outof-ssa.c: Likewise
8719         * tree-ssa-structalias.c: Likewise
8720         * tree-switch-conversion.c: Likewise
8721         * tree-ssa-reassoc.c: Likewise
8722         * tree-ssa-operands.c: Likewise
8723         * tree-vectorizer.c: Likewise
8724         * tree-vect-data-refs.c: Likewise
8725         * tree-vect-generic.c: Likewise
8726         * tree-vect-stmts.c: Likewise
8727         * tree-vect-patterns.c: Likewise
8728         * tree-vect-slp.c: Likewise
8729         * tree-vect-loop.c: Likewise
8730         * tree-ssa-loop-ivopts.c: Likewise
8731         * tree-ssa-loop-im.c: Likewise
8732         * tree-ssa-loop-niter.c: Likewise
8733         * tree-ssa-loop-unswitch.c: Likewise
8734         * tree-ssa-loop-manip.c: Likewise
8735         * tree-ssa-loop-ch.c: Likewise
8736         * tree-dump.c: Likewise
8737         * tree-complex.c: Likewise
8738
8739         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
8740         * tree-ssa-uninit.c: Likewise
8741         * tree-ssa-threadupdate.c: Likewise
8742         * tree-ssa-uncprop.c: Likewise
8743         * tree-ssa-ccp.c: Likewise
8744         * tree-ssa-dom.c: Likewise
8745         * tree-ssa-propagate.c: Likewise
8746         * tree-ssa-alias.c: Likewise
8747         * tree-dfa.c: Likewise
8748         * tree-cfgcleanup.c: Likewise
8749         * tree-sra.c: Likewise
8750         * tree-ssa-copy.c: Likewise
8751         * tree-ssa.c: Likewise
8752         * tree-profile.c: Likewise
8753         * tree-cfg.c: Likewise
8754         * tree-ssa-threadedge.c: Likewise
8755         * tree-vect-loop-manip.c: Likewise
8756
8757         * tree-inline.c: Do not include diagnostic.h and expr.h.
8758         Include rtl.h.
8759         (copy_decl_for_dup_finish): Do not use NULL_RTX.
8760
8761         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
8762         * tree-loop-distribution.c: Likewise.
8763
8764 2010-06-01  Jan Hubicka  <jh@suse.cz>
8765
8766         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
8767
8768 2010-06-01  Jan Hubicka  <jh@suse.cz>
8769
8770         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
8771         remove return value.
8772         (split_bbs_on_noreturn_calls) .... here.
8773         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
8774         * tree-flow.h (fixup_noreturn_call): New.
8775
8776 2010-06-01  Jan Hubicka  <jh@suse.cz>
8777
8778         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
8779
8780 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
8781
8782         * tree.h (build_nt_call_list): Delete.
8783         * tree.c (build_nt_call_list): Delete.
8784
8785 2010-06-01  Jan Hubicka  <jh@suse.cz>
8786
8787         * fwprop.c: Make emit-rtl.h include last.
8788         * rtlanal.c: Include emit-rtl.h.
8789         * genautomata.c: Output emit-rtl include into insn-automata.c
8790         * df-scan.c: Include emit-rtl.h.
8791         * haifa-sched.c: Indlude emit-rtl.h.
8792         * mode-switching.c: Indlude emit-rtl.h.
8793         * graph.c: Indlude emit-rtl.h.
8794         * sel-sched.c: Include emit-rtl.h.
8795         * sel-sched-ir.c: Include emit-rtl.h.
8796         * ira-build.c: Include emit-rtl.h.
8797         * emit-rtl.c (first_insn, last_insn): Remove defines.
8798         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
8799         Move to emit-rtl.h.
8800         (set_new_first_and_last_insn, get_last_insn_anywhere,
8801         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
8802         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
8803         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
8804         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
8805         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
8806         Use accessor functions.
8807         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8808          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8809         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8810         mem_expr_equal_p): Move here from rtl.h.
8811         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
8812         Move here from emit-rtl.c; make inline.
8813         * cfglayout.h: Include emit-rtl.h.
8814         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8815          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8816         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8817         mem_expr_equal_p, get_insns, set_first-insn,
8818         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
8819         * reg-stack.c: Include emit-rtl.h.
8820         * dce.c: Likewise.
8821
8822 2010-06-01  Jan Hubicka  <jh@suse.cz>
8823
8824         * cgraph.h (tree_function_versioning): Update prototype.
8825         (cgraph_function_versioning): Update prototype.
8826         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
8827         bitmap.
8828         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
8829         (cgraph_materialize_clone, save_inline_function_body): Update use of
8830         tree_function_versioning.
8831         * tree-inline.c (copy_bb): Look for previous copied block to link
8832         after; fix debug output.
8833         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
8834         (copy_body): Likewise.
8835         (expand_call_inline): Update use of copy_body.
8836         (tree_function_versioning): Update use of copy body; accept
8837         blocks_to_copy and new_entry.
8838
8839 2010-06-01  Jan Hubicka  <jh@suse.cz>
8840
8841         * gegenrtl.c: Remove unnecesary prototypes.
8842         (gendecl): Remove.
8843         (gendef): Produce static inline.
8844         (gencode): Remove.
8845         (main): Do not decode parameters; generate header only.
8846         * Makefile.in (genrtl.c): Remove.
8847
8848 2010-06-01  Jan Hubicka  <jh@suse.cz>
8849
8850         * tree-switch-conversion.c (build_one_array): Make it readonly.
8851
8852 2010-06-01  Richard Guenther  <rguenther@suse.de>
8853
8854         * optabs.c (init_optabs): Guard all accesses to reinit.
8855         * ipa-pure-const.c (propagate): Fix another typo.
8856         * opts.c (common_handle_option): Split assignment to bool.
8857         * c-opts.c (c_common_handle_option): Likewise.
8858
8859 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
8860             Matthew Gingell  <gingell@adacore.com>
8861
8862         * doc/invoke.texi: Mention -fdump-ada-spec.
8863         * tree-dump.c (dump_files): Add ada-spec.
8864         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
8865         * tree-pass.h (tree_dump_index): Add TDI_ada.
8866         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
8867         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
8868         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
8869         * c-decl.c: Include c-ada-spec.h.
8870         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
8871         functions.
8872         (c_write_global_declarations): Add handling of -fdump-ada-spec.
8873         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
8874         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
8875         * c-ada-spec.h, c-ada-spec.c: New files.
8876
8877 2010-06-01  Richard Guenther  <rguenther@suse.de>
8878
8879         PR lto/43853
8880         * ipa-pure-const.c (get_function_state): Hand back varying state
8881         if we do not have one.
8882         (has_function_state): New function.
8883         (duplicate_node_data): Adjust.
8884         (remove_node_data): Likewise.
8885         (pure_const_write_summary): Likewise.
8886         (propagate): Likewise.  Fix typo.
8887
8888 2010-06-01  Jan Hubicka  <jh@suse.cz>
8889
8890         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
8891         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
8892         (execute_all_ipa_transforms): Do not play with the states.
8893
8894 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
8895
8896         * config/arm/t-linux-androideabi: New.
8897         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
8898
8899 2010-06-01  Jan Hubicka  <jh@suse.cz>
8900
8901         * tree-inline.c (estimate_num_insns): For stdarg functions look
8902         into call statement to count cost of argument passing.
8903
8904 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
8905
8906         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
8907         argument for fprintf.
8908         (ix86_output_addr_diff_elt): Likewise.
8909         (x86_function_profiler): Likewise.
8910         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
8911         (LPREFIX): Likewise.
8912         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8913
8914 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
8915
8916         PR target/44338
8917         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
8918         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
8919         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
8920         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
8921         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
8922         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
8923         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
8924         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
8925         TARGET_FUSED_MADD.
8926
8927 2010-05-31  Jan Hubicka  <jh@suse.cz>
8928
8929         * tree.h (tree_range_check_failed): Declare noreturn.
8930
8931 2010-05-31  Jan Hubicka  <jh@suse.cz>
8932
8933         * gimple.c (gimple_call_builtin_p): New function.
8934         * gimple.h (gimple_call_builtin_p): Declare.
8935         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
8936         to exit.
8937         (execute_warn_function_return): BUILT_IN_RETURN is return.
8938         (split_critical_edges): Return edges are not critical.
8939         (is_ctrl_altering_stmt): Builtin_in_return is altering.
8940         (gimple_verify_flow_info): Handle built_in_return.
8941         (execute_warn_function_return): Handle built_in_return.
8942         * ipa-pure-const.c (check_call): Ignore builtin_return.
8943
8944 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
8945
8946         PR middle-end/44337
8947         * expr.c (expand_assignment): Don't store anything for out-of-bounds
8948         array accesses with non-MEM.
8949
8950         PR tree-optimization/44182
8951         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
8952         newly needs to end a bb is followed by debug stmts, instead return
8953         true from the function at the end.
8954         (maybe_move_debug_stmts_to_successors): New function.
8955         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
8956
8957 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
8958
8959         PR target/44161
8960         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
8961
8962 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
8963
8964         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
8965         for nested functions in non-optimized compilation.
8966
8967 2010-05-31  Richard Guenther  <rguenther@suse.de>
8968
8969         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
8970
8971 2010-05-30  Jan Hubicka  <jh@suse.cz>
8972
8973         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
8974
8975 2010-05-30  Richard Guenther  <rguenther@suse.de>
8976
8977         PR lto/42975
8978         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
8979         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
8980         no longer needed.
8981
8982 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
8983
8984         * config/darwin.c (output_objc_section_asm_op): Add comment.
8985         (name_needs_quotes): Add '_' to list of valid comment chars.
8986         (machopic_output_function_base_name): Remove unneeded quotes.
8987         (darwin_encode_section_info): Adjust asm whitespace.
8988         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
8989         (ASM_OUTPUT_LOCAL): Ditto.
8990         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
8991         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
8992         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
8993
8994 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8995
8996         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
8997         RS6000_OUTPUT_BASENAME unconditionally.
8998         (rs6000_output_function_epilogue): Likewise.
8999
9000 2010-05-30  Jan Hubicka  <jh@suse.cz>
9001
9002         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
9003         nodes.
9004
9005 2010-05-30  Richard Guenther  <rguenther@suse.de>
9006
9007         * tree-cfg.c (verify_gimple_assign_single): Implement
9008         verification for COND_EXPR rhs.
9009
9010 2010-05-30  Jan Hubicka  <jh@suse.cz>
9011
9012         * cgraph.h (cgraph_dump_file): Declare.
9013         * cgraphunit.c (cgraph_dump_file): Export.
9014         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
9015
9016 2010-05-30  Jan Hubicka  <jh@suse.cz>
9017
9018         * dwarf2out.c (reference_to_unused,
9019         premark_types_used_by_global_vars_helper): Avoid creation of new
9020         varpool nodes.
9021
9022 2010-05-30  Jan Hubicka  <jh@suse.cz>
9023
9024         * cgraph.h (cgraph_node_cannot_return,
9025         cgraph_edge_cannot_lead_to_return): New functions.
9026         * cgraph.c (cgraph_node_cannot_return,
9027         cgraph_edge_cannot_lead_to_return): Use them.
9028         * ipa-pure-const.c (pure_const_names): New static var.
9029         (check_call): Handle calls not leading to return.
9030         (pure_const_read_summary): Dump info read.
9031         (propagate): Dump info about propagation process; ignore side effects
9032         of functions not leading to exit; fix handling of pure functions.
9033
9034 2010-05-30  Jan Hubicka  <jh@suse.cz>
9035
9036         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
9037         for tail call epilogues.
9038
9039 2010-05-30  Jan Hubicka  <jh@suse.cz>
9040
9041         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
9042         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
9043         dump files.
9044
9045 2010-05-29  Jan Hubicka  <jh@suse.cz>
9046
9047         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
9048         node; remove references in node we no longer keep in cgrpah but need
9049         body of.
9050
9051 2010-05-29  Jan Hubicka  <jh@suse.cz>
9052
9053         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
9054
9055 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9056
9057         PR target/44165
9058         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
9059
9060 2010-05-29  Jan Hubicka  <jh@suse.cz>
9061
9062         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
9063         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
9064         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
9065         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
9066         debug_names_replaced_by, debug_update_ssa): Likewise.
9067         * sbitmap.c (debug_sbitmap): Likewise.
9068         * genrecog.c (debug_decision, debug_decision_list): Likewise.
9069         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
9070         debug_tree_chain): Likewise.
9071         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
9072         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
9073         * optabs.c (debug_optab_libfuncs): Likewise.
9074         (verify_loop_closed_ssa): Likewise.
9075         * value-prof.c (verify_histograms): Likewise.
9076         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
9077         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
9078         * cfghooks.c (verify_flow_info): Likewise.
9079         * fold-const.c (debug_fold_checksum): Likewise.
9080         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
9081         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
9082         Likewise.
9083         * omega.c (debug_omega_problem): Likewise.
9084         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
9085         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
9086         * dominance.c (verify_dominators, debug_dominance_info,
9087         debug_dominance_tree): Likewise.
9088         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
9089         * df_regno_debug, df_ref_debug,
9090         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
9091         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
9092         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
9093         * sel-sched.c (debug_state): Likewise.
9094         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
9095         Likewise.
9096         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
9097         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
9098         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
9099         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
9100         Likewise.
9101         * c-pretty-print.c (debug_c_tree): Likewise.
9102         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
9103         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
9104         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
9105         * ebitmap.c (debug_ebitmap): Likewise.
9106         * function.c (debug_find_var_in_block_tree): Likewise.
9107         * print-rtl.c (debug_rtx): Likewise.
9108         (debug_rtx_count): Likewise.
9109         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
9110         * stor-layout.c (debug_rli): Likewise.
9111         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
9112         * tree-data-ref.c (debug_data_references,
9113         debug_data_dependence_relations, debug_data_reference,
9114         debug_data_dependence_relation, debug_rdg_vertex,
9115         debug_rdg_component, debug_rdg): Likewise.
9116         * tree-affine.c (debug_aff): Likewise.
9117         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
9118         Likewise.
9119         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
9120         * emit-rtl.c (verify_rtl_sharing): Likewise.
9121         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
9122         debug_value_expressions): Likewise.
9123         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
9124         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
9125         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
9126         * cfglayout.c (verify_insn_chain): Likewise.
9127         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
9128         debug_clast_stmt, debug_generated_program): Likewise.
9129         * ggc-page.c (debug_print_page_list): Likewise.
9130         * tree-ssa-ter.c (debug_ter): Likewise.
9131         * graphite-dependences.c (debug_pddr): Likewise.
9132         * sched-deps.c (debug_ds): Likewise.
9133         * tree-ssa.c (verify_ssa): Likewise.
9134         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
9135         debug_scattering_functions, debug_iteration_domains, debug_pdr,
9136         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
9137         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
9138         * tree-inline.c (debug_find_tree): Likewise.
9139         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
9140         debug_ppl_powerset_matrix): Likewise.
9141         * var-tracking.c (debug_dv): Likewise.
9142         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
9143         * cfgloop.c (verify_loop_structure): Likewise.
9144         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
9145         * c-common.c (verify_sequence_points): Likewise.
9146         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
9147         debug_candidates, debug_rgn_dependencies): Likewise.
9148         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
9149         * debug_constraint_graph, debug_solution_for_var,
9150         debug_sa_points_to_info): Likewise.
9151         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
9152         Likewie.
9153         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
9154         debug_loops, debug_loop, debug_loop_num): Likewise.
9155         * passes.c (debug_pass): Likewise.
9156         (dump_properties): Likewise; add cfglayout property.
9157         (debug_properties): Likewise.
9158         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
9159         * varpool.c (debug_varpool): Likewise.
9160         * regcprop.c (debug_value_data): Likewise.
9161         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
9162         debug_immediate_uses_for): Likewise.
9163
9164 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
9165
9166         PR bootstrap/44315
9167         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
9168         Filter out insn-flags.h.
9169
9170 2010-05-29  Jan Hubicka  <jh@suse.cz>
9171
9172         * cgraph.h (struct varpool_node_set_def,
9173         struct cgraph_node_set_def): Remove unused AUX pointer.
9174         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
9175         VEC_empty macro.
9176
9177 2010-05-29  Jan Hubicka  <jh@suse.cz>
9178
9179         PR middle-end/44324
9180         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
9181
9182 2010-05-29  Richard Guenther  <rguenther@suse.de>
9183
9184         * lto-streamer.c (cached_bp): New global variable.
9185         (bitpack_create): Return the cached bitpack, if available.
9186         (bitpack_delete): Clear and cache the bitpack, if appropriate.
9187         (bp_pack_value): Remove redundant asserts.
9188
9189 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
9190
9191         PR middle-end/44306
9192         * tree-if-conv.c (is_true_predicate): New.
9193         (is_predicated): Use is_true_predicate.
9194         (add_to_predicate_list): Same.  Do not use unshare_expr.
9195         (add_to_dst_predicate_list): Same.
9196
9197 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
9198
9199         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
9200         field on edges.
9201         (predicate_bbs): Same.
9202         (clean_predicate_lists): Same.
9203         (find_phi_replacement_condition): Do not AND the predicate from
9204         edge->aux.
9205
9206 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
9207
9208         PR bootstrap/44315
9209         * Makefile.in (build/gencondmd.o): Add a missing `\'.
9210
9211 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9212
9213         PR target/44261
9214         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
9215         (negdf2): Adjust expander pattern and use negdf2_slow.
9216         (negsf2): Likewise.
9217
9218 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
9219
9220         * basic-block.h (struct control_flow_graph): Move last_label_uid field
9221         up.
9222         * df.h (struct df_base_ref): Move regno field up.
9223         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
9224         * expr.h (struct separate_ops): Move location field up.
9225         * optabs.h (struct optab_d): Move libcall_basename field down.
9226         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
9227         * config/i386/i386.h (struct machine_function): Convert call_abi field
9228         into a bitfield.  Move cfa field to the end of the structure.
9229
9230 2010-05-29  Jan Hubicka  <jh@suse.cz>
9231
9232         * varpool.c (varpool_get_node): Fix lookup.
9233
9234 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9235
9236         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
9237         RTL specific prototypes with #ifdef RTX_CODE.
9238         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
9239         * config/spu/t-spu-elf: Fix dependencies.
9240
9241         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
9242
9243 2010-05-29  Mike Stump  <mikestump@comcast.net>
9244
9245         PR bootstrap/44315
9246         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
9247         TM_H when building to avoid dependency loops.
9248
9249 2010-05-29  Jan Hubicka  <jh@suse.cz>
9250
9251         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
9252         refs and body; not the whole node for masters of materialized clones.
9253
9254 2010-05-29  Mike Stump  <mikestump@comcast.net>
9255
9256         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
9257
9258 2010-05-29  Jan Hubicka  <jh@suse.cz>
9259
9260         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
9261         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
9262         use of clone_function_name.
9263         * cgraph.h (cgraph_create_virtual_clone,
9264         cgraph_function_versioning): update prototypes.
9265         (clone_function_name): Declare.
9266         * ipa-cp.c (ipcp_insert_stage): Update call of
9267         cgraph_create_virtual_clone.
9268         * omp-low.c (create_omp_child_function_name): Use
9269         cgraph_create_virtual_clone.
9270         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
9271         (cgraph_function_versioning): Take SUFFIX argument; produce new name
9272         and make decl local.
9273
9274 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9275
9276         * vec.h: Include statistics.h
9277         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
9278         with VEC_H.
9279
9280 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9281
9282         * c-lex.c: Do not include c-tree.h.
9283         * c-pretty-print.c: Likewise.
9284         * c-opts.c: Likewise.
9285         * c-gimplify.c: Likewise.
9286         * c-common.c: Likewise.
9287         * c-dump.c: Likewise.  Include c-common.h.
9288
9289 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9290
9291         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
9292         before including diagnostic-core.h.
9293         (c_cpp_error): New prototype moved from c-tree.h.
9294         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
9295         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
9296         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
9297         (c_cpp_error): Prototype moved to c-common.h.
9298         * Makefile.in: Update dependency for C_COMMON_H.
9299
9300 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
9301
9302         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
9303         * c-common.c (c_register_addr_space): Remove here.
9304         * c-decl.c (c_register_addr_space): Re-add here.
9305
9306 2010-05-28  Mike Stump  <mikestump@comcast.net>
9307
9308         * config/darwin-c.c: Remove c-tree.h include.
9309
9310 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9311
9312         * gcc.c: Include diagnostic.h.
9313         (error_count): Remove.  All users changed to use errorcount.
9314         (programname): Remove.  All users changed to use progname.
9315         (fancy_abort, internal_error, fatal_error, error, warning, inform,
9316         fnotice): Remove.
9317         (execute): Don't include "Internal error" and bug reporting
9318         information in argument of internal_error call.
9319         (process_command): Don't increment error_count after calling
9320         perror_with_name.
9321         (input_filename): Rename to gcc_input_filename.  All users
9322         changed.
9323         (main): Call diagnostic_initialize.  Register delete_temp_files
9324         with atexit.  Use seen_error to test for errors.
9325         * gcc.h: Include diagnostic-core.h.
9326         (fatal_error, error, warning): Remove.
9327         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
9328         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
9329         (gcc.o): Update dependencies.
9330
9331 2010-05-28  Jeff Law  <law@redhat.com>
9332
9333         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
9334         functions.
9335         * ira.h (ira_bad_reload_regno): Declare
9336         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
9337
9338         * ira-color.c (update_curr_costs): Free updated hard reg costs.
9339         (ira_reassign_conflict_allocnos): Remove bogus asserts.
9340         (allocno_reload_assign): Likewise.
9341
9342 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
9343
9344         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
9345         build1_stat.
9346
9347 2010-05-28  Richard Guenther  <rguenther@suse.de>
9348
9349         PR lto/44312
9350         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
9351         Stream fixed-point constants mode.
9352         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
9353         and TYPE_PRECISION.
9354         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
9355         Stream fixed-point constants mode.
9356         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
9357         and TYPE_PRECISION.
9358
9359 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
9360
9361         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
9362         only place it was called from.
9363         (number_of_latch_executions): Do not return chrec_dont_know when the
9364         may_be_zero is a runtime condition: instead, return a COND_EXPR
9365         including the may_be_zero condition.
9366         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
9367         of nb_iterations.
9368         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
9369         COND_EXPRs.
9370
9371 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
9372
9373         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
9374         generate COND_EXPRs for degenerate_phi_result.
9375
9376 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
9377
9378         PR middle-end/44293
9379         * tree-if-conv.c (if_convertible_loop_p): Check the
9380         if-convertibility of phi nodes in non predicated BBs.
9381
9382 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9383
9384         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
9385
9386 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9387
9388         PR driver/15303
9389         * gcc.c (inform, warning, inform): New functions.
9390         (fatal_ice): Rename to internal_error; change cmsgid parameter to
9391         gmsgid.  All callers changed.
9392         (notice): Rename to fnotice; add parameter fp.  All callers changed.
9393         (fatal_error): Rename to fatal_signal.  All users changed.
9394         (fatal): Rename to fatal_error; change cmsgid parameter to
9395         gmsgid.  All callers changed.
9396         (process_command): Use warning instead of error for warnings.
9397         (end_going_arg): Don't use _() around argument of error.
9398         (do_spec_1): Use inform for message from %n specs.  Use warning
9399         instead of error for warnings.
9400         (main): Use inform for comparison messages.  Use warning for
9401         message about unused linker input.
9402         (error): Increment error_count.  Print "error: ".
9403         * gcc.h (fatal): Change to fatal_error.
9404         (warning): Declare.
9405         * config/darwin-driver.c (darwin_default_min_version): Use warning
9406         instead of fprintf for warnings.
9407         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
9408
9409 2010-05-28  Julian Brown  <julian@codesourcery.com>
9410
9411         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
9412         (*thumb2_addsi3_compare0_scratch): New.
9413         * config/arm/constraints.md (Pv): New.
9414         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
9415         for ARM mode only.
9416         (*addsi3_compare0_scratch): Likewise.
9417
9418 2010-05-28  Jan Hubicka  <jh@suse.cz>
9419
9420         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
9421         check.
9422         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
9423         only on local statics.
9424
9425 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
9426
9427         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
9428
9429 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
9430
9431         PR bootstrap/44314
9432         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
9433         (OPTION_GLIBC): Define.
9434
9435 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
9436
9437         PR debug/41048
9438         * dwarf2out.c (double_int_type_size_in_bits): New function.
9439         (round_up_to_align): Change first argument and return value to
9440         double_int.
9441         (field_byte_offset): Work internally on double_ints.
9442
9443         PR target/43636
9444         * builtins.c (expand_movstr): Use a temporary pseudo instead
9445         of target even when target is not NULL and not const0_rtx, but
9446         fails movstr predicate.
9447         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
9448
9449 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
9450
9451         * final.c (rest_of_clean_state): Use %m in errors instead of
9452         strerror (errno).
9453         * gengtype.c (read_input_list, close_output_files): Use xstrerror
9454         instead of strerror.
9455         * toplev.c (process_options): Use %m in errors instead of strerror
9456         (errno).
9457         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
9458         (errno).
9459
9460 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
9461
9462         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
9463         (ix86_canonical_va_list_type): Make static.  Add declaration.
9464         (ix86_enum_va_list): Make static.  Reindent.
9465         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
9466         (ix86_canonical_va_list_type): Ditto.
9467         (ix86_enum_va_list): Ditto.
9468
9469 2010-05-28  Richard Guenther  <rguenther@suse.de>
9470
9471         * lto-wrapper.c (run_gcc): With -save-temps generate a
9472         user-visible ltrans filename.  Fixup ltrans unit numbering.
9473
9474 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
9475
9476         * c-common.c (c_common_nodes_and_builtins): Replace use
9477         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
9478         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
9479         to ix86_enum_va_list.
9480         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
9481         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
9482         (TARGET_ENUM_VA_LIST_P): Add hook description.
9483         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
9484         * target.h (gcc_target): Add enum_va_list hook.
9485
9486         PR bootstrap/44299
9487         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
9488         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
9489         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
9490
9491 2010-05-28  Alan Modra  <amodra@gmail.com>
9492
9493         PR target/44266
9494         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9495         emit_library_call machinery to set up __tls_get_addr calls.
9496
9497 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9498
9499         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
9500
9501 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
9502
9503         Revert fix for PR c++/44188
9504         * c-common.c (is_typedef_decl): Revert the moving of  this
9505         definition ...
9506         * tree.c (is_typedef_decl): ... here.
9507         (typdef_variant_p): Revert the moving of this  definition
9508         here from gcc/cp/tree.c.
9509         * c-common.h (is_typedef_decl): Revert the moving of this
9510         declaration ...
9511         * tree.h (is_typedef_decl): ... here.
9512         (typedef_variant_p): Revert the moving of this  declaration here
9513         from gcc/cp/cp-tree.h
9514         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
9515         (gen_tagged_type_die): Revert the splitting out of ...
9516         (gen_type_die_with_usage): ... this function. Revert the anonymous
9517         tagged type handling.
9518         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
9519         typedefs naming anonymous tagged types.
9520
9521 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
9522
9523         * config/rs6000/rs6000-modes.def (PSImode): Delete.
9524
9525 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
9526
9527         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
9528         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
9529         throughout.
9530         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
9531         "xer" to "ca".
9532         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
9533         XER_REGS to CA_REGS throughout.
9534         * config/rs6000/rs6000.h: Same.
9535         (ADDITIONAL_REGISTER_NAMES): Add "xer".
9536         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
9537         that mode_iterator "P" is the size for arithmetic carries as well.
9538         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
9539
9540 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
9541
9542         PR bootstrap/44255
9543         * combine.c (struct rtx_subst_pair): Define unconditionally.
9544         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
9545         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
9546         Call make_compound_operation on pair->to.
9547         (propagate_for_debug): Don't call make_compound_operation here.
9548         Always use simplify_replace_fn_rtx.
9549
9550 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
9551
9552         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
9553         * config/xtensa/xtensa.c (override_options): Check
9554           TARGET_FORCE_NO_PIC and set flag_pic.
9555         * config/xtensa/xtensa.opt: Document -mforce-no-pic
9556
9557 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
9558
9559         PR bootstrap/44299
9560         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
9561         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
9562
9563 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
9564
9565         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
9566         toplev.h.
9567         * diagnostic.c: Don't include toplev.h.
9568         (progname): Define.  Moved from toplev.c.
9569         (seen_error): New function.
9570         * diagnostic.h: Include diagnostic-core.h.
9571         (diagnostic_t, emit_diagnostic): Don't declare here.
9572         * toplev.c (progname): Move to toplev.c.
9573         (emit_debug_global_declarations, compile_file, finalize,
9574         do_compile, toplev_main): Use seen_error.
9575         * toplev.h: Include diagnostic-core.h.
9576         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
9577         internal_error, warning, warning_at, error, error_n, error_at,
9578         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
9579         verbatim, fnotice, progname): Move to diagnostic-core.h.
9580         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
9581         (expand_builtin_expect): Use seen_error.
9582         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
9583         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
9584         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
9585         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
9586         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
9587         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
9588         errorcount for errors.
9589         * c-opts.c (c_common_finish): Use seen_error.
9590         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
9591         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
9592         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
9593         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
9594         (get_coverage_counts): Use seen_error.
9595         * dwarf2out.c (dwarf2out_finish): Use seen_error.
9596         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
9597         gimplify_body): Use seen_error.
9598         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
9599         * ipa-pure-const.c (gate_pure_const): Use seen_error.
9600         * ipa-reference.c (gate_reference): Use seen_error.
9601         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
9602         * lambda-code.c: Include diagnostic-core.h instead of
9603         diagnostic.h.
9604         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
9605         * lto-compress.c: Include diagnostic-core.h instead of
9606         diagnostic.h.
9607         * lto-section-in.c: Include diagnostic-core.h instead of
9608         diagnostic.h.
9609         * lto-streamer-out.c: Include diagnostic-core.h instead of
9610         diagnostic.h.
9611         * lto-streamer.c: Include diagnostic-core.h instead of
9612         diagnostic.h.
9613         (gate_lto_out): Use seen_error.
9614         * matrix-reorg.c: Include diagnostic-core.h instead of
9615         diagnostic.h.
9616         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
9617         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
9618         (gate_expand_omp, lower_omp_1): Use seen_error.
9619         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
9620         (rest_of_decl_compilation, rest_of_type_compilation,
9621         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
9622         * tree-cfg.c (label_to_block_fn): Use seen_error.
9623         * tree-inline.c (optimize_inline_calls): Use seen_error.
9624         * tree-mudflap.c (mudflap_finish_file): Use
9625         seen_error.
9626         * tree-optimize.c (gate_all_optimizations,
9627         gate_all_early_local_passes, gate_all_early_optimizations): Use
9628         seen_error.
9629         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
9630         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
9631         (varpool_remove_unreferenced_decls,
9632         varpool_assemble_pending_decls): Use seen_error.
9633         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
9634         (TOPLEV_H, DIAGNOSTIC_H): Update.
9635         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
9636         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
9637         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
9638         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
9639         coverage.o, lambda-code.o): Update dependencies.
9640
9641 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
9642
9643         PR c++/44188
9644         * c-common.c (is_typedef_decl): Move this definition ...
9645         * tree.c (is_typedef_decl): ... here.
9646         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
9647         * c-common.h (is_typedef_decl): Move this declaration ...
9648         * tree.h (is_typedef_decl): ... here.
9649         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
9650         * dwarf2out.c (is_naming_typedef_decl): New function.
9651         (gen_tagged_type_die): Split out of ...
9652         (gen_type_die_with_usage): ... this function. When an anonymous
9653         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
9654         is emitted for the typedef.
9655         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
9656         anonymous tagged types.
9657
9658 2010-05-27  Jason Merrill  <jason@redhat.com>
9659
9660         * print-tree.c (debug_vec_tree): New fn.
9661         (print_vec_tree): New fn.
9662         * tree.h: Declare them.
9663         * gdbinit.in (pvt): New command.
9664
9665         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
9666
9667         * gdbinit.in (pdd): New command.
9668
9669 2010-05-27  Jan Hubicka  <jh@suse.cz>
9670
9671         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
9672         (update_caller_keys): Return early if there are no callers;
9673         only update fibheap when decresing the key.
9674         (update_callee_keys): Avoid recursion.
9675         (decide_inlining_of_small_functions): When badness does not match;
9676         re-insert into fibheap.
9677
9678 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
9679
9680         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
9681         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
9682         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
9683         (ALL_HOST_OBJS): Now a union of the above two.
9684         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
9685         all files in ALL_HOST_FRONTEND_OBJS.
9686         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
9687
9688         * c-common.c: Pretend to be a backend file by undefining
9689         IN_GCC_FRONTEND (still need rtl.h here).
9690
9691 2010-05-27  Jan Hubicka  <jh@suse.cz>
9692
9693         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
9694         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
9695
9696 2010-05-27  Jan Hubicka  <jh@suse.cz>
9697
9698         * sched-ebb.c: Rename struct deps to struct deps_desc.
9699         * ddg.c: Likewise.
9700         * sel-sched-ir.c: Likewise.
9701         * sched-deps.c: Likewise.
9702         * sched-int.h: Likewise.
9703         * sched-rgn.c: Likewise.
9704
9705 2010-05-27  Jon Beniston  <jon@beniston.com>
9706
9707         PR 43726
9708         * config/lm32/lm32.h: Remove definition of
9709         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
9710
9711 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
9712
9713         PR lto/44230
9714         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
9715
9716 2010-05-27  Richard Guenther  <rguenther@suse.de>
9717
9718         PR tree-optimization/44284
9719         * tree-vect-stmts.c (vectorizable_assignment): Handle
9720         sign-changing conversions as simple copy.
9721
9722 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9723
9724         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
9725         Bionic C library.
9726         (__gthread_active_p): Check for pthread_create if compiling against
9727         Bionic C library.
9728
9729 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9730
9731         Support compilation for Android platform.  Reimplement -mandroid.
9732
9733         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
9734         (*android*): Set ANDROID_DEFAULT.
9735         (arm*-*-linux*): Include linux-android.h.
9736         (arm*-*-eabi*): Don't include previous -mandroid implementation.
9737         * config/arm/eabi.h: Remove, move Android-specific parts ...
9738         * config/linux-android.h: ... here.  New file.
9739         * config/arm/eabi.opt: Rename to ...
9740         * config/linux-android.opt: ... this.
9741         (mandroid): Allow -mno-android option.  Initialize based on
9742         ANDROID_DEFAULT.
9743         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
9744         Move logic to corresponding LINUX_TARGET_* macros.
9745         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
9746         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
9747         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
9748         Android definitions.
9749         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
9750         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
9751         Document.
9752
9753 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9754
9755         Add support for Bionic C library
9756
9757         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
9758         macro.
9759         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
9760         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
9761
9762         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
9763         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
9764         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
9765         to support multiple C libraries.  Handle Bionic.
9766         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
9767         (BIONIC_DYNAMIC_LINKER64): Define.
9768         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
9769         Update.
9770         (TARGET_HAS_SINCOS): Enable for Bionic.
9771
9772         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
9773         the last option specified on command line take effect.
9774         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
9775         (mbionic): New.
9776         (mglibc, muclibc): Update.
9777
9778         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
9779         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
9780         DEFAULT_LIBC.
9781
9782         * doc/invoke.texi (-mglibc, -muclibc): Update.
9783         (-mbionic): Document.
9784
9785 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9786
9787         * c-common.h (c_register_addr_space): Add prototype.
9788         (ADDR_SPACE_KEYWORD): Remove.
9789         * c-common.c (c_register_addr_space): New function.
9790         (c_addr_space_name): Reimplement.
9791         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
9792
9793         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
9794         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
9795
9796         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
9797         Remove TARGET_ADDR_SPACE_KEYWORDS.
9798
9799 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
9800
9801         * input.c: New file.
9802         * input.h (main_input_filename): Move declaration to toplev.h.
9803         * toplev.c (input_location, line_table): Move to input.c
9804         * toplev.h (main_input_filename): Move declaration from input.h.
9805         * tree.c (expand_location): Move to input.c.
9806         * Makefile.in (OBJS-common): Add input.o.
9807         (input.o): Add dependencies.
9808
9809 2010-05-27  Richard Guenther  <rguenther@suse.de>
9810
9811         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
9812         for non-existant files.
9813         (fork_execute): Mark args_name file as deleted.
9814
9815 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
9816
9817         PR bootstrp/44287
9818         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
9819         (narrow_signed_type): Likewise.
9820
9821 2010-05-26  Jan Hubicka  <jh@suse.cz>
9822
9823         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
9824         edge only when checking is enabled; check using former_clone_of;
9825         check inline clones too.
9826         (cgraph_materialize_clone): Record former_clone_of pointer.
9827         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
9828         combining redirections; dump args_to_skip bitmap
9829         (cgraph_materialize_all_clones): Do no redirection here.
9830         * ipa-inline.c (inline_transform): Do redirection here.
9831         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
9832         cheking only).
9833
9834 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9835
9836         * config/avr/avr-c.c: Do not include regs.h.
9837         Include cpplib.h for cpp_define and tree.h for c-common.h.
9838         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
9839         * config/avr/t-avr: Fix dependencies for avr-c.o.
9840
9841 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9842
9843         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
9844         string instead of SYMBOL_REF rtx.
9845         * rtl.h (set_stack_check_libfunc): Move prototype from here...
9846         * libfuncs.h: ...to here.  Adjust for explow.c change.
9847
9848 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
9849
9850         * pretty-print.c: Don't include ggc.h.
9851         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
9852         (identifier_to_locale): Use them for allocation.
9853         * pretty-print.h (identifier_to_locale_alloc,
9854         identifier_to_locale_free): Declare.
9855         * toplev.c (alloc_for_identifier_to_locale): New.
9856         (general_init): Set identifier_to_locale_alloc and
9857         identifier_to_locale_free.
9858         * Makefile.in (pretty-print.o): Update dependencies.
9859
9860 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
9861
9862         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
9863         pointer types if they have different alignment or mode.
9864
9865 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
9866
9867         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9868         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9869         * config/sparc/sparc-protos.h (function_value): Remove declaration.
9870         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
9871         sparc_function_value_regno_p): New functions.
9872         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9873         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9874         (function_value): Rename to...
9875         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
9876         argument to 'outgoing'.
9877         (function_arg_record_value, function_arg_union_value,
9878         function_arg_vector_value): Update comment.
9879
9880 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
9881
9882         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
9883         (fde_needed_for_eh_p): New predicate.
9884         (output_call_frame_info): Use it throughout to decide whether FDEs
9885         are needed for EH purpose.
9886         (dwarf2out_begin_prologue): Reorder assignments.
9887
9888 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9889
9890         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
9891         special case loop->header.
9892         (is_predicated): New.
9893         (if_convertible_loop_p): Call it.
9894
9895 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9896
9897         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
9898         iterator in parameter.  Do not generate code during the analysis.
9899         (tree_if_convert_cond_stmt): Removed.
9900         (tree_if_convert_stmt): Removed.
9901         (predicate_bbs): New.
9902         (if_convertible_loop_p): Call predicate_bbs.
9903         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
9904         now contains all the analysis part.
9905
9906 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9907
9908         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
9909         statements in the analysis part.
9910         (tree_if_convert_stmt): Update comment.
9911         (remove_conditions_and_labels): New.
9912         (combine_blocks): Call remove_conditions_and_labels.
9913         (tree_if_conversion): Update comment.
9914
9915 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9916
9917         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
9918         than 2 predecessors or more than 2 successors.
9919
9920 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9921
9922         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
9923         of loops in which the data dependence analysis fails.
9924
9925 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9926
9927         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
9928         CDI_POST_DOMINATORS.
9929         (tree_if_conversion): Same.
9930
9931 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9932
9933         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
9934
9935 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
9936
9937         * tree-if-conv.c: Update copyright years.  Fix comments.
9938         Fix indentation.
9939
9940 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
9941
9942         * builtin-types.def (BT_INT128): New primitive type.
9943         (BT_UINT128): Likewise.
9944         * c-common.c (c_common_r): Add __int128 keyword.
9945         (c_common_type_for_size): Handle __int128.
9946         (c_common_type_for_mode): Likewise.
9947         (c_common_signed_or_unsigned_type): Likewise.
9948         (c_common_nodes_and_builtins): Add builtin type
9949         if target supports 128-bit integer scalar.
9950         * c-common.h (enum rid): Add RID_INT128.
9951         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
9952         if target supports 128-bit integer scalar.
9953         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
9954         (finish_declspecs): Likewise.
9955         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
9956         (c_token_starts_declspecs): Likewise.
9957         (c_parser_declspecs): Likewise.
9958         (c_parser_attributes): Likewise.
9959         (c_parser_objc_selector): Likewise.
9960         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
9961         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
9962         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
9963         * tree.c (make_or_reuse_type): Likewise.
9964         (make_unsigned_type): Likewise.
9965         (build_common_tree_nodes_2): Likewise.
9966         * tree.h (enum integer_type_kind): Add itk_int128 and
9967         itk_unsigned_int128.
9968         (int128_integer_type_node): New define.
9969         (int128_unsigned_type_node): New define.
9970         * doc/extend.texi: Add documentation about __int128 type.
9971
9972 2010-05-26  Richard Guenther  <rguenther@suse.de>
9973
9974         * tree-ssa-sccvn.c (copy_nary): Adjust.
9975         (copy_phis): Rename to ...
9976         (copy_phi): ... this.  Adjust.
9977         (copy_references): Rename to ...
9978         (copy_reference): ... this.  Adjust.
9979         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
9980         result into the valid table.
9981
9982 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9983
9984         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
9985         insn-config.h, insn-codes.h, recog.h, and optabs.h.
9986
9987 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9988
9989         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
9990
9991 2010-05-26  Richard Guenther  <rguenther@suse.de>
9992
9993         * opts.c (common_handle_option): Handle OPT_Ofast.
9994
9995 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
9996
9997         * diagnostic.c: Don't include opts.h.
9998         (permissive_error_option): Define.
9999         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
10000         for classify_diagnostic.  Don't use memset for
10001         classify_diagnostic.  Initialize new and recently added fields.
10002         (diagnostic_classify_diagnostic): Use context->n_opts instead of
10003         N_OPTS.
10004         (diagnostic_report_diagnostic): Pass context parameter to
10005         diagnostic_report_warnings_p.  Use option_enabled and option_name
10006         hooks from context.
10007         (emit_diagnostic): Use permissive_error_option.
10008         (permerror): Likewise.
10009         * diagnostic.h: Don't include options.h.
10010         (struct diagnostic_context): Add n_opts, opt_permissive,
10011         inhibit_warnings, warn_system_headers, option_enabled and
10012         option_name fields.  Change classify_diagnostic to a pointer.
10013         * opts-diagnostic.h: New file.
10014         * opts.c: Include opts-diagnostic.h.
10015         (common_handle_option): Set global_dc fields for -Wfatal-errors,
10016         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
10017         (option_name): New function.
10018         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
10019         (c_common_handle_option): Set global_dc->permissive for
10020         -fpermissive.
10021         * c-common.c (c_cpp_error): Save and restore
10022         global_dc->warn_system_headers, not variable warn_system_headers.
10023         * toplev.c: Include opts-diagnostic.h.
10024         (general_init): Update call to diagnostic_initialize.  Set
10025         global_dc->show_column, global_dc->option_enabled and
10026         global_dc->option_name.
10027         (process_options): Don't set global_dc fields here.
10028         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
10029         (diagnostic.o, opts.o, toplev.o): Update dependencies.
10030
10031 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10032
10033         * config/picochip/picochip.md (movsi): Split a movsi from a
10034         const after reload.
10035
10036 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10037
10038         * ggc-zone.c: Update copyright year.
10039         (poison_region): Mark memory for Valgrind as undefined before
10040         memset () call and inaccessible afterwards.
10041         (ggc_pch_total_size): Change type of i to int.
10042
10043 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10044
10045         * ggc-common.c (ggc_free_overhead): Allow empty slot.
10046
10047 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10048
10049         * ggc-common.c: Update copyright year.
10050         (ggc_rlimit_bound): Remove prototype.  Compile only if
10051         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
10052         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
10053         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
10054         (ggc_min_heapsize_heuristic): Likewise.
10055
10056 2010-05-26  Richard Guenther  <rguenther@suse.de>
10057
10058         PR rtl-optimization/44164
10059         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
10060         no-common access-path disambiguation.
10061         (indirect_ref_may_alias_decl_p): Adjust.
10062         (indirect_refs_may_alias_p): Likewise.
10063         (refs_may_alias_p_1): Likewise.
10064
10065 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10066
10067         * c-typeck.c: Do not include expr.h.
10068
10069 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
10070
10071         * rtl.h (decl_default_tls_model): Move prototype from here...
10072         * output.h: ...to here.
10073         * c-decl.c: Do not include rtl.h.
10074         * c-pragma.c: Likewise.
10075         * c-parser.c: Likewise.
10076         * c-gimplify.c: Likewise.  And also not hard-reg-set.
10077         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
10078         FIXME note for it.  Add a FIXME note for expr.h.
10079         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
10080         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
10081         defined.
10082
10083 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
10084
10085         PR target/44199
10086         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
10087         or total_size is larger than red zone size for non-V4 ABI, emit a
10088         stack_tie resp. frame_tie insn before stack pointer restore.
10089         * config/rs6000/rs6000.md (frame_tie): New insn.
10090
10091 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
10092
10093         * function.h (struct function): Add can_throw_non_call_exceptions bit.
10094         * lto-streamer-in.c (input_function): Stream it in.
10095         * lto-streamer-out.c (output_function): Stream it out.
10096         * function.c (allocate_struct_function): Set it.
10097         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
10098         for flag_non_call_exceptions.
10099         * cfgbuild.c (control_flow_insn_p): Likewise.
10100         (make_edges): Likewise.
10101         * cfgexpand.c (expand_stack_alignment): Likewise.
10102         * combine.c (distribute_notes): Likewise.
10103         * cse.c (cse_extended_basic_block): Likewise.
10104         * except.c (insn_could_throw_p): Likewise.
10105         * gcse.c (simple_mem): Likewise.
10106         * ipa-pure-const.c (check_call): Likewise.
10107         (check_stmt ): Likewise.
10108         * lower-subreg.c (lower-subreg.c): Likewise.
10109         * optabs.c (emit_libcall_block): Likewise.
10110         (prepare_cmp_insn): Likewise.
10111         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
10112         * postreload.c (rest_of_handle_postreload): Likewise.
10113         * reload1.c (reload_as_needed): Likewise.
10114         (emit_input_reload_insns): Likewise.
10115         (emit_output_reload_insns): Likewise.
10116         (fixup_abnormal_edges): Likewise.
10117         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
10118         * store-motion.c (find_moveable_store): Likewise.
10119         * tree-eh.c (stmt_could_throw_p): Likewise.
10120         (tree_could_throw_p): Likewise.
10121         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10122         * config/arm/arm.c (arm_expand_prologue): Likewise.
10123         (thumb1_expand_prologue): Likewise.
10124         * config/rx/rx.md (cbranchsf4): Likewise.
10125         (cmpsf): Likewise.
10126         * config/s390/s390.c (s390_emit_prologue): Likewise.
10127         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
10128         (inline_forbidden_into_p): New predicate.
10129         (expand_call_inline): Use it to forbid inlining.
10130         (tree_can_inline_p): Likewise.
10131
10132 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10133
10134         * config/i386/i386-c.c: Do not include rtl.h.
10135         * config/i386/t-i386: Update dependencies.
10136
10137 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10138
10139         * attribs.c: Do not include rtl.h.
10140         * Makefile.in: Update dependencies.
10141
10142 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
10143
10144         * double-int.h (double_int_and): New.
10145         * combine.c (try_combine): Clean up, use double_int_* and
10146         immed_double_int_const functions.
10147
10148 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10149
10150         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
10151         stderr to /dev/null instead of grep -q.
10152         * configure: Regenerate.
10153
10154 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
10155
10156         * Makefile.in (EXCEPT_H): Fix typo.
10157
10158 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
10159
10160         * ira-build.c (update_conflict_hard_reg_costs): New.
10161         (ira_build): Call update_conflict_hard_reg_costs.
10162
10163 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
10164
10165         PR debug/41371
10166         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
10167         ENABLE_CHECKING.
10168         (intersect_loc_chains): Walk the s2var's loc_chain together
10169         with s1node chain as long as the locations are equal, don't
10170         call find_loc_in_1pdv in that case.
10171
10172         PR debug/42801
10173         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
10174         (copy_bind_expr): ... instead of here.
10175         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
10176         if the block hasn't been remapped.
10177         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
10178         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
10179
10180 2010-05-25  Richard Guenther  <rguenther@suse.de>
10181
10182         PR middle-end/44069
10183         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
10184         out-of-bounds array accesses.
10185
10186 2010-05-25  Richard Guenther  <rguenther@suse.de>
10187
10188         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
10189         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
10190         (run_gcc): Re-organize to make cleanup easier.
10191
10192 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10193
10194         * config/s390/s390.c (optimization_options): Fix and move the
10195         flag_prefetch_loop_arrays override ...
10196         (override_options): ... here.
10197
10198 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
10199
10200         * diagnostic.c: Don't include plugin.h.
10201         (diagnostic_report_diagnostic): Don't handle plugins specially
10202         here.  Pass context to internal_error callback.
10203         * diagnostic.h (struct diagnostic_context): Add context parameter
10204         to internal_error callback.
10205         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
10206         * plugin.h (struct diagnostic_context): Declare.
10207         (warn_if_plugins, plugins_internal_error_function): Declare.
10208         * toplev.c (general_init): Set global_dc->internal_error.
10209         * Makefile.in (diagnostic.o): Update dependencies.
10210
10211 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
10212
10213         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
10214         * config/rs6000/t-darwin64: New.
10215         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
10216         build crt2.
10217
10218 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
10219
10220         PR 44203
10221         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
10222         match the original (and intended) behaviour before r159557.  This
10223         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
10224         in two ways.
10225
10226 2010-05-25  Richard Guenther  <rguenther@suse.de>
10227
10228         * doc/invoke.texi: Document -Ofast.
10229         * target.h (struct gcc_target): Add handle_ofast.
10230         * target-def.h (TARGET_HANDLE_OFAST): Add.
10231         (TARGET_INITIALIZER): Adjust.
10232         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
10233         * common.opt (Ofast): Add.
10234
10235 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
10236
10237         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
10238         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
10239
10240 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
10241
10242         PR target/43610
10243         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
10244         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
10245         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
10246         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
10247
10248 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
10249
10250         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
10251         DW_OP_minus with negated offset instead of DW_OP_plus.
10252         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
10253
10254 2010-05-25  Wei Guozhi  <carrot@google.com>
10255
10256         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
10257         tst instruction and a new alternative.
10258         * config/arm/constraints.md (Pu): New constraint.
10259
10260 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
10261
10262         * function.c (assign_stack_local_1): Initialize variable
10263         to avoid warning when bootstrapping at -O3.
10264
10265 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
10266
10267         * configure.ac (all_lang_makefiles): Remove everything related to it.
10268         * configure: Regenerate.
10269         * Makefile.in: Fix reference to ada Make-lang.in.
10270         Remove support for LANG_MAKEFILES.
10271
10272 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
10273             Sandra Loosemore  <sandra@codesourcery.com>
10274
10275         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
10276         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
10277         description.  Add arm_neon_fp16_ok.
10278         (Add Options): Add arm_neon and arm_neon_fp16.
10279
10280 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
10281
10282         * diagnostic.c: Don't include flags.h.
10283         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
10284         context parameters.  Check flags in the context passed as a parameter.
10285         (diagnostic_build_prefix): Add context parameter.  Check
10286         show_column flag in context.
10287         (diagnostic_action_after_output): Check fatal_errors flag in context.
10288         (diagnostic_report_current_module): Check show_column flag in context.
10289         (default_diagnostic_starter): Update call to
10290         diagnostic_build_prefix.
10291         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
10292         (emit_diagnostic): Pass context to permissive_error_kind.
10293         (permerror): Pass context to permissive_error_kind.
10294         * diagnostic.h (struct diagnostic_context): Add show_column,
10295         pedantic_errors, permissive and fatal_errors fields.
10296         (diagnostic_build_prefix): Update prototype.
10297         * langhooks.c
10298         * toplev.c (process_options): Set flags in global_dc from
10299         flag_show_column, flag_pedantic_errors, flag_permissive,
10300         flag_fatal_errors.
10301         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
10302         to diagnostic_build_prefix.
10303         * Makefile.in (diagnostic.o): Update dependencies.
10304
10305 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10306
10307         * config/i386/ia32intrin.h (__crc32q): Define only if
10308         __SSE4_2__ is defined.
10309
10310 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
10311
10312         PR target/44132
10313         PR middle-end/43602
10314         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
10315         DECL_VISIBILITY_SPECIFIED.
10316         (emutls_decl): Set DECL_PRESERVE_P and copy
10317         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
10318         (emutls_finalize_control_var): New callback.
10319         (emutls_finish): Finalize emutls control variables.
10320         * toplev.c (compile_file): Move the call to emutls_finish ()
10321         before varpool_assemble_pending_decls ().
10322
10323 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
10324
10325         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
10326         added to the preprocessor condition.
10327
10328 2010-05-24  Paul Brook  <paul@codesourcery.com>
10329
10330         * gengtype-lex.l: Add HARD_REG_SET.
10331         * expr.c (expand_expr_real_1): Record writes to hard registers.
10332         * function.c (rtl_data): Add asm_clobbers.
10333         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
10334         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
10335         Use crtl->asm_clobbers.
10336
10337 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10338
10339         * doc/makefile.texi (Makefile): Mention stages 'profile'
10340         and 'feedback' for profiledbootstrap.
10341
10342 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10343
10344         PR target/44245
10345         * config/i386/i386.c (def_builtin): Properly check
10346         OPTION_MASK_ISA_64BIT.
10347
10348 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
10349
10350         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
10351         typedefs with different but compatible types.  Allow duplicate
10352         typedefs with the same type except for pedantic non-C1X, but give
10353         warning for variably modified types.
10354         * c-typeck.c (tagged_types_tu_compatible_p,
10355         function_types_compatible_p, type_lists_compatible_p,
10356         comptypes_internal): Add parameter different_types_p; set
10357         *different_types_p for different but compatible types.  All
10358         callers changed.
10359         (comptypes_check_different_types): New.
10360         * c-tree.h (comptypes_check_different_types): Declare.
10361
10362 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
10363
10364         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
10365         * jump.c: Include basic-block.h.
10366         * profile.c: Likewise.
10367         * tree-profile.c: Likewise.
10368         * coverage.c: Likewise.
10369         * basic-block.h (optimize_function_for_size_p): Move to function.h.
10370         (optimize_function_for_speed_p): Likewise.
10371         * function.h (optimize_function_for_size_p,
10372         optimize_function_for_speed_p): Moved here from basic-block.h.
10373         * Makefile.in: Update dependencies.
10374
10375 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10376
10377         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
10378         before calling make; allow override through $MAKE.
10379         * doc/invoke.texi (Optimize Options): Document override.
10380
10381 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
10382
10383         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
10384         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10385         (rs6000_mode_dependent_address_ptr): Make static.
10386         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10387         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
10388         Remove.
10389
10390 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
10391
10392         PR target/43869
10393         * config/i386/i386.c: Make sure that the correct regparm is passed.
10394
10395 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
10396
10397         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
10398         * sbitmap.c: ...to here to internalize sbitmap element access.
10399         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
10400         Explain why basic-block.h is included.
10401         * function.h: Include tm.h for CUMULATIVE_ARGS.
10402         * Makefile.in: Update dependencies.
10403
10404 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
10405
10406         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
10407         New core types.
10408         * sbitmap.h (struct sbitmap_def): Do not typedef here.
10409         * sbitmap.c: Include sbitmap.h.
10410         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
10411         hard-reg-set.h.  Split everything related to regsets out from here...
10412         * regset.h: ...to here.  New file.
10413         * df.h: Include regset.h and sbitmap.h.
10414         * tree-flow.h: Likewise.
10415         * cfgloop.h: Likewise.
10416         * except.h: Do not include sbitmap.h.  Include hashtab.h.
10417         * cgraph.h: Include vec.h and function.h.
10418         * reload.h (struct insn_chain): Change types of live_throughout
10419         and dead_or_set from regset_head to bitmap_head.
10420         (compute_use_by_pseudos): Be defined also if regset.h is not included.
10421         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
10422         spilled_regs from regset_head to bitmap_head to avoid dependency
10423         in regset.h.
10424         * sel-sched-ir.h: Include regset.h.
10425         * reload.c: Include df.h before reload.h.
10426         * caller-save.c: Likewise.
10427         * reload1.c: Likewise.
10428         * ira.c: Likewise.
10429         (mark_elimination): Update type of r to bitmap, consistent with
10430         DF_LR_IN.
10431         * dominance.c: Include bitmap.h.
10432         * modulo-sched.c: Include df.h.
10433         * cfganal.c: Include bitmap.h and sbitmap.h.
10434         * cfgbuild.c: Include sbitmap.h.
10435         * lcm.c: Include sbitmap.h.
10436         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
10437         * domwalk.c: Include sbitmap.h, exclude ggc.h.
10438         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
10439         * cselib.c: Include bitmap.h.
10440         * tree-optimize.c: Include regset.h.
10441         * stmt.c: Include bitmap.h.
10442         * Makefile.in: Update dependencies.
10443
10444 2010-05-22  Jan Hubicka  <jh@suse.cz>
10445
10446         * cgraph.h (struct varpool_node): Add same_comdat_group.
10447         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
10448         pointer.
10449         (output_varpool): Update call of lto_output_varpool_node.
10450         (input_varpool): Read same_comdat_group pointer.
10451         (input_varpool_1): Fixup same_comdat_group pointer.
10452         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
10453         group is needed, all are.
10454         * varpool.c (varpool_remove_node): Remove node from same comdat group
10455         linklist too.
10456         (varpool_analyze_pending_decls): Walk same comdat groups.
10457
10458 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
10459
10460         * rtl.h (union rtunion_def): Remove rt_bit member.
10461         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
10462         * print-rtl (print_rtx): Do not print the member.
10463         * gengtype.c (adjust_field_rtx_def): Do not handle it.
10464         * gengenrtl.c (type_from_format): Likewise.
10465         (accessor_from_format): Likewise.
10466
10467 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
10468
10469         * dbgcnt.c: Include toplev.h instead of errors.h.
10470         * ira-emit.c: Don't include errors.h.
10471         * ira.c: Include toplev.h instead of errors.h.
10472         * lto-compress.c: Include toplev.h instead of errors.h.
10473         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
10474         ira.o, dbgcnt.o): Update dependencies.
10475
10476 2010-05-22  Richard Guenther  <rguenther@suse.de>
10477
10478         * gimple.c (gimple_types_compatible_p): Check type qualifications
10479         before merging pointer to complete and pointer to incomplete type.
10480         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
10481         we use our own resolution algorithm.  The gold linker plugin
10482         doesn't do the job we want it to do here.
10483
10484 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
10485
10486         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10487         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10488         (sparc_mode_dependent_address_p): New function.
10489
10490 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
10491
10492         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
10493
10494         * timevar.c: Do not include any core headers.
10495         (timevar_print): De-i18n-ize.
10496         (print_time): Likewise.
10497         * timevar.h (timevar_push, timevar_pop): Make inline functions.
10498
10499 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
10500
10501         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
10502         langhooks-def.h.
10503         (diagnostic_initialize): Initialize x_data not last_function.
10504         (diagnostic_report_current_function): Move to tree-diagnostic.c.
10505         (default_diagnostic_starter): Call
10506         diagnostic_report_current_module not
10507         diagnostic_report_current_function.
10508         (diagnostic_report_diagnostic): Initialize x_data not
10509         abstract_origin.
10510         (verbatim): Likewise.
10511         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
10512         x_data.
10513         (struct diagnostic_context): Change last_function to x_data.
10514         (diagnostic_auxiliary_data): Replace with
10515         diagnostic_context_auxiliary_data and
10516         diagnostic_info_auxiliary_data.
10517         (diagnostic_last_function_changed, diagnostic_set_last_function,
10518         diagnostic_report_current_function): Move to tree-diagnostic.h.
10519         (print_declaration, dump_generic_node, print_generic_stmt,
10520         print_generic_stmt_indented, print_generic_expr,
10521         print_generic_decl, debug_c_tree, dump_omp_clauses,
10522         print_call_name, debug_generic_expr, debug_generic_stmt,
10523         debug_tree_chain, default_tree_printer): Move to
10524         tree-pretty-print.h.
10525         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
10526         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
10527         gimple-pretty-print.h.
10528         * pretty-print.c: Don't include tree.h
10529         (pp_base_format): Don't handle %K here.
10530         (pp_base_tree_identifier): Move to tree-pretty-print.c.
10531         * pretty-print.h (text_info): Change abstract_origin to x_data.
10532         (pp_tree_identifier, pp_unsupported_tree,
10533         pp_base_tree_identifier): Move to tree-pretty-print.h.
10534         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
10535         tree-pretty-print.h: New files.
10536         * tree-pretty-print.c: Include tree-pretty-print.h.
10537         (percent_K_format): New.  Moved from pretty-print.c.
10538         (pp_base_tree_identifier): Move from pretty-print.c.
10539         * c-objc-common.c: Include tree-pretty-print.h.
10540         (c_tree_printer): Handle %K here.
10541         * langhooks.c: Include tree-diagnostic.h.
10542         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
10543         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
10544         (default_tree_printer): Handle %K using percent_K_format.
10545         (general_init): Use default_tree_diagnostic_starter.
10546         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
10547         (free_lang_data): Use default_tree_diagnostic_starter.
10548         * c-pretty-print.c: Include tree-pretty-print.h.
10549         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10550         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10551         * dwarf2out.c: Include tree-pretty-print.h.
10552         * except.c: Include tree-pretty-print.h.
10553         * gimple-pretty-print.c: Include tree-pretty-print.h and
10554         gimple-pretty-print.h.
10555         * gimplify.c: Include tree-pretty-print.h.
10556         * graphite-poly.c: Include tree-pretty-print.h and
10557         gimple-pretty-print.h.
10558         * ipa-cp.c: Include tree-pretty-print.h.
10559         * ipa-inline.c: Include gimple-pretty-print.h.
10560         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10561         * ipa-pure-const.c: Include gimple-pretty-print.h.
10562         * ipa-struct-reorg.c: Include tree-pretty-print.h and
10563         gimple-pretty-print.h.
10564         * ipa-type-escape.c: Include tree-pretty-print.h.
10565         * print-rtl.c: Include tree-pretty-print.h.
10566         * print-tree.c: Include gimple-pretty-print.h.
10567         * sese.c: Include tree-pretty-print.h.
10568         * tree-affine.c: Include tree-pretty-print.h.
10569         * tree-browser.c: Include tree-pretty-print.h.
10570         * tree-call-cdce.c: Include gimple-pretty-print.h.
10571         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10572         * tree-chrec.c: Include tree-pretty-print.h.
10573         * tree-data-ref.c: Include tree-pretty-print.h and
10574         gimple-pretty-print.h.
10575         * tree-dfa.c: Include tree-pretty-print.h.
10576         * tree-if-conv.c: Include tree-pretty-print.h and
10577         gimple-pretty-print.h.
10578         * tree-inline.c: Include tree-pretty-print.h.
10579         * tree-into-ssa.c: Include tree-pretty-print.h and
10580         gimple-pretty-print.h.
10581         * tree-nrv.c: Include tree-pretty-print.h.
10582         * tree-object-size.c: Include tree-pretty-print.h and
10583         gimple-pretty-print.h.
10584         * tree-outof-ssa.c: Include tree-pretty-print.h and
10585         gimple-pretty-print.h.
10586         * tree-parloops.c: Include tree-pretty-print.h and
10587         gimple-pretty-print.h.
10588         * tree-predcom.c: Include tree-pretty-print.h and
10589         gimple-pretty-print.h.
10590         * tree-scalar-evolution.c: Include tree-pretty-print.h and
10591         gimple-pretty-print.h.
10592         * tree-sra.c: Include tree-pretty-print.h.
10593         * tree-ssa-address.c: Include tree-pretty-print.h.
10594         * tree-ssa-alias.c: Include tree-pretty-print.h.
10595         * tree-ssa-ccp.c: Include tree-pretty-print.h and
10596         gimple-pretty-print.h.
10597         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
10598         * tree-ssa-copy.c: Include tree-pretty-print.h and
10599         gimple-pretty-print.h.
10600         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
10601         * tree-ssa-dce.c: Include tree-pretty-print.h and
10602         gimple-pretty-print.h.
10603         * tree-ssa-dom.c: Include tree-pretty-print.h and
10604         gimple-pretty-print.h.
10605         * tree-ssa-dse.c: Include gimple-pretty-print.h.
10606         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
10607         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
10608         * tree-ssa-live.c: Include tree-pretty-print.h and
10609         gimple-pretty-print.h.
10610         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
10611         gimple-pretty-print.h.
10612         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
10613         gimple-pretty-print.h.
10614         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
10615         gimple-pretty-print.h.
10616         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
10617         gimple-pretty-print.h.
10618         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
10619         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
10620         * tree-ssa-operands.c: Include tree-pretty-print.h and
10621         gimple-pretty-print.h.
10622         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
10623         gimple-pretty-print.h.
10624         * tree-ssa-pre.c: Include tree-pretty-print.h and
10625         gimple-pretty-print.h.
10626         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
10627         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
10628         gimple-pretty-print.h.
10629         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
10630         gimple-pretty-print.h.
10631         * tree-ssa-sink.c: Include gimple-pretty-print.h.
10632         * tree-ssa-ter.c: Include tree-pretty-print.h and
10633         gimple-pretty-print.h.
10634         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
10635         * tree-ssa.c: Include tree-pretty-print.h and
10636         gimple-pretty-print.h.
10637         * tree-stdarg.c: Include gimple-pretty-print.h.
10638         * tree-switch-conversion.c: Include gimple-pretty-print.h.
10639         * tree-tailcall.c: Include tree-pretty-print.h and
10640         gimple-pretty-print.h.
10641         * tree-vect-data-refs.c: Include tree-pretty-print.h and
10642         gimple-pretty-print.h.
10643         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
10644         gimple-pretty-print.h.
10645         * tree-vect-loop.c: Include tree-pretty-print.h and
10646         gimple-pretty-print.h.
10647         * tree-vect-patterns.c: Include gimple-pretty-print.h.
10648         * tree-vect-slp.c: Include tree-pretty-print.h and
10649         gimple-pretty-print.h.
10650         * tree-vect-stmts.c: Include tree-pretty-print.h and
10651         gimple-pretty-print.h.
10652         * tree-vectorizer.c: Include tree-pretty-print.h.
10653         * tree-vrp.c: Include tree-pretty-print.h and
10654         gimple-pretty-print.h.
10655         * value-prof.c: Include tree-pretty-print.h and
10656         gimple-pretty-print.h.
10657         * var-tracking.c: Include tree-pretty-print.h.
10658         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
10659         (tree-diagnostic.o): New dependencies.
10660         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
10661         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
10662         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
10663         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
10664         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
10665         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
10666         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
10667         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
10668         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
10669         tree-ssa-address.o, tree-ssa-loop-niter.o,
10670         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
10671         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
10672         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
10673         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
10674         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
10675         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
10676         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
10677         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
10678         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
10679         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
10680         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
10681         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
10682         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
10683         tree-switch-conversion.o, var-tracking.o, value-prof.o,
10684         cfgexpand.o, pretty-print.o): Update dependencies.
10685
10686 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
10687
10688         * tree-ssa-structalias.c: Remove tm_p.h from include.
10689
10690 2010-05-21  Jeff Law  <law@redhat.com>
10691
10692         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
10693
10694 2010-05-21  Jason Merrill  <jason@redhat.com>
10695
10696         * tree-eh.c (cleanup_is_dead_in): New.
10697         (lower_try_finally): Don't generate a dead cleanup region.
10698         (lower_cleanup): Likewise.
10699
10700 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
10701
10702         PR debug/44223
10703         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
10704         unchain each use from the cyclic next_regno_use chain first.
10705
10706 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
10707
10708         * real: Do not include gmp.h, mpfr.h, and mpc.h.
10709         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
10710         (real_value_negate, real_value_abs): New prototypes.
10711         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
10712         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
10713         new include file for interface between MPFR and REAL_VALUE_TYPE.
10714         * real.c: Include realmpfr.h.
10715         (real_arithmetic2): Remove legacy function.
10716         (real_value_negate): New.
10717         (real_value_abs): New.
10718         (mfpr_from_real, real_from_mpfr): Move from here...
10719         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
10720         * builtins.c: Include realmpfr.h.
10721         * fold-const.c: Include realmpfr.h.
10722         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
10723         (fold_negate_const): Likewise.
10724         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
10725         * toplev.c: Include realmpfr.h.
10726         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
10727         and real_value_negate.
10728         * fixed-value.c (check_real_for_fixed_mode): Likewise.
10729         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
10730         (vfp3_const_double_index): Likewise.
10731         (arm_print_operand): Likewise.
10732         * Makefile.in: Update dependencies.
10733
10734 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10735
10736         * config/s390/s390.c (override_options): Increase the default
10737         of max-completely-peel-times.
10738
10739 2010-05-21  Julian Brown  <julian@codesourcery.com>
10740             Mark Mitchell  <mark@codesourcery.com>
10741
10742         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
10743         sibling calls for Thumb-1.
10744         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
10745         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
10746         Thumb-2.
10747         (*call_insn, *call_value_insn): Don't use for Thumb-2.
10748         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
10749         for Thumb-2.
10750         (return): New expander.
10751         (*arm_return): New name for ARM return insn.
10752         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
10753
10754 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
10755
10756         * config.gcc (sparc64-*-rtems*): New target.
10757
10758 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
10759
10760         * tree.c (build_function_decl_skip_args): Fix grammar.
10761         (build_function_type_list_1): Fix typos, adjust formatting.
10762
10763 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
10764
10765         * tree.h: Include real.h and fixed-value.h as basic datatypes.
10766         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
10767         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
10768         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
10769         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
10770         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
10771         tree-pretty-print.c, tree-loop-distribution.c,
10772         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
10773         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
10774         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
10775         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
10776         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
10777         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
10778         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
10779         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
10780         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
10781         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
10782         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
10783         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
10784         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
10785         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
10786         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
10787         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
10788         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
10789         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
10790         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
10791         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
10792         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
10793         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
10794         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
10795         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
10796         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
10797         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
10798         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
10799         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
10800         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
10801         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
10802         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
10803         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
10804         config/score/score7.c, config/score/score.c, config/arm/arm.c,
10805         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
10806         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
10807         config/bfin/bfin.c: Clean up redundant includes.
10808         * Makefile.in: Update accordingly.
10809
10810 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
10811
10812         PR middle-end/44204
10813         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
10814         statement has no arguments.
10815
10816 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
10817
10818         PR/44139
10819         * varasm.c (emutls_decl): Merge attributes to new decl.
10820
10821 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
10822
10823         PR middle-end/44101
10824         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
10825         around the uniquized constructor if its type requires a conversion.
10826
10827 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
10828
10829         PR debug/44205
10830         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
10831         at -O0 goto_locus of any of the incoming edges differs from
10832         goto_locus of outgoing edge, or gimple_location of any of the
10833         labels differs.
10834
10835 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
10836
10837         * ira.c (ira_non_ordered_class_hard_regs): Define.
10838         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
10839         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
10840         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
10841         cost of unaligned hard regs when allocating multi-reg pseudos.
10842
10843 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
10844
10845         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
10846         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
10847         for TARGET_NO_FLOAT.
10848         * config/mips/mips.c (mips_file_start): Expand conditional expression
10849         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
10850         (mips_override_options): Move -mno-float override -msoft-float and
10851         -mhard-float.
10852         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
10853         Condition(TARGET_SUPPORTS_NO_FLOAT).
10854         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
10855         __mips_no_float here.
10856         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
10857         (TARGET_SUPPORTS_NO_FLOAT): Define.
10858         * config/mips/sdemtk.opt: Delete.
10859
10860 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
10861
10862         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
10863
10864 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
10865
10866         PR target/43733
10867         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
10868         * configure: Regenerate.
10869         * config.in: Regenerate.
10870         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
10871         instead of sahf only for 64bit targets.
10872
10873 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
10874
10875         PR debug/44178
10876         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
10877         setup_ref_regs for DEBUG_INSNs.
10878
10879 2010-05-20  Jan Hubicka  <jh@suse.cz>
10880
10881         PR middle-end/44197
10882         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
10883
10884 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
10885
10886         PR bootstrap/43870
10887         * df-scan.c (df_ref_compare): Stabilize sort.
10888
10889 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
10890
10891         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
10892         argument.  Don't use DW_OP_piece if offset is non-zero,
10893         put offset into second DW_OP_bit_piece argument.
10894         (dw_sra_loc_expr): Adjust callers.  For memory expressions
10895         compute offset.
10896
10897 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
10898
10899         PR target/44202
10900         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
10901         settings for 16-bit-constant "addo" alternative.
10902
10903 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
10904
10905         * config/mips/mips-dsp.md (add<DSPV:mode>3,
10906         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
10907
10908         PR target/43764
10909         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
10910         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
10911         Use it.
10912
10913 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
10914
10915         * diagnostic.c (FLOAT, FFS): Don't undefine.
10916         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
10917         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
10918         include ordering.
10919
10920 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
10921
10922         * combine.c (propagate_for_debug): Call make_compound_operation
10923         on the source value.
10924         (try_combine): When implementing a split chosen by find_split_point,
10925         either copy i2src or set it to null.  Assert that i2src is not null
10926         before substituting into CALL_INSN_FUNCTION_USAGE.
10927
10928 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
10929
10930         * double-int.h (double_int_ior): New function.
10931         * tree.h (build_int_cst_wide_type): Remove.
10932         * tree.c (build_int_cst_wide_type): Remove.
10933         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
10934         of build_int_cst_wide_type.
10935         * stor-layout.c (set_sizetype): (Ditto.).
10936         * dojump.c (do_jump): Use build_int_cstu instead of
10937         build_int_cst_wide_type.
10938
10939 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
10940
10941         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
10942         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
10943         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
10944         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
10945         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
10946         propagate the 'data' argument to copy_tree_r.
10947         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
10948         Propagate 'data' argument to walk_tree.
10949         (copy_if_shared): New function.
10950         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
10951         (unmark_visited): New function.
10952         (unshare_body): Call copy_if_shared instead of doing it manually.
10953         (unvisit_body): Call unmark_visited instead of doing it manually.
10954
10955 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
10956
10957         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
10958         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
10959         * hooks.c: Likewise.
10960         * target-def.h (TARGET_FOLD_BUILTIN): Define to
10961         hook_tree_tree_int_treep_bool_null.
10962         * target.h (struct gcc_target): Update signature of fold_builtin
10963         field.
10964         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
10965         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
10966         instead of the call expression.
10967         (fold_builtin_call_array): Pass n and argarray directly.
10968         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
10969         consing a list.
10970         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
10971         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
10972         `i' and use it in place of `arity'.
10973         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
10974         Dereference `args' directly.
10975         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
10976
10977 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10978
10979         * doc/sourcebuild.texi (Effective-Target Keywords): Document
10980         3dnow, sse3, sse2.
10981         (Directives): Document optional dg-require-effective-target
10982         selector.
10983
10984 2010-05-19  Richard Guenther  <rguenther@suse.de>
10985
10986         PR lto/44196
10987         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
10988
10989 2010-05-19  Richard Guenther  <rguenther@suse.de>
10990
10991         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
10992         * common.opt (fwhopr=): New.
10993         * opts.c (common_handle_option): Handle OPT_fwhopr.
10994         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
10995         * collect2.c (main): Match -fwhopr*.
10996         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
10997         Execute ltrans stage in parallel when jobs is bigger than 1.
10998
10999 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11000
11001         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
11002         pentiumpro on Solaris 8/x86 with Sun as.
11003         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
11004         hidden alias bug.
11005         (gcc_cv_as_ix86_quad): Check for .quad directive.
11006         * configure: Regenerate.
11007         * config.in: Regenerate.
11008         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
11009
11010 2010-05-19  Martin Jambor  <mjambor@suse.cz>
11011
11012         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
11013         also for indirect edges.  Actual printing moved...
11014         (ipa_print_node_jump_functions_for_edge): ...here.
11015         (ipa_compute_jump_functions): Renamed to
11016         ipa_compute_jump_functions_for_edge and made static.
11017         (ipa_compute_jump_functions): New function.
11018         (make_edge_direct_to_target): Check if the number of arguments on
11019         the newly direct edge is the same as the number of parametrs of
11020         the callee.
11021         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
11022         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
11023         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11024         analysis functions unconditionally, call the new
11025         ipa_analyze_params_uses on the node instead of every edge.
11026
11027 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
11028
11029         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
11030         to tree.
11031         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
11032         also checks for a constant int vs.  non-constant but
11033         loop-invariant steps.
11034         (find_or_create_group): Change the sort algorithm to only consider
11035         steps that are constant ints.
11036         (idx_analyze_ref): Adopt code to handle a tree instead of a
11037         HOST_WIDE_INT for step.
11038         (gather_memory_references_ref): Handle tree instead of int and be
11039         prepared to see a NULL_TREE.
11040         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
11041         prefetches if the step cannot be calculated at compile time.
11042         (issue_prefetch_ref): Issue prefetches for non-constant but
11043         loop-invariant steps.
11044
11045 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11046
11047         Revert:
11048         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11049
11050         * tree.h (build_call_list): Remove.
11051         * tree.c (build_call_list): Remove.
11052
11053 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
11054
11055         * tree.h (build_call_list): Remove.
11056         * tree.c (build_call_list): Remove.
11057
11058 2010-05-18  Jan Hubicka  <jh@suse.cz>
11059
11060         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
11061
11062 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
11063
11064         PR rtl-optimization/43332
11065         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
11066
11067 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
11068
11069         * tree.h (build_int_cstu): Implement as static inline.
11070         * tree.c (build_int_cstu): Remove function.
11071         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
11072         sign extended.
11073
11074 2010-05-18  Richard Guenther  <rguenther@suse.de>
11075
11076         PR lto/44143
11077         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
11078         (debug): Initialize from -save-temps.
11079         (collect_execute): Print command-line when verbose.
11080         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
11081         for ltrans invocation.  Produce -dumpbase flag again.
11082         (process_args): Remove.
11083         (main): Simplify.
11084         * collect2.c (maybe_run_lto_and_relink): Only pass object
11085         files to lto-wrapper.
11086         * gcc.c (LINK_COMMAND_SPEC): Likewise.
11087
11088 2010-05-18  Jan Hubicka  <jh@suse.cz>
11089
11090         * opts.c (decode_options): Do not disable whopr at ipa_cp.
11091         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
11092
11093 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
11094
11095         PR lto/44184
11096         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
11097         in a GIMPLE_ASM.
11098         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
11099         in a GIMPLE_ASM.
11100
11101 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
11102
11103         PR debug/41371
11104         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
11105         rtx_equal_p inline.
11106
11107 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
11108
11109         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
11110         lto-macho as lto_binary_reader.
11111
11112         * darwin.c (darwin_asm_named_section): Do not add assembler comment
11113         after .section directive; just print it before the directive instead.
11114
11115 2010-05-17  Jan Hubicka  <jh@suse.cz>
11116
11117         * cgraph.c (cgraph_create_virtual_clone): Only check
11118         versionable_function_p when not in wpa and checking is enabled.
11119         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
11120         there are no more functions to materialize.
11121
11122 2010-05-17  Jan Hubicka  <jh@suse.cz>
11123
11124         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
11125         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
11126         New functions.
11127         (output_cgraph): Call output_cgraph_opt_summary.
11128         (input_cgrpah): Call input_cgraph_opt_summary.
11129         (output_cgraph_opt_summary_p, output_node_opt_summary,
11130         input_node_opt_summary, input_cgraph_opt_section): New functions.
11131         * lto-section-in.c (lto_section_name): Add cgraphopt.
11132         * tree-inline.c (tree_function_versioning): Handle parm_num.
11133         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
11134         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
11135
11136 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
11137
11138         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
11139         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
11140         the insn to prefetch ratio heuristic to loops with known trip count.
11141
11142 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
11143
11144         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
11145         (schedule_prefetches): Do not generate a prefetch if the unroll factor
11146         is far from what is required by the prefetch.
11147
11148 2010-05-17  Jan Hubicka  <jh@suse.cz>
11149
11150         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
11151         (ipcp_estimate_growth): Likewise.
11152         (ipcp_const_param_count): Likewise.
11153         (ipcp_insert_stage): Likewise.
11154         * ipa-prop.c (visit_load_for_mod_analysis): New function.
11155         (visit_store_addr_for_mod_analysis): Set used flag.
11156         (ipa_detect_param_modifications): Set used flag for SSE params;
11157         update use of walk_stmt_load_store_addr_ops.
11158         (ipa_print_node_params): Print used flag.
11159         (ipa_write_node_info): Stream used flag.
11160         (ipa_read_node_info): Likewise.
11161         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
11162         (ipa_is_param_used): New function.
11163         (lto_ipa_fixup_call_notes): Remove unused declaration.
11164
11165 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11166
11167         PR target/44074
11168         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
11169         * configure: Regenerate.
11170         * config.in: Regenerate.
11171         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
11172         !HAVE_AS_IX86_REP_LOCK_PREFIX.
11173         Don't emit whitespace.
11174         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
11175         (*rep_movsi): Likewise.
11176         (*rep_movsi_rex64): Likewise.
11177         (*rep_movqi): Likewise.
11178         (*rep_movqi_rex64): Likewise.
11179         (*rep_stosdi_rex64): Likewise.
11180         (*rep_stossi): Likewise.
11181         (*rep_stossi_rex64): Likewise.
11182         (*rep_stosqi): Likewise.
11183         (*rep_stosqi_rex64): Likewise.
11184         (*cmpstrnqi_nz_1): Use {%;} after repz.
11185         (*cmpstrnqi_nz_rex_1): Likewise.
11186         (*cmpstrnqi_1): Likewise.
11187         (*cmpstrnqi_rex_1): Likewise.
11188         (*strlenqi_1): Use {%;} after repnz.
11189         (*strlenqi_rex_1): Likewise.
11190         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
11191         (*sync_compare_and_swap<mode>): Likewise.
11192         (sync_double_compare_and_swap<mode>): Likewise.
11193         (*sync_double_compare_and_swapdi_pic): Likewise.
11194         (sync_old_add<mode>): Likewise.
11195         (sync_add<mode>): Likewise.
11196         (sync_sub<mode>): Likewise.
11197         (sync_<code><mode>): Likewise.
11198
11199 2010-05-17  Martin Jambor  <mjambor@suse.cz>
11200
11201         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
11202         otr_token and polymorphic.
11203         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
11204         (cgraph_clone_edge): Copy the above fields.
11205         * tree.c (get_binfo_at_offset): New function.
11206         * tree.h (get_binfo_at_offset): Declare.
11207         * ipa-prop.h (enum jump_func_type): Added known_type jump function
11208         type, reordered items, updated comments.
11209         (union jump_func_value): Added base_type field, reordered fields.
11210         (enum ipa_lattice_type): Moved down in the file.
11211         (struct ipa_param_descriptor): New field polymorphic.
11212         (ipa_is_param_polymorphic): New function.
11213         * ipa-prop.c: Include gimple.h and gimple-fold.h.
11214         (ipa_print_node_jump_functions): Print known type jump functions.
11215         (compute_complex_pass_through): Renamed to...
11216         (compute_complex_assign_jump_func): this.
11217         (compute_complex_ancestor_jump_func): New function.
11218         (compute_known_type_jump_func): Likewise.
11219         (compute_scalar_jump_functions): Create known type and complex ancestor
11220         jump functions.
11221         (ipa_note_param_call): New parameter polymorphic, set the corresponding
11222         flag in the call note accordingly.
11223         (ipa_analyze_call_uses): Renamed to...
11224         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
11225         variable var only in the block where it is used.
11226         (ipa_analyze_virtual_call_uses): New function.
11227         (ipa_analyze_call_uses): Likewise.
11228         (combine_known_type_and_ancestor_jfs): Likewise.
11229         (update_jump_functions_after_inlining): Implemented handling of a
11230         number of new jump function types combination.
11231         (print_edge_addition_message): Removed.
11232         (make_edge_direct_to_target): New function.
11233         (try_make_edge_direct_simple_call): Likewise.
11234         (try_make_edge_direct_virtual_call): Likewise.
11235         (update_call_notes_after_inlining): Renamed to...
11236         (update_indirect_edges_after_inlining): this.  Moved edge creation for
11237         indirect calls to try_make_edge_direct_simple_call, also calls
11238         try_make_edge_direct_virtual_call for virtual calls.
11239         (ipa_print_node_params): Changed the header message.
11240         (ipa_write_jump_function): Stream also known type jump functions.
11241         (ipa_read_jump_function): Likewise.
11242         (ipa_write_indirect_edge_info): Stream new fields in
11243         cgraph_indirect_call_info.
11244         (ipa_read_indirect_edge_info): Likewise.
11245         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
11246         GIMPLE_FOLD_H.
11247
11248 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11249
11250         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
11251
11252 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
11253
11254         * tree.h (CALL_EXPR_ARGS): Delete.
11255         (call_expr_arglist): Delete.
11256         * tree.c (call_expr_arglist): Delete.
11257         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
11258         targetm.fold_builtin.
11259         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
11260         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
11261         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
11262         arglist parameter.  Use CALL_EXPR_ARG.
11263         (picochip_expand_builtin_3op): Likewise.
11264         (picochip_expand_builtin_2opvoid): Likewise.
11265         (picochip_expand_array_get): Likewise.
11266         (picochip_expand_array_put): Likewise.
11267         (picochip_expand_array_testport): Likewise.
11268         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
11269         rather than arglist.
11270         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
11271         CALL_EXPR_ARGS.
11272         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
11273         than TREE_VALUE and TREE_CHAIN.
11274         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
11275         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
11276         the arglist.
11277
11278 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
11279
11280         PR bootstrap/42347
11281         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
11282         to have no fallthru edge.
11283
11284         PR middle-end/44102
11285         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
11286         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
11287         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
11288         add BARRIER after previous bb if needed.
11289
11290 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
11291
11292         * tree.c (build_function_type_list_1): Remove bogus assert condition.
11293
11294 2010-05-17  Alan Modra  <amodra@gmail.com>
11295
11296         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
11297         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
11298         with copy_reg rtx param.
11299         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
11300         Correct cases where code for ABI_V4 did not initialise the reg
11301         used to access frame.  Also leave frame_reg_rtx as sp for large
11302         frames that save no regs.
11303
11304 2010-05-17  Martin Jambor  <mjambor@suse.cz>
11305
11306         PR middle-end/44133
11307         * tree-sra.c (create_access_replacement): New parameter rename, mark
11308         the replaement for renaming only when it is true.
11309         (get_access_replacement): Pass true in the rename parameter of
11310         create_access_replacement.
11311         (get_unrenamed_access_replacement): New function.
11312         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
11313         replacement declaration from it.
11314
11315 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
11316
11317         * function.c (try_fit_stack_local, add_frame_space): New static
11318         functions.
11319         (assign_stack_local_1): Use them.  Look for opportunities to use
11320         space previously wasted on alignment.
11321         * function.h (struct frame_space): New.
11322         (struct rtl_data): Add FRAME_SPACE_LIST member.
11323         * reload1.c (something_was_spilled): New static variable.
11324         (alter_reg): Set it.
11325         (reload): Test it in addition to testing if the frame size changed.
11326
11327 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
11328
11329         * config/s390/s390.c: Define sane prefetch settings and activate
11330         flag_prefetch_loop_arrays on -O3.
11331         * config/s390/s390.h: Declare that read can use write prefetch.
11332
11333 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
11334
11335         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
11336         build.
11337
11338 2010-05-16  Jan Hubicka  <jh@suse.cz>
11339
11340         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
11341         function body; do not check stdarg field of struct function.
11342
11343 2010-05-16  Jan Hubicka  <jh@suse.cz>
11344
11345         * cgraph.c (dump_cgraph_node): Dump versionable flag.
11346         * cgraph.h (cgraph_local_info): Add versionable flag.
11347         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
11348         (ipcp_versionable_function_p): Use it.
11349         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11350         versionable flag.
11351
11352 2010-05-16  Jan Hubicka  <jh@suse.cz>
11353
11354         * cgraph.c (cgraph_clone_node): Take decl argument and insert
11355         clone into hash when it is different from orig.
11356         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
11357         * cgraph.h (cgraph_clone_node): Update prototype.
11358         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
11359         (lto_cgraph_encoder_delete): Delete body map.
11360         (lto_cgraph_encoder_size): Move to header.
11361         (lto_cgraph_encoder_encode_body_p,
11362         lto_set_cgraph_encoder_encode_body): New.
11363         (lto_output_node): Do not take written_decls argument; output clone_of
11364         pointer.
11365         (add_node_to): Add include_body_argument; call
11366         lto_set_cgraph_encoder_encode_body on master of the clone.
11367         (add_references): Update use of add_node_to.
11368         (compute_ltrans_boundary): Likewise.
11369         (output_cgraph): Do not create written_decls bitmap.
11370         (input_node): Take nodes argument; stream in clone_of correctly.
11371         (input_cgraph_1): Update use of input_node.
11372         * lto-streamer-out.c (lto_output): Use encoder info to decide
11373         what bodies to output.
11374         * ipa-inline.c (cgraph_clone_inlined_nodes,
11375         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
11376         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
11377         (lto_cgraph_encoder_size): Define here.
11378         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
11379         Declare.
11380
11381 2010-05-16  Richard Guenther  <rguenther@suse.de>
11382
11383         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
11384         -fipa-type-escape.
11385         * ipa-type-escape.c (gate_type_escape_vars): Run when
11386         -fipa-struct-reorg runs.
11387         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
11388         * common.opt (fipa-type-escape): Remove.
11389
11390 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
11391
11392         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
11393         (decode_options): Likewise.
11394         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
11395
11396 2010-05-16  Jan Hubicka  <jh@suse.cz>
11397
11398         * ipa.c (function_and_variable_visibility): Also bring local all
11399         aliases.
11400
11401 2010-05-16  Richard Guenther  <rguenther@suse.de>
11402
11403         * alias.c (nonoverlapping_memrefs_p): Remove use of
11404         IPA type-escape information.
11405
11406 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
11407
11408         * c-common.c (c_common_reswords): Add _Static_assert for C.
11409         * c-parser.c (c_token_starts_declaration,
11410         c_parser_next_token_starts_declaration,
11411         c_parser_static_assert_declaration_no_semi,
11412         c_parser_static_assert_declaration): New.
11413         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
11414         Handle static assertions if static_assert_ok.
11415         (c_parser_external_declaration, c_parser_declaration_or_fndef,
11416         c_parser_compound_statement_nostart, c_parser_label,
11417         c_parser_for_statement, c_parser_objc_methodprotolist,
11418         c_parser_omp_for_loop): All callers of
11419         c_parser_declaration_or_fndef changed.
11420         (c_parser_struct_declaration): Handle static assertions.
11421         (c_parser_compound_statement_nostart): Use
11422         c_parser_next_token_starts_declaration and
11423         c_token_starts_declaration to detect start of declarations.
11424         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
11425         Likewise.
11426
11427 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
11428
11429         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11430         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11431         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11432         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11433         (mmix_function_outgoing_value): Rename to...
11434         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
11435         (mmix_function_value_regno_p): Make static.
11436         (mmix_libcall_value): New function.
11437         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
11438         mmix_function_value_regno_p): Remove declaration.
11439
11440 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
11441
11442         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
11443         BUILT_IN_ALLOCA if stack checking is enabled.
11444
11445 2010-05-16  Richard Guenther  <rguenther@suse.de>
11446
11447         * var-tracking.c (vars_copy_1): Inline ...
11448         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
11449         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
11450         (variable_merge_over_cur): Adjust.  Merge asserts.
11451         (variable_merge_over_src): Likewise.
11452         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
11453         (variable_post_merge_new_vals): Merge asserts.
11454         (variable_post_merge_perm_vals): Likewise.
11455         (find_mem_expr_in_1pdv): Likewise.
11456         (dataflow_set_different_value): Remove.
11457         (onepart_variable_different_p): Merge asserts.
11458         (variable_different_p): Likewise.
11459         (dataflow_set_different_1): Inline ...
11460         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
11461         (emit_notes_for_differences_1): Merge asserts.
11462
11463 2010-05-16  Richard Guenther  <rguenther@suse.de>
11464
11465         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
11466         * optabs.c (libfunc_decl_hash): Likewise.
11467         * varasm.c (emutls_decl): Likewise.
11468
11469 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
11470
11471         * c-decl.c: Don't include gimple.h.
11472         (merge_decls): Do not copy gimple_body.
11473
11474 2010-05-15  Jason Merrill  <jason@redhat.com>
11475
11476         * c.opt: Add -fnothrow-opt.
11477
11478 2010-05-15  Jan Hubicka  <jh@suse.cz>
11479
11480         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
11481         analyzed.
11482         * passes.c (ipa_write_summaries): Write all analyzed nodes.
11483
11484 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
11485
11486         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
11487         * Makefile.in: Add it.
11488         Fix all other Makefile dependencies for changes below.
11489         * tree.h: Include it instead of defining VEC primitives here.
11490         * gimple.h: Likewise.
11491         * rtl.h: Likewise.
11492         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
11493         * except.h: Include vecir.h, break dependence on tree.h.
11494
11495         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
11496         Move from here...
11497         * tree-iterator.c: ...to here.
11498         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
11499
11500         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
11501         tm_p.h.
11502         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
11503         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
11504         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
11505         tree-mudflap.h, and target.h.
11506         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
11507         predict.h, tree-inline.h, gimple.h, and langhooks.h.
11508         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
11509         Add FIXME for why gimple.h is still included (should be unnecessary
11510         since GCC 4.5 gimplification unit-at-a-time).
11511         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
11512         * c-pragma.c: Add FIXME for why function.h needs to be included just
11513         for cfun, at front-end level.
11514         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
11515         Do not include ggc.h, but include vecprim.h for VEC(char).
11516         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
11517         Explain why target.h is included.
11518         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
11519         Explain why gimple.h is included.
11520         * c-ppoutput.c: Do not include tm.h.
11521         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
11522         * c-parses.c: Explain why rtl.h is included, and that this (and only
11523         this) is also why tm.h must be included.
11524         Do not include except.h.
11525         * c-lang.c: Do not include ggc.h.
11526
11527 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
11528
11529         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
11530
11531 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
11532
11533         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
11534         unions by default if those structs and unions have no tags.  Do
11535         not condition anonymous struct and unions handling on flag_iso.
11536         Allow anonymous structs and unions for C1X.
11537         (finish_struct): Do not diagnose lack of named fields when
11538         anonymous structs and unions present for C1X.  Accept flexible
11539         array members in structure with anonymous structs or unions but no
11540         directly named fields.
11541         * doc/extend.texi (Unnamed Fields): Update.
11542
11543 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
11544
11545         * gimple.h (compare_field_offset): Rename into...
11546         (gimple_compare_field_offset): ...this.
11547         * gimple.c (compare_field_offset): Rename into...
11548         (gimple_compare_field_offset): ...this.  Compare the full access if
11549         the offset is self-referential.
11550         (gimple_types_compatible_p): Adjust for above renaming.
11551         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
11552         DECL_NONADDRESSABLE_P flag of fields before merging them.
11553
11554 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
11555
11556         * tree.h (ctor_to_list): Delete.
11557         * tree.c (ctor_to_list): Delete.
11558
11559 2010-05-15  Jan Hubicka  <jh@suse.cz>
11560
11561         * ipa-reference.c: Include toplev.h
11562         (is_proper_for_analysis): Only add to all_module_statics
11563         if it is allocated.
11564         (write_node_summary_p, stream_out_bitmap,
11565         ipa_reference_write_optimization_summary,
11566         ipa_reference_read_optimization_summary): New.
11567         (struct ipa_opt_pass_d pass_ipa_reference): Add
11568         optimization summary streaming.
11569         * lto-cgraph.c (referenced_from_this_partition_p,
11570         reachable_from_this_partition_p): New functions.
11571         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11572         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
11573         * opts.c (decode_options): Enable ipa_reference.
11574         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
11575         * lto-streamer.h (referenced_from_this_partition_p,
11576         reachable_from_this_partition_p): Declare.
11577
11578 2010-05-15  Richard Guenther  <rguenther@suse.de>
11579
11580         PR tree-optimization/44038
11581         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
11582         taking the address of a V_C_E of a constant.
11583
11584 2010-05-14  Jan Hubicka  <jh@suse.cz>
11585
11586         * tree.h (memory_identifier_string): Remove.
11587         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
11588         (ipa_reference_global_vars_info_d): Remove statics_not_read and
11589         statics_not_written.
11590         (ipa_reference_optimization_summary_d): New structure.
11591         (ipa_reference_optimization_summary_t): New type and vector.
11592         (ipa_reference_vars_info_d): Embedd structures instead of using
11593         pointers.
11594         (reference_vars_to_consider): Remove out of GGC space.
11595         (module_statics_escape): Remove.
11596         (global_info_obstack): Rename to ...
11597         (optimization_summary_obstack): ... this one.
11598         (initialization_status_t): Remove.
11599         (memory_identifier_string): Remove.
11600         (get_reference_vars_info): Fix indenting.
11601         (set_reference_vars_info): Likewise.
11602         (get_reference_optimization_summary): New.
11603         (set_reference_optimization_summary): New.
11604         (get_global_reference_vars_info): Remove.
11605         (ipa_reference_get_read_global): Remove.
11606         (ipa_reference_get_written_global): Remove.
11607         (ipa_reference_get_not_read_global): Update.
11608         (ipa_reference_get_not_written_global): Update.
11609         (is_proper_for_analysis): Outlaw addressable.
11610         (propagate_bits): Update for new datastructures.
11611         (analyze_variable): Remove.
11612         (init_function_info): Update for new datastructures.
11613         (clean_function_local_data): Remove.
11614         (clean_function): Remove.
11615         (copy_global_bitmap): Use optimizations_summary_obstack.
11616         (duplicate_node_data): Duplicate optimization summary only.
11617         (remove_node_data): Remove optimization summary only.
11618         (generate_summary): Do not analyze variables; do not compute
11619         module_statics_escape; do not prune solutions by it.
11620         (read_write_all_from_decl): Fix typos in comments.
11621         (propagate): Doscover readonly and nonaddressable first;
11622         update for new datastructures; share global bitmaps.
11623         * ipa-reference.h (ipa_reference_get_read_global,
11624         ipa_reference_get_written_global): Remove.
11625         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
11626         * Makefile.in: Remove ipa-refereference from GT files.
11627
11628 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
11629
11630         PR debug/44112
11631         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
11632         for all SYMBOL_REF_DECLs.
11633
11634 2010-05-14  Jan Hubicka  <jh@suse.cz>
11635
11636         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
11637         (varpool_all_refs_explicit_p): New inline function.
11638         * ipa-reference.c: Update comment.
11639         (module_statics_written): Remove.
11640         (get_static_decl): Remove.
11641         (ipa_init): Do not initialize module_statics_written.
11642         (analyze_function): Likewise.
11643         (generate_summary): Likewise; do not compute module_statics_readonly
11644         and do not update variable flags.
11645         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
11646         * ipa.c: Inlucde flags.h
11647         (cgraph_local_node_p): New.
11648         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
11649         promote functions to local.
11650         (ipa_discover_readonly_nonaddressable_vars): New function.
11651         (function_and_variable_visibility): Use cgraph_local_node_p.
11652         * varpool.c (varpool_finalize_decl): Set force_output for
11653         DECL_PRESERVE_P vars.
11654
11655 2010-05-14  Jan Hubicka  <jh@suse.cz>
11656
11657         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
11658
11659 2010-05-14  Richard Guenther  <rguenther@suse.de>
11660
11661         PR tree-optimization/44119
11662         * tree-ssa-pre.c (eliminate): Properly mark replacement of
11663         a PHI node necessary.
11664
11665 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
11666
11667         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
11668
11669 2010-05-14  Jason Merrill  <jason@redhat.com>
11670
11671         PR c++/44127
11672         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
11673         (gimple_call_set_nothrow): New.
11674         * gimple.c (gimple_build_call_from_tree): Call it.
11675         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
11676
11677         PR c++/44127
11678         * gimplify.c (gimplify_seq_add_stmt): No longer static.
11679         * gimple.h: Declare it.
11680         * gimple.c (gimple_build_eh_filter): No ops.
11681
11682 2010-05-14  Jan Hubicka  <jh@suse.cz>
11683
11684         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
11685         nodes already in queue.
11686         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
11687         re-enqueueing node.
11688
11689 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
11690
11691         PR debug/44136
11692         * cfgexpand.c (expand_debug_expr): If non-memory op0
11693         has BLKmode, return NULL.
11694
11695 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
11696
11697         * config.gcc: Add support for --with-cpu option for bdver1.
11698         * config/i386/i386.h (TARGET_BDVER1): New macro.
11699         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
11700         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11701         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
11702         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11703         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
11704         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
11705         (processor_type): Add PROCESSOR_BDVER1.
11706         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
11707         processor_type in config/i386/i386.h.
11708         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
11709         movaps <reg, reg> instead of movapd <reg, reg> when replacing
11710         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
11711         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
11712         to emit packed xor instead of packed double/packed integer
11713         xor for SSE and AVX when moving a zero value.
11714         * config/i386/sse.md: Add check for
11715         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
11716         movapd/movdqa for SSE and AVX.
11717         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
11718         single logical operations i.e and, or and xor instead of packed double
11719         logical operations for SSE and AVX.
11720         * config/i386/i386-c.c (ix86_target_macros_internal):
11721         Add PROCESSOR_BDVER1.
11722         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
11723         (has_fma4, has_xop): New.
11724         * config/i386/i386.c (bdver1_cost): New variable.
11725         (m_BDVER1): New macro.
11726         (m_AMD_MULTIPLE): Add m_BDVER1.
11727         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
11728         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
11729         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
11730         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
11731         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
11732         x86_tune_sse_partial_reg_dependency,
11733         x86_tune_sse_unaligned_load_optimal,
11734         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
11735         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
11736         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
11737         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
11738         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
11739         Enable/disable for bdver1.
11740         (processor_target_table): Add bdver1_cost.
11741         (cpu_names): Add bdver1.
11742         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
11743          processor_alias_table.
11744         (ix86_expand_vector_move_misalign): Change.
11745         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
11746         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
11747         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
11748         of movupd/movdqu for SSE and AVX.
11749         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
11750         (ix86_tune_adjust_cost): Add code for bdver1.
11751         (standard_sse_constant_opcode): Add check for
11752         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
11753         of packed double xor for SSE and AVX.
11754
11755 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
11756
11757         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
11758         result to unsigned.
11759
11760 2010-05-14  Tristan Gingold  <gingold@adacore.com>
11761
11762         * toplev.c (default_debug_hooks): Remove this variable.
11763         (process_options): Remove assignments to default_debug_hooks.
11764
11765 2010-05-14  Martin Jambor  <mjambor@suse.cz>
11766
11767         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
11768         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
11769         * langhooks.h (struct lang_hooks_for_decls): Removed field
11770         fold_obj_type_ref.
11771         * tree.c (free_lang_data): Remove assignment to
11772         lang_hooks.fold_obj_type_ref.
11773         * tree.def (OBJ_TYPE_REF): Update comment.
11774
11775 2010-05-14  Richard Guenther  <rguenther@suse.de>
11776
11777         PR tree-optimization/44124
11778         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
11779
11780 2010-05-14  Alan Modra  <amodra@gmail.com>
11781
11782         PR target/44075
11783         * config/rs6000/rs6000.c (struct machine_function): Reorder
11784         fields for better packing.  Add lr_save_state.
11785         (rs6000_ra_ever_killed): Return lr_save_state if set.
11786         (rs6000_emit_eh_reg_restore): Set lr_save_state.
11787
11788 2010-05-13  Jan Hubicka  <jh@suse.cz>
11789
11790         * varpool.c (decide_is_variable_needed): Drop code checking
11791         TREE_SYMBOL_REFERENCED.
11792
11793 2010-05-13  Jan Hubicka  <jh@suse.cz>
11794
11795         * final.c (output_addr_const): Do not call mark_decl_referenced.
11796         * cgraphunit.c (process_function_and_variable_attributes): Use
11797         mark_needed_node dirrectly.
11798         (assemble_thunk): Do not call mark_decl_referenced.
11799
11800 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
11801
11802         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
11803
11804 2010-05-13  Jeff Law  <law@redhat.com>
11805
11806         * ira-conflicts.c (print_allocno_conflicts): New function broken out
11807         from...
11808         (print_conflicts): Call print_allocno_conflicts.
11809
11810 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
11811
11812         PR debug/44104
11813         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
11814         if it is NULL.
11815
11816 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
11817
11818         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
11819         t-mingw-w64 or t-mingw-w32 for multilib configuration.
11820         * config/i386/t-mingw-w32: New.
11821         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
11822
11823 2010-05-13  Martin Jambor  <mjambor@suse.cz>
11824
11825         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
11826         gimple-fold.c).
11827         * gimple-fold.c (get_base_binfo_for_type): New function.
11828         (gimple_get_relevant_ref_binfo): Likewise.
11829         (gimple_fold_obj_type_ref_known_binfo): Likewise.
11830         (gimple_fold_obj_type_ref): Likewise.
11831         (fold_gimple_call): Simplify condition for folding virtual calls
11832         and call gimple_fold_obj_type_ref.
11833         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
11834         (gimple_fold_obj_type_ref_known_binfo): Likewise.
11835
11836 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
11837
11838         * config/rs6000/rs6000-protos.h
11839         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
11840         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
11841         (rs6000_debug_mode_dependent_address)
11842         (rs6000_mode_dependent_address_ptr): Likewise.
11843
11844 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
11845
11846         PR debug/43983
11847         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
11848         by SRA.
11849         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
11850         * tree-sra.c (create_access_replacement): Call unshare_expr before
11851         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
11852         * dwarf2out.c: Include tree-flow.h.
11853         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
11854         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11855         Handle DW_OP_bit_piece.
11856         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
11857         construct_piece_list, adjust_piece_list): New functions.
11858         (add_var_loc_to_decl): Handle SRA optimized variables.
11859         Adjust for var_loc_note to loc field renaming.
11860         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
11861         in VAR_LOCATION note.
11862         (new_loc_descr_op_bit_piece): New function.
11863         (dw_sra_loc_expr): New function.
11864         (dw_loc_list): Use it.  Don't handle the last range after the
11865         loop, handle it inside of the loop.  Adjust for var_loc_note
11866         to loc field renaming.
11867         (add_location_or_const_value_attribute): Only special case
11868         single entry loc lists if loc is NOTE_P.  Adjust for
11869         var_loc_note to loc field renaming.
11870         (dwarf2out_var_location): Don't set newloc->var_loc_note
11871         and newloc->next here.
11872
11873 2010-05-12  Jan Hubicka  <jh@suse.cz>
11874
11875         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
11876         flag.
11877         * cgraph.h (cgraph_only_called_directly_p,
11878         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
11879         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
11880         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
11881         (assemble
11882         * ipa.c (cgraph_remove_unreachable_nodes): Use
11883         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
11884         flags.
11885         * tree-inline.c (copy_bb): Check address_taken flag.
11886         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
11887         externally_visible flag.
11888
11889 2010-05-12  Jason Merrill  <jason@redhat.com>
11890
11891         PR bootstrap/44048
11892         PR target/44099
11893         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
11894         * sdbout.c (plain_type_1): Likewise.
11895         * dwarf2out.c (is_base_type): Likewise.
11896         (gen_type_die_with_usage): Likewise.  Generate
11897         DW_TAG_unspecified_type for any LANG_TYPE.
11898
11899 2010-05-12  Jan Hubicka  <jh@suse.cz>
11900
11901         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
11902         indrect edges too.
11903         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
11904         (cgraph_clone_edge): Update.
11905         (cgraph_node_remove_callees): Remove indirect calls too.
11906         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
11907         (cgraph_create_indirect_edge): Update prototype.
11908         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
11909         is_proper_for_analysis.
11910         (add_new_function, visited_nodes, function_insertion_hook_holder,
11911         get_local_reference_vars_info, mark_address_taken, mark_address,
11912         mark_load, mark_store, check_asm_memory_clobber, check_call,
11913         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
11914         (ipa_init): Do not initialize visited_nodes;
11915         function_insertion_hook_holder.
11916         (analyze_variable): Rewrite.
11917         (analyze_function): Rewrite.
11918         (copy_local_bitmap): Remove.
11919         (duplicate_node_dat): Do not duplicate local info.
11920         (generate_summary): Simplify to only walk cgraph.
11921         (write_node_summary_p, ipa_reference_write_summary,
11922         ipa_reference_read_summary): Remove.
11923         (propagate): Do not remove function insertion;
11924         generate summary.
11925         (pass_ipa_reference): NULLify summary handling fields.
11926         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
11927         (input_edge): Input ecf_flags.
11928         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
11929         (update_indirect_edges_after_inlining): Ignore edges with unknown
11930         param.
11931
11932 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
11933
11934         * implicit-zee.c: New file.
11935         * tree-pass.h (pass_implicit_zee): Declare.
11936         * passes.c (init_optimization_passes): Add zee pass.
11937         * common.opt (fzee): New flag.
11938         * timevar.def (TV_ZEE): Define.
11939         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
11940         and beyond.
11941         * Makefile.in (implicit-zee.o): Add new build file.
11942
11943 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11944             Nathan Froyd  <froydnj@codesourcery.com>
11945
11946         * c-common.c (sync_resolve_params): Remove write-only variable.
11947
11948 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
11949
11950         * target.h (struct gcc_target): Add mode_dependent_address_p field.
11951         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11952         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
11953         * targhooks.c (default_mode_dependent_address_p): New function.
11954         * targhooks.h (default_mode_dependent_address_p): Declare function.
11955         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11956         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
11957         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
11958         target hook. Change return type to bool.
11959         * recog.h (mode_dependent_address_p): Change return type to bool.
11960
11961 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11962             Nathan Froyd  <froydnj@codesourcery.com>
11963
11964         * tree-mudflap.c (build_function_type_0, build_function_type_1,
11965         build_function_type_2, build_function_type_3): Remove.
11966         (mudflap_init): Use build_function_type_list.
11967
11968 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
11969             Nathan Froyd  <froydnj@codesourcery.com>
11970
11971         * coverage.c (build_fn_info_value): Call build_constructor instead of
11972         build_constructor_from_list.
11973         (build_ctr_info_value): Likewise.
11974         (build_gcov_info): Likewise.
11975
11976 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
11977
11978         * tree.c (build_constructor): Compute TREE_CONSTANT for the
11979         resultant constructor.
11980         (build_constructor_single): Don't set TREE_CONSTANT.
11981         (build_constructor_from_list): Don't compute TREE_CONSTANT.
11982
11983 2010-05-12  Jan Hubicka  <jh@suse.cz>
11984
11985         * cgraph.h (struct varpool_node): Add aux.
11986         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
11987         * varpool.c (varpool_remove_node): Do not remove initializer.
11988         (varpool_reset_queue): Export.
11989         (varpool_finalize_decl): Volatile vars are forced to be output.
11990         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
11991         replaced decl.
11992         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
11993         process_references, varpool_can_remove_if_no_refs): New functions.
11994         (cgraph_remove_unreachable_nodes): Handle variables too.
11995
11996 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
11997
11998         PR target/44088
11999         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
12000
12001 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
12002
12003         PR middle-end/44085
12004         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
12005         change value of ORT_TASK.
12006         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
12007         (omp_notice_threadprivate_variable): New function.
12008         (omp_notice_variable): Call it for threadprivate variables.
12009         If enclosing ctx is a task, print enclosing task rather than
12010         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
12011         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
12012         if task has untied clause.
12013
12014         PR debug/42278
12015         * dwarf2out.c (base_type_die): Don't add name attribute here.
12016         (modified_type_die): Instead of sizetype use
12017         its underlying original type.  If a DW_TAG_base_type doesn't
12018         have name added, add __unknown__.
12019         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
12020         always call force_type_die instead.
12021
12022 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
12023
12024         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
12025         for __stack_chk_guard.
12026
12027 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
12028
12029         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
12030         don't call start_source_file debug hook here...
12031         (finish_options): ... but here, after outputting predefined and
12032         command line defines and undefs.
12033
12034         PR middle-end/44071
12035         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
12036         no fallthru edge.
12037         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
12038         optimizing away empty bb with no successors, move over its
12039         footer chain to fallthru predecessor.
12040         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
12041         (rtl_split_edge): For asm goto call patch_jump_insn even if
12042         splitting fallthru edge.
12043
12044         PR c++/44059
12045         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
12046         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
12047         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
12048         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
12049         on DW.ref.* decls.
12050
12051         PR c++/44062
12052         * c-parser.c (c_parser_expression): Mark LHS of a comma
12053         expression as read if it is a decl, handled component or
12054         COMPOUND_EXPR with that on the RHS.
12055         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
12056         if it is a decl or handled component.
12057
12058 2010-05-11  Jan Hubicka  <jh@suse.cz>
12059
12060         * lto-symtab.c (lto_symtab_free): New function.
12061         * lto-streamer.h (lto_symtab_free): Declare.
12062
12063 2010-05-11  Jan Hubicka  <jh@suse.cz>
12064
12065         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
12066         that if function is needed it is reachable.
12067         (lto_output_node): See if it the function is reachable or referenced.
12068         (output_cgraph): Update call of lto_output_node.
12069         * lto-streamer.h (reachable_from_other_partition_p): Declare.
12070
12071 2010-05-11  Jan Hubicka  <jh@suse.cz>
12072
12073         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
12074         Mark as used.
12075
12076 2010-05-11  Jan Hubicka  <jh@suse.cz>
12077
12078         PR tree-optimize/44063
12079         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
12080         queue.
12081         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
12082         limits.
12083         (estimate_function_body_sizes): Compute sizes even when disregarding.
12084
12085 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
12086
12087         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
12088
12089 2010-05-11  Jan Hubicka  <jh@suse.cz>
12090
12091         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
12092         into every boundary.
12093
12094 2010-05-11  Jan Hubicka  <jh@suse.cz>
12095
12096         * matrix-reorg.c (matrix_reorg): Rebuild edges.
12097
12098 2010-05-11  Jan Hubicka  <jh@suse.cz>
12099
12100         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
12101         lto_streamer_cache_delete): Put nodes into heap.
12102         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
12103         heap.
12104
12105 2010-05-11  Jan Hubicka  <jh@suse.cz>
12106
12107         * cgraphbuild.c (cgraph_rebuild_references): New.
12108         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
12109         out extern inlines.
12110         * cgraph.h (cgraph_rebuild_references): Declare.
12111         * tree-inline.c (tree_function_versioning): Use it.
12112         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
12113
12114 2010-05-11  Jan Hubicka  <jh@suse.cz>
12115
12116         * cgraph.c: Include ipa-utils.h
12117         (cgraph_create_virtual_clone): Update references.
12118         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
12119
12120 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
12121
12122         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
12123         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
12124         cache size.
12125
12126 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
12127
12128         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
12129
12130 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
12131
12132         * gcc.c (execute): For -### don't quote arguments that
12133         contain just alphanumerics and _/-. characters.
12134         * doc/invoke.texi: Document that change for -###.
12135
12136         PR debug/44023
12137         * df-problems.c (struct dead_debug): Add to_rescan field.
12138         (dead_debug_init): Clear to_rescan field.
12139         (dead_debug_finish): Rescan all debug insns in to_rescan
12140         bitmap and free the bitmap.
12141         (dead_debug_insert_before): Instead of rescanning debug insns
12142         immediately queue their rescanning until dead_debug_finish.
12143         (df_note_bb_compute): After dead_debug_add do continue instead
12144         of break.
12145
12146 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
12147
12148         PR debug/44028
12149         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
12150         clear also INSN_REG_USE_LIST.
12151
12152 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12153
12154         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
12155
12156 2010-05-10  Jan Hubicka  <jh@suse.cz>
12157
12158         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
12159         commited change.
12160
12161 2010-05-10  Jan Hubicka  <jh@suse.cz>
12162
12163         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
12164         Allocate encoders.
12165         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
12166         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
12167         (lto_streamer_cache_create): Init alloc pool.
12168         (lto_streamer_cache_delete): Free alloc pool.
12169         * lto-streamer.h: Include alloc pool.
12170         (lto_streamer_cache_d): Use alloc pool.
12171         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
12172
12173 2010-05-10  Jan Hubicka  <jh@suse.cz>
12174
12175         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
12176         * cgraphbuild.c: Include except.h
12177         (record_type_list, record_eh_tables): New function.
12178         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
12179
12180 2010-05-10  Jan Hubicka  <jh@suse.cz>
12181
12182         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
12183         __frame_dummy_init_array_entry, force_to_data): Attribute as used
12184         rather than unused.
12185
12186 2010-05-10  Michael Matz  <matz@suse.de>
12187
12188         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
12189         (can_reassociate_p): Use FLOAT_TYPE_P.
12190         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
12191         (vect_force_simple_reduction): ... this.
12192         * tree-parloops.c (gather_scalar_reductions): Use
12193         vect_force_simple_reduction.
12194         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
12195         vect_is_simple_reduction, add modify argument, if true rewrite
12196         "a-b" into "a+(-b)".
12197         (vect_is_simple_reduction, vect_force_simple_reduction): New
12198         functions.
12199         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
12200
12201 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12202             Vladimir Makarov  <vmakarov@redhat.com>
12203
12204         PR rtl-optimization/44012
12205         * ira-build.c (remove_unnecessary_allocnos): Nullify
12206         regno_allocno_map of the removed allocno.
12207
12208 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12209
12210         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
12211         to /dev/null.
12212         * configure: Regenerate.
12213
12214 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12215
12216         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
12217         unused.
12218         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
12219         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
12220         support in Sun ld.
12221         * configure: Regenerate.
12222
12223 2010-05-10  Richard Guenther  <rguenther@suse.de>
12224
12225         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
12226         marked if the entry identifier is marked.
12227
12228 2010-05-10  Richard Guenther  <rguenther@suse.de>
12229
12230         * c-common.c (struct c_common_attributes): Add fnspec attribute.
12231         (handle_fnspec_attribute): New function.
12232         * gimple.h (gimple_call_return_flags): Declare.
12233         (gimple_call_arg_flags): Likewise.
12234         * gimple.c (gimple_call_arg_flags): New function.
12235         (gimple_call_return_flags): Likewise.
12236         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
12237         New argument flags.
12238         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
12239         return value flags.
12240         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
12241         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
12242         main work to ...
12243         (make_heapvar_for): ... this new function.
12244         (handle_rhs_call): Handle fnspec attribute argument specifiers.
12245         (handle_lhs_call): Likewise.
12246         (find_func_aliases): Adjust.
12247
12248 2010-05-10  Richard Guenther  <rguenther@suse.de>
12249
12250         PR tree-optimization/44050
12251         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
12252
12253 2010-05-10  Wei Guozhi  <carrot@google.com>
12254
12255         PR target/42879
12256         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
12257
12258 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
12259
12260         PR c/10676
12261         * c-typeck.c (lookup_field): Take a type directly.  Update
12262         recursive calls.
12263         (build_component_ref): Update call to lookup_field.
12264         (set_init_label): Use lookup_field to find initialized field.
12265         Handle returned list of fields like a sequence of designators.
12266
12267 2010-05-09  Richard Guenther  <rguenther@suse.de>
12268
12269         PR middle-end/44024
12270         * fold-const.c (tree_single_nonzero_warnv_p): Properly
12271         handle &FUNCTION_DECL.
12272
12273 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
12274
12275         PR c/4784
12276         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
12277         structures and unions recursively.
12278         (detect_field_duplicates): Move duplicate detection with a hash to
12279         detect_field_duplicates_hash.  Always use a hash if anonymous
12280         structures or unions are present.
12281         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
12282         give errors.
12283
12284 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12285
12286         PR target/44046
12287         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
12288         detect Atom, Core 2 and Core i7.
12289
12290 2010-05-09  Richard Guenther  <rguenther@suse.de>
12291
12292         * gcc.c (store_arg): Handle temporary file deletion for
12293         joined arguments.
12294
12295 2010-05-09  Richard Guenther  <rguenther@suse.de>
12296
12297         PR middle-end/44043
12298         * ipa-inline.c (estimate_function_body_sizes): Return after
12299         disregarding inline limits.
12300
12301 2010-05-09  Richard Guenther  <rguenther@suse.de>
12302
12303         * gcc.c (store_arg): Revert last change.
12304
12305 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
12306
12307         PR middle-end/28685
12308         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
12309         (optimize_ops_list): Call it.
12310
12311 2010-05-08  Richard Guenther  <rguenther@suse.de>
12312
12313         PR tree-optimization/44030
12314         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
12315         NECESSARY flag if we propagate from a inserted expression.
12316
12317 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
12318
12319         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
12320         domain types as equal if they are both PLACEHOLDER_EXPRs.
12321
12322 2010-05-08  Richard Guenther  <rguenther@suse.de>
12323
12324         * lto-wrapper.c (run_gcc): Remove linker output from
12325         command line for LTRANS invocation.
12326
12327 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
12328
12329         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12330         lto-macho as lto_binary_reader.
12331         * target.h (struct gcc_target): New hooks lto_start and lto_end.
12332         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
12333         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
12334         in lto_start and lto_end calls.
12335         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
12336         magic numbers.
12337         (scan_prog_file): Update is_elf_or_coff call.
12338         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
12339
12340         * collect2.c (main): Fix enum comparison.
12341
12342         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
12343         Add prototypes.
12344         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
12345         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
12346         and TARGET_ASM_LTO_END.
12347         * darwin.c: Include obstack.h and lto-streamer.h.
12348         (lto_section_names_offset, lto_section_names_obstack,
12349         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
12350         global variables.
12351         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
12352         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
12353         to a temporary file.
12354         (darwin_asm_lto_end): New function.  Restore asm_out_file.
12355         (darwin_asm_named_section): For LTO sections, replace the name with
12356         the offset of the section name in a string table, and build this
12357         table.
12358         (darwin_file_start): Initialize global vars for LTO support.
12359         (darwin_file_end): If output to asm_out_file was redirected, append it
12360         to the proper asm_out_file here.  Add the section names section.
12361
12362 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
12363
12364         * c-pragma.c (pending_weak_d, pending_weak): New.
12365         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
12366         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
12367         handle_pragma_weak): Update the uses of pending_weaks.
12368
12369 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12370
12371         PR documentation/44016
12372         * doc/standards.texi (Standards): Link to unversioned
12373         cxx0x_status.html page.
12374
12375 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
12376
12377         PR target/43708
12378         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
12379         in addition to TREE_USED, to avoid "set but unused" warnings.
12380
12381 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
12382
12383         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
12384         (is_loop_prefetching_profitable): Do not insert prefetches
12385         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
12386         times the prefetch ahead distance.
12387
12388 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
12389
12390         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
12391         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
12392         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
12393         the unroll_factor.
12394
12395 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
12396
12397         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
12398         a diagnostic info when the insn-to-mem ratio is too small.
12399
12400 2010-05-07  Richard Guenther  <rguenther@suse.de>
12401
12402         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
12403         the linker plugin.
12404         (store_arg): Queue temp_filename for deletion instead of
12405         the whole argument.
12406
12407 2010-05-07  Richard Guenther  <rguenther@suse.de>
12408
12409         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
12410         (run_gcc): Handle LTRANS phase invocation.
12411         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
12412
12413 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
12414
12415         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
12416         this is also meaningful on PARM_DECLs and RESULT_DECLs.
12417
12418 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12419
12420         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
12421
12422 2010-05-07  Richard Guenther  <rguenther@suse.de>
12423
12424         PR tree-optimization/44020
12425         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
12426         code when PRE is not yet initialized.
12427
12428 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12429
12430         * config/mips/dbxmdebug.h: Remove.
12431         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
12432
12433 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
12434
12435         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
12436         with null pointer and also warn about ordered comparison of zero with
12437         pointer if -Wextra.
12438
12439 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12440
12441         * graphite-blocking.c
12442         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
12443         * graphite-clast-to-gimple.c
12444         (clast_to_gcc_expression): Same.
12445         (precision_for_value): Same.
12446         (precision_for_interval): Same.
12447         (gcc_type_for_interval): Same.
12448         (graphite_create_new_guard): Same.
12449         (compute_bounds_for_level): Same.
12450         (graphite_create_new_loop_guard): Same.
12451         * graphite-interchange.c
12452         (build_linearized_memory_access): Same.
12453         (pdr_stride_in_loop): Same.
12454         (memory_strides_in_loop_1): Same.
12455         (memory_strides_in_loop): Same.
12456         (extend_scattering): Same.
12457         (psct_scattering_dim_for_loop_depth): Same.
12458         (pbb_number_of_iterations): Same.
12459         * graphite-poly.h
12460         (debug_iteration_domains): Same.
12461         * graphite-ppl.c
12462         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12463         (ppl_set_inhomogeneous_gmp): Same.
12464         (ppl_strip_loop): Same.
12465         (ppl_lexico_compare_linear_expressions): Same.
12466         (ppl_read_polyhedron_matrix): Same.
12467         (ppl_max_for_le_pointset): Same.
12468         * graphite-ppl.h
12469         (ppl_read_polyhedron_matrix): Same.
12470         (tree_int_to_gmp): Same.
12471         (gmp_cst_to_tree): Same.
12472         (ppl_set_inhomogeneous): Same.
12473         (ppl_set_inhomogeneous_tree): Same.
12474         (ppl_set_coef): Same.
12475         (ppl_set_coef_tree): Same.
12476         * graphite-sese-to-poly.c
12477         (build_pbb_scattering_polyhedrons): Same.
12478         (build_scop_scattering): Same.
12479         (scan_tree_for_params_right_scev): Same.
12480         (scan_tree_for_params): Same.
12481         (find_params_in_bb): Same.
12482         (find_scop_parameters): Same.
12483         (add_upper_bounds_from_estimated_nit): Same.
12484         (build_loop_iteration_domains): Same.
12485         (add_condition_to_domain): Same.
12486         (pdr_add_memory_accesses): Same.
12487
12488 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12489
12490         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
12491         CLooG's value_* macros to their respective mpz_* counterparts.
12492         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
12493         (graphite_create_new_loop_guard): Same.
12494         * graphite-interchange.c (build_linearized_memory_access): Same.
12495         (pdr_stride_in_loop): Same.
12496         (memory_strides_in_loop_1): Same.
12497         (1st_interchange_profitable_p): Same.
12498         * graphite-poly.c (extend_scattering): Same.
12499         (psct_scattering_dim_for_loop_depth): Same.
12500         (pbb_number_of_iterations): Same.
12501         (pbb_number_of_iterations_at_time): Same.
12502         * graphite-poly.h (new_1st_loop): Same.
12503         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
12504         (oppose_constraint): Same.
12505         (insert_constraint_into_matrix): Same.
12506         (ppl_set_inhomogeneous_gmp): Same.
12507         (ppl_set_coef_gmp): Same.
12508         (ppl_strip_loop): Same.
12509         (ppl_lexico_compare_linear_expressions): Same.
12510         (ppl_max_for_le_pointset): Same.
12511         (ppl_min_for_le_pointset): Same.
12512         (ppl_build_realtion): Same.
12513         * graphite-ppl.h (gmp_cst_to_tree): Same.
12514         (ppl_set_inhomogeneous): Same.
12515         (ppl_set_inhomogeneous_tree): Same.
12516         (ppl_set_coef): Same.
12517         (ppl_set_coef_tree): Same.
12518         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
12519         (build_scop_scattering): Same.
12520         (add_value_to_dim): Same.
12521         (scan_tree_for_params_right_scev): Same.
12522         (scan_tree_for_params_int): Same.
12523         (scan_tree_for_params): Same.
12524         (find_params_in_bb): Same.
12525         (find_scop_parameters): Same.
12526         (add_upper_bounds_from_estimated_nit): Same.
12527         (build_loop_iteration_domains): Same.
12528         (create_linear_expr_from_tree): Same.
12529         (add_condition_to_domain): Same.
12530         (pdr_add_memory_accesses): Same.
12531
12532 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
12533             Jason Merrill  <jason@redhat.com>
12534
12535         * c-common.c (c_common_reswords): Add nullptr.
12536         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
12537         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
12538         (gen_type_die_with_usage): Likewise.
12539         * dbxout.c (dbxout_type): Likewise.
12540         * sdbout.c (plain_type_1): Likewise.
12541
12542 2010-05-06  Jason Merrill  <jason@redhat.com>
12543
12544         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
12545         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
12546         ret appropriately.
12547         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
12548
12549         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
12550         stripping WITH_SIZE_EXPR.
12551         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
12552         change.
12553
12554 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12555
12556         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
12557         list of obsolete configurations.
12558         Disabled check for obsolete configurations.
12559         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
12560         Removed support for previous versions.
12561         * config/mips/iris.h: Removed.
12562         * config/mips/iris5.h: Removed.
12563         * config/mips/iris6.h: Merged old iris.h contents.
12564         (TARGET_IRIX): Removed.
12565         (DRIVER_SELF_SPECS): Removed mabi=32.
12566         (IDENT_ASM_OP): Removed undef.
12567         (STARTFILE_SPEC): Removed mabi=32.
12568         (ENDFILE_SPEC): Likewise.
12569         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
12570         (MACHINE_TYPE): Update for IRIX 6.5.
12571         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
12572         TARGET_IRIX by TARGET_IRIX6.
12573         (mips_file_start): Likewise.
12574         (mips_output_external): Remove IRIX 5/6 O32 support.
12575         (mips_output_function_prologue): Likewise.
12576         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
12577         TARGET_IRIX6.
12578         (TARGET_CPU_CPP_BUILTINS): Likewise.
12579         (TARGET_IRIX): Removed.
12580         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
12581         (MULTILIB_DIRNAMES): Removed 32.
12582         (MULTILIB_OSDIRNAMES): Removed ../lib.
12583         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
12584         (Specific, mips-sgi-irix5): Document removal.
12585         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
12586         Remove references to older IRIX 6 releases and the O32 ABI.
12587
12588 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
12589
12590         PR bootstrap/43994
12591         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
12592         instead of DF_REF_REAL_REG.
12593
12594 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
12595
12596         PR target/43888
12597         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
12598         handling to still return true for x64 targets.
12599
12600 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12601
12602         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
12603
12604 2010-05-06  Jan Hubicka  <jh@suse.cz>
12605
12606         PR tree-optimization/43791
12607         * ipa-inline.c (update_caller_keys): Remove bogus
12608         disregard_inline_limits check.
12609
12610 2010-05-06  Michael Matz  <matz@suse.de>
12611
12612         PR tree-optimization/43984
12613         * tree-ssa-pre.c (inserted_phi_names): Remove.
12614         (inserted_exprs): Change to bitmap.
12615         (create_expression_by_pieces): Set bits, don't append to vector.
12616         (insert_into_preds_of_block): Don't handle inserted_phi_names.
12617         (eliminate): Don't look at inserted_phi_names, remove deleted
12618         insns from inserted_exprs.
12619         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
12620         (init_pre, fini_pre): Allocate and free bitmaps.
12621         (execute_pre): Insert insns on edges before elimination.
12622
12623 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
12624
12625         * tree.c (initializer_zerop): Handle STRING_CST.
12626
12627 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12628
12629         PR 40989
12630         * doc/invoke.texi (Wimplicit): Document as C only.
12631         * opts.c (common_handle_option): Add argument kind.
12632         (handle_option): Rename as read_cmdline_option. Factor out code to...
12633         (handle_option): ... here. New.
12634         (handle_options): Rename as read_cmdline_options.
12635         (decode_options): Update call.
12636         (set_option): Use option index instead of option pointer. Classify
12637         diagnostics correctly.
12638         (enable_warning_as_error): Call handle_option.
12639         * opts.h (set_option): Update declaration.
12640         (handle_option): Declare.
12641         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
12642         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
12643         * c-opts.c (set_Wimplicit): Delete.
12644         (c_family_lang_mask): New static constant.
12645         (c_common_handle_option): Add argument kind. Use handle_option
12646         instead of set_Wimplicit.
12647         (c_common_post_options): warn_implicit and warn_implicit_int
12648         are disabled by default.
12649         * c-common.c (warn_implicit): Do not define here.
12650         * c-common.h (warn_implicit): Do not declare here.
12651         (c_common_handle_option): Update declaration.
12652         * lto-opts.c (lto_reissue_options): Update call to set_option.
12653
12654 2010-05-06  Richard Guenther  <rguenther@suse.de>
12655
12656         PR tree-optimization/43571
12657         * domwalk.c (walk_dominator_tree): Walk the dominator
12658         sons in more optimal order.
12659
12660 2010-05-06  Richard Guenther  <rguenther@suse.de>
12661
12662         PR tree-optimization/43934
12663         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
12664         (stmt_cost): Likewise.
12665         (extract_true_false_args_from_phi): New helper.
12666         (determine_max_movement): For PHI nodes verify we can hoist them
12667         and compute their cost.
12668         (determine_invariantness_stmt): Handle PHI nodes.
12669         (move_computations_stmt): Likewise.  Hoist PHI nodes in
12670         if-converted form using COND_EXPRs.
12671         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
12672         (tree_ssa_lim): Likewise.
12673         * tree-flow.h (tree_ssa_lim): Adjust prototype.
12674         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
12675
12676 2010-05-06  Richard Guenther  <rguenther@suse.de>
12677
12678         PR tree-optimization/43987
12679         * tree-ssa-structalias.c (could_have_pointers): For possibly
12680         address-taken variables force pointers to be recorded.
12681         (create_variable_info_for_1): Likewise.
12682         (push_fields_onto_fieldstack): Pass in wheter all fields
12683         must have pointers.
12684         (find_func_aliases): Query types instead of vars whether
12685         they contain pointers where appropriate.
12686
12687 2010-05-06  Jan Hubicka  <jh@suse.cz>
12688
12689         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
12690         (record_reference, mark_address, mark_load, mark_store): Record
12691         references.
12692         (record_references_in_initializer): Update call of record_references.
12693         (rebuild_cgraph_edges): Remove all references before rebuiding.
12694         * cgraph.c (cgraph_create_node): Clear ref list.
12695         (cgraph_remove_node): Remove references.
12696         (dump_cgraph_node): Dump references.
12697         (cgraph_clone_node): Clone references.
12698         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
12699         (struct cgraph_node, varpool_node): Add ref_lst.
12700         * ipa-ref.c: New file.
12701         * ipa-ref.h: New file.
12702         * ipa-ref-inline.h: New file.
12703         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
12704         (referenced_from_other_partition_p): New function.
12705         (lto_output_varpool_node): Take set arugment; call
12706         referenced_from_other_partition.
12707         (lto_output_ref): New.
12708         (add_references): New.
12709         (output_refs): New.
12710         (output_cgraph): Compute boundary based on references; output refs.
12711         (output_varpool): Accept cgraph_node_set argument.
12712         (input_ref): New.
12713         (input_refs): New.
12714         (input_cgraph): Call input_refs.
12715         * lto-section-in.c (lto_section_name): Add refs.
12716         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
12717         (ipa-ref.o): New file.
12718         * varpool.c (varpool_node): Clear ipa ref list.
12719         (varpool_remove_node): Remove references.
12720         (dump_varpool_node): Dump references.
12721         (varpool_assemble_decl): Only compile finalized ones.
12722         (varpool_extra_name_alias): Initialize ref list.
12723         * lto-streamer.c (lto-get_section_name): Add .refs section.
12724         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
12725         (referenced_from_other_partition_p): Declared.
12726
12727 2010-05-06  Ira Rosen  <irar@il.ibm.com>
12728
12729         PR tree-optimization/43901
12730         * tree-vect-stmts.c (vectorizable_call): Assert that vector
12731         type is not NULL if it's transformation phase, and return
12732         FALSE if it's analysis.
12733         (vectorizable_conversion, vectorizable_operation,
12734         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
12735
12736 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
12737
12738         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12739         Delete.
12740         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12741         New define.
12742         * config/mips/mips-protos.h
12743         (mips_small_register_classes_for_mode_p): Delete prototype.
12744
12745 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
12746
12747         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
12748         * config/arm/arm.c (multiple_operation_profitable_p,
12749         compute_offset_order): New static functions.
12750         (load_multiple_sequence, store_multiple_sequence): Use them.
12751         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
12752         memory offsets, not register numbers.
12753         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
12754
12755 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
12756
12757         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
12758         (get_pending_sizes, put_pending_size, put_pending_sizes):
12759         Update the uses of pending_sizes.
12760         * c-decl.c (store_parm_decls): Likewise.
12761         * c-tree.h (struct c_arg_info): Likewise.
12762         * tree.h: Update the prototype for get_pending_sizes and
12763         put_pending_sizes.
12764
12765 2010-05-05  Jason Merrill  <jason@redhat.com>
12766
12767         PR debug/43370
12768         * c-common.c (handle_aligned_attribute): Respect
12769         ATTR_FLAG_TYPE_IN_PLACE.
12770
12771         PR testsuite/43758
12772         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
12773         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12774         (TARGET_INITIALIZER): Use it.
12775         * c-common.c (attribute_takes_identifier_p): Call it.
12776         * c-common.h: Update prototype.
12777         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
12778         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12779
12780 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
12781
12782         PR debug/43950
12783         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
12784         DW_ID_down_case for Fortran compilation units.
12785
12786 2010-05-05  Jan Hubicka  <jh@suse.cz>
12787
12788         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
12789         handle aliases.
12790
12791 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
12792
12793         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
12794         a variable-sized RESULT_DECL.
12795
12796 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
12797
12798         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
12799
12800 2010-05-05  Jason Merrill  <jason@redhat.com>
12801
12802         PR c++/43787
12803         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
12804         returns GS_OK.
12805         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
12806
12807 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
12808             Jakub Jelinek  <jakub@redhat.com>
12809
12810         PR debug/43478
12811         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
12812         (dead_debug_init, dead_debug_finish): New functions.
12813         (dead_debug_add, dead_debug_insert_before): Likewise.
12814         (df_note_bb_compute): Initialize a dead_debug object, add dead
12815         debug uses to it, insert debug bind insns before death insns,
12816         reset debug insns that refer to pending uses at the end.
12817         * rtl.h (make_debug_expr_from_rtl): New prototype.
12818         * varasm.c (make_debug_expr_from_rtl): New function.
12819
12820 2010-05-05  Jan Hubicka  <jh@suse.cz>
12821
12822         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
12823         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
12824         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
12825         lto_varpool_encoder_deref, lto_varpool_encoder_size,
12826         lto_varpool_encoder_encode_initializer_p,
12827         lto_set_varpool_encoder_encode_initializer): New functions.
12828         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
12829         call output_varpool.
12830         (input_varpool_node): Do not always set analyzed.
12831         (input_cgraph_1): Return vector of cgraph nodes.
12832         (input_varpool_1): Return vector of varpools.
12833         (input_cgraph): Free the vectors.
12834         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12835         output only initializers needed.
12836         (lto_output): Only call output_cgraph.
12837         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
12838         * lto-section-out.c (lto_new_out_decl_state): Initialize
12839         state->varpool_node_encoder.
12840         * lto-streamer.h (lto_varpool_encoder_d): New.
12841         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
12842         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
12843         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
12844         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
12845         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
12846         Declare.
12847         (output_varpool, input_varpool): Remove declarations.
12848
12849 2010-05-05  Jan Hubicka  <jh@suse.cz>
12850
12851         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
12852         with body can prevail.
12853
12854 2010-05-05  Jan Hubicka  <jh@suse.cz>
12855
12856         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
12857         size.
12858
12859 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12860
12861         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
12862
12863         * gengtype.h (erro_at_line): Constify pos argument.
12864
12865         * gengtype.c: Include hashtab.h.
12866         (enum gc_used): Document GC_MAYBE_POINTED_TO.
12867         (error_at_line): Constify pos argument.
12868         (do_typedef): Initialize p->opt field.
12869         (get_file_gtfilename): Fix comment typo.
12870         (struct walk_type_data): Constify line field.
12871         (get_output_file_for_structure): New function.
12872         (write_local_func_for_structure): Constify orig_s argument.
12873         Use get_output_file_for_structure.
12874         (write_func_for_structure): Use get_output_file_for_structure.
12875         (INDENT): New define.
12876         (dump_pair, dump_type, dump_type_list, dump_typekind)
12877         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
12878         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
12879         functions.
12880         (seen_types): New variable.
12881         (main): New variable do_dump.  Process "-d" command line option.
12882         Call dump_everything if dump requested.
12883
12884 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
12885
12886         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
12887         in a temporary instead of invoking the macro multiple times.
12888         (track_expr_p): Likewise.
12889
12890 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
12891
12892         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
12893         per new semantics.
12894         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
12895         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
12896         conditions for printing notes.
12897         * common.opt (-Wcoverage-mismatch): Allow negative, default to
12898         true, update documentation.
12899         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
12900
12901 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
12902
12903         PR c/43981
12904         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
12905         on dimen.
12906
12907 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
12908
12909         PR target/43799
12910         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
12911         (*sse_prologue_save_insn1): Likewise.
12912         (SSE prologue save splitter): Likewise.
12913
12914 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
12915
12916         * tree.c (free_lang_data_in_one_sizepos): New inline function.
12917         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
12918         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
12919         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
12920         all decls.  Call it on DECL_FIELD_OFFSET of fields.
12921         (find_decls_types_r): Follow DECL_VALUE_EXPR.
12922         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
12923
12924 2010-05-04  Martin Jambor  <mjambor@suse.cz>
12925
12926         * tree-sra.c (build_access_from_expr_1): The first parameter type
12927         changed to simple tree.
12928         (build_access_from_expr): Likewise, gsi parameter was eliminated.
12929         (scan_assign_result): Renamed to assignment_mod_result, enum elements
12930         renamed as well.
12931         (build_accesses_from_assign): Removed all parameters except for a
12932         simple gimple statement.  Now returns a simple bool.
12933         (scan_function): All non-analysis parts moved to separate functions
12934         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
12935         parameters and updated both callers.
12936         (sra_modify_expr): Removed parameter data.
12937         (sra_modify_function_body): New function.
12938         (perform_intra_sra): Call sra_modify_function_body to modify the
12939         function body.
12940         (replace_removed_params_ssa_names): Parameter data changed into
12941         adjustments vector.
12942         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
12943         changed the parameter dont_convert to convert with the opposite
12944         meaning.
12945         (sra_ipa_modify_assign): Parameter data changed into adjustments
12946         vector, return value changed to bool.
12947         (ipa_sra_modify_function_body): New function.
12948         (sra_ipa_reset_debug_stmts): Updated a comment.
12949         (modify_function): Use ipa_sra_modify_function_body to modify function
12950         body.
12951
12952 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
12953
12954         PR middle-end/43671
12955         * alias.c (true_dependence): Handle the same VALUE in x and mem.
12956         (canon_true_dependence): Likewise.
12957         (write_dependence_p): Likewise.
12958
12959 2010-05-04  Jan Hubicka  <jh@suse.cz>
12960
12961         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
12962         * cgraphbuild.c: Include ipa-utils.h
12963         (record_reference_ctx): New struct.
12964         (record_reference): Simplify to work on initializers; not statements.
12965         (mark_address, mark_load, mark_store): New.
12966         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12967         walk PHI nodes too.
12968         (record_references_in_initializer): Update use of record_reference.
12969         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
12970         walk PHI nodes too.
12971
12972 2010-05-04  Jan Hubicka  <jh@suse.cz>
12973
12974         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
12975         node will be removed anyway.
12976         (lto_varpool_replace_node): Allow also unanalyzed nodes;
12977         relink aliases of node into prevailing node.
12978         * varpool.c (varpool_remove_node): Remove aliases properly;
12979         when removing node, remove all its aliases too; remove DECL_INITIAL
12980         of removed node; ggc_free the varpool node.
12981
12982 2010-05-04  Richard Guenther  <rguenther@suse.de>
12983
12984         PR tree-optimization/43879
12985         * tree-ssa-structalias.c (alias_get_name): Use
12986         DECL_ASSEMBLER_NAME if available.
12987         (create_function_info_for): Return the varinfo node.
12988         (ipa_pta_execute): Associate same-body aliases and extra names
12989         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
12990
12991 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
12992
12993         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
12994
12995 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
12996
12997         PR bootstrap/43964
12998         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
12999         only if HONOR_REG_ALLOC_ORDER is not defined.
13000
13001 2010-05-04  Richard Guenther  <rguenther@suse.de>
13002
13003         PR tree-optimization/43949
13004         * tree-vrp.c (extract_range_from_binary_expr): Only handle
13005         TRUNC_MOD_EXPR.
13006
13007 2010-04-26  Jason Merrill  <jason@redhat.com>
13008
13009         * c.opt (-fstrict-enums): New.
13010         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
13011
13012 2010-05-03  David Ung  <davidu@mips.com>
13013             James E. Wilson  <wilson@codesourcery.com>
13014
13015         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
13016         emit the trap instruction before the divide for TUNE_74K.
13017
13018 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
13019
13020         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
13021         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
13022         based on the above, for new target hook.
13023
13024         * hooks.c (hook_bool_mode_true): New generic hook.
13025         * hooks.h (hook_bool_mode_true): Add prototype.
13026
13027         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
13028         target hook.
13029         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
13030         target hook, set to hook_bool_mode_false.
13031         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
13032         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
13033         with targetm.small_register_classes_for_mode_p.
13034         (find_reusable_reload): Likewise.
13035         (combine_reloads): Likewise.
13036         * reload1.c (reload_as_needed): Likewise.
13037         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
13038         * ifcvt.c (noce_process_if_block, check_cond_move_block,
13039         dead_or_predicable): Likewise.
13040         * regmove.c (optimize_reg_copy_1): Likewise.
13041         * calls.c (prepare_call_address): Likewise.
13042         (precompute_register_parameters): Likewise.
13043
13044         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
13045         hook definition.
13046         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
13047         implementation of the hook that considers all register classes
13048         small except for SH64.
13049         (sh_override_options): Use the new hook.
13050         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
13051         Add prototype.
13052
13053         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
13054         hook definition.
13055         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
13056         implementation of the hook that considers all register classes
13057         small for THUMB1.
13058         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
13059         Add prototype.
13060
13061         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
13062         hook definition.
13063         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
13064         implementation of the hook that considers all register classes
13065         small for MIPS16.
13066         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
13067         Add prototype.
13068
13069         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
13070         hook definition.
13071         * config/m32c/m32c.h: Likewise.
13072         * config/pdp11/pdp11.h: Likewise.
13073         * config/avr/avr.h: Likewise.
13074         * config/xtensa/xtensa.h: Likewise.
13075         * config/m68hc11/m68hc11.h: Likewise.
13076         * config/mn10300/mn10300.h: Likewise.
13077         * config/mcore/mcore.h: Likewise.
13078         * config/h8300/h8300.h: Likewise.
13079         * config/bfin/bfin.h: Likewise.
13080
13081         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
13082         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
13083
13084 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
13085
13086         * double-int.h (tree_to_double_int): Remove macro.
13087         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
13088         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13089         (tree_to_double_int): New function.
13090         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
13091         Move ...
13092         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13093
13094 2010-05-03  Richard Guenther  <rguenther@suse.de>
13095
13096         PR tree-optimization/43971
13097         * tree-ssa-structalias.c (get_constraint_for_1): Fix
13098         constraints in the !flag_delete_null_pointer_checks case.
13099
13100 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
13101
13102         PR debug/43972
13103         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
13104         result mode matches original rtl mode.
13105
13106 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
13107
13108         PR target/43888
13109         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
13110
13111 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13112
13113         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
13114         when processing flag options.
13115
13116 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13117
13118         * gcov-iov.c (main): Change format string placeholder
13119         from %#08x to 0x%08x.
13120         * genchecksum.c (dosum): Change format string placeholder
13121         from %#02x to 0x%02x.
13122
13123 2010-05-02  Richard Guenther  <rguenther@suse.de>
13124
13125         PR tree-optimization/43879
13126         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
13127
13128 2010-05-02  Bruno Haible  <bruno@clisp.org>
13129
13130         * doc/extend.texi (Function Attributes): Fix a typo.
13131
13132 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13133
13134         Revert:
13135         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
13136         placeholder from 0x%x to %#x.
13137         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
13138         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13139         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13140         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13141         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13142         * config/i386/i386.c (ix86_target_string): Ditto.
13143         * config/i386/i386.c (output_pic_addr_const): Ditto.
13144         (print_operand): Ditto.
13145
13146 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
13147
13148         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
13149         placeholder from 0x%x to %#x.
13150         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
13151         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
13152         (ASM_OUTPUT_DEBUG_DATA): Ditto.
13153         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
13154         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
13155         * optc-gen.awk: Ditto.
13156         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
13157         (HOST_WIDE_INT_PRINT_HEX): Ditto.
13158         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
13159         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
13160
13161 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
13162
13163         * target.h (struct calls): Add function_value_regno_p field.
13164         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
13165         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
13166         * targhooks.c (default_function_value_regno_p): New function.
13167         * targhooks.h (default_function_value_regno_p): Declare function.
13168         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
13169         * builtins.c. (apply_result_size): (Ditto.).
13170         * combine.c. (likely_spilled_retval_p): (Ditto.).
13171         * mode-switching.c. Include 'target.h'.
13172         (create_pre_exit): Use function_value_regno_p hook.
13173         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
13174         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
13175         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
13176
13177         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
13178         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
13179         (ix86_function_value_regno_p): Declare as static, change argument
13180         type to const unsigned int.
13181         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
13182
13183 2010-05-01  Richard Guenther  <rguenther@suse.de>
13184
13185         PR tree-optimization/43949
13186         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
13187         types.
13188         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
13189
13190 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
13191
13192         * rtl.h (CONST_DOUBLE_P): Define.
13193         (rtx_to_double_int): Declare.
13194         * emit-rtl.c (rtx_to_double_int): New function.
13195         * dwarf2out.c (insert_double): New function.
13196         (loc_descriptor, add_const_value_attribute): Clean up, use
13197         rtx_to_double_int and insert_double functions.
13198
13199 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
13200
13201         * doc/extend.texi (Inline): Add missing return keyword to examples.
13202         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
13203         "command-line".
13204
13205 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
13206
13207         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
13208         the variable part of the offset as well.  Use highest_pow2_factor for
13209         all alignment checks.
13210
13211 2010-04-30  Richard Guenther  <rguenther@suse.de>
13212
13213         PR tree-optimization/43879
13214         * tree-ssa-structalias.c (type_could_have_pointers): Functions
13215         can have pointers.
13216
13217 2010-04-30  Jan Hubicka  <jh@suse.cz>
13218
13219         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
13220         varpool.
13221         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
13222
13223 2010-04-30  Jan Hubicka  <jh@suse.cz>
13224
13225         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
13226         New.
13227         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
13228         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
13229         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
13230         cgraph_node_set_needs_ltrans_p): Remove.
13231
13232 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
13233
13234         * sdbout.c: Include vec.h, do not include varray.h.
13235         (deferred_global_decls, sdbout_global_decl,
13236         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
13237         * toplev.c: Do not include varray.h.
13238         (dump_memory_report): Do not dump VARRAY statistics.
13239         * gengtype.c (open_base_file): Ignore varray.h.
13240         * Makefile.in: Update for abovementioned changes.
13241         Remove all traces of varray.c and varray.h.
13242         * varray.c: Remove file.
13243         * varray.h: Remove file.
13244
13245 2010-04-30  Jan Hubicka  <jh@suse.cz>
13246
13247         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
13248         references.
13249
13250 2010-04-30  Jan Hubicka  <jh@suse.cz>
13251
13252         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
13253         needed.
13254
13255 2010-04-30  Richard Guenther  <rguenther@suse.de>
13256
13257         * tree-ssa-structalias.c (get_constraint_for_1): Generate
13258         constraints for CONSTRUCTOR.
13259
13260 2010-04-30  Richard Guenther  <rguenther@suse.de>
13261
13262         PR lto/43946
13263         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
13264         first after all lowering passes.
13265
13266 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
13267
13268         * toplev.c: Include varray.h for statistics dumping.
13269         * tree.h: Do not declare varray_head_tag.
13270         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
13271         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
13272         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
13273         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
13274         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
13275         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
13276         c-common.c, c-common.h, reg-stack.c, basic-block.h,
13277         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
13278         include varray.h.
13279         * Makefile.in: Update for abovementioned changes.
13280
13281 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
13282
13283         PR debug/43942
13284         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
13285
13286 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13287
13288         * config/picochip/picochip.c (picochip_legitimize_address): Define.
13289         Use this function to do machine-specific conversion.
13290         (picochip_legitimize_reload_address): Likewise.
13291         (picochip_legitimate_address_p): Check valid base register only if
13292         strict.
13293         (picochip_check_conditional_copy): Check for modw only if opnd is
13294         register.
13295         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
13296         to call the function in c.
13297         * config/picochip/picochip-protos.h
13298         (picochip_legitimize_reload_address): Define.
13299         * config/picochip/picochip.md (supported_compare1): Define.
13300
13301 2010-04-30  Jan Hubicka  <jh@suse.cz>
13302
13303         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
13304         (cgraph_global_info): Remove inlined.
13305         (LTO_cgraph_tag_names): Remove.
13306         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
13307         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
13308         simplify cgraph tags and document.
13309         (lto_output_node): Use only LTO_cgraph_unavail_node and
13310         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
13311         for_functions_valid, global info, process and output flags.
13312         (input_overwrite_node): Initialize estimated stack size and
13313         estimated growth.  Do not read flags we no longer store.
13314         (input_node): Likewise do not read info no longer stored.
13315         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
13316         flag.
13317
13318 2010-04-30  Richard Guenther  <rguenther@suse.de>
13319
13320         PR tree-optimization/43879
13321         * tree-ssa-structalias.c (get_constraint_for_1): Properly
13322         handle non-zero initializers.
13323
13324 2010-04-30  Richard Guenther  <rguenther@suse.de>
13325
13326         * builtins.c (fold_builtin_1): Delete free (0).
13327
13328 2010-04-29  Jan Hubicka  <jh@suse.cz>
13329
13330         * gengtype.c (open_base_files): Add lto-streamer.h
13331         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
13332         (pass_ipa_cp): GGC collect.
13333         * toplev. (compile_file): Do not output symbols.
13334         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
13335         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
13336         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
13337         * lto-section-in.c: Include ggc.h
13338         (lto_new_in_decl_state): Alloc in GGC.
13339         (lto_delete_in_decl_state): Likewise.
13340         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
13341         Collect.
13342
13343 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
13344
13345         PR target/42895
13346         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
13347         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
13348         (HONOR_REG_ALLOC_ORDER): Describe new macro.
13349         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
13350         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
13351         account only if HONOR_REG_ALLOC_ORDER is not defined.
13352         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
13353         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
13354
13355 2010-04-29  Jon Grant  <04@jguk.org>
13356
13357         * collect2.c (vflag): Change type from int to bool.
13358         (debug): Likewise.
13359         (helpflag): New global bool.
13360         (main): Set vflag and debug with boolean, not integer truth values.
13361         Accept new "--help" option and output usage text if found.
13362         * collect2.h (vflag): Update prototype.
13363         (debug): Likewise.
13364
13365 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
13366
13367         PR bootstrap/43936
13368         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
13369
13370 2010-04-29  Richard Guenther  <rguenther@suse.de>
13371
13372         PR bootstrap/43935
13373         * plugin.h (invoke_plugin_callbacks): Annotate arguments
13374         with ATTRIBUTE_UNUSED.
13375
13376 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
13377
13378         PR target/43921
13379         * config/i386/i386.c (get_some_local_dynamic_name): Replace
13380         INSN_P with NONDEBUG_INSN_P.
13381         (distance_non_agu_define): Likewise.
13382         (distance_agu_use): Likewise.
13383
13384 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
13385
13386         From Dominique d'Humieres  <dominiq@lps.ens.fr>
13387         PR bootstrap/43858
13388         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
13389         test_set.
13390
13391 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
13392
13393         * plugin.h (invoke_plugin_callbacks): New inline function.
13394         * plugin.c (flag_plugin_added): New global flag.
13395         (add_new_plugin): Initialize above flag.
13396         (invoke_plugin_callbacks): Rename to ...
13397         (invoke_plugin_callbacks_full): ... this.
13398
13399 2010-04-28  Jan Hubicka  <jh@suse.cz>
13400
13401         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
13402         (lto_varpool_replace_node): New.
13403         (lto_symtab_resolve_symbols): Resolve varpool nodes.
13404         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
13405         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
13406         * cgraph.h (varpool_node_ptr): New type.
13407         (varpool_node_ptr): New vector.
13408         (varpool_node_set_def): New structure.
13409         (varpool_node_set): New type.
13410         (varpool_node_set): New vector.
13411         (varpool_node_set_element_def): New structure.
13412         (varpool_node_set_element, const_varpool_node_set_element): New types.
13413         (varpool_node_set_iterator): New type.
13414         (varpool_node): Add prev pointers, add used_from_other_partition,
13415         in_other_partition.
13416         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
13417         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
13418         varpool_get_node, varpool_remove_node): Declare.
13419         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
13420         varpool_node_set_size): New inlines.
13421         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
13422         * tree-pass.h (varpool_node_set_def): Forward declare.
13423         (ipa_opt_pass_d): Summary writting takes vnode sets too.
13424         (ipa_write_optimization_summaries): Update prototype.
13425         * ipa-cp.c (ipcp_write_summary): Update.
13426         * ipa-reference.c (ipa_reference_write_summary): Update.
13427         * lto-cgraph.c (lto_output_varpool_node): New static function.
13428         (output_varpool): New function.
13429         (input_varpool_node): New static function.
13430         (input_varpool_1): New function.
13431         (input_cgraph): Input varpool.
13432         * ipa-pure-const.c (pure_const_write_summary): Update.
13433         * lto-streamer-out.c (lto_output): Update, output varpool too.
13434         (write_global_stream): Kill WPA hack.
13435         (produce_asm_for_decls): Update.
13436         (output_alias_pair_p): Handle variables.
13437         (output_unreferenced_globals): Output only needed partition of varpool.
13438         * ipa-inline.c (inline_write_summary): Update.
13439         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
13440         cgraph.
13441         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
13442         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
13443         varpool_node_set_new, varpool_node_set_add,
13444         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
13445         debug_varpool_node_set): New functions.
13446         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
13447         (execute_one_pass): Process new decls too.
13448         (ipa_write_summaries_2): Pass around vsets.
13449         (ipa_write_summaries_1): Likewise.
13450         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
13451         to add.
13452         (ipa_write_optimization_summaries_1): Pass around vsets.
13453         (ipa_write_optimization_summaries): Likewise.
13454         * varpool.c (varpool_get_node): New.
13455         (varpool_node): Update doubly linked lists.
13456         (varpool_remove_node): New.
13457         (dump_varpool_node): More dumping.
13458         (varpool_enqueue_needed_node): Update doubly linked lists.
13459         (decide_is_variable_needed): Kill ltrans hack.
13460         (varpool_finalize_decl): Kill lto hack.
13461         (varpool_assemble_decl): Skip decls in other partitions.
13462         (varpool_assemble_pending_decls): Update doubly linkes lists.
13463         (varpool_empty_needed_queue): Likewise.
13464         (varpool_extra_name_alias): Likewise.
13465         * lto-streamer.c (lto_get_section_name): Add vars section.
13466         * lto-streamer.h (lto_section_type): Update.
13467         (output_varpool, input_varpool): Declare.
13468
13469 2010-04-28  Mike Stump  <mikestump@comcast.net>
13470
13471         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
13472
13473 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
13474
13475         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
13476         record or union type with RECORD_OR_UNION_TYPE_P predicate.
13477         (lto_input_ts_type_tree_pointers): Likewise.
13478         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
13479         (lto_output_ts_type_tree_pointers): Likewise.
13480
13481 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
13482
13483         Uniquization of constants at the Tree level
13484         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
13485         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
13486         bit to the end.
13487         (tree_output_constant_def): Declare.
13488         * gimplify.c (gimplify_init_constructor): When using block copy, first
13489         uniquize the constant constructor on the RHS.
13490         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
13491         DECL_IN_CONSTANT_POOL flag.
13492         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
13493         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
13494         constant pool.
13495         (assemble_variable): Deal with symbols belonging to the tree constant
13496         pool.
13497         (get_constant_section): Add ALIGN parameter and simplify.
13498         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
13499         (assemble_constant_contents): Use the expression of the VAR_DECL.
13500         (output_constant_def_contents): Use the alignment of the VAR_DECL.
13501         (tree_output_constant_def): New global function.
13502         (mark_constant): Use the expression of the VAR_DECL.
13503         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
13504         its expression.
13505         (output_object_block): Likewise and assemble the expression.
13506
13507 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
13508
13509         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
13510         hash_tree, eq_tree): New tree hash table.
13511         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
13512         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
13513         lto_orig_address_remove): Reimplement.
13514
13515 2010-04-28  Xinliang David Li  <davidxl@google.com>
13516
13517         PR c/42643
13518         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
13519         (compute_uninit_opnds_pos): New function.
13520         (is_non_loop_exit_postdominating): New function.
13521         (compute_control_dep_chain): New function.
13522         (find_pdom): New function.
13523         (convert_control_dep_chain_into_preds): New function.
13524         (find_predicates): New function.
13525         (find_control_equiv_block): New function.
13526         (collect_phi_def_edges): New function.
13527         (find_def_preds): New function.
13528         (find_dom): New function.
13529         (dump_predicates): New function.
13530         (get_cmp_code): New function.
13531         (is_value_included_in): New function.
13532         (find_matching_predicate_in_rest_chains): New function.
13533         (use_pred_not_overlap_with_undef_path_pred): New function.
13534         (is_use_properly_guarded): New function.
13535         (normalize_cond_1): New function.
13536         (is_and_or_or): New function.
13537         (normalize_cond): New function.
13538         (is_gcond_subset_of): New function.
13539         (is_subset_of_any): New function.
13540         (is_or_set_subset_of): New function.
13541         (is_and_set_subset_of): New function.
13542         (is_norm_cond_subset_of): New function.
13543         (is_pred_expr_subset_of): New function.
13544         (is_pred_chain_subset_of): New function.
13545         (is_included_in): New function.
13546         (is_superset_of): New function.
13547         (find_uninit_use): New function.
13548         (warn_uninitialized_phi): New function.
13549         (compute_possibly_undefined_names): New function.
13550         (ssa_undefined_value_p): New function.
13551         (execute_late_warn_uninitialized): New function.
13552         * tree-ssa.c (ssa_undefined_value_p): Removed.
13553         (warn_uninit): Changed to extern.
13554         (warn_uninitialized_phi): Removed.
13555         (warn_uninitialized_vars): Changed to extern.
13556         (execute_late_warn_uninitialized): Removed
13557         * tree-flow.h: Add new prototypes.
13558         * timevar.def: Add new time variable.
13559         * Makefile.in: Add new build file.
13560
13561 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
13562
13563         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
13564         type if available.
13565
13566 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13567
13568         PR target/22224
13569         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
13570
13571 2010-04-28  Martin Jambor  <mjambor@suse.cz>
13572
13573         * cgraph.h (struct cgraph_node): New field indirect_calls.
13574         (struct cgraph_indirect_call_info): New type.
13575         (struct cgraph_edge): Removed field indirect_call. New fields
13576         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
13577         (cgraph_create_indirect_edge): Declare.
13578         (cgraph_make_edge_direct): Likewise.
13579         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
13580         * ipa-prop.h (struct ipa_param_call_note): Removed.
13581         (struct ipa_node_params): Removed field param_calls.
13582         (ipa_create_all_structures_for_iinln): Declare.
13583         * cgraph.c: Described indirect edges and uids in initial comment.
13584         (cgraph_add_edge_to_call_site_hash): New function.
13585         (cgraph_edge): Search also among the indirect edges, use
13586         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
13587         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
13588         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
13589         site hash.
13590         (initialize_inline_failed): Assign a reason to indirect edges.
13591         (cgraph_create_edge_1): New function.
13592         (cgraph_create_edge): Moved some functionality to
13593         cgraph_create_edge_1.
13594         (cgraph_create_indirect_edge): New function.
13595         (cgraph_edge_remove_callee): Add an assert checking for
13596         non-indirectness.
13597         (cgraph_edge_remove_caller): Special-case indirect edges.
13598         (cgraph_remove_edge): Likewise.
13599         (cgraph_set_edge_callee): New function.
13600         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
13601         (cgraph_make_edge_direct): New function.
13602         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
13603         the declaration of the call statement matches.
13604         (cgraph_node_remove_callees): Special-case indirect edges.
13605         (cgraph_clone_edge): Likewise.
13606         (cgraph_clone_node): Clone also the indirect edges.
13607         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
13608         indirect_call, dump count of indirect_calls edges.
13609         * ipa-prop.c (iinlining_processed_edges): New variable.
13610         (ipa_note_param_call): Create indirect edges instead of
13611         creating notes.  New parameter node.
13612         (ipa_analyze_call_uses): New parameter node, pass it on to
13613         ipa_note_param_call.
13614         (ipa_analyze_stmt_uses): Likewise.
13615         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
13616         (print_edge_addition_message): Work on edges rather than on notes.
13617         (update_call_notes_after_inlining): Likewise, renamed to
13618         update_indirect_edges_after_inlining.
13619         (ipa_create_all_structures_for_iinln): New function.
13620         (ipa_free_node_params_substructures): Do not free notes.
13621         (ipa_edge_duplication_hook): Propagate bits within
13622         iinlining_processed_edges bitmap.
13623         (ipa_node_duplication_hook): Do not duplicate notes.
13624         (free_all_ipa_structures_after_ipa_cp): Renamed to
13625         ipa_free_all_structures_after_ipa_cp.
13626         (free_all_ipa_structures_after_iinln): Renamed to
13627         ipa_free_all_structures_after_iinln.
13628         (ipa_write_param_call_note): Removed.
13629         (ipa_read_param_call_note): Removed.
13630         (ipa_write_indirect_edge_info): New function.
13631         (ipa_read_indirect_edge_info): Likewise.
13632         (ipa_write_node_info): Do not stream notes, do stream information
13633         in indirect edges.
13634         (ipa_read_node_info): Likewise.
13635         (lto_ipa_fixup_call_notes): Removed.
13636         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
13637         * ipa-inline.c (pass_ipa_inline): Likewise.
13638         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
13639         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
13640         * tree-inline.c (copy_bb): Removed an unnecessary double check for
13641         is_gimple_call.
13642         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
13643         edges.
13644         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
13645         (output_cgraph): Stream also indirect edges.
13646         (lto_output_edge): Added capability to stream indirect edges.
13647         (input_edge): Likewise.
13648         (input_cgraph_1): Likewise.
13649         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
13650         of indirect edges.
13651
13652 2010-04-28  Richard Guenther  <rguenther@suse.de>
13653
13654         PR tree-optimization/43879
13655         PR tree-optimization/43909
13656         * tree-ssa-structalias.c (struct variable_info): Add
13657         only_restrict_pointers flag.
13658         (new_var_info): Initialize it.  Increment stats.total_vars here.
13659         (create_function_info_for): Do not increment stats.total_vars here.
13660         (get_function_part_constraint): Fix build with C++.
13661         (insert_into_field_list): Remove.
13662         (push_fields_onto_fieldstack): Properly merge fields.
13663         (create_variable_info_for): Split and simplify.
13664         (create_variable_info_for_1): New piece.
13665         (intra_create_variable_infos): Properly make restrict constraints
13666         from parameters.
13667
13668 2010-04-28  Richard Guenther  <rguenther@suse.de>
13669
13670         PR c++/43880
13671         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
13672
13673 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13674             Jan Hubicka  <hubicka@ucw.cz>
13675
13676         * doc/invoke.texi (-Wsuggest-attribute=const,
13677         -Wsuggest-attribute=pure): Document.
13678         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
13679         (function_always_visible_to_compiler_p,
13680         suggest_attribute, warn_function_pure, warn_function_const):
13681         New functions.
13682         (check_call): Improve debug info.
13683         (analyze_function): Do not check availability.
13684         (add_new_function): Check availability.
13685         (propagate): Output warnings.
13686         (skip_function_for_local_pure_const): New function.
13687         (local_pure_const): Use it; output warnings.
13688         * common.opt (Wsuggest-attribute=const,
13689         Wsuggest-attribute=pure): New.
13690
13691 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
13692
13693         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
13694         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
13695         or DW_CFA_def_cfa_offset{,_sf}.
13696
13697 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13698
13699         * tree.h: Fix truncated long macros.
13700
13701 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
13702
13703         * collect2.c (TARGET_64BIT): Redefine to target's default.
13704         * tlink.c: Likewise.
13705         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
13706         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
13707         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
13708         for underscoring __USER_LABEL_PREFIX__.
13709         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
13710         (SUB_LINK_ENTRY32): New.
13711         (SUB_LINK_ENTRY64): New.
13712         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
13713         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
13714         (SUB_LINK_ENTRY64): New.
13715         (SUB_LINK_ENTRY): New.
13716         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
13717         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
13718         x64 target is choosen.
13719         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
13720         * configure: Regenerated.
13721         * configure.ac (leading-mingw64-underscores): Option added.
13722
13723 2010-04-27  Jan Hubicka  <jh@suse.cz>
13724
13725         * doc/invoke.texi (-fipa-profile): Document.
13726         * opts.c (decode_options): Enable ipa-profile at -O1.
13727         * timevar.def (TV_IPA_PROFILE): Define.
13728         * common.opt (fipa-profile): Add.
13729         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
13730         flag for clones.
13731         (cgraph_propagate_frequency): Handle only local ones.
13732         * tree-pass.h (pass_ipa_profile): Declare.
13733         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
13734         (pass_ipa_profile): Use TV_IPA_PROFILE.
13735         * ipa.c (ipa_profile): New function.
13736         (gate_ipa_profile): Likewise.
13737         (pass_ipa_profile): New global variable.
13738         * passes.c (pass_ipa_profile): New.
13739
13740 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
13741
13742         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
13743
13744 2010-04-27  Martin Jambor  <mjambor@suse.cz>
13745
13746         PR middle-end/43812
13747         * ipa.c (dissolve_same_comdat_group_list): New function.
13748         (function_and_variable_visibility): Call
13749         dissolve_same_comdat_group_list when comdat group contains external or
13750         newly local nodes.
13751         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
13752         lists are circular and that they contain only DECL_ONE_ONLY nodes.
13753
13754 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
13755
13756         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
13757         (const_hash_1) <VECTOR_CST>: New case.
13758         (compare_constant) <VECTOR_CST>: Likewise.
13759         <ADDR_EXPR>: Deal with LABEL_REFs.
13760         (copy_constant) <VECTOR_CST>: New case.
13761
13762 2010-04-27  Jan Hubicka  <jh@suse.cz>
13763
13764         * cgraph.c (cgraph_propagate_frequency): New function.
13765         * cgraph.h (cgraph_propagate_frequency): Declare.
13766         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
13767         cgraph_propagate_frequency.
13768
13769 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
13770
13771         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
13772
13773 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
13774
13775         PR target/40657
13776         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
13777         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
13778         here to determine which regs to push and how much stack to reserve.
13779
13780 2010-04-27  Jie Zhang  <jie@codesourcery.com>
13781
13782         * doc/gimple.texi (gimple_statement_with_ops): Remove
13783         addresses_taken field.
13784         (gimple_statement_with_memory_ops): Likewise.
13785
13786 2010-04-27  Jan Hubicka  <jh@suse.cz>
13787
13788         * tree-inline.c (eni_inlining_weights): Remove.
13789         (estimate_num_insns): Special case more builtins.
13790
13791 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
13792
13793         PR c/32207
13794         * c-typeck.c (build_binary_op): Move forward check for comparison
13795         pointer with null pointer constant and adjust the diagnostic message.
13796
13797 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
13798
13799         PR lto/42776
13800         * configure.ac (gcc_cv_as_section_has_align): Set if installed
13801         binutils supports extended .section directive needed by LTO, or
13802         warn if older binutils found.
13803         (LTO_BINARY_READER): New AC_SUBST'd variable.
13804         (LTO_USE_LIBELF): Likewise.
13805         * gcc/config.gcc (lto_binary_reader): New target-specific configure
13806         variable.
13807         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
13808         (LTO_USE_LIBELF): Likewise.
13809         * configure: Regenerate.
13810
13811         * collect2.c (is_elf): Rename from this ...
13812         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
13813          object files in addition to ELF-formatted ones.
13814         (scan_prog_file): Caller updated.  Also allow for LTO info marker
13815         symbol to be prefixed or not by an extra underscore.
13816
13817         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
13818         * config/i386/winnt.c: Also #include lto-streamer.h
13819         (i386_pe_asm_named_section): Specify 1-byte section alignment for
13820         LTO named sections.
13821         (i386_pe_asm_output_aligned_decl_common): Add comment.
13822         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
13823
13824 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
13825
13826         PR target/43889
13827         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
13828         Add missing earlyclobber for second alternative.
13829
13830 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
13831
13832         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
13833         bits for artificial defs at the top of the block.
13834         * fwprop.c (single_def_use_enter_block): Don't call it.
13835
13836 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
13837
13838         PR 43715
13839         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
13840         instead of "$gcc_cv_objdump -T".
13841         Use "-undefined dynamic_lookup" on darwin.
13842         * gcc/configure: Regenerate.
13843
13844 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13845
13846         PR c/43893
13847         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
13848
13849 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
13850
13851         * c-parser.c (struct c_token): Move location field up.
13852         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
13853         (struct c_declspecs): Convert typespec_word, storage_class, and
13854         default_int_p into bitfields.
13855         (struct c_declarator): Move loc field up.
13856
13857 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
13858
13859         * cfgloop.h (struct loop): Move can_be_parallel field up.
13860         * ipa-prop.h (struct ip_node_params): Move bitfields up.
13861         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
13862         down.
13863         (struct iv_cand): Convert pos field into a bitfield.
13864         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
13865         field up.
13866         (struct _stmt_vec_info): Shuffle fields for better packing.
13867
13868 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
13869
13870         * varasm.c (IN_NAMED_SECTION): Remove guard.
13871         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
13872         (IN_NAMED_SECTION_P): ...this.
13873         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
13874         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13875
13876 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
13877
13878         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
13879         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
13880         of shadowing it.  Fix comments.
13881
13882 2010-04-26  Jan Hubicka  <jh@suse.cz>
13883
13884         * cgraph.c (cgraph_create_node): Set node frequency to normal.
13885         (cgraph_clone_node): Copy function frequency.
13886         * cgraph.h (node_frequency): New enum
13887         (struct cgraph_node): Add.
13888         * final.c (rest_of_clean_state): Update.
13889         * lto-cgraph.c (lto_output_node): Output node frequency.
13890         (input_overwrite_node): Input node frequency.
13891         * tre-ssa-loop-ivopts (computation_cost): Update.
13892         * lto-streamer-out.c (output_function): Do not output function
13893         frequency.
13894         * predict.c (maybe_hot_frequency_p): Update and handle functions
13895         executed once.
13896         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
13897         attribute lookup.
13898         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
13899         (compute_function_frequency): Set noreturn functions to be executed
13900         once.
13901         (choose_function_section): Update.
13902         * lto-streamer-in.c (input_function): Do not input function frequency.
13903         * function.c (allocate_struct_function): Do not initialize function
13904         frequency.
13905         * function.h (function_frequency): Remove.
13906         (struct function): Remove function frequency.
13907         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
13908         (try_update): Update.
13909         * tree-inline.c (initialize_cfun): Do not update function frequency.
13910         * passes.c (pass_init_dump_file): Update.
13911         * i386.c (ix86_compute_frame_layout): Update.
13912         (ix86_pad_returns): Update.
13913
13914 2010-04-26  Jie Zhang  <jie@codesourcery.com>
13915
13916         PR tree-optimization/43833
13917         * tree-vrp.c (range_int_cst_p): New.
13918         (range_int_cst_singleton_p): New.
13919         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
13920         when both operands are constants.  Use range_int_cst_p in
13921         BIT_IOR_EXPR case.
13922
13923 2010-04-26  Jan Hubicka  <jh@suse.cz>
13924
13925         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
13926
13927 2010-04-26  Richard Guenther  <rguenther@suse.de>
13928
13929         PR lto/43080
13930         * gimple.c (gimple_decl_printable_name): Deal gracefully
13931         with a NULL DECL_NAME.
13932
13933 2010-04-26  Richard Guenther  <rguenther@suse.de>
13934
13935         PR lto/42425
13936         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
13937         if emitting debug information and it is either a function
13938         or a namespace decl.
13939
13940 2010-04-26  Ira Rosen  <irar@il.ibm.com>
13941
13942         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
13943         determine if the statement is vectorizable, and a macro to access it.
13944         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13945         Skip statements that can't be vectorized. If the analysis fails,
13946         mark the statement as unvectorizable if vectorizing basic block.
13947         (vect_compute_data_refs_alignment): Likewise.
13948         (vect_verify_datarefs_alignment): Skip statements marked as
13949         unvectorizable. Add print.
13950         (vect_analyze_group_access): Skip statements that can't be
13951         vectorized. If the analysis fails, mark the statement as
13952         unvectorizable if vectorizing basic block.
13953         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
13954         * tree-vect-stmts.c (vectorizable_store): Fix the number of
13955         generated stmts for SLP.
13956         (new_stmt_vec_info): Initialize the new field.
13957         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
13958         statements marked as unvectorizable.
13959
13960 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
13961
13962         * c-common.c (flag_isoc1x): New.
13963         (flag_isoc99): Update comment.
13964         * c-common.h (flag_isoc1x): New.
13965         (flag_isoc99): Update comment.
13966         * c-cppbuiltin.c (builtin_define_float_constants): Also define
13967         __<type>_DECIMAL_DIG__.
13968         * c-opts.c (set_std_c1x): New.
13969         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
13970         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
13971         * c.opt (-std=c1x, -std=gnu1x): New options.
13972         * doc/cpp.texi: Mention -std=c1x.
13973         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
13974         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
13975         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
13976         * doc/standards.texi: Mention C1X.
13977         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
13978         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
13979         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
13980         Define for C1X.
13981
13982 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
13983
13984         * config/i386/gmon-sol2.c (_mcleanup): Change format string
13985         placeholder from 0x%x to %#x.
13986         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13987         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13988         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13989         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13990         * config/i386/i386.c (ix86_target_string): Ditto.
13991         (output_pic_addr_const): Ditto.
13992         (print_operand): Ditto.
13993
13994 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
13995
13996         * combine.c (find_split_point): Add third argument.  Use it
13997         to find nested multiply-accumulate instructions.  Adjust calls.
13998         (try_combine): Adjust call to find_split_point.
13999
14000 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
14001
14002         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
14003
14004 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
14005
14006         PR tree-optimization/41442
14007         * fold-const.c (merge_truthop_with_opposite_arm): New function.
14008         (fold_binary_loc): Call it.
14009
14010 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14011
14012         * toplev.c (general_init): Set default for fdiagnostics-show-option.
14013         * opts.c (common_handle_option): Allow disabling it.
14014         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
14015
14016 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
14017
14018         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
14019         between modes if both types are integral.
14020
14021 2010-04-23  Richard Guenther  <rguenther@suse.de>
14022
14023         PR tree-optimization/43572
14024         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
14025
14026 2010-04-23  Richard Guenther  <rguenther@suse.de>
14027
14028         PR lto/43455
14029         * tree-inline.c (tree_can_inline_p): Also check compatibility
14030         of return types.
14031
14032 2010-04-23  Martin Jambor  <mjambor@suse.cz>
14033
14034         PR tree-optimization/43846
14035         * tree-sra.c (struct access): New flag grp_assignment_read.
14036         (build_accesses_from_assign): Set grp_assignment_read.
14037         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
14038         (enum mark_read_status): New type.
14039         (analyze_access_subtree): Propagate grp_assignment_read, create
14040         accesses also if both direct_read and root->grp_assignment_read.
14041
14042 2010-04-23  Martin Jambor  <mjambor@suse.cz>
14043
14044         PR middle-end/43835
14045         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
14046         function does not have type attributes.
14047
14048 2010-04-23  Richard Guenther  <rguenther@suse.de>
14049
14050         PR lto/42653
14051         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
14052         of FUNCTION_DECLs.
14053
14054 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14055
14056         * sese.h (create_if_region_on_edge): Remove.
14057
14058         * sese.c (create_if_region_on_edge): Make static.
14059
14060         * tree-inline.c: Do not include ggc.h.
14061
14062         * expr.c: Do not include ggc.h.
14063
14064         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
14065         dependencies.
14066
14067 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14068
14069         PR target/43744
14070         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14071         in the middle of insns for casesi_worker_2.
14072
14073 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
14074
14075         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
14076
14077 2010-04-22  Ira Rosen  <irar@il.ibm.com>
14078
14079         PR tree-optimization/43842
14080         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
14081         loop unrolling in update of exit phis. Fix comment.
14082         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
14083         least two reduction statements in the loop before starting SLP
14084         analysis.
14085
14086 2010-04-22  Nick Clifton  <nickc@redhat.com>
14087
14088         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
14089
14090 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
14091
14092         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
14093         to simplify a + ~a.
14094
14095 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14096
14097         * tree-parloops.c (loop_parallel_p): New argument
14098         parloop_obstack.  Pass it down.
14099         (parallelize_loops): New variable parloop_obstack.  Initialize it,
14100         pass it down, free it.
14101
14102         * tree-loop-linear.c (linear_transform_loops): Pass down
14103         lambda_obstack.
14104
14105         * tree-data-ref.h (lambda_compute_access_matrices): New argument
14106         of type struct obstack *.
14107
14108         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
14109         scratch_obstack.  Initialize it, pass down, free it.
14110
14111         * lambda.h (lambda_loop_new): Remove.
14112         (lambda_matrix_new, lambda_matrix_inverse)
14113         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
14114         argument of type struct obstack *.
14115
14116         * lambda-trans.c (lambda_trans_matrix_new): New argument
14117         lambda_obstack.  Pass it down, use obstack allocation for ret.
14118         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
14119         it down.
14120
14121         * lambda-mat.c (lambda_matrix_get_column)
14122         (lambda_matrix_project_to_null): Remove.
14123         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
14124         allocation for mat.
14125         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
14126         lambda_obstack.
14127
14128         * lambda-code.c (lambda_loop_new): New function.
14129         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
14130         (lambda_compute_auxillary_space, lambda_compute_target_space)
14131         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
14132         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
14133         (build_access_matrix): New argument lambda_obstack.  Use obstack
14134         allocation for am.
14135         (lambda_compute_step_signs, lambda_compute_access_matrices): New
14136         argument lambda_obstack.  Pass it down.
14137
14138 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14139
14140         * optabs.h (expand_widening_mult): Declare.
14141
14142 2010-04-22  Richard Guenther  <rguenther@suse.de>
14143
14144         PR tree-optimization/43845
14145         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
14146         lookup the CALL_EXPR function and arguments.
14147
14148 2010-04-22  Nick Clifton  <nickc@redhat.com>
14149
14150         * config/stormy16/stormy16.c
14151         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
14152         * config/stormy16/stormy16.h: Tidy up formatting.
14153         (DONT_USE_BUILTIN_SETJMP): Remove definition.
14154         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
14155         (ineqbranchsi): Delete pattern.
14156         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
14157         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
14158         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
14159         stormy16-lib2-ucmpsi2.c.
14160
14161 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14162
14163         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
14164         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
14165         extra set merge_set_noclobber, and use it to relax the final test
14166         slightly.
14167         * df.h (df_simulate_find_noclobber_defs): Declare.
14168         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
14169         conditional defs.
14170         (df_simulate_find_noclobber_defs): New function.
14171
14172 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
14173
14174         * config/i386/i386.md: Use {} around multi-line preparation statements.
14175
14176 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14177
14178         * c-tree.h (push_init_level, pop_init_level, set_init_index)
14179         (process_init_element): New argument of type struct obstack *.
14180
14181         * c-typeck.c (push_init_level, pop_init_level, set_designator)
14182         (set_init_index, set_init_label, set_nonincremental_init)
14183         (set_nonincremental_init_from_string, find_init_member)
14184         (output_init_element, output_pending_init_elements)
14185         (process_init_element): New argument braced_init_obstack.  Pass it
14186         down.
14187         (push_range_stack, add_pending_init): New argument
14188         braced_init_obstack.  Use obstack allocation.
14189
14190         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
14191         braced_init_obstack.  Pass it down.
14192         (c_parser_braced_init): New variables ret, braced_init_obstack.
14193         Initialize obstack, pass it down and finally free it.
14194
14195 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
14196
14197         PR middle-end/29274
14198         * tree-pass.h (pass_optimize_widening_mul): Declare.
14199         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
14200         gate_optimize_widening_mul): New static functions.
14201         (pass_optimize_widening_mul): New.
14202         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
14203         <case MULT_EXPR>: Remove support for widening multiplies.
14204         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
14205         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
14206         simplify_gen_unary rather than directly building extensions.
14207         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
14208         WIDEN_MULT_EXPR.
14209         * expmed.c (expand_widening_mult): New function.
14210         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
14211
14212 2010-04-21  Jan Hubicka  <jh@suse.cz>
14213
14214         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
14215         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
14216         * lto-wpa-fixup.c: Remove.
14217         * Makefile.in (lto-wpa-fixup.o): Remove.
14218         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
14219         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
14220         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
14221
14222 2010-04-21  Jan Hubicka  <jh@suse.cz>
14223
14224         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
14225         add write_optimization_summary, read_optimization_summary.
14226         (ipa_write_summaries_of_cgraph_node_set): Remove.
14227         (ipa_write_optimization_summaries): Declare.
14228         (ipa_read_optimization_summaries): Declare.
14229         * ipa-cp.c (pass_ipa_cp): Update.
14230         * ipa-reference.c (pass_ipa_reference): Update.
14231         * ipa-pure-const.c (pass_ipa_pure_const): Update.
14232         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
14233         Update.
14234         * ipa-inline.c (pass_ipa_inline): Update.
14235         * ipa.c (pass_ipa_whole_program): Update.
14236         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
14237         * passes.c (ipa_write_summaries_1): Do not test wpa.
14238         (ipa_write_optimization_summaries_1): New.
14239         (ipa_write_optimization_summaries): New.
14240         (ipa_read_summaries): Do not test ltrans.
14241         (ipa_read_optimization_summaries_1): New.
14242         (ipa_read_optimization_summaries): New.
14243
14244 2010-04-21  Jan Hubicka  <jh@suse.cz>
14245
14246         * lto-cgraph.c (lto_output_node): Do not output comdat groups
14247         for boundary nodes.
14248         (output_cgraph): Do not arrange comdat groups for boundary nodes.
14249
14250 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14251
14252         PR debug/40040
14253         * dwarf2out.c (add_name_and_src_coords_attributes): Add
14254         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
14255
14256 2010-04-21  Jan Hubicka  <jh@suse.cz>
14257
14258         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
14259
14260 2010-04-21  Jan Hubicka  <jh@suse.cz>
14261
14262         * varpool.c (decide_is_variable_needed): Variable is always needed
14263         during ltrans.
14264
14265 2010-04-21  Jan Hubicka  <jh@suse.cz>
14266
14267         * opts.c (decode_options): Enable pure-const pass for whopr.
14268
14269 2010-04-21  Jan Hubicka  <jh@suse.cz>
14270
14271         * cgraph.c (dump_cgraph_node): Dump also assembler name.
14272         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
14273         at WPA dumping.
14274         (cgraph_decide_inlining): Do not expect callee to be removed in all
14275         cases.
14276
14277 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
14278
14279         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
14280
14281 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
14282
14283         * config/i386/i386.md (x86_shrd): Add athlon_decode and
14284         amdfam10_decode attributes.
14285
14286 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14287
14288         PR middle-end/43570
14289         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
14290         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
14291         (lower_copyprivate_clauses): Use private var in outer
14292         context instead of original var.  Make sure the types
14293         are correct for VLAs.
14294
14295 2010-04-21  Richard Guenther  <rguenther@suse.de>
14296
14297         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
14298         to non-pointer objects.
14299
14300 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
14301
14302         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
14303         last chain entry if it starts with the still current label.
14304         (add_location_or_const_value_attribute): Check that
14305         loc_list->first->next is NULL instead of comparing ->first with ->last.
14306         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
14307         to add_var_loc_to_decl.
14308
14309         * dwarf2out.c (output_call_frame_info): For dw_cie_version
14310         >= 4 add also address size and segment size fields into CIE header.
14311
14312         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
14313         long as address size is the same as sizeof (void *) and
14314         segment size is 0.
14315         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
14316         address size or segment size is unexpected, return DW_EH_PE_omit.
14317         (classify_object_over_fdes): If get_cie_encoding returned
14318         DW_EH_PE_omit, return -1.
14319         (init_object): If classify_object_over_fdes returned -1,
14320         pretend there were no FDEs at all.
14321
14322 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
14323
14324         * config/i386/i386.md (bswap<mode>2): Macroize expander from
14325         bswap{si,di}2 using SWI48 mode iterator.
14326         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
14327         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
14328         set modrm attribute of bswap insn to 0 and remove length attribute.
14329         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
14330         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
14331         set mode attribute to <MODE> and remove length attribute.
14332
14333 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
14334
14335         PR rtl-optimization/43520
14336         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
14337         zero available registers.
14338
14339 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14340
14341         * builtins.c (fold_builtin_cproj): Fold more cases.
14342
14343 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14344
14345         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
14346         (fold_builtin_1): Fold builtin cproj.
14347         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
14348         Use ATTR_CONST_NOTHROW_LIST.
14349
14350 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
14351
14352         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
14353         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
14354         ffsi2_no_cmove for !TARGET_CMOVE.
14355         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
14356         (ffssi2): Remove expander.
14357         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
14358         mode iterator.
14359         (ctz<mode>2): Ditto from ctz{si,di}2.
14360         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
14361         mode iterator.
14362         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
14363         mode iterator.
14364
14365 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
14366
14367         * dwarf2out.c (AT_linkage_name): Define.
14368         (clone_as_declaration): Handle DW_AT_linkage_name.
14369         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
14370         of DW_AT_MIPS_linkage_name.
14371         (move_linkage_attr): Likewise.
14372         (dwarf2out_finish): Likewise.
14373
14374 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
14375
14376         PR middle-end/41952
14377         * fold-const.c (fold_comparison): New folding rule.
14378
14379 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
14380
14381         * double-int.h (double_int_setbit): Declare.
14382         * double-int.c (double_int_setbit): New function.
14383         * rtl.h (immed_double_int_const): Declare.
14384         * emit-rtl.c (immed_double_int_const): New function.
14385         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
14386         and immed_double_int_const functions.
14387         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
14388         expand_copysign_bit): (Ditto.).
14389         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
14390         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
14391         * dojump.c (prefer_and_bit_test): (Ditto.).
14392         * expr.c (convert_modes, reduce_to_bit_field_precision,
14393         const_vector_from_tree): (Ditto.).
14394         * expmed.c (mask_rtx, lshift_value): (Ditto.).
14395
14396 2010-04-20  Jan Hubicka  <jh@suse.cz>
14397
14398         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
14399         (dump_cgraph_node): Dump new flags.
14400         * cgraph.h (struct cgraph_node): Add flags
14401         reachable_from_other_partition and in_other_partition.
14402         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
14403         other partition can not be removed.
14404         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
14405         the other partition must be output; silence sanity checking on
14406         leaking functions bodies from other paritition.
14407         * lto-cgraph.c (reachable_from_other_partition_p): New function.
14408         (lto_output_node): Output new flags; do not sanity check that inline
14409         clones are output; drop lto_forced_extern_inline_p code; do not mock
14410         visibility flags at partition boundaries.
14411         (add_node_to): New function.
14412         (output_cgraph): Use it to sort functions so masters appear before
14413         clones.
14414         (input_overwrite_node): Input new flags.
14415         * passes.c (ipa_write_summaries): Do not call
14416         lto_new_extern_inline_states.
14417         * lto-section-out.c (forced_extern_inline,
14418         lto_new_extern_inline_states lto_delete_extern_inline_states,
14419         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
14420         * lto-streamer.h (lto_new_extern_inline_states,
14421         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
14422         lto_forced_extern_inline_p): Kill.
14423
14424 2010-04-20  Richard Guenther  <rguenther@suse.de>
14425
14426         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
14427         from vars that can have pointers.
14428         (process_constraint): Dump useless constraints.
14429
14430 2010-04-20  Richard Guenther  <rguenther@suse.de>
14431
14432         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
14433         (dump_sa_points_to_info): Remove asserts.
14434         (init_base_vars): nothing_id isn't an escape point nor does it
14435         have pointers.
14436
14437 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
14438
14439         * tree.h (TYPE_REF_IS_RVALUE): Define.
14440         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
14441         should_move_die_to_comdat, prune_unused_types_walk): Handle
14442         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
14443         (modified_type_die, gen_reference_type_die): Emit
14444         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
14445         if TYPE_REF_IS_RVALUE and -gdwarf-4.
14446
14447 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14448
14449         PR target/43635
14450         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
14451         calls for -fpic -m31 if they have been sibcall optimized.
14452
14453 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
14454
14455         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
14456         ar.lc fixed and call-used.
14457
14458         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
14459
14460 2010-04-19  Jan Hubicka  <jh@suse.cz>
14461
14462         * opts.c (decode_options): Disable whpr incompatible passes.
14463         * lto/lto.c (lto_1_to_1_map): Skip clones.
14464         (read_cgraph_and_symbols): Do not mark everything as needed.
14465         (do_whole_program_analysis): Do map only after optimizing;
14466         set proper cgraph_state; use passmanager.
14467
14468 2010-04-19  DJ Delorie  <dj@redhat.com>
14469
14470         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
14471         POINTER_PLUS_EXPR and fix them.
14472
14473 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
14474
14475         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
14476         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
14477         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
14478         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
14479         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
14480         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
14481         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
14482         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
14483         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
14484         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
14485         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
14486
14487 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14488
14489         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
14490         (check_cond_move_block): Likewise.
14491         (cond_move_process_if_block): Likewise.
14492         (noce_find_if_block): Improve formatting.
14493         (find_if_header): Pass 0 to memset and tweak conditions.
14494         (cond_exec_find_if_block): Fix long lines and tweak conditions.
14495
14496 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
14497
14498         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
14499         for -gdwarf-4.
14500
14501         PR middle-end/43337
14502         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
14503         with non-local decl doesn't need chain.
14504
14505 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
14506
14507         * ira-color.c (allocno_reload_assign): Avoid accumulating
14508         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
14509
14510 2010-04-19  Martin Jambor  <mjambor@suse.cz>
14511
14512         * gimple.h (create_tmp_reg): Declare.
14513         * gimplify.c (create_tmp_reg): New function.
14514         (gimplify_return_expr): Use create_tmp_reg.
14515         (gimplify_omp_atomic): Likewise.
14516         (gimple_regimplify_operands): Likewise.
14517         * tree-dfa.c (make_rename_temp): Likewise.
14518         * tree-predcom.c (predcom_tmp_var): Likewise.
14519         (reassociate_to_the_same_stmt): Likewise.
14520         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
14521         (get_replaced_param_substitute): Likewise.
14522         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14523         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
14524         * tree-ssa-pre.c (get_representative_for): Likewise.
14525         (create_expression_by_pieces): Likewise.
14526         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
14527         (create_tailcall_accumulator): Likewise.
14528
14529 2010-04-19  Martin Jambor  <mjambor@suse.cz>
14530
14531         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
14532         new_stmt.
14533         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
14534
14535 2010-04-19  Richard Guenther  <rguenther@suse.de>
14536
14537         PR tree-optimization/43796
14538         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
14539         from SCEV in the lattice.
14540         (vrp_visit_phi_node): Dump change.
14541
14542 2010-04-19  Richard Guenther  <rguenther@suse.de>
14543
14544         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
14545         * configure: Re-generated.
14546
14547 2010-04-19  Richard Guenther  <rguenther@suse.de>
14548
14549         PR tree-optimization/43783
14550         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
14551         constant ARRAY_REF operands two and three if possible.
14552
14553 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
14554
14555         PR target/43766
14556         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
14557
14558 2010-04-19  Jie Zhang  <jie@codesourcery.com>
14559
14560         PR target/43662
14561         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
14562
14563 2010-04-19  Ira Rosen  <irar@il.ibm.com>
14564
14565         PR tree-optimization/37027
14566         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
14567         and macro to access it.
14568         (vectorizable_reduction): Add argument.
14569         (vect_get_slp_defs): Likewise.
14570         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
14571         statements for possible use in SLP.
14572         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
14573         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
14574         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
14575         add new argument.
14576         (vectorizable_reduction): Likewise.
14577         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
14578         vect_get_slp_defs.
14579         (vectorizable_type_demotion, vectorizable_type_promotion,
14580         vectorizable_store): Likewise.
14581         (vect_analyze_stmt): Update call to vectorizable_reduction.
14582         (vect_transform_stmt): Likewise.
14583         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
14584         (vect_build_slp_tree): Fix indentation. Check that there are no loads
14585         from different interleaving chains in same node.
14586         (vect_slp_rearrange_stmts): New function.
14587         (vect_supported_load_permutation_p): Allow load permutations for
14588         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
14589         inside SLP nodes if necessary.
14590         (vect_analyze_slp_instance): Handle reductions.
14591         (vect_analyze_slp): Try to build SLP instances originating from groups
14592         of reductions.
14593         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
14594         (vect_get_constant_vectors): Create initial vectors for reductions
14595         according to reduction code. Add new argument.
14596         (vect_get_slp_defs): Add new argument, pass it to
14597         vect_get_constant_vectors.
14598         (vect_schedule_slp_instance): Remove SLP tree root statements.
14599
14600 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
14601
14602         * tree.h (ENUM_IS_SCOPED): Define.
14603         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
14604         for ENUM_IS_SCOPED enums.
14605
14606 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
14607
14608         * fold-const.c (fold_comparison): Use ssizetype.
14609         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14610         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
14611         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
14612         * tree-object-size.c (compute_object_sizes): Use size_type_node.
14613
14614         * tree.h (initialize_sizetypes): Remove parameter.
14615         (build_common_tree_nodes): Remove second parameter.
14616         * stor-layout.c (initialize_sizetypes): Remove parameter.
14617         Always create an unsigned type.
14618         (set_sizetype): Assert that the passed type is unsigned and simplify.
14619         * tree.c (build_common_tree_nodes): Remove second parameter.
14620         Adjust call to initialize_sizetypes.
14621         * c-decl.c (c_init_decl_processing): Remove second argument in call to
14622         build_common_tree_nodes.
14623
14624 2010-04-18  Matthias Klose  <doko@ubuntu.com>
14625
14626         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
14627
14628 2010-04-18  Ira Rosen  <irar@il.ibm.com>
14629
14630         PR tree-optimization/43771
14631         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
14632         load permutation doesn't have gaps.
14633
14634 2010-04-18  Jan Hubicka  <jh@suse.cz>
14635
14636         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
14637         (sse_prologue_save_insn expander): Use new pattern.
14638         (sse_prologue_save_insn1): New pattern and splitter.
14639         (sse_prologue_save_insn): Update to deal also with 64bit aligned
14640         blocks.
14641         * i386.c (setup_incoming_varargs_64): Do not compute jump
14642         destination here.
14643         (ix86_gimplify_va_arg): Update alignment needed.
14644         (ix86_local_alignment): Do not align all local arrays to 128bit.
14645
14646 2010-04-17  Jan Hubicka  <jh@suse.cz>
14647
14648         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
14649
14650 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
14651
14652         * arm.md (negdi2): Remove redundant code to force values into a
14653         register.
14654
14655 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
14656
14657         * arm/bpabi.S: Add EABI alignment attributes to objects.
14658         * arm/bpabi-v6m.S: Likewise.
14659         * arm/crti.asm: Likewise.
14660         * arm/crtn.asm: Likewise.
14661         * arm/lib1funcs.asm: Likewise.
14662         * arm/libunwind.S: Likewise.
14663
14664 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
14665
14666         * arm-protos.h (tune_params): New structure.
14667         * arm.c (current_tune): New variable.
14668         (arm_constant_limit): Delete.
14669         (struct processors): Add pointer to the tune parameters.
14670         (arm_slowmul_tune): New tuning option.
14671         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
14672         (all_cores): Adjust to pick up the tuning model.
14673         (arm_constant_limit): New function.
14674         (arm_override_options): Select the appropriate tuning model.  Delete
14675         initialization of arm_const_limit.
14676         (arm_split_constant): Use the new constant-limit model.
14677         (arm_rtx_costs): Pick up the current tuning model.
14678         * arm.md (is_strongarm, is_xscale): Delete.
14679         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
14680         for Xscale variant architectures.
14681         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
14682
14683 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14684
14685         * config/arm/arm.c (arm_gen_constant): Remove unused variable
14686         can_shift.
14687         (arm_rtx_costs_1): Remove unused variable extra_cost.
14688         (arm_unwind_emit_set): Use variable offset.
14689         (thumb1_output_casesi): Remove unused variable flags.
14690
14691 2010-04-16  Jeff Law  <law@redhat.com>
14692
14693         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
14694         needing assignment rather than doing a two-phase assignment.  Remove
14695         unused variable 'm'.
14696
14697 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
14698
14699         PR bootstrap/43767
14700         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
14701
14702 2010-04-16  Doug Kwan  <dougkwan@google.com>
14703
14704         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
14705         (next_operand_entry_id): New static variable.
14706         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
14707         (add_to_ops_vec): Assigned unique ID to operand entry.
14708         (struct oecount_s): New field ID.
14709         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
14710         (undistribute_ops_list): Assign unique IDs to oecounts.
14711         (init_reassoc): reset next_operand_entry_id.
14712
14713 2010-04-16  Doug Kwan  <dougkwan@google.com>
14714
14715         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
14716         missing left parenthesis.
14717
14718 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
14719
14720         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
14721         *btdi_rex64 using SWI48 mode iterator.
14722         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
14723         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
14724         *jcc_btdi_mask_rex64.
14725
14726 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
14727
14728         * double-int.h (tree_to_double_int): Convert to macro.
14729         * double-int.c (tree_to_double_int): Remove.
14730
14731 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
14732
14733         PR debug/43762
14734         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
14735         with want_address 2 and in case a single element list might be
14736         possible, call it again with want_address 0.
14737
14738 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14739
14740         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
14741         case 'W' print operands for HI mode.
14742         * config/h8300/h8300.h (Y0, Y2) : New constraints.
14743         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
14744         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
14745         * config/h8300/predicate.md (bit_register_indirect_operand): New.
14746
14747         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
14748
14749         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
14750         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
14751         #xx:3 and #xx:4 mode.
14752
14753         * config/h8300/h8300.md (inverted load with HImode dest): Add
14754         support for H8300SX.
14755
14756         * config/h8300/predicate.md (bit_operand): Allow immediate values that
14757         satisfy 'U' constraint.
14758
14759 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14760
14761         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
14762         * configure: Regenerate.
14763         * config.in: Regenerate.
14764         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
14765         works.
14766
14767 2010-04-16  Richard Guenther  <rguenther@suse.de>
14768
14769         * tree.h (struct tree_decl_minimal): Move pt_uid ...
14770         (struct tree_decl_common): ... here.
14771         (DECL_PT_UID): Adjust.
14772         (SET_DECL_PT_UID): Likewise.
14773         (DECL_PT_UID_SET_P): Likewise.
14774
14775 2010-04-16  Richard Guenther  <rguenther@suse.de>
14776
14777         PR tree-optimization/43572
14778         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
14779         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
14780         * tree-flow.h (is_call_clobbered): Remove.
14781         * tree-flow-inline.h (is_call_clobbered): Likewise.
14782         * tree-dfa.c (dump_variable): Do not dump call clobber state.
14783         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
14784         (execute_return_slot_opt): Adjust.
14785         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
14786         check for call clobbered vars here.
14787         (find_tail_calls): Move tailcall verification to the
14788         proper place.
14789
14790 2010-04-16  Diego Novillo  <dnovillo@google.com>
14791
14792         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
14793
14794 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
14795
14796         PR target/40603
14797         * config/arm/arm.md (cbranchqi4): New pattern.
14798         * config/arm/predicates.md (const0_operand,
14799         cbranchqi4_comparison_operator): New predicates.
14800
14801 2010-04-16  Richard Guenther  <rguenther@suse.de>
14802
14803         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
14804         (dump_gimple_stmt): Likewise.
14805
14806 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
14807
14808         * recog.h (struct recog_data): New field is_operator.
14809         (struct insn_operand_data): New field is_operator.
14810         * recog.c (extract_insn): Set recog_data.is_operator.
14811         * genoutput.c (output_operand_data): Emit code to set the
14812         is_operator field.
14813         * reload.c (find_reloads): Use it rather than testing for an
14814         empty constraint string.
14815
14816         PR target/41514
14817         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
14818         If the previous insn is a cbranchsi4_insn with the same arguments,
14819         omit the compare instruction.
14820
14821         * config/arm/arm.md (addsi3_cbranch): If destination is a high
14822         register, inputs must be low registers and we need a low register
14823         scratch.  Handle alternative 2 like alternative 3.
14824
14825 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
14826
14827         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
14828         don't call get_addr on both.  If one expression is a VALUE and
14829         the other a REG, check VALUE's locs if the REG isn't among them.
14830
14831 2010-04-16  Christian Bruel  <christian.bruel@st.com>
14832
14833         * config/sh/sh.h (sh_frame_pointer_required): New function.
14834         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
14835         (flag_omit_frame_pointer) Set.
14836         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
14837         (rounded_frame_size): Adjust size with outgoing_args_size.
14838         (sh_set_return_address): Must return from stack pointer.
14839         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
14840         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
14841         (ACCUMULATE_OUTGOING_ARGS): Define.
14842         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
14843         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
14844
14845 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
14846
14847         PR target/43471
14848         * config/sh/sh.c (sh_legitimize_reload_address): Use
14849         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
14850         Remove a unneeded check for offset_base.
14851
14852 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
14853
14854         * configure: Regenerated.
14855
14856 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14857
14858         * config/s390/s390.c (s390_call_save_register_used): Switch back
14859         to HARD_REGNO_NREGS.
14860
14861 2010-04-15  Richard Guenther  <rguenther@suse.de>
14862
14863         * alias.c (alias_set_subset_of): Handle alias-set zero
14864         child properly.
14865
14866 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
14867             Julian Brown  <julian@codesourcery.com>
14868
14869         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
14870         alternatives according to use of high and low regs.
14871         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14872         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
14873         optimizing for size on Thumb-2.
14874
14875 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
14876
14877         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
14878
14879 2010-04-15  Richard Guenther  <rguenther@suse.de>
14880
14881         * tree-ssa-structalias.c (struct variable_info): Add
14882         is_fn_info flag.
14883         (new_var_info): Initialize it.
14884         (dump_constraints): Support printing last added constraints.
14885         (debug_constraints): Adjust.
14886         (dump_constraint_graph): Likewise.
14887         (make_heapvar_for): Check for NULL cfun.
14888         (get_function_part_constraint): New function.
14889         (get_fi_for_callee): Likewise.
14890         (find_func_aliases): Properly implement IPA PTA constraints.
14891         (process_ipa_clobber): New function.
14892         (find_func_clobbers): Likewise.
14893         (insert_into_field_list_sorted): Remove.
14894         (create_function_info_for): Properly allocate vars for IPA mode.
14895         Do not use insert_into_field_list_sorted.
14896         (create_variable_info_for): Properly generate constraints for
14897         global vars in IPA mode.
14898         (dump_solution_for_var): Always dump the solution.
14899         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
14900         (find_what_var_points_to): Adjust.
14901         (pt_solution_set): Change.
14902         (pt_solution_ior_into): New function.
14903         (pt_solution_empty_p): Export.
14904         (pt_solution_includes_global): Adjust.
14905         (pt_solution_includes_1): Likewise.
14906         (pt_solutions_intersect_1): Likewise.
14907         (dump_sa_points_to_info): Check some invariants.
14908         (solve_constraints): Move constraint dumping ...
14909         (compute_points_to_sets): ... here.
14910         (ipa_pta_execute): ... and here.
14911         (compute_may_aliases): Do not re-compute points-to info
14912         locally if IPA info is available.
14913         (ipa_escaped_pt): New global var.
14914         (ipa_pta_execute): Properly implement IPA PTA.
14915         * tree-into-ssa.c (dump_decl_set): Support dumping
14916         decls not in referenced-vars.
14917         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
14918         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
14919         (dump_points_to_solution): Likewise.
14920         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
14921         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
14922         (remap_gimple_stmt): Reset call clobber/use information if necessary.
14923         (copy_decl_to_var): Copy DECL_PT_UID.
14924         (copy_result_decl_to_var): Likewise.
14925         * tree.c (make_node_stat): Initialize DECL_PT_UID.
14926         (copy_node_stat): Copy it.
14927         * tree.h (DECL_PT_UID): New macro.
14928         (SET_DECL_PT_UID): Likewise.
14929         (DECL_PT_UID_SET_P): Likewise.
14930         (struct tree_decl_minimal): Add pt_uid member.
14931         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
14932         (pt_solution_empty_p): Declare.
14933         (pt_solution_set): Adjust.
14934         (ipa_escaped_pt): Declare.
14935         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
14936         * gimple-pretty-print.c (pp_points_to_solution): New function.
14937         (dump_gimple_call): Dump call clobber/use information.
14938         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
14939         * tree-pass.h (TDF_ALIAS): New dump option.
14940         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
14941         * doc/invoke.texi (-fipa-pta): Update documentation.
14942
14943 2010-04-15  Richard Guenther  <rguenther@suse.de>
14944
14945         * Makefile.in (OBJS-common): Add gimple-fold.o.
14946         (gimple-fold.o): New rule.
14947         * tree.h (maybe_fold_offset_to_reference,
14948         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
14949         prototypes ...
14950         * gimple.h: ... here.
14951         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
14952         may_propagate_address_into_dereference): Move prototypes ...
14953         * gimple.h: ... here.
14954         * tree-ssa-ccp.c (get_symbol_constant_value,
14955         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
14956         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
14957         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
14958         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
14959         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
14960         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
14961         gimplify_and_update_call_from_tree): Move ...
14962         * gimple-fold.c: ... here.  New file.
14963         (ccp_fold_builtin): Rename to ...
14964         (gimple_fold_builtin): ... this.
14965         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
14966
14967 2010-04-15  Richard Guenther  <rguenther@suse.de>
14968
14969         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
14970         fit_double_type, force_fit_type_double, add_double_with_sign,
14971         neg_double, mul_double_with_sign, lshift_double, rshift_double,
14972         lrotate_double, rrotate_double, div_and_round_double): Move ...
14973         * double-int.c: ... here.
14974         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
14975         add_double, neg_double, mul_double_with_sign, mul_double,
14976         lshift_double, rshift_double, lrotate_double, rrotate_double,
14977         div_and_round_double): Move prototypes ...
14978         * double-int.h: ... here.
14979
14980 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
14981
14982         PR target/43742
14983         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
14984         matching constraints to ensure inputs match the output.
14985
14986 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
14987
14988         PR target/43742
14989         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
14990         in an input-only operand.
14991
14992 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
14993
14994         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
14995         (double_int_not, double_int_lshift, double_int_rshift): Declare.
14996         (double_int_negative_p): Convert to static inline function.
14997         * double-int.c (double_int_lshift, double_int_lshift): New functions.
14998         (double_int_negative_p): Remove.
14999         * tree.h (lshift_double, rshift_double):
15000         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
15001         * fold-const.c (fold_convert_const_int_from_real,
15002         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
15003         (lshift_double): Change type of arith argument to bool.
15004         (rshift_double): Change type of arith argument to bool. Correct
15005         comment.
15006         * expmed.c (mask_rtx, lshift_value): (Ditto.).
15007
15008 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
15009
15010         PR target/21803
15011         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
15012         at the start and end of the then/else blocks, and omit them from the
15013         conversion.
15014         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
15015         argument; all callers changed.  Pass zero to old_insns_match_p instead.
15016         (flow_find_head_matching_sequence): New function.
15017         (old_insns_match_p): Check REG_EH_REGION notes for calls.
15018         * basic-block.h (flow_find_cross_jump,
15019         flow_find_head_matching_sequence): Declare functions.
15020
15021 2010-04-14  Jason Merrill  <jason@redhat.com>
15022
15023         PR c++/36625
15024         * c-common.c (attribute_takes_identifier_p): New fn.
15025         * c-common.h: Declare it.
15026
15027 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15028
15029         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
15030         splitter condition.
15031         (*udivmod<mode>4): Ditto.
15032
15033 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15034
15035         * config/i386/i386.md (maxmin_int): Rename code attribute from
15036         maxminiprefix and update all users.
15037         (maxmin_float): Ditto from maxminfprefix.
15038         (logic): Ditto from logicprefix.
15039         (absneg_mnemonic): Ditto from absnegprefix.
15040         * config/i386/mmx.md: Update all users of maxminiprefix,
15041         maxminfprefix and logicprefix for rename.
15042         * config/i386/sse.md: Ditto.
15043         * config/i386/sync.md (sync_<code><mode>): Update for
15044         logicprefix rename.
15045
15046 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15047
15048         PR 42966
15049         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
15050         warnings converted to errors.
15051
15052 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15053
15054         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
15055         used insn_type variable.
15056         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
15057         to avoid set-but-not-used warning.
15058
15059 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15060
15061         * df-core.c (df_ref_debug): Change format string placeholder
15062         from 0x%x to %#x.
15063         * dwarf2asm.c (dw2_asm_output_data_raw,
15064         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
15065         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
15066         * dwarf2out.c (output_cfi, output_cfi_directive,
15067         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
15068         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
15069         Ditto.
15070         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
15071         * print-rtl.c (print_rtx): Ditto.
15072
15073 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15074
15075         PR middle-end/42694
15076         * builtins.c (expand_builtin_pow_root): New function to expand pow
15077         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
15078         series of sqrt and cbrt calls under -ffast-math.
15079         (expand_builtin_pow): Call it.
15080
15081 2010-04-14  Michael Matz  <matz@suse.de>
15082
15083         PR tree-optimization/42963
15084         * tree-cfg.c (touched_switch_bbs): New static variable.
15085         (group_case_labels_stmt): New function broken out from ...
15086         (group_case_labels): ... here, use the above.
15087         (start_recording_case_labels): Allocate touched_switch_bbs.
15088         (end_recording_case_labels): Deallocate it, call
15089         group_case_labels_stmt.
15090         (gimple_redirect_edge_and_branch): Remember index of affected BB.
15091
15092 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15093
15094         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
15095         from insn template.
15096
15097 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
15098
15099         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
15100
15101 2010-04-13  Jan Hubicka  <jh@suse.cz>
15102
15103         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
15104         of optimized out static functions.
15105         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
15106         cost computation.  Also sanity check for overflows.
15107         (update_caller_keys): Update cgraph_edge_badness call; properly
15108         update fibheap and sanity check that it is up to date.
15109         (add_new_edges_to_heap): Update cgraph_edge_badness.
15110         (cgraph_decide_inlining_of_small_function): Likewise;
15111         add sanity checking that badness in heap is up to date;
15112         improve dumping of reason; Update badness of calls to the
15113         offline copy of function currently inlined; dump badness
15114         of functions not inlined because of unit growth limits.
15115
15116 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
15117
15118         PR middle-end/32628
15119         * c-common.c (pointer_int_sum): Disregard overflow that occured only
15120         because of sign-extension change when converting to sizetype here...
15121         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
15122
15123         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
15124         the folding to constants.  Remove redundant final conversion.
15125         (fold_binary) <associate>: Do not associate if the re-association of
15126         constants alone overflows.
15127         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
15128         to the end of the list.
15129         (multiple_of_p) <COND_EXPR>: New case.
15130
15131 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15132
15133         * opt-functions.awk (opt_sanitized_name): New.
15134         (opt_enum): New.
15135         * optc-gen.awk: Use it
15136         * opth-gen.awk: Use it.
15137
15138 2010-04-13  Martin Jambor  <mjambor@suse.cz>
15139
15140         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
15141         (sra_modify_assign): Delete stmts loading dead data even if racc has no
15142         children.  Call replace_uses_with_default_def_ssa_name to handle
15143         SSA_NAES on lhs.
15144
15145 2010-04-13  Michael Matz  <matz@suse.de>
15146
15147         PR middle-end/43730
15148         * builtins.c (expand_builtin_interclass_mathfn): Also create
15149         a register if the predicate doesn't match.
15150
15151 2010-04-13  Diego Novillo  <dnovillo@google.com>
15152
15153         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
15154         * c-pch.c: Include timevar.h.
15155         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
15156         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
15157         * ggc-common.c: Include timevar.h.
15158         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
15159         * timevar.def (TV_PCH_SAVE): Define.
15160         (TV_PCH_CPP_SAVE): Define.
15161         (TV_PCH_PTR_REALLOC): Define.
15162         (TV_PCH_PTR_SORT): Define.
15163         (TV_PCH_RESTORE): Define.
15164         (TV_PCH_CPP_RESTORE): Define.
15165
15166 2010-04-13  Michael Matz  <matz@suse.de>
15167
15168         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
15169         into MINUS_EXPRs.
15170         (can_reassociate_p): New function.
15171         (break_up_subtract_bb, reassociate_bb): Use it.
15172
15173 2010-04-13  Richard Guenther  <rguenther@suse.de>
15174
15175         PR bootstrap/43737
15176         * builtins.c (c_readstr): Fix assert.
15177
15178 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
15179
15180         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
15181         when generating cltd insn.
15182
15183         (*ashl<mode>3_1): Remove special handling for register operand 2.
15184         (*ashlsi3_1_zext): Ditto.
15185         (*ashlhi3_1): Ditto.
15186         (*ashlhi3_1_lea): Ditto.
15187         (*ashlqi3_1): Ditto.
15188         (*ashlqi3_1_lea): Ditto.
15189         (*<shiftrt_insn><mode>3_1): Ditto.
15190         (*<shiftrt_insn>si3_1_zext): Ditto.
15191         (*<shiftrt_insn>qi3_1_slp): Ditto.
15192         (*<rotate_insn><mode>3_1): Ditto.
15193         (*<rotate_insn>si3_1_zext): Ditto.
15194         (*<rotate_insn>qi3_1_slp): Ditto.
15195
15196 2010-04-13  Richard Guenther  <rguenther@suse.de>
15197
15198         * tree-ssa-structalias.c (callused_id): Remove.
15199         (call_stmt_vars): New.
15200         (get_call_vi): Likewise.
15201         (lookup_call_use_vi): Likewise.
15202         (lookup_call_clobber_vi): Likewise.
15203         (get_call_use_vi): Likewise.
15204         (get_call_clobber_vi): Likewise.
15205         (make_transitive_closure_constraints): Likewise.
15206         (handle_const_call): Adjust to do per-call call-used handling.
15207         (handle_pure_call): Likewise.
15208         (find_what_var_points_to): Remove general callused handling.
15209         (init_base_vars): Likewise.
15210         (init_alias_vars): Initialize call_stmt_vars.
15211         (compute_points_to_sets): Process call-used and call-clobbered
15212         vars for call statements.
15213         (delete_points_to_sets): Free call_stmt_vars.
15214
15215 2010-04-13  Richard Guenther  <rguenther@suse.de>
15216
15217         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15218         Only add RW dependence for dependence distance zero.
15219         Adjust maximal vectorization factor according to dependences.
15220         Move alignment handling ...
15221         (vect_find_same_alignment_drs): ... here.  New function.
15222         (vect_analyze_data_ref_dependences): Adjust.
15223         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
15224         (vect_analyze_data_refs): Adjust minimal vectorization factor
15225         according to data references.
15226         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
15227         dependences before determining the vectorization factor.
15228         Analyze alignment after determining the vectorization factor.
15229         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
15230         dependences before alignment.
15231         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
15232         Adjust prototype.
15233         (vect_analyze_data_refs): Likewise.
15234         (MAX_VECTORIZATION_FACTOR): New define.
15235
15236 2010-04-13  Duncan Sands  <baldrick@free.fr>
15237
15238         * except.h (lang_eh_type_covers): Remove.
15239         * except.c (lang_eh_type_covers): Likewise.
15240
15241 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15242             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15243
15244         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
15245         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
15246         UNITS_PER_LONG where it is ABI relevant.
15247         (s390_return_addr_rtx): Likewise.
15248         (s390_back_chain_rtx): Likewise.
15249         (s390_frame_area): Likewise.
15250         (s390_frame_info): Likewise.
15251         (s390_initial_elimination_offset): Likewise.
15252         (save_gprs): Likewise.
15253         (s390_emit_prologue): Likewise.
15254         (s390_emit_epilogue): Likewise.
15255         (s390_function_arg_advance): Likewise.
15256         (s390_function_arg): Likewise.
15257         (s390_va_start): Likewise.
15258         (s390_gimplify_va_arg): Likewise.
15259         (s390_function_profiler): Likewise.
15260         (s390_optimize_prologue): Likewise.
15261         (s390_rtx_costs): Likewise.
15262         (s390_secondary_reload): Likewise.
15263         (s390_promote_function_mode): Likewise.
15264         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
15265         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
15266         registers available.
15267         (s390_unwind_word_mode): New function.
15268         (s390_function_value): Split 64 bit values into register pair if
15269         used as return value.
15270         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
15271         function call parameters.  Handle parallels.
15272         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
15273         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
15274         (DWARF_CIE_DATA_ALIGNMENT): New macro.
15275         (s390_expand_setmem): Remove unused variable src_addr.
15276         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
15277         deal with 64 bit registers.
15278         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
15279         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
15280         (UNITS_PER_LONG): New macro.
15281         * libjava/include/s390-signal.h: Define extended ucontext
15282         structure containing the upper halfs of the 64 bit registers.
15283
15284 2010-04-13  Simon Baldwin  <simonb@google.com>
15285
15286         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
15287
15288 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
15289
15290         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
15291         rvalue on the RHS if the LHS is of a non-renamable type.
15292         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
15293
15294 2010-04-13  Matthias Klose  <doko@ubuntu.com>
15295
15296         * gcc.c (cc1_options): Handle -iplugindir before processing
15297         the cc1 spec. Only add -iplugindir once.
15298         (cpp_unique_options): Add -iplugindir option if -fplugin* options
15299         found.
15300         * common.opt (iplugindir): Remove `Separate' property, initialize.
15301         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
15302         option.
15303         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
15304         (distclean): Remove plugin dir.
15305         * doc/invoke.texi: Document -iplugindir.
15306
15307 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
15308
15309         * doc/plugins.texi (Loading Plugins): Document short
15310         -fplugin=foo option.
15311         (Plugin API): Mention default_plugin_dir_name function.
15312
15313         * gcc.c (find_file_spec_function): Add new declaration.
15314         (static_spec_func): Use it for "find-file".
15315         (find_file_spec_function): Add new function.
15316         (cc1_options): Add -iplugindir option if -fplugin* options found.
15317
15318         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
15319
15320         * plugin.c (add_new_plugin): Updated comment, and handle short
15321         plugin name.
15322         (default_plugin_dir_name): Added new function.
15323
15324         * common.opt (iplugindir): New option to set the plugin directory.
15325
15326 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
15327
15328         * config/i386/i386.md (any_rotate): New code iterator.
15329         (rotate_insn): New code attribute.
15330         (rotate): Ditto.
15331         (SWIM124): New mode iterator.
15332         (<rotate_insn>ti3): New expander.
15333         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
15334         any_rotate code iterator.
15335         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
15336         using any_rotate code iterator and SWIM124 mode iterator.
15337         (ix86_rotlti3): New insn_and_split pattern.
15338         (ix86_rotrti3): Ditto.
15339         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
15340         ix86_rotl{di,ti}3 patterns.
15341         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
15342         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
15343         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
15344         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
15345         code iterator and SWI mode iterator.
15346         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
15347         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
15348         code iterator.
15349         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
15350         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
15351         (bswap rotatert splitter): Add splitter.
15352         (bswap splitter): Macroize splitter using any_rotate code iterator.
15353         Add insn predicate to split only for TARGET_USE_XCHGB or when
15354         optimizing function for size.
15355
15356 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
15357
15358         * config/pa/pa.c (emit_move_sequence): Remove use of
15359         deleted variable flag_argument_noalias.
15360
15361 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15362
15363         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
15364         configurations.
15365         Add to unsupported targets list.
15366         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
15367         sparc*-sun-solaris2.[567]* from target lists.
15368         * configure: Regenerate.
15369         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
15370         removal.
15371         Remove Solaris 7 patch references.
15372         (Specific, sparc-sun-solaris2.7): Removed.
15373         (sparc-sun-solaris2*): Update Solaris 7 example.
15374         (sparc64-*-solaris2*): Likewise.
15375
15376 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15377
15378         * config.build (alpha*-dec-osf4*): Remove.
15379         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
15380         of obsolete configurations.
15381         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
15382         support.
15383         * config/alpha/t-osf4: Renamed to ...
15384         * config/alpha/t-osf5: ... this.
15385         * config/alpha/osf.h: Renamed to ...
15386         * config/alpha/osf5.h: ... this.
15387         Merged old osf5.h contents.
15388         Update comments.
15389         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
15390         (EXTRA_SPECS): Removed.
15391         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
15392         reflect removal of Tru64 UNIX V4.0/V5.0 support.
15393         Document that.
15394
15395 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15396
15397         * doc/contrib.texi (Contributors, Rainer Orth): Update.
15398
15399 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
15400
15401         PR/43702
15402         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
15403         __thiscall convention.
15404
15405 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
15406
15407         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
15408         orig_base.
15409         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
15410
15411 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
15412
15413         * function.c (assign_parms_initialize_all): Add unused attribute
15414         to fntype.
15415
15416 2010-04-12  Richard Guenther  <rguenther@suse.de>
15417
15418         * gsstruct.def (GSS_CALL): New.
15419         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
15420         * gimple.h: Include tree-ssa-alias.h.
15421         (struct gimple_statement_call): New.
15422         (union gimple_statement_struct_d): Add gimple_call member.
15423         (gimple_call_reset_alias_info): Declare.
15424         (gimple_call_use_set): New function.
15425         (gimple_call_clobber_set): Likewise.
15426         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
15427         * gimple.c (gimple_call_reset_alias_info): New function.
15428         (gimple_build_call_1): Call it.
15429         * lto-streamer-in.c (input_gimple_stmt): Likewise.
15430         * tree-inline.c (remap_gimple_stmt): Likewise.
15431         (expand_call_inline): Remove callused handling.
15432         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
15433         * tree-dfa.c (dump_variable): Likewise.
15434         * tree-parloops.c (parallelize_loops): Likewise.
15435         * tree-ssa.c (init_tree_ssa): Likewise.
15436         (delete_tree_ssa): Likewise.
15437         * tree-flow-inline.h (is_call_used): Remove.
15438         * tree-flow.h (struct gimple_df): Remove callused member.
15439         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
15440         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
15441         (ref_maybe_used_by_call_p_1): Simplify.
15442         (call_may_clobber_ref_p_1): Likewise.
15443         * tree-ssa-structalias.c (compute_points_to_sets): Set
15444         the call stmt used and clobbered sets.
15445         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
15446         (find_tail_calls): Verify the tail call.
15447
15448 2010-04-12  Richard Guenther  <rguenther@suse.de>
15449
15450         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
15451         single-iteration always-inline inlining.
15452         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
15453         (cgraph_decide_inlining): Do not handle always-inline specially.
15454         (try_inline): Remove always-inline cycle detection special case.
15455         Do not recurse on always-inlines.
15456         (cgraph_early_inlining): Do not iterate if not optimizing.
15457         (cgraph_gate_early_inlining): remove.
15458         (pass_early_inline): Run unconditionally.
15459         (gate_cgraph_decide_inlining): New function.
15460         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
15461         not inlining or optimizing.
15462         (cgraph_decide_inlining_of_small_functions): Also consider
15463         always-inline functions.
15464         (cgraph_default_inline_p): Return true for nodes which should
15465         disregard inline limits.
15466         (estimate_function_body_sizes): Assume zero size and time for
15467         nodes which are marked as disregarding inline limits.
15468         (cgraph_decide_recursive_inlining): Do not perform recursive
15469         inlining on always-inline nodes.
15470
15471 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
15472
15473         PR bootstrap/43699
15474         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
15475         for exprs satisfying handled_component_p.
15476
15477 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
15478
15479         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
15480         non-constant aggregate elements.
15481
15482         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
15483         is a real initialization.
15484
15485 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
15486
15487         PR c/36774
15488         * c-decl.c (start_function): Move forward check for nested function.
15489
15490 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
15491
15492         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
15493         * config/sh/sh.c: Include reload.h.
15494         (sh_legitimize_reload_address): New.
15495         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
15496         sh_legitimize_reload_address.
15497
15498 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
15499
15500         * config/sh/sh.md (*movqi_pop): New insn pattern.
15501         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
15502
15503 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
15504
15505         * config/i386/i386.md (any_shiftrt): New code iterator.
15506         (shiftrt_insn): New code attribute.
15507         (shiftrt): Ditto.
15508         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
15509         using any_shiftrt code iterator.
15510         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
15511         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
15512         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
15513         pattern from corresponding peephole2 patterns.
15514         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
15515         using any_shiftrt code iterator.
15516         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
15517         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
15518         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
15519         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
15520         *{ashr,lshr}<mode>3_cmp_zext.
15521         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
15522
15523 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
15524
15525         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
15526         scratch register.
15527         (*lshr<mode>3_cconly): Ditto.
15528
15529 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
15530
15531         * config/i386/i386.md (lshr<mode>3): Macroize expander from
15532         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
15533         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
15534         pattern from *lshr{di,ti}3_1 and corresponding splitters using
15535         DWI mode iterator.
15536         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
15537         from corresponding peephole2 patterns.
15538         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
15539         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
15540         and *lshrdi3_1_rex64 using SWI mode iterator.
15541         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
15542         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
15543         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
15544         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
15545         and *lshrdi3_cmp_rex64 using SWI mode iterator.
15546         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
15547         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
15548         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
15549         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
15550         SWI mode iterator.
15551
15552 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
15553
15554         * config/i386/i386.md (ashr<mode>3): Macroize expander from
15555         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
15556         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
15557         pattern from *ashr{di,ti}3_1 and corresponding splitters using
15558         DWI mode iterator.
15559         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
15560         from corresponding peephole2 patterns.
15561         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
15562         (ashrsi3_cvt): Rename from ashrsi3_31.
15563         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
15564         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
15565         and x86_64_shift_adj_3 using SWI48 mode iterator.
15566         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
15567         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
15568         and *ashrdi3_1_rex64 using SWI mode iterator.
15569         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
15570         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
15571         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
15572         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
15573         and *ashrdi3_cmp_rex64 using SWI mode iterator.
15574         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
15575         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
15576         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
15577         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
15578         SWI mode iterator.
15579         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
15580         * config/i386/i386.c (ix86_split_ashr): Update for renamed
15581         x86_shift<mode>_adj_3 expanders.
15582
15583 2010-04-10  Wei Guozhi  <carrot@google.com>
15584
15585         PR target/42601
15586         * config/arm/arm.c (arm_pic_static_addr): New function.
15587         (legitimize_pic_address): Call arm_pic_static_addr when it detects
15588         a static symbol.
15589         (arm_output_addr_const_extra): Output expression for new pattern.
15590         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
15591
15592 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
15593
15594         * ira-costs.c (record_reg_classes): Ignore alternatives that are
15595         not enabled.
15596
15597         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
15598         * web.c: Include "insn-config.h" and "recog.h".
15599         (union_match_dups): New function.
15600         (web_main): Call it.
15601         (union_defs): Don't try to recognize match_dups.
15602
15603         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
15604         if doing so would replace the entire pattern.
15605
15606 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
15607
15608         PR target/43707
15609         PR target/43709
15610         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
15611         and splitter pattern.  Change splitter operand 1 predicate to
15612         nonmemory_operand.
15613
15614 2010-04-09  Martin Jambor  <mjambor@suse.cz>
15615
15616         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
15617         lattices are addresses of CONST_DECLs with the same initial value.
15618         (ipcp_print_all_lattices): Print values of CONST_DECLs.
15619         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
15620
15621 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
15622             Bernd Schmidt  <bernds@codesourcery.com>
15623
15624         * loop-invariant.c (replace_uses): New static function.
15625         (move_invariant_reg): Use it to ensure we can replace the uses.
15626
15627 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
15628
15629         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
15630         function template.
15631         (picochip_override_options): Enable section anchors only above -O1.
15632         (picochip_reorg): Fixed a couple of build warnings.
15633
15634 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15635
15636         * configure.ac (plugin -rdynamic test): Log result.
15637         * configure: Regenerate.
15638         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
15639         (RDYNAMIC_SPEC): Define.
15640         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
15641
15642 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15643
15644         * configure.ac: Determine Sun ld version numbers.
15645         (comdat_group): Restrict GNU ld version checks to gld.
15646         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
15647         (enable_comdat): Support --enable-comdat.
15648         * configure: Regenerate.
15649         * doc/install.texi (Configuration): Document --enable-comdat.
15650
15651 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15652
15653         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
15654         * config/sol2-gld.h: ... here.
15655         * config.gcc (sparc*-*-solaris2*): Reflect this.
15656         (i[34567]86-*-solaris2*): Use it.
15657
15658 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
15659
15660         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
15661         setup_clocks_p.
15662         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
15663
15664 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15665
15666         PR 42965
15667         * diagnostic.c (diagnostic_initialize): Initialize
15668         some_warnings_are_errors.
15669         (diagnostic_finish): New.
15670         (diagnostic_action_after_output): Call it before exiting.
15671         (diagnostic_report_diagnostic): Do not print message here. Set
15672         some_warnings_are_errors.
15673         * diagnostic.h (diagnostic_context): Delete
15674         issue_warnings_are_errors_message. Add some_warnings_are_errors.
15675         (diagnostic_finish): Declare.
15676         * toplev.c (toplev_main): Call it before exit.
15677
15678 2010-04-09  Jason Merrill  <jason@redhat.com>
15679
15680         PR c++/42623
15681         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
15682         for incomplete type.
15683
15684         PR c++/41788
15685         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
15686         based on a warning flag.
15687
15688 2010-04-09  Richard Guenther  <rguenther@suse.de>
15689
15690         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
15691
15692 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
15693
15694         PR bootstrap/43684
15695         * varasm.c (default_assemble_visibility): Wrap vars that are
15696         set, but unused, by targets without GAS.
15697         * config/rs6000/rs6000.c (paired_emit_vector_compare):
15698         Remove set, but unused, vars.
15699         (rs6000_legitimize_tls_address): Likewise.
15700         (altivec_expand_dst_builtin): Likewise.
15701         * config/darwin.c (machopic_classify_symbol): Likewise.
15702         (machopic_indirection_name): Likewise.
15703
15704 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
15705
15706         * config/i386/i386.md (DWI): New mode iterator.
15707         (S): New mode attribute.
15708         (shift_operand): Ditto.
15709         (shift_immediate_operand): Ditto.
15710         (ashl_input_operand): Ditto.
15711         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
15712         using SDWIM mode iterator.
15713         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
15714         pattern from *ashl{di,ti}3_1 and corresponding splitters using
15715         DWI mode iterator.
15716         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
15717         from corresponding peephole2 patterns.
15718         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
15719         and x86_64_shift_adj_1 using SWI48 mode iterator.
15720         (x86_shift<mode>_adj_2): Ditto.
15721         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
15722         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
15723         using SWI48 mode iterator.
15724         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
15725         *ashldi3_cmp_rex64 using SWI mode iterator.
15726         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
15727         *ashldi3_cconly_rex64 using SWI mode iterator.
15728         * config/i386/i386.c (ix86_split_ashl): Update for renamed
15729         x86_shift<mode>_adj_{1,2}.
15730         (ix86_split_ashr): Ditto.
15731         (ix86_split_lshr): Ditto.
15732
15733 2010-04-09  Richard Guenther  <rguenther@suse.de>
15734
15735         * target.h (builtin_conversion): Pass in input and output types.
15736         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
15737         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
15738         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
15739         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
15740
15741         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
15742         Handle AVX modes.
15743         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
15744
15745 2010-04-09  Richard Guenther  <rguenther@suse.de>
15746
15747         PR target/43152
15748         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
15749
15750 2010-04-09  Richard Guenther  <rguenther@suse.de>
15751
15752         * tree-vectorizer.h (struct _stmt_vec_info): Document
15753         that vectype is the type of the LHS.
15754         (supportable_widening_operation, supportable_narrowing_operation):
15755         Get both input and output vector types as arguments.
15756         (vect_is_simple_use_1): Declare.
15757         (get_same_sized_vectype): Likewise.
15758         * tree-vect-loop.c (vect_determine_vectorization_factor):
15759         Set STMT_VINFO_VECTYPE to the vector type of the def.
15760         (vectorizable_reduction): Adjust.
15761         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
15762         Adjust.  Specify the output vector type.
15763         (vect_pattern_recog_1): Adjust.
15764         * tree-vect-stmts.c (get_same_sized_vectype): New function.
15765         (vectorizable_call): Adjust.
15766         (vectorizable_conversion): Likewise.
15767         (vectorizable_operation): Likewise.
15768         (vectorizable_type_demotion): Likewise.
15769         (vectorizable_type_promotion): Likewise.
15770         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
15771         the def.
15772         (vect_is_simple_use_1): New function.
15773         (supportable_widening_operation): Get both input and output
15774         vector types.
15775         (supportable_narrowing_operation): Likewise.
15776         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
15777
15778 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
15779
15780         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
15781         __thiscall and _thiscall as predefined macros.
15782         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
15783         thiscall attribute handling.
15784         (ix86_comp_type_attributes): Likewise.
15785         (ix86_function_regparm): Likewise.
15786         (ix86_return_pops_args): Likewise.
15787         (init_cumulative_args): Likewise.
15788         (find_drap_reg): Likewise.
15789         (ix86_static_chain): Likewise.
15790         (x86_this_parameter): Likewise.
15791         (x86_output_mi_thunk): Likewise.
15792         (ix86_attribute_table): Add description for thiscall attribute.
15793         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
15794         * doc/extend.texi: Add documentation for thiscall.
15795
15796 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15797
15798         PR c++/28584
15799         * c.opt (Wint-to-pointer-cast): Available in C++.
15800         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
15801
15802 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
15803
15804         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
15805         * calls.c (expand_call): Pass the function type to aggregate_value_p.
15806         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
15807         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
15808         function type instead.  Reorder and simplify checks.
15809
15810         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
15811
15812 2010-04-08  Jing Yu  <jingyu@google.com>
15813             Zdenek Dvorak  <ook@ucw.cz>
15814
15815         PR tree-optimization/42720
15816         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
15817         loop unswitch conditions here from ...
15818         (tree_unswitch_single_loop): ... here.
15819
15820 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
15821
15822         * tree-if-conv.c: Fix comments and simplify logic.
15823
15824 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
15825
15826         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
15827         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
15828         (main_tree_if_conversion): Update call to tree_if_conversion.
15829
15830 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15831
15832         PR 42485
15833         * doc/invoke.texi (-b,-V): Delete.
15834         * doc/tm.texi: Do not mention -b.
15835         * gcc.c (display_help): Delete -b and -V.
15836         (process_command): Delete -b and -V.
15837         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
15838
15839 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
15840             Wolfgang Gellerich  <gellerich@de.ibm.com>
15841
15842         Implement target hook for loop unrolling
15843         * target.h (loop_unroll_adjust): Add a new target hook function.
15844         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
15845         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
15846         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
15847         (s390_loop_unroll_adjust): Implement the new target hook for s390.
15848         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
15849         target hook.
15850         (decide_unroll_stupid): Likewise.
15851
15852 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15853
15854         PR target/43643
15855         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
15856
15857 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15858
15859         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
15860         (Specific, *-*-solaris2*): Likewise.
15861         Don't prefer Sun as over GNU as.
15862
15863 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
15864
15865         * config/s390/s390.c (override_options): Adjust the z10 defaults
15866         for max-unroll-times, max-completely-peeled-insns
15867         and max-completely-peel-times.
15868
15869 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15870
15871         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
15872         instructions for z10.
15873         (s390_expand_setmem): Likewise.
15874         (s390_expand_cmpmem): Likewise.
15875
15876 2010-04-08  Richard Guenther  <rguenther@suse.de>
15877
15878         PR tree-optimization/43679
15879         * tree-ssa-pre.c (eliminate): Only propagate copies.
15880
15881 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
15882
15883         PR bootstrap/43681
15884         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
15885         set but not used variable warning.
15886
15887 2010-04-08  Wei Guozhi  <carrot@google.com>
15888
15889         PR target/41653
15890         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
15891         (arm_size_rtx_costs): Call the new function when optimized for size.
15892
15893 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
15894
15895         PR debug/43670
15896         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
15897         op0 is not a MEM, just return NULL instead of assertion
15898         failure.
15899         (discover_nonconstant_array_refs): Don't walk debug stmts.
15900
15901 2010-04-08  Doug Kwan  <dougkwan@google.com>
15902
15903         * configure.ac: Recognize gold and do not use its version number
15904         to test ld features.
15905         * configure: Regenerate.
15906
15907 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
15908
15909         PR middle-end/40815
15910         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
15911         (negate_value): Move code to push elements to broken_up_substracts ...
15912         (eliminate_plus_minus_pair): ... here.  Push operands that have no
15913         negative pair to plus_negates.
15914         (repropagate_negates, init_reassoc, fini_reassoc): Update.
15915
15916 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15917
15918         * doc/install.texi (Configuration): Move description of
15919         --enable-lto, --with-libelf*, --enable-gold from Java section to
15920         general section.
15921
15922         * doc/generic.texi (Working with declarations)
15923         (Function Properties, C and C++ Trees): Fix typos.
15924         * doc/sourcebuild.texi (Top Level): Likewise.
15925
15926 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
15927
15928         PR c/18624
15929         * tree.h (DECL_READ_P): Define.
15930         (struct tree_decl_common): Add decl_read_flag.
15931         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
15932         a set but not used warning.
15933         (merge_decls): Merge DECL_READ_P flag.
15934         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
15935         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
15936         * c-common.c (handle_used_attribute, handle_unused_attribute):
15937         Likewise.
15938         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
15939         New prototypes.
15940         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
15941         New functions.
15942         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
15943         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
15944         c_parser_binary_expression, c_parser_cast_expression,
15945         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
15946         Call default_function_array_read_conversion instead of
15947         default_function_array_conversion where needed.
15948         (c_parser_unary_expression, c_parser_conditional_expression,
15949         c_parser_postfix_expression_after_primary, c_parser_initelt):
15950         Likewise.  Call mark_exp_read where needed.
15951         (c_parser_statement_after_labels, c_parser_asm_operands,
15952         c_parser_typeof_specifier, c_parser_sizeof_expression,
15953         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
15954         where needed.
15955         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
15956         New.
15957         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
15958         (warn_unused_but_set_parameter): Default to warn_unused
15959         && extra_warnings.
15960         * doc/invoke.texi: Document -Wunused-but-set-variable and
15961         -Wunused-but-set-parameter.
15962
15963         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
15964         used count variable.
15965         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
15966         when operandN variables aren't used in the body of the expander
15967         or splitter.
15968         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
15969         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
15970         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
15971         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
15972         FOR_EACH_IMM_USE_ON_STMT): Likewise.
15973         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
15974         * tree.c (PROCESS_ARG): Likewise.
15975
15976 2010-04-07  Simon Baldwin  <simonb@google.com>
15977
15978         * diagnostic.h (diagnostic_override_option_index): New macro to
15979         set a diagnostic's option_index.
15980         * c-tree.h (c_cpp_error): Add warning reason argument.
15981         * opts.c (_warning_as_error_callback): New.
15982         (register_warning_as_error_callback): Store callback for
15983         warnings enabled via enable_warning_as_error.
15984         (enable_warning_as_error): Call callback, minor code tidy.
15985         * opts.h (register_warning_as_error_callback): Declare.
15986         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
15987         response to -Werror=.
15988         (c_common_init_options): Register warning_as_error_callback in opts.c.
15989         * common.opt: Add -Wno-cpp option.
15990         * c-common.c (struct reason_option_codes_t): Map cpp warning
15991         reason codes to gcc option indexes.
15992         * (c_option_controlling_cpp_error): New function, lookup the gcc
15993         option index for a cpp warning reason code.
15994         * (c_cpp_error): Add warning reason argument, call
15995         c_option_controlling_cpp_error for diagnostic_override_option_index.
15996         * doc/invoke.texi: Document -Wno-cpp.
15997
15998 2010-04-07  Richard Guenther  <rguenther@suse.de>
15999
16000         * ipa-reference.c (mark_load): Use get_base_address.
16001         (mark_store): Likewise.
16002
16003         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
16004         inserting GIMPLE_NOPs into the IL.
16005         * tree-ssa-structalias.c (get_constraint_for_component_ref):
16006         Explicitly strip handled components and indirect references.
16007
16008         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
16009         folding address expressions.
16010         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
16011         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
16012         operand_equal_p to compare decls.
16013         (ptr_deref_may_alias_decl_p): Likewise.
16014         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
16015         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
16016         Handle reversed comparison ops.
16017         * tree-sra.c (asm_visit_addr): Use get_base_address.
16018         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
16019         * ipa-reference.c (mark_address): Use get_base_address.
16020
16021 2010-04-07  Richard Guenther  <rguenther@suse.de>
16022
16023         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
16024         Propagate constants everywhere.
16025
16026 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
16027
16028         PR debug/43516
16029         * tree.c (MAX_INT_CACHED_PREC): Define.
16030         (nonstandard_integer_type_cache): New array.
16031         (build_nonstandard_integer_type): Cache results for precision
16032         <= MAX_INT_CACHED_PREC.
16033
16034 2010-04-07  Richard Guenther  <rguenther@suse.de>
16035
16036         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
16037         -fargument-noalias-global, -fargument-noalias-anything): Remove.
16038         * common.opt: Likewise.
16039         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
16040         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
16041         (nonoverlapping_memrefs_p): Likewise.
16042         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16043         * opts.c (common_handle_option): Handle OPT_fargument_alias,
16044         OPT_fargument_noalias, OPT_fargument_noalias_anything and
16045         OPT_fargument_noalias_global for backward compatibility.
16046
16047 2010-04-07  Richard Guenther  <rguenther@suse.de>
16048
16049         PR tree-optimization/43270
16050         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
16051         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
16052         * tree-ssa-pre.c (phi_translate_1): Adjust.
16053         (fully_constant_expression): Split out vn_reference handling to ...
16054         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
16055         Fold reads from constant strings.
16056         (vn_reference_lookup): Handle fully constant references.
16057         (vn_reference_lookup_pieces): Likewise.
16058         * Makefile.in (expmed.o-warn): Add -Wno-error.
16059
16060 2010-04-07  Martin Jambor  <mjambor@suse.cz>
16061
16062         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
16063
16064 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
16065
16066         PR driver/41594
16067         * gcc.c: Add -static-libstdc++ to list of recognized options.
16068
16069 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16070
16071         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
16072
16073 2010-04-07  Richard Guenther  <rguenther@suse.de>
16074
16075         PR middle-end/42617
16076         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
16077         bases build simple mem attributes to retain points-to information.
16078
16079 2010-04-07  Richard Guenther  <rguenther@suse.de>
16080
16081         PR middle-end/42617
16082         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
16083         preserve points-to related information.
16084
16085 2010-04-07  Richard Guenther  <rguenther@suse.de>
16086
16087         PR middle-end/42617
16088         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
16089         discard plain indirect references.
16090         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
16091         * tree.c (tree_nop_conversion): Likewise.
16092
16093 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
16094
16095         PR debug/43628
16096         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
16097
16098 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
16099
16100         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
16101         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
16102
16103 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16104
16105         * tree-if-conv.c: Fix indentation and comments.
16106
16107 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16108
16109         * tree-if-conv.c: Sort static functions in topological order.
16110
16111 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
16112
16113         * tree-if-conv.c: Fix indentation and comments.
16114
16115 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16116
16117         PR middle-end/43519
16118         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
16119         lang_hooks.types.type_for_size instead of
16120         build_nonstandard_integer_type.
16121         When converting an unsigned type to signed, double its precision.
16122         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
16123         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
16124         (graphite_create_new_loop_guard): When ub + 1 wraps around,
16125         use lb <= ub.
16126
16127 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16128
16129         PR middle-end/43519
16130         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16131         POINTER_PLUS_EXPR for pointer types.
16132
16133 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16134
16135         PR middle-end/43519
16136         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
16137         * graphite-clast-to-gimple.c: Include langhooks.h.
16138         (max_signed_precision_type): New.
16139         (max_precision_type): Takes two types as arguments.
16140         (precision_for_value): New.
16141         (precision_for_interval): New.
16142         (gcc_type_for_interval): New.
16143         (gcc_type_for_value): New.
16144         (gcc_type_for_clast_term): New.
16145         (gcc_type_for_clast_red): New.
16146         (gcc_type_for_clast_bin): New.
16147         (gcc_type_for_clast_expr): Split up into several functions.
16148         (gcc_type_for_clast_eq): Rewritten.
16149         (compute_bounds_for_level): New.
16150         (compute_type_for_level_1): New.
16151         (compute_type_for_level): New.
16152         (gcc_type_for_cloog_iv): Removed.
16153         (gcc_type_for_iv_of_clast_loop): Rewritten.
16154         (graphite_create_new_loop): Compute the lower and upper bound types
16155         with gcc_type_for_clast_expr.
16156         (graphite_create_new_loop_guard): Same.
16157         (find_cloog_iv_in_expr): Removed.
16158         (compute_cloog_iv_types_1): Removed.
16159         (compute_cloog_iv_types): Removed.
16160         (gloog): Do not call compute_cloog_iv_types.
16161         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
16162         GBB_CLOOG_IV_TYPES.
16163         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
16164         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
16165         (GBB_CLOOG_IV_TYPES): Removed.
16166
16167 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16168
16169         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
16170         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
16171         (detect_commutative_reduction): Same.
16172
16173 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16174
16175         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
16176         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
16177         argument.
16178         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
16179         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
16180         (rewrite_commutative_reductions_out_of_ssa): Same.
16181         * passes.c (execute_function_todo): Call verify_ssa for every pass
16182         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
16183         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
16184         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
16185         with an extra argument.
16186         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
16187         verify_ssa only when the extra argument is true.
16188         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
16189         with an extra argument.
16190         (tree_transform_and_unroll_loop): Same.
16191
16192 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
16193
16194         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
16195         for all the passes of the LNO having LOOP_CLOSED_SSA.
16196         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
16197         * tree-loop-distribution.c (pass_loop_distribution): Same.
16198         * tree-pass.h (TODO_verify_loops): Removed.
16199         * tree-ssa-loop.c (pass_tree_loop_init): Same.
16200         (pass_lim): Same.
16201         (pass_tree_unswitch): Same.
16202         (pass_predcom): Same.
16203         (pass_vectorize): Same.
16204         (pass_linear_transform): Same.
16205         (pass_graphite_transforms): Same.
16206         (pass_iv_canon): Same.
16207         (pass_complete_unroll): Same.
16208         (pass_complete_unrolli): Same.
16209         (pass_parallelize_loops): Same.
16210         (pass_loop_prefetch): Same.
16211         (pass_iv_optimize): Same.
16212
16213 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
16214
16215         PR middle-end/32824
16216         * passes.c (init_optimization_passes): Move pass_lim before
16217         pass_copy_prop and pass_dce_loop.
16218
16219 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
16220
16221         PR target/43667
16222         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
16223         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
16224         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
16225         MULTI_* defines for 4 argument vpermil2p* builtins.
16226
16227 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
16228
16229         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
16230         * config/i386/i386.c (x86_maybe_negate_const_int): New.
16231         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
16232         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
16233         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
16234         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
16235         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
16236         Use x86_maybe_negate_const_int to output insn mnemonic.
16237         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
16238         check from instruction predicate.  Update comments.
16239         * config/i386/sync.md (sync_add<mode>): Use
16240         x86_maybe_negate_const_int to output insn mnemonic.
16241
16242 2010-04-06  Jan Hubicka  <jh@suse.cz>
16243
16244         PR tree-optimization/42906
16245         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
16246         IGNORE_SELF argument.  Set visited_control_parents for fully
16247         processed BBs.
16248         (find_obviously_necessary_stmts): Update call of
16249         mark_control_dependent_edges_necessary.
16250         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
16251
16252 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
16253
16254         * config/i386/i386.md: Remove comment about 'e' and 'E'
16255         operand modifier.
16256
16257 2010-04-06  Richard Guenther  <rguenther@suse.de>
16258
16259         PR tree-optimization/43627
16260         * tree-vrp.c (extract_range_from_unary_expr): Widenings
16261         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
16262         not varying.
16263
16264 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
16265
16266         * BASE-VER: Change to 4.6.0.
16267
16268         PR target/43638
16269         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
16270         handling.
16271
16272 2010-04-06  Richard Guenther  <rguenther@suse.de>
16273
16274         PR middle-end/43661
16275         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
16276
16277 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16278
16279         * doc/invoke.texi (Optimize Options): Document that LTO
16280         won't remove object access purely due to incompatible
16281         declarations.
16282
16283 2010-04-04  Matthias Klose  <doko@ubuntu.com>
16284
16285         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
16286         Initialize variable.
16287
16288 2010-04-03  Richard Guenther  <rguenther@suse.de>
16289
16290         PR middle-end/42509
16291         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
16292         require a non-NULL MEM_OFFSET.
16293
16294 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
16295
16296         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
16297         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
16298         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
16299         config/alpha/predicates.md, config/arm/arm.md,
16300         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
16301         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
16302         config/darwin9.h, config/darwin.c, config/darwin.h,
16303         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
16304         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
16305         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
16306         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
16307         config/mips/mips.md, config/mn10300/mn10300.c,
16308         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
16309         config/rs6000/aix.h, config/rs6000/dfp.md,
16310         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
16311         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
16312         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
16313         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
16314         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
16315         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
16316         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
16317         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
16318         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
16319         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
16320         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
16321         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
16322         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
16323         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
16324         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
16325         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
16326         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
16327         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
16328         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
16329         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
16330         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
16331         opt-functions.awk, opth-gen.awk, params.def, passes.c,
16332         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
16333         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
16334         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
16335         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
16336         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
16337         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
16338         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
16339         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
16340         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
16341         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16342         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
16343         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
16344         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
16345         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
16346
16347 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16348
16349         PR other/43620
16350         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
16351         * aclocal.m4: Regenerate.
16352
16353 2010-04-02  Richard Guenther  <rguenther@suse.de>
16354
16355         PR tree-optimization/43629
16356         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
16357         if we have seen a constant value.
16358
16359 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
16360
16361         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
16362
16363 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
16364
16365         PR target/43469
16366         * arm.c (legitimize_tls_address): Adjust call to
16367         gen_tls_load_dot_plus_four.
16368         (arm_note_pic_base): New function.
16369         (arm_cannot_copy_insn_p): Use it.
16370         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
16371         constraint.
16372
16373 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16374
16375         PR bootstrap/43531
16376
16377         Revert:
16378         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16379
16380         * Makefile.in ($(out_object_file)): Depend on
16381         gt-$(basename $(notdir $(out_file))).h.
16382
16383 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
16384
16385         * config.gcc (lm32-*-rtems*): Add t-lm32.
16386
16387 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
16388
16389         * config.gcc: Add lm32-*-rtems*.
16390         * config/lm32/rtems.h: New file.
16391
16392 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
16393
16394         PR target/42609
16395         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
16396
16397 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
16398
16399         * dwarf2out.c (output_compilation_unit_header): For
16400         -gdwarf-4 use version 4 instead of version 3.
16401         (output_line_info): For version 4 and above emit additional
16402         maximum ops per insn header field.
16403         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
16404
16405         * dwarf2out.c (is_c_family, is_java): Remove.
16406         (lower_bound_default): New function.
16407         (add_bound_info, gen_descr_array_type_die): Use it.
16408
16409 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
16410
16411         PR debug/43325
16412         * dwarf2out.c (gen_variable_die): Allow debug info for variable
16413         re-declaration when it happens in a function.
16414
16415 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
16416
16417         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
16418         (cgraph_remove_function_insertion_hook): Same.
16419         (cgraph_call_function_insertion_hooks): Same.
16420
16421 2010-04-01  Richard Guenther  <rguenther@suse.de>
16422
16423         PR middle-end/43614
16424         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
16425         and TREE_THIS_VOLATILE.
16426         (copy_ref_info): Likewise.
16427         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
16428         * tree.c (build6_stat): Ignore side-effects of all but arg5
16429         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
16430         TARGET_MEM_REF.
16431
16432 2010-04-01  Richard Guenther  <rguenther@suse.de>
16433
16434         PR tree-optimization/43607
16435         * ipa-type-escape.c (check_call): Do not access non-existing
16436         arguments.
16437
16438 2010-04-01  Richard Guenther  <rguenther@suse.de>
16439
16440         PR middle-end/43602
16441         Revert
16442         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
16443                     Jack Howarth  <howarth@bromo.med.uc.edu>
16444
16445         * tree-profile.c (tree_init_ic_make_global_vars): Make static
16446         variables TLS.
16447
16448 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16449
16450         * doc/install.texi (Prerequisites): Document libelf usability on
16451         IRIX 5/6 and Solaris 2.
16452         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
16453         Update GNU as, GNU ld requirements.
16454         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
16455         Document Sun Studio compiler download.
16456         Update and simplify as, ld recommendations.
16457         (Specific, *-*-solaris2.7): Note obsoletion, removal.
16458
16459 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16460
16461         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
16462         with_tune_32 to pentium4.
16463
16464 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
16465
16466         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
16467
16468 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16469
16470         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
16471         obsoletion, removal.
16472         Update IDO URL.
16473         Document GNU as requirement.
16474         Update configure requirements.
16475         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
16476         Recomment IRIX 6.5.18+.
16477         Document IDF/IDL requirement.
16478         Document GNU as requirement.
16479         Document GNU ld bootstrap failure.
16480         Remove freeware.sgi.com reference.
16481
16482 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16483
16484         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
16485         UNIX V4.0, V5.0 obsoletion, removal.
16486         Remove --with-gc=simple reference.
16487         Update VM requirements during bootstrap.
16488         Remove -oldas bootstrap description.
16489         Update binutils reference.
16490         Remove comparison failure note.
16491
16492 2010-03-31  Richard Guenther  <rguenther@suse.de>
16493             Zdenek Dvorak  <ook@ucw.cz>
16494             Sebastian Pop  <sebastian.pop@amd.com>
16495
16496         PR middle-end/43464
16497         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
16498         with multiple arguments.
16499         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
16500
16501 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
16502
16503         * graphite-dependences.c (print_pddr): Call print_pdr with an
16504         extra argument.
16505         * graphite-poly.c (debug_pdr): Add an extra argument for the
16506         verbosity level.
16507         (print_pdr): Same.
16508         (print_pbb_domain): Same.
16509         (print_pbb): Same.
16510         (print_scop_context): Same.
16511         (print_scop): Same.
16512         (print_cloog): Same.
16513         (debug_pbb_domain): Same.
16514         (debug_pbb): Same.
16515         (print_pdrs): Same.
16516         (debug_pdrs): Same.
16517         (debug_scop_context): Same.
16518         (debug_scop): Same.
16519         (debug_cloog): Same.
16520         (print_scop_params): Same.
16521         (debug_scop_params): Same.
16522         (print_iteration_domain): Same.
16523         (print_iteration_domains): Same.
16524         (debug_iteration_domain): Same.
16525         (debug_iteration_domains): Same.
16526         (print_scattering_function): Same.
16527         (print_scattering_functions): Same.
16528         (debug_scattering_function): Same.
16529         (debug_scattering_functions): Same.
16530         * graphite-poly.h (debug_pdr): Update declaration.
16531         (print_pdr): Same.
16532         (print_pbb_domain): Same.
16533         (print_pbb): Same.
16534         (print_scop_context): Same.
16535         (print_scop): Same.
16536         (print_cloog): Same.
16537         (debug_pbb_domain): Same.
16538         (debug_pbb): Same.
16539         (print_pdrs): Same.
16540         (debug_pdrs): Same.
16541         (debug_scop_context): Same.
16542         (debug_scop): Same.
16543         (debug_cloog): Same.
16544         (print_scop_params): Same.
16545         (debug_scop_params): Same.
16546         (print_iteration_domain): Same.
16547         (print_iteration_domains): Same.
16548         (debug_iteration_domain): Same.
16549         (debug_iteration_domains): Same.
16550         (print_scattering_function): Same.
16551         (print_scattering_functions): Same.
16552         (debug_scattering_function): Same.
16553         (debug_scattering_functions): Same.
16554
16555 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
16556
16557         * graphite-poly.c (print_scattering_function_1): New.
16558         (print_scattering_function): Call it.
16559         (print_scop_params): Remove spaces at the end of lines.
16560         (print_cloog): New.
16561         (debug_cloog): New.
16562         * graphite-poly.h (print_cloog): Declared.
16563         (debug_cloog): Declared.
16564
16565 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
16566
16567         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
16568         in loop->header.
16569         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
16570         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
16571         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
16572         to switch between adding the IV bump in loop->latch or in loop->header.
16573
16574 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
16575
16576         * graphite-poly.c (print_scattering_function): Pretty print following
16577         the scoplib format.
16578         (print_pdr): Same.
16579         (print_pbb_domain): Same.
16580         (dump_gbb_cases): Same.
16581         (dump_gbb_conditions): Same.
16582         (print_pdrs): Same.
16583         (print_pbb): Same.
16584         (print_scop_params): Same.
16585         (print_scop_context): Same.
16586         (print_scop): Same.
16587         (print_pbb_body): New.
16588         (lst_indent_to): New.
16589         (print_lst): Start new lines with a #.
16590         * graphite-poly.h (pbb_bb): New.
16591         (pbb_index): Use pbb_bb.
16592         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
16593         disjuncts.
16594         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
16595
16596 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
16597
16598         * dwarf2out.c (size_of_die): For -gdwarf-4 use
16599         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
16600         and 0 instead of 1 for dw_val_class_flag.
16601         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
16602         dw_val_class_range_list, dw_val_class_loc_list,
16603         dw_val_class_lineptr and dw_val_class_macptr, use
16604         DW_FORM_flag_present for dw_val_class_flag and
16605         DW_FORM_exprloc for dw_val_class_loc.
16606         (output_die): For -gdwarf-4 print dw_val_class_loc
16607         size as uleb128 instead of 1 or 2 bytes and don't print
16608         anything for dw_val_class_flag.
16609
16610         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
16611         instead of cselib_lookup following by tweaking locs->setting_insn.
16612
16613         PR bootstrap/43596
16614         * cselib.c (cselib_process_insn): Clear cselib_current_insn
16615         even before returning from label, setjmp call or volatile asm
16616         handling.
16617
16618 2010-03-31  Richard Guenther  <rguenther@suse.de>
16619
16620         PR middle-end/43600
16621         * cgraphunit.c (cgraph_output_in_order): Do not allocate
16622         temporary data on stack.
16623
16624 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16625
16626         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
16627         (PUSHSECTION_ASM_OP): Remove.
16628         (POPSECTION_ASM_OP): Remove.
16629         (PUSHSECTION_FORMAT): Remove.
16630         * config/sol2.h (PUSHSECTION_FORMAT): Define.
16631         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
16632         * config/sol2.c (solaris_output_init_fini): Use it.
16633
16634 2010-03-31  Jie Zhang  <jie@codesourcery.com>
16635
16636         PR 43574
16637         * opt-functions.awk (var_type_struct): Use signed char type
16638         for simple variables.
16639
16640 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16641
16642         * config/sol2.c: Include output.h.
16643         (solaris_assemble_visibility): New function.
16644         * config/t-sol2 (sol2.o): Add output.h dependency.
16645         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
16646         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
16647         Redefine.
16648
16649 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
16650
16651         PR target/43580
16652         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
16653         V2SImode or XFmode on PRE_DEC.
16654
16655         PR debug/43557
16656         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
16657         BLKmode.
16658
16659 2010-03-31  Jie Zhang  <jie@codesourcery.com>
16660
16661         PR 43562
16662         * reload.h (caller_save_initialized_p): Declare.
16663         * toplev.c (backend_init_target): Don't call
16664         init_caller_save but set caller_save_initialized_p to false.
16665         * caller-save.c (caller_save_initialized_p): Define.
16666         (init_caller_save): Check caller_save_initialized_p.
16667         * ira.c (ira): Call init_caller_save if flag_caller_saves.
16668
16669 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16670
16671         PR target/39048
16672         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
16673         and soft-fp/t-softfp to tmake_file.
16674         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
16675         (LIBGCC2_TF_CEXT): Define.
16676         (TF_SIZE): Define.
16677
16678 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
16679
16680         PR debug/42977
16681         * cselib.c (n_useless_values): Document handling of debug locs.
16682         (n_useless_debug_values, n_debug_values): New variables.
16683         (new_elt_loc_list): Don't add to debug values, keep count.
16684         (promote_debug_loc): New.
16685         (cselib_reset_table): Zero new variables.
16686         (entry_and_rtx_equal_p): Promote debug locs.
16687         (discard_useless_locs): Increment n_useless_debug_values for
16688         debug values.
16689         (remove_useless_values): Adjust n_useless_values and n_debug_values
16690         with n_useless_debug_values.
16691         (add_mem_for_addr): Promote debug locs.
16692         (cselib_lookup_mem): Likewise.
16693         (cselib_lookup_addr): Renamed to...
16694         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
16695         (cselib_log_lookup): ... this.  Turn into...
16696         (cselib_lookup_addr): ... new wrapper.
16697         (cselib_lookup_from_insn): New.
16698         (cselib_invalidate_regno): Increment n_useless_debug_values for
16699         debug values.
16700         (cselib_invalidate_mem): Likewise.
16701         (cselib_process_insn): Take n_deleted and n_debug_values into
16702         account to guard remove_useless_value call.
16703         (cselib_finish): Zero n_useless_debug_values.
16704         * cselib.h (cselib_lookup_from_insn): Declare.
16705         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
16706         (sched_analyze_2): Likewise.
16707
16708 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
16709
16710         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
16711         functions.
16712         (adjust_mems): Replace narrowing SUBREG of expression containing
16713         just PLUS, MINUS, MULT and ASHIFT of registers and constants
16714         with operations in the narrower mode.
16715
16716         PR debug/43593
16717         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
16718         regs_invalidated_by_call instead all call_used_reg_set registers.
16719
16720 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
16721
16722         PR middle-end/43430
16723         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
16724         pointer comparisons with types_compatible_p.
16725         * tree-vect-stmts.c (vectorizable_call): Same.
16726         (vectorizable_condition): Same.
16727
16728 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16729
16730         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
16731         stack check if the mask would be zero.
16732
16733 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
16734             Jack Howarth  <howarth@bromo.med.uc.edu>
16735
16736         * tree-profile.c (tree_init_ic_make_global_vars): Make static
16737         variables TLS.
16738
16739 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
16740
16741         PR other/25232
16742         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
16743         and __unordtf2.
16744         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
16745         Include ___unordxf2 and ___unordtf2.
16746         * config/i386/libgcc-glibc.ver: Do not define inheritance from
16747         GCC_4.4.0 here.
16748
16749 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
16750
16751         * config/lm32/t-lm32: New file.
16752         * config.gcc: Use the above file when targetting lm32.
16753
16754 2010-03-28  Duncan Sands  <baldrick@free.fr>
16755
16756         * Makefile.in (PLUGIN_HEADERS): Add except.h.
16757
16758 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
16759
16760         PR middle-end/43431
16761         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16762         Improve vectorization cost model diagnostic.
16763
16764 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
16765
16766         PR middle-end/43436
16767         * tree-vect-data-refs.c (vect_analyze_data_refs): When
16768         compute_data_dependences_for_loop returns false, early exit
16769         and output an extra diagnostic for the failed data reference
16770         analysis.
16771
16772 2010-03-29  Richard Guenther  <rguenther@suse.de>
16773
16774         PR tree-optimization/43560
16775         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
16776         (can_sm_ref_p): Treat stores to readonly locations as trapping.
16777
16778 2010-03-29  Jie Zhang  <jie@codesourcery.com>
16779
16780         PR 43564
16781         * toplev.c (process_options): Set optimization_default_node
16782         and optimization_current_node.
16783         * opts.c (decode_options): Don't set optimization_default_node
16784         and optimization_current_node.
16785
16786 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
16787
16788         * config/rtems.h: Abandon -qrtems_debug.
16789
16790 2010-03-28  Jan Hubicka  <jh@suse.cz>
16791
16792         PR tree-optimization/43505
16793         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
16794         map should not be copied.
16795
16796 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16797
16798         PR middle-end/41674
16799         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
16800         cdtors, set DECL_PRESERVE_P.
16801         * ipa.c (cgraph_externally_visible_p): Return true if declaration
16802         should be preseved.
16803
16804 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
16805
16806         PR tree-optimization/43528
16807         * stor-layout.c (place_field): Check that constant fits into
16808         unsigned HWI when skipping calculation of MS bitfield layout.
16809
16810 2010-03-27  Jan Hubicka  <jh@suse.cz>
16811
16812         PR middle-end/43391
16813         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
16814         notice_global_symbol work.
16815
16816 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
16817
16818         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
16819         instead of dwarf2out_decl.
16820         (struct var_loc_node): Remove section_label field.
16821         (dwarf2out_function_decl): New function.
16822         (dwarf2out_var_location): Don't set section_label field.
16823         (dwarf2out_begin_function): Don't empty decl_loc_table here.
16824
16825 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16826
16827         PR tree-optimization/43544
16828         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16829         First argument for builtin vectorized function hook is now a
16830         tree to be able to distinguish between machine specific and
16831         standard builtins.
16832         * targhooks.c (default_builtin_vectorized_function): Ditto.
16833         * targhooks.h (default_builtin_vectorized_function): Ditto.
16834         * target.h (struct gcc_target): Ditto.
16835         * tree-vect-stmts.c (vectorizable_function): Ditto.
16836         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
16837         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
16838         Ditto.
16839
16840 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
16841
16842         PR c/43381
16843         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
16844         nested binding iff it is a FUNCTION_DECL.
16845         (store_parm_decls_newstyle): Pass nested=true to bind for
16846         FUNCTION_DECLs amongst parameters.
16847
16848 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
16849
16850         * var-tracking.c (vt_expand_loc_callback): Don't run
16851         cselib_expand_value_rtx_cb in dummy mode if
16852         cselib_dummy_expand_value_rtx_cb returned false.
16853
16854         * var-tracking.c (emit_note_insn_var_location): For one part
16855         notes with offset 0, don't add EXPR_LIST around the location.
16856         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
16857         add_location_or_const_value_attribute): Adjust for that change.
16858
16859         PR debug/43540
16860         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
16861         into first operand and location into second.
16862         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
16863         dw_cfi_oprnd_loc for DW_CFA_expression.
16864         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
16865         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
16866         assume first argument is regnum and second argument is location.
16867
16868 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
16869
16870         PR target/42113
16871         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
16872         of scratch register to DImode.  Split to DImode comparison operator.
16873         Use SImode subreg of scratch register in the multiplication.
16874         (*cmp_sadd_sidi): Ditto.
16875         (*cmp_ssub_si): Ditto.
16876         (*cmp_ssub_sidi): Ditto.
16877
16878 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
16879
16880         PR target/43524
16881         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
16882         Remove invalid assert and wrong comment.
16883
16884 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
16885
16886         PR debug/43516
16887         * flags.h (final_insns_dump_p): New extern.
16888         * final.c (final_insns_dump_p): New variable.
16889         (rest_of_clean_state): Set it before -fdump-final-insns=
16890         dumping, clear afterwards.
16891         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
16892         MEM_ALIAS_SET on MEMs.
16893
16894 2010-03-26  David S. Miller  <davem@davemloft.net>
16895
16896         * configure.ac: Fix sparc GOTDATA_OP bug check.
16897         * configure: Rebuild.
16898
16899 2010-03-26  Alan Modra  <amodra@gmail.com>
16900
16901         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
16902
16903 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16904
16905         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
16906         TLS_SECTION_ASM_FLAG.
16907
16908 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
16909
16910         PR bootstrap/43511
16911         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
16912         Clear first_function_block_is_cold.
16913
16914         PR c/43385
16915         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
16916         argument if the argument is truth_value_p.
16917
16918 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
16919
16920         * config/rs6000/constraints.md: Update copyright year for my changes.
16921
16922         PR target/43484
16923         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
16924         used in reg+reg addressing, swap registers.
16925
16926 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
16927
16928         PR debug/43293
16929         * target.h (struct gcc_target): Add code_end hook.
16930         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
16931         if not yet defined.
16932         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
16933         * toplev.c (compile_file): Call targetm.asm_out.code_end
16934         hook before unwind info/debug info output.
16935         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
16936         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
16937         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16938         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
16939         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16940         * config/i386/i386.c (ix86_file_end): Renamed to...
16941         (ix86_code_end): ... this.  Make static.  Don't call
16942         file_end_indicate_exec_stack.  Emit unwind info using
16943         final_start_function/final_end_function.
16944         (darwin_x86_file_end): Remove.
16945         (TARGET_ASM_CODE_END): Define.
16946         * config/i386/i386.h (TARGET_ASM_FILE_END,
16947         NEED_INDICATE_EXEC_STACK): Don't define.
16948         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
16949         (TARGET_ASM_FILE_END): Define to darwin_file_end.
16950         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
16951         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
16952
16953         PR target/43498
16954         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
16955         at the beginning and final_end_function at the end.
16956         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16957
16958 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16959
16960         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
16961         and Sun as TLS syntax.
16962         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
16963         * configure: Regenerate.
16964         * config.in: Regenerate.
16965         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
16966         (default_elf_asm_named_section): Use it.
16967         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
16968         (i386_output_dwarf_dtprel): Likewise.
16969         (output_addr_const_extra): Likewise.
16970         (output_pic_addr_const): Lowercase @GOTTPOFF.
16971         (output_addr_const_extra): Likewise.
16972         (output_pic_addr_const): Lowercase @GOTNTPOFF.
16973         (output_addr_const_extra): Likewise.
16974         (output_pic_addr_const): Lowercase @INDNTPOFF.
16975         (output_addr_const_extra): Likewise.
16976         (output_pic_addr_const): Lowercase @NTPOFF.
16977         (output_addr_const_extra): Likewise.
16978         (output_pic_addr_const): Lowercase @TPOFF.
16979         (output_addr_const_extra): Likewise.
16980         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
16981         (*tls_global_dynamic_64): Likewise.
16982         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
16983         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
16984
16985         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
16986         (ASM_OUTPUT_TLS_COMMON): Use it.
16987         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
16988
16989         PR target/38118
16990         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
16991         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
16992         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
16993         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
16994         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
16995         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
16996
16997 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16998
16999         * config/i386/i386.c (override_options): Don't accept
17000         -mtls-dialect=sun any longer.
17001         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
17002         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
17003         (*tls_local_dynamic_base_32_sun): Likewise.
17004         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
17005
17006 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
17007
17008         PR debug/43508
17009         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17010         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
17011
17012         PR debug/43479
17013         * ira.c (adjust_cleared_regs): New function.
17014         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
17015
17016         PR debug/19192
17017         PR debug/43479
17018         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
17019         from gimple_block.
17020         * expr.c (expand_expr_real): Restore previous
17021         curr_insn_source_location and curr_insn_block after
17022         expand_expr_real_1 call.
17023         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
17024         instead of expand_expr_real_1.
17025
17026 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
17027
17028         PR rtl-optimization/43413
17029         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
17030         hard regs too.
17031
17032 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
17033
17034         PR target/43348
17035         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
17036         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
17037
17038 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
17039
17040         * config/i386/i386.c (ix86_target_string): Add -mfma.
17041         Fix a typo in comment.
17042
17043 2010-03-22  Mike Stump  <mikestump@comcast.net>
17044
17045         PR target/23071
17046         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
17047         Don't overly align based upon packed packed fields.
17048
17049 2010-03-22  Jason Merrill  <jason@redhat.com>
17050
17051         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
17052         Use () rather than [], and move before the element type.
17053
17054 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17055
17056         * doc/configfiles.texi (Configuration Files): Removed
17057         fixinc/Makefile*, intl/Makefile.*.
17058         * doc/makefile.texi: Fixed markup. Abstract from version
17059         control system used.
17060         (Makefile): Removed obsolete gcc/java/parse.y example.
17061         * doc/sourcebuild.texi: Likewise.
17062         (Top Level): Added config, gnattools, libdecnumber, libgcc,
17063         libgomp, libssp.  Removed fastjar.
17064         (Miscellaneous Docs): Clarify location.
17065         Added COPYING3, COPYING3.LIB.
17066         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
17067
17068 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17069
17070         PR target/38085
17071         * config/i386/i386.c (x86_function_profiler)
17072         [!NO_PROFILE_COUNTERS]: Fix typo.
17073         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
17074         instead of callq.
17075
17076 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
17077             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17078
17079         * doc/sourcebuild.texi (Test Directives): Split into six
17080         subsections, with most of the current text in new subsections
17081         Directives, Selectors, and Final Actions.
17082         (Directives): Split list of test directives into multiple
17083         subsubsections.
17084         (Selectors): Describe use and syntax of selectors.
17085         (Effective-Target Keywords): Describe all existing keywords.
17086         (Add Options): Describe features for dg-add-options.
17087         (Require Support): Describe variants of dg-require-support.
17088         (Final Actions): Describe commands to use in dg-final.
17089
17090 2010-03-22  Michael Matz  <matz@suse.de>
17091
17092         PR middle-end/43475
17093         * recog.c (validate_replace_rtx_group): Replace also in
17094         REG_EQUAL and REG_EQUIV notes.
17095
17096 2010-03-22  Richard Guenther  <rguenther@suse.de>
17097
17098         PR tree-optimization/43390
17099         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
17100         sure vector extracts are type correct.
17101
17102 2010-03-22  Richard Guenther  <rguenther@suse.de>
17103
17104         PR middle-end/40106
17105         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
17106         x * sqrt (x) even when optimizing for size if the target
17107         has native support for sqrt.
17108
17109 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17110
17111         * varasm.c (make_decl_rtl_for_debug): Also clear
17112         flag_mudflap for the duration of make_decl_rtl call.
17113
17114         PR debug/43443
17115         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
17116         locs from preserved VALUEs.
17117
17118 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17119
17120         PR middle-end/42718
17121         * pa.md (movmemsi): Set align to one if zero.
17122         (movmemdi): Likewise.
17123
17124 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
17125
17126         PR target/42321
17127         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
17128         with their corresponding prologue pushes.
17129
17130 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
17131
17132         PR target/43156
17133         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
17134         at the begining or end.
17135         (spu_expand_epilogue): Likewise.
17136
17137 2010-03-20  Richard Guenther  <rguenther@suse.de>
17138
17139         PR rtl-optimization/43438
17140         * combine.c (make_extraction): Properly zero-/sign-extend an
17141         extraction of the low part of a CONST_INT.  Also handle
17142         CONST_DOUBLE.
17143
17144 2010-03-19  Mike Stump  <mikestump@comcast.net>
17145
17146         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
17147         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
17148         (override_options): Use SUBTARGET32_DEFAULT_CPU.
17149
17150 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
17151
17152         PR c/43211
17153         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
17154         an error.
17155
17156 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
17157
17158         PR rtl-optimization/42258
17159         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
17160         use that may match DEF.
17161
17162         PR target/40697
17163         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
17164         the cost of loading the constant rather than assuming
17165         COSTS_N_INSNS (1).
17166         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
17167         outer code is AND, do the same tests as the andsi3 expander and
17168         return COSTS_N_INSNS (1) if and is cheap.
17169
17170         * optabs.c (avoid_expensive_constant): Fix formatting.
17171
17172 2010-03-19  Michael Matz  <matz@suse.de>
17173
17174         PR c++/43116
17175         * attribs.c (decl_attributes): When rebuilding a function pointer
17176         type use the same qualifiers as the original pointer type.
17177
17178 2010-03-19  Martin Jambor  <mjambor@suse.cz>
17179
17180         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
17181         and is_gimple_ip_invariant_address.
17182
17183 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17184
17185         Revert
17186         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17187
17188         * config/arm/arm.c (arm_override_options): Turn off
17189         flag_dwarf2_cfi_asm for AAPCS variants.
17190
17191 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17192
17193         PR target/43399
17194         * config/arm/arm.c (emit_multi_reg_push): Update comments.
17195         Use PRE_MODIFY instead of PRE_DEC.
17196         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
17197         (vfp_emit_fstmd): Likewise.
17198
17199 2010-03-19  Michael Matz  <matz@suse.de>
17200
17201         PR target/43305
17202         * builtins.c (expand_builtin_interclass_mathfn,
17203         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
17204         if that fails.
17205
17206 2010-03-19  Richard Guenther  <rguenther@suse.de>
17207
17208         PR tree-optimization/43415
17209         * tree-ssa-pre.c (phi_translate): Split out worker to ...
17210         (phi_translate_1): ... this.
17211         (phi_translate): Move all caching here.  Cache all NARY
17212         and REFERENCE translations.
17213
17214 2010-03-19  David S. Miller  <davem@davemloft.net>
17215
17216         With help from Eric Botcazou.
17217         * config/sparc/sparc.c: Include dwarf2out.h.
17218         (emit_pic_helper): Delete.
17219         (pic_helper_symbol_name): Delete.
17220         (pic_helper_emitted_p): Delete.
17221         (pic_helper_needed): New.
17222         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
17223         (get_pc_thunk_name): New.
17224         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
17225         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
17226         Set pic_helper_needed to true.  Don't call emit_pic_helper.
17227         (sparc_expand_prologue): Update load_pic_register call.
17228         (sparc_output_mi_thunk): Likewise.
17229         (sparc_file_end): Emit a hidden comdat symbol for the PIC
17230         thunk if possible.  Output CFI information as needed.
17231
17232 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17233             Jack Howarth  <howarth@bromo.med.uc.edu>
17234
17235         PR target/36399
17236         * config/i386/i386.h: Fix ABI on darwin x86-32.
17237
17238 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
17239
17240         * tree.h: Declare make_decl_rtl_for_debug.
17241         * varasm.c (make_decl_rtl_for_debug): New.
17242         * dwarf2out.c (rtl_for_decl_location): Call it.
17243         * cfgexpand.c (expand_debug_expr): Call it.
17244
17245 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
17246
17247         PR bootstrap/43399
17248         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
17249         mem_mode.
17250
17251         PR bootstrap/43403
17252         * var-tracking.c (vt_init_cfa_base): Do nothing if
17253         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
17254
17255 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
17256
17257         PR debug/42873
17258         * var-tracking.c (canonicalize_vars_star): New.
17259         (dataflow_post_merge_adjust): Use it.
17260
17261 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
17262
17263         PR debug/43058
17264         * var-tracking.c (non_suitable_const): New function.
17265         (add_uses): For DEBUG_INSNs with constants, don't record any
17266         value, instead just the constant value itself.
17267         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
17268         is not VAR_LOC_UNKNOWN_P, set var to the constant.
17269         (emit_notes_in_bb): Likewise.
17270         (emit_note_insn_var_location): For onepart variables if
17271         cur_loc is a VOIDmode constant, use DECL_MODE.
17272
17273 2010-03-18  Martin Jambor  <mjambor@suse.cz>
17274
17275         PR middle-end/42450
17276         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
17277         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
17278         all non-clones.  Moved call redirection...
17279         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
17280         (cgraph_materialize_all_clones): Dispose of all
17281         combined_args_to_skip bitmaps.
17282         (verify_cgraph_node): Do not check for edges pointing to wrong
17283         nodes in inline clones.
17284         * tree-inline.c (copy_bb): Call
17285         cgraph_redirect_edge_call_stmt_to_callee.
17286         * ipa.c (cgraph_remove_unreachable_nodes): Call
17287         cgraph_node_remove_callees even when there are used clones.
17288
17289 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
17290
17291         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
17292
17293 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
17294
17295         PR target/43383
17296         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
17297         for 32bit.
17298
17299 2010-03-18  Michael Matz  <matz@suse.de>
17300
17301         PR middle-end/43419
17302         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
17303         into sqrt(x) if we need to preserve signed zeros.
17304
17305 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
17306             Eric Botcazou  <ebotcazou@adacore.com>
17307
17308         PR rtl-optimization/43360
17309         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
17310         note if we don't know its invariant status.
17311
17312 2010-03-18  Michael Matz  <matz@suse.de>
17313
17314         PR tree-optimization/43402
17315         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
17316         PHI chains of ssa names registered for update.
17317
17318 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
17319
17320         PR target/42427
17321         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
17322         non-offsettable and pre_modify update addressing.
17323         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
17324         and "2" alternatives "#".
17325         (*movdd_softfloat32): Make all alternatives "#";
17326         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
17327         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
17328         (*movdf_softfloat32): Make all alternatives "#";
17329         (movdi): Use the new DIFD mode iterator to create a common splitter
17330         for movdi, movdf and movdd patterns.
17331
17332 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
17333
17334         * common.opt (dumpdir): Remove redundant tab.
17335
17336 2010-03-17  Martin Jambor  <mjambor@suse.cz>
17337
17338         PR tree-optimization/43347
17339         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
17340         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
17341
17342 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
17343
17344         PR rtl-optimization/42216
17345         * regrename.c (create_new_chain): New function, broken out from...
17346         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
17347         appending a use to an empty chain.
17348         (build_def_use): Remove previous changes that convert OP_INOUT to
17349         OP_OUT operands; instead detect the case where an OP_INOUT operand
17350         uses a previously untracked register and create an empty chain for it.
17351
17352 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17353
17354         * doc/extend.texi (Function Attributes): Rewrite unfinished
17355         sentence in ms_abi documentation.
17356
17357 2010-03-17  Alan Modra  <amodra@gmail.com>
17358
17359         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
17360         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
17361         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
17362         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
17363
17364 2010-03-16  Richard Henderson  <rth@redhat.com>
17365
17366         PR middle-end/43365
17367         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
17368         (lower_try_finally): Save and restore eh_seq around the expansion
17369         of the try-finally.
17370
17371 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
17372
17373         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
17374         statements before splitting block.
17375
17376 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17377
17378         * doc/sourcebuild.texi (Testsuites): Fix markup.
17379         Use pathnames relative to gcc/testsuite.
17380         (Test Directives): Move description of how timeout is determined.
17381         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
17382         (C Tests): Correct gcc.misc-tests directory.
17383         Framework tests now live in gcc.test-framework.
17384
17385 2010-03-16  Richard Guenther  <rguenther@suse.de>
17386
17387         PR middle-end/43379
17388         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
17389         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
17390
17391 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
17392             Alexandre Oliva  <aoliva@redhat.com>
17393
17394         PR tree-optimization/42917
17395         * lambda-code.c (remove_iv): Skip debug statements.
17396         (lambda_loopnest_to_gcc_loopnest): Likewise.
17397         (not_interesting_stmt): Debug statements are not interesting.
17398
17399 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
17400
17401         PR debug/43051
17402         PR debug/43092
17403         * cselib.c (cselib_preserve_constants,
17404         cfa_base_preserved_val): New static variables.
17405         (preserve_only_constants): New function.
17406         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
17407         clear its REG_VALUES.  If cselib_preserve_constants, don't
17408         empty the whole hash table, but preserve there VALUEs with constants,
17409         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
17410         (cselib_preserve_cfa_base_value): New function.
17411         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
17412         (cselib_init): Change argument to int bitfield.  Set
17413         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
17414         is in it.
17415         (cselib_finish): Clear cselib_preserve_constants and
17416         cfa_base_preserved_val.
17417         * cselib.h (enum cselib_record_what): New enum.
17418         (cselib_init): Change argument to int.
17419         (cselib_preserve_cfa_base_value): New prototype.
17420         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
17421         * dse.c (dse_step1): Likewise.
17422         * cfgcleanup.c (thread_jump): Likewise.
17423         * sched-deps.c (sched_analyze): Likewise.
17424         * gcse.c (local_cprop_pass): Likewise.
17425         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
17426         If FN is non-NULL, call the callback always and whenever it returns
17427         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
17428         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
17429         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
17430         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
17431         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
17432         * var-tracking.c: Include recog.h.
17433         (bb_stack_adjust_offset): Remove.
17434         (vt_stack_adjustments): Don't call it, instead just gather the
17435         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
17436         (adjust_stack_reference): Remove.
17437         (compute_cfa_pointer): New function.
17438         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
17439         (struct adjust_mem_data): New type.
17440         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
17441         functions.
17442         (get_address_mode): New function.
17443         (replace_expr_with_values): Use it.
17444         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
17445         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
17446         (adjust_sets): Remove.
17447         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
17448         Use get_address_mode.
17449         (get_adjusted_src): Remove.
17450         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
17451         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
17452         (add_with_sets): Don't call adjust_sets.
17453         (fp_setter, vt_init_cfa_base): New functions.
17454         (vt_initialize): Change return type to bool.  Move most of pool etc.
17455         initialization to the beginning of the function from end.  Pass
17456         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
17457         If !frame_pointer_needed, call vt_stack_adjustment before mos
17458         vector is filled, call vt_init_cfa_base if argp/framep has been
17459         eliminated to sp.  If frame_pointer_needed and argp/framep has
17460         been eliminated to hard frame pointer, set
17461         hard_frame_pointer_adjustment and call vt_init_cfa_base after
17462         encountering fp setter in the prologue.  For MO_ADJUST, call
17463         log_op_type before pusing the op into mos vector, not afterwards.
17464         Call adjust_insn before cselib_process_insn/add_with_sets,
17465         call cancel_changes (0) afterwards.
17466         (variable_tracking_main_1): Adjust for vt_initialize calling
17467         vt_stack_adjustments and returning whether it succeeded or not.
17468
17469 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
17470
17471         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
17472         debug statements.
17473
17474 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
17475
17476         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
17477         has been set.
17478         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
17479         drap_reg has not been set.
17480
17481 2010-03-15  Michael Matz  <matz@suse.de>
17482
17483         PR middle-end/43300
17484         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
17485         use it to expand block copies.
17486         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
17487         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
17488         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
17489
17490 2010-03-15  Richard Guenther  <rguenther@suse.de>
17491
17492         PR tree-optimization/43367
17493         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
17494         elimination check.
17495
17496 2010-03-15  Richard Guenther  <rguenther@suse.de>
17497
17498         PR tree-optimization/43317
17499         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
17500
17501 2010-03-15  Martin Jambor  <mjambor@suse.cz>
17502
17503         PR tree-optimization/43141
17504         * tree-sra.c (create_abstract_origin): New function.
17505         (modify_function): Call create_abstract_origin.
17506
17507 2010-03-15  Chris Demetriou  <cgd@google.com>
17508
17509         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
17510         wasn't copied.
17511
17512 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17513
17514         PR middle-end/43354
17515         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
17516         call insert_out_of_ssa_copy for default definitions.
17517
17518 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17519
17520         * graphite-clast-to-gimple.c (my_long_long): Defined.
17521         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
17522         * graphite-sese-to-poly.c (my_long_long): Defined.
17523         (scop_ivs_can_be_represented): Use it.
17524
17525 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17526
17527         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
17528         graphite-max-bbs-per-function, and loop-block-tile-size.
17529         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
17530         with "maximum".
17531         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
17532
17533 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17534
17535         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
17536         forward declaration.
17537         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
17538         (add_upper_bounds_from_estimated_nit): New.
17539         (build_loop_iteration_domains): Use it.
17540
17541 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17542
17543         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
17544
17545 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17546
17547         PR middle-end/43306
17548         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
17549         should be an INTEGER_CST.  Also handle CASE_CONVERT.
17550
17551 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17552
17553         * graphite.c (graphite_initialize): To bound the number of bbs per
17554         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
17555         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
17556         * doc/invoke.texi: Document it.
17557
17558 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17559
17560         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
17561         * graphite-sese-to-poly.h (build_poly_scop): Same.
17562
17563 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
17564
17565         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
17566         the number of parameters in the scop.  Use as an upper bound
17567         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
17568         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
17569         * doc/invoke.texi: Document it.
17570
17571 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
17572
17573         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
17574         * doc/c-tree.texi: Remove.
17575         * doc/generic.texi: Merge c-tree.texi here.
17576         * doc/gccint.texi (Trees): Remove menu entry.
17577         (c-tree.texi): Remove @include.
17578         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
17579         * doc/languages.texi (Reading RTL): Ditto.
17580
17581 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
17582
17583         PR target/42869
17584         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
17585
17586 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17587
17588         PR middle-end/42431
17589         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
17590         code added to work around reload clobbering CONST insns.
17591
17592 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
17593
17594         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
17595         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
17596         (cselib_preserve_only_values): Remove retain argument, don't
17597         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
17598         * cselib.h (cselib_preserve_only_values): Remove retain argument.
17599         * var-tracking.c (micro_operation): Move insn field before union.
17600         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
17601         (struct variable_tracking_info_def): Remove n_mos field, change
17602         mos into a vector of micro_operations.
17603         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
17604         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
17605         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
17606         changing into a vector.
17607         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
17608         come before all other uops generated by add_stores.
17609         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
17610         argument removal.
17611         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
17612         a vector.  Run just one pass over the bbs instead of separate counting
17613         and computation phase.
17614         (vt_finalize): Free VTI (bb)->mos vector instead of array.
17615
17616         PR debug/43329
17617         * tree-inline.c (remap_decls): Put old_var rather than origin_var
17618         into *nonlocalized_list vector.
17619         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
17620         even if origin is non-NULL.
17621         (gen_variable_die): Likewise.
17622         (process_scope_var): Don't change origin.
17623         (gen_decl_die): Likewise.
17624         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
17625         before adding new edges instead of after it, fix moving over
17626         debug stmts.
17627
17628 2010-03-11  David S. Miller  <davem@davemloft.net>
17629
17630         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
17631         of four.
17632         * configure: Rebuild.
17633
17634 2010-03-11  Martin Jambor  <mjambor@suse.cz>
17635
17636         PR tree-optimization/43257
17637         * tree.c (assign_assembler_name_if_neeeded): New function.
17638         (free_lang_data_in_cgraph): Assembler name assignment moved to the
17639         above new function.
17640         * tree.h (assign_assembler_name_if_neeeded): Declare.
17641         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
17642         the function if needed.
17643
17644 2010-03-11  Chris Demetriou  <cgd@google.com>
17645
17646         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
17647         include/stdint-gcc.h, and include/stdint.h world-readable.
17648
17649 2010-03-11  Richard Guenther  <rguenther@suse.de>
17650
17651         PR tree-optimization/43255
17652         * tree-vrp.c (process_assert_insertions_for): Do not insert
17653         asserts for trivial conditions.
17654
17655 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17656
17657         PR tree-optimization/43280
17658         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
17659         generation.  Move calculation of size out of the if branch.
17660         (find_bswap): Modify compare number generation.
17661
17662 2010-03-11  Richard Guenther  <rguenther@suse.de>
17663
17664         PR lto/43200
17665         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
17666         (input_gimple_stmt): Fixup handled component types during
17667         operand read.  Also fix up decls in ADDR_EXPRs.
17668
17669 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
17670
17671         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
17672         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
17673
17674 2010-03-10  Jan Hubicka  <jh@suse.cz>
17675
17676         PR c/43288
17677         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
17678         * varasm.c (get_variable_section): Don't do that here...
17679         (make_decl_rtl): ... and here.
17680         (do_assemble_alias): Produce decl RTL.
17681         (assemble_alias): Likewise.
17682
17683 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
17684
17685         PR debug/43290
17686         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
17687         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
17688         of fde->vdrap_reg.
17689         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
17690         (based_loc_descr): Only express drap or vdrap regno based expressions
17691         using DW_OP_fbreg when not optimizing.
17692         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
17693         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
17694         REG_CFA_SET_VDRAP note.
17695
17696 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
17697
17698         PR tree-optimization/43236
17699         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
17700         error in calculation of base address in reverse iteration case.
17701         (generate_builtin): Take number of latch executions if the statement
17702         is in the latch.
17703
17704 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
17705
17706         PR middle-end/42859
17707         * tree-eh.c: Include pointer-set.h.
17708         (lower_eh_dispatch): Filter out duplicate case labels and
17709         remove the unneeded edge when the label is unused.  Return
17710         true when some edges are removed.
17711         (execute_lower_eh_dispatch): When any lowering resulted in
17712         removing an edge, also delete unreachable blocks.
17713
17714 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
17715
17716         PR bootstrap/43287
17717         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17718         UNSPEC_MACHOPIC_OFFSET.
17719
17720 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
17721
17722         PR target/43294
17723         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
17724         (m68k_delegitimize_address): New function.
17725
17726 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
17727
17728         PR debug/43299
17729         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
17730
17731         PR debug/43299
17732         * var-tracking.c (adjust_sets): New function.
17733         (count_with_sets, add_with_sets): Use it.
17734         (get_adjusted_src): New inline function.
17735         (add_stores): Use it.
17736
17737         PR debug/43304
17738         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
17739         call cselib_dummy_expand_value_rtx_cb instead of
17740         cselib_expand_value_rtx_cb.
17741
17742         PR debug/43293
17743         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
17744         * config/i386/i386.c: Include debug.h and dwarf2out.h.
17745         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
17746         and .cfi_endproc around the pic thunks.
17747         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
17748         all queued unwind info register saves are saved before the call.
17749         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
17750         considered as sp-=4 for unwind info and the pop as sp+=4 which
17751         also clobbers dest, but doesn't actually restore it.
17752
17753         PR debug/43290
17754         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
17755         RTX_FRAME_RELATED_P.
17756
17757 2010-03-09  Jie Zhang  <jie@codesourcery.com>
17758
17759         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
17760         whitespaces in output template.
17761
17762 2010-03-09  Jie Zhang  <jie@codesourcery.com>
17763
17764         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
17765         out array boundary.
17766
17767 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
17768
17769         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
17770         builtins.exp in a separate job.
17771
17772 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17773
17774         * graphite-sese-to-poly.c (add_param_constraints): Use
17775         lower_bound_in_type and upper_bound_in_type.
17776
17777 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17778
17779         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
17780         instead of unsigned_type_node.
17781
17782 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17783             Reza Yazdani  <reza.yazdani@amd.com>
17784
17785         PR middle-end/43065
17786         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
17787         on pointer type parameters.
17788
17789 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17790
17791         PR middle-end/42644
17792         PR middle-end/42130
17793         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
17794         handle conversions from pointer to integers.
17795         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
17796         induction variable, to be able to work with code generated by CLooG.
17797         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
17798         (build_poly_scop): Bail out if we cannot codegen a loop.
17799
17800 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17801
17802         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
17803         code generation with gloog_error.
17804
17805 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17806
17807         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
17808         Call fold_convert on all the returned values.
17809         (expand_scalar_variables_expr): Pass to
17810         expand_scalar_variables_ssa_name the type of the resulting expression.
17811
17812 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17813
17814         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
17815         ppl_min_for_le_pointset.
17816         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
17817         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
17818
17819 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17820
17821         * graphite-dependences.c (map_into_dep_poly): Removed.
17822         (dependence_polyhedron_1): Use combine_context_id_scat.
17823
17824 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17825
17826         * graphite-poly.h (struct poly_scattering): Add layout documentation.
17827         (struct poly_bb): Same.
17828         (combine_context_id_scat): New.
17829
17830 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17831
17832         PR middle-end/42326
17833         * sese.c (name_defined_in_loop_p): Return false for default
17834         definitions.
17835
17836 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17837
17838         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
17839         and clean up the logic.
17840
17841 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
17842
17843         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
17844         early return.
17845
17846 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
17847
17848         * var-tracking.c (remove_cselib_value_chains): Define only for
17849         ENABLE_CHECKING.
17850         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
17851         delete_slot_part, emit_notes_for_differences_1): Don't call
17852         remove_cselib_value_chains here.
17853         (set_slot_part, emit_notes_for_differences_2): Don't call
17854         add_cselib_value_chains here.
17855         (preserved_values): New vector.
17856         (preserve_value): New function.
17857         (add_uses, add_stores, vt_add_function_parameters): Use it
17858         instead of cselib_preserve_value.
17859         (changed_values_stack): New vector.
17860         (check_changed_vars_0): New function.
17861         (check_changed_vars_1, check_changed_vars_2): Use it.
17862         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
17863         changed_values_stack VALUEs.
17864         (vt_emit_notes): For all preserved_values call
17865         add_cselib_value_chains.  If ENABLE_CHECKING call
17866         remove_cselib_value_chains before verifying value_chains is empty.
17867         Initialize and free changed_values_stack.
17868         (vt_initialize): Initialize preserved_values.
17869         (vt_finalize): Free preserved_values.
17870
17871 2010-03-08  Richard Guenther  <rguenther@suse.de>
17872
17873         PR tree-optimization/43269
17874         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
17875         region detection.
17876
17877 2010-03-08  Martin Jambor  <mjambor@suse.cz>
17878
17879         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
17880         (ipa_is_param_called): Removed.
17881         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
17882         (ipa_print_node_params): Do not print the called flag.
17883         (ipa_write_node_info): Do not stream the called flag.
17884         (ipa_read_node_info): Likewise.
17885
17886 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
17887
17888         PR debug/43176
17889         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
17890         * cselib.c (struct expand_value_data): Add dummy field.
17891         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
17892         dummy to false.
17893         (cselib_dummy_expand_value_rtx_cb): New function.
17894         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
17895         any rtl.
17896         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
17897         * var-tracking.c: Include pointer-set.h.
17898         (variable): Change n_var_parts to char from int.  Add
17899         cur_loc_changed and in_changed_variables fields.
17900         (variable_canonicalize): Remove.
17901         (shared_var_p): New inline function.
17902         (unshare_variable): Maintain cur_loc_changed and
17903         in_changed_variables fields.  If var was in changed_variables,
17904         replace it there with new_var.  Just copy cur_loc instead of
17905         resetting it to something else.
17906         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
17907         (dataflow_set_union): Don't call variable_canonicalize.
17908         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
17909         of their DEBUG_EXPR_TREE_DECLs.
17910         (canonicalize_loc_order_check): Verify that cur_loc is NULL
17911         and in_changed_variables and cur_loc_changed is false.
17912         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
17913         and cur_loc_changed.  Don't update cur_loc here.
17914         (variable_merge_over_src): Don't call variable_canonicalize.
17915         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
17916         removing loc that is equal to cur_loc, clear cur_loc,
17917         set cur_loc_changed and ensure variable_was_changed is called.
17918         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
17919         compare pointers in cur_loc check, if it is equal to loc,
17920         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
17921         (variable_different_p): Remove compare_current_location argument,
17922         don't compare cur_loc.
17923         (dataflow_set_different_1): Adjust variable_different_p caller.
17924         (variable_was_changed): If dv had some var in changed_variables
17925         already, reset in_changed_variables flag for it and propagate
17926         cur_loc_changed over to the new variable.  On empty var
17927         always set cur_loc_changed.  Set in_changed_variables on whatever
17928         var is added to changed_variables.
17929         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
17930         Use shared_var_p.  When removing loc that is equal to cur_loc,
17931         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
17932         end, don't set it to something else, just call variable_was_changed.
17933         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
17934         loc being removed, clear cur_loc and set cur_loc_changed.
17935         Set cur_loc_changed if all locations have been removed.
17936         (struct expand_loc_callback_data): New type.
17937         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
17938         allocated.  Always create SUBREGs if simplify_subreg failed.
17939         Prefer to use cur_loc, when that fails and still in
17940         changed_variables (and seen first time) recompute it.  Set
17941         cur_loc_changed of variables which had to change cur_loc and
17942         compute elcd->cur_loc_changed if any of the subexpressions used
17943         had to change cur_loc.
17944         (vt_expand_loc): Adjust to pass arguments in
17945         expand_loc_callback_data structure.
17946         (vt_expand_loc_dummy): New function.
17947         (emitted_notes): New variable.
17948         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
17949         that weren't used for any other decl in current
17950         emit_notes_for_changes call call vt_expand_loc_dummy to update
17951         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
17952         first loc_chain location if NULL before.  Always use just
17953         cur_loc instead of first loc_chain location.  When cur_loc_changed
17954         is false, when not --enable-checking=rtl just don't emit any note.
17955         When rtl checking, compute the note and assert it is the same
17956         as previous note.  Clear cur_loc_changed and in_changed_variables
17957         at the end before removing from changed_variables.
17958         (check_changed_vars_3): New function.
17959         (emit_notes_for_changes): Traverse changed_vars to call
17960         check_changed_vars_3 on each changed var.
17961         (emit_notes_for_differences_1): Clear cur_loc_changed and
17962         in_changed_variables.  Recompute cur_loc of new_var.
17963         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
17964         (vt_emit_notes): Initialize and destroy emitted_notes.
17965
17966 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
17967
17968         PR rtl-optimization/42220
17969         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
17970         Use verify_reg_tracked to determine if we should use OP_OUT rather
17971         than OP_INOUT.
17972         (build_def_use): If we see an in-out operand for a register that we
17973         know nothing about, treat is an output if possible, fail the block if
17974         not.
17975
17976 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17977
17978         PR debug/42897
17979         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
17980         permanently.
17981
17982 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17983
17984         PR debug/42897
17985         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
17986         uses of relevant DEFs that are dead outside the loop too.
17987
17988 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
17989
17990         * var-tracking.c (dataflow_set_merge): Swap src and src2.
17991         Reverted:
17992         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
17993         PR debug/41371
17994         * var-tracking.c (values_to_unmark): New variable.
17995         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17996         values_to_unmark vector.  Moved body to...
17997         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
17998         instead queue it into values_to_unmark vector.
17999         (vt_find_locations): Free values_to_unmark vector.
18000
18001 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
18002
18003         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
18004         (site.exp): Export them when plugins are enabled.
18005
18006 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
18007
18008         PR middle-end/42326
18009         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
18010         that contain scevs.
18011         (chrec_fold_multiply): Same.
18012
18013 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
18014
18015         PR c/43248
18016         * c-decl.c (build_compound_literal): Return early if init is
18017         an error_mark_node.
18018
18019 2010-03-04  Martin Jambor  <mjambor@suse.cz>
18020
18021         PR tree-optimization/43164
18022         PR tree-optimization/43191
18023         * tree-sra.c (type_consists_of_records_p): Reject records with
18024         zero-size bit-fields at the end.
18025
18026 2010-03-04  Mike Stump  <mikestump@comcast.net>
18027
18028         * Makefile.in (TAGS): Remove *.y.
18029
18030 2010-03-04  Richard Guenther  <rguenther@suse.de>
18031
18032         PR tree-optimization/40761
18033         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
18034         in reverse order.
18035         (my_rev_post_order_compute): New function.
18036         (init_pre): Call it.
18037
18038 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
18039
18040         PR middle-end/43209
18041         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
18042         decrease the cost of an IV candidate when the cost is infinite.
18043
18044 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18045
18046         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
18047         Use '3DNow!' for the extension of that name, ensure normal space
18048         after the string.
18049         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
18050
18051 2010-03-03  Jeff Law  <law@redhat.com>
18052
18053         * PR middle-end/32693
18054         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
18055         than gen_rtx_SUBREG.
18056         (extract_bit_field_1): Likewise.
18057
18058 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
18059
18060         * doc/sourcebuild.texi (Test directives): Document that arguments
18061         include-opts and exclude-opts are now optional for dg-skip-if,
18062         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
18063
18064 2010-03-03  Jason Merrill  <jason@redhat.com>
18065
18066         PR c++/12909
18067         * cgraph.h (varpool_node): Add extra_name field.
18068         * varpool.c (varpool_extra_name_alias): New.
18069         (varpool_assemble_decl): Emit extra name aliases.
18070         (varpool_mark_needed_node): Look past an extra name alias.
18071         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
18072         * lto-streamer-in.c (lto_input_tree): Read it.
18073         * lto-streamer-out.c (output_unreferenced_globals): Write it.
18074
18075 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18076
18077         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
18078         (sparc*-*-solaris2*): ...this.
18079
18080 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
18081
18082         PR debug/43229
18083         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
18084         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
18085         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
18086         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
18087
18088         PR debug/43237
18089         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
18090         fallthrough to default handling, just with want_address 0 instead of 2.
18091         For single element lists, add_AT_loc directly, otherwise create an
18092         artificial variable DIE and stick location list to it.
18093
18094         PR debug/43177
18095         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
18096         (VAL_EXPR_HAS_REVERSE): Define.
18097         (reverse_op): New function.
18098         (add_stores): For reversible operations add an extra MO_VAL_USE.
18099
18100 2010-03-02  Jason Merrill  <jason@redhat.com>
18101
18102         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
18103
18104 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
18105
18106         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
18107         (sparc64-*-linux*): Likewise.
18108         (sparc64-*-solaris2*): Include assembler files before linker ones.
18109         (sparc-*-solaris2*): Simplify and reorder to match previous case.
18110         * config/sparc/gas.h: Delete.
18111         * config/sparc/sol2-64.h: Add copyright notice.
18112         * config/sparc/sol2-gas-bi.h: Likewise.
18113         * config/sparc/sol2-gld.h: Likewise.
18114         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
18115         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
18116         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
18117         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
18118         (sparc_elf_asm_named_section): Rename into...
18119         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
18120
18121 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
18122
18123         * config/alpha/alpha.c (override_options): Fix -mtune error message.
18124
18125 2010-03-02  Jeff Law  <law@redhat.com>
18126
18127         PR middle-end/42431
18128         * reload1.c (rtx_p, substitute_stack): Declare.
18129         (substitute): Record addresses of changed rtxs.
18130         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
18131         Restore the original rtx when complete.
18132         (reload): Free subsitute_stack when complete.
18133
18134 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
18135
18136         * doc/gccint.texi (menu): Add Testsuites as a chapter.
18137         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
18138         new chapter.
18139         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
18140         LTO Testing, gcov Testing, profopt Testing, compat Testing,
18141         Torture Tests): Change from subsection to section.
18142
18143 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
18144             Steven Bosscher  <steven@gcc.gnu.org>
18145
18146         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
18147         instead of bb.
18148
18149 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
18150
18151         PR middle-end/42640
18152         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
18153         the assignment from the new induction variable to the assignment
18154         of the value from the original loop PHI function.
18155
18156 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
18157             Daniel Jacobowitz  <dan@codesourcery.com>
18158
18159         * doc/sourcebuild.texi (Test directives): Clarify options to
18160         dg-skip-if.
18161
18162 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18163
18164         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
18165         Disable cfi directives unless GCC and gas agree on using read-only
18166         .eh_frame sections for 64-bit.
18167         * configure: Regenerate.
18168
18169 2010-03-01  Richard Guenther  <rguenther@suse.de>
18170
18171         PR tree-optimization/43220
18172         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
18173         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
18174
18175 2010-03-01  Richard Guenther  <rguenther@suse.de>
18176             Martin Jambor  <mjambor@suse.cz>
18177
18178         PR middle-end/41250
18179         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
18180         gimplified parameters.
18181
18182 2010-03-01  Christian Bruel  <christian.bruel@st.com>
18183
18184         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
18185
18186 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18187
18188         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
18189
18190 2010-03-01  Richard Guenther  <rguenther@suse.de>
18191
18192         PR middle-end/43213
18193         * expr.c (expand_assignment): Use the alias-oracle to tell
18194         if the rhs aliases the result decl.
18195
18196 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18197
18198         PR pch/14940
18199         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
18200         to sol_gt_pch_get_address.
18201         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
18202         64-bit, SPARC and x86.
18203         (sol_gt_pch_get_address): New function.
18204
18205 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
18206
18207         * toplev.h (inform_n, error_n): Declare.
18208         * diagnostic.c (inform_n, error_n): New function.
18209
18210 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
18211
18212         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
18213         has no rtl yet when processing local_decls, queue it and recheck
18214         if deferred stack allocation hasn't assigned it rtl.
18215
18216 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
18217
18218         * config/sh/sh.c (unspec_bbr_uid): New.
18219         (gen_block_redirect): Use it instead of INSN_UID.
18220         (gen_far_branch): Likewise.
18221
18222 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
18223
18224         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
18225         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
18226
18227 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18228
18229         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
18230         (Warning Options): -Wno-conversion-null is valid for
18231         Objective-C++ as well.
18232         * doc/tm.texi (Named Address Spaces): Likewise.
18233         * doc/plugins.texi (Plugins): Replace TABs with spaces.
18234         * doc/tree-ssa.texi (Tree SSA): Likewise.
18235
18236 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18237
18238         PR bootstrap/43202
18239         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
18240         by default.  Don't set the default arch for
18241         i[34567]86-*-darwin*|x86_64-*-darwin*.
18242
18243 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18244
18245         PR bootstrap/43202
18246         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
18247         default.  Set the default 32bit/64bit archs with $with_arch
18248         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
18249
18250 2010-02-27  Richard Guenther  <rguenther@suse.de>
18251
18252         PR tree-optimization/43186
18253         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
18254         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
18255         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
18256         unroller iterations.
18257
18258 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
18259
18260         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
18261         required and i[34567]86-*-* targets don't support 64bit ISA.
18262
18263 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
18264
18265         PR ada/43096
18266         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18267         the same alias set.
18268
18269 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
18270
18271         * config.gcc: Set the default arch at least to Prescott for
18272         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
18273         if SSE math is enabled.
18274
18275 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18276
18277         * diagnostic.c (diagnostic_initialize): Update.
18278         (diagnostic_report_diagnostic): Test inhibit_notes_p for
18279         informative notes.
18280         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
18281         (diagnostic_inhibit_notes): New.
18282         * toplev.c (process_options): inhibit notes with -fcompare-debug.
18283
18284 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18285
18286         PR c/20631
18287         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
18288         * doc/standards.texi: Likewise.
18289         * doc/extend.texi: Likewise.
18290         * doc/trouble.texi: Likewise.
18291         * doc/cppopts.texi: Likewise.
18292         * doc/install.texi: Likewise.
18293         * c.opt (std=c90,std=gnu90): New options.
18294         * c-opts.c (c_common_handle_option): Handle them.
18295
18296 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18297
18298         PR c/24577
18299         * c-decl.c (undeclared_variable): Use an informative note.
18300
18301 2010-02-26  Richard Guenther  <rguenther@suse.de>
18302
18303         PR tree-optimization/43186
18304         * gimple.h (gimple_fold): Remove.
18305         * gimple.c (gimple_fold): Remove.  Inline into single user ...
18306         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
18307         Try harder for conditions.
18308
18309 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
18310
18311         PR debug/43190
18312         * function.c (used_types_insert): Don't skip through named pointer
18313         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
18314         and it is different from the main variant's type.
18315
18316 2010-02-26  Nick Clifton  <nickc@redhat.com>
18317
18318         * config/rx/rx.md (sminsi3): Remove bogus alternative.
18319
18320 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
18321
18322         * config.gcc: Support --with-fpmath=sse for x86.
18323
18324         * config/i386/ssemath.h: New.
18325
18326         * doc/install.texi (--with-fpmath=sse): Documented.
18327
18328 2010-02-26  Richard Guenther  <rguenther@suse.de>
18329
18330         PR tree-optimization/43188
18331         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
18332         vector types of over-aligned element type.
18333
18334 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
18335
18336         PR target/43175
18337         * config/i386/i386.c (expand_vec_perm_blend): Use correct
18338         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
18339
18340 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
18341
18342         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
18343
18344 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
18345
18346         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
18347         * var-tracking.c: Include diagnostic.h.
18348         (debug_dv): New function.
18349         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
18350
18351         PR debug/43160
18352         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
18353         (add_value_chain, add_value_chains, remove_value_chain,
18354         remove_value_chains): Handle DEBUG_EXPRs.
18355         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
18356
18357         PR debug/43161
18358         * regcprop.c (struct queued_debug_insn_change): New type.
18359         (struct value_data_entry): Add debug_insn_changes field.
18360         (struct value_data): Add n_debug_insn_changes field.
18361         (debug_insn_changes_pool): New variable.
18362         (free_debug_insn_changes, apply_debug_insn_changes,
18363         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
18364         (kill_value_one_regno): Call free_debug_insn_changes if needed.
18365         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
18366         fields.
18367         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
18368         changes for them.
18369         (copyprop_hardreg_forward_1): Don't call apply_change_group for
18370         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
18371         changes, call cprop_find_used_regs via note_stores.
18372         (copyprop_hardreg_forward): When copying vd from predecessor
18373         which has any queued DEBUG_INSN changes, make sure the pointers are
18374         cleared.  At the end call df_analyze and then if there are any
18375         DEBUG_INSN changes queued at the end of some basic block for still
18376         live registers, apply them.
18377         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
18378
18379 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
18380
18381         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
18382         (arm*-*-*): Ditto.
18383
18384 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
18385
18386         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
18387         targets.  Set the default with_cpu/with_arch from arch/cpu.
18388         Allow x86-64 and native for with_cpu/with_arch.
18389
18390 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
18391
18392         * ebitmap.c: Change calls to verify_popcount with calls to
18393         sbitmap_verify_popcount.
18394         (ebitmap_clear_bit): Fixed map->cacheindex test and
18395         map>cache update when bit clearing results in an empty
18396         element.
18397
18398 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
18399
18400         PR target/43154
18401         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
18402         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
18403         and support both V2DF and V2DI modes.
18404         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
18405         support both V2DF and V2DI modes.
18406         (general): Delete trailing whitespace from a few patterns.
18407
18408         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18409         V2DF/V2DI interleave high/low builtins.
18410
18411         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
18412         new VSX builtins.
18413
18414         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
18415         interleave high/low functions.
18416
18417 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
18418
18419         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
18420         #pragma extern_prefix.
18421
18422 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
18423
18424         PR debug/43166
18425         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
18426         BLKmode, assert op0 is a MEM and just adjust its mode.
18427
18428         PR debug/43165
18429         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
18430         if bitpos isn't multiple of mode's bitsize.
18431
18432 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18433
18434         * c.opt (-ftemplate-depth=): New.
18435         (-ftemplate-depth-): Deprecate.
18436         * optc-gen.awk: Handle -ftemplate-depth=.
18437         * opth-gen.awk: Likewise.
18438         * c-opts.c (c_common_handle_option): Likewise.
18439         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
18440
18441 2010-02-24  Jason Merrill  <jason@redhat.com>
18442
18443         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
18444
18445 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18446
18447         * cfg.c (alloc_aux_for_block): Remove inline.
18448         (alloc_aux_for_edge): Likewise.
18449
18450 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18451
18452         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
18453
18454 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18455
18456         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
18457         * config/i386/sol2-gas.h: New file.
18458         * config.gcc (i[34567]86-*-solaris2*): Use it.
18459
18460 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18461
18462         PR c/43128
18463         * c-typeck.c (ep_convert_and_check): New.
18464         (build_conditional_expr): Use it.
18465         (build_binary_op): Likewise.
18466
18467 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
18468
18469         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
18470
18471         PR debug/43150
18472         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
18473         bounds even for -O+.
18474         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
18475         expr needs to have DECL_NAME set.
18476
18477 2010-02-24  Nick Clifton  <nickc@redhat.com>
18478
18479         * config/mep/mep.c: Include gimple.h.
18480         (mep_function_uses_sp): Delete unused function.
18481         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
18482         parameters.  Use unsigned integers to count args.  Return a
18483         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
18484
18485 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
18486
18487         PR target/43107
18488         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
18489         greater or equal to nelt instead of 2 * nelt.
18490         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
18491         with nelt - 1.
18492
18493 2010-02-23  Jason Merrill  <jason@redhat.com>
18494
18495         PR debug/42800
18496         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
18497         in cfun->local_decls even if they have register types.
18498
18499         PR c++/42837
18500         * stor-layout.c (place_field): Don't warn about unnecessary
18501         DECL_PACKED if the type is packed.
18502
18503 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
18504
18505         PR target/43139
18506         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
18507         GOTOFF relocs, even when the base reg isn't pic pointer.
18508
18509 2010-02-23  Michael Matz  <matz@suse.de>
18510
18511         PR debug/43077
18512         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
18513         (expand_gimple_basic_block): Generate and use debug temps if there
18514         are debug uses left after the last real use of TERed ssa names.
18515         Unlink debug immediate uses when they are expanded.
18516
18517 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18518
18519         PR 43123
18520         * config/i386/i386.c (override_options): Reorganise to provide
18521         better error messages.
18522
18523 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18524
18525         PR middle-end/43083
18526         * graphite-scop-detection.c (create_single_exit_edge): Move
18527         the call to find_single_exit_edge to....
18528         (create_sese_edges): ...here.  Don't handle multiple edges
18529         exiting the function.
18530         (build_graphite_scops): Don't handle multiple edges
18531         exiting the function.
18532
18533 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18534
18535         PR middle-end/43097
18536         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
18537         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
18538
18539 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
18540
18541         PR middle-end/43026
18542         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
18543
18544 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18545
18546         PR c++/43126
18547         * c-typeck.c (convert_arguments): Print declaration location.
18548         * c-common.c (validate_nargs): Rename as
18549         builtin_function_validate_nargs.
18550         (check_builtin_function_arguments): Update.
18551
18552 2010-02-22  Richard Guenther  <rguenther@suse.de>
18553
18554         PR lto/43045
18555         * tree-inline.c (declare_return_variable): Use the type of
18556         the call stmt lhs if available.
18557
18558 2010-02-22  Duncan Sands  <baldrick@free.fr>
18559
18560         * passes.c (register_pass): Always consider all pass lists when
18561         ref_pass_instance_number is zero.
18562
18563 2010-02-22  Richard Guenther  <rguenther@suse.de>
18564
18565         PR tree-optimization/42749
18566         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
18567         parameter.  Do arithmetic in the original type.
18568         (update_accumulator_with_ops): Likewise.
18569         (adjust_accumulator_values): Adjust.
18570
18571 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18572
18573         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
18574         (QI to BLKmode splitter): New splitter.
18575
18576 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
18577
18578         * config/i386/i386.c (initial_ix86_tune_features): Turn on
18579         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
18580
18581 2010-02-22  Richard Guenther  <rguenther@suse.de>
18582
18583         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
18584
18585 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
18586
18587         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
18588         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
18589         ($(T)crti.o, $(T)crtn.o): Remove rules.
18590
18591 2010-02-21  Tobias Burnus  <burnus@net-b.de>
18592
18593         PR fortran/35259
18594         * doc/invoke.texi (-fassociative-math): Document that this
18595         option is automatically enabled for Fortran.
18596
18597 2010-02-20  David S. Miller  <davem@davemloft.net>
18598
18599         * configure.ac: Test if linker and assembler properly support
18600         GOTDATA_OP relocations.
18601         * configure: Rebuild.
18602         * config.in: Likewise.
18603         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
18604         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
18605         (movsi_high_pic): Likewise.
18606         (movdi_lo_sum_pic): Likewise.
18607         (movdi_high_pic): Likewise.
18608         (movsi_pic_gotdata_op): New pattern.
18609         (movdi_pic_gotdata_op): Likewise.
18610         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
18611         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
18612
18613 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
18614
18615         PR target/43067
18616         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
18617         attribute to ssemul.
18618         (xop_mulv2div2di3_high): Ditto.
18619
18620 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18621
18622         PR c++/35669
18623         * c.opt (Wconversion-null): New option.
18624         * doc/invoke.texi (Wconversion-null): Document.
18625
18626 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18627
18628         * common.opt (Wlarger-than-): Add Undocumented.
18629
18630 2010-02-19  Mike Stump  <mikestump@comcast.net>
18631
18632         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
18633
18634 2010-02-19  Jason Merrill  <jason@redhat.com>
18635
18636         PR target/40332
18637         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
18638         * configure: Likewise.
18639
18640 2010-02-20  Alan Modra  <amodra@gmail.com>
18641
18642         PR middle-end/42344
18643         * cgraph.h (cgraph_make_decl_local): Declare.
18644         * cgraph.c (cgraph_make_decl_local): New function.
18645         (cgraph_make_node_local): Use it.
18646         * cgraphunit.c (cgraph_function_versioning): Likewise.
18647         * ipa.c (function_and_variable_visibility): Likewise.
18648
18649 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
18650
18651         PR bootstrap/43121
18652         * except.c (sjlj_emit_function_enter): Don't call
18653         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
18654         directly.
18655         * rtl.h (add_reg_br_prob_note): Remove prototype.
18656
18657 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18658
18659         PR 41779
18660         * c-common.c (conversion_warning): Remove widening conversions
18661         before checking the conversion of integers to reals.
18662
18663 2010-02-19  Mike Stump  <mikestump@comcast.net>
18664
18665         PR middle-end/43125
18666         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
18667
18668         PR objc/43061
18669         * cgraphunit.c (process_function_and_variable_attributes): Check
18670         DECL_PRESERVE_P instead of looking up attribute "used".
18671         * ipa-pure-const.c (check_decl): Likewise.
18672         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
18673         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
18674         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
18675         instead of attribute "used".
18676         * config/sol2-c.c (solaris_pragma_init): Likewise.
18677         (solaris_pragma_fini): Likewise.
18678
18679 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
18680
18681         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
18682         Use XCNEW instead of xcalloc.
18683         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
18684         XNEW instead of xmalloc.
18685         (get_fields): Use XNEWVEC instead of xmalloc.
18686
18687         PR debug/43084
18688         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
18689         populate vars array.
18690         (create_new_general_access): For debug stmts just reset value.
18691         (get_stmt_accesses): For accesses within debug stmts just record them
18692         using add_access_to_acc_sites instead of preventing the peeling or
18693         counting them as accesses.
18694
18695         PR middle-end/42233
18696         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
18697
18698 2010-02-19  Richard Guenther  <rguenther@suse.de>
18699
18700         PR tree-optimization/42916
18701         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
18702         instructions.
18703
18704 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
18705
18706         * configure.ac: Replace all uses of changequote in macro arguments
18707         with proper quoting.
18708
18709 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
18710
18711         PR middle-end/42233
18712         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
18713
18714 2010-02-19  Richard Guenther  <rguenther@suse.de>
18715
18716         PR tree-optimization/42944
18717         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
18718         test for aliasing with errno.
18719
18720 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
18721
18722         PR middle-end/42233
18723         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
18724         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
18725         * dojump.c: Include output.h.
18726         (inv): New inline function.
18727         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
18728         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
18729         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
18730         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
18731         argument, pass it down to other calls.
18732         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
18733         add REG_BR_PROB note to the conditional jump.
18734         * cfgexpand.c (add_reg_br_prob_note): Removed.
18735         (expand_gimple_cond): Don't call it, add the probability
18736         as last argument to jumpif_1/jumpifnot_1.
18737         * Makefile.in (dojump.o): Depend on output.h.
18738         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
18739         callers.
18740         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
18741         * stmt.c (do_jump_if_equal): Likewise.
18742         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
18743         * loop-unswitch.c (compare_and_jump_seq): Likewise.
18744         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
18745         Likewise.
18746         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
18747         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
18748         jumpifnot_1 callers.
18749         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
18750         callers.
18751         (store_expr): Adjust jumpifnot caller.
18752         (store_constructor): Adjust jumpif caller.
18753
18754         PR middle-end/42233
18755         * gimplify.c (gimple_boolify): For __builtin_expect call
18756         gimple_boolify also on its first argument.
18757
18758 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
18759
18760         * configure.ac (gnu-unique-object): Wrap regexps using [] in
18761         changequote block.
18762         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
18763         * configure: Regenerated.
18764
18765 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18766
18767         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
18768         lang_hooks.types_compatible_p instead of comptypes.
18769
18770 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18771
18772         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
18773         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
18774         if __prefer_thumb__ is defined.
18775
18776 2010-02-18  Martin Jambor  <mjambor@suse.cz>
18777
18778         PR tree-optimization/43066
18779         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
18780         array with zero-sized element type.
18781
18782 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
18783
18784         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
18785         rtx, allocate struct var_loc_node here and return it to the
18786         caller, and only if it is actually needed.
18787         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
18788         move it earlier and return immediately if it returns NULL.
18789
18790 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
18791
18792         * config/sparc/gas.h: New file.  Restore
18793         TARGET_ASM_NAMED_SECTION to its ELF default.
18794         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
18795         check !HAVE_GNU_AS.
18796         * config/sparc/sparc.c (sparc_elf_asm_named_section):
18797         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
18798         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
18799         after sparc/sysv4.h.
18800
18801 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
18802
18803         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
18804
18805 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
18806
18807         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
18808         patterns from predicated pattern.
18809
18810 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
18811
18812         PR target/43103
18813         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
18814         for insn mnemonic suffix.
18815
18816 2010-02-17  Richard Guenther  <rguenther@suse.de>
18817
18818         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
18819         to loop PHI nodes.
18820
18821 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
18822
18823         PR debug/42918
18824         * caller-save.c (save_call_clobbered_regs): If BB ends with
18825         a DEBUG_INSN, move any notes in between last real insn and the last
18826         DEBUG_INSN after the last DEBUG_INSN.
18827
18828 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
18829
18830         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
18831         Fix return type.  Fix argument type.  Explain meaning of return value.
18832
18833 2010-02-16  Richard Guenther  <rguenther@suse.de>
18834
18835         PR tree-optimization/41043
18836         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
18837         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
18838         statements ...
18839         (vrp_visit_phi_node): ... but only for loop PHI nodes.
18840
18841 2010-02-16  Ira Rosen  <irar@il.ibm.com>
18842
18843         PR tree-optimization/43074
18844         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
18845         * tree-vect-loop.c (vect_analyze_loop_operations): Add
18846         vectorizable cycles in hybrid SLP check.
18847         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
18848
18849 2010-02-16  Richard Guenther  <rguenther@suse.de>
18850
18851         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
18852         (true_dependence): If memrefs_conflict_p computes must-alias
18853         trust it.  Move TBAA check after offset-based disambiguation.
18854         (canon_true_dependence): Likewise.
18855
18856 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
18857
18858         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
18859         * doc/invoke.texi: Document it.
18860         * var-tracking.c: Include toplev.h and params.h.
18861         (vt_find_locations): Return bool indicating success.  Compute
18862         hash sizes unconditionally.  Check new parameter, report.
18863         (variable_tracking_main_1): Check vt_find_locations results and
18864         retry.  Renamed from...
18865         (variable_tracking_main): ... this.  New wrapper to preserve
18866         flag_var_tracking_assignments.
18867         * Makefile.in (var-tracking.o): Adjust dependencies.
18868
18869 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
18870             Jakub Jelinek  <jakub@redhat.com>
18871
18872         PR target/42854
18873         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
18874         if weak_import attribute is present.
18875         * config/darwin.c (machopic_select_section): Likewise.
18876
18877 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
18878
18879         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
18880         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
18881         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
18882         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
18883
18884         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
18885         types.
18886
18887         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18888         Fix argument types.
18889
18890         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
18891         Rewrite text to refer to the names.
18892
18893 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
18894
18895         * config/i386/i386-builtin-types.def
18896         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
18897         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
18898         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
18899         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
18900         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
18901         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
18902         IX86_BUILTIN_VPERMIL2PS256.
18903         (MULTI_ARG_4_DF2_DI_I): Defined.
18904         (MULTI_ARG_4_DF2_DI_I1): Defined.
18905         (MULTI_ARG_4_SF2_SI_I): Defined.
18906         (MULTI_ARG_4_SF2_SI_I1): Defined.
18907         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
18908         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
18909         __builtin_ia32_vpermil2ps256.
18910         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18911         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18912         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
18913         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18914         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18915         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
18916         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
18917         CODE_FOR_xop_vpermil2v8sf3.
18918         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
18919         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
18920         * config/i386/xopintrin.h (_mm_permute2_pd): New.
18921         (_mm256_permute2_pd): New.
18922         (_mm_permute2_ps): New.
18923         (_mm256_permute2_ps): New.
18924
18925 2010-02-15  Nick Clifton  <nickc@redhat.com>
18926
18927         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
18928         boolean parameters.  Use emit_jump_insn when emitting a pop
18929         instruction containing a return insn.
18930         (push): Use 'true' rather than '1' as second parameter to F.
18931         (h8300_expand_prologue): Likewise.
18932         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
18933         (h8300_expand_epilogue): Likewise.
18934
18935 2010-02-15  Richard Guenther  <rguenther@suse.de>
18936
18937         PR middle-end/43068
18938         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
18939         if that is zero.
18940
18941 2010-02-15  Nick Clifton  <nickc@redhat.com>
18942
18943         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
18944         delta.
18945
18946 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
18947
18948         * intl.c (fake_ngettext): New function.
18949         * intl.h (fake_ngettext): Declare.
18950         (ngettext): Define macro.
18951         * collect2.c (notice_translated): New function.
18952         (main): Use notice_translated and ngettext.
18953         * collect2.h (notice_translated): Declare.
18954
18955 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
18956
18957         * reorg.c (delete_computation): Comment fixes.
18958         * caller-save.c (setup_save_areas): Idem.
18959         * sel-sched-dump.c (dump_lv_set): Idem.
18960         * rtl.def: Idem.
18961
18962 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18963
18964         * config/s390/s390.c (s390_sched_init): New function.
18965         (TARGET_SCHED_INIT): Target hook defined.
18966
18967 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
18968             Jack Howarth  <howarth@bromo.med.uc.edu>
18969             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18970
18971         PR target/42982
18972         Partial revert of unintended change in fix for PR41605.
18973         * config/darwin.h: Fix typo.
18974         * config/darwin9.h: Same.
18975
18976 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
18977
18978         * c-pch.c (pch_init): Clear v.
18979
18980 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18981
18982         PR middle-end/42930
18983         * graphite-scop-detection.c (graphite_can_represent_scev): Call
18984         graphite_can_represent_init for MULT_EXPR.
18985
18986 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18987
18988         PR middle-end/42914
18989         PR middle-end/42530
18990         * graphite-sese-to-poly.c (remove_phi): New.
18991         (translate_scalar_reduction_to_array): Call remove_phi.
18992
18993 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
18994
18995         PR middle-end/42771
18996         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
18997         * graphite-clast-to-gimple.h (gloog): Update declaration.
18998         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
18999         * graphite-poly.h (struct poly_bb): Add missing comments.
19000         (struct scop): Add poly_scop_p field.
19001         (POLY_SCOP_P): New.
19002         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
19003         * graphite.c (graphite_transform_loops): Build the polyhedral
19004         representation for each scop before code generation.
19005         * sese.c (rename_variables_in_operand): Removed.
19006         (rename_variables_in_expr): Return the renamed expression.
19007         (rename_sese_parameters): New.
19008         * sese.h (rename_sese_parameters): Declared.
19009
19010 2010-02-11  Richard Guenther  <rguenther@suse.de>
19011
19012         PR tree-optimization/42998
19013         * tree-ssa-pre.c (create_expression_by_pieces): Treat
19014         POINTER_PLUS_EXPR properly.
19015
19016 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
19017             Changpeng Fang  <changpeng.fang@amd.com>
19018
19019         PR middle-end/40886
19020         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
19021         the cost of an IV candidate when the IV is used in a test against zero.
19022
19023         * gcc.dg/tree-ssa/ivopts-3.c: New.
19024
19025 2010-02-11  Richard Guenther  <rguenther@suse.de>
19026
19027         PR lto/41664
19028         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
19029         pointer-vs-decl case by swapping refs.  Handle some cases
19030         of pointer-vs-decl disambiguations more conservatively.
19031         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
19032         to false after expanding.
19033
19034 2010-02-11  Richard Guenther  <rguenther@suse.de>
19035
19036         PR driver/43021
19037         * gcc.c (process_command): Handle LTO file@offset case more
19038         appropriately.
19039
19040 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
19041
19042         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
19043         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
19044         of DEBUG_INSNs.
19045         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
19046
19047         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
19048         if MEM's mode size isn't DWARF2_ADDR_SIZE.
19049         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
19050         Optimize eq/ne comparisons when both arguments are known to be
19051         zero-extended.
19052         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
19053         Don't mask operands unnecessarily if they are known to be already
19054         zero-extended.
19055
19056 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
19057
19058         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
19059         instead of loop.
19060
19061 2010-02-10  Richard Guenther  <rguenther@suse.de>
19062
19063         PR tree-optimization/43017
19064         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
19065         for wrapping signed arithmetic.
19066
19067 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
19068
19069         PR debug/43010
19070         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
19071         if no debug info should be emitted for it.
19072
19073 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
19074
19075         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
19076         note when flag_exceptions is set.
19077
19078 2010-02-10  Duncan Sands  <baldrick@free.fr>
19079
19080         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
19081
19082 2010-02-10  Richard Guenther  <rguenther@suse.de>
19083
19084         PR c/43007
19085         * tree.c (get_unwidened): Handle constants.
19086         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
19087
19088 2010-02-10  Martin Jambor  <mjambor@suse.cz>
19089
19090         PR lto/42985
19091         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
19092         check for variable argument counts independently.
19093
19094 2010-02-10  Christian Bruel  <christian.bruel@st.com>
19095
19096         PR target/42841
19097         * config/sh/sh.c (find_barrier): Increase length for non delayed
19098         conditional branches.
19099
19100 2010-02-10  Christian Bruel  <christian.bruel@st.com>
19101
19102         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
19103
19104 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
19105
19106         * builtins.c (set_builtin_user_assembler_name): Also handle
19107         ffs if int is smaller than word.
19108
19109 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
19110
19111         PR middle-end/42973
19112         * ira-conflicts.c (get_dup): Remove.
19113         (process_reg_shuffles): Add new parameter.  Use it as an
19114         additional guard for copy generation.
19115         (add_insn_allocno_copies): Rewrite.
19116
19117 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
19118
19119         * common.opt (fsched2-use-traces): Preserved for backward
19120         compatibility.
19121         * doc/invoke.texi: Remove the documentation about option
19122         -fsched2-use-traces.
19123         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
19124         flag_sched2_use_traces.
19125         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
19126         the backward compatibility flag section.
19127
19128 2010-02-09  Richard Guenther  <rguenther@suse.de>
19129
19130         PR tree-optimization/43008
19131         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
19132         make HEAP variables initialized from global memory if they
19133         are not known builtin functions.
19134         (find_func_aliases): Adjust.
19135
19136 2010-02-09  Richard Guenther  <rguenther@suse.de>
19137
19138         PR tree-optimization/43000
19139         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
19140         arithmetic manually.
19141
19142 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
19143
19144         PR tree-optimization/42931
19145         * tree-loop-linear.c (try_interchange_loops): Don't call
19146         double_int_mul if estimated_loop_iterations failed.
19147
19148 2010-02-08  Martin Jambor  <mjambor@suse.cz>
19149
19150         PR middle-end/42898
19151         * tree-sra.c (build_accesses_from_assign): Do not mark in
19152         should_scalarize_away_bitmap if stmt has volatile ops.
19153         (sra_modify_assign): Do not process assigns piecemeal if if stmt
19154         has volatile ops.
19155
19156 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
19157
19158         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
19159
19160 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
19161
19162         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
19163         before the pattern.
19164
19165 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
19166
19167         PR middle-end/42946
19168         * df-core.c (df_finish_pass): Change type of saved_flags to int.
19169
19170 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
19171
19172         PR middle-end/42988
19173         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
19174         to unknown_dependence.
19175         (graphite_legal_transform_dr): Handle the unknown_dependence.
19176         (graphite_carried_dependence_level_k): Same.
19177
19178 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
19179
19180         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
19181
19182 2010-02-07  Richard Guenther  <rguenther@suse.de>
19183
19184         PR middle-end/42991
19185         * expr.c (get_inner_reference): Always initialize *pbitsize.
19186
19187 2010-02-07  Richard Guenther  <rguenther@suse.de>
19188
19189         PR middle-end/42956
19190         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
19191         new ARRAY_REFs on variable size element or minimal index arrays.
19192         Complete.
19193         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
19194         gimple_fold_indirect_ref.
19195
19196 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
19197
19198         PR target/42957
19199         * arm.c (arm_override_options): Just return if the user has specified
19200         an invalid fpu name.
19201
19202 2010-02-03  Jason Merrill  <jason@redhat.com>
19203
19204         PR c++/42870
19205         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
19206         i386_pe_maybe_record_exported_symbol.
19207
19208 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
19209
19210         PR target/42924
19211         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19212         (pa_delegitimize_address): New function.
19213
19214 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
19215
19216         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
19217         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
19218
19219 2010-02-05  Richard Guenther  <rguenther@suse.de>
19220
19221         PR lto/42762
19222         * lto-streamer-in.c (get_resolution): Deal with references
19223         to undefined functions.
19224
19225 2010-02-05  Richard Guenther  <rguenther@suse.de>
19226
19227         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
19228         (fold_const_aggregate_ref): Likewise.
19229         (ccp_fold_stmt): Substitute loads.
19230         (maybe_fold_reference): Verify types before substituting.
19231         Unshare properly.
19232         (fold_gimple_assign): Unshare properly.
19233         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
19234
19235 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
19236
19237         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
19238         for rs6000_gen_cell_microcode.
19239
19240 2010-02-04  Richard Guenther  <rguenther@suse.de>
19241
19242         PR rtl-optimization/42952
19243         * dse.c (const_or_frame_p): Remove MEM handling.
19244
19245 2010-02-04  Nick Clifton  <nickc@redhat.com>
19246
19247         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19248         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
19249         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
19250         (mn10300_asm_output_mi_thunk): New function.
19251         (mn10300_can_output_mu_thunk): New function.
19252         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
19253         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
19254         (FUNCTION_ARG): Delete incorrect comment.
19255
19256 2010-02-03  Jason Merrill  <jason@redhat.com>
19257
19258         PR c++/40138
19259         * fold-const.c (operand_equal_p): Handle erroneous types.
19260
19261 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19262
19263         * config/h8300/h8300.md (can_delay): Fix attibute condition.
19264
19265 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
19266
19267         PR rtl-optimization/42941
19268         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
19269         of xmalloc.
19270
19271 2010-02-03  Jason Merrill  <jason@redhat.com>
19272
19273         PR c++/35652
19274         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
19275
19276 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
19277
19278         PR debug/42896
19279         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
19280         (cselib_reset_table): Renamed from...
19281         (cselib_reset_table_with_next_value): ... this.
19282         (cselib_get_next_uid): Renamed from...
19283         (cselib_get_next_unknown_value): ... this.
19284         * cselib.c (next_uid): Renamed from...
19285         (next_unknown_value): ... this.
19286         (cselib_clear_table): Adjust.
19287         (cselib_reset_table): Adjust.  Renamed from...
19288         (cselib_reset_table_with_next_value): ... this.
19289         (cselib_get_next_uid): Adjust.  Renamed from...
19290         (cselib_get_next_unknown_value): ... this.
19291         (get_value_hash): Use hash.
19292         (cselib_hash_rtx): Likewise.
19293         (new_cselib_val): Adjust.  Set and dump uid.
19294         (cselib_lookup_mem): Pass next_uid as hash.
19295         (cselib_subst_to_values): Likewise.
19296         (cselib_log_lookup): Dump uid.
19297         (cselib_lookup): Pass next_uid as hash.  Adjust.
19298         (cselib_process_insn): Adjust.
19299         (cselib_init): Initialize next_uid.
19300         (cselib_finish): Adjust.
19301         (dump_cselib_table): Likewise.
19302         * dse.c (canon_address): Dump value uid.
19303         * print-rtl.c (print_rtx): Print value uid.
19304         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
19305         (dvuid): New type.
19306         (dv_uid): New function, sort of renamed from...
19307         (dv_htab_hash): ... this, reimplemented in terms of it and...
19308         (dv_uid2hash): ... this.  New.
19309         (variable_htab_eq): Drop excess assertions.
19310         (tie_break_pointers): Removed.
19311         (canon_value_cmp): Compare uids.
19312         (variable_post_merge_New_vals): Print uids.
19313         (vt_add_function_parameters): Adjust.
19314         (vt_initialize): Reset table.  Adjust.
19315
19316 2010-02-03  Richard Guenther  <rguenther@suse.de>
19317
19318         PR tree-optimization/42944
19319         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
19320         (call_may_clobber_ref_p_1): Likewise.  Properly handle
19321         malloc and calloc clobbering errno.
19322
19323 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
19324
19325         * doc/invoke.texi: Fix name of sched1 dump.
19326
19327         * opts.c (decode_options): Set flag_tree_switch_conversion
19328         only conditionally on optimize >= 2.
19329
19330         * gcse.c: Assorted comment fixes in pass description.
19331
19332 2010-02-03  Anthony Green  <green@moxielogic.com>
19333
19334         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
19335         nop padding in order to maintain alignment of storage location of
19336         target function address.
19337         (moxie_trampoline_init): Store target function address at newly
19338         aligned location.
19339         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
19340         to 32.
19341         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
19342
19343 2010-02-03  Richard Guenther  <rguenther@suse.de>
19344
19345         PR middle-end/42927
19346         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
19347
19348 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19349
19350         * config.gcc: Reenable check for obsolete targets.
19351         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
19352         mips-sgi-irix6.[0-4]*.
19353
19354 2010-02-02  Nick Clifton  <nickc@redhat.com>
19355
19356         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
19357         constant size of 4 as being the same as 0.
19358         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
19359         can take values in the range 0..4.
19360
19361 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
19362
19363         PR java/41991
19364         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
19365         as _darwin10_Unwind_FindEnclosingFunction().
19366         * libgcc-libsystem.ver: New.
19367
19368 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
19369
19370         PR target/41399
19371         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
19372         implicitly set registers.
19373
19374 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
19375
19376         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
19377         (arm_override_options): Allow automatic selection of the thread
19378         pointer register if thumb2.
19379         (legitimize_pic_address): Improve code sequences for Thumb2.
19380         (arm_call_tls_get_addr): Likewise.
19381         (legitimize_tls_address): Likewise.
19382         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
19383         (pic_load_addr_32bit): ... this.  New named pattern.
19384         * thumb2.md (pic_load_addr_thumb2): Delete.
19385         (pic_load_dot_plus_four): Delete.
19386         (tls_load_dot_plus_four): New named pattern.
19387
19388 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19389
19390         PR libgomp/29986
19391         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
19392         Document fix for TLS bug.
19393
19394 2010-01-31  Richard Guenther  <rguenther@suse.de>
19395
19396         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
19397         conservatively correct.
19398
19399 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19400
19401         PR target/42850
19402         Revert:
19403         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19404
19405         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19406
19407 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19408
19409         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
19410
19411 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
19412
19413         * config.gcc: Adjust order of makefile fragments for mingw targets.
19414
19415 2010-01-31  Richard Guenther  <rguenther@suse.de>
19416
19417         PR middle-end/42898
19418         * gimplify.c (gimplify_init_constructor): For volatile LHS
19419         initialize a temporary.
19420
19421 2010-01-31  Matthias Klose  <doko@ubuntu.com>
19422
19423         * configure.ac: Fix __stack_chk_fail check for cross builds configured
19424         --with-headers
19425         * configure: Regenerate.
19426
19427 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
19428
19429         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19430         the same alias set and their sizes different constantness.
19431         (aliasing_component_refs_p): Revert 2009-10-24 change.
19432
19433 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19434
19435         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
19436         unused.
19437
19438 2010-01-29  Richard Guenther  <rguenther@suse.de>
19439
19440         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
19441         Assert we successfully updated the call.
19442
19443 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
19444
19445         PR rtl-optimization/42889
19446         * df.h (df_set_bb_dirty_nonlr): New prototype.
19447         * df-core.c (df_set_bb_dirty_nonlr): New function.
19448         * df-scan.c (df_insn_rescan): Call it instead of
19449         df_set_bb_dirty for DEBUG_INSNs.
19450
19451 2010-01-29  Richard Guenther  <rguenther@suse.de>
19452
19453         PR middle-end/37448
19454         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
19455         quadratic behavior in most cases.
19456
19457 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
19458
19459         PR target/42891
19460         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
19461         in the call to gen_x86_movsicc_0_m1.
19462
19463 2010-01-28  Richard Guenther  <rguenther@suse.de>
19464
19465         PR tree-optimization/42871
19466         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
19467
19468 2010-01-28  Richard Guenther  <rguenther@suse.de>
19469
19470         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
19471         into call arguments.
19472
19473 2010-01-28  Richard Guenther  <rguenther@suse.de>
19474
19475         PR middle-end/42883
19476         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
19477         the forwarder if the destination is an EH landing pad.
19478
19479 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
19480
19481         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
19482         block list passed to gimple_duplicate_sese_tail.
19483         (parallelize_loops): Avoid parallelization when the function
19484         has_nonlocal_label.
19485         Avoid parallelization when the preheader is IRREDUCIBLE.
19486         Try to optimize when estimated_loop_iterations_int is unresolved.
19487         Add the loop's location to the dump file.
19488         * tree-cfg.c (add_phi_args_after_redirect): Remove.
19489         (gimple_duplicate_sese_tail): Remove the check for the latch.
19490         Redirect nexits to the exit block.
19491         Remove handling of the incoming edges to the latch.
19492         Redirect the backedge from the copied latch to the exit bb.
19493
19494 2010-01-28  Michael Matz  <matz@suse.de>
19495
19496         PR target/42881
19497         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
19498         Wrap force_reg into a sequence, emit it before user.
19499
19500 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
19501
19502         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
19503         (arm_rev): New.
19504         (arm_legacy_rev): Likewise.
19505         (thumb_legacy_rev): Likewise.
19506
19507 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
19508
19509         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
19510         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
19511         on MEM's address failed, try avoid_constant_pool_reference and
19512         recurse if it returned something different.
19513         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
19514         address, try avoid_constant_pool_reference and recurse if it
19515         returned something different.
19516         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
19517         address and avoid_constant_pool_reference returned something
19518         different, don't set have_address.
19519
19520 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
19521
19522         PR debug/42861
19523         * var-tracking.c (val_store): Add modified argument, obey it.
19524         Adjust callers.
19525         (count_uses): Move down logging of main.
19526         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
19527         don't need resolution.
19528         (emit_notes_in_bb): Likewise.
19529
19530 2010-01-27  Richard Guenther  <rguenther@suse.de>
19531
19532         PR middle-end/42878
19533         * tree-inline.c (remap_decl): Delay remapping of SSA name
19534         default definitions until we need them.
19535
19536 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
19537
19538         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19539         (rs6000_delegitimize_address): New function.
19540
19541         * config/s390/s390.c (s390_delegitimize_address): Call
19542         delegitimize_mem_from_attrs.
19543
19544         PR middle-end/42874
19545         * tree-inline.c (cannot_copy_type_1): Removed.
19546         (copy_forbidden): Don't forbid copying of functions containing
19547         records/unions with variable length fields.
19548
19549 2010-01-27  Christian Bruel  <christian.bruel@st.com>
19550
19551         Revert:
19552         PR target/42841
19553         * config/sh/sh.c (find_barrier): Increase length for non delayed
19554         conditional branches.
19555
19556 2010-01-27  Matthias Klose  <doko@ubuntu.com>
19557
19558         * configure.ac (gnu-unique-object): Fix ldd version check.
19559         * configure: Regenerate.
19560
19561 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19562
19563         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
19564         HAVE_GNU_AS value.
19565         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
19566         Test for HAVE_GNU_AS value.
19567
19568 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19569
19570         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
19571         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
19572         INT64_TYPE): Define.
19573         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
19574         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19575         INT_LEAST64_TYPE): Define.
19576         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
19577         UINT_LEAST64_TYPE): Define.
19578         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
19579         INT_FAST64_TYPE): Define.
19580         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19581         UINT_FAST64_TYPE): Define.
19582         (INTMAX_TYPE, UINTMAX_TYPE): Define.
19583         (INTPTR_TYPE, UINTPTR_TYPE): Define.
19584         (SIG_ATOMIC_TYPE): Define.
19585
19586 2010-01-26  Richard Guenther  <rguenther@suse.de>
19587
19588         * df-scan.c (df_scan_set_bb_info): Remove assert.
19589         (df_insn_rescan_debug_internal): Merge asserts.
19590         (df_install_ref): Likewise.
19591         (df_mark_reg): Use bitmap_set_range.
19592         (df_hard_reg_used_p): Remove assert.
19593         (df_hard_reg_used_count): Likewise.
19594
19595 2010-01-26  Richard Guenther  <rguenther@suse.de>
19596
19597         PR rtl-optimization/42685
19598         * web.c (web_main): Ignore DEBUG_INSNs.
19599
19600 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
19601
19602         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
19603
19604         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
19605         Fix types of fndecl and arglist parameters.
19606
19607 2010-01-26  Richard Guenther  <rguenther@suse.de>
19608
19609         PR middle-end/42806
19610         * tree-eh.c (unsplit_eh): Skip debug insns.
19611
19612 2010-01-26  Richard Guenther  <rguenther@suse.de>
19613
19614         PR tree-optimization/42250
19615         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
19616
19617 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
19618
19619         PR fortran/42866
19620         * omp-low.c (expand_omp_sections): Only use single_pred if
19621         l2_bb is single_pred_p.
19622
19623 2010-01-25  Christian Bruel  <christian.bruel@st.com>
19624
19625         PR target/42841
19626         * config/sh/sh.c (find_barrier): Increase length for non delayed
19627         conditional branches.
19628         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
19629
19630 2010-01-24  David S. Miller  <davem@davemloft.net>
19631
19632         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
19633         define if not using GAS.
19634         * config/sparc/sparc.c (sparc_elf_asm_named_section):
19635         Likewise.  Delete SECTION_MERGE code, which is only applicable
19636         when using GAS.
19637
19638 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
19639
19640         PR c++/42748
19641         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
19642         mangling of va_list in system headers.
19643
19644 2010-01-23  Toon Moene  <toon@moene.org>
19645
19646         * tree-predcom.c (combine_chains): Return NULL, not false.
19647
19648 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
19649
19650         * tree-loop-distribution.c (distribute_loop): Fix declaration and
19651         initialization of variable res to agree with return type.
19652
19653 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
19654
19655         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
19656         * tree-sra.c: Add include of expr.h.
19657
19658 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
19659
19660         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
19661         insert the debug stmt on the single non-EH edge from the stmt.
19662
19663 2010-01-22  Richard Henderson  <rth@redhat.com>
19664
19665         PR tree-opt/42833
19666         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
19667         the RHS until after generate_subtree_copies has insertted its
19668         code before the current statement.
19669
19670 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
19671
19672         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
19673
19674         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
19675
19676 2010-01-21  Martin Jambor  <mjambor@suse.cz>
19677
19678         PR tree-optimization/42585
19679         * tree-sra.c (struct access): New field grp_total_scalarization.
19680         (dump_access): Dump the new field.
19681         (should_scalarize_away_bitmap): New variable.
19682         (cannot_scalarize_away_bitmap): Likewise.
19683         (sra_initialize): Allocate new bitmaps.
19684         (sra_deinitialize): Free new bitmaps.
19685         (create_access_1): New function.
19686         (create_access): Parts moved to create_access_1.
19687         (type_consists_of_records_p): New function.
19688         (completely_scalarize_record): Likewise.
19689         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
19690         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
19691         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
19692         access.
19693         (analyze_all_variable_accesses): Completely scalarize small eligible
19694         records.
19695
19696 2010-01-21  Martin Jambor  <mjambor@suse.cz>
19697
19698         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
19699
19700 2010-01-21  Andrew Haley  <aph@redhat.com>
19701
19702         * gcc.c (process_command): Move lang_specific_driver before
19703         setting cc_libexec_prefix.
19704
19705 2010-01-21  Richard Guenther  <rguenther@suse.de>
19706
19707         PR middle-end/19988
19708         * fold-const.c (negate_expr_p): Pretend only negative
19709         real constants are easily negatable.
19710
19711 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
19712             Jason Merrill  <jason@redhat.com>
19713
19714         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
19715         (TYPE_TRANSPARENT_AGGR): this, for union and record.
19716         * calls.c (initialize argument_information): Handle it.
19717         * c-common.c (handle_transparent_union_attribute): Use new name.
19718         * c-decl.c (finish_struct): Ditto.
19719         * c-typeck.c (type_lists_compatible_p): Ditto.
19720         (convert_for_assignment): Use new name and also handle record.
19721         * function.c (aggregate_value_p): Handle it.
19722         (pass_by_reference): Ditto.
19723         (assign_parm_data_types): Ditto.
19724         * print-tree.c (print_node): Ditto.
19725         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
19726         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
19727         * tree.c (first_field): New fn.
19728
19729 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
19730
19731         PR target/42818
19732         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
19733         even when linking statically, for now.
19734
19735 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
19736
19737         PR debug/42715
19738         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
19739         without a cselib val.
19740         (count_uses): Accept MO_VAL_SET with no val on stores.
19741         (add_stores): Likewise.
19742
19743 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
19744
19745         * var-tracking.c (check_value_val): Add a compile time assertion.
19746         (dv_is_decl_p): Simplify.
19747         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
19748         gcc_assert if ENABLE_CHECKING.
19749
19750 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
19751
19752         PR debug/42782
19753         * var-tracking.c: Include tree-flow.h.
19754         (mem_dies_at_call): New.
19755         (dataflow_set_preserve_mem_locs): Use it.
19756         (dataflow_set_remove_mem_locs): Likewise.
19757         (dump_var): Renamed from dump_variable.  Adjust all callers.
19758         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
19759         * Makefile.in (var-tracking.o): Adjust deps.
19760
19761 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
19762
19763         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
19764
19765 2010-01-20  Richard Guenther  <rguenther@suse.de>
19766
19767         PR tree-optimization/42717
19768         * tree-ssa-dce.c (get_live_post_dom): Remove.
19769         (forward_edge_to_pdom): Take an arbitrary edge to copy
19770         degenerate PHI args from.
19771         (remove_dead_stmt): Use the first post-dominator even if it
19772         does not contain live statements as redirection destination.
19773
19774 2010-01-20  Richard Guenther  <rguenther@suse.de>
19775
19776         * tree-inline.c (estimate_num_insns): Handle EH builtins.
19777
19778 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
19779
19780         * sel-sched.c (create_speculation_check): Remove set but not used
19781         variable twin.
19782         (try_transformation_cache): Remove set but not used variable ds.
19783         (calculate_privileged_insns): Remove set but not used variables
19784         cur_insn and min_spec_insn.
19785         (find_best_expr): Remove set but not used variable avail_n.
19786         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
19787         variable e.
19788         * cgraphunit.c (assemble_thunk): Remove set but not used variable
19789         false_label.
19790         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
19791         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
19792         new_scop_exit_edge.
19793
19794 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
19795
19796         PR bootstrap/42786
19797         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
19798         cpu types.  Add support for *-sse3 cpu types.
19799         (x86_64-*-*): Ditto.
19800
19801 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
19802
19803         PR middle-end/42803
19804         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
19805         argument, call initializer_constant_valid_p_1 instead of
19806         initializer_constant_valid_p, pass CACHE to it, return NULL
19807         immediately if first call returns NULL.
19808         (initializer_constant_valid_p_1): New function.
19809         (initializer_constant_valid_p): Use it.
19810
19811 2010-01-20  Thomas Quinot  <quinot@adacore.com>
19812
19813         * tree.def (PLACEHOLDER_EXPR): Fix comment.
19814
19815 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
19816
19817         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
19818         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
19819         (loc_list_from_tree): Don't handle unsigned division.  Handle
19820         signed modulo using DW_OP_{over,over,div,mul,minus}.
19821         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
19822         modulo instead of signed.
19823
19824 2010-01-20  DJ Delorie  <dj@redhat.com>
19825
19826         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
19827         (Fpa): Pass it
19828         (h8300_emit_stack_adjustment): Propogate it.
19829         (push): Pass it.
19830         (h8300_expand_prologue): Likewise.
19831         (h8300_expand_epilogue): Likewise.
19832
19833 2010-01-19  Michael Matz  <matz@suse.de>
19834
19835         PR tree-optimization/41783
19836         * tree-data-ref.c (toplevel): Include flags.h.
19837         (dump_data_dependence_relation):  Also dump the inputs if the
19838         result will be unknown.
19839         (split_constant_offset_1): Look through some conversions.
19840         * tree-predcom.c (determine_roots_comp): Restart a new chain if
19841         the offset from last element is too large.
19842         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
19843         (reassociate_to_the_same_stmt): Handle vector registers.
19844         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
19845         (e.g. conversions).
19846         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
19847         wide_prolog_niters argument, emit widening instructions.
19848         (vect_do_peeling_for_alignment): Adjust caller, use widened
19849         variant of the iteration cound.
19850         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
19851
19852 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19853
19854         PR target/38697
19855         * config/arm/neon-testgen.m (emit_automatics): New parameter
19856         features. Adjust for Fixed_return_reg feature.
19857         (test_intrinsic): Call emit_automatics with new feature.
19858         * config/arm/neon.ml: Update copyright years.
19859         (features): New Fixed_return_reg feature.
19860         (ops): Update feature for Vget_low.
19861
19862 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
19863
19864         PR tree-optimization/42719
19865         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
19866         stmt uses.
19867
19868         PR debug/42728
19869         * fwprop.c (all_uses_available_at): Return false if def_set dest
19870         is a REG that is used in def_insn.
19871
19872 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
19873
19874         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
19875
19876         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
19877         Add argument names.
19878
19879         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
19880
19881         * target.h (struct gcc_target) <secondary_reload>: Change type
19882         of last argument to secondary_reload_info *.
19883
19884 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
19885
19886         PR target/42774
19887         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
19888         memory references with unaligned offsets.  Remove CQImode handling.
19889         (unaligned_memory_operand): Return 1 for memory references with
19890         unaligned offsets.  Remove CQImode handling.
19891
19892 2010-01-18  Richard Guenther  <rguenther@suse.de>
19893
19894         PR middle-end/39954
19895         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
19896         builtin calls.
19897
19898 2010-01-18  Richard Guenther  <rguenther@suse.de>
19899
19900         PR tree-optimization/42781
19901         * tree-ssa-structalias.c (find_what_var_points_to): Skip
19902         restrict processing only if the original variable was artificial.
19903
19904 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
19905
19906         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
19907         find number of popped argument bytes.
19908
19909         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
19910         Fix the text that describes the return value for invalid insns.
19911
19912         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
19913
19914         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
19915         Clarify what 'cost of the -dependence' is.  Fix quoting.
19916
19917         * toplev.c (default_get_pch_validity): Rename argument to "sz".
19918         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
19919
19920 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
19921
19922         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19923         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
19924
19925 2010-01-17  Richard Guenther  <rguenther@suse.de>
19926
19927         PR middle-end/42248
19928         * function.c (split_complex_args): Take a VEC to modify.
19929         (assign_parms_augmented_arg_list): Build a VEC instead of
19930         a chain of PARM_DECLs.
19931         (assign_parms_unsplit_complex): Take a VEC of arguments.
19932         Do not fixup unmodified parms.
19933         (assign_parms): Deal with the VEC.
19934         (gimplify_parameters): Likewise.
19935
19936 2010-01-17  Richard Guenther  <rguenther@suse.de>
19937
19938         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
19939         node existence check.
19940         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
19941         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
19942         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
19943         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
19944         (gimple_execute_on_growing_pred): Likewise.
19945
19946 2010-01-17  Richard Guenther  <rguenther@suse.de>
19947
19948         PR tree-optimization/42773
19949         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
19950         (compute_antic_aux): Likewise.
19951         (compute_partial_antic_aux): Likewise.
19952
19953 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
19954
19955         PR debug/42767
19956         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
19957         and US_TRUNCATE.
19958
19959 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
19960
19961         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
19962         appearance.
19963
19964         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
19965         Fix markup for strict argument.
19966
19967         (TARGET_SCHED_REORDER2): Fix argument types.
19968
19969         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
19970         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
19971
19972         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
19973         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
19974
19975         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
19976         Add argument name.
19977
19978         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
19979         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
19980         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
19981         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
19982         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
19983
19984         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
19985
19986         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
19987
19988         (TARGET_ASM_RELOC_RW_MASK): Add return type.
19989         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
19990
19991         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
19992
19993         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
19994         Use prototype.
19995
19996         (TARGET_ASM_NAMED_SECTION): Fix argument list.
19997
19998         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
19999         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
20000
20001         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
20002
20003         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
20004
20005         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
20006         referring to it.  Fix language.
20007
20008         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
20009
20010         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
20011
20012         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
20013
20014         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
20015
20016         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
20017         '@var{stream}.  Remove stray 'and'.
20018
20019         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
20020
20021         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
20022
20023         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
20024
20025         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
20026         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
20027
20028         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
20029         Fix description of return value.
20030         Rename argument "sz" to "len."
20031
20032         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
20033         Clarify meaning of 'true' return value.
20034
20035         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
20036
20037         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
20038         rep_mode versus mode_rep.
20039
20040         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
20041
20042         (TARGET_BUILTIN_DECL): Fix name.
20043
20044         (TARGET_COMMUTATIVE_P): Fix type of first argument.
20045
20046         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
20047
20048         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
20049
20050         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
20051
20052         (TARGET_RELAXED_ORDERING): Use @deftypevr.
20053
20054         (TARGET_GET_DRAP_RTX): Note that this is a hook.
20055         Clarify language.
20056
20057         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
20058         Rename argument tm_fn to md_fn.
20059
20060         (TARGET_OPTION_PRINT): Fix argument list.
20061
20062 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
20063
20064         PR target/42664
20065         * config/i386/i386.c (ix86_fixup_binary_operands):
20066         Revert FMA4 fixup of operands.
20067
20068 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20069
20070         PR gcc/42525
20071         * Makefile.in (write_entries_to_file, install-plugin):
20072         Use \012 instead of \n with tr.
20073
20074 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
20075
20076         * configure.ac (HAVE_AS_REF): New C macro.
20077         * configure: Regenerate.
20078         * config.in: Likewise.
20079         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
20080         if HAVE_AS_REF.
20081         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
20082         if HAVE_AS_REF.
20083
20084 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
20085
20086         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
20087
20088         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
20089
20090         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
20091
20092         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
20093
20094         (TARGET_IN_SMALL_DATA_P): Fix argument type.
20095
20096         (TARGET_BINDS_LOCAL_P): Fix argument type.
20097
20098         (TARGET_ASM_FILE_END): Use prototype.
20099
20100         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
20101
20102         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
20103
20104         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
20105
20106         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
20107
20108         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
20109         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
20110
20111         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
20112         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
20113
20114         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
20115         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
20116         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
20117         (TARGET_ADDR_SPACE_CONVERT): Likewise.
20118
20119         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
20120
20121         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
20122
20123         (TARGET_INIT_BUILTINS): Use prototype.
20124
20125         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
20126         Put 'const char *' in braces.  Fix parameter types.
20127         (TARGET_INVALID_CONVERSION): Fix parameter types.
20128         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
20129         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
20130
20131         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
20132         Fix argument type.
20133
20134         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
20135
20136         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
20137
20138 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
20139
20140         * doc/tm.texi (TARGET_HELP): Fix return type.
20141
20142         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
20143         in braces.  Fix argument types.
20144
20145         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
20146
20147         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
20148
20149         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
20150
20151         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
20152         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
20153
20154         (TARGET_MANGLE_TYPE): Fix argument types.
20155
20156         (TARGET_IRA_COVER_CLASSES): Use prototype.
20157
20158         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
20159
20160         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
20161
20162         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
20163
20164         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
20165
20166         (TARGET_CALLEE_COPIES): Fix argument types.
20167
20168         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
20169
20170         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
20171
20172         (TARGET_FUNCTION_VALUE): Fix argument types.
20173
20174         (TARGET_RETURN_IN_MSB): Fix argument type.
20175
20176         (TARGET_RETURN_IN_MEMORY): Fix argument types.
20177
20178         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
20179
20180         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
20181
20182         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
20183         agree with return type.
20184
20185         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
20186
20187 2010-01-15  Jing Yu  <jingyu@google.com>
20188
20189         PR rtl-optimization/42691
20190         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
20191         a pseudo to a constant and are merged, and adjust comments.
20192
20193 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
20194
20195         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
20196
20197 2010-01-15  Richard Guenther  <rguenther@suse.de>
20198
20199         PR middle-end/42739
20200         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
20201         labels of computed or non-local gotos to the destination.
20202         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
20203         landing pad label is the first label.
20204
20205 2010-01-15  Richard Guenther  <rguenther@suse.de>
20206
20207         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
20208
20209 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20210
20211         PR target/42747
20212         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
20213         to allow generation of the xssqrtdp instruction on power7.
20214         (sqrtdf2_fpr): Ditto.
20215
20216 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
20217
20218         PR middle-end/42674
20219         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
20220         functions with noreturn attribute.
20221
20222         PR c++/42608
20223         * varasm.c (declare_weak): Add weak attribute to decl if it
20224         doesn't have one already.
20225         (assemble_external): Only add decls to weak_decls if they also
20226         have weak attribute.
20227
20228 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
20229
20230         * var-tracking.c (var_reg_delete): Don't delete the association
20231         between REGs and values or one-part variables if the register
20232         isn't clobbered.
20233
20234 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
20235
20236         PR debug/42657
20237         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
20238         because its first operand is a non-localized variable.
20239
20240 2010-01-14  Martin Jambor  <mjambor@suse.cz>
20241
20242         PR tree-optimization/42706
20243         * tree-sra.c (encountered_recursive_call): New variable.
20244         (encountered_unchangable_recursive_call): Likewise.
20245         (sra_initialize): Initialize both new variables.
20246         (callsite_has_enough_arguments_p): New function.
20247         (scan_function): Call decl and flags check only for IPA-SRA, check
20248         whether there is a recursive call and whether it has enough arguments.
20249         (all_callers_have_enough_arguments_p): New function.
20250         (convert_callers): Look for recursive calls only when
20251         encountered_recursive_call is set.
20252         (ipa_early_sra): Bail out either if
20253         !all_callers_have_enough_arguments_p or
20254         encountered_unchangable_recursive_call.
20255
20256 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20257
20258         * sel-sched.c: Add 2010 to copyright years.
20259         * sel-sched-ir.c: Likewise.
20260         * sel-sched-ir.h: Likewise.
20261
20262 2010-01-14  Martin Jambor  <mjambor@suse.cz>
20263
20264         PR tree-optimization/42714
20265         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
20266         constructors specially.
20267
20268 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20269
20270         * config/i386/drivers-i386.c (detect_caches_intel):
20271         Add l2sizekb parameter and fill in.
20272         (host_detect_local_cpu): Add l2sizekb, fill in.
20273         Add Atom small cache heuristic.
20274
20275 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20276
20277         * config/i386/drivers-i386.c (detect_caches_cpuid4):
20278         Add level3 parameter and fill in.
20279         (detect_caches_intel): Handle level3 cache.
20280
20281 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20282
20283         * config/i386/drivers-i386.c (host_detect_local_cpu):
20284         Fix core duo detection.
20285
20286 2010-01-14  Andi Kleen  <ak@linux.intel.com>
20287
20288         * config/i386/drivers-i386.c (host_detect_local_cpu):
20289         Fix Atom detection.
20290
20291 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20292
20293         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
20294         (rs6000_variable_issue_1): this.  Use...
20295         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
20296
20297 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20298
20299         * sel-sched-ir.c (sel_restore_other_notes): Rename to
20300         sel_restore_notes.  Update all callers.  Call reemit_notes
20301         for all insns.
20302
20303 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20304
20305         PR rtl-optimization/42246
20306         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
20307         loops.
20308
20309 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20310
20311         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
20312         all successors is the same as number of successors in current region.
20313
20314 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20315
20316         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
20317         to rename is not separable.  Otherwise check that its LHS is not NULL.
20318
20319 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20320
20321         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
20322
20323 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20324
20325         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
20326         available registers when failed to discover LHS register class.
20327         Fix indentation.  Update comment.
20328
20329 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20330             Alexander Monakov  <amonakov@ispras.ru>
20331
20332         PR rtl-optimization/42389
20333         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
20334         to can_issue_more.
20335         (advance_state_on_fence): Likewise.
20336         (sel_target_adjust_priority): Print debug output only when
20337         sched_verbose >= 4, not 2.
20338         (get_expr_cost): Do not issue all unique insns on the next cycle.
20339         (fill_insns): Initialize can_issue_more from the value saved
20340         with the fence.
20341         * sel-sched-ir.c (flist_add): New parameter issue_more.
20342         Init FENCE_ISSUE_MORE with it.
20343         (merge_fences): Likewise.
20344         (init_fences): Update call to flist_add.
20345         (add_to_fences, add_clean_fence_to_fences)
20346         (add_dirty_fence_to_fences): Likewise.
20347         (move_fence_to_fences): Update call to merge_fences.
20348         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
20349         sched groups.
20350         * sel-sched-ir.h (struct _fence): New field issue_more.
20351         (FENCE_ISSUE_MORE): New accessor macro.
20352
20353 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20354
20355         PR rtl-optimization/42388
20356         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
20357         that have no predecessors nor successors.  Do not call move_bb_info
20358         for empty blocks outside of current region.
20359
20360 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20361
20362         PR rtl-optimization/42294
20363         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
20364         * sel-sched.c (move_exprs_to_boundary): Transitively add all
20365         originators' originators.
20366
20367 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
20368
20369         PR rtl-optimization/39453
20370         PR rtl-optimization/42246
20371         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
20372         for pipelining_p.
20373         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
20374
20375 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20376             Alexander Monakov  <amonakov@ispras.ru>
20377
20378         PR middle-end/42245
20379         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
20380         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
20381         argument.  Update all callers.
20382         (tidy_control_flow): ... and here.  Recompute topological order
20383         of basic blocks in region if necessary.
20384         (sel_redirect_edge_and_branch): Change return type.  Return true
20385         if topological order might have been invalidated.
20386         (purge_empty_blocks): Export and move from...
20387         * sel-sched.c (purge_empty_blocks): ... here.
20388         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
20389         (maybe_tidy_empty_bb): Delete prototype.
20390         (purge_empty_blocks): Declare.
20391
20392 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
20393
20394         PR rtl-optimization/42249
20395         * sel-sched.c (try_replace_dest_reg): When chosen register
20396         and original register is the same, do not bail out early, but
20397         still check all original insns for validity of replacing destination
20398         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
20399         in this case.
20400
20401 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
20402
20403         PR c/42721
20404         Port from no-undefined-overflow branch:
20405         2009-03-09  Richard Guenther  <rguenther@suse.de>
20406
20407         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
20408
20409 2010-01-14  Richard Guenther  <rguenther@suse.de>
20410
20411         PR lto/42665
20412         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
20413
20414 2010-01-14  Ira Rosen  <irar@il.ibm.com>
20415
20416         PR tree-optimization/42709
20417         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
20418         as scalar type in creation of constant vector operand.
20419
20420 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20421
20422         PR testsuite/42414
20423         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
20424         (check-parallel-%): Match `testsuite' directory component only
20425         at the end.
20426
20427 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
20428
20429         PR translation/39521
20430         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
20431         strings with _().
20432
20433 2010-01-13  Richard Guenther  <rguenther@suse.de>
20434
20435         PR tree-optimization/42730
20436         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
20437         offset zero.
20438
20439 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
20440
20441         PR target/pr42542
20442         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
20443         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
20444         them signed.
20445
20446 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
20447
20448         * config/bfin/libgcc-bfin.ver: Regenerate based on current
20449         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
20450         ___umulsi3_highpart.
20451
20452         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
20453         rather than schedule_insns if the pass is enabled.
20454
20455 2010-01-13  Martin Jambor  <mjambor@suse.cz>
20456
20457         PR tree-optimization/42704
20458         * tree-sra.c (sra_modify_assign): Do not delete assignments to
20459         SSA_NAMEs.
20460
20461 2010-01-13  Martin Jambor  <mjambor@suse.cz>
20462
20463         PR tree-optimization/42703
20464         * tree-sra.c (analyze_access_subtree): Check that we can build a
20465         reference to the original data within the aggregate.
20466
20467 2010-01-13  Richard Guenther  <rguenther@suse.de>
20468
20469         PR tree-optimization/42705
20470         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
20471
20472 2010-01-13  Richard Guenther  <rguenther@suse.de>
20473
20474         PR middle-end/42716
20475         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
20476
20477 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
20478
20479         PR debug/41371
20480         * var-tracking.c (values_to_unmark): New variable.
20481         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20482         values_to_unmark vector.  Moved body to...
20483         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
20484         instead queue it into values_to_unmark vector.
20485         (vt_find_locations): Free values_to_unmark vector.
20486
20487 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
20488
20489         * config/s390/s390.c (override_options): Set
20490         default of max-pending-list-length to 256
20491
20492 2010-01-13  Richard Guenther  <rguenther@suse.de>
20493
20494         PR lto/42678
20495         * tree-pass.h (PROP_gimple_lcx): New.
20496         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
20497         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
20498         before the final cleanup_eh.
20499         (dump_properties): Dump PROP_gimple_lcx.
20500         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
20501         (tree_lower_complex_O0): Remove.
20502         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
20503         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
20504         tree_lower_complex, schedule TODO_update_ssa.
20505         * lto-streamer-out.c (output_function): Stream the functions
20506         properties.
20507         * lto-streamer-in.c (input_function): Likewise.
20508         (lto_read_body): Do not override them here.
20509
20510 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
20511
20512         PR c/42708
20513         * c-typeck.c (build_c_cast): Fold value cast to union type before
20514         wrapping it in a CONSTRUCTOR.
20515
20516 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
20517
20518         PR rtl-optimization/42699
20519         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
20520         involved.
20521
20522 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20523
20524         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
20525         SUBTARGET_WARN_UNUSED_SPEC): Move ...
20526         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
20527         SUBTARGET_WARN_UNUSED_SPEC): ... here
20528         * config/mips/iris5.h (LIBGCC_SPEC): Define.
20529
20530 2010-01-12  Julian Brown  <julian@codesourcery.com>
20531
20532         * config/arm/neon-schedgen.ml (Utils): Don't try to
20533         open missing module.
20534         (find_with_result): New.
20535
20536 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
20537
20538         PR debug/42662
20539         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
20540         sharing when canonicalizing ({lt,ge}u (plus a b) b).
20541
20542         PR tree-optimization/42645
20543         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
20544         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
20545         decl_map, set processing_debug_stmt to -1 and return name without
20546         any remapping.
20547
20548 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
20549
20550         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
20551         binutils version, and reword target configuration description.
20552
20553 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
20554
20555         * config/avr/avr.h (LINKER_NAME): Remove.
20556
20557 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
20558
20559         PR target/42416
20560         * config/rs6000/rs6000.c (rs6000_override_options): On targets
20561         that support VSX, warn for -mno-altivec if vsx is not disabled,
20562         and disable vsx.
20563
20564 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
20565             Shujing Zhao  <pearly.zhao@oracle.com>
20566
20567         PR translation/42469
20568         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
20569         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
20570         character between option name and help text.
20571         * c.opt (imultilib): Likewise.
20572
20573 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
20574
20575         * lto-streamer-out.c (output_unreferenced_globals): Output static
20576         variables.
20577
20578 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
20579
20580         PR rtl-optimization/42621
20581         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
20582         optimizing for size.
20583         (duplicate_computed_gotos): Remove now-redundant check.
20584
20585 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
20586
20587         PR target/37454
20588         * configure.ac: Save and restore LDFLAGS and LIBS
20589         * configure: Regenerate.
20590
20591 2010-01-10  Richard Guenther  <rguenther@suse.de>
20592
20593         PR middle-end/42667
20594         * builtins.c (fold_builtin_strlen): Add type argument and
20595         convert the resulting length to it.
20596         (fold_builtin_1): Adjust.
20597
20598 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
20599
20600         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
20601         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
20602         1 insn.
20603         (num_insns_constant_wide): Adjust for that change.
20604
20605 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20606
20607         PR debug/42631
20608         * web.c (union_defs): Add used argument, to combine uses of
20609         uninitialized regs.
20610         (entry_register): Adjust type and tests of used argument.
20611         (web_main): Widen used for new use.  Pass it to union_defs.
20612         * df.h (union_defs): Adjust prototype.
20613
20614 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20615
20616         PR debug/42630
20617         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
20618         uses in new incoming argument.  Free body.
20619         (reset_debug_uses_in_loop): New.
20620         (analyze_insn_to_expand_var): Call the latter if the former found
20621         anything.  Fix whitespace.  Reject invalid dest overlaps before
20622         going through all insns in the loop.
20623
20624 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20625
20626         PR debug/42629
20627         * haifa-sched.c (dying_use_p): Debug insns don't count.
20628
20629 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20630
20631         PR middle-end/42363
20632         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
20633         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
20634         (verify_gimple_call): Reject LHS in noreturn calls.
20635
20636 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20637
20638         PR debug/42604
20639         PR debug/42395
20640         * tree-vect-loop-manip.c (adjust_info): New type.
20641         (adjust_vec): New pointer to vector.
20642         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
20643         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
20644         (slpeel_update_phis_for_duplicate_loop): Use them.
20645         (slpeel_update_phi_nodes_for_guard1): Likewise.
20646         (slpeel_update_phi_nodes_for_guard2): Likewise.
20647         (slpeel_tree_peel_loop_to_edge): Likewise.
20648         (vect_update_ivs_after_vectorizer): Likewise.
20649
20650 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20651
20652         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
20653         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
20654
20655 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
20656
20657         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
20658         bogus uninitialized warning.
20659
20660 2010-01-09  Richard Guenther  <rguenther@suse.de>
20661
20662         PR middle-end/42512
20663         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
20664         the evolution is compatible with the initial condition.
20665
20666 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
20667
20668         * gcc.c (process_command): Update copyright notice dates.
20669         * gcov.c (print_version): Likewise.
20670         * gcov-dump.c (print_version): Likewise.
20671         * mips-tfile.c (main): Likewise.
20672         * mips-tdump.c (main): Likewise.
20673
20674 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
20675
20676         PR target/41885
20677         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
20678         (rotlhi3): Delete.
20679         (rotlhi3_8): Delete.
20680         (rotlsi3): Delete.
20681         (rotlsi3_8): Delete.
20682         (rotlsi3_16): Delete.
20683         (rotlsi3_24): Delete.
20684         (rotl<mode>3): New.
20685         (*rotw<mode>3): New.
20686         (*rotb<mode>3): New.
20687         * config/avr/avr.c (avr_rotate_bytes): New function.
20688         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
20689
20690 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
20691
20692         PR target/37454
20693         * configure.ac: Modify -rdynamic check.
20694         * configure: Regenerate.
20695
20696 2010-01-08  DJ Delorie  <dj@redhat.com>
20697
20698         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
20699         register popping order.
20700
20701 2010-01-08  Richard Guenther  <rguenther@suse.de>
20702
20703         PR lto/42528
20704         * c.opt (fsigned-char): Also let LTO handle this option.
20705         (funsigned-char): Likewise.
20706
20707 2010-01-07  Richard Guenther  <rguenther@suse.de>
20708
20709         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
20710         (gimple_op): Likewise.
20711         (gimple_op_ptr): Likewise.
20712         (gimple_assign_set_lhs): Remove gcc_assert.
20713         (gimple_assign_set_rhs1): Likewise.
20714         (gimple_assign_set_rhs2): Likewise.
20715         (gimple_call_set_lhs): Likewise.
20716         (gimple_call_set_fn): Likewise.
20717         (gimple_call_set_fndecl): Likewise.
20718         (gimple_call_fndecl): Likewise.
20719         (gimple_call_return_type): Likewise.
20720         (gimple_call_set_chain): Likewise.
20721         (gimple_call_num_args): Likewise.
20722         (gimple_call_set_arg): Likewise.
20723         (gimple_cond_set_code): Likewise.
20724         (gimple_cond_set_lhs): Likewise.
20725         (gimple_cond_set_rhs): Likewise.
20726         (gimple_cond_set_true_label): Likewise.
20727         (gimple_cond_set_false_label): Likewise.
20728         (gimple_label_set_label): Likewise.
20729         (gimple_goto_set_dest): Likewise.
20730         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
20731         (gimple_debug_bind_get_value): Likewise.
20732         (gimple_debug_bind_get_value_ptr): Likewise.
20733         (gimple_debug_bind_set_var): Likewise.
20734         (gimple_debug_bind_set_value): Likewise.
20735         (gimple_debug_bind_reset_value): Likewise.
20736         (gimple_debug_bind_has_value_p): Likewise.
20737         (gimple_return_retval_ptr): Remove gcc_assert.
20738         (gimple_return_retval): Likewise.
20739         (gimple_return_set_retval): Likewise.
20740         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
20741         (safe_referenced_var_iterator): Remove.
20742         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
20743         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
20744         (fill_referenced_var_vec): Remove.
20745         (first_readonly_imm_use): Remove redundant gcc_assert.
20746         (phi_arg_index_from_use): Combine gcc_asserts.
20747         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
20748         (first_imm_use_stmt): Remove redundant gcc_assert.
20749         * tree-cfg.c (verify_gimple_call): Verify function and chain
20750         operands.  Verify arguments.
20751         (verify_types_in_gimple_stmt): Verify condition code and labels.
20752
20753 2010-01-07  Richard Guenther  <rguenther@suse.de>
20754
20755         PR tree-optimization/42641
20756         * sese.c (rename_map_elt_info): Use the SSA name version, do
20757         not hash pointers.
20758
20759 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
20760
20761         PR tree-optimization/42625
20762         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
20763         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
20764
20765 2010-01-07  Duncan Sands  <baldrick@free.fr>
20766
20767         * Makefile.in (PLUGIN_HEADERS): Add version.h.
20768
20769 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
20770
20771         PR target/42511
20772         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
20773         note itself is not function_invariant_p.
20774
20775 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
20776
20777         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
20778         Do not add the DF_NOTE problem.
20779         * store-motion.c (execute_rtl_store_motion): Likewise.
20780
20781 2010-01-07  Martin Jambor  <mjambor@suse.cz>
20782
20783         PR tree-optimization/42157
20784         * tree-sra.c (compare_access_positions): Stabilize sort if both
20785         accesses have integer types, return zero immediately if they are the
20786         same.
20787
20788 2010-01-06  Richard Henderson  <rth@redhat.com>
20789
20790         PR middle-end/41883
20791         * haifa-sched.c (add_to_note_list): Merge into ...
20792         (concat_note_lists): ... here, and ...
20793         (unlink_other_notes, rm_other_notes): Merge into...
20794         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
20795         NOTE_INSN_EPILOGUE_BEG.
20796
20797 2010-01-06  Richard Guenther  <rguenther@suse.de>
20798
20799         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
20800         not inline regular functions into always-inline functions.
20801
20802 2010-01-06  Nick Clifton  <nickc@redhat.com>
20803
20804         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
20805         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
20806         used together.
20807         (OVERRIDE_OPTIONS): Delete.
20808         (OPTIMIZATION_OPTIONS): Define.
20809         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
20810         * config/rx/rx.c (rx_handle_option): Issue an error message if
20811         -mcpu=rx200 and -fpu are used together.
20812         (rx_set_optimization_options): New function.  Issue an error
20813         message if an optimization attribute attempts to reset the FPU/
20814         math optimization pairing.
20815         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
20816         * config/rx/rx.opt: Set the default to 32-bit doubles.
20817         * config/rx/t-rx: Add multilibs for -nofpu option.
20818         * doc/invoke.texi: Update documentation of RX options.
20819
20820 2010-01-06  Richard Guenther  <rguenther@suse.de>
20821
20822         * tree-ssa-pre.c (name_to_id): New global.
20823         (alloc_expression_id): Simplify SSA name handling.
20824         (lookup_expression_id): Likewise.
20825         (init_pre): Zero name_to_id.
20826         (fini_pre): Free it.
20827
20828 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
20829
20830         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
20831
20832 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
20833
20834         PR target/42542
20835         * config/i386/sse.md (smaxv2di3): New.
20836         (umaxv2di3): Likewise.
20837         (sminv2di3): Likewise.
20838         (uminv2di3): Likewise.
20839
20840 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
20841
20842         PR target/42564
20843         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
20844         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
20845         (legitimize_tls_address): Likewise.
20846         (sparc_tls_referenced_p): Likewise.
20847         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
20848         and adjust calls to legitimize_pic_address.
20849         (legitimate_constant_p) Use sparc_tls_referenced_p.
20850         (legitimate_pic_operand_p): Likewise.
20851         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
20852         (sparc_tls_symbol_ref_1): Delete.
20853         (sparc_tls_referenced_p): Make static, recognize specific patterns.
20854         (legitimize_tls_address): Make static, handle CONST patterns.
20855         (legitimize_pic_address): Make static, remove unused parameter and
20856         adjust recursive calls.
20857         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
20858         and adjust call to legitimize_pic_address.
20859         (sparc_output_mi_thunk): Likewise.
20860
20861 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
20862             H.J. Lu  <hongjiu.lu@intel.com>
20863
20864         PR target/42542
20865         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
20866         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
20867         operands to make them signed.
20868
20869         Revert:
20870         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
20871
20872         PR target/42542
20873         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20874         GTU to GT for V4SI and V2DI.
20875
20876         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20877         (umin<mode>3): Removed.
20878         (uminv8hi3): New.
20879         (uminv4si3): Likewise.
20880
20881 2010-01-05  Martin Jambor  <mjambor@suse.cz>
20882
20883         PR tree-optimization/42462
20884         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
20885         current_function_decl to helper functions and macros.
20886
20887 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20888
20889         PR bootstrap/41771
20890         * flags.h: Don't include real.h.
20891         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
20892         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
20893         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
20894         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
20895         * dominance.c: Update copyright.
20896         * gimple.c (walk_gimple_op): Remove inline.
20897         * tree-ssa-reassoc.c: Include real.h.
20898         * Makefile.in (FLAGS_H): Remove $(REAL_H).
20899         (tree-ssa-reassoc.o): Depend on $(REAL_H).
20900
20901 2010-01-05  Nick Clifton  <nickc@redhat.com>
20902
20903         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
20904         register to push into the stack frame when the accumulator has to
20905         be saved during interrupts.
20906
20907 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
20908
20909         * doc/invoke.texi: Remove the documentation about option
20910         -Wunreachable-code.
20911         * common.opt (Wunreachable-code):  Preserved for backward
20912         compatibility.
20913         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
20914         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
20915         the backward compatibility flag section.
20916
20917 2010-01-05  Richard Guenther  <rguenther@suse.de>
20918
20919         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
20920
20921 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
20922
20923         PR other/42611
20924         * cfgexpand.c (expand_one_var): Diagnose too large variables.
20925
20926         PR tree-optimization/42508
20927         * tree-sra.c (convert_callers): Check for recursive call
20928         by comparing cgraph nodes instead of decls.
20929         (modify_function): Call ipa_modify_formal_parameters also
20930         on all same_body aliases.
20931
20932         * cgraphunit.c (cgraph_materialize_all_clones): Compare
20933         cgraph nodes when checking for same_body aliases.
20934
20935 2010-01-05  Richard Guenther  <rguenther@suse.de>
20936
20937         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
20938         allocation and lookup.
20939         (get_or_alloc_expr_for_constant): Likewise.
20940         (phi_translate): Sink allocation.
20941
20942 2010-01-04  Richard Guenther  <rguenther@suse.de>
20943
20944         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
20945         a new entry only if needed.
20946         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
20947         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
20948         hashtable lookup.
20949         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
20950         the result array.
20951         (phi_translate): Handle CONSTANTs early.
20952
20953 2010-01-04  Martin Jambor  <mjambor@suse.cz>
20954
20955         PR tree-optimization/42398
20956         * tree-sra.c (struct access): Removed flag grp_different_types.
20957         (dump_access): Do not dump the removed flag.
20958         (sort_and_splice_var_accesses): Do not set the removed flag.
20959         (sra_modify_expr): Check for type compatibility directly.
20960
20961 2010-01-04  Martin Jambor  <mjambor@suse.cz>
20962
20963         PR tree-optimization/42366
20964         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
20965         edges with variable number of parameters.
20966         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
20967         flag instead of asserting it.
20968         (ipa_read_node_info): Read uses_analysis_done flag.
20969
20970 2010-01-04  Richard Guenther  <rguenther@suse.de>
20971
20972         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
20973         iterative_hash_* as intended.
20974         (vn_reference_compute_hash): Likewise.  Simplify hashing
20975         SSA names.
20976         (vn_reference_lookup_2): Likewise.
20977         (vn_nary_op_compute_hash): Likewise.
20978         (vn_phi_compute_hash): Likewise.
20979         (expressions_equal_p): Remove strange code.
20980         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
20981         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
20982         (bitmap_insert_into_set_1): Take value-id as parameter.
20983         (add_to_value): Pass it.
20984         (bitmap_insert_into_set): Likewise.
20985         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
20986
20987 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
20988
20989         PR driver/42442
20990         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
20991         (do_self_spec): For switches with SWITCH_IGNORE set set also
20992         SWITCH_IGNORE_PERMANENTLY.
20993         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
20994         of SWITCH_IGNORE.
20995
20996 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
20997
20998         * lto-streamer-out.c (output_unreferenced_globals): Output the full
20999         tree of an unreferenced global var.
21000
21001 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21002
21003         PR target/42542
21004         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
21005         GTU to GT for V4SI and V2DI.
21006
21007         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
21008         (umin<mode>3): Removed.
21009         (uminv8hi3): New.
21010         (uminv4si3): Likewise.
21011
21012 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
21013
21014         PR lto/42581
21015         * collect2.c (main): Turn on trace in collect2 if -v is passed
21016         to gcc with LTO.
21017
21018 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
21019
21020         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
21021         description of expression operand.
21022
21023 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
21024
21025         * configure.ac: Add install-html to target_list for Make-hooks.
21026         * configure: Regenerate.
21027         * fortran/Make-lang.in (F95_HTMLFILES): New.
21028         (fortran.html): Use it.
21029         (fortran.install-html): New.
21030         * Makefile.in (install-html): Add lang.install-html.
21031         * java/Make-lang.in (JAVA_HTMLFILES): New.
21032         (java.html): Use it.
21033         (java.install-html): New.
21034         * objc/Make-lang.in (objc.install-html): New.
21035         * objcp/Make-lang.in (obj-c++.install-html): New.
21036         * cp/Make-lang.in (c++.install-html): New.
21037         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
21038         * lto/Make-lang.in (lto.install-html): New.
21039
21040 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21041
21042         PR lto/42520
21043         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
21044
21045 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
21046
21047         PR rtl-optimization/41862
21048         * store-motion.c (store_killed_in_insn, compute_store_table,
21049         remove_reachable_equiv_notes, replace_store_insn,
21050         build_store_vectors): Ignore all DEBUG_INSNs.
21051
21052 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
21053
21054         PR lto/41564
21055         * common.opt: Add dumpdir.
21056
21057         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
21058         isn't specified.
21059         (option_map): Add --dumpdir.
21060
21061         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
21062
21063         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
21064
21065         * opts.c (decode_options): Try dump_dir_name first if
21066         dump_base_name isn't an absolute path.
21067         (common_handle_option): Handle OPT_dumpdir.
21068
21069         * toplev.c (dump_dir_name): New.
21070         (print_switch_values): Also ignore -dumpdir.
21071
21072         * toplev.h (dump_dir_name): New.
21073
21074 2010-01-03  Richard Guenther  <rguenther@suse.de>
21075
21076         PR tree-optimization/42589
21077         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
21078         double-word expansion of bswap32.
21079
21080 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
21081
21082         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
21083         with BLOCK_FOR_INSN.
21084         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
21085         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
21086         noce_process_if_block): Likewise.
21087         * gcse.c (compute_local_properties, insert_expr_in_table,
21088         insert_set_in_table, canon_list_insert, find_avail_set,
21089         pre_insert_copy_insn): Likewise.
21090
21091         * basic-block.h (BLOCK_NUM): Move from here...
21092         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
21093
21094 2010-01-03  Richard Guenther  <rguenther@suse.de>
21095
21096         PR tree-optimization/42438
21097         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
21098         contains_may_not_return_call flag.
21099         (BB_MAY_NOTRETURN): New.
21100         (valid_in_sets): Trapping nary operations are not valid
21101         in blocks that may not return.
21102         (insert_into_preds_of_block): Remove check for trapping expressions.
21103         (compute_avail): Compute also BB_MAY_NOTRETURN.
21104
21105 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
21106
21107         * doc/invoke.texi: Add 2010 to copyright years.
21108
21109 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
21110
21111         * config/sparc/sparc.c: Fix formatting nits.
21112
21113 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
21114             Alexander Monakov  <amonakov@ispras.ru>
21115
21116         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
21117
21118 2010-01-02  Richard Guenther  <rguenther@suse.de>
21119
21120         PR middle-end/42577
21121         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
21122         (simplify_switch_using_ranges): Mark to be removed edges
21123         as non-executable.
21124
21125 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21126
21127         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
21128
21129         * collect2.c (scan_libraries): Add missing argument in call to
21130         scan_prog_file.
21131
21132 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
21133
21134         PR target/42448
21135         * config/alpha/predicates.md (aligned_memory_operand): Return false
21136         for CQImode.
21137         (unaligned_memory_operand): Return true for CQImode.
21138         * config/alpha/alpha.c (get_aligned_mem): Assert that location
21139         doesn not cross aligned SImode word boundary.
21140
21141 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
21142
21143         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
21144         Remove.
21145         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
21146         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
21147
21148 2010-01-02  Richard Guenther  <rguenther@suse.de>
21149
21150         PR lto/41597
21151         * toplev.c (compile_file): Emit LTO marker properly.  Change
21152         it to __gnu_lto_v1.
21153         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
21154
21155 2010-01-01  Richard Guenther  <rguenther@suse.de>
21156
21157         PR debug/42455
21158         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
21159
21160 2010-01-01  Richard Guenther  <rguenther@suse.de>
21161
21162         PR c/42570
21163         * c-decl.c (grokdeclarator): For zero-size arrays force
21164         structural equality checks as layout_type does.
21165
21166 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
21167
21168         * builtins.c: Update copyright to 2010.
21169
21170 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
21171
21172         PR lto/42531
21173         * lto-streamer-out.c (produce_asm): Revert the last change.
21174         (copy_function): Likewise.
21175
21176         * lto-streamer.c (lto_get_section_name): Skip any leading
21177         asterisk in name.
21178
21179 2010-01-01  Richard Guenther  <rguenther@suse.de>
21180
21181         PR middle-end/42559
21182         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
21183         for LABEL_DECLs.
21184
21185 \f
21186 Copyright (C) 2010 Free Software Foundation, Inc.
21187
21188 Copying and distribution of this file, with or without modification,
21189 are permitted in any medium without royalty provided the copyright
21190 notice and this notice are preserved.