1 2010-07-27 Xinliang David Li <davidxl@google.com>
3 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
4 (rewrite_use_address): Adjust iv update position when needed.
6 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8 * dbgcnt.def (hoist_insn): New debug counter.
9 * gcse.c (hoist_code): Use it.
11 2010-07-27 Xinliang David Li <davidxl@google.com>
13 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
14 (niter_for_single_dom_exit): Passes additional parameter.
15 (iv_period): Fix comments.
16 (may_eliminate_iv): Handles multiple exit loops properly.
17 (free_tree_niter_desc): New function.
18 (free_loop_data): Frees up loop iteration descriptors.
20 2010-07-27 Jakub Jelinek <jakub@redhat.com>
23 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
24 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
25 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
26 (expand_one_var): Don't consider DECL_ALIGN for variables for
27 which expand_one_stack_var_at has been already called.
30 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
33 2010-07-27 Jie Zhang <jie@codesourcery.com>
37 2010-07-23 Jie Zhang <jie@codesourcery.com>
38 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
39 false if ! tree_versionable_function_p.
41 2010-07-27 Jakub Jelinek <jakub@redhat.com>
43 * dwarf2out.c (add_data_member_location_attribute): Use
44 add_AT_unsigned instead of add_AT_int if offset is non-negative.
46 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
48 * postreload.c (try_replace_in_use): New static function.
49 (reload_combine_recognize_const_pattern): Use it here. Allow
50 substituting into a final add insn, and substituting into a memory
51 reference in an insn that sets the reg.
53 2010-07-27 Joseph Myers <joseph@codesourcery.com>
55 * common.opt (o): Add MissingArgError.
56 * doc/options.texi (MissingArgError): Document.
57 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
58 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
59 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
60 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook
62 * langhooks.h (struct lang_hooks): Remove missing_argument.
63 * optc-gen.awk: Handle MissingArgError and output new structure
65 * opts.c (read_cmdline_option): Use missing_argument_error field
66 instead of missing_argument langhook.
67 * opts.h (struct cl_option): Add missing_argument_error field.
68 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
70 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
73 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
74 Darwin64 ABI, for zero-sized objects.
76 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
81 Merge from Apple local 4.2.1.
82 2005-05-11 Stan Shebs <shebs@apple.com>
83 Fix 64-bit varargs for Darwin (Radar 4028089).
84 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
85 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
86 Add argument, add case for 8-byte register half-filled with a float.
87 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
88 single-precision floats specially.
90 2010-07-27 Ira Rosen <irar@il.ibm.com>
92 PR tree-optimization/44152
93 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
94 complex numbers for further check.
95 (vect_supported_load_permutation_p): Check nodes with
98 2010-07-27 Joseph Myers <joseph@codesourcery.com>
100 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
101 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
102 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
103 (LANG_HOOKS_INITIALIZER): Add new hooks.
104 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
105 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
106 and complain_wrong_lang_p. Update init_options prototype.
107 * c-objc-common.c (c_initialize_diagnostics): First call
108 c_common_initialize_diagnostics.
109 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
110 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
111 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
112 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
113 (hook_uint_void_0): New.
114 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
115 (hook_uint_void_0): New.
116 * opts-common.c (decode_cmdline_option,
117 decode_cmdline_options_to_array): Also fill in canonical_option field.
118 * opts.c (complain_wrong_lang): Use langhook to determine whether
119 to complain instead of special-casing LTO.
120 (decode_options): Separate lang_mask determination with
121 option_lang_mask hook from call of init_options hook.
122 * opts.h (struct cl_decoded_option): Add canonical_option.
124 2010-07-27 Jakub Jelinek <jakub@redhat.com>
126 PR tree-optimization/45083
127 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
129 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
131 * postreload.c (reload_combine_recognize_const_pattern): Move test
132 for limiting the insn movement to the right scope.
134 PR rtl-optimization/45051
135 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
136 than reg_mentioned_p.
138 2010-07-26 Richard Henderson <rth@redhat.com>
141 * tree-emutls.c: New file.
142 * Makefile.in (OBJS-common): Add it.
143 * tree-pass.h (pass_ipa_lower_emutls): Declare.
144 * passes.c (init_optimization_passes): Add it.
146 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
147 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
148 * expr.c (emutls_var_address): Delete.
149 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
150 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
151 (emutls_finish): Delete.
152 * toplev.c (compile_file): Don't call it.
153 * tree.h (emutls_decl): Delete.
154 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
155 (emutls_finish, emutls_finalize_control_var): Delete.
156 (emutls_object_type): Move to tree-emutls.c.
157 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
158 default_emutls_var_fields, get_emutls_object_type,
159 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
160 default_emutls_var_init): Likewise.
161 (get_variable_section): Don't special case emutls.
162 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
163 default_elf_select_section, default_unique_section,
164 default_encode_section_info): Likewise.
165 * varpool.c (decide_is_variable_needed): Likewise.
166 * gimple-iterator.c (update_call_edge_frequencies): New
167 (gsi_insert_on_edge_immediate): Use it.
168 (gsi_insert_seq_on_edge_immediate): Likewise.
169 (gsi_commit_one_edge_insert): Likewise.
171 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
172 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
173 (x86_64_elf_unique_section): Likewise.
175 2010-07-26 Jan Hubicka <jh@suse.cz>
177 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
180 2010-07-26 Anatoly Sokolov <aesok@post.ru>
182 * target.def (output_source_filename): New hook.
183 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
184 * doc/tm.texi: Regenerate.
185 * toplev.c (output_file_directive) Remove function.
186 * toplev.h (output_file_directive) Remove.
187 * output.h (default_asm_output_source_filename,
188 output_file_directive): Declare.
189 * varasm.h (default_asm_output_source_filename,
190 output_file_directive): New functions.
192 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
193 * config/mips/mips-protos.h (mips_output_filename): Remove.
194 * config/mips/mips.c (mips_output_filename): Make Static.
195 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
197 2010-07-26 Richard Guenther <rguenther@suse.de>
199 PR tree-optimization/43784
200 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
201 if the destination is used by the call.
203 2010-07-26 Richard Guenther <rguenther@suse.de>
206 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
207 SSA updating on being in SSA form.
209 2010-07-26 Richard Guenther <rguenther@suse.de>
212 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
214 2010-07-26 Richard Guenther <rguenther@suse.de>
216 PR tree-optimization/45071
217 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
220 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
222 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
223 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
224 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
225 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
226 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
227 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
228 save_r31, return_r31, save_interrupt, return_interrupt,
229 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
230 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
231 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
232 new ABI requirements.
233 (save_r6_r9, L_callt_save_r6_r9): Remove.
234 * config/v850/predicates.md (even_reg_operand, disp23_operand,
235 const_float_1_operand const_float_0_operand): New Predicates.
236 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
237 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
238 * config/v850/t-v850: Update multilibs for new target variants.
239 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
240 * config/v850/t-v850e: Likewise.
241 * config/v850/v850.c (v850_issue_rate): New.
242 (v850_strict_argument_naming): New.
243 (function_arg): Modify to generate a different ABI.
244 (print_operand): Update case 'z' to support float modes.
245 (output_move_single): Modify to generate appropriate and better
247 (v850_float_z_comparison_operator, v850_select_cc_mode,
248 v850_float_nz_comparison_operator, v850_gen_float_compare,
249 v850_gen_compare): New functions to support comparison of float values.
250 (ep_memory_offset): Add support for V850E2 targets.
251 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
252 (INTERRUPT_REGPARM_NUM): Remove.
253 (compute_register_save_size): Add extra case to save/restore long call.
254 (use_prolog_function): New function to support prologue.
255 (expand_prologue): Add support for V850E2 targets and modified
256 as per the current ABI requirements.
257 (expand_epilogue): Likewise.
258 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
259 (construct_save_jarl): Likewise.
260 (construct_dispose_instruction): Update as per the current ABI
262 (construct_prepare_instruction): Likewise.
263 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
264 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
265 (CPP_SPEC): Updated to support v850e2 targets.
266 (STRICT_ALIGNMENT): Modified.
267 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
268 (FIXED_REGISTERS): Likewise.
269 (CALL_USED_REGISTERS): Likewise.
270 (CONDITIONAL_REGISTER_USAGE): Updated.
271 (HARD_REGNO_MODE_OK): Updated.
272 (reg_class): Updated to add even registers.
273 (REG_CLASS_NAMES): Likewise.
274 (REG_CLASS_CONTENTS): Likewise.
275 (REGNO_REG_CLASS): Updated for CC registers.
276 (REG_CLASS_FROM_LETTER): Added support for even registers.
277 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
278 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
279 ARG_POINTER_REGNUM): Updated.
280 (FUNCTION_ARG_ADVANCE): Define.
281 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
282 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
283 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
284 (GO_IF_LEGITIMATE_ADDRESS): Updated.
285 (SELECT_CC_MODE): Define.
286 (REGISTER_NAMES): Updated to add psw and fcc registers.
287 (ADDITIONAL_REGISTER_NAMES): Updated.
288 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
289 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
290 * config/v850/v850.md (define_constants): Define new constants.
291 (type): Update store,bit1,macc,div,fpu and single attributes.
292 (cpu): New attribute.
293 (cc): Add set_z attribute.
294 (unsign23byte_load, sign23byte_load, unsign23hword_load,
295 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
296 23word_store): New instructions for 23-bit displacement load and store.
297 (movqi_internal, movhi_internal): Update the attributes.
298 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
299 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
301 (v850_tst1): Modified using CC_REGNUM.
303 (cmpsi): Modified as define_expand from define_insn.
304 (cmpsi_insn, cmpsf, cmpdf): New instructions.
305 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
306 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
307 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
308 one_cmplsi2): Clobber the CC_REGNUM register.
309 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
310 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
311 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
312 (setf_insn, set_z_insn, set_nz_insn): New instructions for
314 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
315 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
317 (sasf_1, sasf_2): Remove.
318 (sasf): New instruction.
319 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
320 targets. CC_REGNUM register is clobbered and attributes are
322 (branch_z_normal, branch_z_invert, branch_nz_normal,
323 branch_nz_invert): New branch related instructions.
324 (jump): Updated the attributes.
325 (switch): Update to support new targets. CC_REGNUM register is
326 clobbered and attributes are updated.
327 (call_internal_short, call_internal_long, call_value_internal_short,
328 call_value_internal_long): Updated the attributes.
329 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
330 clobbered and attributes are updated.
331 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
332 Update to support new targets. CC_REGNUM register is clobbered.
333 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
335 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
337 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
338 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
339 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
340 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
341 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
342 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
343 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
344 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
345 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
346 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
347 point instructions defined for V850e2v3 target.
348 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
349 Add support for V850E2 targets and CC_REGNUM register is clobbered.
350 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
351 support for new targets.
352 * config/v850/v850-modes.def: New file.
353 * config/v850/v850.opt(mstrict-align): Remove.
354 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
355 mv850e2v3): New command line options for V850.
356 * config.gcc: Update the newly added files.
357 * doc/invoke.texi: Update the newly added command line options for
360 2010-07-26 Richard Guenther <rguenther@suse.de>
362 PR tree-optimization/45052
363 * ipa-pure-const.c (check_stmt): Check volatileness.
365 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
368 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
369 * config/sparc/sparc.c: Include reload.h.
370 (legitimize_tls_address): Rename into...
371 (sparc_legitimize_tls_address): ...this.
372 (legitimize_pic_address): Rename into...
373 (sparc_legitimize_pic_address): ...this.
374 (sparc_expand_move): Adjust to above renaming.
375 (sparc_tls_referenced_p): Likewise.
376 (sparc_legitimize_tls_address): Likewise.
377 (sparc_legitimize_pic_address): Likewise.
378 (sparc_legitimize_address): Likewise.
379 (sparc_output_mi_thunk): Likewise.
380 (sparc_legitimize_reload_address): New global function. Recognize
381 (lo_sum (high ...) ...) patterns generated by earlier passes.
382 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
384 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
387 * config/sparc/predicates.md (memory_reg_operand): Delete.
388 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
389 (*sync_compare_and_swap): Encode the address form in the pattern.
390 (*sync_compare_and_swapdi_v8plus): Likewise.
392 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
394 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
395 Streamline paragraph on compatibility with the system compiler.
397 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
400 * alias.c (true_dependence_1): Fix thinko in merge of old
401 true_dependence and canon_true_dependence.
403 2010-07-23 Jan Hubicka <jh@suse.cz>
405 * lto-streamer-out.c (write_symbol): Fix visibilities of external
408 2010-07-23 Le-Chun Wu <lcwu@google.com>
410 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
411 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
412 and an unnecessary assignment.
413 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
415 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
416 unnecessary self-init.
418 2010-07-23 Richard Guenther <rguenther@suse.de>
421 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
422 for -flto and -fwhopr.
424 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
427 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
428 (stmp-int-hdrs): Prefix/postfix headers by include_next.
429 * config.gcc (user_headers_inc_next_pre): New.
430 (user_headers_inc_next_post): Likewise.
431 (*-w64-mingw*): Use for float.h post-fixing, and for
432 stddef.h/stdarg.h pre-fixing by include_next.
433 * configure.ac (user_headers_inc_next_post): New.
434 (user_headers_inc_next_pre): New.
435 * configure: Regenerated.
437 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
439 * configure.ac: Don't disable TLS on Solaris 8/9 by default
440 Set tga_func for Solaris 2/x86 resp. SPARC.
441 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
442 (LIB_THREAD_LDFLAGS_SPEC): Define.
443 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
444 * configure: Regenerate.
445 * config.in: Regenerate.
446 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
447 -pthread, -threads, LIB_TLS_SPEC with -pthread.
448 * doc/install.texi (Specific, *-*-solaris2*): Document use of
449 alternate thread libraries on Solaris 8.
450 Document TLS patch requirements.
451 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
455 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
458 2010-07-23 Jakub Jelinek <jakub@redhat.com>
460 * tree.h (struct tree_base): Add nameless_flag bitfield.
461 (TYPE_NAMELESS, DECL_NAMELESS): Define.
462 * omp-low.c (create_omp_child_function, scan_omp_parallel,
463 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
464 DECL_ARTIFICIAL where needed.
465 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
466 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
467 has DECL_NAMELESS set.
469 2010-07-23 Martin Jambor <mjambor@suse.cz>
471 PR tree-optimization/44915
472 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
473 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
474 (analyze_function): Likewise.
476 2010-07-23 Martin Jambor <mjambor@suse.cz>
478 PR tree-optimization/44914
479 * tree-sra.c (sra_modify_function_body): Return true if CFG was
480 changed, add purging dead eh edges.
481 (ipa_sra_modify_function_body): Return true if CFG was changed,
482 simplify purging dead eh edges.
483 (modify_function): Return true if CFG was changed.
484 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
486 (ipa_early_sra): Likewise.
488 2010-07-23 Jie Zhang <jie@codesourcery.com>
491 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
493 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
494 false if ! tree_versionable_function_p.
496 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
498 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
499 * ipa-pure-const.c (special_builtlin_state): Remove
500 BUILT_IN_ARGS_INFO case.
501 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
502 * builtins.c (expand_builtin): Likewise.
503 (expand_builtin_args_info): Remove.
504 * doc/tm.texi (__builtin_args_info): Remove.
505 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
506 * doc/tm.text.in: Likewise.
508 2010-07-23 Richard Guenther <rguenther@suse.de>
510 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
511 (lto_symtab_merge_decls_2): Likewise.
512 * tree-ssa.c (useless_type_conversion_p): Likewise.
513 * lto-streamer-in.c (input_gimple_stmt): Likewise.
514 * gimple.c (gtc_visited2, gtc_ob2): Remove.
515 (struct type_pair_d): Make same_p an array indexed by mode.
517 (lookup_type_pair): Update initialization.
518 (struct sccs): Adjust same_p type.
519 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
521 (print_gimple_types_stats): Likewise.
522 * gimple.h (enum gtc_mode): New.
523 (gimple_types_compatible_p): Adjust prototype.
525 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
527 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
528 again after processing insn.
530 2010-07-23 Jie Zhang <jie@codesourcery.com>
532 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
533 proper words when !tree_versionable_function_p.
535 2010-07-23 Richard Guenther <rguenther@suse.de>
537 PR tree-optimization/45037
538 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
540 2010-07-23 Jie Zhang <jie@codesourcery.com>
542 * doc/extend.texi: Remove IP2K from the description of naked attribute.
545 2010-07-10 Andi Kleen <ak@linux.intel.com>
548 * lto-opts.c (lto_write_options): Add NULL file_data argument to
549 lto_get_section_name.
550 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
551 * lto-streamer-out.c (produce_asm): Likewise.
552 (copy_function): Likewise.
553 (produce_symtab): Likewise.
554 (produce_asm_for_decls): Likewise.
555 * lto-streamer.c (lto_get_section_name): Add file_data argument.
556 Rewrite to add random postfix to LTO sections.
557 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
558 (lto_get_section_name): Add file_data argument to prototype.
560 2010-07-10 Andi Kleen <ak@linux.intel.com>
562 * lto-section-in.c (lto_section_name): Synchronize names
563 with lto_get_section_name.
565 2010-07-10 Andi Kleen <ak@linux.intel.com>
567 * lto-opts.c (lto_read_file_options): Check for missing section.
569 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
571 * ira.c (check_allocation): Correctly handle the case where an allocno
572 with two objects was allocated to a single reg.
574 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
576 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
577 (is_widening_mult_p): Likewise.
578 (convert_to_widen): Use them.
579 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
580 well as integer ones.
582 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
584 * alias.c (true_dependence_1): New function, merged version of
585 true_dependence and canon_true_dependence.
586 (true_dependence): Simplify.
587 (canon_true_dependence): Simplify.
589 2010-07-22 Richard Henderson <rth@redhat.com>
592 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
593 of V4SFmode for the SSE saves; increase stack alignment if needed.
594 (ix86_gimplify_va_arg): Don't increase stack alignment here.
596 2010-07-22 Jakub Jelinek <jakub@redhat.com>
599 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
600 call cprop_find_used_regs again via note_uses.
602 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
604 * alias.c (get_alias_set): Fix formatting issues.
606 2010-07-22 Steve Ellcey <sje@cup.hp.com>
609 * stmt.c (expand_value_return): Call promote_function_mode with
610 a for_return argument of 2 when returning by reference.
612 2010-07-22 Dodji Seketeli <dodji@redhat.com>
615 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
616 unit DIE if we can find the scope DIE.
618 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
620 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
621 changed. Initialize OBJECT_SUBWORD.
622 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
623 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
625 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
626 (finish_allocno): Likewise.
627 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
628 (remove_low_level_allocnos): Likewise.
629 (update_bad_spill_attribute): Likewise.
630 (setup_min_max_allocno_live_range_point): Likewise.
631 (sort_conflict_id_map): Likewise.
632 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
633 (ior_hard_reg_conflicts): New function.
634 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
635 (compress_conflict_vecs): Iterate over objects, not allocnos.
636 (ira_add_live_range_to_object): New function.
637 (object_range_compare_func): Renamed from allocno_range_compare_func.
639 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
640 subobjects, widen the min/max range of the lowest-order object to
641 potentially include all other such low-order objects.
642 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
643 (check_allocation): Likewise. Use more fine-grained tests for register
645 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
647 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
648 choices about which bits to set in each set. Don't use
649 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
650 using the multiple sets we computed.
651 (push_allocno_to_stack): Iterate over allocno subobjects.
652 (all_conflicting_hard_regs_coalesced): New static function.
653 (setup_allocno_available_regs_num): Use it.
654 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
656 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
657 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
658 by ALLOCNO_NUM_OBJECTS.
659 (calculate_spill_cost): Likewise.
660 (color_pass): Express if statement in a more normal way.
661 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
662 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
663 (setup_slot_coalesced_allocno_live_ranges): Likewise.
664 (allocno_reload_assign): Likewise.
665 (ira_reassign_pseudos): Likewise.
666 (fast_allocation): Likewise.
667 * ira-conflicts.c (build_conflict_bit_table): Likewise.
668 (print_allocno_conflicts): Likewise.
669 (ira_build_conflicts): Likewise.
670 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
671 callers changed. Test subword 0 of each allocno for conflicts.
672 (build_object_conflicts): Renamed from build_allocno_conflicts. All
673 callers changed. Iterate over allocno subobjects.
674 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
675 * ira-int.h (struct ira_allocno): New member: num_objects.
676 Rename object to objects and change it into an array.
677 (ALLOCNO_OBJECT): Add new argument N.
678 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
679 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
680 (ior_hard_reg_conflicts): Declare.
681 (ira_add_live_range_to_object): Declare.
682 (ira_allocno_object_iterator): New.
683 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
684 (FOR_EACH_ALLOCNO_OBJECT): New macro.
685 * ira-lives.c (objects_live): Renamed from allocnos_live; all
687 (allocnos_processed): New sparseset.
688 (make_object_born): Renamed from make_allocno_born; take an
689 ira_object_t argument. All callers changed.
690 (make_object_dead): Renamed from make_allocno_dead; take an
691 ira_object_t argument. All callers changed.
692 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
694 (mark_pseudo_regno_live): Iterate over allocno subobjects.
695 (mark_pseudo_regno_dead): Likewise.
696 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
698 (mark_ref_live): Detect subword accesses and call
699 mark_pseudo_regno_subword_live as appropriate.
700 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
701 (process_bb_nodes_live): Deal with object-related updates first; set
702 and test bits in allocnos_processed to avoid computing allocno
703 statistics more than once.
704 (create_start_finish_chains): Iterate over objects, not allocnos.
705 (print_object_live_ranges): New function.
706 (print_allocno_live_ranges): Use it.
707 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
710 2010-07-22 Richard Guenther <rguenther@suse.de>
713 * gimple.c (gtc_next_dfs_num): New global.
714 (struct sccs): Make value a union, add integer same_p member.
715 (gtc_visit): New function.
716 (gimple_types_compatible_p_1): New function, split out from ...
717 (gimple_types_compatible_p): ... here. Start a DFS walk here.
718 (iterative_hash_gimple_type): Adjust for sccs change.
720 2010-07-22 Martin Jambor <mjambor@suse.cz>
722 PR tree-optimization/44891
723 * tree-sra.c: Include gimple-pretty-print.h.
724 (replace_uses_with_default_def_ssa_name): Renamed to
725 get_repl_default_def_ssa_name, return the new SSA name instead of
726 replacing the old one.
727 (sra_modify_assign): Dump a message when removing a load, if the LHS
728 is an SSA_NAME, do not do any propagation, just set the RHS to a
729 default definition SSA NAME, type convert if necessary.
730 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
732 2010-07-22 Richard Guenther <rguenther@suse.de>
734 PR tree-optimization/45017
735 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
736 TYPE_PRECISION of integral types in addition to size.
738 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
740 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
741 when no C library is specified.
743 2010-07-22 Martin Jambor <mjambor@suse.cz>
745 * ipa-prop.h (struct ipa_node_params): Updated comment.
746 (struct ipa_edge_args): Likewise.
747 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
749 2010-07-22 Martin Jambor <mjambor@suse.cz>
751 * cgraphunit.c (verify_edge_count_and_frequency): New function.
752 (verify_cgraph_node): Verify frequencies of indirect edges.
753 * tree-inline.c (tree_function_versioning): Update frequencies of
756 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
759 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
760 Set *arm_rev to be predicable.
762 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
764 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
765 (LINK_COMMAND_SPEC_A): New.
767 (DSYMUTIL_SPEC): New.
768 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
769 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
771 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
773 * calls.c (load_register_parameters): Move check for zero
774 sized items so that only the call to
775 mem_overlaps_already_clobbered_arg_p () is protected.
777 2010-07-22 Jan Hubicka <jh@suse.cz>
779 * ipa-pure-const.c (varying_state): Break out from ...
780 (get_function_state): ... here; always return varying_state
781 when state would be NULL otherwise.
782 (remove_node_data): Do not free varying state.
784 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
788 * postreload.c: Include "target.h".
789 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
791 (fixup_debug_insns): Don't copy the rtx.
792 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
793 Don't copy when replacing. Call fixup_debug_insns in the case where
794 we merged one add with another.
795 (reload_combine_recognize_pattern): Fail if there aren't any uses.
796 Try harder to determine whether we're picking a valid index register.
797 Don't set store_ruid for an insn we're going to scan in the
799 (reload_combine): Remove unused code.
800 (reload_combine_note_use): When updating use information for
801 an old insn, ignore a use that occurs after store_ruid.
802 * Makefile.in (postreload.o): Update dependencies.
804 * function.c (record_hard_reg_sets): Restrict the previous change
805 to cases where the incoming nominal mode is the same as the
806 incoming promoted mode and everything happens in MODE_INT.
808 2010-07-21 Jakub Jelinek <jakub@redhat.com>
811 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
812 ASM_OPERANDS_OUTPUT_IDX.
813 (adjust_insn): For inline asm with multiple sets ensure first
814 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
817 2010-07-21 Richard Henderson <rth@redhat.com>
819 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
820 comparison for avoiding xmm register saves. Emit the xmm register
822 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
823 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
824 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
825 Remove patterns and the associated splitters.
827 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
829 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
830 and imagine parts of a complex, so that they can have the same
831 base and fall into the same group.
833 2010-07-21 Richard Guenther <rguenther@suse.de>
836 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
837 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
838 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
840 2010-07-21 Martin Jambor <mjambor@suse.cz>
842 PR tree-optimization/44900
843 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
844 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
846 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
849 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
851 2010-07-21 Richard Guenther <rguenther@suse.de>
854 * tree-ssa.c (useless_type_conversion_p): Dispatch to
855 gimple_types_compatible_p only when in lto.
856 * gimple.c (gimple_types_compatible_p): Use canonical types
857 to speed up comparison.
859 2010-07-21 Richard Guenther <rguenther@suse.de>
861 * tree-flow.h (referenced_var): Move define ...
862 * tree-flow-inline.h (referenced_var): ... here as an inline
863 function. Assert here ...
864 * tree-dfa.c (referenced_var_lookup): ... instead of here.
865 * tree-ssa.c (maybe_optimize_var): Check if the variable
866 is in referenced vars.
867 (execute_update_addresses_taken): Remove old broken check.
868 * gimple-pretty-print.c (pp_points_to_solution): Use
869 referenced_var_lookup.
870 * tree-into-ssa.c (dump_decl_set): Likewise.
872 2010-07-21 Jakub Jelinek <jakub@redhat.com>
875 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
876 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
879 2010-07-20 Richard Henderson <rth@redhat.com>
881 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
883 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
885 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
886 computing the sum of the stack pointer and a large constant.
887 * config/arm/constraints.md (M): Remove superfluous parentheses.
888 (Pc): New constraint.
890 2010-07-20 Jakub Jelinek <jakub@redhat.com>
893 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
894 operand's type if exp is tcc_unary class tree.
896 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
898 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
899 Reverse sense of if_then_else condition.
901 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
903 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
904 * config/rs6000/rs6000.c (rs6000_override_options): Set
905 rs6000_block_move_inline_limit appropriately.
906 (expand_block_move): Use rs6000_block_move_inline_limit.
907 * doc/invoke.texi (mblock-move-inline-limit): Document.
909 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
911 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
912 FROM and TO. All callers changed. Don't look for tracked uses,
913 just scan the RTL for DEBUG_INSNs and substitute.
914 (reload_combine_recognize_pattern): Call fixup_debug_insns.
915 (reload_combine): Ignore DEBUG_INSNs.
917 2010-07-20 Jakub Jelinek <jakub@redhat.com>
919 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
923 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
924 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
925 instead of the result's type.
927 2010-07-20 Richard Guenther <rguenther@suse.de>
929 PR tree-optimization/44977
930 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
933 2010-07-20 Richard Guenther <rguenther@suse.de>
935 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
936 (lto_symtab_merge_decls_2): Likewise.
937 * gimple.h (gimple_types_compatible_p): Declare.
938 * gimple.c (gimple_queue_type_fixup): Remove.
939 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
940 (gimple_compatible_complete_and_incomplete_type_p): New function.
941 (gimple_types_compatible_p): Adjust.
942 (gimple_register_type): Remove type fixup code.
943 (print_gimple_types_stats): Adjust.
944 (free_gimple_type_tables): Likewise.
945 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
946 * tree-ssa.c (useless_type_conversion_p): Likewise.
948 2010-07-20 Richard Guenther <rguenther@suse.de>
952 * tree-ssa.c (maybe_optimize_var): New function split out from ...
953 (execute_update_addresses_taken): ... here.
954 (non_rewritable_mem_ref_base): Likewise.
955 (execute_update_addresses_taken): Do not iterate over all referenced
956 vars but just all local decls and parms.
957 Properly check call and asm arguments and rewrite call arguments.
959 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
961 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
963 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
965 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
967 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
969 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
971 * gengtype.c (start_root_entry): New function, split out from
972 write_root. Check whether V is null and raise an error if so.
973 (write_field_root): Check for V being null. Don't raise an error here;
974 set V to null instead.
975 (write_root): Update comment above function. Use start_root_entry.
977 2010-07-19 Xinliang David Li <davidxl@google.com>
980 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
982 (find_uninit_use): Add dump.
983 (is_use_properly_guarded): Ditto.
984 (warn_uninitialized_phi): Ditto.
985 (execute_late_warn_uninitialized): Ditto.
987 2010-07-19 Richard Guenther <rguenther@suse.de>
990 * expr.c (emit_block_move_hints): Move zero size check first.
991 Move asserts to more useful places.
992 * calls.c (load_register_parameters): Check for zero size.
994 2010-07-19 Richard Henderson <rth@redhat.com>
996 * tree-optimize.c (execute_all_early_local_passes): New. Change
997 cgraph_state here ...
998 (execute_early_local_optimizations): ... not here. Remove.
999 (pass_early_local_passes, pass_all_early_optimizations): Update.
1001 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
1003 * postreload.c (reload_combine_closest_single_use): Ignore the
1004 number of uses for DEBUG_INSNs.
1005 (fixup_debug_insns): New static function.
1006 (reload_combine_recognize_const_pattern): Use it. Don't let the
1007 main loop be affected by DEBUG_INSNs.
1008 Really disallow moving adds past a jump insn.
1009 (reload_combine_recognize_pattern): Don't update use_ruid here.
1010 (reload_combine_note_use): Do it here.
1011 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
1013 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
1015 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
1017 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
1019 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
1021 * config/i386/darwin.h: Define darwin_emit_branch_islands.
1022 (TARGET_MACHO_BRANCH_ISLANDS): New.
1023 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
1024 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
1026 * config/i386/i386.c (output_pic_addr_const): Do not emit
1027 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
1028 (x86_output_mi_thunk): Adjust symbol creation.
1029 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
1030 Remove out of date comment.
1031 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
1032 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
1033 (DARWIN_GENERATE_ISLANDS): Ditto.
1034 (output_call): Do not emit branch islands unless
1035 darwin_emit_branch_islands is set.
1036 * config/darwin.c: Declare darwin_emit_branch_islands.
1037 (machopic_indirect_data_reference): Do not emit unless
1038 darwin_emit_branch_islands is set.
1039 (darwin_override_options): Set darwin_emit_branch_islands
1041 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
1043 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1045 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1046 sse_runtime, sse2_runtime.
1048 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
1050 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
1051 low half of a single-register SCmode return value before ORing
1052 it with the high half.
1053 * config/mips/mips16.S (MERGE_GPRf): Likewise.
1055 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1058 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
1061 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
1064 * postreload.c (reload_cse_move2add): Return bool, true if anything.
1065 changed. All callers changed.
1066 (move2add_use_add2_insn): Likewise.
1067 (move2add_use_add3_insn): Likewise.
1068 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
1070 (RELOAD_COMBINE_MAX_USES): Bump to 16.
1071 (last_jump_ruid): New static variable.
1072 (struct reg_use): New members CONTAINING_MEM and RUID.
1073 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
1074 (reload_combine_split_one_ruid, reload_combine_split_ruids,
1075 reload_combine_purge_insn_uses, reload_combine_closest_single_use
1076 reload_combine_purge_reg_uses_after_ruid,
1077 reload_combine_recognize_const_pattern): New static functions.
1078 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
1079 is true for our reg and that we have available index regs.
1080 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
1081 callers changed. Use them to initialize fields in struct reg_use.
1082 (reload_combine): Initialize last_jump_ruid. Be careful when to
1083 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
1084 Call reload_combine_recognize_const_pattern.
1085 (reload_combine_note_store): Update REAL_STORE_RUID field.
1087 2010-07-16 Jason Merrill <jason@redhat.com>
1089 * Makefile.in (opts-common.o): Depend on options.h.
1091 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
1093 * tree.c (build_common_builtin_nodes): Use build_function_type_list
1094 instead of build_function_type.
1095 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
1096 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1098 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
1100 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
1102 (rs6000_emit_int_cmove): Use function pointers for insn generation.
1103 Don't force values into registers unnecessarily.
1104 (output_isel): Assert that we're not given conditions we can't handle.
1105 Delete corresponding code.
1106 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
1107 scc_comparison_operator constraint. Permit 0 for the consequent
1108 operand. Permit any GPR for the alternative operand.
1109 (isel_unsigned_<mode>): Likewise.
1111 2010-07-16 Jakub Jelinek <jakub@redhat.com>
1114 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
1115 argument to const_tree.
1116 * config/i386/i386.c (function_arg_advance): If padding needs to be
1117 inserted before argument, increment cum->words by number of padding
1119 (contains_aligned_value_p): Change argument to const_tree.
1120 (ix86_function_arg_boundary): Change second argument to const_tree.
1122 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
1125 * function.c (record_hard_reg_sets): New static function.
1126 (assign_parm_setup_reg): If an optab for extending exists and the
1127 generated code clobbbers no hard regs, emit the insn directly and
1128 create a REG_EQUIV note.
1130 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1132 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
1134 * c-typeck.c (push_init_level): Likewise.
1135 (process_init_element): Likewise.
1137 2010-07-15 Anatoly Sokolov <aesok@post.ru>
1139 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
1140 (integer_three_node): Add.
1141 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
1142 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
1143 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
1144 of call build_int_cst.
1145 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
1146 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
1147 (find_interesting_uses_address): Ditto.
1148 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
1149 * tree-eh.c (lower_eh_constructs_2): Ditto.
1150 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
1151 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
1152 * expmed.c (expand_divmod): Ditto.
1153 * tree-mudflap.c (mx_register_decls): Ditto.
1154 * varasm.c (array_size_for_constructor): Ditto.
1155 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1156 * c-parser.c (c_parser_postfix_expression): Ditto.
1158 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
1160 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
1161 New static variables.
1162 (reload_combine_recognize_pattern): New static function, broken out
1164 (reload_combine): Use it. Only initialize first_index_reg and
1165 last_index_reg once.
1167 2010-07-15 Richard Henderson <rth@redhat.com>
1169 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
1172 2010-07-15 Jan Hubicka <jh@suse.cz>
1174 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
1175 comdats for broken gold.
1176 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
1178 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1180 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
1182 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1184 * tree.h (DECL_CHAIN): Define.
1185 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1186 * c-decl.c: Likewise.
1187 * c-parser.c: Likewise.
1188 * c-typeck.c: Likewise.
1189 * cfgexpand.c: Likewise.
1190 * cgraph.c: Likewise.
1191 * cgraphunit.c: Likewise.
1192 * combine.c: Likewise.
1193 * config/alpha/alpha.c: Likewise.
1194 * config/arm/arm.c: Likewise.
1195 * config/frv/frv.c: Likewise.
1196 * config/i386/i386.c: Likewise.
1197 * config/i386/winnt-cxx.c: Likewise.
1198 * config/ia64/ia64.c: Likewise.
1199 * config/iq2000/iq2000.c: Likewise.
1200 * config/mep/mep.c: Likewise.
1201 * config/mips/mips.c: Likewise.
1202 * config/pa/som.h: Likewise.
1203 * config/rs6000/rs6000.c: Likewise.
1204 * config/s390/s390.c: Likewise.
1205 * config/sh/sh.c: Likewise.
1206 * config/sh/symbian-cxx.c: Likewise.
1207 * config/sparc/sparc.c: Likewise.
1208 * config/spu/spu.c: Likewise.
1209 * config/stormy16/stormy16.c: Likewise.
1210 * config/vxworks.c: Likewise.
1211 * config/xtensa/xtensa.c: Likewise.
1212 * coverage.c: Likewise.
1213 * dbxout.c: Likewise.
1214 * dwarf2out.c: Likewise.
1215 * emit-rtl.c: Likewise.
1217 * function.c: Likewise.
1218 * gimple-low.c: Likewise.
1219 * gimple-pretty-print.c: Likewise.
1220 * gimplify.c: Likewise.
1221 * integrate.c: Likewise.
1222 * ipa-inline.c: Likewise.
1223 * ipa-prop.c: Likewise.
1224 * ipa-split.c: Likewise.
1225 * ipa-struct-reorg.c: Likewise.
1226 * ipa-type-escape.c: Likewise.
1227 * langhooks.c: Likewise.
1228 * lto-cgraph.c: Likewise.
1229 * omp-low.c: Likewise.
1230 * stor-layout.c: Likewise.
1231 * tree-cfg.c: Likewise.
1232 * tree-complex.c: Likewise.
1233 * tree-dfa.c: Likewise.
1234 * tree-dump.c: Likewise.
1235 * tree-inline.c: Likewise.
1236 * tree-mudflap.c: Likewise.
1237 * tree-nested.c: Likewise.
1238 * tree-object-size.c: Likewise.
1239 * tree-pretty-print.c: Likewise.
1240 * tree-sra.c: Likewise.
1241 * tree-ssa-live.c: Likewise.
1242 * tree-ssa-loop-niter.c: Likewise.
1243 * tree-ssa-math-opts.c: Likewise.
1244 * tree-ssa-reassoc.c: Likewise.
1245 * tree-ssa-sccvn.c: Likewise.
1246 * tree-ssa-structalias.c: Likewise.
1247 * tree-tailcall.c: Likewise.
1248 * tree-vrp.c: Likewise.
1250 * var-tracking.c: Likewise.
1251 * varasm.c: Likewise.
1253 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1256 * config/spu/spu.c (spu_expand_builtin_1): Allow references
1257 (as well as pointers) as argument to mask_for_load builtins.
1259 2010-07-15 Richard Guenther <rguenther@suse.de>
1261 PR tree-optimization/44946
1262 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
1263 with accessing only padding properly.
1265 2010-07-15 Jan Hubicka <jh@suse.cz>
1267 * ipa.c (function_and_variable_visibility): Variables marked as used
1268 should not be localized.
1270 2010-07-15 Jan Hubicka <jh@suse.cz>
1272 * cgraph.c: Include lto-streamer.h
1273 (change_decl_assembler_name): Work when assembler name hash is at place.
1274 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
1275 be sure to rename it to avoid name clash.
1276 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
1277 Localize hidden symbols only when locally defined.
1279 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
1281 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
1283 2010-07-15 Magnus Granberg <zorry@gentoo.org>
1284 Kevin F. Quinn <kevquinn@gentoo.org>
1286 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
1287 * common.opt: Add -Wtrampolines.
1288 * doc/invoke.texi: Add -Wtrampolines.
1290 2010-07-15 Jie Zhang <jie@codesourcery.com>
1292 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
1295 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
1297 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
1298 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1300 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1302 * config/spu/spu.c (reg_names): Remove prototype.
1303 (call_used_regs): Likewise.
1305 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
1307 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
1308 "unused" with attribute "used".
1309 (__JCR_END__): Likewise.
1310 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
1312 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
1314 2010-07-14 Richard Guenther <rguenther@suse.de>
1316 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
1317 (maybe_fixup_decls): Likewise.
1318 (input_gimple_stmt): Do not fixup anything.
1319 * lto-streamer-out.c (output_gimple_stmt): Make sure all
1320 non-automatic variable uses are wrapped inside a MEM_REF.
1322 2010-07-14 Richard Henderson <rth@redhat.com>
1324 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
1326 * varasm.c (assemble_variable): Remove early exit for functions;
1327 assert that we're given a variable.
1329 2010-07-14 Jie Zhang <jie@codesourcery.com>
1331 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
1332 cortex_a8_default when neon_type is not none.
1334 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
1336 * lower-subreg.c (subreg_context): New static bitmap.
1337 (decompose_multiword_subregs): Allocate and free it.
1338 (find_decomposable_subregs): Set a bit in it for a register that
1339 occurs in a subreg that changes mode but not size.
1340 (can_decompose_p): Test it instead of non_decomposable_context.
1342 2010-07-14 Richard Guenther <rguenther@suse.de>
1344 PR tree-optimization/44824
1345 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
1346 is_gimple_mem_ref_addr.
1347 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
1348 non-decl_address_invariant_p addresses.
1350 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
1352 * reload.c (find_reloads): Revert code to penalize small register
1353 classes that was brought in with the IRA merge.
1355 2010-07-14 Richard Guenther <rguenther@suse.de>
1357 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
1358 as base of ARRAY_REFs.
1360 2010-07-14 Richard Guenther <rguenther@suse.de>
1363 * tree-pretty-print.c (do_niy): Do not print a newline.
1365 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
1367 * ira-int.h (struct ira_object): New.
1368 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
1369 (struct ira_allocno): Remove members min, max,
1370 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
1371 conflict_allocnos_num and conflict_vec_p. Add new member object.
1372 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
1373 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
1374 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
1375 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
1376 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
1377 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
1378 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
1379 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
1380 an ira_object_t rather than ira_allocno_t. All uses changed.
1381 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
1382 contains a vector of ira_object_t; all uses changed.
1383 (ira_objects_num): Declare variable.
1384 (ira_create_allocno_object): Declare function.
1385 (ira_conflict_vector_profitable_p): Adjust prototype.
1386 (ira_allocate_conflict_vec): Renamed from
1387 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
1388 (ira_allocate_object_conflicts): Renamed from
1389 ira_allocate_allocno_conflicts; first arg now ira_object_t.
1390 (struct ira_object_iterator): New.
1391 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
1392 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
1393 to conflict_vec_p. All uses changed.
1394 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
1395 Changed to take into account that conflicts are now tracked for
1397 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
1398 Args changed to accept ira_object_t. All uses changed.
1399 (allocnos_conflict_p): New static function.
1400 (collected_conflict_objects): Renamed from collected_allocno_objects;
1401 now a vector of ira_object_t. All uses changed.
1402 (build_conflict_bit_table): Changed to take into account that
1403 conflicts are now tracked for objects.
1404 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
1405 (print_allocno_conflicts, ira_build_conflicts): Likewise.
1406 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
1407 setup_allocno_left_conflicts_size, allocno_reload_assign,
1408 fast_allocation): Likewise.
1409 * ira-lives.c (make_hard_regno_born, make_allocno_born)
1410 process_single_reg_class_operands, process_bb_node_lives): Likewise.
1411 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
1413 * ira-build.c (ira_objects_num): New variable.
1414 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
1415 contains a vector of ira_object_t; all uses changed.
1416 (ira_object_id_map_vec): Corresponding change.
1417 (object_pool): New static variable.
1418 (initiate_allocnos): Initialize it.
1419 (finish_allocnos): Free it.
1420 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
1422 (ira_create_allocno): Don't set members that were removed.
1423 (ira_set_allocno_cover_class): Don't change conflict hard regs.
1424 (merge_hard_reg_conflicts): Changed to take into account that
1425 conflicts are now tracked for objects.
1426 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
1427 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
1428 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
1429 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
1430 setup_min_max_conflict_allocno_ids, ): Likewise.
1431 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
1432 to ira_object_t; all callers changed.
1433 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
1434 to ira_object_t, all callers changed.
1435 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
1436 to ira_object_t, all callers changed.
1437 (conflict_check, curr_conflict_check_tick): Renamed from
1438 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
1440 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
1441 arg changed to ira_object_t, all callers changed.
1442 (create_cap_allocno): Call ira_create_allocno_object.
1443 (finish_allocno): Free the corresponding object.
1444 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
1445 callers changed. Adjusted for dealing with objects.
1446 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
1447 dealing with objects.
1448 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
1450 * ira-int.h (struct live_range): Rename allocno member to object
1451 and change type to ira_object_t.
1452 (struct ira_object): New member live_ranges.
1453 (struct ira_allocno): Remove member live_ranges.
1454 (ALLOCNO_LIVE_RANGES): Remove.
1455 (OBJECT_LIVE_RANGES): New macro.
1456 (ira_create_live_range, ira_copy_live_range_list,
1457 ira_merge_live_range_list, ira_live_ranges_intersect_p,
1458 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
1459 * ira-build.c (ira_create_object): Initialize live ranges here.
1460 (ira_create_allocno): Not here.
1461 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
1462 changed to ira_object_t, all callers changed.
1463 (copy_live_range): Rename from copy_allocno_live_range, all callers
1465 (ira_copy_live_range_list): Rename from
1466 ira_copy_allocno_live_range_list, all callers changed.
1467 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
1468 all callers changed.
1469 (ira_live_ranges_intersect_p): Rename from
1470 ira_allocno_live_ranges_intersect_p, all callers changed.
1471 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
1473 (ira_finish_live_range_list): Rename from
1474 ira_finish_allocno_live_range_list, all callers changed.
1475 (change_object_in_range_list): Rename from change_allocno_in_range_list,
1476 last arg changed to ira_object_t, all callers changed.
1477 (finish_allocno): Changed to expect live ranges in the allocno's object.
1478 (move_allocno_live_ranges, copy_allocno_live_ranges,
1479 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
1480 ira_flattening, ira_build): Likewise.
1481 * ira-color.c (allocnos_have_intersected_live_ranges_p,
1482 slot_coalesced_allocno_live_ranges_intersect,
1483 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
1484 * ira-conflicts.c (build_conflict_bit_table): Likewise.
1485 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
1486 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
1487 make_allocno_dead, create_start_finish_chains,
1488 remove_some_program_points_and_update_live_ranges,
1489 ira_debug_live_range_list): Likewise.
1491 * ira-int.h (ira_object_conflict_iterator): Rename from
1492 ira_allocno_conflict_iterator.
1493 (ira_object_conflict_iter_init): Rename from
1494 ira_allocno_conflict_iter_init, second arg changed to
1495 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
1496 FOR_EACH_ALLOCNO_CONFLICT.
1497 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
1498 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
1499 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
1500 * ira-conflicts.c (print_allocno_conflicts): Likewise.
1502 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
1505 * tree-dump.c (dump_options): Add enumerate_locals entry.
1506 Add TDF_NOID exclusion to all entry.
1507 * tree-dump.h (dump_enumerated_decls): Declare.
1508 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
1509 Don't display type uid.
1510 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
1511 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
1512 * tree-ssa-live.c: Include gimple.h.
1513 (numbered_tree_d): New struct.
1514 (numbered_tree): New typedef.
1515 (DEF_VEC_O (numbered_tree): New.
1516 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
1517 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
1518 (dump_enumerated_decls): Likewise.
1519 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
1520 debug info and flag_dump_final_insns, call dump_enumerated_decls.
1521 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
1522 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
1524 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
1526 * expmed.h (MAX_BITS_PER_WORD): Move to...
1527 * defaults.h (MAX_BITS_PER_WORD): ...here.
1529 2010-07-13 DJ Delorie <dj@redhat.com>
1531 * config/h8300/h8300.c (h8300_init_once): Default to
1532 -fstrict_volatile_bitfields.
1534 * config/sh/sh.c (sh_override_options): Default to
1535 -fstrict_volatile_bitfields.
1537 * config/rx/rx.c (rx_option_override): New.
1539 * config/m32c/m32c.c (m32c_override_options): Default to
1540 -fstrict_volatile_bitfields.
1542 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
1544 * tree.h (build_function_call_expr): Delete.
1545 (build_call_expr_loc_array): New function.
1546 (build_call_expr_loc_vec): New function.
1547 * tree-flow.h (struct omp_region): Change type of ws_args field
1549 * builtins.c (build_function_call_expr): Delete.
1550 (build_call_expr_loc_array): New function.
1551 (build_call_expr_loc): Call it. Use XALLOCAVEC.
1552 (build_call_expr): Likewise.
1553 (build_call_expr_loc_vec): New function.
1554 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
1555 build_function_call_expr.
1556 * expr.c (emutls_var_address): Likewise.
1557 * varasm.c (emutls_common_1): Likewise.
1558 * omp-low.c (expand_omp_atomic_mutex): Likewise.
1559 (expand_omp_taskreg): Adjust for new type of region->ws_args.
1560 (get_ws_args_for): Return a VEC instead of a tree.
1561 (expand_parallel_call): Call build_call_expr_loc_vec instead of
1562 build_function_call_expr.
1563 * stor-layout.c (self_referential_size): Likewise.
1565 2010-07-13 Jakub Jelinek <jakub@redhat.com>
1568 * recog.c (constrain_operands): Allow side-effects in memory
1569 operands if either < or > constraint is used, rather than if
1570 both < and > is used.
1572 2010-07-13 Richard Guenther <rguenther@suse.de>
1575 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
1576 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
1579 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
1582 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
1584 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
1585 * config/sh/sh.md (symGOT_load): Likewise.
1586 (symDTPOFF2reg): Likewise.
1587 (symTPOFF2reg): Likewise.
1589 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1591 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
1592 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
1594 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1596 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
1598 Find ucontext_t * on Solaris 11.
1599 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
1600 Handle new Solaris 11 __sighndlr patterns.
1602 2010-07-13 Jakub Jelinek <jakub@redhat.com>
1605 * vec.h (VEC_block_remove): Fix comment.
1606 * tree-ssa-live.c (remove_unused_locals): Don't use
1607 VEC_unordered_remove on local_decls, instead replace a single
1608 vector element in each iteration if at least one element had
1609 to be removed and VEC_truncate at the end.
1610 * omp-low.c (expand_omp_taskreg): Likewise.
1612 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1614 * c-decl.c (finish_function): Fix typo in comment.
1616 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
1619 * postreload.c (move2add_use_add3_insn): Silence gcc warning
1622 2010-07-12 Jakub Jelinek <jakub@redhat.com>
1624 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
1625 (simplify_stmt_using_ranges): Use it.
1627 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1629 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
1630 member. Do not mark as GTY(()).
1631 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
1632 (spu_builtin_decls): New static variable.
1633 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
1634 (spu_init_builtins): Likewise.
1635 (spu_builtin_mul_widen_even): Likewise.
1636 (spu_builtin_mul_widen_odd): Likewise.
1637 (spu_builtin_mask_for_load): Likewise.
1638 (spu_builtin_vec_perm): Likewise.
1639 * config/spu/spu-c.c: Include "target.h".
1640 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
1641 of using spu_builtins[].fndecl.
1643 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1645 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
1646 imply -minterlink-mips16.
1648 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1650 * config/mips/mips.h (mips16_globals): Declare.
1651 (SWITCHABLE_TARGET): Define.
1652 * config/mips/mips.c: Include target-globals.h.
1653 (mips16_globals): New variable.
1654 (mips_set_mips16_mode): Use save_target_globals and
1655 restore_target_globals instead of target_reinit.
1657 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1659 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
1660 to say that the function can be called more than once.
1661 * target-globals.c (save_target_globals): Call init_reg_sets.
1663 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1665 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
1666 * bb-reorder.h: New file.
1667 * bb-reorder.c (default_target_bb_reorder): New variable.
1668 (this_target_bb_reorder): New conditional variable.
1669 (uncond_jump_length): Redefine as a macro.
1670 * target-globals.h (this_target_bb_reorder): Declare.
1671 (target_globals): Add a bb_reorder field.
1672 (restore_target_globals): Copy the bb_reorder field to
1673 this_target_bb-reorder.
1674 * target-globals.c: Include bb-reorder.h.
1675 (default_target_globals): Initialize the bb_reorder field.
1676 (save_target_globals): Likewise.
1678 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1680 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
1682 * gcse.c: Include gcse.h.
1683 (default_target_gcse): New variable.
1684 (this_target_gcse): New conditional variable.
1685 (can_copy): Redefine as a macro.
1686 (can_copy_init_p): New macro.
1687 (can_copy_p): Remove can_copy_init_p.
1688 * target-globals.h (this_target_gcse): Declare.
1689 (target_globals): Add a gcse field.
1690 (restore_target_globals): Copy the gcse field to this_target_gcse.
1691 * target-globals.c: Include gcse.h.
1692 (default_target_globals): Initialize the gcse field.
1693 (save_target_globals): Likewise.
1695 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1697 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
1698 and x_ira_prohibited_mode_move_regs_initialized_p.
1699 (ira_prohibited_mode_move_regs): Redefine as a macro.
1700 * ira.c (ira_prohibited_mode_move_regs): Delete.
1701 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
1703 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1705 * reload.h (target_reload): Add x_cached_reg_save_code and
1706 x_cached_reg_restore_code.
1707 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
1710 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1712 * Makefile.in (target-globals.o): Depend on builtins.h.
1713 * builtins.h: New file.
1714 * builtins.c: Include builtins.h.
1715 (default_target_builtins): New variable.
1716 (this_target_builtins): New conditional variable.
1717 (apply_args_mode, apply_result_mode): Redefine as macros.
1718 * target-globals.h (this_target_builtins): Declare.
1719 (target_globals): Add a builtins field.
1720 (restore_target_globals): Copy the builtins field to
1721 this_target_builtins.
1722 * target-globals.c: Include builtins.h.
1723 (default_target_globals): Initialize the builtins field.
1724 (save_target_globals): Likewise.
1726 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1728 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
1729 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
1731 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
1732 (alg_hash, alg_hash_used_p): New macros.
1733 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
1734 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
1735 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
1737 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1739 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
1740 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
1741 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
1742 (this_op_costs, costs_classes): Redefine as macros.
1743 (record_reg_classes): Don't take op_costs as a parameter.
1744 (record_operand_costs): Likewise. Update calls to record_reg_classes.
1745 (scan_one_insn): Update call to record_operand_costs.
1747 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1749 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
1750 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
1751 (target_ira_int): New structure.
1752 (default_target_ira_int): Declare.
1753 (this_target_ira_int): Declare as a variable or define as a macro.
1754 (ira_reg_mode_hard_regset, ira_register_move_cost)
1755 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
1756 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
1757 (prohibited_class_mode_regs, ira_important_classes_num)
1758 (ira_important_classes, ira_reg_class_intersect)
1759 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
1760 (ira_reg_class_union): Redefine as macros.
1761 * ira.h (target_ira): New structure.
1762 (default_target_ira): Declare.
1763 (this_target_ira): Declare as a variable or define as a macro.
1764 (ira_available_class_regs, ira_hard_regno_cover_class)
1765 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
1766 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
1767 (ira_class_hard_regs_num): Redefine as macros.
1768 * ira.c (default_target_ira, default_target_ira_int): New variables.
1769 (this_target_ira, this_target_ira_int): New conditional variables.
1770 (ira_reg_mode_hard_regset, ira_memory_move_cost)
1771 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
1772 (ira_class_subset_p): Delete.
1773 (no_unit_alloc_regs): Redefine as a macro.
1774 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
1775 (ira_class_hard_regs_num, ira_class_hard_reg_index)
1776 (ira_available_class_regs): Delete.
1777 (alloc_reg_class_subclasses): Redefine as a macro.
1778 (ira_reg_class_cover_size, ira_reg_class_cover)
1779 (ira_important_classes_num, ira_important_classes)
1780 (ira_important_class_nums, ira_class_translate): Delete.
1781 (cover_class_order): Document the variable's lifetime.
1782 (reorder_important_classes): Don't set ira_important_class_nums.
1783 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
1784 (ira_reg_class_super_classes, ira_reg_class_union)
1785 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
1787 (setup_reg_class_nregs): Don't set ira_max_regs.
1788 (prohibited_class_mode_regs): Delete.
1789 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
1790 (target_globals): Add ira and ira_int fields.
1791 (restore_target_globals): Copy the ira field to this_target_ira
1792 and the ira_int field to this_target_ira_int.
1793 * target-globals.c: Include ira-int.h.
1794 (default_target_globals): Initialize the ira and ira_int fields.
1795 (save_target_globals): Likewise.
1797 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1799 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
1800 * cfgloop.h (target_cfgloop): New structure.
1801 (default_target_cfgloop): Declare.
1802 (this_target_cfgloop): Declare as a variable or define as a macro.
1803 (target_avail_regs, target_clobbered_regs, target_res_regs)
1804 (target_reg_cost, target_spill_cost): Redefine as macros.
1805 * cfgloopanal.c (default_target_cfgloop): New variable.
1806 (this_target_cfgloop): New conditional variable.
1807 (target_avail_regs, target_clobbered_regs, target_res_regs)
1808 (target_reg_cost, target_spill_cost): Delete.
1809 * target-globals.h (this_target_cfgloop): Declare.
1810 (target_globals): Add a cfgloop field.
1811 (restore_target_globals): Copy the cfgloop field to
1812 this_target_cfgloop.
1813 * target-globals.c: Include cfgloop.h.
1814 (default_target_globals): Initialize the cfgloop field.
1815 (save_target_globals): Likewise.
1817 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1819 * regs.h (target_regs): Add x_direct_load, x_direct_store and
1820 x_float_extend_from_mem.
1821 (direct_load, direct_store, float_extend_from_mem): New macros.
1822 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
1824 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1826 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
1827 (target-globals.o): Depend on $(LIBFUNCS_H).
1828 * libfuncs.h: Include hashtab.h.
1829 (libfunc_entry): Moved from optabs.c.
1830 (target_libfuncs): New structure.
1831 (default_target_libfuncs): Declare.
1832 (this_target_libfuncs): Declare as a variable or define as a macro.
1833 (libfunc_table): Redefine as a macro.
1834 * optabs.c (default_target_libfuncs): New variable.
1835 (this_target_libfuncs): New conditional variable.
1836 (libfunc_table): Delete.
1837 (libfunc_entry): Moved to optabs.h.
1838 (libfunc_hash): Redefine as a macro.
1839 (hash_libfunc, eq_libfunc): Fix comments.
1840 (init_optabs): Use libfunc_hash to detect cases where the function
1841 has already been called. Clear the hash table instead of
1843 * target-globals.h (this_target_libfuncs): Declare.
1844 (target_globals): Add a libfuncs field.
1845 (restore_target_globals): Copy the libfuncs field to
1846 this_target_libfuncs.
1847 * target-globals.c: Include libfuncs.h.
1848 (default_target_globals): Initialize the libfuncs field.
1849 (save_target_globals): Likewise.
1851 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1853 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
1854 in all dependency lists.
1856 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1858 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
1859 * optabs.h (target_optabs): New structure.
1860 (default_target_optabs): Declare.
1861 (this_target_optabs): Declare as a variable or define as a macro.
1862 (optab_table, convert_optab_table, direct_optab_table): Redefine
1864 * optabs.c (default_target_optabs): New variable.
1865 (this_target_optabs): New conditional variable.
1866 (optab_table, convert_optab_table, direct_optab_table): Delete.
1867 * target-globals.h (this_target_optabs): Declare.
1868 (target_globals): Add a optabs field.
1869 (restore_target_globals): Copy the optabs field to
1871 * target-globals.c: Include expr.h and optabs.h.
1872 (default_target_globals): Initialize the optabs field.
1873 (save_target_globals): Likewise.
1875 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1877 * flags.h (target_flagstate): Add x_flag_excess_precision.
1878 (flag_excess_precision): Redefine as a macro.
1879 * toplev.c (flag_excess_precision): Delete.
1881 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1883 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
1884 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
1885 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
1886 (no_caller_save_reg_set): Redefine as a macro.
1887 * reload.h (target_reload): Add x_caller_save_initialized_p and
1889 (caller_save_initialized_p): Redefine as a macro.
1890 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
1891 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
1892 (regno_save_mode): Redefine as a macro.
1894 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1896 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
1897 * expmed.h: New file.
1898 * expmed.c (default_target_costs): New variable.
1899 (this_target_costs): New conditional variable.
1900 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
1901 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
1902 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
1903 * target-globals.h (this_target_expmed): Declare.
1904 (target_globals): Add a expmed field.
1905 (restore_target_globals): Copy the expmed field to
1907 * target-globals.c: Include expmed.h.
1908 (default_target_globals): Initialize the expmed field.
1909 (save_target_globals): Likewise.
1911 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1913 * Makefile.in (target-globals.o): Depend on reload.h.
1914 * reload.h (target_reload): New structure.
1915 (default_target_reload): Declare.
1916 (this_target_reload): Declare as a variable or define as a macro.
1917 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
1918 * reload1.c (default_target_reload): New variable
1919 (this_target_reload): New conditional variable.
1920 (indirect_symref_ok, double_reg_address_ok): Delete.
1921 (spill_indirect_levels): Redefine as a macro.
1922 * target-globals.h (this_target_reload): Declare.
1923 (target_globals): Add a reload field.
1924 (restore_target_globals): Copy the reload field to
1926 * target-globals.c: Include hard-reg-set.h.
1927 (default_target_globals): Initialize the reload field.
1928 (save_target_globals): Likewise.
1930 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1932 * rtl.h (target_rtl): Add x_static_reg_base_value.
1933 * alias.c (static_reg_base_value): Redefine as a macro.
1935 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1937 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
1938 (GTFILES): Remove reginfo.c.
1939 * rtl.h (target_rtl): Add x_top_of_stack.
1940 (top_of_stack): New macro.
1941 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
1942 (top_of_stack): Delete.
1944 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1946 * regs.h (target_regs): Add x_hard_regs_of_mode,
1947 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
1948 x_may_move_out_cost and x_last_mode_for_init_move_cost.
1949 (have_regs_of_mode, contains_reg_of_mode, move_cost)
1950 (may_move_in_cost, may_move_out_cost): Redefine as macros.
1951 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
1952 (may_move_in_cost, may_move_out_cost): Delete.
1953 (last_mode_for_init_move_cost): Redefine as a macro.
1955 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1957 * hard-reg-set.h (target_hard_regs): New structure.
1958 (default_target_hard_regs): Declare.
1959 (this_target_hard_regs): Declare as a variable or define as a macro.
1960 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
1961 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
1962 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
1963 (reg_class_size, reg_class_subclasses, reg_class_subunion)
1964 (reg_class_superunion, reg_names): Redefine as macros.
1965 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
1966 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
1967 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
1968 (reg_class_contents, reg_class_size, reg_class_subclasses)
1969 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
1970 (default_target_hard_regs): New variable
1971 (this_target_hard_regs, initial_call_really_used_regs)
1972 (initial_reg_alloc_order): New conditional variables.
1973 (initial_reg_names): New variable.
1974 (init_reg_sets): Assert that initial_call_really_used_regs,
1975 initial_reg_alloc_order and initial_reg_names
1976 are all the same size as their variable counterparts. Use them to
1977 initialize those counterparts.
1978 * target-globals.h (this_target_hard_regs): Declare.
1979 (target_globals): Add a hard_regs field.
1980 (restore_target_globals): Copy the hard_regs field to
1981 this_target_hard_regs.
1982 * target-globals.c: Include hard-reg-set.h.
1983 (default_target_globals): Initialize the hard_regs field.
1984 (save_target_globals): Likewise.
1986 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
1988 * Makefile.in (target-globals.o): Depend on $(RTL_H).
1989 * rtl.h (target_rtl): New structure.
1990 (default_target_rtl): Declare.
1991 (this_target_rtl): Declare as a variable or define as a macro.
1992 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
1994 * emit-rtl.c (default_target_rtl): New variable.
1995 (this_target_rtl): New conditional variable.
1996 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
1997 (return_address_pointer_rtx): Delete.
1998 (initial_regno_reg_rtx): New macro.
1999 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
2000 (init_emit_regs): Likewise.
2001 * target-globals.h (this_target_rtl): Declare.
2002 (target_globals): Add a rtl field.
2003 (restore_target_globals): Copy the rtl field to this_target_rtl.
2004 * target-globals.c: Include rtl.h.
2005 (default_target_globals): Initialize the rtl field.
2006 (save_target_globals): Likewise.
2008 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2010 * Makefile.in (target-globals.o): Depend on $(REGS_H).
2011 * regs.h (target_reg_modes): New structure.
2012 (default_target_reg_modes): Declare.
2013 (this_target_reg_modes): Declare as a variable or define as a macro.
2014 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
2015 * reginfo.c (default_target_reg_modes): New variable.
2016 (this_target_reg_modes): New conditional variable.
2017 (hard_regno_nregs, reg_raw_mode): Delete.
2018 * target-globals.h (this_target_regs): Declare.
2019 (target_globals): Add a regs field.
2020 (restore_target_globals): Copy the regs field to this_target_regs.
2021 * target-globals.c: Include regs.h.
2022 (default_target_globals): Initialize the regs field.
2023 (save_target_globals): Likewise.
2025 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2027 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
2028 * doc/tm.texi: Regenerate.
2029 * Makefile.in (OBJS-common): Add target-globals.o.
2030 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
2031 and target-globals.h.
2032 (target-globals.o): New rule.
2033 (GTFILES): Include $(srcdir)/target-globals.h.
2034 * defaults.h (SWITCHABLE_TARGET): Define.
2035 * gengtype.c (open_base_files): Add target-globals.h to the
2037 * target-globals.h: New file.
2038 * target-globals.c: Likewise.
2040 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
2041 * flags.h (target_flag_state): New structure.
2042 (default_target_flag_state): Declare.
2043 (this_target_flag_state): Declare as a variable or define as a macro.
2044 (align_loops_log): Redefine as a macro.
2045 (align_loops_max_skip, align_jumps_log): Likewise.
2046 (align_jumps_max_skip, align_labels_log): Likewise.
2047 (align_labels_max_skip, align_functions_log): Likewise.
2048 * toplev.c (default_target_flag_state): New variable.
2049 (this_target_flag_state): New conditional variable.
2050 (align_loops_log): Delete.
2051 (align_loops_max_skip, align_jumps_log): Likewise.
2052 (align_jumps_max_skip, align_labels_log): Likewise.
2053 (align_labels_max_skip, align_functions_log): Likewise.
2054 * target-globals.h (this_target_flag_state): Declare.
2055 (target_globals): Add a flag_state field.
2056 (restore_target_globals): Copy the flag_state field to
2057 this_target_flag_state.
2058 * target-globals.c: Include flags.h.
2059 (default_target_globals): Initialize the flag_state field.
2060 (save_target_globals): Likewise.
2062 2010-07-12 Jie Zhang <jie@codesourcery.com>
2064 * postreload.c (reg_symbol_ref[]): New.
2065 (move2add_use_add2_insn): New.
2066 (move2add_use_add3_insn): New.
2067 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
2068 (move2add_note_store): Likewise.
2070 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
2072 PR rtl-optimization/44752
2073 * genautomata.c (main): Don't emit an empty file even if there
2076 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2078 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
2079 ix86_solaris_return_in_memory.
2080 * config/i386-protos.h: Reflect this.
2081 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
2082 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
2084 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
2086 2010-07-12 Jie Zhang <jie@codesourcery.com>
2088 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
2089 align the stack when it's going to be saved.
2091 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2094 * config/host-solaris.c (mmap_fixed): New function.
2095 (sol_gt_pch_get_address): Use it.
2096 (sol_gt_pch_use_address): Likewise.
2098 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2100 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2101 pentiumpro on Solaris 8 and 9/x86.
2102 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
2103 Document SSE/SSE2 support.
2104 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
2106 2010-07-12 Andi Kleen <ak@linux.intel.com>
2108 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
2109 instead of gcc_assert to print better error message for multiple
2112 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
2114 * config/i386/i386.c (ix86_asm_output_function_label): Change format
2115 string placeholder from 0x%x to %#x.
2116 (ix86_code_end): Use putc to output '\n'.
2117 (ix86_print_operand) <case ';'>: Use putc to output ';'.
2119 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
2121 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
2122 in directive -export.
2124 2010-07-10 Anatoly Sokolov <aesok@post.ru>
2126 * reginfo.h (reg_classes_intersect_p): Change arguments type to
2128 * rtl.h (reg_classes_intersect_p): Adjust prototype.
2130 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2132 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
2133 rs6000_memory_move_cost): Remove
2134 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
2135 TARGET_MEMORY_MOVE_COST): Define.
2136 (rs6000_register_move_cost): Make static. Change arguments type from
2137 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
2138 (rs6000_memory_move_cost): Make static. Change arguments type from
2139 'enum reg_class' to reg_class_t.
2141 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
2144 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
2145 lookup code into....
2146 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
2148 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
2149 * cfgloopanal.c (target_clobbered_regs): Define.
2150 (init_set_costs): Initialize target_clobbered_regs.
2151 (estimate_reg_pressure_cost): Add call_p argument. When true,
2152 adjust the number of available registers to exclude the
2153 call-clobbered registers.
2154 * cfgloop.h (target_clobbered_regs): Declare.
2155 (estimate_reg_pressure_cost): Adjust declaration.
2156 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
2157 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
2158 (determine_set_costs): Dump target_clobbered_regs.
2159 (loop_body_includes_call): New function.
2160 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
2161 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
2162 call_p flag through.
2163 (best_gain_for_invariant): Likewise.
2164 (find_invariants_to_move): Likewise.
2165 (move_single_loop_invariants): Likewise, using already-computed
2168 2010-07-10 Richard Guenther <rguenther@suse.de>
2169 Joern Rennecke <joern.rennecke@embecosm.com>
2172 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
2173 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
2174 unless they have DECL_IGNORED_P set.
2176 2010-07-10 Richard Guenther <rguenther@suse.de>
2179 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
2181 (gimple_types_compatible_p): Similar to pointed-to
2182 types allow and merge a mix of complete and incomplete aggregate.
2183 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
2184 (iterative_hash_gimple_type): Adjust for that.
2186 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
2188 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
2190 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
2193 * config/darwin.c (output_objc_section_asm_op): Save and restore
2194 section when outputting ObjC section list.
2196 2010-07-09 Jan Hubicka <jh@suse.cz>
2198 * lto-streamer-out.c (produce_symtab): Do not write alias
2199 cgraph/varpool nodes.
2201 2010-07-09 Jan Hubicka <jh@suse.cz>
2203 * tree-inline.c (declare_return_variable): Fix ICE while
2204 inlining DECL_BY_VALUE function not in SSA form
2206 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
2208 PR tree-optimization/44576
2209 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
2210 New. Pull out from is_loop_prefetching_profitable to implement
2211 the trip count to ahead ratio heuristic.
2212 (mem_ref_count_reasonable_p): New. Pull out from
2213 is_loop_prefetching_profitable to implement the instruction to
2214 memory reference ratio heuristic. Also consider not reasonable if
2215 the memory reference count is above a threshold (to avoid
2216 explosive compilation time.
2217 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
2218 is_loop_prefetching_profitable to implement the instruction to
2219 prefetch ratio heuristic.
2220 (is_loop_prefetching_profitable): Removed.
2221 (loop_prefetch_arrays): Distribute the cost analysis across the
2222 function to allow early exit of the prefetch analysis.
2223 is_loop_prefetching_profitable is splitted into three functions,
2224 with each one called as early as possible.
2225 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
2226 number of memory references in a loop is considered too many.
2228 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
2230 * reload.c (find_reloads): Don't clear badop if we have a winreg
2231 alternative, but not win, and the class only has fixed regs.
2232 * hard-reg-set.h (class_only_fixed_regs): Declare.
2233 * reginfo.c (class_only_fixed_regs): New array.
2234 (init_reg_sets_1): Initialize it.
2235 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
2236 discourage alternatives using the stack pointer.
2238 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
2240 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
2242 * config/arm/arm.md (cbranchqi4): Fix array size.
2243 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
2246 2010-07-09 Richard Guenther <rguenther@suse.de>
2248 * gimple.c (struct type_fixup_s): New struct and VEC type.
2249 (gimple_register_type_fixups): New static global.
2250 (gimple_queue_type_fixup): New function.
2251 (gimple_types_compatible_p): Queue type fixups instead of
2253 (gimple_register_type): Apply queued fixups for the
2254 canonical type. Empty the type fixup queue.
2256 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
2258 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
2259 * configure: Regenerate.
2262 2010-07-09 Jakub Jelinek <jakub@redhat.com>
2263 Denys Vlasenko <dvlasenk@redhat.com>
2264 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2266 PR tree-optimization/28632
2267 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
2268 (extract_range_from_binary_expr): Further optimize
2269 BIT_AND_EXPR and BIT_IOR_EXPR.
2271 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
2273 * tree-if-conv.c (fold_or_predicates): New.
2274 (add_to_predicate_list): Call it.
2276 2010-07-09 Richard Guenther <rguenther@suse.de>
2279 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
2280 if base is a pointer.
2281 * tree-cfg.c (verify_expr): Update MEM_REF checking.
2283 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2286 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
2287 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
2288 builtin mask for load/store builtins.
2290 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
2292 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
2294 * configure: Regenerate.
2295 * config/i386/i386.c (ix86_print_operand) <case ';'>:
2296 Remove TARGET_MACHO.
2298 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
2300 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
2302 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
2304 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
2306 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
2308 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
2310 * config/picochip/picochip.md (commsTestPort): Emit more
2311 efficient sequence for tstport instruction.
2313 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
2315 * config/i386/i386.c (ix86_veclib_handler): Make static.
2317 2010-07-09 Richard Guenther <rguenther@suse.de>
2319 PR tree-optimization/44852
2320 * tree-ssa-alias.c: Include toplev.h for exact_log2.
2321 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
2323 (indirect_refs_may_alias_p): Likewise.
2324 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
2326 2010-07-09 Richard Guenther <rguenther@suse.de>
2328 PR tree-optimization/44882
2329 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
2331 (vectorizable_load): Likewise.
2333 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
2336 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
2337 All callers changed.
2338 Handle the case when we're called for the epilogue.
2339 (thumb_unexpanded_epilogue): Use it.
2340 (thumb1_expand_epilogue): Likewise.
2342 2010-07-09 Jakub Jelinek <jakub@redhat.com>
2344 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
2345 both ranges are range_int_cst_p with non-negative minimum,
2346 try harder to derive smaller range.
2348 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2350 * genrecog.c: Include diagnostic-core.h before toplev.h.
2351 * genoutput.c: Likewise.
2352 * genextract.c: Likewise.
2353 * genautomata.c: Likewise.
2354 * genemit.c: Likewise.
2355 * genpeep.c: Likewise.
2356 * genattrtab.c: Likewise.
2357 * genconditions.c: Likewise.
2358 * genpreds.c: Likewise.
2360 2010-07-08 Andi Kleen <ak@linux.intel.com>
2362 * lto-section-in.c (lto_section_name): Add missing comma.
2364 2010-07-08 Anatoly Sokolov <aesok@post.ru>
2366 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
2367 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
2368 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
2369 (ia64_override_options): Rename to...
2370 (ia64_option_override): ... this one. Make static.
2372 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2375 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
2376 pointed-to type of the offset in a MEM_REF to compute the alignment.
2378 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
2380 * final.c (final_scan_insn): Replace
2381 TARGET_UNWIND_INFO macro check by unwind_emit
2383 * targhooks.c (default_unwind_emit): Removed.
2384 * targhooks.h (default_unwind_emit): Likewise.
2385 * target.def (unwind_emit): Set default value to NULL.
2387 * config/i386/i386-protos.h (ix86_asm_output_function_label):
2389 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
2390 for NULL fntype argument and allow 64-bit targets.
2391 (ix86_asm_output_function_label): New function.
2392 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
2393 (ix86_handle_fndecl_attribute): Likewise.
2394 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
2395 * doc/doc/tm.texi: Regenerated.
2396 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
2397 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
2398 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
2399 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
2400 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
2401 * config/elfos.h: Likewise.
2402 * config/i386/cygming.h: Likewise.
2403 * config/netbsd-aout.h: Likewise.
2404 * config/openbsd.h: Likewise.
2405 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
2406 by ix86_asm_output_function_label function call.
2407 * varasm.c (assemble_start_function): Use
2408 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
2410 2010-07-08 Jan Hubicka <jh@suse.cz>
2412 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
2414 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
2416 * ipa-cp.c (ipcp_estimate_growth): Use it.
2417 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
2420 2010-07-08 Jan Hubicka <jh@suse.cz>
2422 * tree-inline.c (declare_return_variable): Allocate annotation for new
2425 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
2427 PR tree-optimization/44710
2428 * tree-if-conv.c (parse_predicate): New.
2429 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
2430 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
2432 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
2434 * common.opt (ftree-loop-if-convert): New flag.
2435 * doc/invoke.texi (ftree-loop-if-convert): Documented.
2436 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
2437 when flag_tree_loop_if_convert is set.
2439 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
2441 * config/i386/i386.c: Use short syntax for function calls
2442 through function pointers.
2443 * config/i386/i386.md: Ditto.
2445 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2447 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
2449 2010-07-08 Richard Guenther <rguenther@suse.de>
2451 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
2452 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
2454 2010-07-08 Jakub Jelinek <jakub@redhat.com>
2456 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
2457 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
2458 (loc_list_from_tree): Likewise.
2459 (output_loc_operands): Handle outputting DW_OP_const[48]u
2460 with loc->dtprel set.
2461 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
2463 2010-07-08 Jan Hubicka <jh@suse.cz>
2465 * ipa.c: Include pointer-set.h
2466 (cgraph_externally_visible_p): New attribute ALIASED;
2467 when in LTO, hidden symbols are local unless they are aliased.
2468 (function_and_variable_visibility): Compute aliased nodes;
2469 handle LTO and hidden symbol on functions and vars.
2470 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
2471 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
2473 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2475 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2476 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2477 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2478 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2479 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2480 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
2481 (ix86_gen_probe_stack_range): Likewise.
2482 (override_options): Set them.
2483 (ix86_target_stack_probe): New function.
2484 (ix86_compute_frame_layout): Force use of push instructions to
2485 save registers if stack checking with probes is enabled.
2486 (get_scratch_register_on_entry): New function.
2487 (release_scratch_register_on_entry): Likewise.
2488 (ix86_adjust_stack_and_probe): Likewise.
2489 (output_adjust_stack_and_probe): Likewise.
2490 (ix86_emit_probe_stack_range): Likewise.
2491 (output_probe_stack_range): Likewise.
2492 (ix86_expand_prologue): Emit stack checking code if static built-in
2493 stack checking is enabled.
2494 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
2495 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
2496 (output_adjust_stack_and_probe): Likewise.
2497 (output_probe_stack_range): Likewise.
2498 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2499 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
2501 (allocate_stack_worker_64): Likewise.
2502 (allocate_stack): Likewise.
2503 (adjust_stack_and_probe): New insn.
2504 (probe_stack_range): Likewise.
2506 2010-07-08 Richard Guenther <rguenther@suse.de>
2508 PR tree-optimization/44831
2509 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
2510 a MEM_REF preserving TBAA info of the original dereference.
2511 Dereference the original pointer if the address is not invariant.
2512 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
2513 at least one invariant address that we are going to dereference.
2515 2010-07-08 Richard Guenther <rguenther@suse.de>
2517 PR tree-optimization/44861
2518 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
2519 information when building MEM_REFs.
2520 (vectorizable_load): Likewise.
2521 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
2523 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2525 * config/sol2-c.c: Do not include diagnostic-core.h.
2527 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2530 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
2531 with respect to current_function_decl. Pass decl of the function.
2532 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
2533 * ipa-inline.c (compute_inline_parameters): Pass decl to
2534 estimated_stack_frame_size.
2536 2010-07-08 Richard Guenther <rguenther@suse.de>
2538 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2540 (valueize_refs): Call it.
2542 2010-07-08 Richard Guenther <rguenther@suse.de>
2544 PR rtl-optimization/44838
2545 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
2546 SSA form do not use pointer equivalence.
2548 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
2550 * dwarf2out.c (AT_linkage_name): Delete.
2551 (add_linkage_attr): New function.
2552 (add_linkage_name): Call it to emit the linkage attribute.
2553 (dwarf2out_finish): Likewise.
2554 (move_linkage_attr): Explicitly accept both attribute variants.
2556 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2558 * toplev.h: Do not include diagnostic-core.h.
2559 Include diagnostic-core.h in every file that includes toplev.h.
2560 * c-tree.h: Do not include toplev.h.
2561 * pretty-print.h: Update comment.
2562 * Makefile.in: Update dependencies.
2563 * alias.c: Include diagnostic-core.h in every file that includes
2565 * attribs.c: Likewise.
2566 * auto-inc-dec.c: Likewise.
2567 * bb-reorder.c: Likewise.
2568 * bt-load.c: Likewise.
2569 * caller-save.c: Likewise.
2570 * calls.c: Likewise.
2572 * cfganal.c: Likewise.
2573 * cfgbuild.c: Likewise.
2574 * cfgcleanup.c: Likewise.
2575 * cfghooks.c: Likewise.
2576 * cfgloop.c: Likewise.
2577 * combine.c: Likewise.
2578 * config/alpha/alpha.c: Likewise.
2579 * config/arc/arc.c: Likewise.
2580 * config/arm/arm.c: Likewise.
2581 * config/arm/pe.c: Likewise.
2582 * config/avr/avr.c: Likewise.
2583 * config/bfin/bfin.c: Likewise.
2584 * config/cris/cris.c: Likewise.
2585 * config/crx/crx.c: Likewise.
2586 * config/darwin-c.c: Likewise.
2587 * config/darwin.c: Likewise.
2588 * config/fr30/fr30.c: Likewise.
2589 * config/frv/frv.c: Likewise.
2590 * config/h8300/h8300.c: Likewise.
2591 * config/host-darwin.c: Likewise.
2592 * config/i386/i386.c: Likewise.
2593 * config/i386/netware.c: Likewise.
2594 * config/i386/nwld.c: Likewise.
2595 * config/i386/winnt-cxx.c: Likewise.
2596 * config/i386/winnt-stubs.c: Likewise.
2597 * config/i386/winnt.c: Likewise.
2598 * config/ia64/ia64-c.c: Likewise.
2599 * config/ia64/ia64.c: Likewise.
2600 * config/iq2000/iq2000.c: Likewise.
2601 * config/lm32/lm32.c: Likewise.
2602 * config/m32c/m32c-pragma.c: Likewise.
2603 * config/m32c/m32c.c: Likewise.
2604 * config/m32r/m32r.c: Likewise.
2605 * config/m68hc11/m68hc11.c: Likewise.
2606 * config/m68k/m68k.c: Likewise.
2607 * config/mcore/mcore.c: Likewise.
2608 * config/mep/mep-pragma.c: Likewise.
2609 * config/mep/mep.c: Likewise.
2610 * config/mmix/mmix.c: Likewise.
2611 * config/mn10300/mn10300.c: Likewise.
2612 * config/moxie/moxie.c: Likewise.
2613 * config/pa/pa.c: Likewise.
2614 * config/pdp11/pdp11.c: Likewise.
2615 * config/picochip/picochip.c: Likewise.
2616 * config/rs6000/rs6000-c.c: Likewise.
2617 * config/rs6000/rs6000.c: Likewise.
2618 * config/rx/rx.c: Likewise.
2619 * config/s390/s390.c: Likewise.
2620 * config/score/score.c: Likewise.
2621 * config/score/score3.c: Likewise.
2622 * config/score/score7.c: Likewise.
2623 * config/sh/sh.c: Likewise.
2624 * config/sh/symbian-base.c: Likewise.
2625 * config/sh/symbian-c.c: Likewise.
2626 * config/sh/symbian-cxx.c: Likewise.
2627 * config/sol2-c.c: Likewise.
2628 * config/sol2.c: Likewise.
2629 * config/sparc/sparc.c: Likewise.
2630 * config/spu/spu.c: Likewise.
2631 * config/stormy16/stormy16.c: Likewise.
2632 * config/v850/v850-c.c: Likewise.
2633 * config/v850/v850.c: Likewise.
2634 * config/vax/vax.c: Likewise.
2635 * config/vxworks.c: Likewise.
2636 * config/xtensa/xtensa.c: Likewise.
2637 * convert.c: Likewise.
2639 * cselib.c: Likewise.
2640 * dbgcnt.c: Likewise.
2641 * dbxout.c: Likewise.
2643 * dominance.c: Likewise.
2644 * emit-rtl.c: Likewise.
2645 * explow.c: Likewise.
2646 * expmed.c: Likewise.
2647 * fixed-value.c: Likewise.
2648 * fold-const.c: Likewise.
2649 * fwprop.c: Likewise.
2651 * ggc-common.c: Likewise.
2652 * ggc-page.c: Likewise.
2653 * ggc-zone.c: Likewise.
2654 * gimple-low.c: Likewise.
2655 * gimplify.c: Likewise.
2656 * graph.c: Likewise.
2657 * haifa-sched.c: Likewise.
2658 * ifcvt.c: Likewise.
2659 * implicit-zee.c: Likewise.
2660 * integrate.c: Likewise.
2661 * ira-build.c: Likewise.
2662 * ira-color.c: Likewise.
2663 * ira-conflicts.c: Likewise.
2664 * ira-costs.c: Likewise.
2665 * ira-lives.c: Likewise.
2667 * lists.c: Likewise.
2668 * loop-doloop.c: Likewise.
2669 * loop-iv.c: Likewise.
2670 * lto-opts.c: Likewise.
2671 * lto-symtab.c: Likewise.
2673 * modulo-sched.c: Likewise.
2674 * optabs.c: Likewise.
2675 * params.c: Likewise.
2676 * plugin.c: Likewise.
2677 * postreload-gcse.c: Likewise.
2678 * postreload.c: Likewise.
2679 * predict.c: Likewise.
2680 * profile.c: Likewise.
2682 * regcprop.c: Likewise.
2683 * reginfo.c: Likewise.
2684 * regmove.c: Likewise.
2685 * reorg.c: Likewise.
2686 * resource.c: Likewise.
2688 * rtlanal.c: Likewise.
2689 * sched-deps.c: Likewise.
2690 * sched-ebb.c: Likewise.
2691 * sched-rgn.c: Likewise.
2692 * sdbout.c: Likewise.
2693 * sel-sched-dump.c: Likewise.
2694 * sel-sched-ir.c: Likewise.
2695 * simplify-rtx.c: Likewise.
2697 * stor-layout.c: Likewise.
2698 * store-motion.c: Likewise.
2699 * targhooks.c: Likewise.
2700 * tree-cfg.c: Likewise.
2701 * tree-cfgcleanup.c: Likewise.
2702 * tree-dump.c: Likewise.
2703 * tree-eh.c: Likewise.
2704 * tree-inline.c: Likewise.
2705 * tree-nomudflap.c: Likewise.
2706 * tree-object-size.c: Likewise.
2707 * tree-optimize.c: Likewise.
2708 * tree-outof-ssa.c: Likewise.
2709 * tree-phinodes.c: Likewise.
2710 * tree-profile.c: Likewise.
2711 * tree-ssa-ccp.c: Likewise.
2712 * tree-ssa-coalesce.c: Likewise.
2713 * tree-ssa-live.c: Likewise.
2714 * tree-ssa-loop-niter.c: Likewise.
2715 * tree-ssa-loop-prefetch.c: Likewise.
2716 * tree-ssa-loop.c: Likewise.
2717 * tree-ssa-structalias.c: Likewise.
2718 * tree-ssa-uninit.c: Likewise.
2719 * tree-ssa.c: Likewise.
2720 * tree-vect-data-refs.c: Likewise.
2721 * tree-vect-loop-manip.c: Likewise.
2722 * tree-vect-loop.c: Likewise.
2723 * tree-vect-patterns.c: Likewise.
2724 * tree-vect-stmts.c: Likewise.
2725 * tree-vrp.c: Likewise.
2726 * varasm.c: Likewise.
2729 * xcoffout.c: Likewise.
2731 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
2733 * gengtype.c (write_field_root): New function.
2734 (write_root): Use it.
2736 2010-07-07 Wei Guozhi <carrot@google.com>
2738 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2739 of lowest bits to lshift/compare): Add a missing line.
2741 2010-07-07 Wei Guozhi <carrot@google.com>
2743 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
2744 of lowest bits to lshift/compare): New.
2746 2010-07-07 Tom Tromey <tromey@redhat.com>
2748 * doc/tm.texi: Update.
2749 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
2751 * target.def (want_debug_pub_sections): New hook.
2752 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
2753 * dwarf2out.c (add_pubname_string): Check
2754 targetm.want_debug_pub_sections.
2755 (add_pubname): Likewise.
2756 (add_pubtype): Likewise.
2758 2010-07-07 Jie Zhang <jie@codesourcery.com>
2760 * genautomata.c (output_automata_list_min_issue_delay_code):
2761 Correctly decompress min_issue_delay.
2763 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
2765 PR rtl-optimization/44404
2766 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
2767 possible, use reg_overlap_mentioned_p instead.
2769 2010-07-07 Duncan Sands <baldrick@free.fr>
2772 * tree.c (build_function_type_skip_args): Copy the original type using
2773 build_distinct_type_copy rather than copy_node.
2775 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
2778 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
2780 (ix86_expand_prologue): Likewise.
2781 (ix86_handle_fndecl_attribute): Likewise.
2782 (ix86_asm_declare_function_name): Likewise.
2783 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2784 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2785 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
2786 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
2787 * doc/extend.texi: Likewise.
2789 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
2792 * config/i386/i386.md (rdrand<mode>): Changed to expand to
2793 retry if the carry flag isn't valid.
2794 (rdrand<mode>_1): New.
2796 2010-07-07 Richard Guenther <rguenther@suse.de>
2799 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
2800 for expanding the constant offset for MEM_REFs.
2802 2010-07-07 Richard Guenther <rguenther@suse.de>
2804 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
2805 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
2806 * gimple.h (is_gimple_operand): Remove.
2807 * gimple.c (is_gimple_operand): Likewise.
2808 (walk_gimple_op): Fix wi->val_only setting for calls.
2809 * tree-cfg.c (verify_gimple_call): Fix argument validation.
2810 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
2811 invalid gimple calls.
2813 2010-07-06 Jan Hubicka <jh@suse.cz>
2815 * lto-cgraph.c (output_cgraph): Add missing declaration.
2817 2010-07-06 Jan Hubicka <jh@suse.cz>
2819 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
2822 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
2824 * doc/gimple.texi (GIMPLE_DEBUG): Document.
2825 * doc/rtl.texi (Debug Information): New node.
2826 (NOTE_INSN_VAR_LOCATION): Document.
2827 (debug_insn): Likewise.
2828 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
2830 2010-07-07 Jan Hubicka <jh@suse.cz>
2832 With parts by Richard Guenther.
2835 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
2836 for functions passed by reference.
2837 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
2838 in memory when passed by reference.
2839 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
2841 * ipa-split.c (split_function): Cleanup way return value is passed;
2842 handle SSA DECL_BY_REFERENCE retvals.
2843 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
2844 DECL_BY_REFERENCE is set.
2845 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
2846 find_what_p_points_to): Handle RESULT_DECL.
2847 * tree-inline.c (declare_return_variable): Get new entry_block argument;
2848 when passing by reference ensure that RESULT_DECL is gimple_val.
2849 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
2850 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
2852 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
2854 PR rtl-optimization/44787
2855 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
2856 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
2858 2010-07-06 Jan Hubicka <jh@suse.cz>
2860 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
2861 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
2862 with body can prevail.
2863 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
2864 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
2865 * cgraph.c (cgraph_get_node_or_alias): New function.
2866 * cgraph.h (cgraph_get_node_or_alias): Declare.
2868 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
2870 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
2872 (ix86_expand_prologue): Likewise.
2873 (ix86_handle_fndecl_attribute): Likewise.
2874 (ix86_asm_declare_function_name): New function for
2875 ASM_DECLARE_FUNCTION_NAME.
2876 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
2877 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
2878 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
2879 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
2880 * doc/extend.texi: Adjust documentation about ms_hook_prologue
2883 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2885 * config/i386/i386.md (immediate_operand): New mode attribute.
2887 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
2888 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
2889 using P mode iterator.
2890 (pro_epilogue_adjust_stack_di_2): Rename from
2891 pro_epilogue_adjust_stack_rex64_2.
2893 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
2895 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2897 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
2898 through gen_mov_insv_1 function pointer.
2899 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
2900 gen_truncxf<mode>2 through gen_truncxf function pointer.
2901 (remainder<mode>3): Ditto.
2902 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
2903 (allocate_stack): Call gen_allocate_stack_worker_64 or
2904 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
2906 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
2909 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
2911 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
2912 operand constraint instead of <r><i>m.
2914 2010-07-06 Richard Guenther <rguenther@suse.de>
2917 * convert.c (convert_to_integer): Watch out for overflowing
2920 2010-07-05 Jan Hubicka <jh@suse.cz>
2922 * lto-streamer.c (write_symbol_vec): Rename to ...
2923 (write_symbol) ... this one; write only symbol given and when
2924 present in cache. Sanity check that what is defined is present
2925 in cgraph/varpool with body/finalized decl.
2926 (write_symbols_of_kind): Remove.
2927 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
2928 pairs to produce symtab.
2929 (produce_asm_for_decls): Update call of produce_symtab; don't do so
2930 when doing WPA streaming.
2932 2010-07-05 Jan Hubicka <jh@suse.cz>
2934 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
2935 function is still available to fold into.
2937 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
2939 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
2940 * function.h (struct_function): Change type of local_decls field
2942 (add_local_decl): New function.
2943 (FOR_EACH_LOCAL_DECL): New macro.
2944 * cfgexpand.c (init_vars_expansion): Adjust for new type of
2946 (estimated_stack_frame_size): Likewise.
2947 (expand_used_vars): Likewise.
2948 * cgraphbuild.c (build_cgraph_edges): Likewise.
2949 * function.c (instantiate_decls_1): Likewise.
2950 * ipa-struct-reorg.c (build_data_structure): Likewise.
2951 * ipa-type-escape.c (analyze_function): Likewise.
2952 * lto-streamer-in.c (input_function): Likewise.
2953 * lto-streamer-out.c (output_function): Likewise.
2954 * tree-ssa-live.c (remove_unused_locals): Likewise.
2955 * tree.c (free_lang_data_in_decl): Likewise.
2956 (find_decls_types_in_node): Likewise.
2957 * omp-low.c (remove_exit_barrier): Likewise.
2958 (expand_omp_taskreg): Likewise.
2959 (list2chain): Rename to...
2960 (vec2chain): ...this. Adjust.
2961 * cgraphunit.c (assemble_thunk): Call add_local_decl.
2962 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
2963 * gimple-low.c (record_vars_into): Likewise.
2964 * tree-inline.c (remap_decls): Likewise.
2965 (declare_return_variable): Likewise.
2966 (declare_inline_vars): Likewise.
2967 (copy_forbidden): Adjust for new type of cfun->local_decls.
2968 (add_local_variables): New function.
2969 (expand_call_inline): Call it.
2970 (tree_function_versioning): Likewise.
2972 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
2974 AVX Programming Reference (June, 2010)
2975 * config/i386/cpuid.h (bit_F16C): New.
2976 (bit_RDRND): Likewise.
2977 (bit_FSGSBASE): Likewise.
2979 * config/i386/i386-builtin-types.def: Add
2980 "DEF_FUNCTION_TYPE (UINT16)", function types for
2981 float16 <-> float conversions and
2982 "DEF_FUNCTION_TYPE (VOID, UINT64)".
2984 * config/i386/i386-c.c (ix86_target_macros_internal): Support
2985 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
2986 OPTION_MASK_ISA_F16C.
2988 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
2989 (OPTION_MASK_ISA_RDRND_SET): Likewise.
2990 (OPTION_MASK_ISA_F16C_SET): Likewise.
2991 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
2992 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
2993 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
2994 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
2995 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
2996 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
2997 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
2998 (override_options): Handle them.
2999 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
3000 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
3001 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
3002 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
3003 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
3004 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
3005 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
3006 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
3007 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
3008 (bdesc_args): Likewise.
3009 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
3010 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
3011 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
3012 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
3013 Handle non-memory store.
3015 * config/i386/i386.h (TARGET_FSGSBASE): New.
3016 (TARGET_RDRND): Likewise.
3017 (TARGET_F12C): Likewise.
3019 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
3020 (UNSPEC_VCVTPS2PH): Likewise.
3021 (UNSPECV_RDFSBASE): Likewise.
3022 (UNSPECV_RDGSBASE): Likewise.
3023 (UNSPECV_WRFSBASE): Likewise.
3024 (UNSPECV_WRGSBASE): Likewise.
3025 (UNSPECV_RDRAND): Likewise.
3026 (rdfsbase<mode>): Likewise.
3027 (rdgsbase<mode>): Likewise.
3028 (wrfsbase<mode>): Likewise.
3029 (wrgsbase<mode>): Likewise.
3030 (rdrand<mode>): Likewise.
3032 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
3034 * config/i386/immintrin.h (_rdrand_u16): New.
3035 (_rdrand_u32): Likewise.
3036 (_readfsbase_u32): Likewise.
3037 (_readfsbase_u64): Likewise.
3038 (_readgsbase_u32): Likewise.
3039 (_readgsbase_u64): Likewise.
3040 (_writefsbase_u32): Likewise.
3041 (_writefsbase_u64): Likewise.
3042 (_writegsbase_u32): Likewise.
3043 (_writegsbase_u64): Likewise.
3044 (_rdrand_u64): Likewise.
3045 (_cvtsh_ss): Likewise.
3046 (_mm_cvtph_ps): Likewise.
3047 (_mm256_cvtph_ps): Likewise.
3048 (_cvtss_sh): Likewise.
3049 (_mm_cvtps_ph): Likewise.
3050 (_mm256_cvtps_ph): Likewise.
3052 * config/i386/sse.md (vcvtph2ps): New.
3053 (*vcvtph2ps_load): Likewise.
3054 (vcvtph2ps256): Likewise.
3055 (vcvtps2ph): Likewise.
3056 (*vcvtps2ph): Likewise.
3057 (*vcvtps2ph_store): Likewise.
3058 (vcvtps2ph256): Likewise.
3060 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
3062 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
3064 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
3067 * genenums.c (main): Output include of insn-constants.h
3068 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
3070 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
3072 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
3073 (override_options): Initialize it.
3074 (ix86_expand_prologue): Use it.
3076 2010-07-05 Jakub Jelinek <jakub@redhat.com>
3078 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
3080 2010-07-05 Anatoly Sokolov <aesok@post.ru>
3082 * double-int.h (fit_double_type): Remove declaration.
3083 * double-int.c (fit_double_type): Remove function.
3084 * tree.h (int_fits_type_p): Adjust prototype.
3085 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
3086 instead of fit_double_type.
3087 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
3088 instead of fit_double_type and build_int_cst_wide.
3089 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
3090 instead of fit_double_type and build_int_cst_wide.
3091 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
3094 2010-07-05 Jan Hubicka <jh@suse.cz>
3096 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
3098 * lto-cgraph.c (referenced_from_other_partition_p,
3099 reachable_from_other_partition_p): Use in_other_partition flags.
3100 (output_node, output_varpool_node): COMDAT nodes always have private
3101 copies and thus are never used from other partition.
3103 2010-07-05 Anatoly Sokolov <aesok@post.ru>
3105 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3106 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
3107 * config/ia64/ia64.c Include reload.h.
3108 (ia64_memory_move_cost): New function.
3109 (TARGET_MEMORY_MOVE_COST): Define.
3110 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
3113 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
3116 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
3117 comments about cost model.
3118 (try_add_cand_for): Add second strategy for choosing initial set
3119 based on original IVs, controlled by ORIGINALP argument.
3120 (get_initial_solution): Add ORIGINALP argument.
3121 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
3122 (find_optimal_iv_set): Try two different strategies for choosing
3123 the IV set, and return the one with lower cost.
3125 2010-07-05 Richard Guenther <rguenther@suse.de>
3127 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
3129 2010-07-05 Richard Guenther <rguenther@suse.de>
3131 * tree.c (reference_alias_ptr_type): New function.
3132 * tree.h (reference_alias_ptr_type): Declare.
3133 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
3134 allow non-TARGET_MEM_REF new refs.
3135 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
3136 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
3137 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
3138 (create_mem_ref): Get alias pointer type. Adjust calls to
3140 (maybe_fold_tmr): Likewise.
3141 * tree-flow.h (create_mem_ref): Adjust prototype.
3143 2010-07-05 Jakub Jelinek <jakub@redhat.com>
3146 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
3147 *from_p is VAR_DECL.
3149 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
3151 * tree.h (build_call_list): Remove.
3152 * tree.c (build_call_list): Remove.
3154 2010-07-05 Richard Guenther <rguenther@suse.de>
3156 * double-int.h (double_int_sub): Declare.
3157 * double-int.c (double_int_sub): New function.
3158 * dwarf2out.c (field_byte_offset): Use it.
3159 * fixed-value.c (do_fixed_add): Likewise.
3160 (do_fixed_multiply): Likewise.
3161 (do_fixed_divide): Likewise.
3162 * tree-predcom.c (add_ref_to_chain): Likewise.
3163 (determine_roots_comp): Likewise.
3164 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3166 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
3168 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
3171 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
3173 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
3174 * arm-modes.def (CC_NOTB): Don't define.
3175 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
3176 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3177 (LTUGEU): New code_iterator.
3178 (cnb, optab): New corresponding code_attrs.
3179 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
3180 to canonical form. Operands 1 and 2 are commutative. Parametrize
3182 (addsi3_carryin_shift_<optab>): Likewise.
3183 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
3184 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
3185 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
3186 (subsi3_compare): Renamed from subsi3_compare0_c.
3187 Change CC_NOTB to CC.
3188 (arm_subsi3_insn): Allow constants for operand 0.
3189 (compare_scc peephole for eq case): New.
3190 (compare_scc splitters): Change CC_NOTB to CC.
3192 2010-07-05 Richard Guenther <rguenther@suse.de>
3194 * tree-ssa-loop-im.c (for_each_index): Do not handle
3196 (gen_lsm_tmp_name): Likewise.
3197 * tree-dump.c (dequeue_and_dump): Likewise.
3198 * tree-pretty-print.c (dump_generic_node): Likewise.
3199 (op_code_prio): Likewise.
3200 (op_symbol_code): Likewise.
3201 * tree.c (staticp): Likewise.
3202 (build1_stat): Likewise.
3203 * tree.h (INDIRECT_REF_P): Likewise.
3204 * fold-const.c (maybe_lvalue_p): Likewise.
3205 (operand_equal_p): Likewise.
3206 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3207 (ao_ref_init_from_vn_reference): Likewise.
3208 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3209 (find_interesting_uses_address): Likewise.
3210 * dwarf2out.c (loc_list_from_tree): Likewise.
3211 * gimplify.c (gimplify_expr): Likewise.
3212 * tree-eh.c (tree_could_trap_p): Likewise.
3213 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3214 * cfgexpand.c (expand_debug_expr): Likewise.
3215 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3216 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3217 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3218 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
3219 * tree-ssa-operands.c (get_expr_operands): Likewise.
3220 * expr.c (safe_from_p): Likewise.
3221 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
3222 * tree-vect-data-refs.c (vect_setup_realignment): Build
3223 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
3224 * tree-vect-stmts.c (vectorizable_load): Likewise.
3225 * tree.def (ALIGN_INDIRECT_REF): Remove.
3227 2010-07-05 Richard Guenther <rguenther@suse.de>
3229 PR tree-optimization/44784
3230 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
3232 (find_or_generate_expression): Fix SCCVN insertion check.
3234 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
3236 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
3237 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
3238 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
3241 2010-07-05 Ira Rosen <irar@il.ibm.com>
3243 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
3244 statements that are not vectorized.
3245 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
3248 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
3251 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
3253 2010-07-05 Richard Guenther <rguenther@suse.de>
3255 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
3256 RESULT_DECLs properly.
3258 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
3260 PR rtl-optimization/44695
3261 * config/i386/i386.md (extract_code): Removed.
3262 (<u>divmodqi4): Likewise.
3264 (udivmodqi4): Likewise.
3265 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
3266 (udivmodhiqi3): Likewise.
3268 2010-07-04 Jan Hubicka <jh@suse.cz>
3270 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
3272 2010-07-04 Jan Hubicka <jh@suse.cz>
3274 * cgraphunit.c (init_cgraph): Only initialize dump file if it
3275 is not already initialized.
3277 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
3279 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
3280 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
3281 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
3282 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
3283 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
3284 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
3285 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
3286 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
3287 (sync_new_nand_optab): Redefine as macros.
3288 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
3290 (direct_optab_index): New enum.
3291 (direct_optab_d): New structure.
3292 (direct_optab): New typedef.
3293 (direct_optab_table): Declare.
3294 (direct_optab_handler, set_direct_optab_handler): New functions.
3295 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
3296 (sync_lock_release_optab): New macros.
3297 * optabs.c (direct_optab_table): New variable.
3298 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
3299 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
3300 cmpstr_optab and cmpstrn_optab.
3301 (emit_conditional_move): Likewise for movcc_optab.
3302 (can_conditionally_move_p): Likewise for movcc_gen_code.
3303 (init_insn_codes): Clear direct_optab_table.
3304 (init_optabs): Don't initialize the new "direct optabs" here.
3305 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
3307 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
3308 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
3309 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
3310 (expand_sync_operation): Likewise other sync_*_optabs.
3311 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
3312 to sync_compare_and_swap_optab.
3313 (expand_sync_lock_test_and_set): Use direct_optab_handler for
3314 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
3315 to the names of both.
3316 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
3317 cmpstr_optab and cmpstrn_optab.
3318 (expand_builtin_lock_release): Likewise sync_lock_release.
3319 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
3320 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
3321 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
3322 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
3323 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
3324 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
3325 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
3326 (sync_lock_test_and_set, sync_lock_release): Delete.
3327 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
3328 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
3329 * genopinit.c (optabs): Use set_direct_optab_handler for the new
3331 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
3332 the "optab" local variable. Use direct_optab_handler for optab and
3333 sync_compare_and_swap_optab.
3334 * reload1.c (reload_in_optab, reload_out_optab): Delete.
3335 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
3336 reload_in_optab and reload_out_optab.
3337 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
3338 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
3339 * config/pa/pa.c (pa_secondary_reload): Likewise.
3340 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
3341 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
3342 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
3343 (VMSupportsCS8_builtin): Likewise.
3345 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
3347 * optabs.h (optab_handlers): Change type of insn_code to int.
3348 (optab_handler, set_optab_handler, convert_optab_handler)
3349 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
3351 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
3352 (init_insn_codes): Zero both the above arrays.
3353 (init_optabs): Never call init_insn_codes first time around.
3355 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
3357 * optabs.h (optab_handler, convert_optab_handler): Turn into
3358 inline functions that return an insn code.
3359 (set_optab_handler, set_convert_optab_handler): New functions.
3360 * builtins.c: Replace optab_handler(X)->insn_code with
3361 optab_handler or set_optab_handler thoughout. Likewise
3362 convert_optab_handler(X)->insn_code with convert_optab_handler
3363 and set_convert_optab_handler.
3364 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
3365 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
3366 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
3367 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
3368 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
3369 config/spu/spu.c: Likewise.
3371 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
3374 * config.gcc (sh*-*-*): Use regular expressions instead of
3375 the 'i' modifier for sed substitutions.
3377 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
3379 * gimple.c (gimple_body): Comments added.
3381 2010-07-04 Richard Guenther <rguenther@suse.de>
3384 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
3387 2010-07-04 Richard Guenther <rguenther@suse.de>
3389 PR tree-optimization/44479
3390 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
3391 extra SSA name copy statements which preserves points-to
3393 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3394 Copy points-to information for all pointers. Properly handle
3396 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
3398 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
3401 2010-07-04 Richard Guenther <rguenther@suse.de>
3404 * tree-inline.c (initialize_inlined_parameters): Do not
3405 re-use pointer-map slot over remap_type call.
3407 2010-07-04 Richard Guenther <rguenther@suse.de>
3409 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
3411 2010-07-04 Richard Guenther <rguenther@suse.de>
3413 PR tree-optimization/44656
3414 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
3415 again after value-replacing in the defintions lhs.
3417 2010-07-04 Ira Rosen <irar@il.ibm.com>
3418 Revital Eres <eres@il.ibm.com>
3420 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
3421 Document new arguments.
3422 * doc/tm.texi: Regenerate.
3423 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
3424 Handle unaligned store.
3425 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
3426 * target.def (builtin_vectorization_cost): Add new arguments.
3427 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
3428 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
3429 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
3430 (vect_vfa_segment_size): Fix indentation.
3431 * tree-vectorizer.h (struct _vect_peel_info): New.
3432 (struct _vect_peel_extended_info): New.
3433 (struct _loop_vec_info): Add new field for peeling hash table and a
3434 macro for its access.
3435 (VECT_MAX_COST): Define.
3436 (vect_get_load_cost): Declare.
3437 (vect_get_store_cost, vect_get_known_peeling_cost,
3438 vect_get_single_scalar_iteraion_cost): Likewise.
3439 (vect_supportable_dr_alignment): Add new argument.
3440 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
3442 (destroy_loop_vec_info): Free peeling hash table.
3443 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
3444 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
3445 vect_analyze_slp. Fix indentation.
3446 (vect_get_single_scalar_iteraion_cost): New function.
3447 (vect_get_known_peeling_cost): Likewise.
3448 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
3449 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
3450 statement. Move outside cost calculation inside unknown peeling case.
3451 Call vect_get_known_peeling_cost for known amount of peeling.
3452 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
3453 reference to the print message of forced alignment.
3454 (vect_verify_datarefs_alignment): Update call to
3455 vect_supportable_dr_alignment.
3456 (vect_get_data_access_cost): New function.
3457 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
3458 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
3459 vect_peeling_hash_choose_best_peeling): Likewise.
3460 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
3461 to store all the accesses in the loop and find best possible access to
3462 align using peeling for known alignment case. For unknown alignment
3463 check if stores are preferred or if peeling is worthy.
3464 (vect_find_same_alignment_drs): Analyze pairs of loads too.
3465 (vect_supportable_dr_alignment): Add new argument and check aligned
3466 accesses according to it.
3467 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
3468 (cost_for_stmt): Call vect_get_stmt_cost.
3469 (vect_model_simple_cost): Likewise.
3470 (vect_model_store_cost): Call vect_get_stmt_cost. Call
3471 vect_get_store_cost to calculate the cost of the statement.
3472 (vect_get_store_cost): New function.
3473 (vect_model_load_cost): Call vect_get_stmt_cost. Call
3474 vect_get_load_cost to calculate the cost of the statement.
3475 (vect_get_load_cost): New function.
3476 (vectorizable_store): Update call to vect_supportable_dr_alignment.
3477 (vectorizable_load): Likewise.
3478 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
3479 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
3480 arguments. Handle unaligned store.
3481 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
3482 (rs6000_builtin_support_vector_misalignment): Return true for word and
3483 double word alignments for VSX.
3484 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
3485 vect_supportable_dr_alignment and builtin_vectorization_cost.
3487 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3490 * config/pa/predicates.md (prefetch_cc_operand): Remove.
3491 (prefetch_nocc_operand): Likewise.
3492 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
3493 (prefetch_20): New insn.
3494 (prefetch_cc): Remove.
3495 (prefetch_nocc): Likewise.
3497 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3499 * expr.c (vector_mode_valid_p): Move to c-common.c.
3500 * expr.h (vector_mode_valid_p): Do not declare here.
3501 * system.h: Poison GCC_EXPR_H in front-ends.
3502 * Makefile.in: Update dependencies.
3504 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3507 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
3509 2010-07-03 Jan Hubicka <jh@suse.cz>
3511 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
3512 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
3513 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
3514 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
3517 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
3519 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
3520 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
3521 TV_IPA_LTO_DECL_OUT): New.
3522 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
3524 2010-07-03 Jan Hubicka <jh@suse.cz>
3526 * ipa-inline.c (update_edge_key): Break out from ...
3527 update_callers_keys): ... here;
3528 (update_callee_keys): Update only the edges from caller to callee.
3529 (update_all_calle_keys): Do what update_calle_keys did.
3530 (decide_inlining_of_small_functions): Avoid recomputing of all
3531 callees when badness increase.
3533 2010-07-03 Jie Zhang <jie@codesourcery.com>
3535 * config/arm/arm.c (arm_attr_length_move_neon): New.
3536 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
3537 * config/arm/neon.md (define_mode_attr V_slen): Remove.
3538 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
3539 to compute length attribute.
3541 2010-07-03 Jie Zhang <jie@codesourcery.com>
3543 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
3544 as predicate for operand 1 and remove its constraint.
3545 * config/arm/predicates.md (vfp_register_operand): New.
3546 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
3547 (*push_fp_multi): Likewise.
3549 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
3551 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
3553 2010-07-03 Jan Hubicka <jh@suse.cz>
3555 * config/i386/i386.c (override_options): Revert accidental commit.
3557 2010-07-02 Le-Chun Wu <lcwu@google.com>
3560 * doc/invoke.texi: Update documentation of -Wshadow.
3562 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
3563 Julian Brown <julian@codesourcery.com>
3564 Sandra Loosemore <sandra@codesourcery.com>
3566 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
3567 comparisons. Adjust to take both operands.
3568 (arm_select_cc_mode): Handle DImode comparisons.
3569 (arm_gen_compare_reg): Generate a scratch register for DImode
3570 comparisons which require one. Use xor for Thumb equality checks.
3571 (arm_const_double_by_immediates): New.
3572 (arm_print_operand): Allow 'Q' and 'R' for constants.
3573 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
3574 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
3575 arm_canonicalize_comparison.
3576 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
3577 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
3579 (arm_const_double_by_immediates): Declare.
3580 * config/arm/constraints.md (Di): New constraint.
3581 * config/arm/predicates.md (arm_immediate_di_operand)
3582 (arm_di_operand, cmpdi_operand): New.
3583 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
3584 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
3585 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
3586 (cstoredi4): Handle non-Cirrus also.
3588 2010-07-02 Julian Brown <julian@codesourcery.com>
3589 Sandra Loosemore <sandra@codesourcery.com>
3592 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
3593 (smax<mode>3): Disable for NEON float modes when
3594 flag_unsafe_math_optimizations is false.
3595 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
3597 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
3598 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
3599 for NEON float modes when flag_unsafe_math_optimizations is false.
3600 (quad_halves_<code>v4sf): Only enable if
3601 flag_unsafe_math_optimizations is true.
3602 * doc/invoke.texi (ARM Options): Add note about floating point
3603 vectorization requiring -funsafe-math-optimizations.
3605 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3606 Julian Brown <julian@codesourcery.com>
3608 * config/arm/neon.md (UNSPEC_VABA): Delete.
3609 (UNSPEC_VABAL): Delete.
3610 (UNSPEC_VABS): Delete.
3611 (UNSPEC_VMUL_N): Delete.
3614 (mul<mode>3add<mode>_neon): Make the pattern named.
3615 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
3616 (neon_vadd<mode>): Replace with define_expand, and move the remaining
3618 (neon_vadd<mode>_unspec): ...to this.
3619 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
3620 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
3621 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
3622 (neon_vaba<mode>): Rewrite in terms of vabd.
3623 (neon_vabal<mode>): Rewrite in terms of vabdl.
3624 (neon_vabs<mode>): Rewrite without unspec.
3625 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
3626 (*arm_subdi3): Likewise.
3627 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
3628 No_op attribute to disable assembly output checks.
3629 * config/arm/arm_neon.h: Regenerated.
3630 * doc/arm-neon-intrinsics.texi: Regenerated.
3632 2010-07-02 Jan Hubicka <jh@suse.cz>
3634 * ipa-split.c (split_function): For aggregate values, set the return
3635 slot optimization bit. When passing DECL_BY_REFERENCE, produce
3636 *<retval> = fncall.part ().
3637 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
3639 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3641 * config/arm/neon.md (UNSPEC_VAND): Delete.
3642 (UNSPEC_VBIC): Delete.
3643 (UNSPEC_VCLZ): Delete.
3644 (UNSPEC_VCNT): Delete.
3645 (UNSPEC_VEOR): Delete.
3646 (UNSPEC_VORN): Delete.
3647 (UNSPEC_VORR): Delete.
3648 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
3650 (anddi3_neon): Likewise.
3651 (orndi3_neon): Likewise.
3652 (bicdi3_neon): Likewise.
3653 (xordi3_neon): Likewise.
3654 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
3655 rid of unspec and handle unused operand.
3656 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
3657 * config/arm/predicates.md (imm_for_neon_logic_operand):
3658 Require TARGET_NEON.
3659 (imm_for_neon_inv_logic_operand): Likewise.
3660 * config/arm/arm.md (define_split for logical_binary_operator):
3661 Disable for NEON registers.
3662 (anddi3): Add new define_expand, and rename the insn. Disable
3663 this insn for NEON, where anddi3_neon now applies.
3664 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
3665 (iordi3): As for anddi3.
3667 * config/arm/neon.ml (Vand): Split DImode variants and mark them
3668 as No_op to disable testing for exact instruction match.
3673 * config/arm/arm_neon.h: Regenerated.
3674 * doc/arm-neon-intrinsics.texi: Regenerated.
3676 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
3678 * expr.h (emit_stack_probe): Declare.
3679 * explow.c (emit_stack_probe): Make global.
3680 (anti_adjust_stack_and_probe): Fix comments.
3681 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3682 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3683 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3684 * config/sparc/sparc.c: Include except.h.
3685 (sparc_emit_probe_stack_range): New function.
3686 (output_probe_stack_range): Likewise.
3687 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
3688 built-in stack checking is enabled.
3689 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
3690 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3691 (probe_stack_range): New insn.
3693 2010-07-02 Richard Guenther <rguenther@suse.de>
3696 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
3697 for argument alignment.
3699 2010-07-02 Jan Hubicka <jh@suse.cz>
3701 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
3702 walk backwards from entry_bb to check only those basic block of header
3703 that might lead to execution of split part.
3704 (consider_split) ... here.
3705 (find_return_bb): Allow assignment in return BB.
3707 (split_function): Fix name of cloned function; take care of updating
3708 return value in return_bb containing move.
3710 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
3713 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
3716 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
3718 * implicit-zee.c (combine_reaching_defs): Fix long lines.
3719 (is_set_with_extension_DI): Delete.
3720 (struct zero_extend_info): New structure.
3721 (add_removable_zero_extend): New function.
3722 (find_removable_zero_extends): Use note_stores to find SETs.
3723 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
3725 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
3727 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
3728 is_miss_rate_acceptable. Pull total_positions computation
3729 out of the loops. Early return if miss_positions exceeds
3730 the acceptable threshold.
3731 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
3732 is_miss_rate_acceptable after renaming of compute_miss_rate.
3734 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
3737 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
3738 of 1000) for miss rate if the address diference is greater than or
3739 equal to the cache line size (the two reference will never hit the
3742 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
3745 * config/arm/arm-modes.def (CC_NOTB): New mode.
3746 * config/arm/arm.c (get_arm_condition_code): Handle it.
3747 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
3748 * config/arm/arm.md (subsi3_compare0_c): New pattern.
3749 (compare_scc): Now a define_and_split. Add a number of extra
3750 splitters before it.
3753 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
3755 (arm_rtx_costs_1): Likewise.
3756 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
3757 * config/arm/arm.md (is_arch6): New attribute.
3758 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
3759 extendqisi2): Tighten the code somewhat, avoiding invalid
3760 RTL to occur in the expander patterns.
3761 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
3762 (thumb1_zero_extendhisi2_v6): Delete.
3763 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
3764 (thumb1_extendhisi2_v6): Delete.
3765 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
3766 (thumb1_extendqisi2_v6): Delete.
3767 (zero_extendhisi2 for register input splitter): New.
3768 (zero_extendqisi2 for register input splitter): New.
3769 (thumb1_extendhisi2 for register input splitter): New.
3770 (extendhisi2 for register input splitter): New.
3771 (extendqisi2 for register input splitter): New.
3772 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
3773 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
3774 and add support for a register alternative requiring a split.
3775 (thumb1_zero_extendqisi2): Likewise.
3776 (arm_zero_extendqisi2): Likewise.
3777 (arm_extendhisi2): Likewise.
3778 (arm_extendqisi2): Likewise.
3780 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3782 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
3783 instead of an unspec.
3784 (neon_expand_vector_init): Likewise.
3785 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
3786 (UNSPEC_VDUP_LANE): Delete.
3787 (UNSPEC VDUP_N): Delete.
3788 (UNSPEC_VGET_HIGH): Delete.
3789 (UNSPEC_VGET_LANE): Delete.
3790 (UNSPEC_VGET_LOW): Delete.
3791 (UNSPEC_VMVN): Delete.
3792 (UNSPEC_VSET_LANE): Delete.
3793 (V_double_vector_mode): New.
3794 (vec_set<mode>_internal): Make code emitted match that for the
3795 corresponding intrinsics.
3796 (vec_setv2di_internal): Likewise.
3797 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
3798 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
3799 (neon_vset_lane<mode>): Combine double and quad patterns and
3800 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
3801 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
3802 (neon_vdup_n<mode>): Rewrite RTL without unspec.
3803 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
3804 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
3805 with neon_vdup_lanev2di, adjusting the pattern from the latter
3806 to be predicable for consistency.
3807 (neon_vdup_lane<mode>_internal): New.
3808 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
3809 to avoid using an unspec.
3810 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
3811 (neon_vdup_lanev2di): Turn into a define_expand.
3812 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
3813 (neon_vget_high<mode>): Replace with....
3814 (neon_vget_highv16qi): New pattern using canonical RTL.
3815 (neon_vget_highv8hi): Likewise.
3816 (neon_vget_highv4si): Likewise.
3817 (neon_vget_highv4sf): Likewise.
3818 (neon_vget_highv2di): Likewise.
3819 (neon_vget_low<mode>): Replace with....
3820 (neon_vget_lowv16qi): New pattern using canonical RTL.
3821 (neon_vget_lowv8hi): Likewise.
3822 (neon_vget_lowv4si): Likewise.
3823 (neon_vget_lowv4sf): Likewise.
3824 (neon_vget_lowv2di): Likewise.
3826 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
3827 test for this emitting vmov.
3828 (Vset_lane): Likewise.
3832 * doc/arm-neon-intrinsics.texi: Regenerated.
3834 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
3836 * config/arm/neon.md (vec_extractv2di): Correct error in register
3837 numbering to reconcile with neon_vget_lanev2di.
3839 2010-07-02 Richard Guenther <rguenther@suse.de>
3841 * tree-ssa-structalias.c (pt_solution_set_var): New function.
3842 * tree-ssa-alias.h (pt_solution_set_var): Declare.
3843 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
3844 points-to information.
3846 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
3848 * config/s390/s390.c (override_options): Adopt prefetching
3849 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
3851 2010-07-02 Jan Hubicka <jh@suse.cz>
3853 * df-problems.c (df_kill_notes): Do not collect dead notes.
3854 (df_set_note): Just call add_reg_note.
3855 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
3856 df_create_unused_note): Do not deal with lists of old notes.
3857 (df_note_bb_compute): Likewise.
3859 2010-07-02 Richard Guenther <rguenther@suse.de>
3861 * tree-ssa-structalias.c (find_func_aliases): Handle
3862 pointer alignment via BIT_AND_EXPR.
3863 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
3865 2010-07-02 Richard Guenther <rguenther@suse.de>
3867 * tree-data-ref.c (initialize_data_dependence_relation): Handle
3868 mismatching number of dimensions properly.
3870 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3873 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
3874 (lo_sum (high ...) ...) patterns generated by earlier passes.
3876 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3878 * doc/install.texi (Prerequisites): Document Perl requirement on
3880 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
3882 2010-07-02 Richard Guenther <rguenther@suse.de>
3885 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
3887 2010-07-02 Jan Hubicka <jh@suse.cz>
3890 * predict.c (predict_paths_for_bb): Handle case when control dependence
3891 BB has only abnormal edges.
3893 2010-07-02 Richard Guenther <rguenther@suse.de>
3895 PR tree-optimization/44748
3896 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
3897 the embedded conversion in MEM_REFs.
3899 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
3901 * reload.c: Include toplev.h.
3902 * recog.c: Likewise.
3903 * Makefile.in: Adjust dependencies.
3905 2010-07-01 Jakub Jelinek <jakub@redhat.com>
3908 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
3909 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
3911 2010-07-01 Richard Guenther <rguenther@suse.de>
3913 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
3916 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
3919 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
3922 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
3925 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3926 Make sure operand 0 dies.
3928 2010-07-01 Richard Guenther <rguenther@suse.de>
3932 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
3933 * doc/generic.texi (References to storage): Document MEM_REF.
3934 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
3935 (print_call_name): Likewise.
3936 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
3937 (build_simple_mem_ref_loc): New function.
3938 (mem_ref_offset): Likewise.
3939 * tree.h (build_simple_mem_ref_loc): Declare.
3940 (build_simple_mem_ref): Define.
3941 (mem_ref_offset): Declare.
3942 * fold-const.c: Include tree-flow.h.
3943 (operand_equal_p): Handle MEM_REF.
3944 (build_fold_addr_expr_with_type_loc): Likewise.
3945 (fold_comparison): Likewise.
3946 (fold_unary_loc): Fold
3947 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
3948 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
3949 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
3950 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
3951 (ptr_deref_may_alias_ref_p_1): Likewise.
3952 (ao_ref_base_alias_set): Properly differentiate base object for
3954 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
3955 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
3956 (indirect_refs_may_alias_p): Likewise.
3957 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
3959 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
3960 (call_may_clobber_ref_p_1): Likewise.
3961 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
3962 * expr.c (expand_assignment): Handle MEM_REF.
3963 (store_expr): Handle MEM_REFs from STRING_CSTs.
3964 (store_field): If expanding a MEM_REF of a non-addressable
3965 decl use bitfield operations.
3966 (get_inner_reference): Handle MEM_REF.
3967 (expand_expr_addr_expr_1): Likewise.
3968 (expand_expr_real_1): Likewise.
3969 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
3970 * alias.c (ao_ref_from_mem): Handle MEM_REF.
3971 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
3972 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
3973 (dr_analyze_indices): Likewise.
3974 (dr_analyze_alias): Likewise.
3975 (object_address_invariant_in_loop_p): Likewise.
3976 * gimplify.c (mark_addressable): Handle MEM_REF.
3977 (gimplify_cond_expr): Build MEM_REFs.
3978 (gimplify_modify_expr_to_memcpy): Likewise.
3979 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
3980 (gimple_fold_indirect_ref): Adjust.
3981 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
3982 * tree.def (MEM_REF): New tree code.
3983 * tree-dfa.c: Include toplev.h.
3984 (get_ref_base_and_extent): Handle MEM_REF.
3985 (get_addr_base_and_unit_offset): New function.
3986 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
3987 * gimple-fold.c (may_propagate_address_into_dereference): Handle
3989 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
3990 accesses if the array has just one dimension. Remove always true
3991 parameter. Do not require type compatibility here.
3992 (maybe_fold_offset_to_component_ref): Remove.
3993 (maybe_fold_stmt_indirect): Remove.
3994 (maybe_fold_reference): Remove INDIRECT_REF handling.
3995 Fold back to non-MEM_REF.
3996 (maybe_fold_offset_to_address): Simplify. Deal with type
3998 (maybe_fold_reference): Likewise.
3999 (maybe_fold_stmt_addition): Likewise. Also handle
4000 &ARRAY + I in addition to &ARRAY[0] + I.
4001 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
4002 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
4003 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
4004 * tree-ssa.c (useless_type_conversion_p): Make most pointer
4005 conversions useless.
4006 (warn_uninitialized_var): Handle MEM_REF.
4007 (maybe_rewrite_mem_ref_base): New function.
4008 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
4010 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
4011 INDIRECT_REF handling.
4012 (copy_tree_body_r): Handle MEM_REF.
4013 * gimple.c (is_gimple_addressable): Adjust.
4014 (is_gimple_address): Likewise.
4015 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
4016 invariant base are invariant.
4017 (is_gimple_min_lval): Adjust.
4018 (is_gimple_mem_ref_addr): New function.
4019 (get_base_address): Handle MEM_REF.
4020 (count_ptr_derefs): Likewise.
4021 (get_base_loadstore): Likewise.
4022 * gimple.h (is_gimple_mem_ref_addr): Declare.
4023 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
4024 * tree-cfg.c (verify_address): New function, split out from ...
4025 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
4026 the address operand of MEM_REFs. Verify MEM_REFs. Reject
4028 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
4029 INDIRECT_REF. Allow conversions.
4030 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
4031 a register does not change its size.
4032 (verify_types_in_gimple_reference): Verify MEM_REF.
4033 (verify_gimple_assign_single): Disallow INDIRECT_REF.
4035 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
4037 (mark_address_taken): Handle MEM_REF.
4038 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
4039 (get_asm_expr_operands): Pass opf_not_non_addressable.
4040 (get_expr_operands): Handle opf_[not_]non_addressable.
4041 Handle MEM_REF. Remove INDIRECT_REF handling.
4042 * tree-vrp.c (check_array_ref): Handle MEM_REF.
4043 (search_for_addr_array): Likewise.
4044 (check_array_bounds): Likewise.
4045 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
4046 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
4047 (ref_always_accessed_p): Likewise.
4048 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
4049 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
4051 * cgraphbuild.c (mark_load): Properly check for NULL result
4052 from get_base_address.
4053 (mark_store): Likewise.
4054 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
4055 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
4056 handling for MEM_REF.
4057 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
4058 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
4059 * builtins.c (stabilize_va_list_loc): Use the function ABI
4060 valist type if we couldn't canonicalize the argument type.
4061 Always dereference with the canonical va-list type.
4062 (maybe_emit_free_warning): Handle MEM_REF.
4063 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
4065 * builtins.c (fold_builtin_memory_op): Use ref-all types
4066 for all memcpy foldings.
4067 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
4068 (build_outer_var_ref): Likewise.
4069 (scan_omp_1_op): Likewise.
4070 (lower_rec_input_clauses): Likewise.
4071 (lower_lastprivate_clauses): Likewise.
4072 (lower_reduction_clauses): Likewise.
4073 (lower_copyprivate_clauses): Likewise.
4074 (expand_omp_atomic_pipeline): Likewise.
4075 (expand_omp_atomic_mutex): Likewise.
4076 (create_task_copyfn): Likewise.
4077 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
4078 Remove old union trick. Initialize constant offsets.
4079 (ao_ref_init_from_vn_reference): Likewise. Do not handle
4080 INDIRECT_REF. Init base_alias_set properly.
4081 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
4082 (vn_reference_fold_indirect): Adjust for MEM_REFs.
4083 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
4085 (may_insert): Remove.
4086 (visit_reference_op_load): Do not test may_insert.
4087 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
4088 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
4089 a field to store the constant offset this op applies.
4090 (run_scc_vn): Adjust prototype.
4091 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
4092 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
4093 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
4094 bother about volatile qualifiers on pointers.
4095 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
4096 * tree-ssa-loop-ivopts.c
4097 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
4098 (strip_offset_1): Likewise.
4099 (find_interesting_uses_address): Replace INDIRECT_REF handling with
4101 (get_computation_cost_at): Likewise.
4102 * ipa-pure-const.c (check_op): Handle MEM_REF.
4103 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
4104 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
4106 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
4107 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
4108 (eliminate_local_variables_1): Likewise.
4109 (create_call_for_reduction_1): Likewise.
4110 (create_loads_for_reductions): Likewise.
4111 (create_loads_and_stores_for_name): Likewise.
4112 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
4113 (ssa_accessed_in_tree): Handle MEM_REF.
4114 (ssa_accessed_in_assign_rhs): Likewise.
4115 (update_type_size): Likewise.
4116 (analyze_accesses_for_call_stmt): Likewise.
4117 (analyze_accesses_for_assign_stmt): Likewise.
4118 (transform_access_sites): Likewise.
4119 (transform_allocation_sites): Likewise.
4120 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
4121 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4122 not handle INDIRECT_REF.
4123 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
4124 (cond_store_replacement): Likewise.
4125 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
4126 MEM_REF, no not handle INDIRECT_REFs.
4127 (insert_into_preds_of_block): Properly initialize avail.
4128 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
4129 for ARRAY_REFs. Properly handle reference lookups that
4130 require a bit re-interpretation.
4131 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
4132 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
4133 (build_ref_for_offset_1): Remove.
4134 (build_ref_for_offset): Build MEM_REFs.
4135 (gate_intra_sra): Disable for now.
4136 (sra_ipa_modify_expr): Handle MEM_REF.
4137 (ipa_early_sra_gate): Disable for now.
4138 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
4140 (disqualify_base_of_expr): Likewise.
4141 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
4143 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
4144 Use mem_ref_offset. Remove bogus folding.
4145 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
4146 (make_fancy_name_1): Add support for MEM_REF.
4147 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
4148 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
4149 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
4150 (compute_complex_ancestor_jump_func): Likewise.
4151 (ipa_analyze_virtual_call_uses): Likewise.
4152 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
4153 INDIRECT_REF folding with more generalized MEM_REF folding.
4154 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
4155 (forward_propagate_addr_into_variable_array_index): Also handle
4156 &ARRAY + I in addition to &ARRAY[0] + I.
4157 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
4158 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
4159 creates assignments with overlap.
4160 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
4161 (get_frame_field): Likewise.
4162 (get_nonlocal_debug_decl): Likewise.
4163 (convert_nonlocal_reference_op): Likewise.
4164 (struct nesting_info): Add mem_refs pointer-set.
4165 (create_nesting_tree): Allocate it.
4166 (convert_local_reference_op): Insert to be folded mem-refs.
4167 (fold_mem_refs): New function.
4168 (finalize_nesting_tree_1): Perform defered folding of mem-refs
4169 (free_nesting_tree): Free the pointer-set.
4170 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
4171 (vectorizable_load): Likewise.
4172 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
4173 (propagate_with_phi): Likewise.
4174 * tree-object-size.c (addr_object_size): Handle MEM_REFs
4175 instead of INDIRECT_REFs.
4176 (compute_object_offset): Handle MEM_REF.
4177 (plus_stmt_object_size): Handle MEM_REF.
4178 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
4180 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
4181 (symbol_marked_for_renaming): Likewise.
4182 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
4183 (fold-const.o): Add $(TREE_FLOW_H).
4184 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
4185 (find_func_clobbers): Likewise.
4186 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
4187 (decompose_access): Likewise.
4188 (replace_field_acc): Likewise.
4189 (replace_field_access_stmt): Likewise.
4190 (insert_new_var_in_stmt): Likewise.
4191 (get_stmt_accesses): Likewise.
4192 (reorg_structs_drive): Disable.
4193 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
4194 (ix86_canonical_va_list_type): Likewise.
4196 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
4199 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
4200 * target.def (struct gcc_target): Replace enum reg_class with
4201 reg_class_t in hook argument / return types.
4202 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
4203 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
4204 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4205 * targhooks.h (default_branch_target_register_class): Likewise.
4206 (default_ira_cover_classes, default_secondary_reload): Likewise.
4207 (default_memory_move_cost, default_register_move_cost): Likewise.
4208 * targhooks.c (default_branch_target_register_class): Likewise.
4209 (default_ira_cover_classes, default_secondary_reload): Likewise.
4210 (default_memory_move_cost, default_register_move_cost): Likewise.
4211 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
4212 * bt-load.c (branch_target_load_optimize): Likewise.
4213 * ira.c (setup_cover_and_important_classes): Likewise.
4214 * ira-costs.c (copy_cost): Likewise.
4215 * reload1.c (emit_input_reload_insns): Likewise.
4216 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4217 * config/frv/frv.c (frv_secondary_reload): Likewise.
4218 * config/s390/s390.c (s390_secondary_reload): Likewise.
4219 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
4220 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
4221 (ix86_register_move_cost): Likewise.
4222 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
4223 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
4224 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
4225 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
4226 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
4227 (rs6000_ira_cover_classes): Likewise.
4228 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
4229 * config/picochip/picochip-protos.h (picochip_secondary_reload):
4231 * config/pa/pa.c (pa_secondary_reload): Likewise.
4232 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
4233 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
4234 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
4235 * doc/tm.texi: Regenerate.
4237 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
4240 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
4242 (build_alias_set_optimal_p): Likewise.
4243 (build_base_obj_set_for_drs): Likewise.
4245 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
4247 * target.def: Remove comment about licensing problems of function
4250 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
4251 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
4252 * doc/tm.texi: Regenerate.
4254 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
4255 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
4257 * target.def (enum_va_list_p): Use DEFHOOK.
4258 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
4259 Rename ptype to ptree.
4260 * doc/tm.texi: Regenerate.
4262 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
4263 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
4264 * doc/tm.texi: Regenerate.
4266 * target.def (memory_move_cost): Use DEFHOOK.
4267 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
4268 Rename regclass AKA class to rclass.
4269 * doc/tm.texi: Regenerate.
4271 * target.def (pragma_parse): Use DEFHOOK.
4272 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
4273 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
4274 * doc/tm.texi: Regenerate.
4276 * target.def (pass_by_reference): Use DEFHOOK.
4277 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
4278 * doc/tm.texi: Regenerate.
4280 * target.def (resolve_overloaded_builtin): Rename params to arglist.
4282 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
4283 * doc/tm.texi: Regenerate.
4285 * target.def (return_pops_args): Use DEFHOOK.
4286 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
4287 Rename stack-size to size.
4288 * doc/tm.texi: Regenerate.
4290 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
4291 last-sched_cycle to last_clock, cur_cycle to clock.
4292 * doc/tm.texi.in: Use @hook.
4293 * doc/tm.texi: Regenerate.
4295 * target.def (print_operand, print_operand_address): Update comment.
4296 (print_operand_punct_valid_p): Likewise.
4298 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4300 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
4302 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
4303 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
4305 * regrename.c: Do not include toplev.h. Include rtl-error.h.
4306 * rtl-error.c: Likewise.
4307 * reload.c: Likewise.
4308 * recog.c: Likewise.
4309 * sel-sched.c: Likewise.
4310 * function.c: Likewise.
4311 * reg-stack.c: Likewise.
4312 * cfgrtl.c: Likewise.
4313 * reload1.c: Likewise.
4314 * final.c: Include rtl-error.
4315 * Makefile.in: Adjust dependencies.
4317 2010-06-30 Jan Hubicka <jh@suse.cz>
4319 PR middle-end/PR44706
4320 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
4321 to return the value.
4323 2010-06-30 Michael Matz <matz@suse.de>
4326 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
4327 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
4328 a gimple reg, attach the original VDEF to the last store in the
4331 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
4334 * config/darwin.c (darwin_override_options): Use renamed
4335 targetm.asm_out.emit_unwind_label.
4337 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
4339 PR tree-optimization/39799
4340 * tree-inline.c (remap_ssa_name): Initialize variable only if
4341 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4343 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
4345 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
4347 2010-06-30 Richard Guenther <rguenther@suse.de>
4350 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
4351 against oscillation with reverse peephole2.
4353 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
4356 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4359 2010-06-30 Nick Clifton <nickc@redhat.com>
4361 * config/rx/rx-modes.def: New file.
4362 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
4363 (CC_REGNUM): Define.
4364 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
4366 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
4367 (SELECT_CC_MODE): Define.
4368 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
4369 (reg:CC CC_REG) instead of (cc0).
4370 (attr "cc"): Delete.
4371 (cbranchsi4): Do not split compare and branch here. Instead move
4373 (cbranchsi4_<code>): ... here. New patterns.
4374 (cmpsi): Call rx-compare_redundant to find out if it is necessary
4375 to emit the compare instruction.
4376 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
4378 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
4379 FIRST_PSEUDO_REGNUM.
4380 (rx_expand_prologue, rx_expand_epilogue): Likewise.
4381 (rx_notice_update_cc): Delete.
4382 (rx_cc_modes_compatible): New function.
4383 (flags_needed_for_conditional): New function.
4384 (flags_from_mode): New function.
4385 (rx_compare_redundant): New function - scans backwards through
4386 insn list to find out if condition flags are already set correctly.
4387 (TARGET_CC_MODES_COMPATIBLE): Define.
4388 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
4390 * config/rx/rx.h (BRANCH_COST): Define.
4391 (REGISTER_MOVE_COST): Define.
4392 * config/rx/predicates (rx_source_operand): Allow all constant types.
4393 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
4394 (tstsi4): New pattern.
4395 * config/rx/rx.c (rx_memory_move_cost): Define.
4396 (TARGET_MEMORY_MOVE_COST): Define.
4398 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4400 * tree.h (block_may_fallthru): Declare here.
4401 * tree-flow.h (block_may_fallthru): Do not declare here.
4402 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
4404 * Makefile.in (c-typeck.o): Update dependencies.
4406 2010-06-30 Jakub Jelinek <jakub@redhat.com>
4409 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
4410 * cselib.c (cfa_base_preserved_regno): New static variable.
4411 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
4412 of REGNO (cfa_base_preserved_val->locs->loc).
4413 (cselib_preserve_cfa_base_value): Add regno argument, set
4414 cfa_base_preserved_regno to it.
4415 (cselib_invalidate_regno): Allow removal of registers other than
4416 cfa_base_preserved_regno from cfa_base_preserved_val.
4417 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
4418 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
4419 of MEM addresses, if not on LHS.
4420 (reverse_op): Don't add reverse ops for cfa_base_rtx.
4421 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
4423 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
4425 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
4427 (peep2_buf_position): New static function.
4428 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
4429 peephole2_optimize): Use it.
4430 (peep2_attempt, peep2_update_life): New static functions, broken out
4431 of peephole2_optimize.
4432 (peep2_fill_buffer): New static function.
4433 (peephole2_optimize): Change the main loop to try to fill the buffer
4434 with the maximum number of insns before matching them against
4435 peepholes. Use a forward scan. Remove special case for targets with
4436 conditional execution.
4437 * genrecog.c (change_state): Delete dead code.
4438 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
4439 Rewrite so as not to expect the second insn to have had a peephole
4442 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4444 * genhooks.c (emit_findices): Cast field precision to int.
4445 (emit_documentation): Likewise.
4447 2010-06-29 Jakub Jelinek <jakub@redhat.com>
4449 PR tree-optimization/43801
4450 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
4451 if old_decl was DECL_ONE_ONLY.
4454 * dwarf2out.c (add_accessibility_attribute): New function.
4455 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
4456 instead of adding DW_AT_accessibility manually.
4457 (gen_enumeration_type_die, gen_struct_or_union_type_die,
4458 gen_typedef_die): Use it.
4460 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4462 * vmsdbgout.c (full_name): Just output the file name if not native.
4464 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4466 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
4467 (funcnam_table): New static table.
4468 (funcnum_table): New static table.
4469 (write_rtnbeg): Write value saved in funcnum_table.
4470 (write_rtnend): Write value saved in funcnum_table.
4471 (vmsdbgout_begin_function): Save current function info in
4472 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
4473 (vmsdbgout_finish): Iterate over funcnum_table.
4475 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4477 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
4478 (vmsdbgout_type_decl): Declare
4479 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
4480 (FUNC_EPILOGUE_LABEL): New macro
4481 (vmsdbgout_begin_epilogue): New function.
4482 (vmsdbgout_type_decl): New function.
4484 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4486 * vmsdbg.h: Update copyright.
4488 2010-06-29 Douglas B Rupp <rupp@gnat.com>
4490 * vmsdbg.h (DST_K_TBG): New DST constant.
4491 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
4492 (write_modbeg): Cast module_language to avoid warning.
4493 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
4495 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4498 * target.def, doc/tm.texi.in, genhooks.c: New files.
4499 * target.h: Instead of defining individual hook members,
4500 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
4502 * target-def.h: Instead of defining individual hook initializers,
4503 include target-hooks-def.h.
4504 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
4505 targetm.live_on_entry -> targetm.extra_live_on_entry
4506 targetm.sched.md_finish ->targetm.sched.finish
4507 targetm.sched.md_init -> targetm.sched.init
4508 targetm.sched.md_init_global -> targetm.sched.init_global
4509 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
4510 targetm.asm_out.except_table_label ->
4511 targetm.asm_out.emit_except_table_label
4512 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
4513 targetm.target_help -> targetm.help
4514 targetm.vectorize.builtin_support_vector_misalignment ->
4515 targetm.vectorize.support_vector_misalignment
4516 targetm.file_start_app_off -> targetm.asm_file_start_app_off
4517 targetm.file_start_file_directive ->
4518 targetm.asm_file_start_file_directive
4519 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
4520 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
4521 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
4522 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
4523 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
4524 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
4525 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
4526 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
4527 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
4528 * Makefile.in (TARGET_H): Depend on target.def.
4529 (TARGET_DEF_H): Depend on target-hooks-def.h.
4530 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
4531 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
4532 * doc/tm.texi: Regenerate.
4534 * Makefile.in (s-tm-texi): Remove stray tab / rule.
4536 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
4537 (targetm.sched.init): Likewise.
4539 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4542 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
4543 (function_arg_advance_32): Const-ify TYPE parameter.
4544 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
4545 (ix86_function_arg_advance): Change type of NAMED to bool.
4546 (function_arg_32): Const-ify CUM and TYPE parameters.
4547 (function_arg_64): Likewise. Change type of NAMED to bool.
4548 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
4550 (ix86_function_arg): Change type of NAMED to bool.
4551 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
4552 last argument as a bool.
4554 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4556 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
4557 (OVERRIDE_OPTIONS): Add note of obsolescence.
4558 Replace references with references to TARGET_OPTION_OVERRIDE.
4559 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
4561 * targhooks.c (default_target_option_override): New function.
4562 * targhooks.h (default_target_option_override): Declare.
4563 * target.h (struct gcc_target): Add override member to
4564 target_option member.
4565 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
4566 targetm.target_option.override call.
4567 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
4568 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
4570 2010-06-29 Jan Hubicka <jh@suse.cz>
4572 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
4574 2010-06-29 Jan Hubicka <jh@suse.cz>
4576 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
4578 (rebuild_frequencies): New function.
4579 * predict.h (rebuild_frequencies): Declare.
4580 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
4581 entry block and edge reaching new_entry.
4582 (tree_function_versioning): When doing partial cloning, rebuild
4583 frequencies when done.
4584 * passes.c (execute_function_todo): Use rebild_frequencies.
4586 2010-06-29 Richard Guenther <rguenther@suse.de>
4588 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
4589 * tree-flow.h (enum noalias_state): Remove.
4590 (struct var_ann_d): Remove noalias_state member.
4592 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4595 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
4596 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
4597 (maddhidi4): Likewise.
4599 Revert parts of the change for PR25130.
4600 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4603 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4605 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
4606 targetm.calls.function_incoming_arg, and
4607 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
4608 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
4609 * target.h (struct gcc_target): Add function_arg_advance,
4610 function_arg, and function_incoming_arg fields.
4611 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
4612 (TARGET_FUNCTION_INCOMING_ARG): Define.
4613 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
4614 and TARGET_FUNCTION_INCOMING_ARG.
4615 * targhooks.h (default_function_arg_advance): Declare.
4616 (default_function_arg, default_function_incoming_arg): Declare.
4617 * targhooks.c (default_function_arg_advance): New function.
4618 (default_function_arg, default_function_incoming_arg): New function.
4619 * config/i386/i386.c (function_arg_advance): Rename to...
4620 (ix86_function_arg_advance): ...this. Make static.
4621 (function_arg): Rename to...
4622 (ix86_function_arg): ...this. Make static.
4623 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4624 (TARGET_FUNCTION_ARG): Define.
4625 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
4626 (FUNCTION_ARG): Delete.
4627 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
4628 (function_arg): Delete prototype.
4630 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4632 * reginfo.c (init_reg_sets_1): Adjust comments.
4633 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
4634 * calls.c (prepare_call_address): Likewise.
4635 (emit_call_1): Use targetm.calls.return_pops_args.
4636 (expand_call): Likewise.
4637 * function.c (assign_parms): Likewise.
4638 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
4639 * target.h (struct gcc_target) [struct calls]: Add
4640 return_pops_args field.
4641 * targhooks.h (default_return_pops_args): Declare.
4642 * targhooks.c (default_return_pops_args): Define.
4643 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
4644 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
4645 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
4646 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
4648 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
4649 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
4650 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
4651 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
4652 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
4653 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
4654 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
4655 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
4656 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
4657 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
4658 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
4659 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
4660 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
4661 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
4662 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
4663 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
4664 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
4665 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
4666 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
4667 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
4668 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
4669 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
4670 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
4671 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
4672 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
4673 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
4674 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
4675 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
4676 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
4677 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
4678 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
4679 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
4680 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
4681 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
4682 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
4683 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
4684 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
4685 * config/i386/i386.c (ix86_return_pops_args): Make static.
4687 (TARGET_RETURN_POPS_ARGS): Define.
4688 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
4689 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
4690 (TARGET_RETURN_POPS_ARGS): Define.
4691 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
4692 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
4693 (TARGET_RETURN_POPS_ARGS): Define.
4695 2010-06-29 Richard Guenther <rguenther@suse.de>
4698 * tree-inline.c (initialize_inlined_parameters): Make sure
4699 to remap the inlined parameter variable substitutions types.
4701 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
4703 PR rtl-optimization/44659
4704 * combine.c (make_compound_operation) <SUBREG>: Do not return the
4705 result of force_to_mode if it partially re-expanded the compound.
4707 2010-06-28 Jan Hubicka <jh@suse.cz>
4710 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
4713 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4715 * double-int.h (force_fit_type_double): Remove declaration.
4716 * double-int.c (force_fit_type_double): Move to tree.c.
4717 * tree.h (force_fit_type_double): Declare.
4718 * tree.h (force_fit_type_double): Moved from double-int.c. Use
4719 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
4720 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
4721 * convert.c (convert_to_pointer): Adjust call to
4722 force_fit_type_double.
4723 * tree-vrp.c (extract_range_from_assert,
4724 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
4725 * fold-const.c: Update comment.
4726 (int_const_binop, fold_convert_const_int_from_int,
4727 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
4728 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
4729 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
4730 round_up_loc): Adjust call to force_fit_type_double.
4732 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4734 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
4736 2010-06-28 Martin Jambor <mjambor@suse.cz>
4738 * tree-sra.c (convert_callers): New parameter, change fndecls of
4740 (modify_function): Pass the old decl to convert_callers.
4742 2010-06-28 Martin Jambor <mjambor@suse.cz>
4744 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
4745 ipa_check_create_node_params and ipa_initialize_node_params with
4746 checking asserts they are not necessary.
4748 2010-06-28 Jan Hubicka <jh@suse.cz>
4750 PR tree-optimization/44687
4751 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
4753 2010-06-28 Martin Jambor <mjambor@suse.cz>
4756 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
4757 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
4758 instead of BINFO_BASE_BINFO.
4760 2010-06-28 Michael Matz <matz@suse.de>
4763 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
4764 proper VDEF chain for intermediate stores in the sequence.
4766 2010-06-28 Jan Hubicka <jh@suse.cz>
4768 PR tree-optimization/44357
4769 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
4770 uninlinable functions.
4772 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4774 * config.gcc (powerpc*-*-*): Handle titan.
4775 * config/rs6000/rs6000.c (titan_cost): New costs.
4776 (rs6000_override_options): Add "titan" to processor_target_table.
4777 Add Titan to branch alignment logic.
4778 Correctly set rs6000_cost for titan.
4779 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
4780 * config/rs6000/titan.md: New file.
4781 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
4783 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
4785 * tree-browser.c (TB_history_stack): Convert to a VEC.
4786 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
4787 (TB_history_prev): Likewise.
4789 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
4791 * vec.h (vec_heap_free): Add parentheses around free.
4793 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4795 * system.h: Poison GCC_EXCEPT_H for front-end files.
4797 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
4799 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
4800 Define to NULL by default.
4801 * except.h: Define GCC_EXCEPT_H.
4802 (doing_eh): Remove prototype.
4803 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
4804 (lang_protect_cleanup_actions): Remove.
4805 * except.c (lang_protect_cleanup_actions): Remove.
4807 (gen_eh_region): Don't check doing_eh here.
4808 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
4809 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
4810 instead of lang_protect_cleanup_actions.
4811 * omp-low.c (maybe_catch_exception): Likewise.
4812 * Makefile.in: Update dependencies.
4814 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
4816 * cgraph.h (struct varpool_node): new used_from_object_file flag.
4817 (struct cgraph_local_info): new used_from_object_file flag.
4818 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
4819 (cgraph_clone_node): initialize used_from_object_file.
4820 (cgraph_create_virtual_clone): initialize used_from_object_file.
4821 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
4822 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
4823 when compiling with -fwhole-program.
4824 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
4826 * ipa.c (function_and_variable_visibility): Set externally_visible
4827 flag of varpool_node if used_from_object_file flag is set.
4828 (cgraph_externally_visible_p): check used_from_object_file flag.
4829 * doc/invoke.texi (-fwhole-program option): Change description of
4830 externally_visible attribute accordingly.
4831 * doc/extend.texi (externally_visible): Ditto.
4833 2010-06-27 Jan Hubicka <jh@suse.cz>
4835 * params.def (max-inline-insns-auto): Default to 40.
4836 * doc/invoke.texi (max-inline-insns-auto): Document the change.
4838 2010-06-27 Jan Hubicka <jh@suse.cz>
4842 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
4844 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
4845 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
4847 2010-06-27 Anatoly Sokolov <aesok@post.ru>
4849 * target.h (struct gcc_target): Add register_move_cost field.
4850 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
4851 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
4852 * targhooks.c (default_register_move_cost): New function.
4853 * targhooks.h (default_register_move_cost): Declare function.
4854 * defaults.h (REGISTER_MOVE_COST): Delete.
4855 * ira-int.h (ira_register_move_cost): Update comment.
4856 * ira.c (ira_register_move_cost): Update comment.
4857 * reload.h (register_move_cost): Declare.
4858 * reginfo.c (register_move_cost): New function.
4859 (move_cost): Update comment.
4860 (init_move_cost, memory_move_secondary_cost): Replace
4861 REGISTER_MOVE_COST with register_move_cost.
4862 * postreload.c (reload_cse_simplify_set): (Ditto.).
4863 * reload.c (find_valid_class, find_reloads): (Ditto.).
4864 * reload1.c (choose_reload_regs): (Ditto.).
4865 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
4866 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
4867 * doc/md.texi (can_create_pseudo_p): Update documentation.
4869 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4870 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4871 * config/i386/i386.h (ix86_memory_move_cost): Make static.
4872 (TARGET_MEMORY_MOVE_COST): Define.
4874 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4875 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
4876 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
4877 (TARGET_MEMORY_MOVE_COST): Define.
4879 2010-06-27 Richard Guenther <rguenther@suse.de>
4881 PR tree-optimization/44683
4882 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
4883 false edge from the inverted condition.
4885 2010-06-27 Richard Guenther <rguenther@suse.de>
4888 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
4889 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
4890 for register LHS. Or non-store assignments.
4892 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
4894 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
4895 (sparc_emit_set_const64): Likewise. Remove disabled code.
4896 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
4897 (sparc_emit_set_const64): Likewise.
4899 2010-06-26 Catherine Moore <clm@codesourcery.com>
4901 * config/mips/mips.md (alu_type): New attribute.
4902 (type): Infer type from alu_type.
4903 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
4904 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
4905 *subsi3_extended, negsi2, negdi2, *low<mode>,
4906 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
4907 xor<mode>3, *nor<mode>3,
4908 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
4909 *zero_extendhi_truncqi): Set alu_type instead of type.
4911 2010-06-26 Douglas B Rupp <rupp@gnat.com>
4913 * config/alpha/alpha.c (alpha_need_linkage): Adjust
4914 splay_tree_new_ggc call.
4915 (alpha_use_linkage): Likewise.
4917 2010-06-26 Joseph Myers <joseph@codesourcery.com>
4919 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
4920 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
4921 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
4922 (static_specs): Remove switches_need_spaces.
4923 (process_command, do_self_spec): Hardcode handling "-o" instead of
4924 checking switches_need_spaces.
4925 * system.h (SWITCHES_NEED_SPACES): Poison.
4927 2010-06-26 Richard Guenther <rguenther@suse.de>
4929 PR tree-optimization/44393
4930 * tree-loop-distribution.c (generate_loops_for_partition): Fix
4931 stmt removal and VOP renaming.
4932 (generate_memset_zero): Remove redundant stmt updating.
4933 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
4934 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
4936 2010-06-26 Jan Hubicka <jh@suse.cz>
4938 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
4939 edges comming from header are equivalent.
4940 (visit_bb): Handle PHIs correctly.
4941 * tree-inline.c (copy_phis_for_bb): Be able to copy
4942 PHI from entry edge.
4943 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
4945 2010-06-26 Richard Guenther <rguenther@suse.de>
4948 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
4949 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
4951 2010-06-26 Joseph Myers <joseph@codesourcery.com>
4953 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
4954 add_infile, alloc_switch): New.
4955 (process_command): Remove variable lang_n_infiles. Process
4956 options in a single pass. Use new functions for allocating
4957 infiles and switches arrays. Properly skip operands of
4958 -Xpreprocessor and -Xassembler.
4960 2010-06-26 Jan Hubicka <jh@suse.cz>
4963 * cgraphunit.c (cgraph_function_versioning): Remove wrong
4964 cgraph_make_decl_local call; fix typo copying RTL data.
4966 2010-06-25 DJ Delorie <dj@redhat.com>
4968 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
4969 (m32c_output_aligned_common): Likewise.
4970 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4971 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
4972 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
4973 (m32c_register_pragmas): Register it.
4974 * config/m32c/m32c.c (m32c_get_pragma_address): New.
4975 (m32c_insert_attributes): Set #pragma address decls volatile.
4976 (pragma_entry_eq): New.
4977 (pragma_entry_hash): New.
4978 (m32c_note_pragma_address): New.
4979 (m32c_get_pragma_address): New.
4980 (m32c_output_aligned_common): New.
4981 * doc/extend.texi: Document the new pragma.
4983 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
4985 * config/m32c/predicates.md (m32c_any_operand): Check the code
4986 instead of memory_operand so as to allow matching volatile MEMs.
4987 (m32c_nonimmediate_operand): Likewise.
4988 (mra_operand): Allow volatiles.
4990 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
4993 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
4994 address if the offset is unknown.
4996 2010-06-25 Douglas B Rupp <rupp@gnat.com>
4998 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
4999 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
5000 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
5001 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
5002 to ia64_start_function. Invoke it.
5003 * config/ia64/ia64.c (ia64_start_function): Call new function
5004 dwarf2out_vms_debug_main_pointer.
5006 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
5008 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
5009 statements computing the true predicate.
5011 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
5013 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
5014 to boolean_true_node.
5015 (reset_bb_predicate): New.
5016 (predicate_bbs): Call reset_bb_predicate.
5018 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
5020 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
5021 (tree_if_conversion): Returns true when something has been changed.
5022 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
5025 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
5027 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
5028 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
5029 * tree-if-conv.c: Include dbgcnt.h.
5030 (tree_if_conversion): Use if_conversion_tree to count the number of
5031 if-convertible loops.
5033 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
5035 * common.opt (fprefetch-loop-arrays): Re-define
5036 -fprefetch-loop-arrays as a tri-state option with the initial
5038 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
5039 pass only when flag_prefetch_loop_arrays > 0.
5040 * toplev.c (process_options): Note that, with tri-states,
5041 flag_prefetch_loop_arrays>0 means prefetching is enabled.
5042 * config/i386/i386.c (override_options): Enable prefetching at -O3
5043 for a set of CPUs that sw prefetching is helpful.
5044 (software_prefetching_beneficial_p): New. Return TRUE if software
5045 prefetching is beneficial for the given CPU.
5047 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
5049 PR rtl-optimization/44326
5050 * implicit-zee.c (find_removable_zero_extends): Replace
5051 INSN_P with NONDEBUG_INSN_P.
5053 2010-06-25 Martin Jambor <mjambor@suse.cz>
5055 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
5056 (struct ipa_node_params): Removed the modification_analysis_done flag.
5057 (ipa_is_param_modified): Removed.
5058 (ipa_analyze_node): Declare.
5059 (ipa_compute_jump_functions): Remove declaration.
5060 (ipa_count_arguments): Likewise.
5061 (ipa_detect_param_modifications): Likewise.
5062 (ipa_analyze_params_uses): Likewise.
5063 * ipa-prop.c (struct param_analysis_info): New type.
5064 (visit_store_addr_for_mod_analysis): Removed.
5065 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
5066 moved down in the file.
5067 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
5068 (ipa_count_arguments): Made static.
5069 (mark_modified): New function.
5070 (is_parm_modified_before_call): New function.
5071 (compute_pass_through_member_ptrs): New parameter parms_info, call
5072 is_parm_modified_before_call instead of ipa_is_param_modified.
5073 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
5074 it to compute_pass_through_member_ptrs.
5075 (ipa_compute_jump_functions): New parameter parms_info, pass it to
5076 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
5077 on the callee if it is analyzed. Made static.
5078 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
5079 is_parm_modified_before_call instead of ipa_is_param_modified.
5080 (ipa_analyze_call_uses): New parameter parms_info, pass it to
5081 ipa_analyze_indirect_call_uses.
5082 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
5083 ipa_analyze_call_uses.
5084 (ipa_analyze_params_uses): New parameter parms_info, pass it to
5085 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
5086 (ipa_analyze_node): New function.
5087 (ipa_print_node_params): Do not dump the modified flag.
5088 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
5089 it. Do not stream the modified parameter flag.
5090 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
5091 it. Do not stream the modified parameter flag.
5092 * ipa-cp.c (ipcp_analyze_node): Removed.
5093 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
5094 with only a call to ipa_analyze_node.
5095 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
5096 node with only a call to ipa_analyze_node.
5098 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5100 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
5102 2010-06-25 Jan Hubicka <jh@suse.cz>
5104 * tree-pass.h (pass_split_functions): Declare.
5105 * opts.c (decode_options): Enable function splitting at -O2
5106 * timevar.def (TV_IPA_FNSPLIT): New macro.
5107 * ipa-split.c: New file.
5108 * common.opt (-fpartial-inlining): New flag.
5109 * Makefile.in (ipa-split.o): New object file.
5110 * passes.c (init_optimization_passes): Add ipa-split.
5111 * params.def (partial-inlining-entry-probability): New parameters.
5112 * doc/invoke.texi (-fpartial-inlining): New.
5114 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5117 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
5118 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
5119 (gimplify_expr): Likewise.
5121 2010-06-25 Martin Jambor <mjambor@suse.cz>
5123 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
5124 statements instead of bailing out on them.
5125 (ipa_analyze_indirect_call_uses): Do not require that loads from the
5126 parameter are in the same BB as the condition. Update comments.
5128 2010-06-25 Jakub Jelinek <jakub@redhat.com>
5131 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
5132 true or always false, return NULL_TREE.
5133 (tree_unswitch_single_loop): Optimize conditions even when reaching
5134 max-unswitch-level parameter. If num > 0, optimize first all conditions
5135 using entry checks, then do still reachable block discovery and consider
5136 only conditions in still reachable basic blocks in the loop.
5138 PR tree-optimization/44539
5139 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
5140 the call doesn't have LHS, but has VDEF.
5142 2010-06-25 Joseph Myers <joseph@codesourcery.com>
5144 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
5145 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
5146 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
5147 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
5148 * system.h (MODIFY_TARGET_NAME): Poison.
5150 2010-06-25 Alan Modra <amodra@gmail.com>
5152 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
5153 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
5154 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5155 CMODEL_LARGE as default.
5156 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
5157 (offsettable_ok_by_alignment): Delete.
5158 (rs6000_emit_move): Remove mcmodel=medium optimization.
5160 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
5162 With large parts from Jim Wilson:
5164 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
5165 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
5166 * optabs.c (optab_for_tree_code): Likewise.
5167 (expand_widen_pattern_expr): Likewise.
5168 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
5169 out of execute_optimize_widening_mul.
5170 (convert_plusminus_to_widen): New function.
5171 (execute_optimize_widening_mul): Use the two new functions.
5172 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
5173 Remove code to generate widening multiply-accumulate. Add support
5174 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
5175 * gimple-pretty-print.c (dump_ternary_rhs): New function.
5176 (dump_gimple_assign): Call it when appropriate.
5177 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
5178 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5179 (expand_gimple_stmt_1): Likewise.
5180 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
5181 WIDEN_MULT_MINUS_EXPR.
5182 * tree-ssa-operands.c (get_expr_operands): Likewise.
5183 * tree-inline.c (estimate_operator_cost): Likewise.
5184 * gimple.c (extract_ops_from_tree_1): Renamed from
5185 extract_ops_from_tree. Add new arg for a third operand; fill it.
5186 (gimple_build_assign_stat): Support operations with three operands.
5187 (gimple_build_assign_with_ops_stat): Likewise.
5188 (gimple_assign_set_rhs_from_tree): Likewise.
5189 (gimple_assign_set_rhs_with_ops_1): Renamed from
5190 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
5191 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
5192 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
5193 WIDEN_MULT_MINUS_EXPR.
5194 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
5195 (extract_ops_from_tree_1): Adjust declaration.
5196 (gimple_assign_set_rhs_with_ops_1): Likewise.
5197 (gimple_build_assign_with_ops): Pass NULL for last operand.
5198 (gimple_build_assign_with_ops3): New macro.
5199 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
5200 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
5202 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
5203 (verify_gimple_assign): Call it.
5204 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
5205 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
5206 functions for dealing with three-operand statements.
5207 * tree.c (commutative_ternary_tree_code): New function.
5208 * tree.h (commutative_ternary_tree_code): Declare it.
5209 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
5211 (gimple_assign_nonzero_warnv_p): Likewise.
5212 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
5213 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
5214 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
5215 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
5216 (struct hashtable_expr): New member ternary in the union.
5217 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
5218 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
5219 (iterative_hash_hashable_expr): Likewise.
5220 (print_expr_hash_elt): Handle EXPR_TERNARY.
5221 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
5222 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
5223 statements. Handle GIMPLE_TERNARY_RHS.
5225 2010-06-25 Jan Hubicka <jh@suse.cz>
5227 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
5229 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
5232 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
5233 parameters are not good.
5234 (c_parser_parameter_declaration): Error unknown type name if the type
5235 name can't start declaration specifiers.
5237 2010-06-25 Joseph Myers <joseph@codesourcery.com>
5239 * gcc.c (translate_options): Don't mention +e in comment.
5240 (process_command): Don't handle +e specially.
5242 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
5244 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
5246 * ira-build.c (merge_hard_reg_conflicts): New function.
5247 (create_cap_allocno, copy_info_to_removed_store_destinations,
5248 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
5249 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
5250 (remove_unnecessary_allocnos, remove_low_level_allocnos)
5251 copy_nifo_to_removed_store_destination): Use them.
5252 * ira-lives.c (make_hard_regno_born): New function, split out of
5254 (make_allocno_born): Likewise.
5255 (make_hard_regno_dead): New function, split out of make_regno_dead.
5256 (make_allocno_dead): Likewise.
5257 (inc_register_pressure): New function, split out of set_allocno_live.
5258 (dec_register_pressure): New function, split out of clear_allocno_live.
5259 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
5260 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
5261 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
5262 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
5263 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
5264 mark_pseudo_regno_live.
5265 (process_bb_node_lives): Use mark_pseudo_regno_live,
5266 make_hard_regno_born and make_allocno_dead.
5267 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
5268 set_allocno_live, clear_allocno_live): Delete functions.
5270 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
5271 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
5273 (ira_flattening): Use ira_parent_allocno.
5274 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
5275 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
5277 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
5280 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
5281 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
5282 minmax_set_iter_cond, minmax_set_iter_next,
5283 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
5284 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
5285 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
5286 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
5289 * ira-int.h (struct live_range, live_range_t): Renamed from struct
5290 ira_allocno_live_range and allocno_live_range_t; all uses changed.
5291 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
5294 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
5296 * thumb2.md (thumb2_tlobits_cbranch): Delete.
5297 (peephole2 to convert zero_extract/compare of single bit to
5298 lshift/compare): New.
5300 2010-06-24 Anatoly Sokolov <aesok@post.ru>
5302 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
5303 recursive call and call to 'int_const_binop'.
5304 (build_range_check, fold_cond_expr_with_comparison, unextend,
5305 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
5306 multiple_of_p): Adjust call to const_binop.
5308 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
5310 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
5311 determine size of XFmode operand.
5312 (XFmode extended DFmode push splitter): Ditto.
5313 (XFmode extended SFmode push splitter): Ditto.
5315 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
5318 * config/i386/i386.md (extract_code): New.
5319 (<u>divmodqi4): Likewise.
5320 (divmodhiqi3): Likewise.
5321 (udivmodhiqi3): Likewise.
5322 (<u>divqi3): Remvoved.
5324 2010-06-24 Jakub Jelinek <jakub@redhat.com>
5327 * recog.h (struct recog_data): Add is_asm field.
5328 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
5329 present in constraints of inline-asm operand and memory operand
5330 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
5331 (extract_insn): Initialize recog_data.is_asm.
5332 * doc/md.texi (Constraints): Document operand side-effect rules.
5334 2010-06-24 Andi Kleen <ak@linux.intel.com>
5336 * c-parser.c (c_parser_conditional_expression): Call
5337 warn_for_omitted_condop.
5338 * doc/invoke.texi: Document omitted condop warning.
5340 2010-06-24 Nick Clifton<nickc@redhat.com>
5342 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
5343 insn in the sequence is a jump insn before setting its label.
5345 2010-06-24 Alan Modra <amodra@gmail.com>
5347 * collect2.c (main): Match exactly --version and --help.
5349 2010-06-24 DJ Delorie <dj@redhat.com>
5351 * config/m32c/m32c-pragma.c: Don't include rtl.h.
5353 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
5355 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
5356 using X87MODEF mode iterator.
5357 (pushsf splitter): Macroize splitter using P mode iterator.
5358 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
5361 (*movxf_internal): Rename from *movxf_integer.
5362 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
5363 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
5364 (*movdf_internal): Rename from *movdf_integer.
5365 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
5366 (*movsf_internal): Rename from *movdf_1.
5368 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
5370 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
5371 (const_gimple_seq_node): Removed typedefs.
5373 * gimple.h (gimple_seq_node_d, gimple_seq_node)
5374 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
5376 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
5378 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
5379 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
5380 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
5381 and CODE_FOR_vec_extract_lo_v4df.
5383 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
5384 Changed to define_insn_and_split.
5385 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
5386 (vec_extract_lo_v16hi): Likewise.
5387 (vec_extract_lo_v32qi): Likewise.
5388 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
5389 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
5391 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
5394 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
5395 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
5396 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
5397 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
5398 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
5401 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
5404 * df-core.c (struct df): Rename to df_d.
5405 * df.h (struct df): Likewise.
5406 * dse.h (struct df): Remove forward declaration.
5407 * recog.h (struct insn_data): Rename to:
5408 (struct_insn_data_d). Adjusted all users.
5410 2010-06-23 Arnaud Charlet <charlet@adacore.com
5413 * doc/install.texi: Update requirements to build GNAT.
5415 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
5417 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
5419 (m68k_sched_attr_opx_type): Remove unreachable return.
5420 (m68k_sched_attr_opy_type): Likewise.
5421 (m68k_sched_attr_size): Likewise.
5422 (sched_get_opxy_mem_type): Likewise.
5423 (m68k_sched_attr_op_mem): Likewise.
5425 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
5427 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
5428 new statement and adjust VDEF only if necessary. Remove superfluous
5429 call to maybe_clean_or_replace_eh_stmt.
5430 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
5432 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
5433 * tree-inline.c (copy_bb): ...and not there.
5435 2010-06-22 Cary Coutant <ccoutant@google.com>
5437 * dwarf2out.c (is_nested_in_subprogram): New function.
5438 (should_move_die_to_comdat): Use it.
5439 (copy_ancestor_tree): Don't mark DIEs here.
5440 (copy_decls_walk): Start walk from root of newly-added tree;
5441 mark DIEs here instead.
5443 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
5445 * config/i386/i386.md (unit): Also check sseishft1.
5447 2010-06-22 Jan Hubicka <jh@suse.cz>
5449 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
5452 2010-06-22 Jan Hubicka <jh@suse.cz>
5454 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
5455 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
5456 Return true if something changed.
5457 * df.h (df_confluence_function_n): Return bool.
5458 * df-core.c (df_worklist_propagate_forward,
5459 df_worklist_propagate_backward): Track changes and ages.
5460 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
5462 * dse.c (dse_confluence_n): Return always true.
5464 2010-06-22 Jan Hubicka <jh@suse.cz>
5466 * bitmap.c (bitmap_clear_bit): Micro optimize.
5468 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
5470 * config/i386/i386.md (SWI1248x): New mode iterator.
5475 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
5476 SWI1248x mode iterator.
5477 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
5478 using SWI124 mode iterator.
5479 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
5481 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
5482 *pushdi2_prologue_rex64 using P mode iterator.
5483 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
5484 using SWI48 mode iterator.
5485 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
5486 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
5487 using SWI1248x mode iterator.
5488 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
5489 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
5490 SWI48 mode iterator.
5491 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
5493 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
5494 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
5495 SWI12 mode iterator.
5496 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
5497 SWI12 mode iterator.
5498 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
5499 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
5500 SWI24 mode iterator.
5501 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
5502 SWI48 mode iterator.
5503 (mov<mode>_insn_1): New expander.
5504 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
5505 using SWI48x mode iterator.
5507 (*movoi_internal_avx): Rename from *movoi_internal.
5508 (*movti_internal_rex64): Rename from *movti_rex64.
5509 (*movti_internal_sse): Rename from *movti_sse.
5510 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
5511 (*movdi_internal): Rename from *movdi_2.
5512 (*movsi_internal): Rename from *movsi_1.
5513 (*movhi_internal): Rename from *movhi_1.
5514 (*movqi_internal): Rename from *movqi_1.
5516 (insv): Update the call to gen_movsi_insv_1 for rename.
5517 * config/i386/i386.c (promote_duplicated_reg): Ditto.
5519 2010-06-22 Jan Hubicka <jh@suse.cz>
5521 * passes.c (execute_function_todo): Move call of statistics_fini_pass
5523 (execute_todo) ... this one.
5525 2010-06-22 Alan Modra <amodra@gmail.com>
5528 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5529 * caller-save.c (insert_restore, insert_save): Use non-validate
5530 form of adjust_address.
5532 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5535 * config/pa/pa.c (override_options): Disable
5536 -freorder-blocks-and-partition.
5538 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
5541 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
5543 * config/i386/i386.md (type): Add sseishft1
5545 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
5546 (ppro_insn_load): Likewise.
5547 (ppro_insn_store): Likewise.
5548 (ppro_insn_both): Likewise.
5550 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
5551 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
5553 (*vec_extractv2di_1_avx): Likewise.
5554 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
5555 type. Remove atom_unit.
5556 (*vec_extractv2di_1_sse2): Likewise.
5558 2010-06-21 DJ Delorie <dj@redhat.com>
5560 * diagnostic.h (diagnostic_classification_change_t): New.
5561 (diagnostic_context): Add history and push/pop list.
5562 (diagnostic_push_diagnostics): Declare.
5563 (diagnostic_pop_diagnostics): Declare.
5564 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
5565 from pragmas in a history chain instead of the global table.
5566 (diagnostic_push_diagnostics): New.
5567 (diagnostic_pop_diagnostics): New.
5568 (diagnostic_report_diagnostic): Scan history chain to find state
5569 of diagnostics as of the diagnostic location.
5570 * opts.c (set_option): Pass UNKNOWN_LOCATION to
5571 diagnostic_classify_diagnostic.
5572 (enable_warning_as_error): Likewise.
5573 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
5574 use in the history chain.
5575 * doc/extend.texi: Document pragma GCC diagnostic changes.
5577 2010-06-21 Jakub Jelinek <jakub@redhat.com>
5579 * dwarf2out.c (add_linkage_name): New function. Don't add
5580 anything to DW_TAG_member DIEs.
5581 (add_name_and_src_coords_attributes): Use it.
5582 (gen_variable_die): Call it for C++ static data members if
5583 specification is DW_TAG_member.
5585 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
5586 C++ char16_t and char32_t.
5588 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
5589 * genattrtab.c: Include vecprim.h.
5590 (cached_attrs, cached_attr_count, attrs_seen_once,
5591 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
5592 attrs_cached_after): New variables.
5593 (find_attrs_to_cache): New function.
5594 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
5595 (write_test_expr): Add attrs_cached argument, return it too,
5596 attempt to cache non-const attributes used more than once in
5597 a single case handling.
5598 (write_attr_get): Use find_attrs_to_cache, for caching candidates
5599 emit cached_* variables. Adjust write_attr_set callers.
5600 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
5601 to find attributes that should be cached in this block. Adjust
5602 write_test_expr callers.
5603 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
5605 (make_automaton_attrs): Adjust write_test_expr caller.
5607 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
5608 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
5609 (make_automaton_attrs): If find_tune_attr returns non-NULL,
5610 write separate internal_dfa_insn_code_* and insn_default_latency_*
5611 functions for each attribute's value and emit init_sched_attrs
5612 function and function pointers.
5613 * genattr.c (const_attrs, reservations): New variables.
5614 (gen_attr): Add const attributes to const_attrs vector.
5615 (check_tune_attr, find_tune_attr): New functions.
5616 (main): Add reservations to reservations vector. If find_tune_attr
5617 returns true, add prototype for init_sched_attrs and make
5618 internal_dfa_insn_code and insn_default_latency function pointers,
5619 otherwise define init_sched_attrs as dummy macro.
5620 * cfgexpand.c: Include insn-attr.h.
5621 (gimple_expand_cfg): Call init_sched_attrs.
5623 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
5626 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
5627 va_arg from a set of register save slots into a temporary,
5628 if the container is bigger than type size, do the copying
5629 using smaller mode or using memcpy.
5632 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
5634 (sel_print_to_dot): Remove macro.
5635 (sel_print): Likewise. New prototype.
5636 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
5637 (sel_print): New function.
5639 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5641 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
5642 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
5644 2010-06-21 Nick Clifton <nickc@redhat.com>
5646 * config/rx/rx.h (PTRDIFF_TYPE): Define.
5647 (SMALL_REGISTER_CLASS): Define (to zero).
5648 (PRINT_OPERAND): Delete.
5649 (PRINT_OPERAND_ADDRESS): Delete.
5650 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
5651 (rx_print_operand_address): Delete prototype.
5652 * config/rx/rx.c (rx_print_operand): Make static.
5653 Allow %H and %L to handle CONST_DOUBLEs.
5654 (rx_print_operand_address): Make static.
5655 (rx_gen_move_template): Rename local variable 'template' to
5657 (rx_function_arg): Do not pass unknown sized objects in registers.
5658 (TARGET_PRINT_OPERAND): Define.
5659 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5661 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5663 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
5665 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
5667 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
5668 stack-alignment for simple leaf-functions.
5670 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
5672 * doc/install.texi: Document bootstrap-lto.
5674 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
5677 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
5678 (input_function): Drop them here, if VTA is disabled.
5680 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
5683 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
5685 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
5686 ix86_swapped_fp_comparsion_operator instead of
5687 ix86_fp_comparison_operator.
5689 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
5690 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
5691 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
5692 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
5693 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
5694 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
5696 2010-06-20 Joseph Myers <joseph@codesourcery.com>
5699 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
5700 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
5701 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
5702 (decode_cmdline_option): Update for this return value. Set
5703 orig_option_with_args_text field. Set arg field for unknown
5704 options. Make static.
5705 (decode_cmdline_options_to_array): New.
5706 (prune_options): Update handling of find_opt return value.
5707 * opts.c (read_cmdline_option): Take decoded option. Return void.
5708 (read_cmdline_options): Take decoded options.
5709 (decode_options): Add parameters for decoded options. Use
5710 decode_cmdline_options_to_array. Use decoded options for -O
5711 scan. Use integral_argument for -O parameters. Update call to
5712 read_cmdline_options.
5713 (enable_warning_as_error): Update handling of find_opt return value.
5714 * opts.h: Update comment on unknown options.
5715 (struct cl_decoded_option): Update comments on opt_index and arg.
5716 Add orig_option_with_args_text.
5717 (decode_cmdline_option): Remove.
5718 (decode_cmdline_options_to_array): Declare.
5719 (decode_options): Update prototype.
5720 * toplev.c (save_argv): Remove.
5721 (save_decoded_options, save_decoded_options_count): New.
5722 (read_integral_parameter): Remove.
5723 (print_switch_values): Use decoded options.
5724 (toplev_main): Don't set save_argv. Update call to decode_options.
5725 * toplev.h (read_integral_parameter): Remove.
5726 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
5728 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
5731 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
5733 * constraints.md (Pw, Px): New constraints.
5734 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
5736 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
5738 * config/i386/sse.md (fma4modesuffixf4): Removed.
5739 (ssemodesuffixf2s): Likewise.
5740 (ssemodesuffixf4): Likewise.
5741 (ssemodesuffixf2c): Likewise.
5742 (ssescalarmodesuffix2s): Likewise.
5743 (avxmodesuffixf2c): Likewise.
5744 (ssemodesuffix): New.
5745 (ssescalarmodesuffix): Likewise.
5746 Update patterns with ssemodesuffix and ssescalarmodesuffix.
5748 2010-06-19 Philip Herron <herron.philip@googlemail.com>
5750 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
5752 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
5754 * stor-layout.c (debug_rli): Remove unused local variables.
5756 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
5758 PR rtl-optimization/40900
5759 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
5760 original expression for later reuse.
5761 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
5762 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
5764 2010-06-18 Anatoly Sokolov <aesok@post.ru>
5766 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
5767 double_int_fits_in_uhwi_p): Implement as static inline.
5768 (double_int_xor): New inline function.
5769 (double_int_lrotate, double_int_rrotate, double_int_max,
5770 double_int_umax, double_int_smax, double_int_min, double_int_umin,
5771 double_int_smin): Declare.
5772 (lrotate_double, rrotate_double): Remove declaration.
5773 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
5774 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
5775 (double_int_lrotate, double_int_rrotate, double_int_max,
5776 double_int_umax, double_int_smax, double_int_min, double_int_umin,
5777 double_int_smin): New function.
5778 * fold-const.c (int_const_binop): Clean up, use double_int_*
5780 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
5781 double_int_* and immed_double_int_const functions.
5783 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5785 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
5786 * function.c (types_used_by_cur_var_decl): Likewise.
5787 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
5789 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5791 * tree.h (record_layout_info): Change type of pending_statics field
5793 * stor-layout.c (start_record_layout): Store NULL into
5795 (debug_rli): Call debug_vec_tree instead of debug_tree.
5796 (place_field): Likewise.
5797 (finish_record_layout): Likewise.
5799 2010-06-18 Alan Modra <amodra@gmail.com>
5801 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
5803 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5806 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
5807 for SET source operand from SET destination operand.
5809 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
5811 PR rtl-optimization/39871
5812 * reload1.c (init_eliminable_invariants): For flag_pic, disable
5813 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
5814 (function_invariant_p): Rule out a plus of frame or arg pointer with
5816 * ira.c (find_reg_equiv_invariant_const): Likewise.
5818 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
5820 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
5821 print_operand_address and puts to output the operand for CONST.
5823 2010-06-17 Jakub Jelinek <jakub@redhat.com>
5826 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
5829 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5831 * v850-protos.h (print_operand): Delete.
5832 (print_operand_address): Delete.
5833 * v850.h (PRINT_OPERAND): Delete.
5834 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5835 (PRINT_OPERAND_ADDRESS): Delete.
5836 * v850.c (print_operand_address): Rename to...
5837 (v850_print_operand_address): ...this. Make static. Call
5839 (print_operand): Rename to...
5840 (v850_print_operand): ...this. Make static. Call
5841 v850_print_operand_address.
5842 (v850_print_operand_punct_valid_p): New function.
5843 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5844 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5846 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5848 * config/sh/sh-protos.h (print_operand): Delete.
5849 (print_operand_address): Delete.
5850 * config/sh/sh.h (PRINT_OPERAND): Delete.
5851 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5852 (PRINT_OPERAND_ADDRESS): Delete.
5853 * config/sh/sh.c (sh_print_operand_address): Make static.
5854 (sh_print_operand): Make static. Call sh_print_operand_address
5855 and sh_print_operand.
5856 (sh_print_operand_punct_valid_p): New function.
5857 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5858 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5860 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5862 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
5863 (mcore_print_operand_address): Delete.
5864 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
5865 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5866 (PRINT_OPERAND_ADDRESS): Delete.
5867 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
5868 (mcore_print_operand): Make static.
5869 (mcore_print_operand_punct_valid_p): New function.
5870 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
5871 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5873 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5875 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
5876 (print_operand_address): Delete.
5877 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
5878 (PRINT_OPERAND_ADDRESS): Delete.
5879 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
5881 (m68hc11_print_operand): Make static.
5882 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5884 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5886 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
5887 (m32r_print_operand_address): Delete.
5888 * config/m32r/m32r.h (m32r_punct_chars): Delete.
5889 (PRINT_OPERAND): Delete.
5890 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5891 (PRINT_OPERAND_ADDRESS): Delete.
5892 * config/m32r/m32r.c (m32r_punct_chars): Make static.
5893 (m32r_print_operand_address): Make static.
5894 (m32r_print_operand): Make static.
5895 (m32r_print_operand_punct_valid_p): New function.
5896 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5897 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5899 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5901 * config/iq2000/iq2000-protos.h (print_operand): Delete.
5902 (print_operand_address): Delete.
5903 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
5904 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5905 (PRINT_OPERAND_ADDRESS): Delete.
5906 (iq2000_print_operand_punct): Delete.
5907 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
5908 (iq2000_print_operand_address): Make static.
5909 (iq2000_print_operand): Make static.
5910 (iq2000_print_operand_punct_valid_p): New function.
5911 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5912 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5914 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5916 * config/frv/frv-protos.h (frv_print_operand): Delete.
5917 (frv_print_operand_address): Delete.
5918 * config/frv/frv.h (PRINT_OPERAND): Delete.
5919 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5920 (PRINT_OPERAND_ADDRESS): Delete.
5921 * config/frv/frv.c (frv_print_operand_address): Make static.
5922 (frv_print_operand): Make static.
5923 (frv_print_operand_punct_valid_p): New function.
5924 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
5925 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5927 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
5929 * tree.h (vec_member): Declare.
5930 * tree.c (vec_member): Define.
5932 2010-06-17 Richard Guenther <rguenther@suse.de>
5934 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
5935 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
5937 2010-06-17 Richard Guenther <rguenther@suse.de>
5939 * tree-inline.c (declare_return_variable): Remove bogus code.
5941 2010-06-17 Richard Guenther <rguenther@suse.de>
5943 * gimplify.c (gimplify_bind_expr): Always promote complex
5944 and vector variables to registers if possible.
5946 2010-06-17 Richard Guenther <rguenther@suse.de>
5948 * expr.c (get_inner_reference): Use double_int for bit_offset
5951 2010-06-16 DJ Delorie <dj@redhat.com>
5953 * common.opt (-fstrict-volatile-bitfields): new.
5954 * doc/invoke.texi: Document it.
5955 * fold-const.c (optimize_bit_field_compare): For volatile
5956 bitfields, use the field's type to determine the mode, not the
5958 * expr.c (expand_assignment): Likewise.
5959 (get_inner_reference): Likewise.
5960 (expand_expr_real_1): Likewise.
5961 * expmed.c (store_fixed_bit_field): Likewise.
5962 (extract_bit_field_1): Likewise.
5963 (extract_fixed_bit_field): Likewise.
5965 2010-06-16 Richard Guenther <rguenther@suse.de>
5967 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
5969 2010-06-16 Douglas B Rupp <rupp@gnat.com>
5971 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
5972 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
5973 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
5974 * debug.c: Likewise.
5975 * sdbout.c: Likewise.
5976 * vmsdbgout.c: Likewise.
5977 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
5978 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
5979 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
5980 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
5981 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
5982 * dwarf2out.c (dw_fde_struct): New fields
5983 dw_fde_vms_{end,begin}_prologue.
5984 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
5985 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
5986 (dwarf2out_vms_end_prologue): New function.
5987 (dwarf2out_vms_begin_epilogue): New function.
5988 (dw_val_struct): New value dw_val_class_vms_delta.
5989 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
5990 begin_epilogue for VMS.
5991 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
5992 new static functions.
5993 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
5994 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
5996 (print_die): New case dw_val_class_vms_delta.
5997 (attr_checksum): Likewise.
5998 (same_dw_val_p: Likewise.
5999 (size_of_die): Likewise.
6000 (value_format): Likewise.
6001 (output_die): Likewise.
6002 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
6003 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
6004 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
6005 dwarf2out_cfi_begin_epilogue
6006 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
6008 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
6010 * config/cris/cris-protos.h (cris_print_operand): Delete.
6011 (cris_print_operand_address): Delete.
6012 * config/cris/cris.h (PRINT_OPERAND): Delete.
6013 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6014 (PRINT_OPERAND_ADDRESS): Delete.
6015 * config/cris/cris.c (cris_print_operand_address): Make static.
6016 (cris_print_operand): Make static.
6017 (cris_print_operand_punct_valid_p): New function.
6018 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6019 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6021 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
6023 * config/arm/arm-protos.h (arm_print_operand): Delete.
6024 (arm_print_operand_address): Delete.
6025 * config/arm/arm.h (PRINT_OPERAND): Delete.
6026 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6027 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
6028 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
6029 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
6030 (arm_print_operand): Make static.
6031 (arm_print_operand_punct_valid_p): New function.
6032 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
6033 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6035 2010-06-16 Nick Clifton <nickc@redhat.com>
6037 * config/rx/constraints.md (NEGint4): New constraint.
6038 * config/rx/rx.md (attr cc): Add set_zsc.
6039 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
6042 (call_internal): Clobber the cc0 register.
6043 (call_value_internal): Likewise.
6044 (cstoresi4): Likewise.
6045 (movsieq): Likewise.
6046 (movsine): Likewise.
6047 (addsi3): Add alternative to handle small negative constants.
6049 (addsi3): Do not set the O bit in the cc0 register.
6053 (andsi3): Reorder alternatives to prefer shorter forms.
6056 (negsi2): Note that the cc0 flags are set.
6057 (rotlsi3): Note that only the Z and S bits are set in cc0.
6058 (lshrsi3): Likewise.
6059 (ashlsi3): Likewise.
6060 (subsf3): Use %Q for the MEM operand.
6061 (fix_truncsfsi2): Likewise.
6062 (floatsisf2): Likewise.
6063 (bitset): Remove early clobber from destination.
6064 (bitset_in_memory): Likewise.
6065 (lrintsf2): Clobber the cc0 register.
6066 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
6067 (rx_print_operand): Handle %N.
6069 2010-06-16 Jan Hubicka <jh@suse.cz>
6071 * df-core.c (df_compact_blocks): Free problem_temps vector.
6073 2010-06-16 Martin Jambor <mjambor@suse.cz>
6075 PR tree-optimization/43905
6076 * tree-sra.c: Include tree-inline.h.
6077 (create_abstract_origin): Removed.
6078 (modify_function): Version the call graph node instead of creating
6079 abstract origins and dealing with same_body aliases.
6080 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
6081 function is versionable.
6082 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
6084 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
6086 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
6087 (CHOOSE_DYNAMIC_LINKER): Update.
6089 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
6091 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
6092 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
6093 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
6094 *prefetch_3dnow_rex.
6096 2010-06-15 Anatoly Sokolov <aesok@post.ru>
6098 * target.h (struct asm_out):Add declare_constant_name field.
6099 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6100 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
6101 * output.h (default_asm_declare_constant_name): Declare.
6102 (assemble_label): Update prototype.
6103 * varasm.c (assemble_constant_contents): Use
6104 targetm.asm_out.declare_constant_name target hook.
6105 (assemble_label): Add 'file' argument.
6106 (default_asm_declare_constant_name): New function.
6107 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
6108 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
6109 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
6111 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
6112 * config/darwin.c (darwin_asm_declare_constant_name): New function.
6113 (machopic_output_indirection): Update assemble_label argument list.
6114 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
6115 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
6117 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
6120 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6121 size_one_node for pointer types. Do not call gmp_cst_to_tree.
6123 2010-06-15 Richard Guenther <rguenther@suse.de>
6125 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
6127 2010-06-15 Paul Brook <paul@codesourcery.com>
6129 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
6132 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
6134 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
6135 don't get a vector type for output.
6137 2010-06-15 Jakub Jelinek <jakub@redhat.com>
6140 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
6141 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
6142 (LANG_HOOKS_DECLS): Add it.
6143 * gimplify.c (omp_notice_variable): Call
6144 lang_hooks.decls.omp_report_decl.
6146 2010-06-15 Martin Jambor <mjambor@suse.cz>
6149 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
6150 on the newly dead SSA name.
6152 2010-06-15 Alan Modra <amodra@gmail.com>
6154 * doc/invoke.texi: Add mcmodel to powerpc options.
6155 * configure.ac: Add HAVE_LD_LARGE_TOC test.
6156 * configure: Regenerate.
6157 * config.in: Regenerate.
6158 * config/rs6000/linux64.opt (mcmodel): New.
6159 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
6160 (TARGET_CMODEL, SET_CMODEL): Define.
6161 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
6162 select CMODEL_MEDIUM default.
6163 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
6164 (TARGET_CMODEL): Define default.
6165 * config/rs6000/rs6000.c (cmodel): New variable.
6166 (rs6000_explicit_options): Add cmodel field.
6167 (rs6000_handle_option): Handle -mcmodel.
6168 (create_TOC_reference): Add largetoc_reg param. Generate high,
6169 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
6170 (rs6000_delegitimize_address): Recognise new toc reference rtl
6171 and minimal-toc rtl.
6172 (rs6000_legitimize_reload_address): Handle new toc references.
6173 (print_operand_address): Handle legitimate_constant_pool_address_p
6174 match before lo_sum.
6175 (rs6000_eliminate_indexed_memrefs): Tidy.
6176 (rs6000_emit_move): Tweak threshold for inlining constants.
6177 Keep rs6000_emit_allocate_stack large stack frame offsets
6178 loaded into r0 inline.
6179 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
6180 (tocrel_base, tocrel_offset): New variables.
6181 (toc_relative_expr_p): Set them here.
6182 (print_operand_address): Skip over any offset on constant pool address.
6183 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
6184 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
6185 (offsettable_ok_by_alignment): New function.
6186 (rs6000_emit_move): Address suitably aligned local symbol_refs
6187 relative to the toc pointer for -mcmodel=medium.
6188 (legitimate_constant_pool_address_p): Make param const_rtx. Add
6189 strict param. Allow lo_sum version of addressing. Verify reg
6190 used for -mminimal-toc and -mcmodel != small. Update all callers.
6191 * config/rs6000/constraints.md: Update for above change.
6192 * config/rs6000/predicates.md: Likewise.
6193 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
6195 (tls_gd): Split for -mcmodel=medium/large.
6196 (tls_gd_high, tls_gd_low): New.
6197 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
6198 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
6199 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
6200 (largetoc_high, largetoc_low): New.
6201 (cmptf_internal2): Add clobber.
6202 * config/rs6000/rs6000-protos.h: Update.
6204 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
6206 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
6207 true if no prefetch is going to be generated for a given group.
6208 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
6209 estimate the prefetch_count.
6210 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
6211 prefetch count by considering the unroll_factor and prefetch_mod
6212 for is_loop_prefetching_profitable.
6214 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
6216 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
6217 anything if the argument is not a MEM.
6219 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
6224 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
6226 (canonicalize_loop_ivs): Likewise.
6228 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
6231 * haifa-sched.c (setup_insn_reg_pressure_info,
6232 update_register_pressure): Reject debug insns.
6233 (ready_sort): Don't setup reg pressure for debug insns.
6234 (schedule_insn): Don't update reg pressure for debug insns.
6236 2010-06-14 Richard Guenther <rguenther@suse.de>
6238 * lto-streamer.c (cached_bp): Remove.
6239 (bitpack_delete): Likewise.
6240 (bitpack_create): Likewise.
6241 (bp_get_next_word): Likewise.
6242 (bp_pack_value, bp_unpack_value): Move ...
6243 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
6245 (struct bitpack_d): Likewise.
6246 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
6247 New inline functions.
6248 * lto-streamer-out.c (lto_output_bitpack): Remove.
6249 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
6250 (pack_value_fields): Adjust.
6251 (lto_write_tree): Likewise.
6252 (output_gimple_stmt): Likewise.
6253 (output_function): Likewise.
6254 * lto-streamer-in.c (input_gimple_stmt): Adjust.
6255 (input_function): Likewise.
6256 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
6257 (lto_input_bitpack): Remove.
6258 (lto_materialize_tree): Adjust.
6259 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
6260 * lto-cgraph.c (lto_output_edge): Adjust.
6261 (lto_output_node): Likewise.
6262 (lto_output_varpool_node): Likewise.
6263 (lto_output_ref): Likewise.
6264 (input_node): Likewise.
6265 (input_varpool_node): Likewise.
6266 (input_ref): Likewise.
6267 (input_edge): Likewise.
6268 (output_node_opt_summary): Likewise.
6269 (input_node_opt_summary): Likewise.
6270 * ipa-pure-const.c (pure_const_write_summary): Likewise.
6271 (pure_const_read_summary): Likewise.
6272 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
6273 (ipa_read_indirect_edge_info): Likewise.
6274 (ipa_write_node_info): Likewise.
6275 (ipa_read_node_info): Likewise.
6277 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
6280 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
6281 (vec_extract_lo_v16hi): Likewise.
6282 (vec_extract_lo_v32qi): Likewise.
6284 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6287 * tree.h (build_call_expr): Don't define as vararg macro, instead
6289 * builtins.c (build_call_nofold): Remove.
6290 (expand_builtin_int_roundingfn, expand_builtin_pow,
6291 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
6292 expand_builtin_memset_args, expand_builtin_strcmp,
6293 expand_builtin_strncmp, expand_builtin_memory_chk): Use
6294 build_call_nofold_loc instead of build_call_nofold.
6295 (build_call_expr): New function.
6297 PR tree-optimization/44508
6298 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
6299 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
6300 don't eliminate trivially dead stmts.
6301 * tree-vrp.c (vrp_finalize): Pass false as last argument
6302 to substitute_and_fold.
6303 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
6304 to substitute_and_fold.
6305 * tree-ssa-ccp.c (ccp_finalize): Likewise.
6308 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
6310 2010-06-14 Ira Rosen <irar@il.ibm.com>
6312 PR tree-optimization/44507
6313 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
6314 to build initial vector for BIT_AND_EXPR.
6315 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
6317 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6319 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
6320 adjust z10prop set_attr.
6322 2010-06-13 Jan Hubicka <jh@suse.cz>
6324 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
6325 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
6326 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
6327 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
6328 datastructure checks into checking asserts.
6329 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
6330 * tree-ssa-sccvn.c (VN_INFO): Likewise.
6331 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
6332 df_ref_create_structure): Likewise.
6333 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
6334 pool_free): Use gcc_checking_assert.
6335 * alias.c (get_alias_set): Likewise.
6336 * var-tracking.c (variable_htab_free, shared_hash_copy,
6337 canonicalize_values_mark, variable_merge_over_cur): Likewise.
6338 * lto-streamer.c (bp_unpack_value): Likewise.
6340 2010-06-13 Richard Guenther <rguenther@suse.de>
6342 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
6343 Do not stream but initialize TYPE_CANONICAL to NULL.
6344 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
6345 * gimple.c (gimple_types_compatible_p): Disregard
6346 TYPE_STRUCTURAL_EQUALITY_P.
6347 (gimple_register_type): Use TYPE_CANONICAL as cache.
6348 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
6349 before registering common types.
6350 * config/i386/i386.c (ix86_function_arg_boundary): Do not
6351 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
6352 * tree.h (TYPE_CANONICAL): Clarify documentation.
6354 2010-06-13 Anatoly Sokolov <aesok@post.ru>
6356 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6357 LIBCALL_VALUE): Remove macros.
6358 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
6359 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6360 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6361 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
6362 (ia64_function_value): Make static. Handle receiving the function
6363 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
6365 2010-06-12 Jan Hubicka <jh@suse.cz>
6367 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
6370 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
6372 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
6374 2010-06-12 Jan Hubicka <jh@suse.cz>
6376 * df-core.c (df_clear_bb_info): New function.
6377 (df_set_blocks): bb_info is always allocated.
6378 (df_get_bb_info): Use block_info_elt_size.
6379 (df_set_bb_info): Likewise.
6380 (df_compact_blocks): Update for new block_info.
6381 (grow_bb_info): New function.
6382 * df-problems.c (df_grow_bb_info): Move to df-core.c
6383 (df_rd_set_bb_info): Remove.
6384 (df_rd_free_bb_info): Do not free block pool.
6385 (df_rd_alloc): Do not create pool, use check for
6386 obstack presence instead of NULL pointer for new blocks.
6387 (df_rd_free): DO not free alloc pool; clear block_info.
6388 (problem_RD): Add size of block info structure.
6389 (df_lr_set_bb_info): Remove.
6390 (df_lr_free_bb_info): Do not free block pool.
6391 (df_lr_alloc): Do not create pool, use check for
6392 obstack presence instead of NULL pointer for new blocks.
6393 (df_lr_free): DO not free alloc pool; clear block_info.
6394 (problem_LR): Add size of block info structure.
6395 (df_live_set_bb_info): Remove.
6396 (df_live_free_bb_info): Do not free block pool.
6397 (df_live_alloc): Do not create pool, use check for
6398 obstack presence instead of NULL pointer for new blocks.
6399 (df_live_free): DO not free alloc pool; clear block_info.
6400 (problem_LIVE): Add size of block info structure.
6401 (problem_CHAIN): Add size of block info structure.
6402 (df_byte_lr_set_bb_info): Remove.
6403 (df_byte_lr_free_bb_info): Do not free block pool.
6404 (df_byte_lr_alloc): Do not create pool, use check for
6405 obstack presence instead of NULL pointer for new blocks.
6406 (df_byte_lr_free): DO not free alloc pool; clear block_info.
6407 (problem_BYTE_LR): Add size of block info structure.
6408 (problem_NOTE): Add size of block info structure.
6409 (df_byte_MD_set_bb_info): Remove.
6410 (df_byte_MD_free_bb_info): Do not free block pool.
6411 (df_byte_MD_alloc): Do not create pool, use check for
6412 obstack presence instead of NULL pointer for new blocks.
6413 (df_byte_MD_free): DO not free alloc pool; clear block_info.
6414 (problem_BD): Add size of block info structure.
6415 * df-scan.c (df_scan_free_internal): Free block pool.
6416 (df_scan_set_bb_info): Remove.
6417 (df_scan_free_bb_info): Check for artificial_defs instead
6418 of bb_info being non-NULL.
6419 (df_scan_alloc): DO not create df_scan_block pool.
6420 (problem_SCAN): Set size of block info.
6421 (df_bb_refs_record): Do not allocate bb_info.
6422 * df.h (df_problem): Add block_info_elt_size.
6423 (struct dataflow): Change block_info to void *.
6424 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
6425 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
6428 2010-06-12 Jan Hubicka <jh@suse.cz>
6430 PR tree-optimize/44485
6431 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
6432 containing use of return value of noreturn function.
6434 2010-06-12 Anatoly Sokolov <aesok@post.ru>
6436 * targhooks.c (default_function_value): Don't use
6437 FUNCTION_OUTGOING_VALUE.
6438 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
6439 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
6441 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
6443 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
6444 Add crtfastmath.o to extra_parts.
6445 * config/mips/crtfastmath.c: New.
6446 * config/mips/linux.h (ENDFILE_SPEC): New.
6448 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
6450 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
6451 old_type in parameter.
6452 (gcc_type_for_value): Update call to gcc_type_for_interval.
6453 (compute_type_for_level_1): Renamed compute_type_for_level.
6454 Update call to gcc_type_for_interval.
6456 2010-06-11 Joseph Myers <joseph@codesourcery.com>
6458 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
6459 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
6461 2010-06-11 Joseph Myers <joseph@codesourcery.com>
6463 * opts-common.c: Include options.h.
6464 (integral_argument): Move from opts.c.
6465 (decode_cmdline_option): New. Based on read_cmdline_option.
6466 * opts.c (integral_argument): Move to opts-common.c.
6467 (read_cmdline_option): Move most contents to
6468 decode_cmdline_option. Use %qs in diagnostics.
6469 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
6470 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
6471 decode_cmdline_option): New.
6473 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
6476 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
6477 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
6478 (partiysi2_cmp): Ditto.
6479 (*partiyhi2_cmp): Ditto.
6480 (*parityqi2_cmp): Remove.
6482 2010-06-11 Jan Hubicka <jh@suse.cz>
6484 * bitmap.h (bmp_iter_next_bit): New.
6485 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
6487 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
6488 Eric Botcazou <ebotcazou@adacore.com>
6490 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
6493 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
6495 * config/i386/i386.md (unspec): New define_c_enum.
6498 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6500 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
6502 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
6505 * tree-if-conv.c (bb_predicate_s): New struct.
6506 (bb_predicate_p): New.
6507 (bb_has_predicate): New.
6508 (bb_predicate): New.
6509 (set_bb_predicate): New.
6510 (bb_predicate_gimplified_stmts): New.
6511 (set_bb_predicate_gimplified_stmts): New.
6512 (add_bb_predicate_gimplified_stmts): New.
6513 (init_bb_predicate): New.
6514 (free_bb_predicate): New.
6515 (is_predicated): Use bb_predicate.
6516 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
6517 (predicate_bbs): Same. Gimplify the condition of the basic blocks
6518 before processing their successors.
6519 (clean_predicate_lists): Removed.
6520 (find_phi_replacement_condition): Use bb_predicate.
6521 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
6523 (insert_gimplified_predicates): New.
6524 (combine_blocks): Call insert_gimplified_predicates.
6525 (tree_if_conversion): Call free_bb_predicate instead of
6526 clean_predicate_lists.
6528 2010-10-11 Paul Brook <paul@codesourcery.com>
6530 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
6531 * config/arm/arm.c (all_architectures): Change v7e-m default to
6533 * config/arm/arm-cores.def: Add cortex-m4.
6534 * config/arm/arm-tune.md: Regenerate.
6536 2010-06-11 Jan Hubicka <jh@suse.cz>
6538 * ipa-pure-const.c (special_builtlin_state): New function.
6539 (check_call): Use it instead of special casign BUILT_IN_RETURN.
6540 (propagate_pure_const): Use it.
6542 2010-06-11 Jan Hubicka <jh@suse.cz>
6544 * df-problems.c (df_live_scratch): Convert to bitmap_head.
6545 (df_live_alloc): Initialize df_live_scratch when initializing
6547 (df_live_transfer_function): Update uses of df_live_scratch.
6548 (df_live_free): Free problem_data; clear df_live_scratch before
6549 releasing the obstack.
6550 (df_md_free): Free problem data.
6552 2010-06-11 Jan Hubicka <jh@suse.cz>
6554 * doc/invoke.texi (Wsuggest-attribute): Document.
6555 (Wmissing-noreturn): Remove.
6556 * ipa-pure-const.c (warn_function_noreturn): New function.
6557 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
6558 warn_missing_noreturn.
6559 * common.opt (Wsuggest-attribute=noreturn): New.
6560 * tree-flow.h (warn_function_noreturn): Declare.
6561 * tree-cfg.c (execute_warn_function_noreturn): Use
6562 warn_function_noreturn.
6563 (gate_warn_function_noreturn): New.
6564 (pass_warn_function_noreturn): Update.
6566 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6568 * c-typeck.c (handle_warn_cast_qual): Add loc
6569 parameter. Improve warning message.
6570 (build_c_cast): Pass location to handle_warn_cast_qual.
6572 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
6574 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
6575 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
6577 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
6579 2010-06-10 Dodji Seketeli <dodji@redhat.com>
6581 Fix bootstap on mips
6582 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
6585 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
6587 * system.h (helper_const_non_const_cast): New inline for
6589 (CONST_CAST2): For gcc version <= 4.0 use
6590 new helper to do const/non-const casting.
6592 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6594 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
6595 * Makefile.in (OBJS-common): Include insn-enums.o.
6596 (insn-enums.o): New rule.
6597 (simple_generated_c): Add insn-enums.c.
6598 (build/genenums.o): New rule.
6599 (genprogmd): Add "enums".
6600 * genconstants.c (print_enum_type): Declare a C string array
6602 * genenums.c: New file.
6603 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
6604 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
6605 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
6607 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6609 * doc/md.texi (define_enum_attr): Document.
6610 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
6611 * read-md.h (lookup_enum_type): Declare.
6612 * read-md.c (lookup_enum_type): New function.
6613 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
6614 * genattrtab.c (attr_desc): Add an enum_name field.
6615 (evaluate_eq_attr): Take the associated attribute as argument.
6616 Get the enum prefix from the enum_name field, if defined.
6617 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
6618 (simplify_test_exp): Pass attr to evaluate_eq_attr.
6619 (add_attr_value): New function, split out from...
6620 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
6621 (write_test_expr): Pass attr to evaluate_eq_attr.
6622 (write_attr_get): Use the enum_name as the enum tag, if defined.
6623 (write_attr_valueq): Use the enum_name as a prefix, if defined.
6624 (find_attr): Initialize enum_name.
6625 (main): Handle DEFINE_ENUM_ATTR.
6626 * gensupport.c (process_rtx): Likewise.
6627 * config/mips/mips.h (mips_tune_attr): Delete.
6628 * config/mips/mips.md (cpu): Use define_attr_enum.
6630 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6632 * doc/md.texi (define_c_enum, define_enum): Document.
6633 * read-md.h (md_constant): Add a parent_enum field.
6634 (enum_value, enum_type): New structures.
6635 (upcase_string, traverse_enum_types): Declare.
6636 * read-md.c (enum_types): New variable.
6637 (upcase_string, add_constant): New functions.
6638 (handle_constants): Don't create the hash table here.
6640 (traverse_md_constants): Don't check for a null md_constants.
6641 (decimal_string, handle_enum, traverse_enum_types): New functions.
6642 (read_md_files): Initialize md_constants and md_enums.
6643 * genconstants.c (print_md_constant): Ignore info argument.
6644 Only print constants that belong to no enum.
6645 (print_enum_type): New function.
6646 (main): Don't pass stdout to print_md_constant. Call print_enum_type
6647 for each defined enum type.
6648 * config/mips/mips.md (processor): New define_enum.
6649 (unspec): New define_c_enum.
6650 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
6651 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
6652 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
6653 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
6654 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
6655 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
6656 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
6657 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
6658 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
6659 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
6660 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
6661 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
6662 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
6663 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
6664 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
6665 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
6666 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
6667 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
6668 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
6669 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
6670 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
6671 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
6672 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6673 (UNSPEC_RDDSP): Move to mips-dsp.md.
6674 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
6675 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
6676 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
6677 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
6678 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
6679 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
6680 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
6681 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
6682 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
6683 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
6684 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
6685 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
6686 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
6687 Moved to mips-dspr2.md.
6688 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
6689 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
6690 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
6691 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
6692 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
6693 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
6694 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6695 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6696 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6697 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6698 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6699 UNSPEC_LOONGSON_PSADBH)
6700 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6701 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6702 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
6703 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6704 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6705 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6706 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
6707 (cpu): Update comment.
6708 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
6709 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
6710 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
6711 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
6712 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
6713 UNSPEC_LOONGSON_PCMPEQ)
6714 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
6715 UNSPEC_LOONGSON_PINSR_0)
6716 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
6717 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
6718 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
6719 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
6720 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
6721 UNSPEC_LOONGSON_PSADBH)
6722 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
6723 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
6724 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
6725 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6726 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6727 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6728 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
6729 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
6730 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
6731 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
6732 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
6733 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
6734 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
6735 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
6736 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
6737 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
6738 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
6739 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
6740 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
6741 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
6742 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
6743 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
6744 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
6745 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
6746 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
6747 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
6748 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
6749 (UNSPEC_RDDSP): Moved from mips.md.
6750 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
6751 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
6752 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
6753 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
6754 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
6755 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
6756 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
6757 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
6758 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
6759 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
6760 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
6761 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
6762 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
6763 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
6764 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
6765 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
6766 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
6767 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
6768 (UNSPEC_SCC): Moved from mips.md.
6769 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
6770 "processor_type" to "processor".
6771 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
6772 * config/mips/mips.h (processor_type): Delete.
6773 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
6774 "processor_type" to "processor".
6776 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6778 * configure.ac (tm_include_list): Add insn-constants.h.
6779 * configure: Regenerate.
6780 * Makefile.in (GTM_H): Move insn-constants.h here from...
6782 * mkconfig.sh: Remove special handling for insn-constants.h.
6784 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6786 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
6787 (BUILD_MD): ...this new variable.
6788 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
6789 that include the old contents of simple_generated_h and
6791 (simple_generated_h, simple_generated_c): Include them. Add
6793 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
6794 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
6795 Remove these dependencies from the main rule and include
6796 insn-conditions.md in the command line only if it appears
6797 in the dependency list.
6798 (insn-constants.h, s-constants): Delete.
6799 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
6801 (build/genmddeps.o): Likewise.
6802 (genprogrtl): New variable that contains everything from genprogmd
6803 except mddeps and constants.
6804 (genprogmd): Redefine in terms of genprogrtl. Make these programs
6805 depend on $(BUILD_MD)
6806 (genprog): New variable. Make these programs depend on
6808 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
6809 (main): Use read_md_files instead of init_rtx_reader_args.
6810 * genconstants.c: As for genmddeps.c.
6811 * read-md.h (read_skip_construct): Declare.
6812 * read-md.c (read_skip_construct): New function.
6813 (handle_file): Allow a null handle_directive, skipping the
6815 (parse_include): Update the comment accordingly.
6817 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6819 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
6820 * genmddeps.c: Include read-md.h.
6821 (main): Call init_rtx_reader_args instead of init_md_reader_args.
6822 * genattr.c (main): Likewise.
6823 * genattrtab.c (main): Likewise.
6824 * genautomata.c (main): Likewise.
6825 * gencodes.c (main): Likewise.
6826 * genconditions.c (main): Likewise.
6827 * genconfig.c (main): Likewise.
6828 * genconstants.c (main): Likewise.
6829 * genemit.c (main): Likewise.
6830 * genextract.c (main): Likewise.
6831 * genflags.c (main): Likewise.
6832 * genopinit.c (main): Likewise.
6833 * genoutput.c (main): Likewise.
6834 * genpeep.c (main): Likewise.
6835 * genrecog.c (main): Likewise.
6836 * genpreds.c (main): Likewise.
6837 * gensupport.h (in_fname): Move to read-md.h.
6838 (init_md_reader_args_cb): Rename to...
6839 (init_rtx_reader_args_cb): ...this and return a bool.
6840 (init_md_reader_args): Rename to...
6841 (init_rtx_reader_args): ...this and return a bool.
6842 (include_callback): Move to read-md.h.
6843 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
6844 (file_name_list, first_dir_md_include): Move to read-md.c
6845 (first_bracket_include): Delete unused variable.
6846 (last_dir_md_include): Move to read-md.c.
6847 (process_include): Delete, moving code to read-md.c:handle_include.
6848 (process_rtx): Don't handle INCLUDE.
6849 (save_string): Delete.
6850 (rtx_handle_directive): New function.
6851 (init_md_reader_args_cb): Rename to...
6852 (init_rtx_reader_args_cb): ...this and return a boolean success value.
6854 (init_md_reader_args): Rename to...
6855 (init_rtx_reader_args): ...this and return a boolean success value.
6856 * rtl.def (INCLUDE): Delete.
6857 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
6859 * read-rtl.c (read_conditions): Don't gobble ')' here.
6860 (read_mapping): Likewise.
6861 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
6862 Handle top-level non-rtx constructs here rather than in read_rtx_1.
6863 Store the whole queue in *X. Remove call to init_md_reader.
6864 (read_rtx_1): Rename to...
6865 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
6866 Don't handle top-level non-rtx constructs here. Don't handle (nil)
6868 (read_nested_rtx): New function. Handle (nil) here rather than
6870 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
6872 * read-md.h (directive_handler_t): New type.
6873 (in_fname, include_callback): Moved from read-md.h.
6874 (read_constants, init_md_reader): Delete.
6875 (read_md_files): Declare.
6876 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
6877 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
6879 (read_constants): Rename to...
6880 (handle_constants): ...this. Don't gobble ')' here.
6881 (handle_include, handle_file, handle_toplevel_file)
6882 (parse_include): New functions, mostly taken from gensupport.c.
6883 (init_md_reader): Subsume into...
6884 (read_md_files): ...this new function.
6886 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6888 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
6889 (unread_char): Decrement read_md_lineno after putting back '\n'.
6890 * read-md.c (fatal_with_file_and_line): Push back any characters
6891 that we decide not to add to the context.
6892 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
6893 fatal_expected_char in cases where '/' ends a line (for example).
6894 (read_name): Don't increment read_md_lineno here.
6895 (read_escape): Likewise.
6896 (read_quoted_string): Likewise.
6897 (read_braced_string): Likewise.
6899 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6901 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
6902 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
6903 * genconstants.c: Include read-md.h.
6904 * read-rtl.c (md_constants): Move to read-md.c.
6905 (md_name): Move to read-md.h.
6906 (initialize_iterators): Use leading_string_hash instead of def_hash
6907 and leading_string_eq_p instead of def_name_eq_p.
6908 (read_name): Move to read-md.c.
6909 (def_hash, def_name_eq_p): Delete.
6910 (read_constants, traverse_md_constants): Move to read-md.c.
6911 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
6912 * read-md.h: Include hashtab.h.
6913 (md_name): Moved from read-rtl.c.
6914 (md_constant): Moved from read-md.h.
6915 (leading_string_hash, leading_string_eq_p, read_name)
6916 (read_constants, traverse_md_constants): Declare.
6917 * read-md.c (md_constants): Moved from read-rtl.c.
6918 (leading_string_hash, leading_string_eq_p): New functions.
6919 (read_name, read_constants, traverse_md_constants): Moved from
6922 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6924 * read-rtl.c (md_name): New structure.
6925 (read_name): Take an md_name instead of a buffer pointer.
6926 Use the "string" field instead of strcpy when expanding constants.
6927 (read_constants): Remove the tmp_char argument. Update the calls
6928 to read_name, using two local name buffers instead of the tmp_char
6929 argument. Merge the constant-creation code.
6930 (read_conditions): Remove the tmp_char argument. Update the calls
6931 to read_name, using a local name buffer instead of the tmp_char
6933 (read_mapping): Replace tmp_char variable with a local name buffer.
6934 Update the calls to read_name.
6935 (read_rtx_1): Likewise. Update the calls to read_constants and
6938 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6940 * Makefile.in (build/read-md.o): Depend on errors.h.
6941 * read-md.h (error_with_line): Declare.
6942 * read-md.c: Include errors.h.
6943 (message_with_line_1): New function, extracted from...
6944 (message_with_line): ...here.
6945 (error_with_line): New function.
6946 * genattrtab.c: If a call to message_with_line is followed by
6947 "have_error = 1;", replace both statements with a call to
6949 * genoutput.c: Likewise.
6950 * genpreds.c: Likewise.
6951 * genrecog.c: If a call to message_with_line is followed by
6952 "error_count++;", replace both statements with a call to
6954 (errorcount): Delete.
6955 (main): Don't check it.
6956 * gensupport.c: If a call to message_with_line is followed by
6957 "errors = 1;", replace both statements with a call to error_with_line.
6959 (process_define_cond_exec): Check have_error instead of errors.
6960 (init_md_reader_args_cb): Likewise. Don't set errors.
6962 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6964 * read-md.h (read_md_file): Declare.
6965 (read_char, unread_char): New functions.
6966 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6967 (read_quoted_string, read_string): Remove FILE * argument.
6968 * read-md.c (read_md_file): New variable.
6969 (read_md_filename, read_md_lineno): Update comments and remove
6970 unnecessary initialization.
6971 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
6972 (read_escape, read_quoted_string, read_braced_string, read_string):
6973 Remove FILE * argument. Update calls accordingly, using read_char
6974 and unread_char instead of getc and ungetc.
6975 * rtl.h (read_rtx): Remove FILE * argument.
6976 * read-rtl.c (iterator_group): Remove FILE * argument from
6978 (iterator_traverse_data): Remove "infile" field.
6979 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
6980 (add_mapping, read_name, read_constants, read_conditions)
6981 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
6982 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
6983 Remove file arguments from all calls, using read_char and unread_char
6984 instead of getc and ungetc.
6985 * gensupport.c (process_include): Preserve read_md_file around
6986 the include. Set read_md_file to the handle of the included file.
6987 Update call to read_rtx.
6988 (init_md_reader_args_cb): Set read_md_file to the handle of the file
6989 and remove local FILE *. Update calls to read_rtx.
6991 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
6993 * read-md.h (read_rtx_lineno): Rename to...
6994 (read_md_lineno): ...this.
6995 (read_rtx_filename): Rename to...
6996 (read_md_filename): ...this.
6997 (copy_rtx_ptr_loc): Rename to...
6998 (copy_md_ptr_loc): ...this.
6999 (print_rtx_ptr_loc): Rename to...
7000 (print_md_ptr_loc): ...this.
7001 * read-md.c: Likewise. Update references after renaming.
7002 (string_obstack): Replace RTL with MD in comment.
7003 (set_rtx_ptr_loc): Rename to...
7004 (set_md_ptr_loc): ...this.
7005 (get_rtx_ptr_loc): Rename to...
7006 (get_md_ptr_loc): ...this.
7007 * genconditions.c: Update references after renaming.
7008 * genemit.c: Likewise.
7009 * genoutput.c: Likewise.
7010 * genpreds.c: Likewise.
7011 * gensupport.c: Likewise.
7012 * read-rtl.c: Likewise.
7014 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
7016 * Makefile.in (READ_MD_H): New variable.
7017 (BUILD_RTL): Add build/read-md.o.
7018 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
7019 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
7020 (build/genattrtab.o, build/genconditions.o build/genemit.o)
7021 (build/genextract.o, build/genflags.o, build/genoutput.o)
7022 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
7023 (build/read-md.o): New rule.
7024 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
7025 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
7026 * coretypes.h: ...here.
7027 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
7028 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
7029 * genattr.c: Include read-md.h.
7030 * genattrtab.c: Likewise.
7031 * genconditions.c: Likewise.
7032 * genemit.c: Likewise.
7033 * genextract.c: Likewise.
7034 * genflags.c: Likewise.
7035 * genoutput.c: Likewise.
7036 * genpreds.c: Likewise.
7037 * genrecog.c: Likewise.
7038 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
7039 (join_c_conditions, print_c_condition, read_rtx_filename)
7040 (read_rtx_lineno): Move to read-md.h.
7041 * read-rtl.c: Include read-md.h.
7042 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
7043 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
7044 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
7045 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
7046 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
7047 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
7048 (read_braced_string, read_string): Move to read-md.c.
7049 (read_rtx): Move some initialization to init_md_reader and call
7050 init_md_reader here.
7051 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
7053 * gensupport.c: Include read-md.h.
7054 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
7055 * read-md.h, read-md.c: New files.
7057 2010-06-10 Anatoly Sokolov <aesok@post.ru>
7059 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7060 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7061 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
7062 * config/moxie/moxie.c (moxie_function_value): Make static.
7063 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
7064 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7066 2010-06-10 Martin Jambor <mjambor@suse.cz>
7068 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
7069 * dbgcnt.def (tree_sra): New counter.
7070 * tree-sra.c: Include dbgcnt.h.
7071 (gate_intra_sra): Check tree_sra debug counter.
7073 2010-06-10 Martin Jambor <mjambor@suse.cz>
7075 PR tree-optimization/44258
7076 * tree-sra.c (build_access_subtree): Return false iff there is a
7078 (build_access_trees): Likewise.
7079 (analyze_all_variable_accesses): Disqualify candidates if
7080 build_access_trees returns true for them.
7082 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
7085 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
7086 tail-recurse into canonical node. Fast-forward over
7087 non-canonical VALUEs.
7089 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
7092 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
7093 (*addsi_1_zext) <TYPE_LEA>: Likewise.
7094 (add lea splitter): Likewise.
7095 (add_zext lea splitter): Likewise.
7097 2010-06-10 Joseph Myers <joseph@codesourcery.com>
7099 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
7101 2010-06-10 Jan Hubicka <jh@suse.cz>
7103 * df-problems.c (df_live_problem_data): Add live_bitmaps.
7104 (df_live_alloc): Initialize problem data and live_osbtacks.
7105 (df_live_finalize): Remove obstack, problem data; do not
7107 (df_live_top_dump, df_live_bottom_dump): Do not dump old
7108 data when not allocated.
7109 (df_live_verify_solution_start): Do not allocate problem data.
7110 (df_live_verify_solution_end): Check if out is allocated.
7111 (struct df_md_problem_data): New structure.
7112 (df_md_alloc): Allocate problem data.
7113 (df_md_free): Free problem data; do not clear bitmaps.
7115 2010-06-10 Jan Beulich <jbeulich@novell.com>
7118 * configure.ac: Replace $() with ${} when intending to expand
7119 variables rather than invoking commands.
7120 * configure: Re-generate.
7122 2010-06-10 Jan Hubicka <jh@suse.cz>
7124 PR rtl-optimization/44460
7125 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7126 TYPE_NEEDS_CONSTRUCTING sanity check.
7128 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
7130 * doc/include/fdl.texi: Move to GFDL version 1.3.
7132 * doc/cpp.texi: Move to GFDL version 1.3.
7133 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
7134 * doc/gccint.texi: Move to GFDL version 1.3.
7135 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
7136 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
7137 * doc/invoke.texi: Move to GFDL version 1.3.
7139 2010-06-09 Jan Hubicka <jh@suse.cz>
7141 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
7143 (propagate) ... here; swap the order.
7145 2010-06-09 Jan Hubicka <jh@suse.cz>
7147 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
7148 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
7149 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
7150 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
7152 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
7154 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
7155 Do not the gather memory reference in the outer loop if the step
7158 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
7160 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
7161 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
7162 8 to 4. Minor change of the related comments.
7164 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
7166 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
7167 the scev analysis when the variable is not used outside the loop
7168 in a close phi node: call compute_overall_effect_of_inner_loop.
7170 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
7172 * graphite-sese-to-poly.c (single_pred_cond): Renamed
7173 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
7174 (build_sese_conditions_before): Renamed call to single_pred_cond.
7175 (build_sese_conditions_after): Same.
7177 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
7179 * graphite-poly.h: Fix comments and indentation.
7180 * graphite-sese-to-poly.c: Same.
7181 (build_sese_conditions_before): Compute stmt and gbb only when needed.
7182 * tree-chrec.c: Fix comments and indentation.
7183 (tree-ssa-loop-niter.c): Same.
7185 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
7187 PR rtl-optimization/42461
7188 * dce.c (deletable_insn_p): Return true for const or pure calls again.
7189 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
7191 2010-06-09 Jan Hubicka <jh@suse.cz>
7193 * bitmap.c (bitmap_and): Walk array forward.
7194 (bitmap_and_compl_into): Likewise.
7195 (bitmap_xor): Likewise.
7196 (bitmap_xor_into): Likewise.
7197 (bitmap_equal_p): Likewise.
7198 (bitmap_intersect_p): Likewise.
7199 (bitmap_intersect_compl_p): Likewise.
7200 (bitmap_ior_and_into): Likewise.
7201 (bitmap_elt_copy): Likewise.
7202 (bitmap_and_compl): Likewise.
7203 (bitmap_elt_ior): Likewise.
7205 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
7207 * opts-common.c (prune_options): Ensure replacement argv array
7208 is correctly terminated by a NULL entry.
7210 2010-06-09 Jan Hubicka <jh@suse.cz>
7212 * cgraph.h (varpool_first_static_initializer,
7213 varpool_next_static_initializer): Make checking only when
7215 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
7216 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
7217 gcc_assert to gcc_checking_assert.
7218 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
7219 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
7220 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
7221 op_iter_init_phiuse, op_iter_init_phidef,
7222 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
7223 gcc_checking_assert.
7224 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
7225 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
7226 partition_is_global, live_on_entry, live_on_exit,
7227 live_merge_and_clear): Likewise.
7228 * system.h (gcc_checking_assert): New macro.
7229 * gimple.h (set_bb_seq): Use gcc_checking_assert.
7231 2010-06-09 Jason Merrill <jason@redhat.com>
7233 * Makefile.in (TAGS): Collect tags info from c-family.
7235 2010-06-09 Jan Hubicka <jh@suse.cz>
7237 * gimple.h (gcc_gimple_checking_assert): New macro.
7238 (gimple_set_def_ops, gimple_set_use_ops,
7239 gimple_set_vuse, gimple_set_vdef,
7240 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
7241 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
7242 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
7243 gimple_asm_output_op, gimple_asm_output_op_ptr,
7244 gimple_asm_set_output_op, gimple_asm_clobber_op,
7245 gimple_asm_set_clobber_op, gimple_asm_label_op,
7246 gimple_asm_set_label_op, gimple_try_set_kind,
7247 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
7248 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
7249 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
7250 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
7251 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
7252 gimple_omp_for_set_initial, gimple_omp_for_final,
7253 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
7254 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
7255 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
7256 conditional with ENABLE_GIMPLE_CHECKING.
7257 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
7259 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
7261 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
7262 (get_computation_cost_at): Use it.
7263 (determine_use_iv_cost_condition): Likewise.
7264 (determine_iv_cost): Likewise.
7266 2010-06-09 Richard Guenther <rguenther@suse.de>
7268 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
7271 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
7273 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
7275 2010-06-09 Martin Jambor <mjambor@suse.cz>
7277 PR tree-optimization/44423
7278 * tree-sra.c (dump_access): Dump also grp_assignment_read.
7279 (analyze_access_subtree): Pass negative allow_replacements to children
7280 if the current type is scalar.
7282 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
7285 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
7286 * doc/plugins.texi (Plugin license check): Update information
7287 on type of plugin_is_GPL_compatible.
7288 * Makefile.in (PLUGINCC): Define as $(COMPILER).
7289 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
7291 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
7293 * config/arm/arm.c (thumb2_reorg): New function.
7294 (arm_reorg): Call it.
7295 * config/arm/thumb2.md (define_peephole2 for flag clobbering
7296 arithmetic operations): Delete.
7298 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
7301 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
7304 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
7307 * gcc-plugin.h: Encapsulate all declarations in extern "C".
7309 2010-06-08 Jan Hubicka <jh@suse.cz>
7311 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
7312 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
7314 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
7316 PR tree-optimization/39874
7318 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
7320 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
7321 same_bool_result_p): New.
7322 (and_var_with_comparison, and_var_with_comparison_1,
7323 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
7324 (or_var_with_comparison, or_var_with_comparison_1,
7325 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
7326 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
7327 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
7328 of combine_comparisons.
7329 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
7331 2010-06-08 Anatoly Sokolov <aesok@post.ru>
7333 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7334 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7335 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
7336 pdp11_function_value_regno_p): New functions.
7337 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7338 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7340 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
7342 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
7343 Thumb-2 in the MINUS case.
7345 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7347 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
7349 * doc/gty.texi (GTY Options): Document typed GC allocation and
7350 variable_size GTY option.
7352 * ggc-internal.h: New.
7354 * ggc.h: Update copyright year.
7355 (digit_string): Move to stringpool.c.
7356 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
7357 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
7358 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
7359 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
7360 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
7361 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
7362 (ggc_force_collect, ggc_get_size, ggc_statistics)
7363 (ggc_print_common_statistics): Move to ggc-internal.h.
7364 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
7365 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
7366 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
7367 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
7368 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
7369 (ggc_alloc_zone_pass_stat): Remove.
7370 (ggc_internal_alloc_stat, ggc_internal_alloc)
7371 (ggc_internal_cleared_alloc_stat): New.
7372 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
7373 (ggc_internal_vec_alloc_stat)
7374 (ggc_internal_cleared_vec_alloc_stat)
7375 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
7376 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
7377 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
7378 (ggc_cleared_alloc_ptr_array_two_args): New.
7379 (htab_create_ggc, splay_tree_new_ggc): Redefine.
7380 (ggc_splay_alloc): Change the type of the first argument to
7382 (ggc_alloc_string): Make macro.
7383 (ggc_alloc_string_stat): New.
7384 (ggc_strdup): Redefine.
7385 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
7386 (ggc_alloc_rtvec_sized): New.
7387 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
7388 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
7389 (ggc_internal_cleared_alloc_zone_stat)
7390 (ggc_internal_zone_alloc_stat)
7391 (ggc_internal_zone_cleared_alloc_stat)
7392 (ggc_internal_zone_vec_alloc_stat)
7393 (ggc_alloc_zone_rtx_def_stat)
7394 (ggc_alloc_zone_tree_node_stat)
7395 (ggc_alloc_zone_cleared_tree_node_stat)
7396 (ggc_alloc_cleared_gimple_statement_d_stat): New.
7398 * ggc-common.c: Include ggc-internal.h.
7399 (ggc_internal_cleared_alloc_stat): Rename from
7400 ggc_alloc_cleared_stat.
7401 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
7402 (ggc_calloc): Remove.
7403 (ggc_cleared_alloc_htab_ignore_args): New.
7404 (ggc_cleared_alloc_ptr_array_two_args): New.
7405 (ggc_splay_alloc): Add obj_type parameter.
7406 (init_ggc_heuristics): Formatting fixes.
7408 * ggc-none.c: Update copyright year.
7409 (ggc_alloc_stat): Rename to ggc_alloc_stat.
7410 (ggc_alloc_cleared_stat): Rename to
7411 ggc_internal_cleared_alloc_stat.
7412 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
7414 * ggc-page.c: Update copyright year. Include ggc-internal.h.
7415 Remove references to ggc_alloc in comments.
7416 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
7417 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
7418 (new_ggc_zone, destroy_ggc_zone): Remove.
7419 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
7421 * ggc-zone.c: Include ggc-internal.h. Remove references to
7422 ggc_alloc in comments.
7423 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
7424 (ggc_internal_alloc_zone_pass_stat): New.
7425 (ggc_internal_cleared_alloc_zone_stat): New.
7426 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
7427 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
7428 (new_ggc_zone, destroy_ggc_zone): Remove.
7430 * stringpool.c: Update copyright year. Include ggc-internal.h
7431 (digit_vector): Make static.
7432 (digit_string): Moved from ggc.h.
7433 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
7434 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
7436 * Makefile.in (GGC_INTERNAL_H): New.
7437 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
7438 $(GGC_INTERNAL_H) to dependencies.
7440 * gentype.c: Update copyright year.
7441 (walk_type): Accept variable_size GTY option.
7442 (USED_BY_TYPED_GC_P): New macro.
7443 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
7444 whitespace at the end of strings.
7445 (get_type_specifier, variable_size_p): New functions.
7446 (alloc_quantity, alloc_zone): New enums.
7447 (write_typed_alloc_def): New function.
7448 (write_typed_struct_alloc_def): Likewise.
7449 (write_typed_typed_typedef_alloc_def): Likewise.
7450 (write_typed_alloc_defns): Likewise.
7451 (output_typename, write_splay_tree_allocator_def): Likewise.
7452 (write_splay_tree_allocators): Likewise.
7453 (main): Call write_typed_alloc_defns and
7454 write_splay_tree_allocators.
7456 * lto-streamer.h (lto_file_decl_data_ptr): New.
7458 * passes.c (order): Define using cgraph_node_ptr.
7460 * strinpool.c (struct string_pool_data): Declare nested_ptr using
7463 * gimple.h (union gimple_statement_d): Likewise.
7465 * rtl.h (struct rtx_def): Likewise.
7466 (struct rtvec_def): Likewise.
7468 * tree.h (union tree_node): Likewise.
7470 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
7472 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
7474 * tree-scalar-evolution.c (scev_initialize): Likewise.
7476 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
7478 * dwarf2asm.c (dw2_force_const_mem): Likewise.
7480 * omp-low.c (lower_omp_critical): Likewise.
7482 * bitmap.h (struct bitmap_head_def): Update comment to not
7483 reference ggc_alloc.
7485 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
7487 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
7489 * ipa-prop.c (duplicate_ggc_array): Rename to
7490 duplicate_ipa_jump_func_array. Use typed GC allocation.
7491 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
7493 * gimple.c (gimple_alloc_stat): Use
7494 ggc_alloc_cleared_gimple_statement_d_stat.
7496 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
7498 * tree.c (make_node_stat): Use
7499 ggc_alloc_zone_cleared_tree_node_stat.
7500 (make_tree_vec_stat): Likewise.
7501 (build_vl_exp_stat): Likewise.
7502 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
7503 (make_tree_binfo_stat): Likewise.
7504 (tree_cons_stat): Likewise.
7506 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
7507 (shallow_copy_rtx_stat): Likewise.
7508 (make_node_stat): Likewise.
7510 * lto-symtab.c: Fix comment.
7512 * tree-cfg.c (create_bb): Update comment to not reference
7514 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
7516 * varpool.c (varpool_node): Use typed GC allocation.
7517 (varpool_extra_name_alias): Likewise.
7519 * varasm.c (emutls_decl): Likewise.
7520 (get_unnamed_section): Likewise.
7521 (get_noswitch_section): Likewise.
7522 (get_section): Likewise.
7523 (get_block_for_section): Likewise.
7524 (build_constant_desc): Likewise.
7525 (create_constant_pool): Likewise.
7526 (force_const_mem): Likewise.
7528 * tree.c (build_vl_exp_stat): Likewise.
7529 (build_real): Likewise.
7530 (build_string): Likewise.
7531 (decl_debug_expr_insert): Likewise.
7532 (decl_value_expr_insert): Likewise.
7533 (type_hash_add): Likewise.
7534 (build_omp_clause): Likewise.
7536 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
7538 * tree-ssa.c (init_tree_ssa): Likewise.
7540 * tree-ssa-structalias.c (heapvar_insert): Likewise.
7542 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
7544 * tree-ssa-loop-niter.c (record_estimate): Likewise.
7546 * tree-ssa-alias.c (get_ptr_info): Likewise.
7548 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
7550 * tree-phinodes.c (allocate_phi_node): Likewise.
7552 * tree-iterator.c (tsi_link_before): Likewise.
7553 (tsi_link_after): Likewise.
7555 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
7557 * tree-dfa.c (create_var_ann): Likewise.
7559 * tree-cfg.c (create_bb): Likewise.
7561 * toplev.c (alloc_for_identifier_to_locale): Likewise.
7562 (general_init): Likewise.
7564 * stringpool.c (stringpool_ggc_alloc): Likewise.
7565 (gt_pch_save_stringpool): Likewise.
7567 * sese.c (if_region_set_false_region): Likewise.
7569 * passes.c (do_per_function_toporder): Likewise.
7571 * optabs.c (set_optab_libfunc): Likewise.
7572 (set_conv_libfunc): Likewise.
7574 * lto-symtab.c (lto_symtab_register_decl): Likewise.
7576 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
7577 (input_eh_region): Likewise.
7578 (input_eh_lp): Likewise.
7579 (make_new_block): Likewise.
7580 (unpack_ts_real_cst_value_fields): Likewise.
7582 * lto-section-in.c (lto_new_in_decl_state): Likewise.
7584 * lto-cgraph.c (input_node_opt_summary): Likewise.
7586 * loop-init.c (loop_optimizer_init): Likewise.
7588 * lambda.h (lambda_vector_new): Likewise.
7590 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
7592 * ira.c (update_equiv_regs): Likewise.
7594 * ipa.c (cgraph_node_set_new): Likewise.
7595 (cgraph_node_set_add): Likewise.
7596 (varpool_node_set_new): Likewise.
7597 (varpool_node_set_add): Likewise.
7599 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
7600 (duplicate_ipa_jump_func_array): Likewise.
7601 (ipa_read_node_info): Likewise.
7603 * ipa-cp.c (ipcp_create_replace_map): Likewise.
7605 * integrate.c (get_hard_reg_initial_val): Likewise.
7607 * gimple.c (gimple_alloc_stat): Likewise.
7608 (gimple_build_omp_for): Likewise.
7609 (gimple_seq_alloc): Likewise.
7610 (gimple_copy): Likewise.
7612 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
7613 (gsi_insert_after_without_update): Likewise.
7615 * function.c (add_frame_space): Likewise.
7616 (insert_temp_slot_address): Likewise.
7617 (assign_stack_temp_for_type): Likewise.
7618 (allocate_struct_function): Likewise.
7619 (types_used_by_var_decl_insert): Likewise.
7621 * except.c (init_eh_for_function): Likewise.
7622 (gen_eh_region): Likewise.
7623 (gen_eh_region_catch): Likewise.
7624 (gen_eh_landing_pad): Likewise.
7625 (add_call_site): Likewise.
7627 * emit-rtl.c (get_mem_attrs): Likewise.
7628 (get_reg_attrs): Likewise.
7629 (start_sequence): Likewise.
7630 (init_emit): Likewise.
7632 * dwarf2out.c (new_cfi): Likewise.
7633 (queue_reg_save): Likewise.
7634 (dwarf2out_frame_init): Likewise.
7635 (new_loc_descr): Likewise.
7636 (find_AT_string): Likewise.
7637 (new_die): Likewise.
7638 (add_var_loc_to_decl): Likewise.
7639 (clone_die): Likewise.
7640 (clone_as_declaration): Likewise.
7641 (break_out_comdat_types): Likewise.
7642 (new_loc_list): Likewise.
7643 (loc_descriptor): Likewise.
7644 (add_loc_descr_to_each): Likewise.
7645 (add_const_value_attribute): Likewise.
7646 (tree_add_const_value_attribute): Likewise.
7647 (add_comp_dir_attribute): Likewise.
7648 (add_name_and_src_coords_attributes): Likewise.
7649 (lookup_filename): Likewise.
7650 (store_vcall_insn): Likewise.
7651 (dwarf2out_init): Likewise.
7653 * dbxout.c (dbxout_init): Likewise.
7655 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
7657 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
7659 * config/score/score7.c (score7_output_external): Likewise.
7661 * config/score/score3.c (score3_output_external): Likewise.
7663 * config/s390/s390.c (s390_init_machine_status): Likewise.
7665 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
7666 (rs6000_init_machine_status): Likewise.
7667 (output_toc): Likewise.
7669 * config/pa/pa.c (pa_init_machine_status): Likewise.
7670 (get_deferred_plabel): Likewise.
7672 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
7674 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
7676 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
7678 * config/mep/mep.c (mep_init_machine_status): Likewise.
7679 (mep_note_pragma_flag): Likewise.
7681 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
7683 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
7685 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
7687 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
7688 (i386_pe_maybe_record_exported_symbol): Likewise.
7690 * config/i386/i386.c (get_dllimport_decl): Likewise.
7691 (ix86_init_machine_status): Likewise.
7692 (assign_386_stack_local): Likewise.
7694 * config/frv/frv.c (frv_init_machine_status): Likewise.
7696 * config/darwin.c (machopic_indirection_name): Likewise.
7698 * config/cris/cris.c (cris_init_machine_status): Likewise.
7700 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
7702 * config/avr/avr.c (avr_init_machine_status): Likewise.
7704 * config/arm/arm.c (arm_init_machine_status): Likewise.
7706 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
7707 (alpha_need_linkage): Likewise.
7708 (alpha_use_linkage): Likewise.
7710 * cgraph.c (cgraph_allocate_node): Likewise.
7711 (cgraph_create_edge_1): Likewise.
7712 (cgraph_create_indirect_edge): Likewise.
7713 (cgraph_add_asm_node): Likewise.
7715 * cfgrtl.c (init_rtl_bb_info): Likewise.
7717 * cfgloop.c (alloc_loop): Likewise.
7718 (rescan_loop_exit): Likewise.
7720 * cfg.c (init_flow): Likewise.
7721 (alloc_block): Likewise.
7722 (unchecked_make_edge): Likewise.
7724 * c-parser.c (c_parse_init): Likewise.
7725 (c_parse_file): Likewise.
7727 * c-decl.c (bind): Likewise.
7728 (record_inline_static): Likewise.
7729 (push_scope): Likewise.
7730 (make_label): Likewise.
7731 (lookup_label_for_goto): Likewise.
7732 (finish_struct): Likewise.
7733 (finish_enum): Likewise.
7734 (c_push_function_context): Likewise.
7736 * bitmap.c (bitmap_element_allocate): Likewise.
7737 (bitmap_gc_alloc_stat): Likewise.
7739 * alias.c (record_alias_subset): Likewise.
7740 (init_alias_analysis): Likewise.
7742 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
7744 * fold-const.c (fold_comparison): Remove redundant parenthesis.
7745 * tree-inline.c (expand_call_inline): Pass translated return value of
7746 cgraph_inline_failed_string to diagnostic function.
7748 2010-06-08 Andrew Pinski <pinskia@gmail.com>
7749 Shujing Zhao <pearly.zhao@oracle.com>
7752 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
7753 implicit bad conversions is initialization.
7754 (error_init): Use gmsgid instead of msgid for argument name and change
7756 (pedwarn_init): Use gmsgid instead of msgid for argument name and
7757 change the call for pedwarn.
7758 (warning_init): Use gmsgid instead of msgid for argument name and
7759 change the call for warning.
7761 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
7763 * config/mips/mips-protos.h (mips_print_operand): Delete.
7764 (mips_print_operand_address): Delete.
7765 * config/mips/mips.h (mips_print_operand_punct): Delete.
7766 (PRINT_OPERAND): Delete.
7767 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7768 (PRINT_OPERAND_ADDRESS): Delete.
7769 * config/mips/mips.c (mips_print_operand_punct): Make static.
7770 (mips_print_operand_address): Make static.
7771 (mips_print_operand): Make static. Call
7772 mips_print_operand_punct_valid_p.
7773 (mips_print_operand_punct_valid_p): New function.
7774 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7775 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7777 2010-06-07 Jan Hubicka <jh@suse.cz>
7780 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
7783 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
7785 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
7788 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7790 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7791 attributes): Document gas.
7793 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
7795 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
7796 <TYPE_LEA>: Split instruction.
7797 <default>: Remove alternative 2 handling.
7798 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
7799 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
7800 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
7802 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
7803 (ashift_zext lea splitter): Use DImode for multiplication.
7805 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
7806 to generate addition.
7808 2010-06-07 Joseph Myers <joseph@codesourcery.com>
7810 * common.opt (fira-verbose): Use Var.
7811 (fpcc-struct-return): Use Init instead of VarExists.
7812 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
7814 * flags.h (flag_signed_char, flag_short_enums,
7815 flag_pcc_struct_return, flag_ira_verbose,
7816 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
7817 * toplev.c (flag_detailed_statistics, flag_signed_char,
7818 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
7819 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
7820 * toplev.h (flag_crossjumping, flag_if_conversion,
7821 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
7822 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
7823 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
7824 flag_cprop_registers, time_report, flag_ira_loop_pressure,
7825 flag_ira_coalesce, flag_ira_move_spills,
7826 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
7828 2010-06-07 Jan Hubicka <jh@suse.cz>
7830 * df-core.c (df_analyze_problem): Do verification after allocation.
7832 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
7833 (df_lr_alloc): Initialize problem data; move bitmaps to
7835 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
7836 (df_lr_verify_solution_start): Do not initialize problem data;
7837 allocate bitmaps in lr_bitmaps.
7838 (df_lr_verify_solution_end): Do not free problem data.
7840 2010-06-07 Jan Hubicka <jh@suse.cz>
7842 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
7843 if caller is noreturn.
7844 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
7845 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
7846 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
7847 * ipa-pure-const.c (check_decl): Add IPA parameter.
7848 (state_from_flags): New function.
7849 (better_state, worse_state): New functions.
7850 (check_call): When in IPA mode, do not care about callees.
7851 (check_load, check_store): Update.
7852 (check_ipa_load, check_ipa_store): New.
7853 (check_stmt): When in IPA mode, use IPA checkers.
7854 (analyze_function): Use state_from_flags.
7855 (propagate): Check indirect edges and references.
7857 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
7859 PR rtl-optimization/44404
7860 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
7861 of count_occurrences to see if it's safe to modify mem_insn.
7863 2010-06-07 Richard Guenther <rguenther@suse.de>
7865 * gimplify.c (gimplify_cleanup_point_expr): For empty body
7866 and EH-only cleanup drop the cleanup instead of inserting it
7869 2010-06-07 Ira Rosen <irar@il.ibm.com>
7871 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
7873 * targhooks.c (default_builtin_vectorization_cost): New function.
7874 * targhooks.h (default_builtin_vectorization_cost): Declare.
7875 * target.h (enum vect_cost_for_stmt): Define.
7876 (builtin_vectorization_cost): Change argument and comment.
7877 * tree-vectorizer.h: Remove cost model macros.
7878 * tree-vect-loop.c: Include target.h.
7879 (vect_get_cost): New function.
7880 (vect_estimate_min_profitable_iters): Replace cost model macros with
7881 calls to vect_get_cost.
7882 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
7883 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
7884 default implementation.
7885 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
7886 calls to target hook builtin_vectorization_cost.
7887 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
7889 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
7890 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
7891 implementation to return costs.
7892 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7893 * config/spu/spu.h: Remove vectorizer cost model macros.
7894 * config/i386/i386.h: Likewise.
7895 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
7896 a call to target hook builtin_vectorization_cost.
7898 2010-06-06 Sriraman Tallam <tmsriram@google.com>
7901 * config/i386/i386.c (override_options): Turn zee pass on for level 2
7902 and above and defer till target is known.
7903 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
7906 2010-05-25 Jan Hubicka <jh@suse.cz>
7908 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
7909 (df_compact_blocks): Likewise.
7910 * df.h (struct df): Turn hardware_regs_used,
7911 regular_block_artificial_uses, eh_block_artificial_uses,
7912 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
7914 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
7915 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
7916 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
7917 df_scan_blocks, df_insn_delete, df_insn_rescan,
7918 df_insn_rescan_debug_internal, df_insn_rescan_all,
7919 df_process_deferred_rescans, df_process_deferred_rescans,
7920 df_notes_rescan, df_get_call_refs, df_get_call_refs,
7921 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
7922 df_record_entry_block_defs, df_record_exit_block_uses,
7923 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
7924 df_scan_verify): Update.
7926 2010-05-25 Dodji Seketeli <dodji@redhat.com>
7929 * c-common.c (is_typedef_decl): Move this definition ...
7930 * tree.c (is_typedef_decl): ... here.
7931 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7932 * c-common.h (is_typedef_decl): Move this declaration ...
7933 * tree.h (is_typedef_decl): ... here.
7934 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7935 * dwarf2out.c (is_naming_typedef_decl): New function.
7936 (gen_tagged_type_die): Split out of ...
7937 (gen_type_die_with_usage): ... this function. When an anonymous
7938 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7939 is emitted for the typedef.
7940 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7941 anonymous tagged types.
7943 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7946 * c-decl.c (grokdeclarator): Delete warning.
7948 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
7950 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
7951 newly built CALL_EXPR.
7952 * tree-profile.c (tree_profiling): Don't profile functions produced
7955 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
7959 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
7960 endianness-independent.
7962 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
7964 * c-common.c: Move to c-family/.
7965 * c-common.def: Likewise.
7966 * c-common.h: Likewise.
7967 * c-cppbuiltin.c: Likewise.
7968 * c-dump.c: Likewise.
7969 * c-format.c: Likewise.
7970 * c-format.h : Likewise.
7971 * c-gimplify.c: Likewise.
7972 * c-lex.c: Likewise.
7973 * c-omp.c: Likewise.
7975 * c-opts.c: Likewise.
7976 * c-pch.c: Likewise.
7977 * c-ppoutput.c: Likewise.
7978 * c-pragma.c: Likewise.
7979 * c-pragma.h: Likewise.
7980 * c-pretty-print.c: Likewise.
7981 * c-pretty-print.h: Likewise.
7982 * c-semantics.c: Likewise.
7983 * stub-objc.c: Likewise.
7985 * gengtype.c (get_file_langdir): Special-case files in c-family/.
7986 (get_output_file_with_visibility): Fix name for c-common.h.
7987 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
7989 * c-tree.h: Update include path for moved files.
7990 * c-lang.c: Likewise.
7991 * c-lang.h: Likewise.
7992 * c-parser.c: Likewise.
7993 * c-convert.c: Likewise.
7994 * c-decl.c: Likewise.
7995 * c-objc-common.c: Likewise.
7996 * configure.ac: Make sure c-family/ exists in the build directory.
7997 * configure: Regenerate.
7998 * Makefile.in: Update paths for moved files. Regroup files per
7999 location and update dependencies. Move generated_files down after
8002 * config/spu/spu-c.c: Update paths for moved files.
8003 * config/mep/mep-pragma.c: Likewise.
8004 * config/darwin-c.c: Likewise.
8005 * config/i386/msformat-c.c: Likewise.
8006 * config/i386/i386-c.c: Likewise.
8007 * config/avr/avr-c.c: Likewise.
8008 * config/sol2-c.c: Likewise.
8009 * config/ia64/ia64-c.c: Likewise.
8010 * config/rs6000/rs6000-c.c: Likewise.
8011 * config/arm/arm.c: Likewise.
8012 * config/arm/arm-c.c: Likewise.
8013 * config/h8300/h8300.c: Likewise.
8014 * config/v850/v850-c.c: Likewise.
8016 * config/t-darwin: Fix dependencies for moved files.
8017 * config/t-sol2: Fix dependencies for moved files.
8018 * config/mep/t-mep: Fix dependencies for moved files.
8019 * config/ia64/t-ia64: Fix dependencies for moved files.
8020 * config/rs6000/t-rs6000: Fix dependencies for moved files.
8021 * config/v850/t-v850: Fix dependencies for moved files.
8022 * config/v850/t-v850e: Fix dependencies for moved files.
8024 * config/m32c/m32c-pragma.c
8026 * po/exgettext: Look in c-family/ also.
8028 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
8030 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
8031 (mark_control_dependent_edges_necessary): Call it instead of marking
8032 the last statement manually.
8033 (propagate_necessity): Likewise.
8035 2010-06-05 Jan Hubicka <jh@suse.cz>
8037 * basic-block.h (compute_dominance_frontiers): Updated.
8038 (compute_idf): Likewise.
8040 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
8041 for dominance frontiers.
8042 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
8043 (insert_updated_phi_nodes_for): Likewise.
8044 (update_ssa): Likewise.
8045 * cfganal.c (compute_dominance_frontiers_1): Likewise.
8046 (compute_dominance_frontiers): Likewise.
8047 (compute_idf): Likewise.
8048 * df-problems.c (df_md_local_compute): Likewise.
8050 2010-06-05 Anatoly Sokolov <aesok@post.ru>
8052 * target.h (struct gcc_target): Add memory_move_cost field.
8053 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
8054 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
8055 * targhooks.c (default_memory_move_cost): New function.
8056 * targhooks.h (default_memory_move_cost): Declare function.
8057 * reload.h (memory_move_cost): Declare.
8058 (memory_move_secondary_cost): Change type of 'in' argument to bool.
8059 * reginfo.c (memory_move_cost): New function.
8060 (memory_move_secondary_cost): Change type of 'in' argument to bool.
8061 * ira.h (ira_memory_move_cost): Update comment.
8062 * ira.c (ira_memory_move_cost): Update comment.
8063 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
8064 with memory_move_cost.
8065 * postreload.c (reload_cse_simplify_set): (Ditto.).
8066 * reload1.c (choose_reload_regs): (Ditto.).
8067 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
8068 (MEMORY_MOVE_COST): Revise documentation.
8070 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
8071 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
8072 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
8073 type of 'in' argument to bool.
8074 (TARGET_MEMORY_MOVE_COST): Define.
8076 2010-06-05 Jan Hubicka <jh@suse.cz>
8078 * ipa-pure-const.c (propagate): Fix typo in handling of functions
8079 that cannot return. Be more careful when merging the results with
8080 previously known ones.
8082 2010-06-05 Matthias Klose <doko@ubuntu.com>
8084 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
8085 function to add the -iplugindir option.
8086 (find_plugindir_spec_function): Add new declaration and function.
8087 (static_spec_func): Use it for "find-plugindir".
8089 2010-06-05 Jakub Jelinek <jakub@redhat.com>
8092 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
8093 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
8094 statement expression.
8096 2010-06-05 Jan Hubicka <jh@suse.cz>
8098 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
8099 (df_rd_problem_data): Convert sparse_invalidated_by_call,
8100 dense_invalidated_by_call to bitmap head.
8101 (df_rd_alloc, df_rd_bb_local_compute_process_def,
8102 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
8103 df_rd_start_dump, df_lr_verify_transfer_functions,
8104 df_live_verify_transfer_functions, df_chain_create_bb,
8105 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
8106 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
8107 df_simulate_one_insn_forwards, df_md_alloc,
8108 df_md_bb_local_compute_process_def,
8109 df_md_bb_local_compute_process_def, df_md_local_compute,
8110 df_md_transfer_function df_md_free): Update.
8112 2010-06-05 Joseph Myers <joseph@codesourcery.com>
8115 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
8116 target type for ADDR_EXPR; require no changes to qualifiers except
8118 * c-tree.h (c_build_type_variant): Remove.
8120 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
8122 * genautomata.c (get_excl_set): Do work per element, not per char.
8123 (check_presence_pattern_sets): Similar.
8124 (check_absence_pattern_sets): Similar.
8126 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
8128 * genautomata.c (curr_state_pass_num): Delete.
8129 (min_issue_delay_pass_states): Delete.
8130 (min_issue_delay): Delete.
8131 (initiate_min_issue_delay_pass_states): Delete.
8132 (output_min_issue_delay_table): Compute min_issue_delay_vect
8133 using a breadth-first search variant.
8134 (output_tables): Don't call initiate_min_issue_delay_pass_states.
8136 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
8139 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
8140 (df_byte_lr_bb_local_compute): Likewise.
8142 2010-06-03 Jason Merrill <jason@redhat.com>
8144 Implement noexcept operator (5.3.7)
8145 * c-common.c (c_common_reswords): Add noexcept.
8146 * c-common.h (enum rid): Add RID_NOEXCEPT.
8148 2010-06-04 Joseph Myers <joseph@codesourcery.com>
8150 * config/darwin-driver.c (darwin_default_min_version): Use
8151 GCC-specific formats in diagnostics.
8152 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
8154 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
8155 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
8156 eval_spec_function, handle_braces, process_brace_body, main,
8157 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
8158 getenv_spec_function, compare_version_strings,
8159 version_compare_spec_function): Use GCC-specific formats in
8162 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
8164 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
8165 that operand 0 and operand 1 are equal.
8166 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
8167 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
8168 and operand 1 are equal.
8169 <default>: Ditto. Remove ??? comment.
8170 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
8171 and operand 1 are equal.
8172 <default>: Ditto. Remove ??? comment.
8173 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
8175 (*add<mode>_4) <default>: Ditto.
8176 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
8178 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
8180 * config/i386/i386-protos.h (ix86_print_operand): Declare.
8181 * config/i386/i386.c (ix86_print_operand): Make non-static.
8182 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
8183 * output.h (output_operand): Declare.
8184 * final.c (output_operand): Make non-static.
8186 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
8188 PR rtl-optimization/44013
8189 * sched-deps.c (add_dependence_list_and_free): Don't free lists
8190 when processing debug insns.
8193 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
8194 recursing. Check that recursion is bounded. Rename inner var
8195 to avoid hiding incoming argument.
8197 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
8199 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
8204 (*addqi_ext_1_rex64): Ditto.
8205 (*addqi_ext_1): Ditto.
8207 (*addqi_4): Check for incdec_operand in QImode.
8209 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
8210 using SWI mode iterator.
8211 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
8212 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
8214 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
8215 using SWI mode iterator.
8217 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
8220 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
8221 * c-format.c (gcc_diag_flag_specs): Add hash.
8222 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
8223 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
8224 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
8225 pp_c_cv_qualifiers. Handle qualifiers spelling here.
8226 (pp_c_type_qualifier_list): Call the function above.
8227 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
8228 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
8229 (WARN_FOR_QUALIFIERS): New macro.
8230 (convert_for_assignment): Use it.
8232 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
8234 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
8236 2010-06-04 Jan Hubicka <jh@suse.cz>
8238 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
8239 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
8240 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
8241 DF_BYTE_LR_OUT): Update for embedded bitmaps.
8242 * fwprop.c (single_def_use_enter_block): Likewise.
8243 * ddg.c (create_ddg_dep_from_intra_loop_link,
8244 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
8245 * loop-iv.c (latch_dominating_def): Likewise.
8246 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
8247 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
8248 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
8249 df_rd_transfer_function, df_rd_top_dump,
8250 df_rd_bottom_dump): Update.
8251 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
8252 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
8253 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
8254 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
8255 df_lr_verify_solution_start, df_lr_verify_solution_end,
8256 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
8257 df_live_free_bb_info, df_live_alloc, df_live_reset,
8258 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
8259 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
8260 df_live_verify_solution_start, df_live_verify_solution_end,
8261 df_live_verify_transfer_functions, df_chain_create_bb,
8262 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
8263 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8264 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
8265 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
8266 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
8267 df_byte_lr_transfer_function, df_byte_lr_top_dump,
8268 df_byte_lr_bottom_dump, df_create_unused_note,
8269 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
8270 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
8271 df_md_transfer_function, df_md_init, df_md_confluence_0,
8273 df_md_top_dump, df_md_bottom_dump): Update.
8274 (struct df_lr_problem_data): Embedd bitmap headers.
8276 2010-06-04 Jan Hubicka <jh@suse.cz>
8278 * dce.c (dce_process_block): Do not re-scan already marked
8281 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
8283 PR rtl-optimization/39871
8284 PR rtl-optimization/40615
8285 PR rtl-optimization/42500
8286 PR rtl-optimization/42502
8287 * ira.c (init_reg_equiv_memory_loc: New function.
8288 (ira): Call it twice.
8289 * reload.h (calculate_elim_costs_all_insns): Declare.
8290 * ira-costs.c: Include "reload.h".
8291 (regno_equiv_gains): New static variable.
8292 (init_costs): Allocate it.
8293 (finish_costs): Free it.
8294 (ira_costs): Call calculate_elim_costs_all_insns.
8295 (find_costs_and_classes): Take estimated elimination costs
8297 (ira_adjust_equiv_reg_cost): New function.
8298 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
8299 * reload1.c (init_eliminable_invariants, free_reg_equiv,
8300 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
8301 (elim_bb): New static variable.
8302 (reload): Move code out of here into init_eliminable_invariants and
8303 free_reg_equiv. Call them.
8304 (calculate_elim_costs_all_insns): New function.
8305 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
8306 all callers changed. If FOR_COSTS is true, don't call alter_reg,
8307 but call note_reg_elim_costly if we turned a valid memory address
8308 into an invalid one.
8309 * Makefile.in (ira-costs.o): Depend on reload.h.
8311 2010-06-04 Julian Brown <julian@codesourcery.com>
8313 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
8316 2010-06-04 Richard Guenther <rguenther@suse.de>
8319 * cgraph.h (struct varpool_node): Add lto_file_data field.
8320 * lto-cgraph.c (input_varpool_node): Initialize it.
8322 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
8324 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
8325 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
8326 predicate in "type" attribute calculation.
8327 (*addsi_1_zext): Ditto.
8328 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
8329 (*addsi_2_zext): Ditto.
8330 (*add<mode>_3): Ditto.
8331 (*addsi_3_zext): Ditto.
8332 (*add<mode>_5): Ditto.
8334 2010-06-03 Jan Hubicka <jh@suse.cz>
8336 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
8338 * cfganal.c (compute_dominance_frontiers_1): Likewise.
8340 2010-06-03 Jan Hubicka <jh@suse.cz>
8342 * df-problems.c (df_create_unused_note, df_note_bb_compute):
8343 micro-optimize the checks when to add new note.
8345 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
8347 * final.c (output_asm_insn): Call
8348 targetm.asm_out.print_operand_punct_valid_p. Update comments.
8349 (output_operand): Call targetm.asm_out.print_operand. Update comments.
8350 (output_address): Call targetm.asm_out.print_operand_address.
8352 * target.h (struct gcc_target): Add print_operand,
8353 print_operand_address, and print_operand_punct_valid_p fields.
8354 * targhooks.h (default_print_operand): Declare.
8355 (default_print_operand_address): Declare.
8356 (default_print_operand_punct_valid_p): Declare.
8357 * targhooks.c (default_print_operand): Define.
8358 (default_print_operand_address): Define.
8359 (default_print_operand_punct_valid_p): Define.
8360 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
8361 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
8362 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
8363 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
8364 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
8365 * vmsdbgout.c (addr_const_to_string): Update comment.
8366 * config/i386/i386.c (print_operand): Rename to...
8367 (ix86_print_operand): ...this. Make static.
8368 (print_operand_address): Rename to...
8369 (ix86_print_operand_address): ...this. Make static. Call
8370 ix86_print_operand instead of PRINT_OPERAND.
8371 (ix86_print_operand_punct_valid_p): New function.
8372 (TARGET_PRINT_OPERAND): Define.
8373 (TARGET_PRINT_OPERAND_ADDRESS): Define.
8374 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8375 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
8376 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8377 (PRINT_OPERAND): Delete.
8378 (PRINT_OPERAND_ADDRESS): Delete.
8379 * config/i386/i386-protos.h (print_operand): Delete prototype.
8380 (print_operand_address): Delete prototype.
8382 2010-06-03 Richard Guenther <rguenther@suse.de>
8384 PR tree-optimization/44403
8385 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8386 Preserve pointer qualifiers.
8387 (vect_create_data_ref_ptr): Likewise.
8389 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8392 * defaults.h (MAX_FIXED_MODE_SIZE): New.
8394 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
8396 2010-06-03 Jakub Jelinek <jakub@redhat.com>
8399 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
8400 return false if merging the bbs would lead to goto_locus
8401 location being lost from the IL.
8403 2010-06-03 Jan Hubicka <jh@suse.cz>
8404 Jakub Jelinek <jakub@redhat.com>
8406 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
8407 set->regs[i] is NULL or has just one entry.
8409 2010-06-03 Jan Hubicka <jh@suse.cz>
8411 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
8412 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
8414 2010-06-03 Paul Brook <paul@codesourcery.com>
8416 * config/arm/arm.c (FL_TUNE): Define.
8417 (arm_default_cpu, arm_cpu_select): Remove.
8418 (all_cores): Populate core field.
8419 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
8420 (arm_find_cpu): New function.
8421 (arm_handle_option): Lookup cpu/architecture names.
8422 (arm_override_options): Cleanup mcpu/march/mtune handling.
8423 (arm_file_start): Ditto.
8425 2010-06-03 Alan Modra <amodra@gmail.com>
8428 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
8429 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
8430 rtx to gen_load_toc_v4_PIC_1b. Tidy.
8431 (rs6000_emit_load_toc_table): Likewise.
8433 2010-06-02 Jan Hubicka <jh@suse.cz>
8435 * passes.c (init_optimization_passes): Put ipa reference
8436 after ipa pure-const.
8438 2010-06-02 Jan Hubicka <jh@suse.cz>
8440 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
8441 calls_read_all and calls_write_all.
8442 (get_reference_optimization_summary): Fix formatting.
8443 (is_proper_for_analysis): Check that decl is not readonly.
8444 (propagate_bits): Check CONST/PURE/noreturn flags.
8445 (ipa_init): Move all_module_statics to optimization_summary_obstack.
8446 (analyze_function): Ignore indirect edges.
8447 (copy_global_bitmap): For all module statics, do nothing.
8448 (generate_summary): Do not print calls_read_all/calls_write_all.
8449 (read_write_all_from_decl): Take node as argument; check
8450 cgraph_node_cannot_return.
8451 (propagate): Reorganize read_all/write_all computation;
8452 check indirect edges; check ecf flags; use all_module_statics
8453 in the results; do not free all_module_statics.
8454 (stream_out_bitmap): Handle all_module_statics.
8455 (ipa_reference_write_optimization_summary): Likewise; use
8456 varpool/cgraph encoders to get boundaries.
8457 (ipa_reference_read_optimization_summary): Read in all_module_statics;
8458 use it when possible.
8460 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8463 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
8464 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
8466 * doc/extend.texi (powerpc builtins): Document vec_recip,
8467 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
8469 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
8470 (rs6000_emit_swrsqrt): Ditto.
8471 (rs6000_emit_swdivsf): Delete.
8472 (rs6000_emit_swdivdf): Ditto.
8473 (rs6000_emit_swrsqrtsf): Ditto.
8475 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
8476 describe the reciprocal estimate support for each type.
8477 (recip_options): Map -mrecip=<opt> into option bits.
8478 (gen_2arg_fn_t): New typedef for binary rtx gen function.
8479 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
8480 reciprocal estimate instructions.
8481 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
8482 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
8483 Set up rs6000_recip_bits based on the -mrecip* options. Print the
8484 cost information if -mdebug=cost or -mdebug=reg.
8485 (rs6000_override_options): Set -mrecip-precision for power6, and
8486 power7 machines. If -mvsx or -mdfp, enable various options that
8487 came in previous instruction set ISAs, unless the option was
8488 explicitly disabled by the command line option. Parse
8489 -mrecip=<opt> options.
8490 (rs6000_builtin_vectorized_function): Add support for vectorizing
8491 the reciprocal estimate builtins and expansions.
8492 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
8493 (bdesc_2arg): Add reciprocal estimate builtins.
8494 (bdesc_1arg): Add reciprocal square root estimate builtins.
8495 (rs6000_expand_builtin): Rewrite to use a switch statement,
8496 instead of multiple if/then/elses. Add reciprocal estimate builtins.
8497 (rs6000_init_builtins): Create declarations for reciprocal
8499 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
8500 sized, prefer traditional floating point registers, if integer
8501 vector types, prefer altivec registers. Don't actually look at
8502 the memory address any more.
8503 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
8505 (rs6000_load_constant_and_splat): New helper function to load up
8506 the constant for reciprocal estimate instructions.
8507 (rs6000_emit_madd): New helper function for generating
8508 multiply/add type instructions, based on the current switches.
8509 (rs6000_emit_msub): Ditto.
8510 (rs6000_emit_mnsub): Ditto.
8511 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
8512 replace a divide with a reciprocal estimate and fixup, adding
8513 support for machines with high precision and vectors.
8514 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
8515 low precision machines.
8516 (rs6000_emit_swdiv): New common function to be called to replace a
8517 division with reciprocal estimate and fixup.
8518 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
8519 for double and vector types. Add support for high precision machines.
8521 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
8522 the reciprocal estimate instructions can be generated.
8523 (TARGET_FRE): Ditto.
8524 (TARGET_FRSQRTES): Ditto.
8525 (TARGET_FRSQRTE): Ditto.
8526 (RS6000_RECIP_*): New macros for reciprocal estimate support.
8528 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
8529 square root estimate on vectors.
8530 (re<mode>2): New insn for reciprocal division estimate on vectors.
8532 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
8534 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
8535 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
8536 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
8537 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
8538 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
8539 (RS6000_BUILTIN_RSQRT): Ditto.
8540 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
8541 floating point builtin.
8543 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8544 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
8545 __RECIP_PRECISION__ based on the command line switches.
8546 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
8548 * config/rs6000/rs6000.opt (-mrecip): Document add support for
8549 replacing division instructions with reciprocal estimate and fixup.
8550 (-mrecip=<opt>): New option.
8551 (-mrecip-precision): Ditto.
8553 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
8554 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
8555 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
8558 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
8559 (UNSPEC_VREFP): Ditto.
8560 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
8561 conterparts with regard to support of -mno-fused-madd and -ffast-math.
8562 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
8563 reciprocal estimate instructions to be generated.
8564 (altivec_vrefp): Ditto.
8566 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
8568 (rreg): New mode attribute for reciprocal estimate support.
8569 (recip<mode>3): New insn for division using reciprocal estimate
8571 (divide define_split): New define_split to convert floating point
8572 division to use reciprocal estimate if the user used the
8573 appropriate options and the split is run when we can add new
8574 pseudo registers for the fixup.
8575 (rsqrt<mode>2): New insn for reciprocal square root support.
8576 (recipsf3): Move into recip<mode>3.
8578 (fres): Use TARGET_FRES.
8579 (rsqrtsf2): Move into rsqrt<mode>2.
8580 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
8581 (copysignsf3): Add support for VSX.
8582 (fred): Use TARGET_FRE.
8584 (rsqrtdf_internal1): New function for frsqrte instruciton.
8586 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
8589 2010-06-03 Richard Guenther <rguenther@suse.de>
8592 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
8593 (set_user_assembler_libfunc): Likewise.
8595 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
8597 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
8599 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
8601 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
8602 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
8603 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
8604 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
8605 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
8606 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
8607 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
8608 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
8609 * defaults.h: Updated for above mentioned changes.
8611 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
8613 * c-common.c: Remove header include of tm_p.h.
8614 * Makefile.in (c-common.o): Remove TM_P_H dependency.
8616 2010-06-02 Jakub Jelinek <jakub@redhat.com>
8618 * tree.h (struct tree_decl_map): New type.
8619 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
8620 (tree_decl_map_hash): New prototype.
8621 (debug_expr_for_decl, value_expr_for_decl): Change into
8622 tree_decl_map hashtab from tree_map.
8623 (init_ttree): Adjust initialization.
8624 (tree_decl_map_hash): New function.
8625 (decl_debug_expr_lookup, decl_debug_expr_insert,
8626 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
8628 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8630 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
8632 * configure: Regenerate.
8633 * config.in: Regenerate.
8635 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
8636 (X86_64_EMULATION): Define.
8637 (TARGET_LD_EMULATION): Use them.
8639 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
8640 (SPARC64_EMULATION): Define.
8641 (LINK_ARCH_SPEC): Use them.
8643 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
8645 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
8646 smallest_mode_for_size for computing the precision types of new
8647 graphite IVs. Do not call lang_hooks.types.type_for_size.
8649 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
8651 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
8653 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
8655 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
8658 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
8659 return false instead.
8661 2010-06-02 Jan Hubicka <jh@suse.cz>
8664 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
8665 create new cgraph node to check callee.
8667 2010-06-02 Richard Guenther <rguenther@suse.de>
8669 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
8671 2010-06-02 Richard Guenther <rguenther@suse.de>
8673 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
8674 (lto_wrapper_cleanup): ... this. Do not exit.
8675 (fatal): Adjust. Exit here.
8676 (fatal_perror): Likewise.
8677 (fatal_signal): New function.
8678 (main): Set up signal handlers to cleanup temporary files.
8679 * Makefile.in (lto-wrapper.o): Adjust dependencies.
8681 2010-06-02 Richard Guenther <rguenther@suse.de>
8683 PR tree-optimization/44377
8684 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
8686 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8688 * config/s390/2097.md (z10_fhex): Remove insn reservation.
8689 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
8690 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
8691 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
8693 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
8695 2010-06-02 Jan Hubicka <jh@suse.cz>
8697 * bitmap.c (bitmap_descriptor): Add search_iter.
8698 (bitmap_find_bit): Increment it.
8699 (print_statistics): Print it.
8701 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
8703 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
8704 instead of gimple_build_call_vec. Delete unnecessary local variable.
8706 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
8708 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
8709 change from yesterday.
8711 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
8713 * c-ada-spec.c: Clean up redundant includes.
8715 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
8717 * gimplify.c: Do not include except.h and optabs.h.
8718 (gimplify_body): Do not initialize RTL profiling.
8719 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
8720 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
8721 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
8722 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
8725 * tree-pretty-print.h: Include pretty-print.h.
8726 * gimple-pretty-print.h: Include pretty-print.h.
8728 * tree-pretty-print.c: Do not include diagnostic.h.
8729 * tree-vrp.c: Likewise.
8730 * tree-tailcall.c: Likewise
8731 * tree-scalar-evolution.c: Likewise
8732 * tree-ssa-dse.c: Likewise
8733 * tree-chrec.c: Likewise
8734 * tree-ssa-sccvn.c: Likewise
8735 * tree-ssa-copyrename.c: Likewise
8736 * tree-nomudflap.c: Likewise
8737 * tree-call-cdce.c: Likewise
8738 * tree-stdarg.c: Likewise
8739 * tree-ssa-math-opts.c: Likewise
8740 * tree-nrv.c: Likewise
8741 * tree-ssa-sink.c: Likewise
8742 * tree-browser.c: Likewise
8743 * tree-ssa-loop-ivcanon.c: Likewise
8744 * tree-ssa-loop.c: Likewise
8745 * tree-parloops.c: Likewise
8746 * tree-ssa-address.c: Likewise
8747 * tree-ssa-ifcombine.c: Likewise
8748 * tree-if-conv.c: Likewise
8749 * tree-data-ref.c: Likewise
8750 * tree-affine.c: Likewise
8751 * tree-ssa-phiopt.c: Likewise
8752 * tree-ssa-coalesce.c: Likewise
8753 * tree-ssa-pre.c: Likewise
8754 * tree-ssa-live.c: Likewise
8755 * tree-predcom.c: Likewise
8756 * tree-ssa-forwprop.c: Likewise
8757 * tree-ssa-dce.c: Likewise
8758 * tree-ssa-ter.c: Likewise
8759 * tree-ssa-loop-prefetch.c: Likewise
8760 * tree-optimize.c: Likewise
8761 * tree-ssa-phiprop.c: Likewise
8762 * tree-object-size.c: Likewise
8763 * tree-outof-ssa.c: Likewise
8764 * tree-ssa-structalias.c: Likewise
8765 * tree-switch-conversion.c: Likewise
8766 * tree-ssa-reassoc.c: Likewise
8767 * tree-ssa-operands.c: Likewise
8768 * tree-vectorizer.c: Likewise
8769 * tree-vect-data-refs.c: Likewise
8770 * tree-vect-generic.c: Likewise
8771 * tree-vect-stmts.c: Likewise
8772 * tree-vect-patterns.c: Likewise
8773 * tree-vect-slp.c: Likewise
8774 * tree-vect-loop.c: Likewise
8775 * tree-ssa-loop-ivopts.c: Likewise
8776 * tree-ssa-loop-im.c: Likewise
8777 * tree-ssa-loop-niter.c: Likewise
8778 * tree-ssa-loop-unswitch.c: Likewise
8779 * tree-ssa-loop-manip.c: Likewise
8780 * tree-ssa-loop-ch.c: Likewise
8781 * tree-dump.c: Likewise
8782 * tree-complex.c: Likewise
8784 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
8785 * tree-ssa-uninit.c: Likewise
8786 * tree-ssa-threadupdate.c: Likewise
8787 * tree-ssa-uncprop.c: Likewise
8788 * tree-ssa-ccp.c: Likewise
8789 * tree-ssa-dom.c: Likewise
8790 * tree-ssa-propagate.c: Likewise
8791 * tree-ssa-alias.c: Likewise
8792 * tree-dfa.c: Likewise
8793 * tree-cfgcleanup.c: Likewise
8794 * tree-sra.c: Likewise
8795 * tree-ssa-copy.c: Likewise
8796 * tree-ssa.c: Likewise
8797 * tree-profile.c: Likewise
8798 * tree-cfg.c: Likewise
8799 * tree-ssa-threadedge.c: Likewise
8800 * tree-vect-loop-manip.c: Likewise
8802 * tree-inline.c: Do not include diagnostic.h and expr.h.
8804 (copy_decl_for_dup_finish): Do not use NULL_RTX.
8806 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
8807 * tree-loop-distribution.c: Likewise.
8809 2010-06-01 Jan Hubicka <jh@suse.cz>
8811 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
8813 2010-06-01 Jan Hubicka <jh@suse.cz>
8815 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
8816 remove return value.
8817 (split_bbs_on_noreturn_calls) .... here.
8818 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
8819 * tree-flow.h (fixup_noreturn_call): New.
8821 2010-06-01 Jan Hubicka <jh@suse.cz>
8823 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
8825 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
8827 * tree.h (build_nt_call_list): Delete.
8828 * tree.c (build_nt_call_list): Delete.
8830 2010-06-01 Jan Hubicka <jh@suse.cz>
8832 * fwprop.c: Make emit-rtl.h include last.
8833 * rtlanal.c: Include emit-rtl.h.
8834 * genautomata.c: Output emit-rtl include into insn-automata.c
8835 * df-scan.c: Include emit-rtl.h.
8836 * haifa-sched.c: Indlude emit-rtl.h.
8837 * mode-switching.c: Indlude emit-rtl.h.
8838 * graph.c: Indlude emit-rtl.h.
8839 * sel-sched.c: Include emit-rtl.h.
8840 * sel-sched-ir.c: Include emit-rtl.h.
8841 * ira-build.c: Include emit-rtl.h.
8842 * emit-rtl.c (first_insn, last_insn): Remove defines.
8843 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
8845 (set_new_first_and_last_insn, get_last_insn_anywhere,
8846 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
8847 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
8848 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
8849 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
8850 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
8851 Use accessor functions.
8852 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8853 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8854 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8855 mem_expr_equal_p): Move here from rtl.h.
8856 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
8857 Move here from emit-rtl.c; make inline.
8858 * cfglayout.h: Include emit-rtl.h.
8859 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
8860 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
8861 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
8862 mem_expr_equal_p, get_insns, set_first-insn,
8863 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
8864 * reg-stack.c: Include emit-rtl.h.
8867 2010-06-01 Jan Hubicka <jh@suse.cz>
8869 * cgraph.h (tree_function_versioning): Update prototype.
8870 (cgraph_function_versioning): Update prototype.
8871 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
8873 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
8874 (cgraph_materialize_clone, save_inline_function_body): Update use of
8875 tree_function_versioning.
8876 * tree-inline.c (copy_bb): Look for previous copied block to link
8877 after; fix debug output.
8878 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
8879 (copy_body): Likewise.
8880 (expand_call_inline): Update use of copy_body.
8881 (tree_function_versioning): Update use of copy body; accept
8882 blocks_to_copy and new_entry.
8884 2010-06-01 Jan Hubicka <jh@suse.cz>
8886 * gegenrtl.c: Remove unnecesary prototypes.
8888 (gendef): Produce static inline.
8890 (main): Do not decode parameters; generate header only.
8891 * Makefile.in (genrtl.c): Remove.
8893 2010-06-01 Jan Hubicka <jh@suse.cz>
8895 * tree-switch-conversion.c (build_one_array): Make it readonly.
8897 2010-06-01 Richard Guenther <rguenther@suse.de>
8899 * optabs.c (init_optabs): Guard all accesses to reinit.
8900 * ipa-pure-const.c (propagate): Fix another typo.
8901 * opts.c (common_handle_option): Split assignment to bool.
8902 * c-opts.c (c_common_handle_option): Likewise.
8904 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8905 Matthew Gingell <gingell@adacore.com>
8907 * doc/invoke.texi: Mention -fdump-ada-spec.
8908 * tree-dump.c (dump_files): Add ada-spec.
8909 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
8910 * tree-pass.h (tree_dump_index): Add TDI_ada.
8911 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
8912 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
8913 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
8914 * c-decl.c: Include c-ada-spec.h.
8915 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
8917 (c_write_global_declarations): Add handling of -fdump-ada-spec.
8918 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
8919 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
8920 * c-ada-spec.h, c-ada-spec.c: New files.
8922 2010-06-01 Richard Guenther <rguenther@suse.de>
8925 * ipa-pure-const.c (get_function_state): Hand back varying state
8926 if we do not have one.
8927 (has_function_state): New function.
8928 (duplicate_node_data): Adjust.
8929 (remove_node_data): Likewise.
8930 (pure_const_write_summary): Likewise.
8931 (propagate): Likewise. Fix typo.
8933 2010-06-01 Jan Hubicka <jh@suse.cz>
8935 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
8936 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
8937 (execute_all_ipa_transforms): Do not play with the states.
8939 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
8941 * config/arm/t-linux-androideabi: New.
8942 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
8944 2010-06-01 Jan Hubicka <jh@suse.cz>
8946 * tree-inline.c (estimate_num_insns): For stdarg functions look
8947 into call statement to count cost of argument passing.
8949 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
8951 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
8952 argument for fprintf.
8953 (ix86_output_addr_diff_elt): Likewise.
8954 (x86_function_profiler): Likewise.
8955 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
8956 (LPREFIX): Likewise.
8957 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8959 2010-05-31 Jakub Jelinek <jakub@redhat.com>
8962 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
8963 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
8964 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
8965 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
8966 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
8967 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
8968 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
8969 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
8972 2010-05-31 Jan Hubicka <jh@suse.cz>
8974 * tree.h (tree_range_check_failed): Declare noreturn.
8976 2010-05-31 Jan Hubicka <jh@suse.cz>
8978 * gimple.c (gimple_call_builtin_p): New function.
8979 * gimple.h (gimple_call_builtin_p): Declare.
8980 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
8982 (execute_warn_function_return): BUILT_IN_RETURN is return.
8983 (split_critical_edges): Return edges are not critical.
8984 (is_ctrl_altering_stmt): Builtin_in_return is altering.
8985 (gimple_verify_flow_info): Handle built_in_return.
8986 (execute_warn_function_return): Handle built_in_return.
8987 * ipa-pure-const.c (check_call): Ignore builtin_return.
8989 2010-05-31 Jakub Jelinek <jakub@redhat.com>
8992 * expr.c (expand_assignment): Don't store anything for out-of-bounds
8993 array accesses with non-MEM.
8995 PR tree-optimization/44182
8996 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
8997 newly needs to end a bb is followed by debug stmts, instead return
8998 true from the function at the end.
8999 (maybe_move_debug_stmts_to_successors): New function.
9000 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
9002 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
9005 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
9007 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
9009 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
9010 for nested functions in non-optimized compilation.
9012 2010-05-31 Richard Guenther <rguenther@suse.de>
9014 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
9016 2010-05-30 Jan Hubicka <jh@suse.cz>
9018 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
9020 2010-05-30 Richard Guenther <rguenther@suse.de>
9023 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
9024 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
9027 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
9029 * config/darwin.c (output_objc_section_asm_op): Add comment.
9030 (name_needs_quotes): Add '_' to list of valid comment chars.
9031 (machopic_output_function_base_name): Remove unneeded quotes.
9032 (darwin_encode_section_info): Adjust asm whitespace.
9033 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
9034 (ASM_OUTPUT_LOCAL): Ditto.
9035 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
9036 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
9037 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
9039 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
9041 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
9042 RS6000_OUTPUT_BASENAME unconditionally.
9043 (rs6000_output_function_epilogue): Likewise.
9045 2010-05-30 Jan Hubicka <jh@suse.cz>
9047 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
9050 2010-05-30 Richard Guenther <rguenther@suse.de>
9052 * tree-cfg.c (verify_gimple_assign_single): Implement
9053 verification for COND_EXPR rhs.
9055 2010-05-30 Jan Hubicka <jh@suse.cz>
9057 * cgraph.h (cgraph_dump_file): Declare.
9058 * cgraphunit.c (cgraph_dump_file): Export.
9059 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
9061 2010-05-30 Jan Hubicka <jh@suse.cz>
9063 * dwarf2out.c (reference_to_unused,
9064 premark_types_used_by_global_vars_helper): Avoid creation of new
9067 2010-05-30 Jan Hubicka <jh@suse.cz>
9069 * cgraph.h (cgraph_node_cannot_return,
9070 cgraph_edge_cannot_lead_to_return): New functions.
9071 * cgraph.c (cgraph_node_cannot_return,
9072 cgraph_edge_cannot_lead_to_return): Use them.
9073 * ipa-pure-const.c (pure_const_names): New static var.
9074 (check_call): Handle calls not leading to return.
9075 (pure_const_read_summary): Dump info read.
9076 (propagate): Dump info about propagation process; ignore side effects
9077 of functions not leading to exit; fix handling of pure functions.
9079 2010-05-30 Jan Hubicka <jh@suse.cz>
9081 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
9082 for tail call epilogues.
9084 2010-05-30 Jan Hubicka <jh@suse.cz>
9086 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
9087 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
9090 2010-05-29 Jan Hubicka <jh@suse.cz>
9092 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
9093 node; remove references in node we no longer keep in cgrpah but need
9096 2010-05-29 Jan Hubicka <jh@suse.cz>
9098 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
9100 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9103 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
9105 2010-05-29 Jan Hubicka <jh@suse.cz>
9107 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
9108 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
9109 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
9110 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
9111 debug_names_replaced_by, debug_update_ssa): Likewise.
9112 * sbitmap.c (debug_sbitmap): Likewise.
9113 * genrecog.c (debug_decision, debug_decision_list): Likewise.
9114 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
9115 debug_tree_chain): Likewise.
9116 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
9117 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
9118 * optabs.c (debug_optab_libfuncs): Likewise.
9119 (verify_loop_closed_ssa): Likewise.
9120 * value-prof.c (verify_histograms): Likewise.
9121 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
9122 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
9123 * cfghooks.c (verify_flow_info): Likewise.
9124 * fold-const.c (debug_fold_checksum): Likewise.
9125 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
9126 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
9128 * omega.c (debug_omega_problem): Likewise.
9129 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
9130 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
9131 * dominance.c (verify_dominators, debug_dominance_info,
9132 debug_dominance_tree): Likewise.
9133 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
9134 * df_regno_debug, df_ref_debug,
9135 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
9136 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
9137 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
9138 * sel-sched.c (debug_state): Likewise.
9139 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
9141 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
9142 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
9143 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
9144 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
9146 * c-pretty-print.c (debug_c_tree): Likewise.
9147 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
9148 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
9149 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
9150 * ebitmap.c (debug_ebitmap): Likewise.
9151 * function.c (debug_find_var_in_block_tree): Likewise.
9152 * print-rtl.c (debug_rtx): Likewise.
9153 (debug_rtx_count): Likewise.
9154 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
9155 * stor-layout.c (debug_rli): Likewise.
9156 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
9157 * tree-data-ref.c (debug_data_references,
9158 debug_data_dependence_relations, debug_data_reference,
9159 debug_data_dependence_relation, debug_rdg_vertex,
9160 debug_rdg_component, debug_rdg): Likewise.
9161 * tree-affine.c (debug_aff): Likewise.
9162 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
9164 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
9165 * emit-rtl.c (verify_rtl_sharing): Likewise.
9166 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
9167 debug_value_expressions): Likewise.
9168 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
9169 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
9170 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
9171 * cfglayout.c (verify_insn_chain): Likewise.
9172 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
9173 debug_clast_stmt, debug_generated_program): Likewise.
9174 * ggc-page.c (debug_print_page_list): Likewise.
9175 * tree-ssa-ter.c (debug_ter): Likewise.
9176 * graphite-dependences.c (debug_pddr): Likewise.
9177 * sched-deps.c (debug_ds): Likewise.
9178 * tree-ssa.c (verify_ssa): Likewise.
9179 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
9180 debug_scattering_functions, debug_iteration_domains, debug_pdr,
9181 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
9182 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
9183 * tree-inline.c (debug_find_tree): Likewise.
9184 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
9185 debug_ppl_powerset_matrix): Likewise.
9186 * var-tracking.c (debug_dv): Likewise.
9187 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
9188 * cfgloop.c (verify_loop_structure): Likewise.
9189 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
9190 * c-common.c (verify_sequence_points): Likewise.
9191 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
9192 debug_candidates, debug_rgn_dependencies): Likewise.
9193 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
9194 * debug_constraint_graph, debug_solution_for_var,
9195 debug_sa_points_to_info): Likewise.
9196 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
9198 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
9199 debug_loops, debug_loop, debug_loop_num): Likewise.
9200 * passes.c (debug_pass): Likewise.
9201 (dump_properties): Likewise; add cfglayout property.
9202 (debug_properties): Likewise.
9203 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
9204 * varpool.c (debug_varpool): Likewise.
9205 * regcprop.c (debug_value_data): Likewise.
9206 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
9207 debug_immediate_uses_for): Likewise.
9209 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
9212 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
9213 Filter out insn-flags.h.
9215 2010-05-29 Jan Hubicka <jh@suse.cz>
9217 * cgraph.h (struct varpool_node_set_def,
9218 struct cgraph_node_set_def): Remove unused AUX pointer.
9219 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
9222 2010-05-29 Jan Hubicka <jh@suse.cz>
9225 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
9227 2010-05-29 Richard Guenther <rguenther@suse.de>
9229 * lto-streamer.c (cached_bp): New global variable.
9230 (bitpack_create): Return the cached bitpack, if available.
9231 (bitpack_delete): Clear and cache the bitpack, if appropriate.
9232 (bp_pack_value): Remove redundant asserts.
9234 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
9237 * tree-if-conv.c (is_true_predicate): New.
9238 (is_predicated): Use is_true_predicate.
9239 (add_to_predicate_list): Same. Do not use unshare_expr.
9240 (add_to_dst_predicate_list): Same.
9242 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
9244 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
9246 (predicate_bbs): Same.
9247 (clean_predicate_lists): Same.
9248 (find_phi_replacement_condition): Do not AND the predicate from
9251 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
9254 * Makefile.in (build/gencondmd.o): Add a missing `\'.
9256 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9259 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
9260 (negdf2): Adjust expander pattern and use negdf2_slow.
9263 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
9265 * basic-block.h (struct control_flow_graph): Move last_label_uid field
9267 * df.h (struct df_base_ref): Move regno field up.
9268 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
9269 * expr.h (struct separate_ops): Move location field up.
9270 * optabs.h (struct optab_d): Move libcall_basename field down.
9271 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
9272 * config/i386/i386.h (struct machine_function): Convert call_abi field
9273 into a bitfield. Move cfa field to the end of the structure.
9275 2010-05-29 Jan Hubicka <jh@suse.cz>
9277 * varpool.c (varpool_get_node): Fix lookup.
9279 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9281 * config/spu/spu-protos.h: Do not include rtl.h. Protect
9282 RTL specific prototypes with #ifdef RTX_CODE.
9283 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
9284 * config/spu/t-spu-elf: Fix dependencies.
9286 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
9288 2010-05-29 Mike Stump <mikestump@comcast.net>
9291 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
9292 TM_H when building to avoid dependency loops.
9294 2010-05-29 Jan Hubicka <jh@suse.cz>
9296 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
9297 refs and body; not the whole node for masters of materialized clones.
9299 2010-05-29 Mike Stump <mikestump@comcast.net>
9301 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
9303 2010-05-29 Jan Hubicka <jh@suse.cz>
9305 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
9306 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
9307 use of clone_function_name.
9308 * cgraph.h (cgraph_create_virtual_clone,
9309 cgraph_function_versioning): update prototypes.
9310 (clone_function_name): Declare.
9311 * ipa-cp.c (ipcp_insert_stage): Update call of
9312 cgraph_create_virtual_clone.
9313 * omp-low.c (create_omp_child_function_name): Use
9314 cgraph_create_virtual_clone.
9315 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
9316 (cgraph_function_versioning): Take SUFFIX argument; produce new name
9317 and make decl local.
9319 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9321 * vec.h: Include statistics.h
9322 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
9325 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9327 * c-lex.c: Do not include c-tree.h.
9328 * c-pretty-print.c: Likewise.
9329 * c-opts.c: Likewise.
9330 * c-gimplify.c: Likewise.
9331 * c-common.c: Likewise.
9332 * c-dump.c: Likewise. Include c-common.h.
9334 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9336 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
9337 before including diagnostic-core.h.
9338 (c_cpp_error): New prototype moved from c-tree.h.
9339 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
9340 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
9341 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
9342 (c_cpp_error): Prototype moved to c-common.h.
9343 * Makefile.in: Update dependency for C_COMMON_H.
9345 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
9347 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
9348 * c-common.c (c_register_addr_space): Remove here.
9349 * c-decl.c (c_register_addr_space): Re-add here.
9351 2010-05-28 Mike Stump <mikestump@comcast.net>
9353 * config/darwin-c.c: Remove c-tree.h include.
9355 2010-05-28 Joseph Myers <joseph@codesourcery.com>
9357 * gcc.c: Include diagnostic.h.
9358 (error_count): Remove. All users changed to use errorcount.
9359 (programname): Remove. All users changed to use progname.
9360 (fancy_abort, internal_error, fatal_error, error, warning, inform,
9362 (execute): Don't include "Internal error" and bug reporting
9363 information in argument of internal_error call.
9364 (process_command): Don't increment error_count after calling
9366 (input_filename): Rename to gcc_input_filename. All users
9368 (main): Call diagnostic_initialize. Register delete_temp_files
9369 with atexit. Use seen_error to test for errors.
9370 * gcc.h: Include diagnostic-core.h.
9371 (fatal_error, error, warning): Remove.
9372 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
9373 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
9374 (gcc.o): Update dependencies.
9376 2010-05-28 Jeff Law <law@redhat.com>
9378 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
9380 * ira.h (ira_bad_reload_regno): Declare
9381 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
9383 * ira-color.c (update_curr_costs): Free updated hard reg costs.
9384 (ira_reassign_conflict_allocnos): Remove bogus asserts.
9385 (allocno_reload_assign): Likewise.
9387 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
9389 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
9392 2010-05-28 Richard Guenther <rguenther@suse.de>
9395 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
9396 Stream fixed-point constants mode.
9397 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
9399 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
9400 Stream fixed-point constants mode.
9401 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
9404 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
9406 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
9407 only place it was called from.
9408 (number_of_latch_executions): Do not return chrec_dont_know when the
9409 may_be_zero is a runtime condition: instead, return a COND_EXPR
9410 including the may_be_zero condition.
9411 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
9413 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
9416 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
9418 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
9419 generate COND_EXPRs for degenerate_phi_result.
9421 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
9424 * tree-if-conv.c (if_convertible_loop_p): Check the
9425 if-convertibility of phi nodes in non predicated BBs.
9427 2010-05-28 Joseph Myers <joseph@codesourcery.com>
9429 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
9431 2010-05-28 Joseph Myers <joseph@codesourcery.com>
9434 * gcc.c (inform, warning, inform): New functions.
9435 (fatal_ice): Rename to internal_error; change cmsgid parameter to
9436 gmsgid. All callers changed.
9437 (notice): Rename to fnotice; add parameter fp. All callers changed.
9438 (fatal_error): Rename to fatal_signal. All users changed.
9439 (fatal): Rename to fatal_error; change cmsgid parameter to
9440 gmsgid. All callers changed.
9441 (process_command): Use warning instead of error for warnings.
9442 (end_going_arg): Don't use _() around argument of error.
9443 (do_spec_1): Use inform for message from %n specs. Use warning
9444 instead of error for warnings.
9445 (main): Use inform for comparison messages. Use warning for
9446 message about unused linker input.
9447 (error): Increment error_count. Print "error: ".
9448 * gcc.h (fatal): Change to fatal_error.
9450 * config/darwin-driver.c (darwin_default_min_version): Use warning
9451 instead of fprintf for warnings.
9452 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
9454 2010-05-28 Julian Brown <julian@codesourcery.com>
9456 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
9457 (*thumb2_addsi3_compare0_scratch): New.
9458 * config/arm/constraints.md (Pv): New.
9459 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
9461 (*addsi3_compare0_scratch): Likewise.
9463 2010-05-28 Jan Hubicka <jh@suse.cz>
9465 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
9467 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
9468 only on local statics.
9470 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
9472 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
9474 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
9477 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
9478 (OPTION_GLIBC): Define.
9480 2010-05-28 Jakub Jelinek <jakub@redhat.com>
9483 * dwarf2out.c (double_int_type_size_in_bits): New function.
9484 (round_up_to_align): Change first argument and return value to
9486 (field_byte_offset): Work internally on double_ints.
9489 * builtins.c (expand_movstr): Use a temporary pseudo instead
9490 of target even when target is not NULL and not const0_rtx, but
9491 fails movstr predicate.
9492 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
9494 2010-05-28 Joseph Myers <joseph@codesourcery.com>
9496 * final.c (rest_of_clean_state): Use %m in errors instead of
9498 * gengtype.c (read_input_list, close_output_files): Use xstrerror
9499 instead of strerror.
9500 * toplev.c (process_options): Use %m in errors instead of strerror
9502 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
9505 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
9507 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
9508 (ix86_canonical_va_list_type): Make static. Add declaration.
9509 (ix86_enum_va_list): Make static. Reindent.
9510 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
9511 (ix86_canonical_va_list_type): Ditto.
9512 (ix86_enum_va_list): Ditto.
9514 2010-05-28 Richard Guenther <rguenther@suse.de>
9516 * lto-wrapper.c (run_gcc): With -save-temps generate a
9517 user-visible ltrans filename. Fixup ltrans unit numbering.
9519 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
9521 * c-common.c (c_common_nodes_and_builtins): Replace use
9522 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
9523 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
9524 to ix86_enum_va_list.
9525 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
9526 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
9527 (TARGET_ENUM_VA_LIST_P): Add hook description.
9528 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
9529 * target.h (gcc_target): Add enum_va_list hook.
9532 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
9533 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
9534 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
9536 2010-05-28 Alan Modra <amodra@gmail.com>
9539 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9540 emit_library_call machinery to set up __tls_get_addr calls.
9542 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9544 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
9546 2010-05-28 Dodji Seketeli <dodji@redhat.com>
9548 Revert fix for PR c++/44188
9549 * c-common.c (is_typedef_decl): Revert the moving of this
9551 * tree.c (is_typedef_decl): ... here.
9552 (typdef_variant_p): Revert the moving of this definition
9553 here from gcc/cp/tree.c.
9554 * c-common.h (is_typedef_decl): Revert the moving of this
9556 * tree.h (is_typedef_decl): ... here.
9557 (typedef_variant_p): Revert the moving of this declaration here
9558 from gcc/cp/cp-tree.h
9559 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
9560 (gen_tagged_type_die): Revert the splitting out of ...
9561 (gen_type_die_with_usage): ... this function. Revert the anonymous
9562 tagged type handling.
9563 (gen_typedef_die): Revert emitting DW_TAG_typedef for
9564 typedefs naming anonymous tagged types.
9566 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
9568 * config/rs6000/rs6000-modes.def (PSImode): Delete.
9570 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
9572 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
9573 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
9575 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
9577 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
9578 XER_REGS to CA_REGS throughout.
9579 * config/rs6000/rs6000.h: Same.
9580 (ADDITIONAL_REGISTER_NAMES): Add "xer".
9581 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
9582 that mode_iterator "P" is the size for arithmetic carries as well.
9583 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
9585 2010-05-28 Jakub Jelinek <jakub@redhat.com>
9588 * combine.c (struct rtx_subst_pair): Define unconditionally.
9589 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
9590 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
9591 Call make_compound_operation on pair->to.
9592 (propagate_for_debug): Don't call make_compound_operation here.
9593 Always use simplify_replace_fn_rtx.
9595 2010-05-27 Sterling Augustine <sterling@tensilica.com>
9597 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
9598 * config/xtensa/xtensa.c (override_options): Check
9599 TARGET_FORCE_NO_PIC and set flag_pic.
9600 * config/xtensa/xtensa.opt: Document -mforce-no-pic
9602 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
9605 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
9606 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
9608 2010-05-27 Joseph Myers <joseph@codesourcery.com>
9610 * diagnostic-core.h: New. Contents moved from diagnostic.h and
9612 * diagnostic.c: Don't include toplev.h.
9613 (progname): Define. Moved from toplev.c.
9614 (seen_error): New function.
9615 * diagnostic.h: Include diagnostic-core.h.
9616 (diagnostic_t, emit_diagnostic): Don't declare here.
9617 * toplev.c (progname): Move to toplev.c.
9618 (emit_debug_global_declarations, compile_file, finalize,
9619 do_compile, toplev_main): Use seen_error.
9620 * toplev.h: Include diagnostic-core.h.
9621 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
9622 internal_error, warning, warning_at, error, error_n, error_at,
9623 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
9624 verbatim, fnotice, progname): Move to diagnostic-core.h.
9625 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
9626 (expand_builtin_expect): Use seen_error.
9627 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
9628 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
9629 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
9630 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
9631 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
9632 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
9633 errorcount for errors.
9634 * c-opts.c (c_common_finish): Use seen_error.
9635 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
9636 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
9637 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
9638 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
9639 (get_coverage_counts): Use seen_error.
9640 * dwarf2out.c (dwarf2out_finish): Use seen_error.
9641 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
9642 gimplify_body): Use seen_error.
9643 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
9644 * ipa-pure-const.c (gate_pure_const): Use seen_error.
9645 * ipa-reference.c (gate_reference): Use seen_error.
9646 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
9647 * lambda-code.c: Include diagnostic-core.h instead of
9649 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
9650 * lto-compress.c: Include diagnostic-core.h instead of
9652 * lto-section-in.c: Include diagnostic-core.h instead of
9654 * lto-streamer-out.c: Include diagnostic-core.h instead of
9656 * lto-streamer.c: Include diagnostic-core.h instead of
9658 (gate_lto_out): Use seen_error.
9659 * matrix-reorg.c: Include diagnostic-core.h instead of
9661 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
9662 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
9663 (gate_expand_omp, lower_omp_1): Use seen_error.
9664 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
9665 (rest_of_decl_compilation, rest_of_type_compilation,
9666 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
9667 * tree-cfg.c (label_to_block_fn): Use seen_error.
9668 * tree-inline.c (optimize_inline_calls): Use seen_error.
9669 * tree-mudflap.c (mudflap_finish_file): Use
9671 * tree-optimize.c (gate_all_optimizations,
9672 gate_all_early_local_passes, gate_all_early_optimizations): Use
9674 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
9675 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
9676 (varpool_remove_unreferenced_decls,
9677 varpool_assemble_pending_decls): Use seen_error.
9678 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
9679 (TOPLEV_H, DIAGNOSTIC_H): Update.
9680 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
9681 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
9682 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
9683 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
9684 coverage.o, lambda-code.o): Update dependencies.
9686 2010-05-25 Dodji Seketeli <dodji@redhat.com>
9689 * c-common.c (is_typedef_decl): Move this definition ...
9690 * tree.c (is_typedef_decl): ... here.
9691 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
9692 * c-common.h (is_typedef_decl): Move this declaration ...
9693 * tree.h (is_typedef_decl): ... here.
9694 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
9695 * dwarf2out.c (is_naming_typedef_decl): New function.
9696 (gen_tagged_type_die): Split out of ...
9697 (gen_type_die_with_usage): ... this function. When an anonymous
9698 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
9699 is emitted for the typedef.
9700 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
9701 anonymous tagged types.
9703 2010-05-27 Jason Merrill <jason@redhat.com>
9705 * print-tree.c (debug_vec_tree): New fn.
9706 (print_vec_tree): New fn.
9707 * tree.h: Declare them.
9708 * gdbinit.in (pvt): New command.
9710 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
9712 * gdbinit.in (pdd): New command.
9714 2010-05-27 Jan Hubicka <jh@suse.cz>
9716 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
9717 (update_caller_keys): Return early if there are no callers;
9718 only update fibheap when decresing the key.
9719 (update_callee_keys): Avoid recursion.
9720 (decide_inlining_of_small_functions): When badness does not match;
9721 re-insert into fibheap.
9723 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
9725 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
9726 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
9727 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
9728 (ALL_HOST_OBJS): Now a union of the above two.
9729 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
9730 all files in ALL_HOST_FRONTEND_OBJS.
9731 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
9733 * c-common.c: Pretend to be a backend file by undefining
9734 IN_GCC_FRONTEND (still need rtl.h here).
9736 2010-05-27 Jan Hubicka <jh@suse.cz>
9738 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
9739 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
9741 2010-05-27 Jan Hubicka <jh@suse.cz>
9743 * sched-ebb.c: Rename struct deps to struct deps_desc.
9745 * sel-sched-ir.c: Likewise.
9746 * sched-deps.c: Likewise.
9747 * sched-int.h: Likewise.
9748 * sched-rgn.c: Likewise.
9750 2010-05-27 Jon Beniston <jon@beniston.com>
9753 * config/lm32/lm32.h: Remove definition of
9754 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
9756 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
9759 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
9761 2010-05-27 Richard Guenther <rguenther@suse.de>
9763 PR tree-optimization/44284
9764 * tree-vect-stmts.c (vectorizable_assignment): Handle
9765 sign-changing conversions as simple copy.
9767 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9769 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
9771 (__gthread_active_p): Check for pthread_create if compiling against
9774 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9776 Support compilation for Android platform. Reimplement -mandroid.
9778 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
9779 (*android*): Set ANDROID_DEFAULT.
9780 (arm*-*-linux*): Include linux-android.h.
9781 (arm*-*-eabi*): Don't include previous -mandroid implementation.
9782 * config/arm/eabi.h: Remove, move Android-specific parts ...
9783 * config/linux-android.h: ... here. New file.
9784 * config/arm/eabi.opt: Rename to ...
9785 * config/linux-android.opt: ... this.
9786 (mandroid): Allow -mno-android option. Initialize based on
9788 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
9789 Move logic to corresponding LINUX_TARGET_* macros.
9790 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
9791 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
9792 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
9793 Android definitions.
9794 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
9795 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
9798 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9800 Add support for Bionic C library
9802 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
9804 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
9805 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
9807 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
9808 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
9809 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
9810 to support multiple C libraries. Handle Bionic.
9811 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
9812 (BIONIC_DYNAMIC_LINKER64): Define.
9813 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
9815 (TARGET_HAS_SINCOS): Enable for Bionic.
9817 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
9818 the last option specified on command line take effect.
9819 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
9821 (mglibc, muclibc): Update.
9823 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
9824 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
9827 * doc/invoke.texi (-mglibc, -muclibc): Update.
9828 (-mbionic): Document.
9830 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9832 * c-common.h (c_register_addr_space): Add prototype.
9833 (ADDR_SPACE_KEYWORD): Remove.
9834 * c-common.c (c_register_addr_space): New function.
9835 (c_addr_space_name): Reimplement.
9836 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
9838 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
9839 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
9841 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
9842 Remove TARGET_ADDR_SPACE_KEYWORDS.
9844 2010-05-27 Joseph Myers <joseph@codesourcery.com>
9846 * input.c: New file.
9847 * input.h (main_input_filename): Move declaration to toplev.h.
9848 * toplev.c (input_location, line_table): Move to input.c
9849 * toplev.h (main_input_filename): Move declaration from input.h.
9850 * tree.c (expand_location): Move to input.c.
9851 * Makefile.in (OBJS-common): Add input.o.
9852 (input.o): Add dependencies.
9854 2010-05-27 Richard Guenther <rguenther@suse.de>
9856 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
9857 for non-existant files.
9858 (fork_execute): Mark args_name file as deleted.
9860 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
9863 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
9864 (narrow_signed_type): Likewise.
9866 2010-05-26 Jan Hubicka <jh@suse.cz>
9868 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
9869 edge only when checking is enabled; check using former_clone_of;
9870 check inline clones too.
9871 (cgraph_materialize_clone): Record former_clone_of pointer.
9872 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
9873 combining redirections; dump args_to_skip bitmap
9874 (cgraph_materialize_all_clones): Do no redirection here.
9875 * ipa-inline.c (inline_transform): Do redirection here.
9876 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
9879 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9881 * config/avr/avr-c.c: Do not include regs.h.
9882 Include cpplib.h for cpp_define and tree.h for c-common.h.
9883 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
9884 * config/avr/t-avr: Fix dependencies for avr-c.o.
9886 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
9888 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
9889 string instead of SYMBOL_REF rtx.
9890 * rtl.h (set_stack_check_libfunc): Move prototype from here...
9891 * libfuncs.h: ...to here. Adjust for explow.c change.
9893 2010-05-26 Joseph Myers <joseph@codesourcery.com>
9895 * pretty-print.c: Don't include ggc.h.
9896 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
9897 (identifier_to_locale): Use them for allocation.
9898 * pretty-print.h (identifier_to_locale_alloc,
9899 identifier_to_locale_free): Declare.
9900 * toplev.c (alloc_for_identifier_to_locale): New.
9901 (general_init): Set identifier_to_locale_alloc and
9902 identifier_to_locale_free.
9903 * Makefile.in (pretty-print.o): Update dependencies.
9905 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
9907 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
9908 pointer types if they have different alignment or mode.
9910 2010-05-26 Anatoly Sokolov <aesok@post.ru>
9912 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9913 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9914 * config/sparc/sparc-protos.h (function_value): Remove declaration.
9915 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
9916 sparc_function_value_regno_p): New functions.
9917 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9918 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9919 (function_value): Rename to...
9920 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
9921 argument to 'outgoing'.
9922 (function_arg_record_value, function_arg_union_value,
9923 function_arg_vector_value): Update comment.
9925 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
9927 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
9928 (fde_needed_for_eh_p): New predicate.
9929 (output_call_frame_info): Use it throughout to decide whether FDEs
9930 are needed for EH purpose.
9931 (dwarf2out_begin_prologue): Reorder assignments.
9933 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9935 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
9936 special case loop->header.
9937 (is_predicated): New.
9938 (if_convertible_loop_p): Call it.
9940 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9942 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
9943 iterator in parameter. Do not generate code during the analysis.
9944 (tree_if_convert_cond_stmt): Removed.
9945 (tree_if_convert_stmt): Removed.
9946 (predicate_bbs): New.
9947 (if_convertible_loop_p): Call predicate_bbs.
9948 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
9949 now contains all the analysis part.
9951 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9953 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
9954 statements in the analysis part.
9955 (tree_if_convert_stmt): Update comment.
9956 (remove_conditions_and_labels): New.
9957 (combine_blocks): Call remove_conditions_and_labels.
9958 (tree_if_conversion): Update comment.
9960 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9962 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
9963 than 2 predecessors or more than 2 successors.
9965 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9967 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
9968 of loops in which the data dependence analysis fails.
9970 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9972 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
9973 CDI_POST_DOMINATORS.
9974 (tree_if_conversion): Same.
9976 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9978 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
9980 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
9982 * tree-if-conv.c: Update copyright years. Fix comments.
9985 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
9987 * builtin-types.def (BT_INT128): New primitive type.
9988 (BT_UINT128): Likewise.
9989 * c-common.c (c_common_r): Add __int128 keyword.
9990 (c_common_type_for_size): Handle __int128.
9991 (c_common_type_for_mode): Likewise.
9992 (c_common_signed_or_unsigned_type): Likewise.
9993 (c_common_nodes_and_builtins): Add builtin type
9994 if target supports 128-bit integer scalar.
9995 * c-common.h (enum rid): Add RID_INT128.
9996 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
9997 if target supports 128-bit integer scalar.
9998 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
9999 (finish_declspecs): Likewise.
10000 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
10001 (c_token_starts_declspecs): Likewise.
10002 (c_parser_declspecs): Likewise.
10003 (c_parser_attributes): Likewise.
10004 (c_parser_objc_selector): Likewise.
10005 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
10006 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
10007 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
10008 * tree.c (make_or_reuse_type): Likewise.
10009 (make_unsigned_type): Likewise.
10010 (build_common_tree_nodes_2): Likewise.
10011 * tree.h (enum integer_type_kind): Add itk_int128 and
10012 itk_unsigned_int128.
10013 (int128_integer_type_node): New define.
10014 (int128_unsigned_type_node): New define.
10015 * doc/extend.texi: Add documentation about __int128 type.
10017 2010-05-26 Richard Guenther <rguenther@suse.de>
10019 * tree-ssa-sccvn.c (copy_nary): Adjust.
10020 (copy_phis): Rename to ...
10021 (copy_phi): ... this. Adjust.
10022 (copy_references): Rename to ...
10023 (copy_reference): ... this. Adjust.
10024 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
10025 result into the valid table.
10027 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
10029 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
10030 insn-config.h, insn-codes.h, recog.h, and optabs.h.
10032 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10034 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
10036 2010-05-26 Richard Guenther <rguenther@suse.de>
10038 * opts.c (common_handle_option): Handle OPT_Ofast.
10040 2010-05-26 Joseph Myers <joseph@codesourcery.com>
10042 * diagnostic.c: Don't include opts.h.
10043 (permissive_error_option): Define.
10044 (diagnostic_initialize): Take n_opts parameter. Allocate memory
10045 for classify_diagnostic. Don't use memset for
10046 classify_diagnostic. Initialize new and recently added fields.
10047 (diagnostic_classify_diagnostic): Use context->n_opts instead of
10049 (diagnostic_report_diagnostic): Pass context parameter to
10050 diagnostic_report_warnings_p. Use option_enabled and option_name
10051 hooks from context.
10052 (emit_diagnostic): Use permissive_error_option.
10053 (permerror): Likewise.
10054 * diagnostic.h: Don't include options.h.
10055 (struct diagnostic_context): Add n_opts, opt_permissive,
10056 inhibit_warnings, warn_system_headers, option_enabled and
10057 option_name fields. Change classify_diagnostic to a pointer.
10058 * opts-diagnostic.h: New file.
10059 * opts.c: Include opts-diagnostic.h.
10060 (common_handle_option): Set global_dc fields for -Wfatal-errors,
10061 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
10062 (option_name): New function.
10063 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
10064 (c_common_handle_option): Set global_dc->permissive for
10066 * c-common.c (c_cpp_error): Save and restore
10067 global_dc->warn_system_headers, not variable warn_system_headers.
10068 * toplev.c: Include opts-diagnostic.h.
10069 (general_init): Update call to diagnostic_initialize. Set
10070 global_dc->show_column, global_dc->option_enabled and
10071 global_dc->option_name.
10072 (process_options): Don't set global_dc fields here.
10073 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
10074 (diagnostic.o, opts.o, toplev.o): Update dependencies.
10076 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10078 * config/picochip/picochip.md (movsi): Split a movsi from a
10079 const after reload.
10081 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10083 * ggc-zone.c: Update copyright year.
10084 (poison_region): Mark memory for Valgrind as undefined before
10085 memset () call and inaccessible afterwards.
10086 (ggc_pch_total_size): Change type of i to int.
10088 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10090 * ggc-common.c (ggc_free_overhead): Allow empty slot.
10092 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10094 * ggc-common.c: Update copyright year.
10095 (ggc_rlimit_bound): Remove prototype. Compile only if
10096 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
10097 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
10098 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
10099 (ggc_min_heapsize_heuristic): Likewise.
10101 2010-05-26 Richard Guenther <rguenther@suse.de>
10103 PR rtl-optimization/44164
10104 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
10105 no-common access-path disambiguation.
10106 (indirect_ref_may_alias_decl_p): Adjust.
10107 (indirect_refs_may_alias_p): Likewise.
10108 (refs_may_alias_p_1): Likewise.
10110 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
10112 * c-typeck.c: Do not include expr.h.
10114 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
10116 * rtl.h (decl_default_tls_model): Move prototype from here...
10117 * output.h: ...to here.
10118 * c-decl.c: Do not include rtl.h.
10119 * c-pragma.c: Likewise.
10120 * c-parser.c: Likewise.
10121 * c-gimplify.c: Likewise. And also not hard-reg-set.
10122 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
10123 FIXME note for it. Add a FIXME note for expr.h.
10124 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
10125 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
10128 2010-05-26 Jakub Jelinek <jakub@redhat.com>
10131 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
10132 or total_size is larger than red zone size for non-V4 ABI, emit a
10133 stack_tie resp. frame_tie insn before stack pointer restore.
10134 * config/rs6000/rs6000.md (frame_tie): New insn.
10136 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
10138 * function.h (struct function): Add can_throw_non_call_exceptions bit.
10139 * lto-streamer-in.c (input_function): Stream it in.
10140 * lto-streamer-out.c (output_function): Stream it out.
10141 * function.c (allocate_struct_function): Set it.
10142 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
10143 for flag_non_call_exceptions.
10144 * cfgbuild.c (control_flow_insn_p): Likewise.
10145 (make_edges): Likewise.
10146 * cfgexpand.c (expand_stack_alignment): Likewise.
10147 * combine.c (distribute_notes): Likewise.
10148 * cse.c (cse_extended_basic_block): Likewise.
10149 * except.c (insn_could_throw_p): Likewise.
10150 * gcse.c (simple_mem): Likewise.
10151 * ipa-pure-const.c (check_call): Likewise.
10152 (check_stmt ): Likewise.
10153 * lower-subreg.c (lower-subreg.c): Likewise.
10154 * optabs.c (emit_libcall_block): Likewise.
10155 (prepare_cmp_insn): Likewise.
10156 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
10157 * postreload.c (rest_of_handle_postreload): Likewise.
10158 * reload1.c (reload_as_needed): Likewise.
10159 (emit_input_reload_insns): Likewise.
10160 (emit_output_reload_insns): Likewise.
10161 (fixup_abnormal_edges): Likewise.
10162 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
10163 * store-motion.c (find_moveable_store): Likewise.
10164 * tree-eh.c (stmt_could_throw_p): Likewise.
10165 (tree_could_throw_p): Likewise.
10166 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10167 * config/arm/arm.c (arm_expand_prologue): Likewise.
10168 (thumb1_expand_prologue): Likewise.
10169 * config/rx/rx.md (cbranchsf4): Likewise.
10171 * config/s390/s390.c (s390_emit_prologue): Likewise.
10172 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
10173 (inline_forbidden_into_p): New predicate.
10174 (expand_call_inline): Use it to forbid inlining.
10175 (tree_can_inline_p): Likewise.
10177 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
10179 * config/i386/i386-c.c: Do not include rtl.h.
10180 * config/i386/t-i386: Update dependencies.
10182 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
10184 * attribs.c: Do not include rtl.h.
10185 * Makefile.in: Update dependencies.
10187 2010-05-25 Anatoly Sokolov <aesok@post.ru>
10189 * double-int.h (double_int_and): New.
10190 * combine.c (try_combine): Clean up, use double_int_* and
10191 immed_double_int_const functions.
10193 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10195 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
10196 stderr to /dev/null instead of grep -q.
10197 * configure: Regenerate.
10199 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
10201 * Makefile.in (EXCEPT_H): Fix typo.
10203 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
10205 * ira-build.c (update_conflict_hard_reg_costs): New.
10206 (ira_build): Call update_conflict_hard_reg_costs.
10208 2010-05-25 Jakub Jelinek <jakub@redhat.com>
10211 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
10213 (intersect_loc_chains): Walk the s2var's loc_chain together
10214 with s1node chain as long as the locations are equal, don't
10215 call find_loc_in_1pdv in that case.
10218 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
10219 (copy_bind_expr): ... instead of here.
10220 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
10221 if the block hasn't been remapped.
10222 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
10223 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
10225 2010-05-25 Richard Guenther <rguenther@suse.de>
10227 PR middle-end/44069
10228 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
10229 out-of-bounds array accesses.
10231 2010-05-25 Richard Guenther <rguenther@suse.de>
10233 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
10234 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
10235 (run_gcc): Re-organize to make cleanup easier.
10237 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10239 * config/s390/s390.c (optimization_options): Fix and move the
10240 flag_prefetch_loop_arrays override ...
10241 (override_options): ... here.
10243 2010-05-25 Joseph Myers <joseph@codesourcery.com>
10245 * diagnostic.c: Don't include plugin.h.
10246 (diagnostic_report_diagnostic): Don't handle plugins specially
10247 here. Pass context to internal_error callback.
10248 * diagnostic.h (struct diagnostic_context): Add context parameter
10249 to internal_error callback.
10250 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
10251 * plugin.h (struct diagnostic_context): Declare.
10252 (warn_if_plugins, plugins_internal_error_function): Declare.
10253 * toplev.c (general_init): Set global_dc->internal_error.
10254 * Makefile.in (diagnostic.o): Update dependencies.
10256 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
10258 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
10259 * config/rs6000/t-darwin64: New.
10260 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
10263 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
10266 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
10267 match the original (and intended) behaviour before r159557. This
10268 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
10271 2010-05-25 Richard Guenther <rguenther@suse.de>
10273 * doc/invoke.texi: Document -Ofast.
10274 * target.h (struct gcc_target): Add handle_ofast.
10275 * target-def.h (TARGET_HANDLE_OFAST): Add.
10276 (TARGET_INITIALIZER): Adjust.
10277 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
10278 * common.opt (Ofast): Add.
10280 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
10282 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
10283 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
10285 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
10288 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
10289 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
10290 false_rtx. Use false_rtx to compute the correct *ptest for reversed
10291 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
10293 2010-05-25 Jakub Jelinek <jakub@redhat.com>
10295 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
10296 DW_OP_minus with negated offset instead of DW_OP_plus.
10297 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
10299 2010-05-25 Wei Guozhi <carrot@google.com>
10301 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
10302 tst instruction and a new alternative.
10303 * config/arm/constraints.md (Pu): New constraint.
10305 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
10307 * function.c (assign_stack_local_1): Initialize variable
10308 to avoid warning when bootstrapping at -O3.
10310 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
10312 * configure.ac (all_lang_makefiles): Remove everything related to it.
10313 * configure: Regenerate.
10314 * Makefile.in: Fix reference to ada Make-lang.in.
10315 Remove support for LANG_MAKEFILES.
10317 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
10318 Sandra Loosemore <sandra@codesourcery.com>
10320 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
10321 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
10322 description. Add arm_neon_fp16_ok.
10323 (Add Options): Add arm_neon and arm_neon_fp16.
10325 2010-05-24 Joseph Myers <joseph@codesourcery.com>
10327 * diagnostic.c: Don't include flags.h.
10328 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
10329 context parameters. Check flags in the context passed as a parameter.
10330 (diagnostic_build_prefix): Add context parameter. Check
10331 show_column flag in context.
10332 (diagnostic_action_after_output): Check fatal_errors flag in context.
10333 (diagnostic_report_current_module): Check show_column flag in context.
10334 (default_diagnostic_starter): Update call to
10335 diagnostic_build_prefix.
10336 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
10337 (emit_diagnostic): Pass context to permissive_error_kind.
10338 (permerror): Pass context to permissive_error_kind.
10339 * diagnostic.h (struct diagnostic_context): Add show_column,
10340 pedantic_errors, permissive and fatal_errors fields.
10341 (diagnostic_build_prefix): Update prototype.
10343 * toplev.c (process_options): Set flags in global_dc from
10344 flag_show_column, flag_pedantic_errors, flag_permissive,
10346 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
10347 to diagnostic_build_prefix.
10348 * Makefile.in (diagnostic.o): Update dependencies.
10350 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
10352 * config/i386/ia32intrin.h (__crc32q): Define only if
10353 __SSE4_2__ is defined.
10355 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
10358 PR middle-end/43602
10359 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
10360 DECL_VISIBILITY_SPECIFIED.
10361 (emutls_decl): Set DECL_PRESERVE_P and copy
10362 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
10363 (emutls_finalize_control_var): New callback.
10364 (emutls_finish): Finalize emutls control variables.
10365 * toplev.c (compile_file): Move the call to emutls_finish ()
10366 before varpool_assemble_pending_decls ().
10368 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
10370 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
10371 added to the preprocessor condition.
10373 2010-05-24 Paul Brook <paul@codesourcery.com>
10375 * gengtype-lex.l: Add HARD_REG_SET.
10376 * expr.c (expand_expr_real_1): Record writes to hard registers.
10377 * function.c (rtl_data): Add asm_clobbers.
10378 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
10379 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
10380 Use crtl->asm_clobbers.
10382 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10384 * doc/makefile.texi (Makefile): Mention stages 'profile'
10385 and 'feedback' for profiledbootstrap.
10387 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
10390 * config/i386/i386.c (def_builtin): Properly check
10391 OPTION_MASK_ISA_64BIT.
10393 2010-05-23 Joseph Myers <joseph@codesourcery.com>
10395 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
10396 typedefs with different but compatible types. Allow duplicate
10397 typedefs with the same type except for pedantic non-C1X, but give
10398 warning for variably modified types.
10399 * c-typeck.c (tagged_types_tu_compatible_p,
10400 function_types_compatible_p, type_lists_compatible_p,
10401 comptypes_internal): Add parameter different_types_p; set
10402 *different_types_p for different but compatible types. All
10404 (comptypes_check_different_types): New.
10405 * c-tree.h (comptypes_check_different_types): Declare.
10407 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
10409 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
10410 * jump.c: Include basic-block.h.
10411 * profile.c: Likewise.
10412 * tree-profile.c: Likewise.
10413 * coverage.c: Likewise.
10414 * basic-block.h (optimize_function_for_size_p): Move to function.h.
10415 (optimize_function_for_speed_p): Likewise.
10416 * function.h (optimize_function_for_size_p,
10417 optimize_function_for_speed_p): Moved here from basic-block.h.
10418 * Makefile.in: Update dependencies.
10420 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10422 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
10423 before calling make; allow override through $MAKE.
10424 * doc/invoke.texi (Optimize Options): Document override.
10426 2010-05-23 Anatoly Sokolov <aesok@post.ru>
10428 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
10429 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10430 (rs6000_mode_dependent_address_ptr): Make static.
10431 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10432 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
10435 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
10438 * config/i386/i386.c: Make sure that the correct regparm is passed.
10440 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
10442 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
10443 * sbitmap.c: ...to here to internalize sbitmap element access.
10444 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
10445 Explain why basic-block.h is included.
10446 * function.h: Include tm.h for CUMULATIVE_ARGS.
10447 * Makefile.in: Update dependencies.
10449 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
10451 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
10453 * sbitmap.h (struct sbitmap_def): Do not typedef here.
10454 * sbitmap.c: Include sbitmap.h.
10455 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
10456 hard-reg-set.h. Split everything related to regsets out from here...
10457 * regset.h: ...to here. New file.
10458 * df.h: Include regset.h and sbitmap.h.
10459 * tree-flow.h: Likewise.
10460 * cfgloop.h: Likewise.
10461 * except.h: Do not include sbitmap.h. Include hashtab.h.
10462 * cgraph.h: Include vec.h and function.h.
10463 * reload.h (struct insn_chain): Change types of live_throughout
10464 and dead_or_set from regset_head to bitmap_head.
10465 (compute_use_by_pseudos): Be defined also if regset.h is not included.
10466 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
10467 spilled_regs from regset_head to bitmap_head to avoid dependency
10469 * sel-sched-ir.h: Include regset.h.
10470 * reload.c: Include df.h before reload.h.
10471 * caller-save.c: Likewise.
10472 * reload1.c: Likewise.
10474 (mark_elimination): Update type of r to bitmap, consistent with
10476 * dominance.c: Include bitmap.h.
10477 * modulo-sched.c: Include df.h.
10478 * cfganal.c: Include bitmap.h and sbitmap.h.
10479 * cfgbuild.c: Include sbitmap.h.
10480 * lcm.c: Include sbitmap.h.
10481 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
10482 * domwalk.c: Include sbitmap.h, exclude ggc.h.
10483 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
10484 * cselib.c: Include bitmap.h.
10485 * tree-optimize.c: Include regset.h.
10486 * stmt.c: Include bitmap.h.
10487 * Makefile.in: Update dependencies.
10489 2010-05-22 Jan Hubicka <jh@suse.cz>
10491 * cgraph.h (struct varpool_node): Add same_comdat_group.
10492 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
10494 (output_varpool): Update call of lto_output_varpool_node.
10495 (input_varpool): Read same_comdat_group pointer.
10496 (input_varpool_1): Fixup same_comdat_group pointer.
10497 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
10498 group is needed, all are.
10499 * varpool.c (varpool_remove_node): Remove node from same comdat group
10501 (varpool_analyze_pending_decls): Walk same comdat groups.
10503 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
10505 * rtl.h (union rtunion_def): Remove rt_bit member.
10506 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
10507 * print-rtl (print_rtx): Do not print the member.
10508 * gengtype.c (adjust_field_rtx_def): Do not handle it.
10509 * gengenrtl.c (type_from_format): Likewise.
10510 (accessor_from_format): Likewise.
10512 2010-05-22 Joseph Myers <joseph@codesourcery.com>
10514 * dbgcnt.c: Include toplev.h instead of errors.h.
10515 * ira-emit.c: Don't include errors.h.
10516 * ira.c: Include toplev.h instead of errors.h.
10517 * lto-compress.c: Include toplev.h instead of errors.h.
10518 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
10519 ira.o, dbgcnt.o): Update dependencies.
10521 2010-05-22 Richard Guenther <rguenther@suse.de>
10523 * gimple.c (gimple_types_compatible_p): Check type qualifications
10524 before merging pointer to complete and pointer to incomplete type.
10525 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
10526 we use our own resolution algorithm. The gold linker plugin
10527 doesn't do the job we want it to do here.
10529 2010-05-22 Anatoly Sokolov <aesok@post.ru>
10531 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10532 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10533 (sparc_mode_dependent_address_p): New function.
10535 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
10537 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
10539 * timevar.c: Do not include any core headers.
10540 (timevar_print): De-i18n-ize.
10541 (print_time): Likewise.
10542 * timevar.h (timevar_push, timevar_pop): Make inline functions.
10544 2010-05-21 Joseph Myers <joseph@codesourcery.com>
10546 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
10548 (diagnostic_initialize): Initialize x_data not last_function.
10549 (diagnostic_report_current_function): Move to tree-diagnostic.c.
10550 (default_diagnostic_starter): Call
10551 diagnostic_report_current_module not
10552 diagnostic_report_current_function.
10553 (diagnostic_report_diagnostic): Initialize x_data not
10555 (verbatim): Likewise.
10556 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
10558 (struct diagnostic_context): Change last_function to x_data.
10559 (diagnostic_auxiliary_data): Replace with
10560 diagnostic_context_auxiliary_data and
10561 diagnostic_info_auxiliary_data.
10562 (diagnostic_last_function_changed, diagnostic_set_last_function,
10563 diagnostic_report_current_function): Move to tree-diagnostic.h.
10564 (print_declaration, dump_generic_node, print_generic_stmt,
10565 print_generic_stmt_indented, print_generic_expr,
10566 print_generic_decl, debug_c_tree, dump_omp_clauses,
10567 print_call_name, debug_generic_expr, debug_generic_stmt,
10568 debug_tree_chain, default_tree_printer): Move to
10569 tree-pretty-print.h.
10570 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
10571 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
10572 gimple-pretty-print.h.
10573 * pretty-print.c: Don't include tree.h
10574 (pp_base_format): Don't handle %K here.
10575 (pp_base_tree_identifier): Move to tree-pretty-print.c.
10576 * pretty-print.h (text_info): Change abstract_origin to x_data.
10577 (pp_tree_identifier, pp_unsupported_tree,
10578 pp_base_tree_identifier): Move to tree-pretty-print.h.
10579 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
10580 tree-pretty-print.h: New files.
10581 * tree-pretty-print.c: Include tree-pretty-print.h.
10582 (percent_K_format): New. Moved from pretty-print.c.
10583 (pp_base_tree_identifier): Move from pretty-print.c.
10584 * c-objc-common.c: Include tree-pretty-print.h.
10585 (c_tree_printer): Handle %K here.
10586 * langhooks.c: Include tree-diagnostic.h.
10587 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
10588 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
10589 (default_tree_printer): Handle %K using percent_K_format.
10590 (general_init): Use default_tree_diagnostic_starter.
10591 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
10592 (free_lang_data): Use default_tree_diagnostic_starter.
10593 * c-pretty-print.c: Include tree-pretty-print.h.
10594 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10595 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10596 * dwarf2out.c: Include tree-pretty-print.h.
10597 * except.c: Include tree-pretty-print.h.
10598 * gimple-pretty-print.c: Include tree-pretty-print.h and
10599 gimple-pretty-print.h.
10600 * gimplify.c: Include tree-pretty-print.h.
10601 * graphite-poly.c: Include tree-pretty-print.h and
10602 gimple-pretty-print.h.
10603 * ipa-cp.c: Include tree-pretty-print.h.
10604 * ipa-inline.c: Include gimple-pretty-print.h.
10605 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10606 * ipa-pure-const.c: Include gimple-pretty-print.h.
10607 * ipa-struct-reorg.c: Include tree-pretty-print.h and
10608 gimple-pretty-print.h.
10609 * ipa-type-escape.c: Include tree-pretty-print.h.
10610 * print-rtl.c: Include tree-pretty-print.h.
10611 * print-tree.c: Include gimple-pretty-print.h.
10612 * sese.c: Include tree-pretty-print.h.
10613 * tree-affine.c: Include tree-pretty-print.h.
10614 * tree-browser.c: Include tree-pretty-print.h.
10615 * tree-call-cdce.c: Include gimple-pretty-print.h.
10616 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
10617 * tree-chrec.c: Include tree-pretty-print.h.
10618 * tree-data-ref.c: Include tree-pretty-print.h and
10619 gimple-pretty-print.h.
10620 * tree-dfa.c: Include tree-pretty-print.h.
10621 * tree-if-conv.c: Include tree-pretty-print.h and
10622 gimple-pretty-print.h.
10623 * tree-inline.c: Include tree-pretty-print.h.
10624 * tree-into-ssa.c: Include tree-pretty-print.h and
10625 gimple-pretty-print.h.
10626 * tree-nrv.c: Include tree-pretty-print.h.
10627 * tree-object-size.c: Include tree-pretty-print.h and
10628 gimple-pretty-print.h.
10629 * tree-outof-ssa.c: Include tree-pretty-print.h and
10630 gimple-pretty-print.h.
10631 * tree-parloops.c: Include tree-pretty-print.h and
10632 gimple-pretty-print.h.
10633 * tree-predcom.c: Include tree-pretty-print.h and
10634 gimple-pretty-print.h.
10635 * tree-scalar-evolution.c: Include tree-pretty-print.h and
10636 gimple-pretty-print.h.
10637 * tree-sra.c: Include tree-pretty-print.h.
10638 * tree-ssa-address.c: Include tree-pretty-print.h.
10639 * tree-ssa-alias.c: Include tree-pretty-print.h.
10640 * tree-ssa-ccp.c: Include tree-pretty-print.h and
10641 gimple-pretty-print.h.
10642 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
10643 * tree-ssa-copy.c: Include tree-pretty-print.h and
10644 gimple-pretty-print.h.
10645 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
10646 * tree-ssa-dce.c: Include tree-pretty-print.h and
10647 gimple-pretty-print.h.
10648 * tree-ssa-dom.c: Include tree-pretty-print.h and
10649 gimple-pretty-print.h.
10650 * tree-ssa-dse.c: Include gimple-pretty-print.h.
10651 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
10652 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
10653 * tree-ssa-live.c: Include tree-pretty-print.h and
10654 gimple-pretty-print.h.
10655 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
10656 gimple-pretty-print.h.
10657 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
10658 gimple-pretty-print.h.
10659 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
10660 gimple-pretty-print.h.
10661 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
10662 gimple-pretty-print.h.
10663 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
10664 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
10665 * tree-ssa-operands.c: Include tree-pretty-print.h and
10666 gimple-pretty-print.h.
10667 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
10668 gimple-pretty-print.h.
10669 * tree-ssa-pre.c: Include tree-pretty-print.h and
10670 gimple-pretty-print.h.
10671 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
10672 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
10673 gimple-pretty-print.h.
10674 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
10675 gimple-pretty-print.h.
10676 * tree-ssa-sink.c: Include gimple-pretty-print.h.
10677 * tree-ssa-ter.c: Include tree-pretty-print.h and
10678 gimple-pretty-print.h.
10679 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
10680 * tree-ssa.c: Include tree-pretty-print.h and
10681 gimple-pretty-print.h.
10682 * tree-stdarg.c: Include gimple-pretty-print.h.
10683 * tree-switch-conversion.c: Include gimple-pretty-print.h.
10684 * tree-tailcall.c: Include tree-pretty-print.h and
10685 gimple-pretty-print.h.
10686 * tree-vect-data-refs.c: Include tree-pretty-print.h and
10687 gimple-pretty-print.h.
10688 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
10689 gimple-pretty-print.h.
10690 * tree-vect-loop.c: Include tree-pretty-print.h and
10691 gimple-pretty-print.h.
10692 * tree-vect-patterns.c: Include gimple-pretty-print.h.
10693 * tree-vect-slp.c: Include tree-pretty-print.h and
10694 gimple-pretty-print.h.
10695 * tree-vect-stmts.c: Include tree-pretty-print.h and
10696 gimple-pretty-print.h.
10697 * tree-vectorizer.c: Include tree-pretty-print.h.
10698 * tree-vrp.c: Include tree-pretty-print.h and
10699 gimple-pretty-print.h.
10700 * value-prof.c: Include tree-pretty-print.h and
10701 gimple-pretty-print.h.
10702 * var-tracking.c: Include tree-pretty-print.h.
10703 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
10704 (tree-diagnostic.o): New dependencies.
10705 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
10706 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
10707 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
10708 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
10709 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
10710 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
10711 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
10712 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
10713 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
10714 tree-ssa-address.o, tree-ssa-loop-niter.o,
10715 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
10716 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
10717 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
10718 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
10719 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
10720 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
10721 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
10722 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
10723 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
10724 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
10725 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
10726 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
10727 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
10728 tree-switch-conversion.o, var-tracking.o, value-prof.o,
10729 cfgexpand.o, pretty-print.o): Update dependencies.
10731 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
10733 * tree-ssa-structalias.c: Remove tm_p.h from include.
10735 2010-05-21 Jeff Law <law@redhat.com>
10737 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
10739 2010-05-21 Jason Merrill <jason@redhat.com>
10741 * tree-eh.c (cleanup_is_dead_in): New.
10742 (lower_try_finally): Don't generate a dead cleanup region.
10743 (lower_cleanup): Likewise.
10745 2010-05-21 Jakub Jelinek <jakub@redhat.com>
10748 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
10749 unchain each use from the cyclic next_regno_use chain first.
10751 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
10753 * real: Do not include gmp.h, mpfr.h, and mpc.h.
10754 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
10755 (real_value_negate, real_value_abs): New prototypes.
10756 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
10757 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
10758 new include file for interface between MPFR and REAL_VALUE_TYPE.
10759 * real.c: Include realmpfr.h.
10760 (real_arithmetic2): Remove legacy function.
10761 (real_value_negate): New.
10762 (real_value_abs): New.
10763 (mfpr_from_real, real_from_mpfr): Move from here...
10764 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
10765 * builtins.c: Include realmpfr.h.
10766 * fold-const.c: Include realmpfr.h.
10767 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
10768 (fold_negate_const): Likewise.
10769 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
10770 * toplev.c: Include realmpfr.h.
10771 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
10772 and real_value_negate.
10773 * fixed-value.c (check_real_for_fixed_mode): Likewise.
10774 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
10775 (vfp3_const_double_index): Likewise.
10776 (arm_print_operand): Likewise.
10777 * Makefile.in: Update dependencies.
10779 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10781 * config/s390/s390.c (override_options): Increase the default
10782 of max-completely-peel-times.
10784 2010-05-21 Julian Brown <julian@codesourcery.com>
10785 Mark Mitchell <mark@codesourcery.com>
10787 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
10788 sibling calls for Thumb-1.
10789 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
10790 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
10792 (*call_insn, *call_value_insn): Don't use for Thumb-2.
10793 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
10795 (return): New expander.
10796 (*arm_return): New name for ARM return insn.
10797 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
10799 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
10801 * config.gcc (sparc64-*-rtems*): New target.
10803 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
10805 * tree.c (build_function_decl_skip_args): Fix grammar.
10806 (build_function_type_list_1): Fix typos, adjust formatting.
10808 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
10810 * tree.h: Include real.h and fixed-value.h as basic datatypes.
10811 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
10812 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
10813 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
10814 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
10815 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
10816 tree-pretty-print.c, tree-loop-distribution.c,
10817 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
10818 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
10819 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
10820 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
10821 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
10822 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
10823 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
10824 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
10825 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
10826 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
10827 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
10828 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
10829 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
10830 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
10831 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
10832 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
10833 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
10834 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
10835 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
10836 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
10837 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
10838 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
10839 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
10840 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
10841 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
10842 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
10843 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
10844 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
10845 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
10846 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
10847 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
10848 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
10849 config/score/score7.c, config/score/score.c, config/arm/arm.c,
10850 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
10851 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
10852 config/bfin/bfin.c: Clean up redundant includes.
10853 * Makefile.in: Update accordingly.
10855 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
10857 PR middle-end/44204
10858 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
10859 statement has no arguments.
10861 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
10864 * varasm.c (emutls_decl): Merge attributes to new decl.
10866 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
10868 PR middle-end/44101
10869 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
10870 around the uniquized constructor if its type requires a conversion.
10872 2010-05-21 Jakub Jelinek <jakub@redhat.com>
10875 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
10876 at -O0 goto_locus of any of the incoming edges differs from
10877 goto_locus of outgoing edge, or gimple_location of any of the
10880 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
10882 * ira.c (ira_non_ordered_class_hard_regs): Define.
10883 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
10884 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
10885 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
10886 cost of unaligned hard regs when allocating multi-reg pseudos.
10888 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10890 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
10891 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
10892 for TARGET_NO_FLOAT.
10893 * config/mips/mips.c (mips_file_start): Expand conditional expression
10894 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
10895 (mips_override_options): Move -mno-float override -msoft-float and
10897 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
10898 Condition(TARGET_SUPPORTS_NO_FLOAT).
10899 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
10900 __mips_no_float here.
10901 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
10902 (TARGET_SUPPORTS_NO_FLOAT): Define.
10903 * config/mips/sdemtk.opt: Delete.
10905 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
10907 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
10909 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
10912 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
10913 * configure: Regenerate.
10914 * config.in: Regenerate.
10915 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
10916 instead of sahf only for 64bit targets.
10918 2010-05-20 Jakub Jelinek <jakub@redhat.com>
10921 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
10922 setup_ref_regs for DEBUG_INSNs.
10924 2010-05-20 Jan Hubicka <jh@suse.cz>
10926 PR middle-end/44197
10927 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
10929 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
10932 * df-scan.c (df_ref_compare): Stabilize sort.
10934 2010-05-20 Jakub Jelinek <jakub@redhat.com>
10936 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
10937 argument. Don't use DW_OP_piece if offset is non-zero,
10938 put offset into second DW_OP_bit_piece argument.
10939 (dw_sra_loc_expr): Adjust callers. For memory expressions
10942 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
10945 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
10946 settings for 16-bit-constant "addo" alternative.
10948 2010-05-19 James E. Wilson <wilson@codesourcery.com>
10950 * config/mips/mips-dsp.md (add<DSPV:mode>3,
10951 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
10954 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
10955 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
10958 2010-05-19 Joseph Myers <joseph@codesourcery.com>
10960 * diagnostic.c (FLOAT, FFS): Don't undefine.
10961 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
10962 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
10965 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10967 * combine.c (propagate_for_debug): Call make_compound_operation
10968 on the source value.
10969 (try_combine): When implementing a split chosen by find_split_point,
10970 either copy i2src or set it to null. Assert that i2src is not null
10971 before substituting into CALL_INSN_FUNCTION_USAGE.
10973 2010-05-19 Anatoly Sokolov <aesok@post.ru>
10975 * double-int.h (double_int_ior): New function.
10976 * tree.h (build_int_cst_wide_type): Remove.
10977 * tree.c (build_int_cst_wide_type): Remove.
10978 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
10979 of build_int_cst_wide_type.
10980 * stor-layout.c (set_sizetype): (Ditto.).
10981 * dojump.c (do_jump): Use build_int_cstu instead of
10982 build_int_cst_wide_type.
10984 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
10986 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
10987 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
10988 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
10989 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
10990 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
10991 propagate the 'data' argument to copy_tree_r.
10992 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
10993 Propagate 'data' argument to walk_tree.
10994 (copy_if_shared): New function.
10995 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
10996 (unmark_visited): New function.
10997 (unshare_body): Call copy_if_shared instead of doing it manually.
10998 (unvisit_body): Call unmark_visited instead of doing it manually.
11000 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
11002 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
11003 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
11004 * hooks.c: Likewise.
11005 * target-def.h (TARGET_FOLD_BUILTIN): Define to
11006 hook_tree_tree_int_treep_bool_null.
11007 * target.h (struct gcc_target): Update signature of fold_builtin
11009 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
11010 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
11011 instead of the call expression.
11012 (fold_builtin_call_array): Pass n and argarray directly.
11013 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
11015 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
11016 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
11017 `i' and use it in place of `arity'.
11018 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
11019 Dereference `args' directly.
11020 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
11022 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11024 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11026 (Directives): Document optional dg-require-effective-target
11029 2010-05-19 Richard Guenther <rguenther@suse.de>
11032 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
11034 2010-05-19 Richard Guenther <rguenther@suse.de>
11036 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
11037 * common.opt (fwhopr=): New.
11038 * opts.c (common_handle_option): Handle OPT_fwhopr.
11039 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
11040 * collect2.c (main): Match -fwhopr*.
11041 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
11042 Execute ltrans stage in parallel when jobs is bigger than 1.
11044 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11046 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
11047 pentiumpro on Solaris 8/x86 with Sun as.
11048 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
11050 (gcc_cv_as_ix86_quad): Check for .quad directive.
11051 * configure: Regenerate.
11052 * config.in: Regenerate.
11053 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
11055 2010-05-19 Martin Jambor <mjambor@suse.cz>
11057 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
11058 also for indirect edges. Actual printing moved...
11059 (ipa_print_node_jump_functions_for_edge): ...here.
11060 (ipa_compute_jump_functions): Renamed to
11061 ipa_compute_jump_functions_for_edge and made static.
11062 (ipa_compute_jump_functions): New function.
11063 (make_edge_direct_to_target): Check if the number of arguments on
11064 the newly direct edge is the same as the number of parametrs of
11066 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
11067 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
11068 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11069 analysis functions unconditionally, call the new
11070 ipa_analyze_params_uses on the node instead of every edge.
11072 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
11074 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
11076 (dump_mem_ref): Adopt debug code to handle a tree as step. This
11077 also checks for a constant int vs. non-constant but
11078 loop-invariant steps.
11079 (find_or_create_group): Change the sort algorithm to only consider
11080 steps that are constant ints.
11081 (idx_analyze_ref): Adopt code to handle a tree instead of a
11082 HOST_WIDE_INT for step.
11083 (gather_memory_references_ref): Handle tree instead of int and be
11084 prepared to see a NULL_TREE.
11085 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
11086 prefetches if the step cannot be calculated at compile time.
11087 (issue_prefetch_ref): Issue prefetches for non-constant but
11088 loop-invariant steps.
11090 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
11093 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
11095 * tree.h (build_call_list): Remove.
11096 * tree.c (build_call_list): Remove.
11098 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
11100 * tree.h (build_call_list): Remove.
11101 * tree.c (build_call_list): Remove.
11103 2010-05-18 Jan Hubicka <jh@suse.cz>
11105 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
11107 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
11109 PR rtl-optimization/43332
11110 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
11112 2010-05-18 Anatoly Sokolov <aesok@post.ru>
11114 * tree.h (build_int_cstu): Implement as static inline.
11115 * tree.c (build_int_cstu): Remove function.
11116 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
11119 2010-05-18 Richard Guenther <rguenther@suse.de>
11122 * lto-wrapper.c (verbose): New variable. Initialize from -v.
11123 (debug): Initialize from -save-temps.
11124 (collect_execute): Print command-line when verbose.
11125 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
11126 for ltrans invocation. Produce -dumpbase flag again.
11127 (process_args): Remove.
11129 * collect2.c (maybe_run_lto_and_relink): Only pass object
11130 files to lto-wrapper.
11131 * gcc.c (LINK_COMMAND_SPEC): Likewise.
11133 2010-05-18 Jan Hubicka <jh@suse.cz>
11135 * opts.c (decode_options): Do not disable whopr at ipa_cp.
11136 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
11138 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
11141 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
11143 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
11146 2010-05-18 Jakub Jelinek <jakub@redhat.com>
11149 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
11150 rtx_equal_p inline.
11152 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
11154 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
11155 lto-macho as lto_binary_reader.
11157 * darwin.c (darwin_asm_named_section): Do not add assembler comment
11158 after .section directive; just print it before the directive instead.
11160 2010-05-17 Jan Hubicka <jh@suse.cz>
11162 * cgraph.c (cgraph_create_virtual_clone): Only check
11163 versionable_function_p when not in wpa and checking is enabled.
11164 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
11165 there are no more functions to materialize.
11167 2010-05-17 Jan Hubicka <jh@suse.cz>
11169 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
11170 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
11172 (output_cgraph): Call output_cgraph_opt_summary.
11173 (input_cgrpah): Call input_cgraph_opt_summary.
11174 (output_cgraph_opt_summary_p, output_node_opt_summary,
11175 input_node_opt_summary, input_cgraph_opt_section): New functions.
11176 * lto-section-in.c (lto_section_name): Add cgraphopt.
11177 * tree-inline.c (tree_function_versioning): Handle parm_num.
11178 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
11179 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
11181 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
11183 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
11184 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
11185 the insn to prefetch ratio heuristic to loops with known trip count.
11187 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
11189 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
11190 (schedule_prefetches): Do not generate a prefetch if the unroll factor
11191 is far from what is required by the prefetch.
11193 2010-05-17 Jan Hubicka <jh@suse.cz>
11195 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
11196 (ipcp_estimate_growth): Likewise.
11197 (ipcp_const_param_count): Likewise.
11198 (ipcp_insert_stage): Likewise.
11199 * ipa-prop.c (visit_load_for_mod_analysis): New function.
11200 (visit_store_addr_for_mod_analysis): Set used flag.
11201 (ipa_detect_param_modifications): Set used flag for SSE params;
11202 update use of walk_stmt_load_store_addr_ops.
11203 (ipa_print_node_params): Print used flag.
11204 (ipa_write_node_info): Stream used flag.
11205 (ipa_read_node_info): Likewise.
11206 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
11207 (ipa_is_param_used): New function.
11208 (lto_ipa_fixup_call_notes): Remove unused declaration.
11210 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11213 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
11214 * configure: Regenerate.
11215 * config.in: Regenerate.
11216 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
11217 !HAVE_AS_IX86_REP_LOCK_PREFIX.
11218 Don't emit whitespace.
11219 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
11220 (*rep_movsi): Likewise.
11221 (*rep_movsi_rex64): Likewise.
11222 (*rep_movqi): Likewise.
11223 (*rep_movqi_rex64): Likewise.
11224 (*rep_stosdi_rex64): Likewise.
11225 (*rep_stossi): Likewise.
11226 (*rep_stossi_rex64): Likewise.
11227 (*rep_stosqi): Likewise.
11228 (*rep_stosqi_rex64): Likewise.
11229 (*cmpstrnqi_nz_1): Use {%;} after repz.
11230 (*cmpstrnqi_nz_rex_1): Likewise.
11231 (*cmpstrnqi_1): Likewise.
11232 (*cmpstrnqi_rex_1): Likewise.
11233 (*strlenqi_1): Use {%;} after repnz.
11234 (*strlenqi_rex_1): Likewise.
11235 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
11236 (*sync_compare_and_swap<mode>): Likewise.
11237 (sync_double_compare_and_swap<mode>): Likewise.
11238 (*sync_double_compare_and_swapdi_pic): Likewise.
11239 (sync_old_add<mode>): Likewise.
11240 (sync_add<mode>): Likewise.
11241 (sync_sub<mode>): Likewise.
11242 (sync_<code><mode>): Likewise.
11244 2010-05-17 Martin Jambor <mjambor@suse.cz>
11246 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
11247 otr_token and polymorphic.
11248 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
11249 (cgraph_clone_edge): Copy the above fields.
11250 * tree.c (get_binfo_at_offset): New function.
11251 * tree.h (get_binfo_at_offset): Declare.
11252 * ipa-prop.h (enum jump_func_type): Added known_type jump function
11253 type, reordered items, updated comments.
11254 (union jump_func_value): Added base_type field, reordered fields.
11255 (enum ipa_lattice_type): Moved down in the file.
11256 (struct ipa_param_descriptor): New field polymorphic.
11257 (ipa_is_param_polymorphic): New function.
11258 * ipa-prop.c: Include gimple.h and gimple-fold.h.
11259 (ipa_print_node_jump_functions): Print known type jump functions.
11260 (compute_complex_pass_through): Renamed to...
11261 (compute_complex_assign_jump_func): this.
11262 (compute_complex_ancestor_jump_func): New function.
11263 (compute_known_type_jump_func): Likewise.
11264 (compute_scalar_jump_functions): Create known type and complex ancestor
11266 (ipa_note_param_call): New parameter polymorphic, set the corresponding
11267 flag in the call note accordingly.
11268 (ipa_analyze_call_uses): Renamed to...
11269 (ipa_analyze_indirect_call_uses): this. New parameter target, define
11270 variable var only in the block where it is used.
11271 (ipa_analyze_virtual_call_uses): New function.
11272 (ipa_analyze_call_uses): Likewise.
11273 (combine_known_type_and_ancestor_jfs): Likewise.
11274 (update_jump_functions_after_inlining): Implemented handling of a
11275 number of new jump function types combination.
11276 (print_edge_addition_message): Removed.
11277 (make_edge_direct_to_target): New function.
11278 (try_make_edge_direct_simple_call): Likewise.
11279 (try_make_edge_direct_virtual_call): Likewise.
11280 (update_call_notes_after_inlining): Renamed to...
11281 (update_indirect_edges_after_inlining): this. Moved edge creation for
11282 indirect calls to try_make_edge_direct_simple_call, also calls
11283 try_make_edge_direct_virtual_call for virtual calls.
11284 (ipa_print_node_params): Changed the header message.
11285 (ipa_write_jump_function): Stream also known type jump functions.
11286 (ipa_read_jump_function): Likewise.
11287 (ipa_write_indirect_edge_info): Stream new fields in
11288 cgraph_indirect_call_info.
11289 (ipa_read_indirect_edge_info): Likewise.
11290 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
11293 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11295 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
11297 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
11299 * tree.h (CALL_EXPR_ARGS): Delete.
11300 (call_expr_arglist): Delete.
11301 * tree.c (call_expr_arglist): Delete.
11302 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
11303 targetm.fold_builtin.
11304 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
11305 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
11306 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
11307 arglist parameter. Use CALL_EXPR_ARG.
11308 (picochip_expand_builtin_3op): Likewise.
11309 (picochip_expand_builtin_2opvoid): Likewise.
11310 (picochip_expand_array_get): Likewise.
11311 (picochip_expand_array_put): Likewise.
11312 (picochip_expand_array_testport): Likewise.
11313 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
11314 rather than arglist.
11315 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
11317 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
11318 than TREE_VALUE and TREE_CHAIN.
11319 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
11320 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
11323 2010-05-17 Jakub Jelinek <jakub@redhat.com>
11326 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
11327 to have no fallthru edge.
11329 PR middle-end/44102
11330 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
11331 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
11332 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
11333 add BARRIER after previous bb if needed.
11335 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
11337 * tree.c (build_function_type_list_1): Remove bogus assert condition.
11339 2010-05-17 Alan Modra <amodra@gmail.com>
11341 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
11342 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
11343 with copy_reg rtx param.
11344 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
11345 Correct cases where code for ABI_V4 did not initialise the reg
11346 used to access frame. Also leave frame_reg_rtx as sp for large
11347 frames that save no regs.
11349 2010-05-17 Martin Jambor <mjambor@suse.cz>
11351 PR middle-end/44133
11352 * tree-sra.c (create_access_replacement): New parameter rename, mark
11353 the replaement for renaming only when it is true.
11354 (get_access_replacement): Pass true in the rename parameter of
11355 create_access_replacement.
11356 (get_unrenamed_access_replacement): New function.
11357 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
11358 replacement declaration from it.
11360 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
11362 * function.c (try_fit_stack_local, add_frame_space): New static
11364 (assign_stack_local_1): Use them. Look for opportunities to use
11365 space previously wasted on alignment.
11366 * function.h (struct frame_space): New.
11367 (struct rtl_data): Add FRAME_SPACE_LIST member.
11368 * reload1.c (something_was_spilled): New static variable.
11369 (alter_reg): Set it.
11370 (reload): Test it in addition to testing if the frame size changed.
11372 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
11374 * config/s390/s390.c: Define sane prefetch settings and activate
11375 flag_prefetch_loop_arrays on -O3.
11376 * config/s390/s390.h: Declare that read can use write prefetch.
11378 2010-05-17 Jakub Jelinek <jakub@redhat.com>
11380 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
11383 2010-05-16 Jan Hubicka <jh@suse.cz>
11385 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
11386 function body; do not check stdarg field of struct function.
11388 2010-05-16 Jan Hubicka <jh@suse.cz>
11390 * cgraph.c (dump_cgraph_node): Dump versionable flag.
11391 * cgraph.h (cgraph_local_info): Add versionable flag.
11392 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
11393 (ipcp_versionable_function_p): Use it.
11394 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11397 2010-05-16 Jan Hubicka <jh@suse.cz>
11399 * cgraph.c (cgraph_clone_node): Take decl argument and insert
11400 clone into hash when it is different from orig.
11401 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
11402 * cgraph.h (cgraph_clone_node): Update prototype.
11403 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
11404 (lto_cgraph_encoder_delete): Delete body map.
11405 (lto_cgraph_encoder_size): Move to header.
11406 (lto_cgraph_encoder_encode_body_p,
11407 lto_set_cgraph_encoder_encode_body): New.
11408 (lto_output_node): Do not take written_decls argument; output clone_of
11410 (add_node_to): Add include_body_argument; call
11411 lto_set_cgraph_encoder_encode_body on master of the clone.
11412 (add_references): Update use of add_node_to.
11413 (compute_ltrans_boundary): Likewise.
11414 (output_cgraph): Do not create written_decls bitmap.
11415 (input_node): Take nodes argument; stream in clone_of correctly.
11416 (input_cgraph_1): Update use of input_node.
11417 * lto-streamer-out.c (lto_output): Use encoder info to decide
11418 what bodies to output.
11419 * ipa-inline.c (cgraph_clone_inlined_nodes,
11420 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
11421 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
11422 (lto_cgraph_encoder_size): Define here.
11423 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
11426 2010-05-16 Richard Guenther <rguenther@suse.de>
11428 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
11430 * ipa-type-escape.c (gate_type_escape_vars): Run when
11431 -fipa-struct-reorg runs.
11432 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
11433 * common.opt (fipa-type-escape): Remove.
11435 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
11437 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
11438 (decode_options): Likewise.
11439 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
11441 2010-05-16 Jan Hubicka <jh@suse.cz>
11443 * ipa.c (function_and_variable_visibility): Also bring local all
11446 2010-05-16 Richard Guenther <rguenther@suse.de>
11448 * alias.c (nonoverlapping_memrefs_p): Remove use of
11449 IPA type-escape information.
11451 2010-05-16 Joseph Myers <joseph@codesourcery.com>
11453 * c-common.c (c_common_reswords): Add _Static_assert for C.
11454 * c-parser.c (c_token_starts_declaration,
11455 c_parser_next_token_starts_declaration,
11456 c_parser_static_assert_declaration_no_semi,
11457 c_parser_static_assert_declaration): New.
11458 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
11459 Handle static assertions if static_assert_ok.
11460 (c_parser_external_declaration, c_parser_declaration_or_fndef,
11461 c_parser_compound_statement_nostart, c_parser_label,
11462 c_parser_for_statement, c_parser_objc_methodprotolist,
11463 c_parser_omp_for_loop): All callers of
11464 c_parser_declaration_or_fndef changed.
11465 (c_parser_struct_declaration): Handle static assertions.
11466 (c_parser_compound_statement_nostart): Use
11467 c_parser_next_token_starts_declaration and
11468 c_token_starts_declaration to detect start of declarations.
11469 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
11472 2010-05-16 Anatoly Sokolov <aesok@post.ru>
11474 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11475 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11476 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11477 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11478 (mmix_function_outgoing_value): Rename to...
11479 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
11480 (mmix_function_value_regno_p): Make static.
11481 (mmix_libcall_value): New function.
11482 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
11483 mmix_function_value_regno_p): Remove declaration.
11485 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
11487 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
11488 BUILT_IN_ALLOCA if stack checking is enabled.
11490 2010-05-16 Richard Guenther <rguenther@suse.de>
11492 * var-tracking.c (vars_copy_1): Inline ...
11493 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
11494 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
11495 (variable_merge_over_cur): Adjust. Merge asserts.
11496 (variable_merge_over_src): Likewise.
11497 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
11498 (variable_post_merge_new_vals): Merge asserts.
11499 (variable_post_merge_perm_vals): Likewise.
11500 (find_mem_expr_in_1pdv): Likewise.
11501 (dataflow_set_different_value): Remove.
11502 (onepart_variable_different_p): Merge asserts.
11503 (variable_different_p): Likewise.
11504 (dataflow_set_different_1): Inline ...
11505 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
11506 (emit_notes_for_differences_1): Merge asserts.
11508 2010-05-16 Richard Guenther <rguenther@suse.de>
11510 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
11511 * optabs.c (libfunc_decl_hash): Likewise.
11512 * varasm.c (emutls_decl): Likewise.
11514 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
11516 * c-decl.c: Don't include gimple.h.
11517 (merge_decls): Do not copy gimple_body.
11519 2010-05-15 Jason Merrill <jason@redhat.com>
11521 * c.opt: Add -fnothrow-opt.
11523 2010-05-15 Jan Hubicka <jh@suse.cz>
11525 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
11527 * passes.c (ipa_write_summaries): Write all analyzed nodes.
11529 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
11531 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
11532 * Makefile.in: Add it.
11533 Fix all other Makefile dependencies for changes below.
11534 * tree.h: Include it instead of defining VEC primitives here.
11535 * gimple.h: Likewise.
11537 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
11538 * except.h: Include vecir.h, break dependence on tree.h.
11540 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
11542 * tree-iterator.c: ...to here.
11543 * tree-iterator.h: Fix file introduction comment. Add extern markers.
11545 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
11547 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
11548 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
11549 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
11550 tree-mudflap.h, and target.h.
11551 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
11552 predict.h, tree-inline.h, gimple.h, and langhooks.h.
11553 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
11554 Add FIXME for why gimple.h is still included (should be unnecessary
11555 since GCC 4.5 gimplification unit-at-a-time).
11556 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
11557 * c-pragma.c: Add FIXME for why function.h needs to be included just
11558 for cfun, at front-end level.
11559 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
11560 Do not include ggc.h, but include vecprim.h for VEC(char).
11561 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
11562 Explain why target.h is included.
11563 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
11564 Explain why gimple.h is included.
11565 * c-ppoutput.c: Do not include tm.h.
11566 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
11567 * c-parses.c: Explain why rtl.h is included, and that this (and only
11568 this) is also why tm.h must be included.
11569 Do not include except.h.
11570 * c-lang.c: Do not include ggc.h.
11572 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
11574 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
11576 2010-05-15 Joseph Myers <joseph@codesourcery.com>
11578 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
11579 unions by default if those structs and unions have no tags. Do
11580 not condition anonymous struct and unions handling on flag_iso.
11581 Allow anonymous structs and unions for C1X.
11582 (finish_struct): Do not diagnose lack of named fields when
11583 anonymous structs and unions present for C1X. Accept flexible
11584 array members in structure with anonymous structs or unions but no
11585 directly named fields.
11586 * doc/extend.texi (Unnamed Fields): Update.
11588 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
11590 * gimple.h (compare_field_offset): Rename into...
11591 (gimple_compare_field_offset): ...this.
11592 * gimple.c (compare_field_offset): Rename into...
11593 (gimple_compare_field_offset): ...this. Compare the full access if
11594 the offset is self-referential.
11595 (gimple_types_compatible_p): Adjust for above renaming.
11596 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
11597 DECL_NONADDRESSABLE_P flag of fields before merging them.
11599 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
11601 * tree.h (ctor_to_list): Delete.
11602 * tree.c (ctor_to_list): Delete.
11604 2010-05-15 Jan Hubicka <jh@suse.cz>
11606 * ipa-reference.c: Include toplev.h
11607 (is_proper_for_analysis): Only add to all_module_statics
11608 if it is allocated.
11609 (write_node_summary_p, stream_out_bitmap,
11610 ipa_reference_write_optimization_summary,
11611 ipa_reference_read_optimization_summary): New.
11612 (struct ipa_opt_pass_d pass_ipa_reference): Add
11613 optimization summary streaming.
11614 * lto-cgraph.c (referenced_from_this_partition_p,
11615 reachable_from_this_partition_p): New functions.
11616 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11617 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
11618 * opts.c (decode_options): Enable ipa_reference.
11619 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
11620 * lto-streamer.h (referenced_from_this_partition_p,
11621 reachable_from_this_partition_p): Declare.
11623 2010-05-15 Richard Guenther <rguenther@suse.de>
11625 PR tree-optimization/44038
11626 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
11627 taking the address of a V_C_E of a constant.
11629 2010-05-14 Jan Hubicka <jh@suse.cz>
11631 * tree.h (memory_identifier_string): Remove.
11632 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
11633 (ipa_reference_global_vars_info_d): Remove statics_not_read and
11634 statics_not_written.
11635 (ipa_reference_optimization_summary_d): New structure.
11636 (ipa_reference_optimization_summary_t): New type and vector.
11637 (ipa_reference_vars_info_d): Embedd structures instead of using
11639 (reference_vars_to_consider): Remove out of GGC space.
11640 (module_statics_escape): Remove.
11641 (global_info_obstack): Rename to ...
11642 (optimization_summary_obstack): ... this one.
11643 (initialization_status_t): Remove.
11644 (memory_identifier_string): Remove.
11645 (get_reference_vars_info): Fix indenting.
11646 (set_reference_vars_info): Likewise.
11647 (get_reference_optimization_summary): New.
11648 (set_reference_optimization_summary): New.
11649 (get_global_reference_vars_info): Remove.
11650 (ipa_reference_get_read_global): Remove.
11651 (ipa_reference_get_written_global): Remove.
11652 (ipa_reference_get_not_read_global): Update.
11653 (ipa_reference_get_not_written_global): Update.
11654 (is_proper_for_analysis): Outlaw addressable.
11655 (propagate_bits): Update for new datastructures.
11656 (analyze_variable): Remove.
11657 (init_function_info): Update for new datastructures.
11658 (clean_function_local_data): Remove.
11659 (clean_function): Remove.
11660 (copy_global_bitmap): Use optimizations_summary_obstack.
11661 (duplicate_node_data): Duplicate optimization summary only.
11662 (remove_node_data): Remove optimization summary only.
11663 (generate_summary): Do not analyze variables; do not compute
11664 module_statics_escape; do not prune solutions by it.
11665 (read_write_all_from_decl): Fix typos in comments.
11666 (propagate): Doscover readonly and nonaddressable first;
11667 update for new datastructures; share global bitmaps.
11668 * ipa-reference.h (ipa_reference_get_read_global,
11669 ipa_reference_get_written_global): Remove.
11670 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
11671 * Makefile.in: Remove ipa-refereference from GT files.
11673 2010-05-14 Jakub Jelinek <jakub@redhat.com>
11676 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
11677 for all SYMBOL_REF_DECLs.
11679 2010-05-14 Jan Hubicka <jh@suse.cz>
11681 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
11682 (varpool_all_refs_explicit_p): New inline function.
11683 * ipa-reference.c: Update comment.
11684 (module_statics_written): Remove.
11685 (get_static_decl): Remove.
11686 (ipa_init): Do not initialize module_statics_written.
11687 (analyze_function): Likewise.
11688 (generate_summary): Likewise; do not compute module_statics_readonly
11689 and do not update variable flags.
11690 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
11691 * ipa.c: Inlucde flags.h
11692 (cgraph_local_node_p): New.
11693 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
11694 promote functions to local.
11695 (ipa_discover_readonly_nonaddressable_vars): New function.
11696 (function_and_variable_visibility): Use cgraph_local_node_p.
11697 * varpool.c (varpool_finalize_decl): Set force_output for
11698 DECL_PRESERVE_P vars.
11700 2010-05-14 Jan Hubicka <jh@suse.cz>
11702 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
11704 2010-05-14 Richard Guenther <rguenther@suse.de>
11706 PR tree-optimization/44119
11707 * tree-ssa-pre.c (eliminate): Properly mark replacement of
11708 a PHI node necessary.
11710 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
11712 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
11714 2010-05-14 Jason Merrill <jason@redhat.com>
11717 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
11718 (gimple_call_set_nothrow): New.
11719 * gimple.c (gimple_build_call_from_tree): Call it.
11720 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
11723 * gimplify.c (gimplify_seq_add_stmt): No longer static.
11724 * gimple.h: Declare it.
11725 * gimple.c (gimple_build_eh_filter): No ops.
11727 2010-05-14 Jan Hubicka <jh@suse.cz>
11729 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
11730 nodes already in queue.
11731 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
11732 re-enqueueing node.
11734 2010-05-14 Jakub Jelinek <jakub@redhat.com>
11737 * cfgexpand.c (expand_debug_expr): If non-memory op0
11738 has BLKmode, return NULL.
11740 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
11742 * config.gcc: Add support for --with-cpu option for bdver1.
11743 * config/i386/i386.h (TARGET_BDVER1): New macro.
11744 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
11745 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11746 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
11747 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
11748 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
11749 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
11750 (processor_type): Add PROCESSOR_BDVER1.
11751 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
11752 processor_type in config/i386/i386.h.
11753 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
11754 movaps <reg, reg> instead of movapd <reg, reg> when replacing
11755 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
11756 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
11757 to emit packed xor instead of packed double/packed integer
11758 xor for SSE and AVX when moving a zero value.
11759 * config/i386/sse.md: Add check for
11760 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
11761 movapd/movdqa for SSE and AVX.
11762 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
11763 single logical operations i.e and, or and xor instead of packed double
11764 logical operations for SSE and AVX.
11765 * config/i386/i386-c.c (ix86_target_macros_internal):
11766 Add PROCESSOR_BDVER1.
11767 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
11768 (has_fma4, has_xop): New.
11769 * config/i386/i386.c (bdver1_cost): New variable.
11770 (m_BDVER1): New macro.
11771 (m_AMD_MULTIPLE): Add m_BDVER1.
11772 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
11773 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
11774 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
11775 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
11776 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
11777 x86_tune_sse_partial_reg_dependency,
11778 x86_tune_sse_unaligned_load_optimal,
11779 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
11780 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
11781 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
11782 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
11783 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
11784 Enable/disable for bdver1.
11785 (processor_target_table): Add bdver1_cost.
11786 (cpu_names): Add bdver1.
11787 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
11788 processor_alias_table.
11789 (ix86_expand_vector_move_misalign): Change.
11790 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
11791 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
11792 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
11793 of movupd/movdqu for SSE and AVX.
11794 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
11795 (ix86_tune_adjust_cost): Add code for bdver1.
11796 (standard_sse_constant_opcode): Add check for
11797 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
11798 of packed double xor for SSE and AVX.
11800 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
11802 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
11803 result to unsigned.
11805 2010-05-14 Tristan Gingold <gingold@adacore.com>
11807 * toplev.c (default_debug_hooks): Remove this variable.
11808 (process_options): Remove assignments to default_debug_hooks.
11810 2010-05-14 Martin Jambor <mjambor@suse.cz>
11812 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
11813 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
11814 * langhooks.h (struct lang_hooks_for_decls): Removed field
11816 * tree.c (free_lang_data): Remove assignment to
11817 lang_hooks.fold_obj_type_ref.
11818 * tree.def (OBJ_TYPE_REF): Update comment.
11820 2010-05-14 Richard Guenther <rguenther@suse.de>
11822 PR tree-optimization/44124
11823 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
11825 2010-05-14 Alan Modra <amodra@gmail.com>
11828 * config/rs6000/rs6000.c (struct machine_function): Reorder
11829 fields for better packing. Add lr_save_state.
11830 (rs6000_ra_ever_killed): Return lr_save_state if set.
11831 (rs6000_emit_eh_reg_restore): Set lr_save_state.
11833 2010-05-13 Jan Hubicka <jh@suse.cz>
11835 * varpool.c (decide_is_variable_needed): Drop code checking
11836 TREE_SYMBOL_REFERENCED.
11838 2010-05-13 Jan Hubicka <jh@suse.cz>
11840 * final.c (output_addr_const): Do not call mark_decl_referenced.
11841 * cgraphunit.c (process_function_and_variable_attributes): Use
11842 mark_needed_node dirrectly.
11843 (assemble_thunk): Do not call mark_decl_referenced.
11845 2010-05-13 Anatoly Sokolov <aesok@post.ru>
11847 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
11849 2010-05-13 Jeff Law <law@redhat.com>
11851 * ira-conflicts.c (print_allocno_conflicts): New function broken out
11853 (print_conflicts): Call print_allocno_conflicts.
11855 2010-05-13 Jakub Jelinek <jakub@redhat.com>
11858 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
11861 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
11863 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
11864 t-mingw-w64 or t-mingw-w32 for multilib configuration.
11865 * config/i386/t-mingw-w32: New.
11866 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
11868 2010-05-13 Martin Jambor <mjambor@suse.cz>
11870 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
11872 * gimple-fold.c (get_base_binfo_for_type): New function.
11873 (gimple_get_relevant_ref_binfo): Likewise.
11874 (gimple_fold_obj_type_ref_known_binfo): Likewise.
11875 (gimple_fold_obj_type_ref): Likewise.
11876 (fold_gimple_call): Simplify condition for folding virtual calls
11877 and call gimple_fold_obj_type_ref.
11878 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
11879 (gimple_fold_obj_type_ref_known_binfo): Likewise.
11881 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
11883 * config/rs6000/rs6000-protos.h
11884 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
11885 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
11886 (rs6000_debug_mode_dependent_address)
11887 (rs6000_mode_dependent_address_ptr): Likewise.
11889 2010-05-13 Jakub Jelinek <jakub@redhat.com>
11892 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
11894 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
11895 * tree-sra.c (create_access_replacement): Call unshare_expr before
11896 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
11897 * dwarf2out.c: Include tree-flow.h.
11898 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
11899 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11900 Handle DW_OP_bit_piece.
11901 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
11902 construct_piece_list, adjust_piece_list): New functions.
11903 (add_var_loc_to_decl): Handle SRA optimized variables.
11904 Adjust for var_loc_note to loc field renaming.
11905 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
11906 in VAR_LOCATION note.
11907 (new_loc_descr_op_bit_piece): New function.
11908 (dw_sra_loc_expr): New function.
11909 (dw_loc_list): Use it. Don't handle the last range after the
11910 loop, handle it inside of the loop. Adjust for var_loc_note
11911 to loc field renaming.
11912 (add_location_or_const_value_attribute): Only special case
11913 single entry loc lists if loc is NOTE_P. Adjust for
11914 var_loc_note to loc field renaming.
11915 (dwarf2out_var_location): Don't set newloc->var_loc_note
11916 and newloc->next here.
11918 2010-05-12 Jan Hubicka <jh@suse.cz>
11920 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
11922 * cgraph.h (cgraph_only_called_directly_p,
11923 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
11924 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
11925 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
11927 * ipa.c (cgraph_remove_unreachable_nodes): Use
11928 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
11930 * tree-inline.c (copy_bb): Check address_taken flag.
11931 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
11932 externally_visible flag.
11934 2010-05-12 Jason Merrill <jason@redhat.com>
11938 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
11939 * sdbout.c (plain_type_1): Likewise.
11940 * dwarf2out.c (is_base_type): Likewise.
11941 (gen_type_die_with_usage): Likewise. Generate
11942 DW_TAG_unspecified_type for any LANG_TYPE.
11944 2010-05-12 Jan Hubicka <jh@suse.cz>
11946 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
11948 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
11949 (cgraph_clone_edge): Update.
11950 (cgraph_node_remove_callees): Remove indirect calls too.
11951 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
11952 (cgraph_create_indirect_edge): Update prototype.
11953 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
11954 is_proper_for_analysis.
11955 (add_new_function, visited_nodes, function_insertion_hook_holder,
11956 get_local_reference_vars_info, mark_address_taken, mark_address,
11957 mark_load, mark_store, check_asm_memory_clobber, check_call,
11958 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
11959 (ipa_init): Do not initialize visited_nodes;
11960 function_insertion_hook_holder.
11961 (analyze_variable): Rewrite.
11962 (analyze_function): Rewrite.
11963 (copy_local_bitmap): Remove.
11964 (duplicate_node_dat): Do not duplicate local info.
11965 (generate_summary): Simplify to only walk cgraph.
11966 (write_node_summary_p, ipa_reference_write_summary,
11967 ipa_reference_read_summary): Remove.
11968 (propagate): Do not remove function insertion;
11970 (pass_ipa_reference): NULLify summary handling fields.
11971 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
11972 (input_edge): Input ecf_flags.
11973 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
11974 (update_indirect_edges_after_inlining): Ignore edges with unknown
11977 2010-05-12 Sriraman Tallam <tmsriram@google.com>
11979 * implicit-zee.c: New file.
11980 * tree-pass.h (pass_implicit_zee): Declare.
11981 * passes.c (init_optimization_passes): Add zee pass.
11982 * common.opt (fzee): New flag.
11983 * timevar.def (TV_ZEE): Define.
11984 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
11986 * Makefile.in (implicit-zee.o): Add new build file.
11988 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
11989 Nathan Froyd <froydnj@codesourcery.com>
11991 * c-common.c (sync_resolve_params): Remove write-only variable.
11993 2010-05-12 Anatoly Sokolov <aesok@post.ru>
11995 * target.h (struct gcc_target): Add mode_dependent_address_p field.
11996 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
11997 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
11998 * targhooks.c (default_mode_dependent_address_p): New function.
11999 * targhooks.h (default_mode_dependent_address_p): Declare function.
12000 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
12001 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
12002 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
12003 target hook. Change return type to bool.
12004 * recog.h (mode_dependent_address_p): Change return type to bool.
12006 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
12007 Nathan Froyd <froydnj@codesourcery.com>
12009 * tree-mudflap.c (build_function_type_0, build_function_type_1,
12010 build_function_type_2, build_function_type_3): Remove.
12011 (mudflap_init): Use build_function_type_list.
12013 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
12014 Nathan Froyd <froydnj@codesourcery.com>
12016 * coverage.c (build_fn_info_value): Call build_constructor instead of
12017 build_constructor_from_list.
12018 (build_ctr_info_value): Likewise.
12019 (build_gcov_info): Likewise.
12021 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
12023 * tree.c (build_constructor): Compute TREE_CONSTANT for the
12024 resultant constructor.
12025 (build_constructor_single): Don't set TREE_CONSTANT.
12026 (build_constructor_from_list): Don't compute TREE_CONSTANT.
12028 2010-05-12 Jan Hubicka <jh@suse.cz>
12030 * cgraph.h (struct varpool_node): Add aux.
12031 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
12032 * varpool.c (varpool_remove_node): Do not remove initializer.
12033 (varpool_reset_queue): Export.
12034 (varpool_finalize_decl): Volatile vars are forced to be output.
12035 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
12037 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
12038 process_references, varpool_can_remove_if_no_refs): New functions.
12039 (cgraph_remove_unreachable_nodes): Handle variables too.
12041 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
12044 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
12046 2010-05-12 Jakub Jelinek <jakub@redhat.com>
12048 PR middle-end/44085
12049 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
12050 change value of ORT_TASK.
12051 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
12052 (omp_notice_threadprivate_variable): New function.
12053 (omp_notice_variable): Call it for threadprivate variables.
12054 If enclosing ctx is a task, print enclosing task rather than
12055 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
12056 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
12057 if task has untied clause.
12060 * dwarf2out.c (base_type_die): Don't add name attribute here.
12061 (modified_type_die): Instead of sizetype use
12062 its underlying original type. If a DW_TAG_base_type doesn't
12063 have name added, add __unknown__.
12064 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
12065 always call force_type_die instead.
12067 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
12069 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
12070 for __stack_chk_guard.
12072 2010-05-11 Jakub Jelinek <jakub@redhat.com>
12074 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
12075 don't call start_source_file debug hook here...
12076 (finish_options): ... but here, after outputting predefined and
12077 command line defines and undefs.
12079 PR middle-end/44071
12080 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
12082 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
12083 optimizing away empty bb with no successors, move over its
12084 footer chain to fallthru predecessor.
12085 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
12086 (rtl_split_edge): For asm goto call patch_jump_insn even if
12087 splitting fallthru edge.
12090 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
12091 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
12092 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
12093 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
12097 * c-parser.c (c_parser_expression): Mark LHS of a comma
12098 expression as read if it is a decl, handled component or
12099 COMPOUND_EXPR with that on the RHS.
12100 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
12101 if it is a decl or handled component.
12103 2010-05-11 Jan Hubicka <jh@suse.cz>
12105 * lto-symtab.c (lto_symtab_free): New function.
12106 * lto-streamer.h (lto_symtab_free): Declare.
12108 2010-05-11 Jan Hubicka <jh@suse.cz>
12110 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
12111 that if function is needed it is reachable.
12112 (lto_output_node): See if it the function is reachable or referenced.
12113 (output_cgraph): Update call of lto_output_node.
12114 * lto-streamer.h (reachable_from_other_partition_p): Declare.
12116 2010-05-11 Jan Hubicka <jh@suse.cz>
12118 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
12121 2010-05-11 Jan Hubicka <jh@suse.cz>
12123 PR tree-optimize/44063
12124 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
12126 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
12128 (estimate_function_body_sizes): Compute sizes even when disregarding.
12130 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
12132 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
12134 2010-05-11 Jan Hubicka <jh@suse.cz>
12136 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
12137 into every boundary.
12139 2010-05-11 Jan Hubicka <jh@suse.cz>
12141 * matrix-reorg.c (matrix_reorg): Rebuild edges.
12143 2010-05-11 Jan Hubicka <jh@suse.cz>
12145 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
12146 lto_streamer_cache_delete): Put nodes into heap.
12147 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
12150 2010-05-11 Jan Hubicka <jh@suse.cz>
12152 * cgraphbuild.c (cgraph_rebuild_references): New.
12153 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
12154 out extern inlines.
12155 * cgraph.h (cgraph_rebuild_references): Declare.
12156 * tree-inline.c (tree_function_versioning): Use it.
12157 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
12159 2010-05-11 Jan Hubicka <jh@suse.cz>
12161 * cgraph.c: Include ipa-utils.h
12162 (cgraph_create_virtual_clone): Update references.
12163 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
12165 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
12167 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
12168 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
12171 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
12173 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
12175 2010-05-11 Jakub Jelinek <jakub@redhat.com>
12177 * gcc.c (execute): For -### don't quote arguments that
12178 contain just alphanumerics and _/-. characters.
12179 * doc/invoke.texi: Document that change for -###.
12182 * df-problems.c (struct dead_debug): Add to_rescan field.
12183 (dead_debug_init): Clear to_rescan field.
12184 (dead_debug_finish): Rescan all debug insns in to_rescan
12185 bitmap and free the bitmap.
12186 (dead_debug_insert_before): Instead of rescanning debug insns
12187 immediately queue their rescanning until dead_debug_finish.
12188 (df_note_bb_compute): After dead_debug_add do continue instead
12191 2010-05-10 Jakub Jelinek <jakub@redhat.com>
12194 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
12195 clear also INSN_REG_USE_LIST.
12197 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12199 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
12201 2010-05-10 Jan Hubicka <jh@suse.cz>
12203 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
12206 2010-05-10 Jan Hubicka <jh@suse.cz>
12208 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
12210 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
12211 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
12212 (lto_streamer_cache_create): Init alloc pool.
12213 (lto_streamer_cache_delete): Free alloc pool.
12214 * lto-streamer.h: Include alloc pool.
12215 (lto_streamer_cache_d): Use alloc pool.
12216 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
12218 2010-05-10 Jan Hubicka <jh@suse.cz>
12220 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
12221 * cgraphbuild.c: Include except.h
12222 (record_type_list, record_eh_tables): New function.
12223 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
12225 2010-05-10 Jan Hubicka <jh@suse.cz>
12227 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
12228 __frame_dummy_init_array_entry, force_to_data): Attribute as used
12229 rather than unused.
12231 2010-05-10 Michael Matz <matz@suse.de>
12233 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
12234 (can_reassociate_p): Use FLOAT_TYPE_P.
12235 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
12236 (vect_force_simple_reduction): ... this.
12237 * tree-parloops.c (gather_scalar_reductions): Use
12238 vect_force_simple_reduction.
12239 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
12240 vect_is_simple_reduction, add modify argument, if true rewrite
12241 "a-b" into "a+(-b)".
12242 (vect_is_simple_reduction, vect_force_simple_reduction): New
12244 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
12246 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
12247 Vladimir Makarov <vmakarov@redhat.com>
12249 PR rtl-optimization/44012
12250 * ira-build.c (remove_unnecessary_allocnos): Nullify
12251 regno_allocno_map of the removed allocno.
12253 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12255 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
12257 * configure: Regenerate.
12259 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12261 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
12263 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
12264 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
12266 * configure: Regenerate.
12268 2010-05-10 Richard Guenther <rguenther@suse.de>
12270 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
12271 marked if the entry identifier is marked.
12273 2010-05-10 Richard Guenther <rguenther@suse.de>
12275 * c-common.c (struct c_common_attributes): Add fnspec attribute.
12276 (handle_fnspec_attribute): New function.
12277 * gimple.h (gimple_call_return_flags): Declare.
12278 (gimple_call_arg_flags): Likewise.
12279 * gimple.c (gimple_call_arg_flags): New function.
12280 (gimple_call_return_flags): Likewise.
12281 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
12282 New argument flags.
12283 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
12284 return value flags.
12285 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
12286 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
12288 (make_heapvar_for): ... this new function.
12289 (handle_rhs_call): Handle fnspec attribute argument specifiers.
12290 (handle_lhs_call): Likewise.
12291 (find_func_aliases): Adjust.
12293 2010-05-10 Richard Guenther <rguenther@suse.de>
12295 PR tree-optimization/44050
12296 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
12298 2010-05-10 Wei Guozhi <carrot@google.com>
12301 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
12303 2010-05-09 Joseph Myers <joseph@codesourcery.com>
12306 * c-typeck.c (lookup_field): Take a type directly. Update
12308 (build_component_ref): Update call to lookup_field.
12309 (set_init_label): Use lookup_field to find initialized field.
12310 Handle returned list of fields like a sequence of designators.
12312 2010-05-09 Richard Guenther <rguenther@suse.de>
12314 PR middle-end/44024
12315 * fold-const.c (tree_single_nonzero_warnv_p): Properly
12316 handle &FUNCTION_DECL.
12318 2010-05-09 Joseph Myers <joseph@codesourcery.com>
12321 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
12322 structures and unions recursively.
12323 (detect_field_duplicates): Move duplicate detection with a hash to
12324 detect_field_duplicates_hash. Always use a hash if anonymous
12325 structures or unions are present.
12326 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
12329 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
12332 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
12333 detect Atom, Core 2 and Core i7.
12335 2010-05-09 Richard Guenther <rguenther@suse.de>
12337 * gcc.c (store_arg): Handle temporary file deletion for
12340 2010-05-09 Richard Guenther <rguenther@suse.de>
12342 PR middle-end/44043
12343 * ipa-inline.c (estimate_function_body_sizes): Return after
12344 disregarding inline limits.
12346 2010-05-09 Richard Guenther <rguenther@suse.de>
12348 * gcc.c (store_arg): Revert last change.
12350 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
12352 PR middle-end/28685
12353 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
12354 (optimize_ops_list): Call it.
12356 2010-05-08 Richard Guenther <rguenther@suse.de>
12358 PR tree-optimization/44030
12359 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
12360 NECESSARY flag if we propagate from a inserted expression.
12362 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
12364 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
12365 domain types as equal if they are both PLACEHOLDER_EXPRs.
12367 2010-05-08 Richard Guenther <rguenther@suse.de>
12369 * lto-wrapper.c (run_gcc): Remove linker output from
12370 command line for LTRANS invocation.
12372 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
12374 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12375 lto-macho as lto_binary_reader.
12376 * target.h (struct gcc_target): New hooks lto_start and lto_end.
12377 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
12378 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
12379 in lto_start and lto_end calls.
12380 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
12382 (scan_prog_file): Update is_elf_or_coff call.
12383 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
12385 * collect2.c (main): Fix enum comparison.
12387 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
12389 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
12390 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
12391 and TARGET_ASM_LTO_END.
12392 * darwin.c: Include obstack.h and lto-streamer.h.
12393 (lto_section_names_offset, lto_section_names_obstack,
12394 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
12396 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
12397 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
12398 to a temporary file.
12399 (darwin_asm_lto_end): New function. Restore asm_out_file.
12400 (darwin_asm_named_section): For LTO sections, replace the name with
12401 the offset of the section name in a string table, and build this
12403 (darwin_file_start): Initialize global vars for LTO support.
12404 (darwin_file_end): If output to asm_out_file was redirected, append it
12405 to the proper asm_out_file here. Add the section names section.
12407 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
12409 * c-pragma.c (pending_weak_d, pending_weak): New.
12410 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
12411 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
12412 handle_pragma_weak): Update the uses of pending_weaks.
12414 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12416 PR documentation/44016
12417 * doc/standards.texi (Standards): Link to unversioned
12418 cxx0x_status.html page.
12420 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
12423 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
12424 in addition to TREE_USED, to avoid "set but unused" warnings.
12426 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
12428 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
12429 (is_loop_prefetching_profitable): Do not insert prefetches
12430 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
12431 times the prefetch ahead distance.
12433 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
12435 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
12436 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
12437 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
12440 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
12442 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
12443 a diagnostic info when the insn-to-mem ratio is too small.
12445 2010-05-07 Richard Guenther <rguenther@suse.de>
12447 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
12449 (store_arg): Queue temp_filename for deletion instead of
12450 the whole argument.
12452 2010-05-07 Richard Guenther <rguenther@suse.de>
12454 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
12455 (run_gcc): Handle LTRANS phase invocation.
12456 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
12458 2010-05-07 Jakub Jelinek <jakub@redhat.com>
12460 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
12461 this is also meaningful on PARM_DECLs and RESULT_DECLs.
12463 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12465 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
12467 2010-05-07 Richard Guenther <rguenther@suse.de>
12469 PR tree-optimization/44020
12470 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
12471 code when PRE is not yet initialized.
12473 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12475 * config/mips/dbxmdebug.h: Remove.
12476 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
12478 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
12480 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
12481 with null pointer and also warn about ordered comparison of zero with
12482 pointer if -Wextra.
12484 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12486 * graphite-blocking.c
12487 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
12488 * graphite-clast-to-gimple.c
12489 (clast_to_gcc_expression): Same.
12490 (precision_for_value): Same.
12491 (precision_for_interval): Same.
12492 (gcc_type_for_interval): Same.
12493 (graphite_create_new_guard): Same.
12494 (compute_bounds_for_level): Same.
12495 (graphite_create_new_loop_guard): Same.
12496 * graphite-interchange.c
12497 (build_linearized_memory_access): Same.
12498 (pdr_stride_in_loop): Same.
12499 (memory_strides_in_loop_1): Same.
12500 (memory_strides_in_loop): Same.
12501 (extend_scattering): Same.
12502 (psct_scattering_dim_for_loop_depth): Same.
12503 (pbb_number_of_iterations): Same.
12505 (debug_iteration_domains): Same.
12507 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12508 (ppl_set_inhomogeneous_gmp): Same.
12509 (ppl_strip_loop): Same.
12510 (ppl_lexico_compare_linear_expressions): Same.
12511 (ppl_read_polyhedron_matrix): Same.
12512 (ppl_max_for_le_pointset): Same.
12514 (ppl_read_polyhedron_matrix): Same.
12515 (tree_int_to_gmp): Same.
12516 (gmp_cst_to_tree): Same.
12517 (ppl_set_inhomogeneous): Same.
12518 (ppl_set_inhomogeneous_tree): Same.
12519 (ppl_set_coef): Same.
12520 (ppl_set_coef_tree): Same.
12521 * graphite-sese-to-poly.c
12522 (build_pbb_scattering_polyhedrons): Same.
12523 (build_scop_scattering): Same.
12524 (scan_tree_for_params_right_scev): Same.
12525 (scan_tree_for_params): Same.
12526 (find_params_in_bb): Same.
12527 (find_scop_parameters): Same.
12528 (add_upper_bounds_from_estimated_nit): Same.
12529 (build_loop_iteration_domains): Same.
12530 (add_condition_to_domain): Same.
12531 (pdr_add_memory_accesses): Same.
12533 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
12535 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
12536 CLooG's value_* macros to their respective mpz_* counterparts.
12537 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
12538 (graphite_create_new_loop_guard): Same.
12539 * graphite-interchange.c (build_linearized_memory_access): Same.
12540 (pdr_stride_in_loop): Same.
12541 (memory_strides_in_loop_1): Same.
12542 (1st_interchange_profitable_p): Same.
12543 * graphite-poly.c (extend_scattering): Same.
12544 (psct_scattering_dim_for_loop_depth): Same.
12545 (pbb_number_of_iterations): Same.
12546 (pbb_number_of_iterations_at_time): Same.
12547 * graphite-poly.h (new_1st_loop): Same.
12548 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
12549 (oppose_constraint): Same.
12550 (insert_constraint_into_matrix): Same.
12551 (ppl_set_inhomogeneous_gmp): Same.
12552 (ppl_set_coef_gmp): Same.
12553 (ppl_strip_loop): Same.
12554 (ppl_lexico_compare_linear_expressions): Same.
12555 (ppl_max_for_le_pointset): Same.
12556 (ppl_min_for_le_pointset): Same.
12557 (ppl_build_realtion): Same.
12558 * graphite-ppl.h (gmp_cst_to_tree): Same.
12559 (ppl_set_inhomogeneous): Same.
12560 (ppl_set_inhomogeneous_tree): Same.
12561 (ppl_set_coef): Same.
12562 (ppl_set_coef_tree): Same.
12563 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
12564 (build_scop_scattering): Same.
12565 (add_value_to_dim): Same.
12566 (scan_tree_for_params_right_scev): Same.
12567 (scan_tree_for_params_int): Same.
12568 (scan_tree_for_params): Same.
12569 (find_params_in_bb): Same.
12570 (find_scop_parameters): Same.
12571 (add_upper_bounds_from_estimated_nit): Same.
12572 (build_loop_iteration_domains): Same.
12573 (create_linear_expr_from_tree): Same.
12574 (add_condition_to_domain): Same.
12575 (pdr_add_memory_accesses): Same.
12577 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
12578 Jason Merrill <jason@redhat.com>
12580 * c-common.c (c_common_reswords): Add nullptr.
12581 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
12582 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
12583 (gen_type_die_with_usage): Likewise.
12584 * dbxout.c (dbxout_type): Likewise.
12585 * sdbout.c (plain_type_1): Likewise.
12587 2010-05-06 Jason Merrill <jason@redhat.com>
12589 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
12590 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
12592 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
12594 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
12595 stripping WITH_SIZE_EXPR.
12596 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
12599 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12601 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
12602 list of obsolete configurations.
12603 Disabled check for obsolete configurations.
12604 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
12605 Removed support for previous versions.
12606 * config/mips/iris.h: Removed.
12607 * config/mips/iris5.h: Removed.
12608 * config/mips/iris6.h: Merged old iris.h contents.
12609 (TARGET_IRIX): Removed.
12610 (DRIVER_SELF_SPECS): Removed mabi=32.
12611 (IDENT_ASM_OP): Removed undef.
12612 (STARTFILE_SPEC): Removed mabi=32.
12613 (ENDFILE_SPEC): Likewise.
12614 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
12615 (MACHINE_TYPE): Update for IRIX 6.5.
12616 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
12617 TARGET_IRIX by TARGET_IRIX6.
12618 (mips_file_start): Likewise.
12619 (mips_output_external): Remove IRIX 5/6 O32 support.
12620 (mips_output_function_prologue): Likewise.
12621 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
12623 (TARGET_CPU_CPP_BUILTINS): Likewise.
12624 (TARGET_IRIX): Removed.
12625 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
12626 (MULTILIB_DIRNAMES): Removed 32.
12627 (MULTILIB_OSDIRNAMES): Removed ../lib.
12628 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
12629 (Specific, mips-sgi-irix5): Document removal.
12630 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
12631 Remove references to older IRIX 6 releases and the O32 ABI.
12633 2010-05-06 Jakub Jelinek <jakub@redhat.com>
12636 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
12637 instead of DF_REF_REAL_REG.
12639 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
12642 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
12643 handling to still return true for x64 targets.
12645 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
12647 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
12649 2010-05-06 Jan Hubicka <jh@suse.cz>
12651 PR tree-optimization/43791
12652 * ipa-inline.c (update_caller_keys): Remove bogus
12653 disregard_inline_limits check.
12655 2010-05-06 Michael Matz <matz@suse.de>
12657 PR tree-optimization/43984
12658 * tree-ssa-pre.c (inserted_phi_names): Remove.
12659 (inserted_exprs): Change to bitmap.
12660 (create_expression_by_pieces): Set bits, don't append to vector.
12661 (insert_into_preds_of_block): Don't handle inserted_phi_names.
12662 (eliminate): Don't look at inserted_phi_names, remove deleted
12663 insns from inserted_exprs.
12664 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
12665 (init_pre, fini_pre): Allocate and free bitmaps.
12666 (execute_pre): Insert insns on edges before elimination.
12668 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
12670 * tree.c (initializer_zerop): Handle STRING_CST.
12672 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
12675 * doc/invoke.texi (Wimplicit): Document as C only.
12676 * opts.c (common_handle_option): Add argument kind.
12677 (handle_option): Rename as read_cmdline_option. Factor out code to...
12678 (handle_option): ... here. New.
12679 (handle_options): Rename as read_cmdline_options.
12680 (decode_options): Update call.
12681 (set_option): Use option index instead of option pointer. Classify
12682 diagnostics correctly.
12683 (enable_warning_as_error): Call handle_option.
12684 * opts.h (set_option): Update declaration.
12685 (handle_option): Declare.
12686 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
12687 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
12688 * c-opts.c (set_Wimplicit): Delete.
12689 (c_family_lang_mask): New static constant.
12690 (c_common_handle_option): Add argument kind. Use handle_option
12691 instead of set_Wimplicit.
12692 (c_common_post_options): warn_implicit and warn_implicit_int
12693 are disabled by default.
12694 * c-common.c (warn_implicit): Do not define here.
12695 * c-common.h (warn_implicit): Do not declare here.
12696 (c_common_handle_option): Update declaration.
12697 * lto-opts.c (lto_reissue_options): Update call to set_option.
12699 2010-05-06 Richard Guenther <rguenther@suse.de>
12701 PR tree-optimization/43571
12702 * domwalk.c (walk_dominator_tree): Walk the dominator
12703 sons in more optimal order.
12705 2010-05-06 Richard Guenther <rguenther@suse.de>
12707 PR tree-optimization/43934
12708 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
12709 (stmt_cost): Likewise.
12710 (extract_true_false_args_from_phi): New helper.
12711 (determine_max_movement): For PHI nodes verify we can hoist them
12712 and compute their cost.
12713 (determine_invariantness_stmt): Handle PHI nodes.
12714 (move_computations_stmt): Likewise. Hoist PHI nodes in
12715 if-converted form using COND_EXPRs.
12716 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
12717 (tree_ssa_lim): Likewise.
12718 * tree-flow.h (tree_ssa_lim): Adjust prototype.
12719 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
12721 2010-05-06 Richard Guenther <rguenther@suse.de>
12723 PR tree-optimization/43987
12724 * tree-ssa-structalias.c (could_have_pointers): For possibly
12725 address-taken variables force pointers to be recorded.
12726 (create_variable_info_for_1): Likewise.
12727 (push_fields_onto_fieldstack): Pass in wheter all fields
12728 must have pointers.
12729 (find_func_aliases): Query types instead of vars whether
12730 they contain pointers where appropriate.
12732 2010-05-06 Jan Hubicka <jh@suse.cz>
12734 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
12735 (record_reference, mark_address, mark_load, mark_store): Record
12737 (record_references_in_initializer): Update call of record_references.
12738 (rebuild_cgraph_edges): Remove all references before rebuiding.
12739 * cgraph.c (cgraph_create_node): Clear ref list.
12740 (cgraph_remove_node): Remove references.
12741 (dump_cgraph_node): Dump references.
12742 (cgraph_clone_node): Clone references.
12743 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
12744 (struct cgraph_node, varpool_node): Add ref_lst.
12745 * ipa-ref.c: New file.
12746 * ipa-ref.h: New file.
12747 * ipa-ref-inline.h: New file.
12748 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
12749 (referenced_from_other_partition_p): New function.
12750 (lto_output_varpool_node): Take set arugment; call
12751 referenced_from_other_partition.
12752 (lto_output_ref): New.
12753 (add_references): New.
12754 (output_refs): New.
12755 (output_cgraph): Compute boundary based on references; output refs.
12756 (output_varpool): Accept cgraph_node_set argument.
12759 (input_cgraph): Call input_refs.
12760 * lto-section-in.c (lto_section_name): Add refs.
12761 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
12762 (ipa-ref.o): New file.
12763 * varpool.c (varpool_node): Clear ipa ref list.
12764 (varpool_remove_node): Remove references.
12765 (dump_varpool_node): Dump references.
12766 (varpool_assemble_decl): Only compile finalized ones.
12767 (varpool_extra_name_alias): Initialize ref list.
12768 * lto-streamer.c (lto-get_section_name): Add .refs section.
12769 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
12770 (referenced_from_other_partition_p): Declared.
12772 2010-05-06 Ira Rosen <irar@il.ibm.com>
12774 PR tree-optimization/43901
12775 * tree-vect-stmts.c (vectorizable_call): Assert that vector
12776 type is not NULL if it's transformation phase, and return
12777 FALSE if it's analysis.
12778 (vectorizable_conversion, vectorizable_operation,
12779 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
12781 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
12783 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12785 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
12787 * config/mips/mips-protos.h
12788 (mips_small_register_classes_for_mode_p): Delete prototype.
12790 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
12792 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
12793 * config/arm/arm.c (multiple_operation_profitable_p,
12794 compute_offset_order): New static functions.
12795 (load_multiple_sequence, store_multiple_sequence): Use them.
12796 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
12797 memory offsets, not register numbers.
12798 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
12800 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
12802 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
12803 (get_pending_sizes, put_pending_size, put_pending_sizes):
12804 Update the uses of pending_sizes.
12805 * c-decl.c (store_parm_decls): Likewise.
12806 * c-tree.h (struct c_arg_info): Likewise.
12807 * tree.h: Update the prototype for get_pending_sizes and
12810 2010-05-05 Jason Merrill <jason@redhat.com>
12813 * c-common.c (handle_aligned_attribute): Respect
12814 ATTR_FLAG_TYPE_IN_PLACE.
12817 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
12818 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12819 (TARGET_INITIALIZER): Use it.
12820 * c-common.c (attribute_takes_identifier_p): Call it.
12821 * c-common.h: Update prototype.
12822 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
12823 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
12825 2010-05-05 Jakub Jelinek <jakub@redhat.com>
12828 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
12829 DW_ID_down_case for Fortran compilation units.
12831 2010-05-05 Jan Hubicka <jh@suse.cz>
12833 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
12836 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
12838 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
12839 a variable-sized RESULT_DECL.
12841 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
12843 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
12845 2010-05-05 Jason Merrill <jason@redhat.com>
12848 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
12850 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
12852 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
12853 Jakub Jelinek <jakub@redhat.com>
12856 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
12857 (dead_debug_init, dead_debug_finish): New functions.
12858 (dead_debug_add, dead_debug_insert_before): Likewise.
12859 (df_note_bb_compute): Initialize a dead_debug object, add dead
12860 debug uses to it, insert debug bind insns before death insns,
12861 reset debug insns that refer to pending uses at the end.
12862 * rtl.h (make_debug_expr_from_rtl): New prototype.
12863 * varasm.c (make_debug_expr_from_rtl): New function.
12865 2010-05-05 Jan Hubicka <jh@suse.cz>
12867 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
12868 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
12869 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
12870 lto_varpool_encoder_deref, lto_varpool_encoder_size,
12871 lto_varpool_encoder_encode_initializer_p,
12872 lto_set_varpool_encoder_encode_initializer): New functions.
12873 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
12874 call output_varpool.
12875 (input_varpool_node): Do not always set analyzed.
12876 (input_cgraph_1): Return vector of cgraph nodes.
12877 (input_varpool_1): Return vector of varpools.
12878 (input_cgraph): Free the vectors.
12879 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12880 output only initializers needed.
12881 (lto_output): Only call output_cgraph.
12882 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
12883 * lto-section-out.c (lto_new_out_decl_state): Initialize
12884 state->varpool_node_encoder.
12885 * lto-streamer.h (lto_varpool_encoder_d): New.
12886 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
12887 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
12888 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
12889 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
12890 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
12892 (output_varpool, input_varpool): Remove declarations.
12894 2010-05-05 Jan Hubicka <jh@suse.cz>
12896 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
12897 with body can prevail.
12899 2010-05-05 Jan Hubicka <jh@suse.cz>
12901 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
12904 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12906 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
12908 * gengtype.h (erro_at_line): Constify pos argument.
12910 * gengtype.c: Include hashtab.h.
12911 (enum gc_used): Document GC_MAYBE_POINTED_TO.
12912 (error_at_line): Constify pos argument.
12913 (do_typedef): Initialize p->opt field.
12914 (get_file_gtfilename): Fix comment typo.
12915 (struct walk_type_data): Constify line field.
12916 (get_output_file_for_structure): New function.
12917 (write_local_func_for_structure): Constify orig_s argument.
12918 Use get_output_file_for_structure.
12919 (write_func_for_structure): Use get_output_file_for_structure.
12920 (INDENT): New define.
12921 (dump_pair, dump_type, dump_type_list, dump_typekind)
12922 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
12923 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
12925 (seen_types): New variable.
12926 (main): New variable do_dump. Process "-d" command line option.
12927 Call dump_everything if dump requested.
12929 2010-05-05 Jakub Jelinek <jakub@redhat.com>
12931 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
12932 in a temporary instead of invoking the macro multiple times.
12933 (track_expr_p): Likewise.
12935 2010-05-04 Neil Vachharajani <nvachhar@google.com>
12937 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
12939 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
12940 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
12941 conditions for printing notes.
12942 * common.opt (-Wcoverage-mismatch): Allow negative, default to
12943 true, update documentation.
12944 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
12946 2010-05-04 Jakub Jelinek <jakub@redhat.com>
12949 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
12952 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
12955 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
12956 (*sse_prologue_save_insn1): Likewise.
12957 (SSE prologue save splitter): Likewise.
12959 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
12961 * tree.c (free_lang_data_in_one_sizepos): New inline function.
12962 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
12963 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
12964 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
12965 all decls. Call it on DECL_FIELD_OFFSET of fields.
12966 (find_decls_types_r): Follow DECL_VALUE_EXPR.
12967 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
12969 2010-05-04 Martin Jambor <mjambor@suse.cz>
12971 * tree-sra.c (build_access_from_expr_1): The first parameter type
12972 changed to simple tree.
12973 (build_access_from_expr): Likewise, gsi parameter was eliminated.
12974 (scan_assign_result): Renamed to assignment_mod_result, enum elements
12976 (build_accesses_from_assign): Removed all parameters except for a
12977 simple gimple statement. Now returns a simple bool.
12978 (scan_function): All non-analysis parts moved to separate functions
12979 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
12980 parameters and updated both callers.
12981 (sra_modify_expr): Removed parameter data.
12982 (sra_modify_function_body): New function.
12983 (perform_intra_sra): Call sra_modify_function_body to modify the
12985 (replace_removed_params_ssa_names): Parameter data changed into
12986 adjustments vector.
12987 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
12988 changed the parameter dont_convert to convert with the opposite
12990 (sra_ipa_modify_assign): Parameter data changed into adjustments
12991 vector, return value changed to bool.
12992 (ipa_sra_modify_function_body): New function.
12993 (sra_ipa_reset_debug_stmts): Updated a comment.
12994 (modify_function): Use ipa_sra_modify_function_body to modify function
12997 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
12999 PR middle-end/43671
13000 * alias.c (true_dependence): Handle the same VALUE in x and mem.
13001 (canon_true_dependence): Likewise.
13002 (write_dependence_p): Likewise.
13004 2010-05-04 Jan Hubicka <jh@suse.cz>
13006 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
13007 * cgraphbuild.c: Include ipa-utils.h
13008 (record_reference_ctx): New struct.
13009 (record_reference): Simplify to work on initializers; not statements.
13010 (mark_address, mark_load, mark_store): New.
13011 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
13012 walk PHI nodes too.
13013 (record_references_in_initializer): Update use of record_reference.
13014 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
13015 walk PHI nodes too.
13017 2010-05-04 Jan Hubicka <jh@suse.cz>
13019 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
13020 node will be removed anyway.
13021 (lto_varpool_replace_node): Allow also unanalyzed nodes;
13022 relink aliases of node into prevailing node.
13023 * varpool.c (varpool_remove_node): Remove aliases properly;
13024 when removing node, remove all its aliases too; remove DECL_INITIAL
13025 of removed node; ggc_free the varpool node.
13027 2010-05-04 Richard Guenther <rguenther@suse.de>
13029 PR tree-optimization/43879
13030 * tree-ssa-structalias.c (alias_get_name): Use
13031 DECL_ASSEMBLER_NAME if available.
13032 (create_function_info_for): Return the varinfo node.
13033 (ipa_pta_execute): Associate same-body aliases and extra names
13034 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
13036 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
13038 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
13040 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
13043 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
13044 only if HONOR_REG_ALLOC_ORDER is not defined.
13046 2010-05-04 Richard Guenther <rguenther@suse.de>
13048 PR tree-optimization/43949
13049 * tree-vrp.c (extract_range_from_binary_expr): Only handle
13052 2010-04-26 Jason Merrill <jason@redhat.com>
13054 * c.opt (-fstrict-enums): New.
13055 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
13057 2010-05-03 David Ung <davidu@mips.com>
13058 James E. Wilson <wilson@codesourcery.com>
13060 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
13061 emit the trap instruction before the divide for TUNE_74K.
13063 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
13065 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
13066 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
13067 based on the above, for new target hook.
13069 * hooks.c (hook_bool_mode_true): New generic hook.
13070 * hooks.h (hook_bool_mode_true): Add prototype.
13072 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
13074 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
13075 target hook, set to hook_bool_mode_false.
13076 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
13077 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
13078 with targetm.small_register_classes_for_mode_p.
13079 (find_reusable_reload): Likewise.
13080 (combine_reloads): Likewise.
13081 * reload1.c (reload_as_needed): Likewise.
13082 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
13083 * ifcvt.c (noce_process_if_block, check_cond_move_block,
13084 dead_or_predicable): Likewise.
13085 * regmove.c (optimize_reg_copy_1): Likewise.
13086 * calls.c (prepare_call_address): Likewise.
13087 (precompute_register_parameters): Likewise.
13089 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
13091 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
13092 implementation of the hook that considers all register classes
13093 small except for SH64.
13094 (sh_override_options): Use the new hook.
13095 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
13098 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
13100 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
13101 implementation of the hook that considers all register classes
13103 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
13106 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
13108 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
13109 implementation of the hook that considers all register classes
13111 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
13114 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
13116 * config/m32c/m32c.h: Likewise.
13117 * config/pdp11/pdp11.h: Likewise.
13118 * config/avr/avr.h: Likewise.
13119 * config/xtensa/xtensa.h: Likewise.
13120 * config/m68hc11/m68hc11.h: Likewise.
13121 * config/mn10300/mn10300.h: Likewise.
13122 * config/mcore/mcore.h: Likewise.
13123 * config/h8300/h8300.h: Likewise.
13124 * config/bfin/bfin.h: Likewise.
13126 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
13127 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
13129 2010-05-03 Anatoly Sokolov <aesok@post.ru>
13131 * double-int.h (tree_to_double_int): Remove macro.
13132 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
13133 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13134 (tree_to_double_int): New function.
13135 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
13137 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
13139 2010-05-03 Richard Guenther <rguenther@suse.de>
13141 PR tree-optimization/43971
13142 * tree-ssa-structalias.c (get_constraint_for_1): Fix
13143 constraints in the !flag_delete_null_pointer_checks case.
13145 2010-05-03 Jakub Jelinek <jakub@redhat.com>
13148 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
13149 result mode matches original rtl mode.
13151 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
13154 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
13156 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
13158 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
13159 when processing flag options.
13161 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
13163 * gcov-iov.c (main): Change format string placeholder
13164 from %#08x to 0x%08x.
13165 * genchecksum.c (dosum): Change format string placeholder
13166 from %#02x to 0x%02x.
13168 2010-05-02 Richard Guenther <rguenther@suse.de>
13170 PR tree-optimization/43879
13171 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
13173 2010-05-02 Bruno Haible <bruno@clisp.org>
13175 * doc/extend.texi (Function Attributes): Fix a typo.
13177 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
13180 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
13181 placeholder from 0x%x to %#x.
13182 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
13183 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
13184 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
13185 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
13186 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
13187 * config/i386/i386.c (ix86_target_string): Ditto.
13188 * config/i386/i386.c (output_pic_addr_const): Ditto.
13189 (print_operand): Ditto.
13191 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
13193 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
13194 placeholder from 0x%x to %#x.
13195 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
13196 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
13197 (ASM_OUTPUT_DEBUG_DATA): Ditto.
13198 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
13199 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
13200 * optc-gen.awk: Ditto.
13201 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
13202 (HOST_WIDE_INT_PRINT_HEX): Ditto.
13203 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
13204 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
13206 2010-05-01 Anatoly Sokolov <aesok@post.ru>
13208 * target.h (struct calls): Add function_value_regno_p field.
13209 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
13210 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
13211 * targhooks.c (default_function_value_regno_p): New function.
13212 * targhooks.h (default_function_value_regno_p): Declare function.
13213 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
13214 * builtins.c. (apply_result_size): (Ditto.).
13215 * combine.c. (likely_spilled_retval_p): (Ditto.).
13216 * mode-switching.c. Include 'target.h'.
13217 (create_pre_exit): Use function_value_regno_p hook.
13218 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
13219 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
13220 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
13222 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
13223 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
13224 (ix86_function_value_regno_p): Declare as static, change argument
13225 type to const unsigned int.
13226 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
13228 2010-05-01 Richard Guenther <rguenther@suse.de>
13230 PR tree-optimization/43949
13231 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
13233 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
13235 2010-05-01 Anatoly Sokolov <aesok@post.ru>
13237 * rtl.h (CONST_DOUBLE_P): Define.
13238 (rtx_to_double_int): Declare.
13239 * emit-rtl.c (rtx_to_double_int): New function.
13240 * dwarf2out.c (insert_double): New function.
13241 (loc_descriptor, add_const_value_attribute): Clean up, use
13242 rtx_to_double_int and insert_double functions.
13244 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
13246 * doc/extend.texi (Inline): Add missing return keyword to examples.
13247 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
13250 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
13252 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
13253 the variable part of the offset as well. Use highest_pow2_factor for
13254 all alignment checks.
13256 2010-04-30 Richard Guenther <rguenther@suse.de>
13258 PR tree-optimization/43879
13259 * tree-ssa-structalias.c (type_could_have_pointers): Functions
13262 2010-04-30 Jan Hubicka <jh@suse.cz>
13264 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
13266 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
13268 2010-04-30 Jan Hubicka <jh@suse.cz>
13270 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
13272 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
13273 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
13274 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
13275 cgraph_node_set_needs_ltrans_p): Remove.
13277 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
13279 * sdbout.c: Include vec.h, do not include varray.h.
13280 (deferred_global_decls, sdbout_global_decl,
13281 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
13282 * toplev.c: Do not include varray.h.
13283 (dump_memory_report): Do not dump VARRAY statistics.
13284 * gengtype.c (open_base_file): Ignore varray.h.
13285 * Makefile.in: Update for abovementioned changes.
13286 Remove all traces of varray.c and varray.h.
13287 * varray.c: Remove file.
13288 * varray.h: Remove file.
13290 2010-04-30 Jan Hubicka <jh@suse.cz>
13292 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
13295 2010-04-30 Jan Hubicka <jh@suse.cz>
13297 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
13300 2010-04-30 Richard Guenther <rguenther@suse.de>
13302 * tree-ssa-structalias.c (get_constraint_for_1): Generate
13303 constraints for CONSTRUCTOR.
13305 2010-04-30 Richard Guenther <rguenther@suse.de>
13308 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
13309 first after all lowering passes.
13311 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
13313 * toplev.c: Include varray.h for statistics dumping.
13314 * tree.h: Do not declare varray_head_tag.
13315 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
13316 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
13317 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
13318 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
13319 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
13320 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
13321 c-common.c, c-common.h, reg-stack.c, basic-block.h,
13322 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
13324 * Makefile.in: Update for abovementioned changes.
13326 2010-04-30 Jakub Jelinek <jakub@redhat.com>
13329 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
13331 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
13333 * config/picochip/picochip.c (picochip_legitimize_address): Define.
13334 Use this function to do machine-specific conversion.
13335 (picochip_legitimize_reload_address): Likewise.
13336 (picochip_legitimate_address_p): Check valid base register only if
13338 (picochip_check_conditional_copy): Check for modw only if opnd is
13340 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
13341 to call the function in c.
13342 * config/picochip/picochip-protos.h
13343 (picochip_legitimize_reload_address): Define.
13344 * config/picochip/picochip.md (supported_compare1): Define.
13346 2010-04-30 Jan Hubicka <jh@suse.cz>
13348 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
13349 (cgraph_global_info): Remove inlined.
13350 (LTO_cgraph_tag_names): Remove.
13351 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
13352 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
13353 simplify cgraph tags and document.
13354 (lto_output_node): Use only LTO_cgraph_unavail_node and
13355 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
13356 for_functions_valid, global info, process and output flags.
13357 (input_overwrite_node): Initialize estimated stack size and
13358 estimated growth. Do not read flags we no longer store.
13359 (input_node): Likewise do not read info no longer stored.
13360 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
13363 2010-04-30 Richard Guenther <rguenther@suse.de>
13365 PR tree-optimization/43879
13366 * tree-ssa-structalias.c (get_constraint_for_1): Properly
13367 handle non-zero initializers.
13369 2010-04-30 Richard Guenther <rguenther@suse.de>
13371 * builtins.c (fold_builtin_1): Delete free (0).
13373 2010-04-29 Jan Hubicka <jh@suse.cz>
13375 * gengtype.c (open_base_files): Add lto-streamer.h
13376 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
13377 (pass_ipa_cp): GGC collect.
13378 * toplev. (compile_file): Do not output symbols.
13379 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
13380 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
13381 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
13382 * lto-section-in.c: Include ggc.h
13383 (lto_new_in_decl_state): Alloc in GGC.
13384 (lto_delete_in_decl_state): Likewise.
13385 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
13388 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
13391 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
13392 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
13393 (HONOR_REG_ALLOC_ORDER): Describe new macro.
13394 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
13395 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
13396 account only if HONOR_REG_ALLOC_ORDER is not defined.
13397 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
13398 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
13400 2010-04-29 Jon Grant <04@jguk.org>
13402 * collect2.c (vflag): Change type from int to bool.
13404 (helpflag): New global bool.
13405 (main): Set vflag and debug with boolean, not integer truth values.
13406 Accept new "--help" option and output usage text if found.
13407 * collect2.h (vflag): Update prototype.
13410 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
13413 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
13415 2010-04-29 Richard Guenther <rguenther@suse.de>
13418 * plugin.h (invoke_plugin_callbacks): Annotate arguments
13419 with ATTRIBUTE_UNUSED.
13421 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
13424 * config/i386/i386.c (get_some_local_dynamic_name): Replace
13425 INSN_P with NONDEBUG_INSN_P.
13426 (distance_non_agu_define): Likewise.
13427 (distance_agu_use): Likewise.
13429 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
13431 From Dominique d'Humieres <dominiq@lps.ens.fr>
13433 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
13436 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
13438 * plugin.h (invoke_plugin_callbacks): New inline function.
13439 * plugin.c (flag_plugin_added): New global flag.
13440 (add_new_plugin): Initialize above flag.
13441 (invoke_plugin_callbacks): Rename to ...
13442 (invoke_plugin_callbacks_full): ... this.
13444 2010-04-28 Jan Hubicka <jh@suse.cz>
13446 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
13447 (lto_varpool_replace_node): New.
13448 (lto_symtab_resolve_symbols): Resolve varpool nodes.
13449 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
13450 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
13451 * cgraph.h (varpool_node_ptr): New type.
13452 (varpool_node_ptr): New vector.
13453 (varpool_node_set_def): New structure.
13454 (varpool_node_set): New type.
13455 (varpool_node_set): New vector.
13456 (varpool_node_set_element_def): New structure.
13457 (varpool_node_set_element, const_varpool_node_set_element): New types.
13458 (varpool_node_set_iterator): New type.
13459 (varpool_node): Add prev pointers, add used_from_other_partition,
13460 in_other_partition.
13461 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
13462 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
13463 varpool_get_node, varpool_remove_node): Declare.
13464 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
13465 varpool_node_set_size): New inlines.
13466 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
13467 * tree-pass.h (varpool_node_set_def): Forward declare.
13468 (ipa_opt_pass_d): Summary writting takes vnode sets too.
13469 (ipa_write_optimization_summaries): Update prototype.
13470 * ipa-cp.c (ipcp_write_summary): Update.
13471 * ipa-reference.c (ipa_reference_write_summary): Update.
13472 * lto-cgraph.c (lto_output_varpool_node): New static function.
13473 (output_varpool): New function.
13474 (input_varpool_node): New static function.
13475 (input_varpool_1): New function.
13476 (input_cgraph): Input varpool.
13477 * ipa-pure-const.c (pure_const_write_summary): Update.
13478 * lto-streamer-out.c (lto_output): Update, output varpool too.
13479 (write_global_stream): Kill WPA hack.
13480 (produce_asm_for_decls): Update.
13481 (output_alias_pair_p): Handle variables.
13482 (output_unreferenced_globals): Output only needed partition of varpool.
13483 * ipa-inline.c (inline_write_summary): Update.
13484 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
13486 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
13487 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
13488 varpool_node_set_new, varpool_node_set_add,
13489 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
13490 debug_varpool_node_set): New functions.
13491 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
13492 (execute_one_pass): Process new decls too.
13493 (ipa_write_summaries_2): Pass around vsets.
13494 (ipa_write_summaries_1): Likewise.
13495 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
13497 (ipa_write_optimization_summaries_1): Pass around vsets.
13498 (ipa_write_optimization_summaries): Likewise.
13499 * varpool.c (varpool_get_node): New.
13500 (varpool_node): Update doubly linked lists.
13501 (varpool_remove_node): New.
13502 (dump_varpool_node): More dumping.
13503 (varpool_enqueue_needed_node): Update doubly linked lists.
13504 (decide_is_variable_needed): Kill ltrans hack.
13505 (varpool_finalize_decl): Kill lto hack.
13506 (varpool_assemble_decl): Skip decls in other partitions.
13507 (varpool_assemble_pending_decls): Update doubly linkes lists.
13508 (varpool_empty_needed_queue): Likewise.
13509 (varpool_extra_name_alias): Likewise.
13510 * lto-streamer.c (lto_get_section_name): Add vars section.
13511 * lto-streamer.h (lto_section_type): Update.
13512 (output_varpool, input_varpool): Declare.
13514 2010-04-28 Mike Stump <mikestump@comcast.net>
13516 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
13518 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
13520 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
13521 record or union type with RECORD_OR_UNION_TYPE_P predicate.
13522 (lto_input_ts_type_tree_pointers): Likewise.
13523 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
13524 (lto_output_ts_type_tree_pointers): Likewise.
13526 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
13528 Uniquization of constants at the Tree level
13529 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
13530 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
13532 (tree_output_constant_def): Declare.
13533 * gimplify.c (gimplify_init_constructor): When using block copy, first
13534 uniquize the constant constructor on the RHS.
13535 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
13536 DECL_IN_CONSTANT_POOL flag.
13537 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
13538 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
13540 (assemble_variable): Deal with symbols belonging to the tree constant
13542 (get_constant_section): Add ALIGN parameter and simplify.
13543 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
13544 (assemble_constant_contents): Use the expression of the VAR_DECL.
13545 (output_constant_def_contents): Use the alignment of the VAR_DECL.
13546 (tree_output_constant_def): New global function.
13547 (mark_constant): Use the expression of the VAR_DECL.
13548 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
13550 (output_object_block): Likewise and assemble the expression.
13552 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
13554 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
13555 hash_tree, eq_tree): New tree hash table.
13556 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
13557 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
13558 lto_orig_address_remove): Reimplement.
13560 2010-04-28 Xinliang David Li <davidxl@google.com>
13563 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
13564 (compute_uninit_opnds_pos): New function.
13565 (is_non_loop_exit_postdominating): New function.
13566 (compute_control_dep_chain): New function.
13567 (find_pdom): New function.
13568 (convert_control_dep_chain_into_preds): New function.
13569 (find_predicates): New function.
13570 (find_control_equiv_block): New function.
13571 (collect_phi_def_edges): New function.
13572 (find_def_preds): New function.
13573 (find_dom): New function.
13574 (dump_predicates): New function.
13575 (get_cmp_code): New function.
13576 (is_value_included_in): New function.
13577 (find_matching_predicate_in_rest_chains): New function.
13578 (use_pred_not_overlap_with_undef_path_pred): New function.
13579 (is_use_properly_guarded): New function.
13580 (normalize_cond_1): New function.
13581 (is_and_or_or): New function.
13582 (normalize_cond): New function.
13583 (is_gcond_subset_of): New function.
13584 (is_subset_of_any): New function.
13585 (is_or_set_subset_of): New function.
13586 (is_and_set_subset_of): New function.
13587 (is_norm_cond_subset_of): New function.
13588 (is_pred_expr_subset_of): New function.
13589 (is_pred_chain_subset_of): New function.
13590 (is_included_in): New function.
13591 (is_superset_of): New function.
13592 (find_uninit_use): New function.
13593 (warn_uninitialized_phi): New function.
13594 (compute_possibly_undefined_names): New function.
13595 (ssa_undefined_value_p): New function.
13596 (execute_late_warn_uninitialized): New function.
13597 * tree-ssa.c (ssa_undefined_value_p): Removed.
13598 (warn_uninit): Changed to extern.
13599 (warn_uninitialized_phi): Removed.
13600 (warn_uninitialized_vars): Changed to extern.
13601 (execute_late_warn_uninitialized): Removed
13602 * tree-flow.h: Add new prototypes.
13603 * timevar.def: Add new time variable.
13604 * Makefile.in: Add new build file.
13606 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
13608 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
13611 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13614 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
13616 2010-04-28 Martin Jambor <mjambor@suse.cz>
13618 * cgraph.h (struct cgraph_node): New field indirect_calls.
13619 (struct cgraph_indirect_call_info): New type.
13620 (struct cgraph_edge): Removed field indirect_call. New fields
13621 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
13622 (cgraph_create_indirect_edge): Declare.
13623 (cgraph_make_edge_direct): Likewise.
13624 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
13625 * ipa-prop.h (struct ipa_param_call_note): Removed.
13626 (struct ipa_node_params): Removed field param_calls.
13627 (ipa_create_all_structures_for_iinln): Declare.
13628 * cgraph.c: Described indirect edges and uids in initial comment.
13629 (cgraph_add_edge_to_call_site_hash): New function.
13630 (cgraph_edge): Search also among the indirect edges, use
13631 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
13632 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
13633 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
13635 (initialize_inline_failed): Assign a reason to indirect edges.
13636 (cgraph_create_edge_1): New function.
13637 (cgraph_create_edge): Moved some functionality to
13638 cgraph_create_edge_1.
13639 (cgraph_create_indirect_edge): New function.
13640 (cgraph_edge_remove_callee): Add an assert checking for
13642 (cgraph_edge_remove_caller): Special-case indirect edges.
13643 (cgraph_remove_edge): Likewise.
13644 (cgraph_set_edge_callee): New function.
13645 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
13646 (cgraph_make_edge_direct): New function.
13647 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
13648 the declaration of the call statement matches.
13649 (cgraph_node_remove_callees): Special-case indirect edges.
13650 (cgraph_clone_edge): Likewise.
13651 (cgraph_clone_node): Clone also the indirect edges.
13652 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
13653 indirect_call, dump count of indirect_calls edges.
13654 * ipa-prop.c (iinlining_processed_edges): New variable.
13655 (ipa_note_param_call): Create indirect edges instead of
13656 creating notes. New parameter node.
13657 (ipa_analyze_call_uses): New parameter node, pass it on to
13658 ipa_note_param_call.
13659 (ipa_analyze_stmt_uses): Likewise.
13660 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
13661 (print_edge_addition_message): Work on edges rather than on notes.
13662 (update_call_notes_after_inlining): Likewise, renamed to
13663 update_indirect_edges_after_inlining.
13664 (ipa_create_all_structures_for_iinln): New function.
13665 (ipa_free_node_params_substructures): Do not free notes.
13666 (ipa_edge_duplication_hook): Propagate bits within
13667 iinlining_processed_edges bitmap.
13668 (ipa_node_duplication_hook): Do not duplicate notes.
13669 (free_all_ipa_structures_after_ipa_cp): Renamed to
13670 ipa_free_all_structures_after_ipa_cp.
13671 (free_all_ipa_structures_after_iinln): Renamed to
13672 ipa_free_all_structures_after_iinln.
13673 (ipa_write_param_call_note): Removed.
13674 (ipa_read_param_call_note): Removed.
13675 (ipa_write_indirect_edge_info): New function.
13676 (ipa_read_indirect_edge_info): Likewise.
13677 (ipa_write_node_info): Do not stream notes, do stream information
13679 (ipa_read_node_info): Likewise.
13680 (lto_ipa_fixup_call_notes): Removed.
13681 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
13682 * ipa-inline.c (pass_ipa_inline): Likewise.
13683 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
13684 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
13685 * tree-inline.c (copy_bb): Removed an unnecessary double check for
13687 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
13689 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
13690 (output_cgraph): Stream also indirect edges.
13691 (lto_output_edge): Added capability to stream indirect edges.
13692 (input_edge): Likewise.
13693 (input_cgraph_1): Likewise.
13694 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
13697 2010-04-28 Richard Guenther <rguenther@suse.de>
13699 PR tree-optimization/43879
13700 PR tree-optimization/43909
13701 * tree-ssa-structalias.c (struct variable_info): Add
13702 only_restrict_pointers flag.
13703 (new_var_info): Initialize it. Increment stats.total_vars here.
13704 (create_function_info_for): Do not increment stats.total_vars here.
13705 (get_function_part_constraint): Fix build with C++.
13706 (insert_into_field_list): Remove.
13707 (push_fields_onto_fieldstack): Properly merge fields.
13708 (create_variable_info_for): Split and simplify.
13709 (create_variable_info_for_1): New piece.
13710 (intra_create_variable_infos): Properly make restrict constraints
13713 2010-04-28 Richard Guenther <rguenther@suse.de>
13716 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
13718 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
13719 Jan Hubicka <hubicka@ucw.cz>
13721 * doc/invoke.texi (-Wsuggest-attribute=const,
13722 -Wsuggest-attribute=pure): Document.
13723 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
13724 (function_always_visible_to_compiler_p,
13725 suggest_attribute, warn_function_pure, warn_function_const):
13727 (check_call): Improve debug info.
13728 (analyze_function): Do not check availability.
13729 (add_new_function): Check availability.
13730 (propagate): Output warnings.
13731 (skip_function_for_local_pure_const): New function.
13732 (local_pure_const): Use it; output warnings.
13733 * common.opt (Wsuggest-attribute=const,
13734 Wsuggest-attribute=pure): New.
13736 2010-04-27 Jakub Jelinek <jakub@redhat.com>
13738 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
13739 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
13740 or DW_CFA_def_cfa_offset{,_sf}.
13742 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
13744 * tree.h: Fix truncated long macros.
13746 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
13748 * collect2.c (TARGET_64BIT): Redefine to target's default.
13749 * tlink.c: Likewise.
13750 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
13751 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
13752 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
13753 for underscoring __USER_LABEL_PREFIX__.
13754 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
13755 (SUB_LINK_ENTRY32): New.
13756 (SUB_LINK_ENTRY64): New.
13757 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
13758 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
13759 (SUB_LINK_ENTRY64): New.
13760 (SUB_LINK_ENTRY): New.
13761 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
13762 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
13763 x64 target is choosen.
13764 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
13765 * configure: Regenerated.
13766 * configure.ac (leading-mingw64-underscores): Option added.
13768 2010-04-27 Jan Hubicka <jh@suse.cz>
13770 * doc/invoke.texi (-fipa-profile): Document.
13771 * opts.c (decode_options): Enable ipa-profile at -O1.
13772 * timevar.def (TV_IPA_PROFILE): Define.
13773 * common.opt (fipa-profile): Add.
13774 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
13776 (cgraph_propagate_frequency): Handle only local ones.
13777 * tree-pass.h (pass_ipa_profile): Declare.
13778 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
13779 (pass_ipa_profile): Use TV_IPA_PROFILE.
13780 * ipa.c (ipa_profile): New function.
13781 (gate_ipa_profile): Likewise.
13782 (pass_ipa_profile): New global variable.
13783 * passes.c (pass_ipa_profile): New.
13785 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
13787 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
13789 2010-04-27 Martin Jambor <mjambor@suse.cz>
13791 PR middle-end/43812
13792 * ipa.c (dissolve_same_comdat_group_list): New function.
13793 (function_and_variable_visibility): Call
13794 dissolve_same_comdat_group_list when comdat group contains external or
13796 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
13797 lists are circular and that they contain only DECL_ONE_ONLY nodes.
13799 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
13801 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
13802 (const_hash_1) <VECTOR_CST>: New case.
13803 (compare_constant) <VECTOR_CST>: Likewise.
13804 <ADDR_EXPR>: Deal with LABEL_REFs.
13805 (copy_constant) <VECTOR_CST>: New case.
13807 2010-04-27 Jan Hubicka <jh@suse.cz>
13809 * cgraph.c (cgraph_propagate_frequency): New function.
13810 * cgraph.h (cgraph_propagate_frequency): Declare.
13811 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
13812 cgraph_propagate_frequency.
13814 2010-04-27 Jakub Jelinek <jakub@redhat.com>
13816 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
13818 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
13821 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
13822 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
13823 here to determine which regs to push and how much stack to reserve.
13825 2010-04-27 Jie Zhang <jie@codesourcery.com>
13827 * doc/gimple.texi (gimple_statement_with_ops): Remove
13828 addresses_taken field.
13829 (gimple_statement_with_memory_ops): Likewise.
13831 2010-04-27 Jan Hubicka <jh@suse.cz>
13833 * tree-inline.c (eni_inlining_weights): Remove.
13834 (estimate_num_insns): Special case more builtins.
13836 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
13839 * c-typeck.c (build_binary_op): Move forward check for comparison
13840 pointer with null pointer constant and adjust the diagnostic message.
13842 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
13845 * configure.ac (gcc_cv_as_section_has_align): Set if installed
13846 binutils supports extended .section directive needed by LTO, or
13847 warn if older binutils found.
13848 (LTO_BINARY_READER): New AC_SUBST'd variable.
13849 (LTO_USE_LIBELF): Likewise.
13850 * gcc/config.gcc (lto_binary_reader): New target-specific configure
13852 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
13853 (LTO_USE_LIBELF): Likewise.
13854 * configure: Regenerate.
13856 * collect2.c (is_elf): Rename from this ...
13857 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
13858 object files in addition to ELF-formatted ones.
13859 (scan_prog_file): Caller updated. Also allow for LTO info marker
13860 symbol to be prefixed or not by an extra underscore.
13862 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
13863 * config/i386/winnt.c: Also #include lto-streamer.h
13864 (i386_pe_asm_named_section): Specify 1-byte section alignment for
13865 LTO named sections.
13866 (i386_pe_asm_output_aligned_decl_common): Add comment.
13867 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
13869 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
13872 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
13873 Add missing earlyclobber for second alternative.
13875 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
13877 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
13878 bits for artificial defs at the top of the block.
13879 * fwprop.c (single_def_use_enter_block): Don't call it.
13881 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
13884 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
13885 instead of "$gcc_cv_objdump -T".
13886 Use "-undefined dynamic_lookup" on darwin.
13887 * gcc/configure: Regenerate.
13889 2010-04-26 Jakub Jelinek <jakub@redhat.com>
13892 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
13894 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
13896 * c-parser.c (struct c_token): Move location field up.
13897 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
13898 (struct c_declspecs): Convert typespec_word, storage_class, and
13899 default_int_p into bitfields.
13900 (struct c_declarator): Move loc field up.
13902 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
13904 * cfgloop.h (struct loop): Move can_be_parallel field up.
13905 * ipa-prop.h (struct ip_node_params): Move bitfields up.
13906 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
13908 (struct iv_cand): Convert pos field into a bitfield.
13909 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
13911 (struct _stmt_vec_info): Shuffle fields for better packing.
13913 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
13915 * varasm.c (IN_NAMED_SECTION): Remove guard.
13916 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
13917 (IN_NAMED_SECTION_P): ...this.
13918 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
13919 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13921 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
13923 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
13924 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
13925 of shadowing it. Fix comments.
13927 2010-04-26 Jan Hubicka <jh@suse.cz>
13929 * cgraph.c (cgraph_create_node): Set node frequency to normal.
13930 (cgraph_clone_node): Copy function frequency.
13931 * cgraph.h (node_frequency): New enum
13932 (struct cgraph_node): Add.
13933 * final.c (rest_of_clean_state): Update.
13934 * lto-cgraph.c (lto_output_node): Output node frequency.
13935 (input_overwrite_node): Input node frequency.
13936 * tre-ssa-loop-ivopts (computation_cost): Update.
13937 * lto-streamer-out.c (output_function): Do not output function
13939 * predict.c (maybe_hot_frequency_p): Update and handle functions
13941 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
13943 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
13944 (compute_function_frequency): Set noreturn functions to be executed
13946 (choose_function_section): Update.
13947 * lto-streamer-in.c (input_function): Do not input function frequency.
13948 * function.c (allocate_struct_function): Do not initialize function
13950 * function.h (function_frequency): Remove.
13951 (struct function): Remove function frequency.
13952 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
13953 (try_update): Update.
13954 * tree-inline.c (initialize_cfun): Do not update function frequency.
13955 * passes.c (pass_init_dump_file): Update.
13956 * i386.c (ix86_compute_frame_layout): Update.
13957 (ix86_pad_returns): Update.
13959 2010-04-26 Jie Zhang <jie@codesourcery.com>
13961 PR tree-optimization/43833
13962 * tree-vrp.c (range_int_cst_p): New.
13963 (range_int_cst_singleton_p): New.
13964 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
13965 when both operands are constants. Use range_int_cst_p in
13968 2010-04-26 Jan Hubicka <jh@suse.cz>
13970 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
13972 2010-04-26 Richard Guenther <rguenther@suse.de>
13975 * gimple.c (gimple_decl_printable_name): Deal gracefully
13976 with a NULL DECL_NAME.
13978 2010-04-26 Richard Guenther <rguenther@suse.de>
13981 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
13982 if emitting debug information and it is either a function
13983 or a namespace decl.
13985 2010-04-26 Ira Rosen <irar@il.ibm.com>
13987 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
13988 determine if the statement is vectorizable, and a macro to access it.
13989 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13990 Skip statements that can't be vectorized. If the analysis fails,
13991 mark the statement as unvectorizable if vectorizing basic block.
13992 (vect_compute_data_refs_alignment): Likewise.
13993 (vect_verify_datarefs_alignment): Skip statements marked as
13994 unvectorizable. Add print.
13995 (vect_analyze_group_access): Skip statements that can't be
13996 vectorized. If the analysis fails, mark the statement as
13997 unvectorizable if vectorizing basic block.
13998 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
13999 * tree-vect-stmts.c (vectorizable_store): Fix the number of
14000 generated stmts for SLP.
14001 (new_stmt_vec_info): Initialize the new field.
14002 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
14003 statements marked as unvectorizable.
14005 2010-04-25 Joseph Myers <joseph@codesourcery.com>
14007 * c-common.c (flag_isoc1x): New.
14008 (flag_isoc99): Update comment.
14009 * c-common.h (flag_isoc1x): New.
14010 (flag_isoc99): Update comment.
14011 * c-cppbuiltin.c (builtin_define_float_constants): Also define
14012 __<type>_DECIMAL_DIG__.
14013 * c-opts.c (set_std_c1x): New.
14014 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
14015 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
14016 * c.opt (-std=c1x, -std=gnu1x): New options.
14017 * doc/cpp.texi: Mention -std=c1x.
14018 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
14019 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
14020 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
14021 * doc/standards.texi: Mention C1X.
14022 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
14023 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
14024 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
14027 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
14029 * config/i386/gmon-sol2.c (_mcleanup): Change format string
14030 placeholder from 0x%x to %#x.
14031 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
14032 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
14033 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
14034 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
14035 * config/i386/i386.c (ix86_target_string): Ditto.
14036 (output_pic_addr_const): Ditto.
14037 (print_operand): Ditto.
14039 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
14041 * combine.c (find_split_point): Add third argument. Use it
14042 to find nested multiply-accumulate instructions. Adjust calls.
14043 (try_combine): Adjust call to find_split_point.
14045 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
14047 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
14049 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
14051 PR tree-optimization/41442
14052 * fold-const.c (merge_truthop_with_opposite_arm): New function.
14053 (fold_binary_loc): Call it.
14055 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
14057 * toplev.c (general_init): Set default for fdiagnostics-show-option.
14058 * opts.c (common_handle_option): Allow disabling it.
14059 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
14061 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
14063 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
14064 between modes if both types are integral.
14066 2010-04-23 Richard Guenther <rguenther@suse.de>
14068 PR tree-optimization/43572
14069 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
14071 2010-04-23 Richard Guenther <rguenther@suse.de>
14074 * tree-inline.c (tree_can_inline_p): Also check compatibility
14077 2010-04-23 Martin Jambor <mjambor@suse.cz>
14079 PR tree-optimization/43846
14080 * tree-sra.c (struct access): New flag grp_assignment_read.
14081 (build_accesses_from_assign): Set grp_assignment_read.
14082 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
14083 (enum mark_read_status): New type.
14084 (analyze_access_subtree): Propagate grp_assignment_read, create
14085 accesses also if both direct_read and root->grp_assignment_read.
14087 2010-04-23 Martin Jambor <mjambor@suse.cz>
14089 PR middle-end/43835
14090 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
14091 function does not have type attributes.
14093 2010-04-23 Richard Guenther <rguenther@suse.de>
14096 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
14099 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14101 * sese.h (create_if_region_on_edge): Remove.
14103 * sese.c (create_if_region_on_edge): Make static.
14105 * tree-inline.c: Do not include ggc.h.
14107 * expr.c: Do not include ggc.h.
14109 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
14112 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
14115 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14116 in the middle of insns for casesi_worker_2.
14118 2010-04-22 David Edelsohn <edelsohn@gnu.org>
14120 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
14122 2010-04-22 Ira Rosen <irar@il.ibm.com>
14124 PR tree-optimization/43842
14125 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
14126 loop unrolling in update of exit phis. Fix comment.
14127 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
14128 least two reduction statements in the loop before starting SLP
14131 2010-04-22 Nick Clifton <nickc@redhat.com>
14133 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
14135 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
14137 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
14138 to simplify a + ~a.
14140 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14142 * tree-parloops.c (loop_parallel_p): New argument
14143 parloop_obstack. Pass it down.
14144 (parallelize_loops): New variable parloop_obstack. Initialize it,
14145 pass it down, free it.
14147 * tree-loop-linear.c (linear_transform_loops): Pass down
14150 * tree-data-ref.h (lambda_compute_access_matrices): New argument
14151 of type struct obstack *.
14153 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
14154 scratch_obstack. Initialize it, pass down, free it.
14156 * lambda.h (lambda_loop_new): Remove.
14157 (lambda_matrix_new, lambda_matrix_inverse)
14158 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
14159 argument of type struct obstack *.
14161 * lambda-trans.c (lambda_trans_matrix_new): New argument
14162 lambda_obstack. Pass it down, use obstack allocation for ret.
14163 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
14166 * lambda-mat.c (lambda_matrix_get_column)
14167 (lambda_matrix_project_to_null): Remove.
14168 (lambda_matrix_new): New argument lambda_obstack. Use obstack
14169 allocation for mat.
14170 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
14173 * lambda-code.c (lambda_loop_new): New function.
14174 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
14175 (lambda_compute_auxillary_space, lambda_compute_target_space)
14176 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
14177 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
14178 (build_access_matrix): New argument lambda_obstack. Use obstack
14180 (lambda_compute_step_signs, lambda_compute_access_matrices): New
14181 argument lambda_obstack. Pass it down.
14183 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
14185 * optabs.h (expand_widening_mult): Declare.
14187 2010-04-22 Richard Guenther <rguenther@suse.de>
14189 PR tree-optimization/43845
14190 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
14191 lookup the CALL_EXPR function and arguments.
14193 2010-04-22 Nick Clifton <nickc@redhat.com>
14195 * config/stormy16/stormy16.c
14196 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
14197 * config/stormy16/stormy16.h: Tidy up formatting.
14198 (DONT_USE_BUILTIN_SETJMP): Remove definition.
14199 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
14200 (ineqbranchsi): Delete pattern.
14201 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
14202 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
14203 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
14204 stormy16-lib2-ucmpsi2.c.
14206 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
14208 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
14209 df_simulate_find_noclobber_defs as appropriate. Keep track of an
14210 extra set merge_set_noclobber, and use it to relax the final test
14212 * df.h (df_simulate_find_noclobber_defs): Declare.
14213 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
14215 (df_simulate_find_noclobber_defs): New function.
14217 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
14219 * config/i386/i386.md: Use {} around multi-line preparation statements.
14221 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14223 * c-tree.h (push_init_level, pop_init_level, set_init_index)
14224 (process_init_element): New argument of type struct obstack *.
14226 * c-typeck.c (push_init_level, pop_init_level, set_designator)
14227 (set_init_index, set_init_label, set_nonincremental_init)
14228 (set_nonincremental_init_from_string, find_init_member)
14229 (output_init_element, output_pending_init_elements)
14230 (process_init_element): New argument braced_init_obstack. Pass it
14232 (push_range_stack, add_pending_init): New argument
14233 braced_init_obstack. Use obstack allocation.
14235 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
14236 braced_init_obstack. Pass it down.
14237 (c_parser_braced_init): New variables ret, braced_init_obstack.
14238 Initialize obstack, pass it down and finally free it.
14240 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
14242 PR middle-end/29274
14243 * tree-pass.h (pass_optimize_widening_mul): Declare.
14244 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
14245 gate_optimize_widening_mul): New static functions.
14246 (pass_optimize_widening_mul): New.
14247 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
14248 <case MULT_EXPR>: Remove support for widening multiplies.
14249 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
14250 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
14251 simplify_gen_unary rather than directly building extensions.
14252 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
14254 * expmed.c (expand_widening_mult): New function.
14255 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
14257 2010-04-21 Jan Hubicka <jh@suse.cz>
14259 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
14260 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
14261 * lto-wpa-fixup.c: Remove.
14262 * Makefile.in (lto-wpa-fixup.o): Remove.
14263 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
14264 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
14265 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
14267 2010-04-21 Jan Hubicka <jh@suse.cz>
14269 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
14270 add write_optimization_summary, read_optimization_summary.
14271 (ipa_write_summaries_of_cgraph_node_set): Remove.
14272 (ipa_write_optimization_summaries): Declare.
14273 (ipa_read_optimization_summaries): Declare.
14274 * ipa-cp.c (pass_ipa_cp): Update.
14275 * ipa-reference.c (pass_ipa_reference): Update.
14276 * ipa-pure-const.c (pass_ipa_pure_const): Update.
14277 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
14279 * ipa-inline.c (pass_ipa_inline): Update.
14280 * ipa.c (pass_ipa_whole_program): Update.
14281 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
14282 * passes.c (ipa_write_summaries_1): Do not test wpa.
14283 (ipa_write_optimization_summaries_1): New.
14284 (ipa_write_optimization_summaries): New.
14285 (ipa_read_summaries): Do not test ltrans.
14286 (ipa_read_optimization_summaries_1): New.
14287 (ipa_read_optimization_summaries): New.
14289 2010-04-21 Jan Hubicka <jh@suse.cz>
14291 * lto-cgraph.c (lto_output_node): Do not output comdat groups
14292 for boundary nodes.
14293 (output_cgraph): Do not arrange comdat groups for boundary nodes.
14295 2010-04-21 Jakub Jelinek <jakub@redhat.com>
14298 * dwarf2out.c (add_name_and_src_coords_attributes): Add
14299 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
14301 2010-04-21 Jan Hubicka <jh@suse.cz>
14303 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
14305 2010-04-21 Jan Hubicka <jh@suse.cz>
14307 * varpool.c (decide_is_variable_needed): Variable is always needed
14310 2010-04-21 Jan Hubicka <jh@suse.cz>
14312 * opts.c (decode_options): Enable pure-const pass for whopr.
14314 2010-04-21 Jan Hubicka <jh@suse.cz>
14316 * cgraph.c (dump_cgraph_node): Dump also assembler name.
14317 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
14319 (cgraph_decide_inlining): Do not expect callee to be removed in all
14322 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
14324 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
14326 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
14328 * config/i386/i386.md (x86_shrd): Add athlon_decode and
14329 amdfam10_decode attributes.
14331 2010-04-21 Jakub Jelinek <jakub@redhat.com>
14333 PR middle-end/43570
14334 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
14335 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
14336 (lower_copyprivate_clauses): Use private var in outer
14337 context instead of original var. Make sure the types
14338 are correct for VLAs.
14340 2010-04-21 Richard Guenther <rguenther@suse.de>
14342 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
14343 to non-pointer objects.
14345 2010-04-21 Jakub Jelinek <jakub@redhat.com>
14347 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
14348 last chain entry if it starts with the still current label.
14349 (add_location_or_const_value_attribute): Check that
14350 loc_list->first->next is NULL instead of comparing ->first with ->last.
14351 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
14352 to add_var_loc_to_decl.
14354 * dwarf2out.c (output_call_frame_info): For dw_cie_version
14355 >= 4 add also address size and segment size fields into CIE header.
14357 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
14358 long as address size is the same as sizeof (void *) and
14360 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
14361 address size or segment size is unexpected, return DW_EH_PE_omit.
14362 (classify_object_over_fdes): If get_cie_encoding returned
14363 DW_EH_PE_omit, return -1.
14364 (init_object): If classify_object_over_fdes returned -1,
14365 pretend there were no FDEs at all.
14367 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
14369 * config/i386/i386.md (bswap<mode>2): Macroize expander from
14370 bswap{si,di}2 using SWI48 mode iterator.
14371 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
14372 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
14373 set modrm attribute of bswap insn to 0 and remove length attribute.
14374 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
14375 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
14376 set mode attribute to <MODE> and remove length attribute.
14378 2010-04-20 James E. Wilson <wilson@codesourcery.com>
14380 PR rtl-optimization/43520
14381 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
14382 zero available registers.
14384 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14386 * builtins.c (fold_builtin_cproj): Fold more cases.
14388 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14390 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
14391 (fold_builtin_1): Fold builtin cproj.
14392 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
14393 Use ATTR_CONST_NOTHROW_LIST.
14395 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
14397 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
14398 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
14399 ffsi2_no_cmove for !TARGET_CMOVE.
14400 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
14401 (ffssi2): Remove expander.
14402 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
14404 (ctz<mode>2): Ditto from ctz{si,di}2.
14405 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
14407 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
14410 2010-04-20 Jakub Jelinek <jakub@redhat.com>
14412 * dwarf2out.c (AT_linkage_name): Define.
14413 (clone_as_declaration): Handle DW_AT_linkage_name.
14414 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
14415 of DW_AT_MIPS_linkage_name.
14416 (move_linkage_attr): Likewise.
14417 (dwarf2out_finish): Likewise.
14419 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
14421 PR middle-end/41952
14422 * fold-const.c (fold_comparison): New folding rule.
14424 2010-04-20 Anatoly Sokolov <aesok@post.ru>
14426 * double-int.h (double_int_setbit): Declare.
14427 * double-int.c (double_int_setbit): New function.
14428 * rtl.h (immed_double_int_const): Declare.
14429 * emit-rtl.c (immed_double_int_const): New function.
14430 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
14431 and immed_double_int_const functions.
14432 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
14433 expand_copysign_bit): (Ditto.).
14434 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
14435 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
14436 * dojump.c (prefer_and_bit_test): (Ditto.).
14437 * expr.c (convert_modes, reduce_to_bit_field_precision,
14438 const_vector_from_tree): (Ditto.).
14439 * expmed.c (mask_rtx, lshift_value): (Ditto.).
14441 2010-04-20 Jan Hubicka <jh@suse.cz>
14443 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
14444 (dump_cgraph_node): Dump new flags.
14445 * cgraph.h (struct cgraph_node): Add flags
14446 reachable_from_other_partition and in_other_partition.
14447 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
14448 other partition can not be removed.
14449 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
14450 the other partition must be output; silence sanity checking on
14451 leaking functions bodies from other paritition.
14452 * lto-cgraph.c (reachable_from_other_partition_p): New function.
14453 (lto_output_node): Output new flags; do not sanity check that inline
14454 clones are output; drop lto_forced_extern_inline_p code; do not mock
14455 visibility flags at partition boundaries.
14456 (add_node_to): New function.
14457 (output_cgraph): Use it to sort functions so masters appear before
14459 (input_overwrite_node): Input new flags.
14460 * passes.c (ipa_write_summaries): Do not call
14461 lto_new_extern_inline_states.
14462 * lto-section-out.c (forced_extern_inline,
14463 lto_new_extern_inline_states lto_delete_extern_inline_states,
14464 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
14465 * lto-streamer.h (lto_new_extern_inline_states,
14466 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
14467 lto_forced_extern_inline_p): Kill.
14469 2010-04-20 Richard Guenther <rguenther@suse.de>
14471 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
14472 from vars that can have pointers.
14473 (process_constraint): Dump useless constraints.
14475 2010-04-20 Richard Guenther <rguenther@suse.de>
14477 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
14478 (dump_sa_points_to_info): Remove asserts.
14479 (init_base_vars): nothing_id isn't an escape point nor does it
14482 2010-04-20 Jakub Jelinek <jakub@redhat.com>
14484 * tree.h (TYPE_REF_IS_RVALUE): Define.
14485 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
14486 should_move_die_to_comdat, prune_unused_types_walk): Handle
14487 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
14488 (modified_type_die, gen_reference_type_die): Emit
14489 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
14490 if TYPE_REF_IS_RVALUE and -gdwarf-4.
14492 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14495 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
14496 calls for -fpic -m31 if they have been sibcall optimized.
14498 2010-04-19 James E. Wilson <wilson@codesourcery.com>
14500 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
14501 ar.lc fixed and call-used.
14503 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
14505 2010-04-19 Jan Hubicka <jh@suse.cz>
14507 * opts.c (decode_options): Disable whpr incompatible passes.
14508 * lto/lto.c (lto_1_to_1_map): Skip clones.
14509 (read_cgraph_and_symbols): Do not mark everything as needed.
14510 (do_whole_program_analysis): Do map only after optimizing;
14511 set proper cgraph_state; use passmanager.
14513 2010-04-19 DJ Delorie <dj@redhat.com>
14515 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
14516 POINTER_PLUS_EXPR and fix them.
14518 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
14520 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
14521 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
14522 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
14523 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
14524 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
14525 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
14526 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
14527 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
14528 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
14529 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
14530 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
14532 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
14534 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
14535 (check_cond_move_block): Likewise.
14536 (cond_move_process_if_block): Likewise.
14537 (noce_find_if_block): Improve formatting.
14538 (find_if_header): Pass 0 to memset and tweak conditions.
14539 (cond_exec_find_if_block): Fix long lines and tweak conditions.
14541 2010-04-19 Jakub Jelinek <jakub@redhat.com>
14543 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
14546 PR middle-end/43337
14547 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
14548 with non-local decl doesn't need chain.
14550 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
14552 * ira-color.c (allocno_reload_assign): Avoid accumulating
14553 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
14555 2010-04-19 Martin Jambor <mjambor@suse.cz>
14557 * gimple.h (create_tmp_reg): Declare.
14558 * gimplify.c (create_tmp_reg): New function.
14559 (gimplify_return_expr): Use create_tmp_reg.
14560 (gimplify_omp_atomic): Likewise.
14561 (gimple_regimplify_operands): Likewise.
14562 * tree-dfa.c (make_rename_temp): Likewise.
14563 * tree-predcom.c (predcom_tmp_var): Likewise.
14564 (reassociate_to_the_same_stmt): Likewise.
14565 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
14566 (get_replaced_param_substitute): Likewise.
14567 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14568 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
14569 * tree-ssa-pre.c (get_representative_for): Likewise.
14570 (create_expression_by_pieces): Likewise.
14571 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
14572 (create_tailcall_accumulator): Likewise.
14574 2010-04-19 Martin Jambor <mjambor@suse.cz>
14576 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
14578 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
14580 2010-04-19 Richard Guenther <rguenther@suse.de>
14582 PR tree-optimization/43796
14583 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
14584 from SCEV in the lattice.
14585 (vrp_visit_phi_node): Dump change.
14587 2010-04-19 Richard Guenther <rguenther@suse.de>
14589 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
14590 * configure: Re-generated.
14592 2010-04-19 Richard Guenther <rguenther@suse.de>
14594 PR tree-optimization/43783
14595 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
14596 constant ARRAY_REF operands two and three if possible.
14598 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
14601 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
14603 2010-04-19 Jie Zhang <jie@codesourcery.com>
14606 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
14608 2010-04-19 Ira Rosen <irar@il.ibm.com>
14610 PR tree-optimization/37027
14611 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
14612 and macro to access it.
14613 (vectorizable_reduction): Add argument.
14614 (vect_get_slp_defs): Likewise.
14615 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
14616 statements for possible use in SLP.
14617 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
14618 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
14619 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
14621 (vectorizable_reduction): Likewise.
14622 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
14624 (vectorizable_type_demotion, vectorizable_type_promotion,
14625 vectorizable_store): Likewise.
14626 (vect_analyze_stmt): Update call to vectorizable_reduction.
14627 (vect_transform_stmt): Likewise.
14628 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
14629 (vect_build_slp_tree): Fix indentation. Check that there are no loads
14630 from different interleaving chains in same node.
14631 (vect_slp_rearrange_stmts): New function.
14632 (vect_supported_load_permutation_p): Allow load permutations for
14633 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
14634 inside SLP nodes if necessary.
14635 (vect_analyze_slp_instance): Handle reductions.
14636 (vect_analyze_slp): Try to build SLP instances originating from groups
14638 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
14639 (vect_get_constant_vectors): Create initial vectors for reductions
14640 according to reduction code. Add new argument.
14641 (vect_get_slp_defs): Add new argument, pass it to
14642 vect_get_constant_vectors.
14643 (vect_schedule_slp_instance): Remove SLP tree root statements.
14645 2010-04-19 Jakub Jelinek <jakub@redhat.com>
14647 * tree.h (ENUM_IS_SCOPED): Define.
14648 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
14649 for ENUM_IS_SCOPED enums.
14651 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
14653 * fold-const.c (fold_comparison): Use ssizetype.
14654 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14655 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
14656 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
14657 * tree-object-size.c (compute_object_sizes): Use size_type_node.
14659 * tree.h (initialize_sizetypes): Remove parameter.
14660 (build_common_tree_nodes): Remove second parameter.
14661 * stor-layout.c (initialize_sizetypes): Remove parameter.
14662 Always create an unsigned type.
14663 (set_sizetype): Assert that the passed type is unsigned and simplify.
14664 * tree.c (build_common_tree_nodes): Remove second parameter.
14665 Adjust call to initialize_sizetypes.
14666 * c-decl.c (c_init_decl_processing): Remove second argument in call to
14667 build_common_tree_nodes.
14669 2010-04-18 Matthias Klose <doko@ubuntu.com>
14671 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
14673 2010-04-18 Ira Rosen <irar@il.ibm.com>
14675 PR tree-optimization/43771
14676 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
14677 load permutation doesn't have gaps.
14679 2010-04-18 Jan Hubicka <jh@suse.cz>
14681 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
14682 (sse_prologue_save_insn expander): Use new pattern.
14683 (sse_prologue_save_insn1): New pattern and splitter.
14684 (sse_prologue_save_insn): Update to deal also with 64bit aligned
14686 * i386.c (setup_incoming_varargs_64): Do not compute jump
14688 (ix86_gimplify_va_arg): Update alignment needed.
14689 (ix86_local_alignment): Do not align all local arrays to 128bit.
14691 2010-04-17 Jan Hubicka <jh@suse.cz>
14693 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
14695 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
14697 * arm.md (negdi2): Remove redundant code to force values into a
14700 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
14702 * arm/bpabi.S: Add EABI alignment attributes to objects.
14703 * arm/bpabi-v6m.S: Likewise.
14704 * arm/crti.asm: Likewise.
14705 * arm/crtn.asm: Likewise.
14706 * arm/lib1funcs.asm: Likewise.
14707 * arm/libunwind.S: Likewise.
14709 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
14711 * arm-protos.h (tune_params): New structure.
14712 * arm.c (current_tune): New variable.
14713 (arm_constant_limit): Delete.
14714 (struct processors): Add pointer to the tune parameters.
14715 (arm_slowmul_tune): New tuning option.
14716 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
14717 (all_cores): Adjust to pick up the tuning model.
14718 (arm_constant_limit): New function.
14719 (arm_override_options): Select the appropriate tuning model. Delete
14720 initialization of arm_const_limit.
14721 (arm_split_constant): Use the new constant-limit model.
14722 (arm_rtx_costs): Pick up the current tuning model.
14723 * arm.md (is_strongarm, is_xscale): Delete.
14724 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
14725 for Xscale variant architectures.
14726 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
14728 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14730 * config/arm/arm.c (arm_gen_constant): Remove unused variable
14732 (arm_rtx_costs_1): Remove unused variable extra_cost.
14733 (arm_unwind_emit_set): Use variable offset.
14734 (thumb1_output_casesi): Remove unused variable flags.
14736 2010-04-16 Jeff Law <law@redhat.com>
14738 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
14739 needing assignment rather than doing a two-phase assignment. Remove
14740 unused variable 'm'.
14742 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14745 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
14747 2010-04-16 Doug Kwan <dougkwan@google.com>
14749 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
14750 (next_operand_entry_id): New static variable.
14751 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
14752 (add_to_ops_vec): Assigned unique ID to operand entry.
14753 (struct oecount_s): New field ID.
14754 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
14755 (undistribute_ops_list): Assign unique IDs to oecounts.
14756 (init_reassoc): reset next_operand_entry_id.
14758 2010-04-16 Doug Kwan <dougkwan@google.com>
14760 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
14761 missing left parenthesis.
14763 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
14765 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
14766 *btdi_rex64 using SWI48 mode iterator.
14767 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
14768 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
14769 *jcc_btdi_mask_rex64.
14771 2010-04-16 Anatoly Sokolov <aesok@post.ru>
14773 * double-int.h (tree_to_double_int): Convert to macro.
14774 * double-int.c (tree_to_double_int): Remove.
14776 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14779 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
14780 with want_address 2 and in case a single element list might be
14781 possible, call it again with want_address 0.
14783 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14785 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
14786 case 'W' print operands for HI mode.
14787 * config/h8300/h8300.h (Y0, Y2) : New constraints.
14788 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
14789 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
14790 * config/h8300/predicate.md (bit_register_indirect_operand): New.
14792 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
14794 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
14795 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
14796 #xx:3 and #xx:4 mode.
14798 * config/h8300/h8300.md (inverted load with HImode dest): Add
14799 support for H8300SX.
14801 * config/h8300/predicate.md (bit_operand): Allow immediate values that
14802 satisfy 'U' constraint.
14804 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14806 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
14807 * configure: Regenerate.
14808 * config.in: Regenerate.
14809 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
14812 2010-04-16 Richard Guenther <rguenther@suse.de>
14814 * tree.h (struct tree_decl_minimal): Move pt_uid ...
14815 (struct tree_decl_common): ... here.
14816 (DECL_PT_UID): Adjust.
14817 (SET_DECL_PT_UID): Likewise.
14818 (DECL_PT_UID_SET_P): Likewise.
14820 2010-04-16 Richard Guenther <rguenther@suse.de>
14822 PR tree-optimization/43572
14823 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
14824 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
14825 * tree-flow.h (is_call_clobbered): Remove.
14826 * tree-flow-inline.h (is_call_clobbered): Likewise.
14827 * tree-dfa.c (dump_variable): Do not dump call clobber state.
14828 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
14829 (execute_return_slot_opt): Adjust.
14830 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
14831 check for call clobbered vars here.
14832 (find_tail_calls): Move tailcall verification to the
14835 2010-04-16 Diego Novillo <dnovillo@google.com>
14837 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
14839 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
14842 * config/arm/arm.md (cbranchqi4): New pattern.
14843 * config/arm/predicates.md (const0_operand,
14844 cbranchqi4_comparison_operator): New predicates.
14846 2010-04-16 Richard Guenther <rguenther@suse.de>
14848 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
14849 (dump_gimple_stmt): Likewise.
14851 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
14853 * recog.h (struct recog_data): New field is_operator.
14854 (struct insn_operand_data): New field is_operator.
14855 * recog.c (extract_insn): Set recog_data.is_operator.
14856 * genoutput.c (output_operand_data): Emit code to set the
14858 * reload.c (find_reloads): Use it rather than testing for an
14859 empty constraint string.
14862 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
14863 If the previous insn is a cbranchsi4_insn with the same arguments,
14864 omit the compare instruction.
14866 * config/arm/arm.md (addsi3_cbranch): If destination is a high
14867 register, inputs must be low registers and we need a low register
14868 scratch. Handle alternative 2 like alternative 3.
14870 2010-04-16 Jakub Jelinek <jakub@redhat.com>
14872 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
14873 don't call get_addr on both. If one expression is a VALUE and
14874 the other a REG, check VALUE's locs if the REG isn't among them.
14876 2010-04-16 Christian Bruel <christian.bruel@st.com>
14878 * config/sh/sh.h (sh_frame_pointer_required): New function.
14879 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
14880 (flag_omit_frame_pointer) Set.
14881 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
14882 (rounded_frame_size): Adjust size with outgoing_args_size.
14883 (sh_set_return_address): Must return from stack pointer.
14884 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
14885 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
14886 (ACCUMULATE_OUTGOING_ARGS): Define.
14887 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
14888 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
14890 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
14893 * config/sh/sh.c (sh_legitimize_reload_address): Use
14894 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
14895 Remove a unneeded check for offset_base.
14897 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
14899 * configure: Regenerated.
14901 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14903 * config/s390/s390.c (s390_call_save_register_used): Switch back
14904 to HARD_REGNO_NREGS.
14906 2010-04-15 Richard Guenther <rguenther@suse.de>
14908 * alias.c (alias_set_subset_of): Handle alias-set zero
14911 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
14912 Julian Brown <julian@codesourcery.com>
14914 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
14915 alternatives according to use of high and low regs.
14916 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
14917 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
14918 optimizing for size on Thumb-2.
14920 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
14922 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
14924 2010-04-15 Richard Guenther <rguenther@suse.de>
14926 * tree-ssa-structalias.c (struct variable_info): Add
14928 (new_var_info): Initialize it.
14929 (dump_constraints): Support printing last added constraints.
14930 (debug_constraints): Adjust.
14931 (dump_constraint_graph): Likewise.
14932 (make_heapvar_for): Check for NULL cfun.
14933 (get_function_part_constraint): New function.
14934 (get_fi_for_callee): Likewise.
14935 (find_func_aliases): Properly implement IPA PTA constraints.
14936 (process_ipa_clobber): New function.
14937 (find_func_clobbers): Likewise.
14938 (insert_into_field_list_sorted): Remove.
14939 (create_function_info_for): Properly allocate vars for IPA mode.
14940 Do not use insert_into_field_list_sorted.
14941 (create_variable_info_for): Properly generate constraints for
14942 global vars in IPA mode.
14943 (dump_solution_for_var): Always dump the solution.
14944 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
14945 (find_what_var_points_to): Adjust.
14946 (pt_solution_set): Change.
14947 (pt_solution_ior_into): New function.
14948 (pt_solution_empty_p): Export.
14949 (pt_solution_includes_global): Adjust.
14950 (pt_solution_includes_1): Likewise.
14951 (pt_solutions_intersect_1): Likewise.
14952 (dump_sa_points_to_info): Check some invariants.
14953 (solve_constraints): Move constraint dumping ...
14954 (compute_points_to_sets): ... here.
14955 (ipa_pta_execute): ... and here.
14956 (compute_may_aliases): Do not re-compute points-to info
14957 locally if IPA info is available.
14958 (ipa_escaped_pt): New global var.
14959 (ipa_pta_execute): Properly implement IPA PTA.
14960 * tree-into-ssa.c (dump_decl_set): Support dumping
14961 decls not in referenced-vars.
14962 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
14963 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
14964 (dump_points_to_solution): Likewise.
14965 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
14966 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
14967 (remap_gimple_stmt): Reset call clobber/use information if necessary.
14968 (copy_decl_to_var): Copy DECL_PT_UID.
14969 (copy_result_decl_to_var): Likewise.
14970 * tree.c (make_node_stat): Initialize DECL_PT_UID.
14971 (copy_node_stat): Copy it.
14972 * tree.h (DECL_PT_UID): New macro.
14973 (SET_DECL_PT_UID): Likewise.
14974 (DECL_PT_UID_SET_P): Likewise.
14975 (struct tree_decl_minimal): Add pt_uid member.
14976 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
14977 (pt_solution_empty_p): Declare.
14978 (pt_solution_set): Adjust.
14979 (ipa_escaped_pt): Declare.
14980 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
14981 * gimple-pretty-print.c (pp_points_to_solution): New function.
14982 (dump_gimple_call): Dump call clobber/use information.
14983 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
14984 * tree-pass.h (TDF_ALIAS): New dump option.
14985 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
14986 * doc/invoke.texi (-fipa-pta): Update documentation.
14988 2010-04-15 Richard Guenther <rguenther@suse.de>
14990 * Makefile.in (OBJS-common): Add gimple-fold.o.
14991 (gimple-fold.o): New rule.
14992 * tree.h (maybe_fold_offset_to_reference,
14993 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
14995 * gimple.h: ... here.
14996 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
14997 may_propagate_address_into_dereference): Move prototypes ...
14998 * gimple.h: ... here.
14999 * tree-ssa-ccp.c (get_symbol_constant_value,
15000 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
15001 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
15002 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
15003 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
15004 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
15005 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
15006 gimplify_and_update_call_from_tree): Move ...
15007 * gimple-fold.c: ... here. New file.
15008 (ccp_fold_builtin): Rename to ...
15009 (gimple_fold_builtin): ... this.
15010 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
15012 2010-04-15 Richard Guenther <rguenther@suse.de>
15014 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
15015 fit_double_type, force_fit_type_double, add_double_with_sign,
15016 neg_double, mul_double_with_sign, lshift_double, rshift_double,
15017 lrotate_double, rrotate_double, div_and_round_double): Move ...
15018 * double-int.c: ... here.
15019 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
15020 add_double, neg_double, mul_double_with_sign, mul_double,
15021 lshift_double, rshift_double, lrotate_double, rrotate_double,
15022 div_and_round_double): Move prototypes ...
15023 * double-int.h: ... here.
15025 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
15028 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
15029 matching constraints to ensure inputs match the output.
15031 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
15034 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
15035 in an input-only operand.
15037 2010-04-15 Anatoly Sokolov <aesok@post.ru>
15039 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
15040 (double_int_not, double_int_lshift, double_int_rshift): Declare.
15041 (double_int_negative_p): Convert to static inline function.
15042 * double-int.c (double_int_lshift, double_int_lshift): New functions.
15043 (double_int_negative_p): Remove.
15044 * tree.h (lshift_double, rshift_double):
15045 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
15046 * fold-const.c (fold_convert_const_int_from_real,
15047 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
15048 (lshift_double): Change type of arith argument to bool.
15049 (rshift_double): Change type of arith argument to bool. Correct
15051 * expmed.c (mask_rtx, lshift_value): (Ditto.).
15053 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
15056 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
15057 at the start and end of the then/else blocks, and omit them from the
15059 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
15060 argument; all callers changed. Pass zero to old_insns_match_p instead.
15061 (flow_find_head_matching_sequence): New function.
15062 (old_insns_match_p): Check REG_EH_REGION notes for calls.
15063 * basic-block.h (flow_find_cross_jump,
15064 flow_find_head_matching_sequence): Declare functions.
15066 2010-04-14 Jason Merrill <jason@redhat.com>
15069 * c-common.c (attribute_takes_identifier_p): New fn.
15070 * c-common.h: Declare it.
15072 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15074 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
15075 splitter condition.
15076 (*udivmod<mode>4): Ditto.
15078 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15080 * config/i386/i386.md (maxmin_int): Rename code attribute from
15081 maxminiprefix and update all users.
15082 (maxmin_float): Ditto from maxminfprefix.
15083 (logic): Ditto from logicprefix.
15084 (absneg_mnemonic): Ditto from absnegprefix.
15085 * config/i386/mmx.md: Update all users of maxminiprefix,
15086 maxminfprefix and logicprefix for rename.
15087 * config/i386/sse.md: Ditto.
15088 * config/i386/sync.md (sync_<code><mode>): Update for
15089 logicprefix rename.
15091 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
15094 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
15095 warnings converted to errors.
15097 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15099 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
15100 used insn_type variable.
15101 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
15102 to avoid set-but-not-used warning.
15104 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15106 * df-core.c (df_ref_debug): Change format string placeholder
15108 * dwarf2asm.c (dw2_asm_output_data_raw,
15109 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
15110 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
15111 * dwarf2out.c (output_cfi, output_cfi_directive,
15112 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
15113 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
15115 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
15116 * print-rtl.c (print_rtx): Ditto.
15118 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15120 PR middle-end/42694
15121 * builtins.c (expand_builtin_pow_root): New function to expand pow
15122 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
15123 series of sqrt and cbrt calls under -ffast-math.
15124 (expand_builtin_pow): Call it.
15126 2010-04-14 Michael Matz <matz@suse.de>
15128 PR tree-optimization/42963
15129 * tree-cfg.c (touched_switch_bbs): New static variable.
15130 (group_case_labels_stmt): New function broken out from ...
15131 (group_case_labels): ... here, use the above.
15132 (start_recording_case_labels): Allocate touched_switch_bbs.
15133 (end_recording_case_labels): Deallocate it, call
15134 group_case_labels_stmt.
15135 (gimple_redirect_edge_and_branch): Remember index of affected BB.
15137 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15139 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
15140 from insn template.
15142 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
15144 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
15146 2010-04-13 Jan Hubicka <jh@suse.cz>
15148 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
15149 of optimized out static functions.
15150 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
15151 cost computation. Also sanity check for overflows.
15152 (update_caller_keys): Update cgraph_edge_badness call; properly
15153 update fibheap and sanity check that it is up to date.
15154 (add_new_edges_to_heap): Update cgraph_edge_badness.
15155 (cgraph_decide_inlining_of_small_function): Likewise;
15156 add sanity checking that badness in heap is up to date;
15157 improve dumping of reason; Update badness of calls to the
15158 offline copy of function currently inlined; dump badness
15159 of functions not inlined because of unit growth limits.
15161 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
15163 PR middle-end/32628
15164 * c-common.c (pointer_int_sum): Disregard overflow that occured only
15165 because of sign-extension change when converting to sizetype here...
15166 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
15168 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
15169 the folding to constants. Remove redundant final conversion.
15170 (fold_binary) <associate>: Do not associate if the re-association of
15171 constants alone overflows.
15172 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
15173 to the end of the list.
15174 (multiple_of_p) <COND_EXPR>: New case.
15176 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
15178 * opt-functions.awk (opt_sanitized_name): New.
15180 * optc-gen.awk: Use it
15181 * opth-gen.awk: Use it.
15183 2010-04-13 Martin Jambor <mjambor@suse.cz>
15185 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
15186 (sra_modify_assign): Delete stmts loading dead data even if racc has no
15187 children. Call replace_uses_with_default_def_ssa_name to handle
15190 2010-04-13 Michael Matz <matz@suse.de>
15192 PR middle-end/43730
15193 * builtins.c (expand_builtin_interclass_mathfn): Also create
15194 a register if the predicate doesn't match.
15196 2010-04-13 Diego Novillo <dnovillo@google.com>
15198 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
15199 * c-pch.c: Include timevar.h.
15200 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
15201 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
15202 * ggc-common.c: Include timevar.h.
15203 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
15204 * timevar.def (TV_PCH_SAVE): Define.
15205 (TV_PCH_CPP_SAVE): Define.
15206 (TV_PCH_PTR_REALLOC): Define.
15207 (TV_PCH_PTR_SORT): Define.
15208 (TV_PCH_RESTORE): Define.
15209 (TV_PCH_CPP_RESTORE): Define.
15211 2010-04-13 Michael Matz <matz@suse.de>
15213 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
15215 (can_reassociate_p): New function.
15216 (break_up_subtract_bb, reassociate_bb): Use it.
15218 2010-04-13 Richard Guenther <rguenther@suse.de>
15221 * builtins.c (c_readstr): Fix assert.
15223 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
15225 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
15226 when generating cltd insn.
15228 (*ashl<mode>3_1): Remove special handling for register operand 2.
15229 (*ashlsi3_1_zext): Ditto.
15230 (*ashlhi3_1): Ditto.
15231 (*ashlhi3_1_lea): Ditto.
15232 (*ashlqi3_1): Ditto.
15233 (*ashlqi3_1_lea): Ditto.
15234 (*<shiftrt_insn><mode>3_1): Ditto.
15235 (*<shiftrt_insn>si3_1_zext): Ditto.
15236 (*<shiftrt_insn>qi3_1_slp): Ditto.
15237 (*<rotate_insn><mode>3_1): Ditto.
15238 (*<rotate_insn>si3_1_zext): Ditto.
15239 (*<rotate_insn>qi3_1_slp): Ditto.
15241 2010-04-13 Richard Guenther <rguenther@suse.de>
15243 * tree-ssa-structalias.c (callused_id): Remove.
15244 (call_stmt_vars): New.
15245 (get_call_vi): Likewise.
15246 (lookup_call_use_vi): Likewise.
15247 (lookup_call_clobber_vi): Likewise.
15248 (get_call_use_vi): Likewise.
15249 (get_call_clobber_vi): Likewise.
15250 (make_transitive_closure_constraints): Likewise.
15251 (handle_const_call): Adjust to do per-call call-used handling.
15252 (handle_pure_call): Likewise.
15253 (find_what_var_points_to): Remove general callused handling.
15254 (init_base_vars): Likewise.
15255 (init_alias_vars): Initialize call_stmt_vars.
15256 (compute_points_to_sets): Process call-used and call-clobbered
15257 vars for call statements.
15258 (delete_points_to_sets): Free call_stmt_vars.
15260 2010-04-13 Richard Guenther <rguenther@suse.de>
15262 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15263 Only add RW dependence for dependence distance zero.
15264 Adjust maximal vectorization factor according to dependences.
15265 Move alignment handling ...
15266 (vect_find_same_alignment_drs): ... here. New function.
15267 (vect_analyze_data_ref_dependences): Adjust.
15268 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
15269 (vect_analyze_data_refs): Adjust minimal vectorization factor
15270 according to data references.
15271 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
15272 dependences before determining the vectorization factor.
15273 Analyze alignment after determining the vectorization factor.
15274 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
15275 dependences before alignment.
15276 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
15278 (vect_analyze_data_refs): Likewise.
15279 (MAX_VECTORIZATION_FACTOR): New define.
15281 2010-04-13 Duncan Sands <baldrick@free.fr>
15283 * except.h (lang_eh_type_covers): Remove.
15284 * except.c (lang_eh_type_covers): Likewise.
15286 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15287 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15289 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
15290 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
15291 UNITS_PER_LONG where it is ABI relevant.
15292 (s390_return_addr_rtx): Likewise.
15293 (s390_back_chain_rtx): Likewise.
15294 (s390_frame_area): Likewise.
15295 (s390_frame_info): Likewise.
15296 (s390_initial_elimination_offset): Likewise.
15297 (save_gprs): Likewise.
15298 (s390_emit_prologue): Likewise.
15299 (s390_emit_epilogue): Likewise.
15300 (s390_function_arg_advance): Likewise.
15301 (s390_function_arg): Likewise.
15302 (s390_va_start): Likewise.
15303 (s390_gimplify_va_arg): Likewise.
15304 (s390_function_profiler): Likewise.
15305 (s390_optimize_prologue): Likewise.
15306 (s390_rtx_costs): Likewise.
15307 (s390_secondary_reload): Likewise.
15308 (s390_promote_function_mode): Likewise.
15309 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
15310 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
15311 registers available.
15312 (s390_unwind_word_mode): New function.
15313 (s390_function_value): Split 64 bit values into register pair if
15314 used as return value.
15315 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
15316 function call parameters. Handle parallels.
15317 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
15318 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
15319 (DWARF_CIE_DATA_ALIGNMENT): New macro.
15320 (s390_expand_setmem): Remove unused variable src_addr.
15321 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
15322 deal with 64 bit registers.
15323 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
15324 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
15325 (UNITS_PER_LONG): New macro.
15326 * libjava/include/s390-signal.h: Define extended ucontext
15327 structure containing the upper halfs of the 64 bit registers.
15329 2010-04-13 Simon Baldwin <simonb@google.com>
15331 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
15333 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
15335 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
15336 rvalue on the RHS if the LHS is of a non-renamable type.
15337 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
15339 2010-04-13 Matthias Klose <doko@ubuntu.com>
15341 * gcc.c (cc1_options): Handle -iplugindir before processing
15342 the cc1 spec. Only add -iplugindir once.
15343 (cpp_unique_options): Add -iplugindir option if -fplugin* options
15345 * common.opt (iplugindir): Remove `Separate' property, initialize.
15346 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
15348 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
15349 (distclean): Remove plugin dir.
15350 * doc/invoke.texi: Document -iplugindir.
15352 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
15354 * doc/plugins.texi (Loading Plugins): Document short
15355 -fplugin=foo option.
15356 (Plugin API): Mention default_plugin_dir_name function.
15358 * gcc.c (find_file_spec_function): Add new declaration.
15359 (static_spec_func): Use it for "find-file".
15360 (find_file_spec_function): Add new function.
15361 (cc1_options): Add -iplugindir option if -fplugin* options found.
15363 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
15365 * plugin.c (add_new_plugin): Updated comment, and handle short
15367 (default_plugin_dir_name): Added new function.
15369 * common.opt (iplugindir): New option to set the plugin directory.
15371 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
15373 * config/i386/i386.md (any_rotate): New code iterator.
15374 (rotate_insn): New code attribute.
15376 (SWIM124): New mode iterator.
15377 (<rotate_insn>ti3): New expander.
15378 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
15379 any_rotate code iterator.
15380 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
15381 using any_rotate code iterator and SWIM124 mode iterator.
15382 (ix86_rotlti3): New insn_and_split pattern.
15383 (ix86_rotrti3): Ditto.
15384 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
15385 ix86_rotl{di,ti}3 patterns.
15386 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
15387 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
15388 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
15389 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
15390 code iterator and SWI mode iterator.
15391 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
15392 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
15394 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
15395 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
15396 (bswap rotatert splitter): Add splitter.
15397 (bswap splitter): Macroize splitter using any_rotate code iterator.
15398 Add insn predicate to split only for TARGET_USE_XCHGB or when
15399 optimizing function for size.
15401 2010-04-12 Steve Ellcey <sje@cup.hp.com>
15403 * config/pa/pa.c (emit_move_sequence): Remove use of
15404 deleted variable flag_argument_noalias.
15406 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15408 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
15410 Add to unsupported targets list.
15411 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
15412 sparc*-sun-solaris2.[567]* from target lists.
15413 * configure: Regenerate.
15414 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
15416 Remove Solaris 7 patch references.
15417 (Specific, sparc-sun-solaris2.7): Removed.
15418 (sparc-sun-solaris2*): Update Solaris 7 example.
15419 (sparc64-*-solaris2*): Likewise.
15421 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15423 * config.build (alpha*-dec-osf4*): Remove.
15424 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
15425 of obsolete configurations.
15426 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
15428 * config/alpha/t-osf4: Renamed to ...
15429 * config/alpha/t-osf5: ... this.
15430 * config/alpha/osf.h: Renamed to ...
15431 * config/alpha/osf5.h: ... this.
15432 Merged old osf5.h contents.
15434 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
15435 (EXTRA_SPECS): Removed.
15436 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
15437 reflect removal of Tru64 UNIX V4.0/V5.0 support.
15440 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15442 * doc/contrib.texi (Contributors, Rainer Orth): Update.
15444 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
15447 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
15448 __thiscall convention.
15450 2010-04-12 Steve Ellcey <sje@cup.hp.com>
15452 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
15454 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
15456 2010-04-12 Steve Ellcey <sje@cup.hp.com>
15458 * function.c (assign_parms_initialize_all): Add unused attribute
15461 2010-04-12 Richard Guenther <rguenther@suse.de>
15463 * gsstruct.def (GSS_CALL): New.
15464 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
15465 * gimple.h: Include tree-ssa-alias.h.
15466 (struct gimple_statement_call): New.
15467 (union gimple_statement_struct_d): Add gimple_call member.
15468 (gimple_call_reset_alias_info): Declare.
15469 (gimple_call_use_set): New function.
15470 (gimple_call_clobber_set): Likewise.
15471 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
15472 * gimple.c (gimple_call_reset_alias_info): New function.
15473 (gimple_build_call_1): Call it.
15474 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15475 * tree-inline.c (remap_gimple_stmt): Likewise.
15476 (expand_call_inline): Remove callused handling.
15477 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
15478 * tree-dfa.c (dump_variable): Likewise.
15479 * tree-parloops.c (parallelize_loops): Likewise.
15480 * tree-ssa.c (init_tree_ssa): Likewise.
15481 (delete_tree_ssa): Likewise.
15482 * tree-flow-inline.h (is_call_used): Remove.
15483 * tree-flow.h (struct gimple_df): Remove callused member.
15484 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
15485 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
15486 (ref_maybe_used_by_call_p_1): Simplify.
15487 (call_may_clobber_ref_p_1): Likewise.
15488 * tree-ssa-structalias.c (compute_points_to_sets): Set
15489 the call stmt used and clobbered sets.
15490 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
15491 (find_tail_calls): Verify the tail call.
15493 2010-04-12 Richard Guenther <rguenther@suse.de>
15495 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
15496 single-iteration always-inline inlining.
15497 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
15498 (cgraph_decide_inlining): Do not handle always-inline specially.
15499 (try_inline): Remove always-inline cycle detection special case.
15500 Do not recurse on always-inlines.
15501 (cgraph_early_inlining): Do not iterate if not optimizing.
15502 (cgraph_gate_early_inlining): remove.
15503 (pass_early_inline): Run unconditionally.
15504 (gate_cgraph_decide_inlining): New function.
15505 (pass_ipa_inline): Use it. Do not run the IPA inliner if
15506 not inlining or optimizing.
15507 (cgraph_decide_inlining_of_small_functions): Also consider
15508 always-inline functions.
15509 (cgraph_default_inline_p): Return true for nodes which should
15510 disregard inline limits.
15511 (estimate_function_body_sizes): Assume zero size and time for
15512 nodes which are marked as disregarding inline limits.
15513 (cgraph_decide_recursive_inlining): Do not perform recursive
15514 inlining on always-inline nodes.
15516 2010-04-12 Jakub Jelinek <jakub@redhat.com>
15519 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
15520 for exprs satisfying handled_component_p.
15522 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
15524 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
15525 non-constant aggregate elements.
15527 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
15528 is a real initialization.
15530 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
15533 * c-decl.c (start_function): Move forward check for nested function.
15535 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
15537 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
15538 * config/sh/sh.c: Include reload.h.
15539 (sh_legitimize_reload_address): New.
15540 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
15541 sh_legitimize_reload_address.
15543 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
15545 * config/sh/sh.md (*movqi_pop): New insn pattern.
15546 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
15548 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
15550 * config/i386/i386.md (any_shiftrt): New code iterator.
15551 (shiftrt_insn): New code attribute.
15553 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
15554 using any_shiftrt code iterator.
15555 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
15556 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
15557 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
15558 pattern from corresponding peephole2 patterns.
15559 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
15560 using any_shiftrt code iterator.
15561 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
15562 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
15563 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
15564 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
15565 *{ashr,lshr}<mode>3_cmp_zext.
15566 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
15568 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
15570 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
15572 (*lshr<mode>3_cconly): Ditto.
15574 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
15576 * config/i386/i386.md (lshr<mode>3): Macroize expander from
15577 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
15578 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
15579 pattern from *lshr{di,ti}3_1 and corresponding splitters using
15581 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
15582 from corresponding peephole2 patterns.
15583 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
15584 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
15585 and *lshrdi3_1_rex64 using SWI mode iterator.
15586 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
15587 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
15588 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
15589 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
15590 and *lshrdi3_cmp_rex64 using SWI mode iterator.
15591 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
15592 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
15593 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
15594 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
15597 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
15599 * config/i386/i386.md (ashr<mode>3): Macroize expander from
15600 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
15601 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
15602 pattern from *ashr{di,ti}3_1 and corresponding splitters using
15604 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
15605 from corresponding peephole2 patterns.
15606 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
15607 (ashrsi3_cvt): Rename from ashrsi3_31.
15608 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
15609 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
15610 and x86_64_shift_adj_3 using SWI48 mode iterator.
15611 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
15612 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
15613 and *ashrdi3_1_rex64 using SWI mode iterator.
15614 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
15615 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
15616 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
15617 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
15618 and *ashrdi3_cmp_rex64 using SWI mode iterator.
15619 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
15620 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
15621 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
15622 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
15624 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
15625 * config/i386/i386.c (ix86_split_ashr): Update for renamed
15626 x86_shift<mode>_adj_3 expanders.
15628 2010-04-10 Wei Guozhi <carrot@google.com>
15631 * config/arm/arm.c (arm_pic_static_addr): New function.
15632 (legitimize_pic_address): Call arm_pic_static_addr when it detects
15634 (arm_output_addr_const_extra): Output expression for new pattern.
15635 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
15637 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
15639 * ira-costs.c (record_reg_classes): Ignore alternatives that are
15642 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
15643 * web.c: Include "insn-config.h" and "recog.h".
15644 (union_match_dups): New function.
15645 (web_main): Call it.
15646 (union_defs): Don't try to recognize match_dups.
15648 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
15649 if doing so would replace the entire pattern.
15651 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
15655 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
15656 and splitter pattern. Change splitter operand 1 predicate to
15659 2010-04-09 Martin Jambor <mjambor@suse.cz>
15661 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
15662 lattices are addresses of CONST_DECLs with the same initial value.
15663 (ipcp_print_all_lattices): Print values of CONST_DECLs.
15664 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
15666 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
15667 Bernd Schmidt <bernds@codesourcery.com>
15669 * loop-invariant.c (replace_uses): New static function.
15670 (move_invariant_reg): Use it to ensure we can replace the uses.
15672 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
15674 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
15676 (picochip_override_options): Enable section anchors only above -O1.
15677 (picochip_reorg): Fixed a couple of build warnings.
15679 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15681 * configure.ac (plugin -rdynamic test): Log result.
15682 * configure: Regenerate.
15683 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
15684 (RDYNAMIC_SPEC): Define.
15685 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
15687 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15689 * configure.ac: Determine Sun ld version numbers.
15690 (comdat_group): Restrict GNU ld version checks to gld.
15691 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
15692 (enable_comdat): Support --enable-comdat.
15693 * configure: Regenerate.
15694 * doc/install.texi (Configuration): Document --enable-comdat.
15696 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15698 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
15699 * config/sol2-gld.h: ... here.
15700 * config.gcc (sparc*-*-solaris2*): Reflect this.
15701 (i[34567]86-*-solaris2*): Use it.
15703 2010-04-09 Steve Ellcey <sje@cup.hp.com>
15705 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
15707 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
15709 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15712 * diagnostic.c (diagnostic_initialize): Initialize
15713 some_warnings_are_errors.
15714 (diagnostic_finish): New.
15715 (diagnostic_action_after_output): Call it before exiting.
15716 (diagnostic_report_diagnostic): Do not print message here. Set
15717 some_warnings_are_errors.
15718 * diagnostic.h (diagnostic_context): Delete
15719 issue_warnings_are_errors_message. Add some_warnings_are_errors.
15720 (diagnostic_finish): Declare.
15721 * toplev.c (toplev_main): Call it before exit.
15723 2010-04-09 Jason Merrill <jason@redhat.com>
15726 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
15727 for incomplete type.
15730 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
15731 based on a warning flag.
15733 2010-04-09 Richard Guenther <rguenther@suse.de>
15735 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
15737 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
15740 * varasm.c (default_assemble_visibility): Wrap vars that are
15741 set, but unused, by targets without GAS.
15742 * config/rs6000/rs6000.c (paired_emit_vector_compare):
15743 Remove set, but unused, vars.
15744 (rs6000_legitimize_tls_address): Likewise.
15745 (altivec_expand_dst_builtin): Likewise.
15746 * config/darwin.c (machopic_classify_symbol): Likewise.
15747 (machopic_indirection_name): Likewise.
15749 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
15751 * config/i386/i386.md (DWI): New mode iterator.
15752 (S): New mode attribute.
15753 (shift_operand): Ditto.
15754 (shift_immediate_operand): Ditto.
15755 (ashl_input_operand): Ditto.
15756 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
15757 using SDWIM mode iterator.
15758 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
15759 pattern from *ashl{di,ti}3_1 and corresponding splitters using
15761 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
15762 from corresponding peephole2 patterns.
15763 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
15764 and x86_64_shift_adj_1 using SWI48 mode iterator.
15765 (x86_shift<mode>_adj_2): Ditto.
15766 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
15767 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
15768 using SWI48 mode iterator.
15769 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
15770 *ashldi3_cmp_rex64 using SWI mode iterator.
15771 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
15772 *ashldi3_cconly_rex64 using SWI mode iterator.
15773 * config/i386/i386.c (ix86_split_ashl): Update for renamed
15774 x86_shift<mode>_adj_{1,2}.
15775 (ix86_split_ashr): Ditto.
15776 (ix86_split_lshr): Ditto.
15778 2010-04-09 Richard Guenther <rguenther@suse.de>
15780 * target.h (builtin_conversion): Pass in input and output types.
15781 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
15782 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
15783 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
15784 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
15786 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
15788 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
15790 2010-04-09 Richard Guenther <rguenther@suse.de>
15793 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
15795 2010-04-09 Richard Guenther <rguenther@suse.de>
15797 * tree-vectorizer.h (struct _stmt_vec_info): Document
15798 that vectype is the type of the LHS.
15799 (supportable_widening_operation, supportable_narrowing_operation):
15800 Get both input and output vector types as arguments.
15801 (vect_is_simple_use_1): Declare.
15802 (get_same_sized_vectype): Likewise.
15803 * tree-vect-loop.c (vect_determine_vectorization_factor):
15804 Set STMT_VINFO_VECTYPE to the vector type of the def.
15805 (vectorizable_reduction): Adjust.
15806 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
15807 Adjust. Specify the output vector type.
15808 (vect_pattern_recog_1): Adjust.
15809 * tree-vect-stmts.c (get_same_sized_vectype): New function.
15810 (vectorizable_call): Adjust.
15811 (vectorizable_conversion): Likewise.
15812 (vectorizable_operation): Likewise.
15813 (vectorizable_type_demotion): Likewise.
15814 (vectorizable_type_promotion): Likewise.
15815 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
15817 (vect_is_simple_use_1): New function.
15818 (supportable_widening_operation): Get both input and output
15820 (supportable_narrowing_operation): Likewise.
15821 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
15823 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
15825 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
15826 __thiscall and _thiscall as predefined macros.
15827 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
15828 thiscall attribute handling.
15829 (ix86_comp_type_attributes): Likewise.
15830 (ix86_function_regparm): Likewise.
15831 (ix86_return_pops_args): Likewise.
15832 (init_cumulative_args): Likewise.
15833 (find_drap_reg): Likewise.
15834 (ix86_static_chain): Likewise.
15835 (x86_this_parameter): Likewise.
15836 (x86_output_mi_thunk): Likewise.
15837 (ix86_attribute_table): Add description for thiscall attribute.
15838 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
15839 * doc/extend.texi: Add documentation for thiscall.
15841 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15844 * c.opt (Wint-to-pointer-cast): Available in C++.
15845 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
15847 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
15849 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
15850 * calls.c (expand_call): Pass the function type to aggregate_value_p.
15851 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
15852 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
15853 function type instead. Reorder and simplify checks.
15855 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
15857 2010-04-08 Jing Yu <jingyu@google.com>
15858 Zdenek Dvorak <ook@ucw.cz>
15860 PR tree-optimization/42720
15861 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
15862 loop unswitch conditions here from ...
15863 (tree_unswitch_single_loop): ... here.
15865 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
15867 * tree-if-conv.c: Fix comments and simplify logic.
15869 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
15871 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
15872 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
15873 (main_tree_if_conversion): Update call to tree_if_conversion.
15875 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15878 * doc/invoke.texi (-b,-V): Delete.
15879 * doc/tm.texi: Do not mention -b.
15880 * gcc.c (display_help): Delete -b and -V.
15881 (process_command): Delete -b and -V.
15882 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
15884 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
15885 Wolfgang Gellerich <gellerich@de.ibm.com>
15887 Implement target hook for loop unrolling
15888 * target.h (loop_unroll_adjust): Add a new target hook function.
15889 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
15890 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
15891 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
15892 (s390_loop_unroll_adjust): Implement the new target hook for s390.
15893 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
15895 (decide_unroll_stupid): Likewise.
15897 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15900 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
15902 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15904 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
15905 (Specific, *-*-solaris2*): Likewise.
15906 Don't prefer Sun as over GNU as.
15908 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
15910 * config/s390/s390.c (override_options): Adjust the z10 defaults
15911 for max-unroll-times, max-completely-peeled-insns
15912 and max-completely-peel-times.
15914 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15916 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
15917 instructions for z10.
15918 (s390_expand_setmem): Likewise.
15919 (s390_expand_cmpmem): Likewise.
15921 2010-04-08 Richard Guenther <rguenther@suse.de>
15923 PR tree-optimization/43679
15924 * tree-ssa-pre.c (eliminate): Only propagate copies.
15926 2010-04-08 Jakub Jelinek <jakub@redhat.com>
15929 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
15930 set but not used variable warning.
15932 2010-04-08 Wei Guozhi <carrot@google.com>
15935 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
15936 (arm_size_rtx_costs): Call the new function when optimized for size.
15938 2010-04-08 Jakub Jelinek <jakub@redhat.com>
15941 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
15942 op0 is not a MEM, just return NULL instead of assertion
15944 (discover_nonconstant_array_refs): Don't walk debug stmts.
15946 2010-04-08 Doug Kwan <dougkwan@google.com>
15948 * configure.ac: Recognize gold and do not use its version number
15949 to test ld features.
15950 * configure: Regenerate.
15952 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
15954 PR middle-end/40815
15955 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
15956 (negate_value): Move code to push elements to broken_up_substracts ...
15957 (eliminate_plus_minus_pair): ... here. Push operands that have no
15958 negative pair to plus_negates.
15959 (repropagate_negates, init_reassoc, fini_reassoc): Update.
15961 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15963 * doc/install.texi (Configuration): Move description of
15964 --enable-lto, --with-libelf*, --enable-gold from Java section to
15967 * doc/generic.texi (Working with declarations)
15968 (Function Properties, C and C++ Trees): Fix typos.
15969 * doc/sourcebuild.texi (Top Level): Likewise.
15971 2010-04-07 Jakub Jelinek <jakub@redhat.com>
15974 * tree.h (DECL_READ_P): Define.
15975 (struct tree_decl_common): Add decl_read_flag.
15976 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
15977 a set but not used warning.
15978 (merge_decls): Merge DECL_READ_P flag.
15979 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
15980 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
15981 * c-common.c (handle_used_attribute, handle_unused_attribute):
15983 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
15985 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
15987 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
15988 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
15989 c_parser_binary_expression, c_parser_cast_expression,
15990 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
15991 Call default_function_array_read_conversion instead of
15992 default_function_array_conversion where needed.
15993 (c_parser_unary_expression, c_parser_conditional_expression,
15994 c_parser_postfix_expression_after_primary, c_parser_initelt):
15995 Likewise. Call mark_exp_read where needed.
15996 (c_parser_statement_after_labels, c_parser_asm_operands,
15997 c_parser_typeof_specifier, c_parser_sizeof_expression,
15998 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
16000 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
16002 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
16003 (warn_unused_but_set_parameter): Default to warn_unused
16005 * doc/invoke.texi: Document -Wunused-but-set-variable and
16006 -Wunused-but-set-parameter.
16008 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
16009 used count variable.
16010 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
16011 when operandN variables aren't used in the body of the expander
16013 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
16014 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
16015 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
16016 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
16017 FOR_EACH_IMM_USE_ON_STMT): Likewise.
16018 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
16019 * tree.c (PROCESS_ARG): Likewise.
16021 2010-04-07 Simon Baldwin <simonb@google.com>
16023 * diagnostic.h (diagnostic_override_option_index): New macro to
16024 set a diagnostic's option_index.
16025 * c-tree.h (c_cpp_error): Add warning reason argument.
16026 * opts.c (_warning_as_error_callback): New.
16027 (register_warning_as_error_callback): Store callback for
16028 warnings enabled via enable_warning_as_error.
16029 (enable_warning_as_error): Call callback, minor code tidy.
16030 * opts.h (register_warning_as_error_callback): Declare.
16031 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
16032 response to -Werror=.
16033 (c_common_init_options): Register warning_as_error_callback in opts.c.
16034 * common.opt: Add -Wno-cpp option.
16035 * c-common.c (struct reason_option_codes_t): Map cpp warning
16036 reason codes to gcc option indexes.
16037 * (c_option_controlling_cpp_error): New function, lookup the gcc
16038 option index for a cpp warning reason code.
16039 * (c_cpp_error): Add warning reason argument, call
16040 c_option_controlling_cpp_error for diagnostic_override_option_index.
16041 * doc/invoke.texi: Document -Wno-cpp.
16043 2010-04-07 Richard Guenther <rguenther@suse.de>
16045 * ipa-reference.c (mark_load): Use get_base_address.
16046 (mark_store): Likewise.
16048 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
16049 inserting GIMPLE_NOPs into the IL.
16050 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16051 Explicitly strip handled components and indirect references.
16053 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
16054 folding address expressions.
16055 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
16056 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
16057 operand_equal_p to compare decls.
16058 (ptr_deref_may_alias_decl_p): Likewise.
16059 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
16060 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
16061 Handle reversed comparison ops.
16062 * tree-sra.c (asm_visit_addr): Use get_base_address.
16063 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
16064 * ipa-reference.c (mark_address): Use get_base_address.
16066 2010-04-07 Richard Guenther <rguenther@suse.de>
16068 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
16069 Propagate constants everywhere.
16071 2010-04-07 Jakub Jelinek <jakub@redhat.com>
16074 * tree.c (MAX_INT_CACHED_PREC): Define.
16075 (nonstandard_integer_type_cache): New array.
16076 (build_nonstandard_integer_type): Cache results for precision
16077 <= MAX_INT_CACHED_PREC.
16079 2010-04-07 Richard Guenther <rguenther@suse.de>
16081 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
16082 -fargument-noalias-global, -fargument-noalias-anything): Remove.
16083 * common.opt: Likewise.
16084 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
16085 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
16086 (nonoverlapping_memrefs_p): Likewise.
16087 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16088 * opts.c (common_handle_option): Handle OPT_fargument_alias,
16089 OPT_fargument_noalias, OPT_fargument_noalias_anything and
16090 OPT_fargument_noalias_global for backward compatibility.
16092 2010-04-07 Richard Guenther <rguenther@suse.de>
16094 PR tree-optimization/43270
16095 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
16096 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
16097 * tree-ssa-pre.c (phi_translate_1): Adjust.
16098 (fully_constant_expression): Split out vn_reference handling to ...
16099 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
16100 Fold reads from constant strings.
16101 (vn_reference_lookup): Handle fully constant references.
16102 (vn_reference_lookup_pieces): Likewise.
16103 * Makefile.in (expmed.o-warn): Add -Wno-error.
16105 2010-04-07 Martin Jambor <mjambor@suse.cz>
16107 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
16109 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
16112 * gcc.c: Add -static-libstdc++ to list of recognized options.
16114 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16116 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
16118 2010-04-07 Richard Guenther <rguenther@suse.de>
16120 PR middle-end/42617
16121 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
16122 bases build simple mem attributes to retain points-to information.
16124 2010-04-07 Richard Guenther <rguenther@suse.de>
16126 PR middle-end/42617
16127 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
16128 preserve points-to related information.
16130 2010-04-07 Richard Guenther <rguenther@suse.de>
16132 PR middle-end/42617
16133 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
16134 discard plain indirect references.
16135 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
16136 * tree.c (tree_nop_conversion): Likewise.
16138 2010-04-07 Dodji Seketeli <dodji@redhat.com>
16141 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
16143 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
16145 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
16146 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
16148 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
16150 * tree-if-conv.c: Fix indentation and comments.
16152 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
16154 * tree-if-conv.c: Sort static functions in topological order.
16156 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
16158 * tree-if-conv.c: Fix indentation and comments.
16160 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16162 PR middle-end/43519
16163 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
16164 lang_hooks.types.type_for_size instead of
16165 build_nonstandard_integer_type.
16166 When converting an unsigned type to signed, double its precision.
16167 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
16168 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
16169 (graphite_create_new_loop_guard): When ub + 1 wraps around,
16172 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16174 PR middle-end/43519
16175 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16176 POINTER_PLUS_EXPR for pointer types.
16178 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16180 PR middle-end/43519
16181 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
16182 * graphite-clast-to-gimple.c: Include langhooks.h.
16183 (max_signed_precision_type): New.
16184 (max_precision_type): Takes two types as arguments.
16185 (precision_for_value): New.
16186 (precision_for_interval): New.
16187 (gcc_type_for_interval): New.
16188 (gcc_type_for_value): New.
16189 (gcc_type_for_clast_term): New.
16190 (gcc_type_for_clast_red): New.
16191 (gcc_type_for_clast_bin): New.
16192 (gcc_type_for_clast_expr): Split up into several functions.
16193 (gcc_type_for_clast_eq): Rewritten.
16194 (compute_bounds_for_level): New.
16195 (compute_type_for_level_1): New.
16196 (compute_type_for_level): New.
16197 (gcc_type_for_cloog_iv): Removed.
16198 (gcc_type_for_iv_of_clast_loop): Rewritten.
16199 (graphite_create_new_loop): Compute the lower and upper bound types
16200 with gcc_type_for_clast_expr.
16201 (graphite_create_new_loop_guard): Same.
16202 (find_cloog_iv_in_expr): Removed.
16203 (compute_cloog_iv_types_1): Removed.
16204 (compute_cloog_iv_types): Removed.
16205 (gloog): Do not call compute_cloog_iv_types.
16206 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
16207 GBB_CLOOG_IV_TYPES.
16208 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
16209 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
16210 (GBB_CLOOG_IV_TYPES): Removed.
16212 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16214 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
16215 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
16216 (detect_commutative_reduction): Same.
16218 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16220 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
16221 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
16223 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
16224 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
16225 (rewrite_commutative_reductions_out_of_ssa): Same.
16226 * passes.c (execute_function_todo): Call verify_ssa for every pass
16227 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
16228 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
16229 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
16230 with an extra argument.
16231 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
16232 verify_ssa only when the extra argument is true.
16233 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
16234 with an extra argument.
16235 (tree_transform_and_unroll_loop): Same.
16237 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
16239 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
16240 for all the passes of the LNO having LOOP_CLOSED_SSA.
16241 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
16242 * tree-loop-distribution.c (pass_loop_distribution): Same.
16243 * tree-pass.h (TODO_verify_loops): Removed.
16244 * tree-ssa-loop.c (pass_tree_loop_init): Same.
16246 (pass_tree_unswitch): Same.
16247 (pass_predcom): Same.
16248 (pass_vectorize): Same.
16249 (pass_linear_transform): Same.
16250 (pass_graphite_transforms): Same.
16251 (pass_iv_canon): Same.
16252 (pass_complete_unroll): Same.
16253 (pass_complete_unrolli): Same.
16254 (pass_parallelize_loops): Same.
16255 (pass_loop_prefetch): Same.
16256 (pass_iv_optimize): Same.
16258 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
16260 PR middle-end/32824
16261 * passes.c (init_optimization_passes): Move pass_lim before
16262 pass_copy_prop and pass_dce_loop.
16264 2010-04-06 Jakub Jelinek <jakub@redhat.com>
16267 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
16268 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
16269 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
16270 MULTI_* defines for 4 argument vpermil2p* builtins.
16272 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
16274 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
16275 * config/i386/i386.c (x86_maybe_negate_const_int): New.
16276 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
16277 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
16278 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
16279 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
16280 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
16281 Use x86_maybe_negate_const_int to output insn mnemonic.
16282 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
16283 check from instruction predicate. Update comments.
16284 * config/i386/sync.md (sync_add<mode>): Use
16285 x86_maybe_negate_const_int to output insn mnemonic.
16287 2010-04-06 Jan Hubicka <jh@suse.cz>
16289 PR tree-optimization/42906
16290 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
16291 IGNORE_SELF argument. Set visited_control_parents for fully
16293 (find_obviously_necessary_stmts): Update call of
16294 mark_control_dependent_edges_necessary.
16295 (propagate_necessity): Likewise. Handle PHI edges more curefully.
16297 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
16299 * config/i386/i386.md: Remove comment about 'e' and 'E'
16302 2010-04-06 Richard Guenther <rguenther@suse.de>
16304 PR tree-optimization/43627
16305 * tree-vrp.c (extract_range_from_unary_expr): Widenings
16306 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
16309 2010-04-06 Jakub Jelinek <jakub@redhat.com>
16311 * BASE-VER: Change to 4.6.0.
16314 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
16317 2010-04-06 Richard Guenther <rguenther@suse.de>
16319 PR middle-end/43661
16320 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
16322 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16324 * doc/invoke.texi (Optimize Options): Document that LTO
16325 won't remove object access purely due to incompatible
16328 2010-04-04 Matthias Klose <doko@ubuntu.com>
16330 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
16331 Initialize variable.
16333 2010-04-03 Richard Guenther <rguenther@suse.de>
16335 PR middle-end/42509
16336 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
16337 require a non-NULL MEM_OFFSET.
16339 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
16341 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
16342 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
16343 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
16344 config/alpha/predicates.md, config/arm/arm.md,
16345 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
16346 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
16347 config/darwin9.h, config/darwin.c, config/darwin.h,
16348 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
16349 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
16350 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
16351 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
16352 config/mips/mips.md, config/mn10300/mn10300.c,
16353 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
16354 config/rs6000/aix.h, config/rs6000/dfp.md,
16355 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
16356 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
16357 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
16358 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
16359 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
16360 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
16361 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
16362 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
16363 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
16364 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
16365 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
16366 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
16367 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
16368 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
16369 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
16370 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
16371 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
16372 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
16373 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
16374 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
16375 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
16376 opt-functions.awk, opth-gen.awk, params.def, passes.c,
16377 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
16378 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
16379 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
16380 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
16381 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
16382 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
16383 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
16384 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
16385 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
16386 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16387 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
16388 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
16389 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
16390 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
16392 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16395 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
16396 * aclocal.m4: Regenerate.
16398 2010-04-02 Richard Guenther <rguenther@suse.de>
16400 PR tree-optimization/43629
16401 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
16402 if we have seen a constant value.
16404 2010-04-02 Joseph Myers <joseph@codesourcery.com>
16406 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
16408 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
16411 * arm.c (legitimize_tls_address): Adjust call to
16412 gen_tls_load_dot_plus_four.
16413 (arm_note_pic_base): New function.
16414 (arm_cannot_copy_insn_p): Use it.
16415 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
16418 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16423 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16425 * Makefile.in ($(out_object_file)): Depend on
16426 gt-$(basename $(notdir $(out_file))).h.
16428 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
16430 * config.gcc (lm32-*-rtems*): Add t-lm32.
16432 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
16434 * config.gcc: Add lm32-*-rtems*.
16435 * config/lm32/rtems.h: New file.
16437 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
16440 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
16442 2010-04-01 Jakub Jelinek <jakub@redhat.com>
16444 * dwarf2out.c (output_compilation_unit_header): For
16445 -gdwarf-4 use version 4 instead of version 3.
16446 (output_line_info): For version 4 and above emit additional
16447 maximum ops per insn header field.
16448 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
16450 * dwarf2out.c (is_c_family, is_java): Remove.
16451 (lower_bound_default): New function.
16452 (add_bound_info, gen_descr_array_type_die): Use it.
16454 2010-04-01 Dodji Seketeli <dodji@redhat.com>
16457 * dwarf2out.c (gen_variable_die): Allow debug info for variable
16458 re-declaration when it happens in a function.
16460 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
16462 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
16463 (cgraph_remove_function_insertion_hook): Same.
16464 (cgraph_call_function_insertion_hooks): Same.
16466 2010-04-01 Richard Guenther <rguenther@suse.de>
16468 PR middle-end/43614
16469 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
16470 and TREE_THIS_VOLATILE.
16471 (copy_ref_info): Likewise.
16472 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
16473 * tree.c (build6_stat): Ignore side-effects of all but arg5
16474 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
16477 2010-04-01 Richard Guenther <rguenther@suse.de>
16479 PR tree-optimization/43607
16480 * ipa-type-escape.c (check_call): Do not access non-existing
16483 2010-04-01 Richard Guenther <rguenther@suse.de>
16485 PR middle-end/43602
16487 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
16488 Jack Howarth <howarth@bromo.med.uc.edu>
16490 * tree-profile.c (tree_init_ic_make_global_vars): Make static
16493 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16495 * doc/install.texi (Prerequisites): Document libelf usability on
16496 IRIX 5/6 and Solaris 2.
16497 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
16498 Update GNU as, GNU ld requirements.
16499 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
16500 Document Sun Studio compiler download.
16501 Update and simplify as, ld recommendations.
16502 (Specific, *-*-solaris2.7): Note obsoletion, removal.
16504 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16506 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
16507 with_tune_32 to pentium4.
16509 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
16511 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
16513 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16515 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
16516 obsoletion, removal.
16518 Document GNU as requirement.
16519 Update configure requirements.
16520 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
16521 Recomment IRIX 6.5.18+.
16522 Document IDF/IDL requirement.
16523 Document GNU as requirement.
16524 Document GNU ld bootstrap failure.
16525 Remove freeware.sgi.com reference.
16527 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16529 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
16530 UNIX V4.0, V5.0 obsoletion, removal.
16531 Remove --with-gc=simple reference.
16532 Update VM requirements during bootstrap.
16533 Remove -oldas bootstrap description.
16534 Update binutils reference.
16535 Remove comparison failure note.
16537 2010-03-31 Richard Guenther <rguenther@suse.de>
16538 Zdenek Dvorak <ook@ucw.cz>
16539 Sebastian Pop <sebastian.pop@amd.com>
16541 PR middle-end/43464
16542 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
16543 with multiple arguments.
16544 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
16546 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
16548 * graphite-dependences.c (print_pddr): Call print_pdr with an
16550 * graphite-poly.c (debug_pdr): Add an extra argument for the
16553 (print_pbb_domain): Same.
16555 (print_scop_context): Same.
16556 (print_scop): Same.
16557 (print_cloog): Same.
16558 (debug_pbb_domain): Same.
16560 (print_pdrs): Same.
16561 (debug_pdrs): Same.
16562 (debug_scop_context): Same.
16563 (debug_scop): Same.
16564 (debug_cloog): Same.
16565 (print_scop_params): Same.
16566 (debug_scop_params): Same.
16567 (print_iteration_domain): Same.
16568 (print_iteration_domains): Same.
16569 (debug_iteration_domain): Same.
16570 (debug_iteration_domains): Same.
16571 (print_scattering_function): Same.
16572 (print_scattering_functions): Same.
16573 (debug_scattering_function): Same.
16574 (debug_scattering_functions): Same.
16575 * graphite-poly.h (debug_pdr): Update declaration.
16577 (print_pbb_domain): Same.
16579 (print_scop_context): Same.
16580 (print_scop): Same.
16581 (print_cloog): Same.
16582 (debug_pbb_domain): Same.
16584 (print_pdrs): Same.
16585 (debug_pdrs): Same.
16586 (debug_scop_context): Same.
16587 (debug_scop): Same.
16588 (debug_cloog): Same.
16589 (print_scop_params): Same.
16590 (debug_scop_params): Same.
16591 (print_iteration_domain): Same.
16592 (print_iteration_domains): Same.
16593 (debug_iteration_domain): Same.
16594 (debug_iteration_domains): Same.
16595 (print_scattering_function): Same.
16596 (print_scattering_functions): Same.
16597 (debug_scattering_function): Same.
16598 (debug_scattering_functions): Same.
16600 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
16602 * graphite-poly.c (print_scattering_function_1): New.
16603 (print_scattering_function): Call it.
16604 (print_scop_params): Remove spaces at the end of lines.
16605 (print_cloog): New.
16606 (debug_cloog): New.
16607 * graphite-poly.h (print_cloog): Declared.
16608 (debug_cloog): Declared.
16610 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
16612 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
16614 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
16615 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
16616 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
16617 to switch between adding the IV bump in loop->latch or in loop->header.
16619 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
16621 * graphite-poly.c (print_scattering_function): Pretty print following
16622 the scoplib format.
16624 (print_pbb_domain): Same.
16625 (dump_gbb_cases): Same.
16626 (dump_gbb_conditions): Same.
16627 (print_pdrs): Same.
16629 (print_scop_params): Same.
16630 (print_scop_context): Same.
16631 (print_scop): Same.
16632 (print_pbb_body): New.
16633 (lst_indent_to): New.
16634 (print_lst): Start new lines with a #.
16635 * graphite-poly.h (pbb_bb): New.
16636 (pbb_index): Use pbb_bb.
16637 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
16639 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
16641 2010-03-31 Jakub Jelinek <jakub@redhat.com>
16643 * dwarf2out.c (size_of_die): For -gdwarf-4 use
16644 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
16645 and 0 instead of 1 for dw_val_class_flag.
16646 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
16647 dw_val_class_range_list, dw_val_class_loc_list,
16648 dw_val_class_lineptr and dw_val_class_macptr, use
16649 DW_FORM_flag_present for dw_val_class_flag and
16650 DW_FORM_exprloc for dw_val_class_loc.
16651 (output_die): For -gdwarf-4 print dw_val_class_loc
16652 size as uleb128 instead of 1 or 2 bytes and don't print
16653 anything for dw_val_class_flag.
16655 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
16656 instead of cselib_lookup following by tweaking locs->setting_insn.
16659 * cselib.c (cselib_process_insn): Clear cselib_current_insn
16660 even before returning from label, setjmp call or volatile asm
16663 2010-03-31 Richard Guenther <rguenther@suse.de>
16665 PR middle-end/43600
16666 * cgraphunit.c (cgraph_output_in_order): Do not allocate
16667 temporary data on stack.
16669 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16671 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
16672 (PUSHSECTION_ASM_OP): Remove.
16673 (POPSECTION_ASM_OP): Remove.
16674 (PUSHSECTION_FORMAT): Remove.
16675 * config/sol2.h (PUSHSECTION_FORMAT): Define.
16676 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
16677 * config/sol2.c (solaris_output_init_fini): Use it.
16679 2010-03-31 Jie Zhang <jie@codesourcery.com>
16682 * opt-functions.awk (var_type_struct): Use signed char type
16683 for simple variables.
16685 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16687 * config/sol2.c: Include output.h.
16688 (solaris_assemble_visibility): New function.
16689 * config/t-sol2 (sol2.o): Add output.h dependency.
16690 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
16691 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
16694 2010-03-31 Jakub Jelinek <jakub@redhat.com>
16697 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
16698 V2SImode or XFmode on PRE_DEC.
16701 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
16704 2010-03-31 Jie Zhang <jie@codesourcery.com>
16707 * reload.h (caller_save_initialized_p): Declare.
16708 * toplev.c (backend_init_target): Don't call
16709 init_caller_save but set caller_save_initialized_p to false.
16710 * caller-save.c (caller_save_initialized_p): Define.
16711 (init_caller_save): Check caller_save_initialized_p.
16712 * ira.c (ira): Call init_caller_save if flag_caller_saves.
16714 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16717 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
16718 and soft-fp/t-softfp to tmake_file.
16719 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
16720 (LIBGCC2_TF_CEXT): Define.
16723 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
16726 * cselib.c (n_useless_values): Document handling of debug locs.
16727 (n_useless_debug_values, n_debug_values): New variables.
16728 (new_elt_loc_list): Don't add to debug values, keep count.
16729 (promote_debug_loc): New.
16730 (cselib_reset_table): Zero new variables.
16731 (entry_and_rtx_equal_p): Promote debug locs.
16732 (discard_useless_locs): Increment n_useless_debug_values for
16734 (remove_useless_values): Adjust n_useless_values and n_debug_values
16735 with n_useless_debug_values.
16736 (add_mem_for_addr): Promote debug locs.
16737 (cselib_lookup_mem): Likewise.
16738 (cselib_lookup_addr): Renamed to...
16739 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
16740 (cselib_log_lookup): ... this. Turn into...
16741 (cselib_lookup_addr): ... new wrapper.
16742 (cselib_lookup_from_insn): New.
16743 (cselib_invalidate_regno): Increment n_useless_debug_values for
16745 (cselib_invalidate_mem): Likewise.
16746 (cselib_process_insn): Take n_deleted and n_debug_values into
16747 account to guard remove_useless_value call.
16748 (cselib_finish): Zero n_useless_debug_values.
16749 * cselib.h (cselib_lookup_from_insn): Declare.
16750 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
16751 (sched_analyze_2): Likewise.
16753 2010-03-30 Jakub Jelinek <jakub@redhat.com>
16755 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
16757 (adjust_mems): Replace narrowing SUBREG of expression containing
16758 just PLUS, MINUS, MULT and ASHIFT of registers and constants
16759 with operations in the narrower mode.
16762 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
16763 regs_invalidated_by_call instead all call_used_reg_set registers.
16765 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
16767 PR middle-end/43430
16768 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
16769 pointer comparisons with types_compatible_p.
16770 * tree-vect-stmts.c (vectorizable_call): Same.
16771 (vectorizable_condition): Same.
16773 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16775 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
16776 stack check if the mask would be zero.
16778 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
16779 Jack Howarth <howarth@bromo.med.uc.edu>
16781 * tree-profile.c (tree_init_ic_make_global_vars): Make static
16784 2010-03-30 Joseph Myers <joseph@codesourcery.com>
16787 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
16789 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
16790 Include ___unordxf2 and ___unordtf2.
16791 * config/i386/libgcc-glibc.ver: Do not define inheritance from
16794 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
16796 * config/lm32/t-lm32: New file.
16797 * config.gcc: Use the above file when targetting lm32.
16799 2010-03-28 Duncan Sands <baldrick@free.fr>
16801 * Makefile.in (PLUGIN_HEADERS): Add except.h.
16803 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
16805 PR middle-end/43431
16806 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16807 Improve vectorization cost model diagnostic.
16809 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
16811 PR middle-end/43436
16812 * tree-vect-data-refs.c (vect_analyze_data_refs): When
16813 compute_data_dependences_for_loop returns false, early exit
16814 and output an extra diagnostic for the failed data reference
16817 2010-03-29 Richard Guenther <rguenther@suse.de>
16819 PR tree-optimization/43560
16820 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
16821 (can_sm_ref_p): Treat stores to readonly locations as trapping.
16823 2010-03-29 Jie Zhang <jie@codesourcery.com>
16826 * toplev.c (process_options): Set optimization_default_node
16827 and optimization_current_node.
16828 * opts.c (decode_options): Don't set optimization_default_node
16829 and optimization_current_node.
16831 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
16833 * config/rtems.h: Abandon -qrtems_debug.
16835 2010-03-28 Jan Hubicka <jh@suse.cz>
16837 PR tree-optimization/43505
16838 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
16839 map should not be copied.
16841 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16843 PR middle-end/41674
16844 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
16845 cdtors, set DECL_PRESERVE_P.
16846 * ipa.c (cgraph_externally_visible_p): Return true if declaration
16847 should be preseved.
16849 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
16851 PR tree-optimization/43528
16852 * stor-layout.c (place_field): Check that constant fits into
16853 unsigned HWI when skipping calculation of MS bitfield layout.
16855 2010-03-27 Jan Hubicka <jh@suse.cz>
16857 PR middle-end/43391
16858 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
16859 notice_global_symbol work.
16861 2010-03-27 Jakub Jelinek <jakub@redhat.com>
16863 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
16864 instead of dwarf2out_decl.
16865 (struct var_loc_node): Remove section_label field.
16866 (dwarf2out_function_decl): New function.
16867 (dwarf2out_var_location): Don't set section_label field.
16868 (dwarf2out_begin_function): Don't empty decl_loc_table here.
16870 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16872 PR tree-optimization/43544
16873 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16874 First argument for builtin vectorized function hook is now a
16875 tree to be able to distinguish between machine specific and
16877 * targhooks.c (default_builtin_vectorized_function): Ditto.
16878 * targhooks.h (default_builtin_vectorized_function): Ditto.
16879 * target.h (struct gcc_target): Ditto.
16880 * tree-vect-stmts.c (vectorizable_function): Ditto.
16881 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
16882 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
16885 2010-03-26 Joseph Myers <joseph@codesourcery.com>
16888 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
16889 nested binding iff it is a FUNCTION_DECL.
16890 (store_parm_decls_newstyle): Pass nested=true to bind for
16891 FUNCTION_DECLs amongst parameters.
16893 2010-03-26 Jakub Jelinek <jakub@redhat.com>
16895 * var-tracking.c (vt_expand_loc_callback): Don't run
16896 cselib_expand_value_rtx_cb in dummy mode if
16897 cselib_dummy_expand_value_rtx_cb returned false.
16899 * var-tracking.c (emit_note_insn_var_location): For one part
16900 notes with offset 0, don't add EXPR_LIST around the location.
16901 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
16902 add_location_or_const_value_attribute): Adjust for that change.
16905 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
16906 into first operand and location into second.
16907 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
16908 dw_cfi_oprnd_loc for DW_CFA_expression.
16909 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
16910 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
16911 assume first argument is regnum and second argument is location.
16913 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
16916 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
16917 of scratch register to DImode. Split to DImode comparison operator.
16918 Use SImode subreg of scratch register in the multiplication.
16919 (*cmp_sadd_sidi): Ditto.
16920 (*cmp_ssub_si): Ditto.
16921 (*cmp_ssub_sidi): Ditto.
16923 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
16926 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
16927 Remove invalid assert and wrong comment.
16929 2010-03-26 Jakub Jelinek <jakub@redhat.com>
16932 * flags.h (final_insns_dump_p): New extern.
16933 * final.c (final_insns_dump_p): New variable.
16934 (rest_of_clean_state): Set it before -fdump-final-insns=
16935 dumping, clear afterwards.
16936 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
16937 MEM_ALIAS_SET on MEMs.
16939 2010-03-26 David S. Miller <davem@davemloft.net>
16941 * configure.ac: Fix sparc GOTDATA_OP bug check.
16942 * configure: Rebuild.
16944 2010-03-26 Alan Modra <amodra@gmail.com>
16946 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
16948 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16950 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
16951 TLS_SECTION_ASM_FLAG.
16953 2010-03-25 Jakub Jelinek <jakub@redhat.com>
16956 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
16957 Clear first_function_block_is_cold.
16960 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
16961 argument if the argument is truth_value_p.
16963 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16965 * config/rs6000/constraints.md: Update copyright year for my changes.
16968 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
16969 used in reg+reg addressing, swap registers.
16971 2010-03-24 Jakub Jelinek <jakub@redhat.com>
16974 * target.h (struct gcc_target): Add code_end hook.
16975 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
16976 if not yet defined.
16977 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
16978 * toplev.c (compile_file): Call targetm.asm_out.code_end
16979 hook before unwind info/debug info output.
16980 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
16981 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
16982 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16983 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
16984 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
16985 * config/i386/i386.c (ix86_file_end): Renamed to...
16986 (ix86_code_end): ... this. Make static. Don't call
16987 file_end_indicate_exec_stack. Emit unwind info using
16988 final_start_function/final_end_function.
16989 (darwin_x86_file_end): Remove.
16990 (TARGET_ASM_CODE_END): Define.
16991 * config/i386/i386.h (TARGET_ASM_FILE_END,
16992 NEED_INDICATE_EXEC_STACK): Don't define.
16993 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
16994 (TARGET_ASM_FILE_END): Define to darwin_file_end.
16995 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
16996 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
16999 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
17000 at the beginning and final_end_function at the end.
17001 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17003 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17005 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
17006 and Sun as TLS syntax.
17007 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
17008 * configure: Regenerate.
17009 * config.in: Regenerate.
17010 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
17011 (default_elf_asm_named_section): Use it.
17012 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
17013 (i386_output_dwarf_dtprel): Likewise.
17014 (output_addr_const_extra): Likewise.
17015 (output_pic_addr_const): Lowercase @GOTTPOFF.
17016 (output_addr_const_extra): Likewise.
17017 (output_pic_addr_const): Lowercase @GOTNTPOFF.
17018 (output_addr_const_extra): Likewise.
17019 (output_pic_addr_const): Lowercase @INDNTPOFF.
17020 (output_addr_const_extra): Likewise.
17021 (output_pic_addr_const): Lowercase @NTPOFF.
17022 (output_addr_const_extra): Likewise.
17023 (output_pic_addr_const): Lowercase @TPOFF.
17024 (output_addr_const_extra): Likewise.
17025 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
17026 (*tls_global_dynamic_64): Likewise.
17027 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
17028 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
17030 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
17031 (ASM_OUTPUT_TLS_COMMON): Use it.
17032 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
17035 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
17036 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17037 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
17038 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
17039 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
17040 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
17042 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17044 * config/i386/i386.c (override_options): Don't accept
17045 -mtls-dialect=sun any longer.
17046 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
17047 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
17048 (*tls_local_dynamic_base_32_sun): Likewise.
17049 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
17051 2010-03-24 Jakub Jelinek <jakub@redhat.com>
17054 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17055 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
17058 * ira.c (adjust_cleared_regs): New function.
17059 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
17063 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
17065 * expr.c (expand_expr_real): Restore previous
17066 curr_insn_source_location and curr_insn_block after
17067 expand_expr_real_1 call.
17068 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
17069 instead of expand_expr_real_1.
17071 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
17073 PR rtl-optimization/43413
17074 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
17077 2010-03-22 James E. Wilson <wilson@codesourcery.com>
17080 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
17081 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
17083 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
17085 * config/i386/i386.c (ix86_target_string): Add -mfma.
17086 Fix a typo in comment.
17088 2010-03-22 Mike Stump <mikestump@comcast.net>
17091 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
17092 Don't overly align based upon packed packed fields.
17094 2010-03-22 Jason Merrill <jason@redhat.com>
17096 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
17097 Use () rather than [], and move before the element type.
17099 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17101 * doc/configfiles.texi (Configuration Files): Removed
17102 fixinc/Makefile*, intl/Makefile.*.
17103 * doc/makefile.texi: Fixed markup. Abstract from version
17104 control system used.
17105 (Makefile): Removed obsolete gcc/java/parse.y example.
17106 * doc/sourcebuild.texi: Likewise.
17107 (Top Level): Added config, gnattools, libdecnumber, libgcc,
17108 libgomp, libssp. Removed fastjar.
17109 (Miscellaneous Docs): Clarify location.
17110 Added COPYING3, COPYING3.LIB.
17111 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
17113 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17116 * config/i386/i386.c (x86_function_profiler)
17117 [!NO_PROFILE_COUNTERS]: Fix typo.
17118 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
17121 2010-03-22 Janis Johnson <janis187@us.ibm.com>
17122 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17124 * doc/sourcebuild.texi (Test Directives): Split into six
17125 subsections, with most of the current text in new subsections
17126 Directives, Selectors, and Final Actions.
17127 (Directives): Split list of test directives into multiple
17129 (Selectors): Describe use and syntax of selectors.
17130 (Effective-Target Keywords): Describe all existing keywords.
17131 (Add Options): Describe features for dg-add-options.
17132 (Require Support): Describe variants of dg-require-support.
17133 (Final Actions): Describe commands to use in dg-final.
17135 2010-03-22 Michael Matz <matz@suse.de>
17137 PR middle-end/43475
17138 * recog.c (validate_replace_rtx_group): Replace also in
17139 REG_EQUAL and REG_EQUIV notes.
17141 2010-03-22 Richard Guenther <rguenther@suse.de>
17143 PR tree-optimization/43390
17144 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
17145 sure vector extracts are type correct.
17147 2010-03-22 Richard Guenther <rguenther@suse.de>
17149 PR middle-end/40106
17150 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
17151 x * sqrt (x) even when optimizing for size if the target
17152 has native support for sqrt.
17154 2010-03-22 Jakub Jelinek <jakub@redhat.com>
17156 * varasm.c (make_decl_rtl_for_debug): Also clear
17157 flag_mudflap for the duration of make_decl_rtl call.
17160 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
17161 locs from preserved VALUEs.
17163 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17165 PR middle-end/42718
17166 * pa.md (movmemsi): Set align to one if zero.
17167 (movmemdi): Likewise.
17169 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
17172 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
17173 with their corresponding prologue pushes.
17175 2010-03-20 Andrew Pinski <pinskia@gmail.com>
17178 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
17179 at the begining or end.
17180 (spu_expand_epilogue): Likewise.
17182 2010-03-20 Richard Guenther <rguenther@suse.de>
17184 PR rtl-optimization/43438
17185 * combine.c (make_extraction): Properly zero-/sign-extend an
17186 extraction of the low part of a CONST_INT. Also handle
17189 2010-03-19 Mike Stump <mikestump@comcast.net>
17191 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
17192 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
17193 (override_options): Use SUBTARGET32_DEFAULT_CPU.
17195 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
17198 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
17201 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
17203 PR rtl-optimization/42258
17204 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
17205 use that may match DEF.
17208 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
17209 the cost of loading the constant rather than assuming
17211 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
17212 outer code is AND, do the same tests as the andsi3 expander and
17213 return COSTS_N_INSNS (1) if and is cheap.
17215 * optabs.c (avoid_expensive_constant): Fix formatting.
17217 2010-03-19 Michael Matz <matz@suse.de>
17220 * attribs.c (decl_attributes): When rebuilding a function pointer
17221 type use the same qualifiers as the original pointer type.
17223 2010-03-19 Martin Jambor <mjambor@suse.cz>
17225 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
17226 and is_gimple_ip_invariant_address.
17228 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17231 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17233 * config/arm/arm.c (arm_override_options): Turn off
17234 flag_dwarf2_cfi_asm for AAPCS variants.
17236 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17239 * config/arm/arm.c (emit_multi_reg_push): Update comments.
17240 Use PRE_MODIFY instead of PRE_DEC.
17241 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
17242 (vfp_emit_fstmd): Likewise.
17244 2010-03-19 Michael Matz <matz@suse.de>
17247 * builtins.c (expand_builtin_interclass_mathfn,
17248 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
17251 2010-03-19 Richard Guenther <rguenther@suse.de>
17253 PR tree-optimization/43415
17254 * tree-ssa-pre.c (phi_translate): Split out worker to ...
17255 (phi_translate_1): ... this.
17256 (phi_translate): Move all caching here. Cache all NARY
17257 and REFERENCE translations.
17259 2010-03-19 David S. Miller <davem@davemloft.net>
17261 With help from Eric Botcazou.
17262 * config/sparc/sparc.c: Include dwarf2out.h.
17263 (emit_pic_helper): Delete.
17264 (pic_helper_symbol_name): Delete.
17265 (pic_helper_emitted_p): Delete.
17266 (pic_helper_needed): New.
17267 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
17268 (get_pc_thunk_name): New.
17269 (load_pic_register): Remove 'delay_pic_helper' arg. Use
17270 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
17271 Set pic_helper_needed to true. Don't call emit_pic_helper.
17272 (sparc_expand_prologue): Update load_pic_register call.
17273 (sparc_output_mi_thunk): Likewise.
17274 (sparc_file_end): Emit a hidden comdat symbol for the PIC
17275 thunk if possible. Output CFI information as needed.
17277 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17278 Jack Howarth <howarth@bromo.med.uc.edu>
17281 * config/i386/i386.h: Fix ABI on darwin x86-32.
17283 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
17285 * tree.h: Declare make_decl_rtl_for_debug.
17286 * varasm.c (make_decl_rtl_for_debug): New.
17287 * dwarf2out.c (rtl_for_decl_location): Call it.
17288 * cfgexpand.c (expand_debug_expr): Call it.
17290 2010-03-18 Jakub Jelinek <jakub@redhat.com>
17293 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
17297 * var-tracking.c (vt_init_cfa_base): Do nothing if
17298 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
17300 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
17303 * var-tracking.c (canonicalize_vars_star): New.
17304 (dataflow_post_merge_adjust): Use it.
17306 2010-03-18 Jakub Jelinek <jakub@redhat.com>
17309 * var-tracking.c (non_suitable_const): New function.
17310 (add_uses): For DEBUG_INSNs with constants, don't record any
17311 value, instead just the constant value itself.
17312 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
17313 is not VAR_LOC_UNKNOWN_P, set var to the constant.
17314 (emit_notes_in_bb): Likewise.
17315 (emit_note_insn_var_location): For onepart variables if
17316 cur_loc is a VOIDmode constant, use DECL_MODE.
17318 2010-03-18 Martin Jambor <mjambor@suse.cz>
17320 PR middle-end/42450
17321 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
17322 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
17323 all non-clones. Moved call redirection...
17324 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
17325 (cgraph_materialize_all_clones): Dispose of all
17326 combined_args_to_skip bitmaps.
17327 (verify_cgraph_node): Do not check for edges pointing to wrong
17328 nodes in inline clones.
17329 * tree-inline.c (copy_bb): Call
17330 cgraph_redirect_edge_call_stmt_to_callee.
17331 * ipa.c (cgraph_remove_unreachable_nodes): Call
17332 cgraph_node_remove_callees even when there are used clones.
17334 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
17336 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
17338 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
17341 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
17344 2010-03-18 Michael Matz <matz@suse.de>
17346 PR middle-end/43419
17347 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
17348 into sqrt(x) if we need to preserve signed zeros.
17350 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
17351 Eric Botcazou <ebotcazou@adacore.com>
17353 PR rtl-optimization/43360
17354 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
17355 note if we don't know its invariant status.
17357 2010-03-18 Michael Matz <matz@suse.de>
17359 PR tree-optimization/43402
17360 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
17361 PHI chains of ssa names registered for update.
17363 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
17366 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
17367 non-offsettable and pre_modify update addressing.
17368 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
17369 and "2" alternatives "#".
17370 (*movdd_softfloat32): Make all alternatives "#";
17371 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
17372 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
17373 (*movdf_softfloat32): Make all alternatives "#";
17374 (movdi): Use the new DIFD mode iterator to create a common splitter
17375 for movdi, movdf and movdd patterns.
17377 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
17379 * common.opt (dumpdir): Remove redundant tab.
17381 2010-03-17 Martin Jambor <mjambor@suse.cz>
17383 PR tree-optimization/43347
17384 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
17385 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
17387 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
17389 PR rtl-optimization/42216
17390 * regrename.c (create_new_chain): New function, broken out from...
17391 (scan_rtx_reg): ... here. Call it. Handle the case where we are
17392 appending a use to an empty chain.
17393 (build_def_use): Remove previous changes that convert OP_INOUT to
17394 OP_OUT operands; instead detect the case where an OP_INOUT operand
17395 uses a previously untracked register and create an empty chain for it.
17397 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17399 * doc/extend.texi (Function Attributes): Rewrite unfinished
17400 sentence in ms_abi documentation.
17402 2010-03-17 Alan Modra <amodra@gmail.com>
17404 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
17405 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
17406 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
17407 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
17409 2010-03-16 Richard Henderson <rth@redhat.com>
17411 PR middle-end/43365
17412 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
17413 (lower_try_finally): Save and restore eh_seq around the expansion
17414 of the try-finally.
17416 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
17418 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
17419 statements before splitting block.
17421 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17423 * doc/sourcebuild.texi (Testsuites): Fix markup.
17424 Use pathnames relative to gcc/testsuite.
17425 (Test Directives): Move description of how timeout is determined.
17426 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
17427 (C Tests): Correct gcc.misc-tests directory.
17428 Framework tests now live in gcc.test-framework.
17430 2010-03-16 Richard Guenther <rguenther@suse.de>
17432 PR middle-end/43379
17433 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
17434 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
17436 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
17437 Alexandre Oliva <aoliva@redhat.com>
17439 PR tree-optimization/42917
17440 * lambda-code.c (remove_iv): Skip debug statements.
17441 (lambda_loopnest_to_gcc_loopnest): Likewise.
17442 (not_interesting_stmt): Debug statements are not interesting.
17444 2010-03-16 Jakub Jelinek <jakub@redhat.com>
17448 * cselib.c (cselib_preserve_constants,
17449 cfa_base_preserved_val): New static variables.
17450 (preserve_only_constants): New function.
17451 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
17452 clear its REG_VALUES. If cselib_preserve_constants, don't
17453 empty the whole hash table, but preserve there VALUEs with constants,
17454 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
17455 (cselib_preserve_cfa_base_value): New function.
17456 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
17457 (cselib_init): Change argument to int bitfield. Set
17458 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
17460 (cselib_finish): Clear cselib_preserve_constants and
17461 cfa_base_preserved_val.
17462 * cselib.h (enum cselib_record_what): New enum.
17463 (cselib_init): Change argument to int.
17464 (cselib_preserve_cfa_base_value): New prototype.
17465 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
17466 * dse.c (dse_step1): Likewise.
17467 * cfgcleanup.c (thread_jump): Likewise.
17468 * sched-deps.c (sched_analyze): Likewise.
17469 * gcse.c (local_cprop_pass): Likewise.
17470 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
17471 If FN is non-NULL, call the callback always and whenever it returns
17472 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
17473 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
17474 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
17475 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
17476 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
17477 * var-tracking.c: Include recog.h.
17478 (bb_stack_adjust_offset): Remove.
17479 (vt_stack_adjustments): Don't call it, instead just gather the
17480 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
17481 (adjust_stack_reference): Remove.
17482 (compute_cfa_pointer): New function.
17483 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
17484 (struct adjust_mem_data): New type.
17485 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
17487 (get_address_mode): New function.
17488 (replace_expr_with_values): Use it.
17489 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
17490 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
17491 (adjust_sets): Remove.
17492 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
17493 Use get_address_mode.
17494 (get_adjusted_src): Remove.
17495 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
17496 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
17497 (add_with_sets): Don't call adjust_sets.
17498 (fp_setter, vt_init_cfa_base): New functions.
17499 (vt_initialize): Change return type to bool. Move most of pool etc.
17500 initialization to the beginning of the function from end. Pass
17501 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
17502 If !frame_pointer_needed, call vt_stack_adjustment before mos
17503 vector is filled, call vt_init_cfa_base if argp/framep has been
17504 eliminated to sp. If frame_pointer_needed and argp/framep has
17505 been eliminated to hard frame pointer, set
17506 hard_frame_pointer_adjustment and call vt_init_cfa_base after
17507 encountering fp setter in the prologue. For MO_ADJUST, call
17508 log_op_type before pusing the op into mos vector, not afterwards.
17509 Call adjust_insn before cselib_process_insn/add_with_sets,
17510 call cancel_changes (0) afterwards.
17511 (variable_tracking_main_1): Adjust for vt_initialize calling
17512 vt_stack_adjustments and returning whether it succeeded or not.
17514 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
17516 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
17519 2010-03-15 Jakub Jelinek <jakub@redhat.com>
17521 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
17523 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
17524 drap_reg has not been set.
17526 2010-03-15 Michael Matz <matz@suse.de>
17528 PR middle-end/43300
17529 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
17530 use it to expand block copies.
17531 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
17532 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
17533 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
17535 2010-03-15 Richard Guenther <rguenther@suse.de>
17537 PR tree-optimization/43367
17538 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
17541 2010-03-15 Richard Guenther <rguenther@suse.de>
17543 PR tree-optimization/43317
17544 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
17546 2010-03-15 Martin Jambor <mjambor@suse.cz>
17548 PR tree-optimization/43141
17549 * tree-sra.c (create_abstract_origin): New function.
17550 (modify_function): Call create_abstract_origin.
17552 2010-03-15 Chris Demetriou <cgd@google.com>
17554 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
17557 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17559 PR middle-end/43354
17560 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
17561 call insert_out_of_ssa_copy for default definitions.
17563 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17565 * graphite-clast-to-gimple.c (my_long_long): Defined.
17566 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
17567 * graphite-sese-to-poly.c (my_long_long): Defined.
17568 (scop_ivs_can_be_represented): Use it.
17570 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17572 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
17573 graphite-max-bbs-per-function, and loop-block-tile-size.
17574 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
17576 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
17578 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17580 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
17581 forward declaration.
17582 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
17583 (add_upper_bounds_from_estimated_nit): New.
17584 (build_loop_iteration_domains): Use it.
17586 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17588 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
17590 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17592 PR middle-end/43306
17593 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
17594 should be an INTEGER_CST. Also handle CASE_CONVERT.
17596 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17598 * graphite.c (graphite_initialize): To bound the number of bbs per
17599 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
17600 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
17601 * doc/invoke.texi: Document it.
17603 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17605 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
17606 * graphite-sese-to-poly.h (build_poly_scop): Same.
17608 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
17610 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
17611 the number of parameters in the scop. Use as an upper bound
17612 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
17613 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
17614 * doc/invoke.texi: Document it.
17616 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
17618 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
17619 * doc/c-tree.texi: Remove.
17620 * doc/generic.texi: Merge c-tree.texi here.
17621 * doc/gccint.texi (Trees): Remove menu entry.
17622 (c-tree.texi): Remove @include.
17623 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
17624 * doc/languages.texi (Reading RTL): Ditto.
17626 2010-03-12 Steve Ellcey <sje@cup.hp.com>
17629 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
17631 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17633 PR middle-end/42431
17634 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
17635 code added to work around reload clobbering CONST insns.
17637 2010-03-12 Jakub Jelinek <jakub@redhat.com>
17639 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
17640 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
17641 (cselib_preserve_only_values): Remove retain argument, don't
17642 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
17643 * cselib.h (cselib_preserve_only_values): Remove retain argument.
17644 * var-tracking.c (micro_operation): Move insn field before union.
17645 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
17646 (struct variable_tracking_info_def): Remove n_mos field, change
17647 mos into a vector of micro_operations.
17648 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
17649 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
17650 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
17651 changing into a vector.
17652 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
17653 come before all other uops generated by add_stores.
17654 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
17656 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
17657 a vector. Run just one pass over the bbs instead of separate counting
17658 and computation phase.
17659 (vt_finalize): Free VTI (bb)->mos vector instead of array.
17662 * tree-inline.c (remap_decls): Put old_var rather than origin_var
17663 into *nonlocalized_list vector.
17664 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
17665 even if origin is non-NULL.
17666 (gen_variable_die): Likewise.
17667 (process_scope_var): Don't change origin.
17668 (gen_decl_die): Likewise.
17669 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
17670 before adding new edges instead of after it, fix moving over
17673 2010-03-11 David S. Miller <davem@davemloft.net>
17675 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
17677 * configure: Rebuild.
17679 2010-03-11 Martin Jambor <mjambor@suse.cz>
17681 PR tree-optimization/43257
17682 * tree.c (assign_assembler_name_if_neeeded): New function.
17683 (free_lang_data_in_cgraph): Assembler name assignment moved to the
17684 above new function.
17685 * tree.h (assign_assembler_name_if_neeeded): Declare.
17686 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
17687 the function if needed.
17689 2010-03-11 Chris Demetriou <cgd@google.com>
17691 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
17692 include/stdint-gcc.h, and include/stdint.h world-readable.
17694 2010-03-11 Richard Guenther <rguenther@suse.de>
17696 PR tree-optimization/43255
17697 * tree-vrp.c (process_assert_insertions_for): Do not insert
17698 asserts for trivial conditions.
17700 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17702 PR tree-optimization/43280
17703 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
17704 generation. Move calculation of size out of the if branch.
17705 (find_bswap): Modify compare number generation.
17707 2010-03-11 Richard Guenther <rguenther@suse.de>
17710 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
17711 (input_gimple_stmt): Fixup handled component types during
17712 operand read. Also fix up decls in ADDR_EXPRs.
17714 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
17716 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
17717 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
17719 2010-03-10 Jan Hubicka <jh@suse.cz>
17722 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
17723 * varasm.c (get_variable_section): Don't do that here...
17724 (make_decl_rtl): ... and here.
17725 (do_assemble_alias): Produce decl RTL.
17726 (assemble_alias): Likewise.
17728 2010-03-10 Jakub Jelinek <jakub@redhat.com>
17731 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
17732 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
17734 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
17735 (based_loc_descr): Only express drap or vdrap regno based expressions
17736 using DW_OP_fbreg when not optimizing.
17737 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
17738 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
17739 REG_CFA_SET_VDRAP note.
17741 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
17743 PR tree-optimization/43236
17744 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
17745 error in calculation of base address in reverse iteration case.
17746 (generate_builtin): Take number of latch executions if the statement
17749 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
17751 PR middle-end/42859
17752 * tree-eh.c: Include pointer-set.h.
17753 (lower_eh_dispatch): Filter out duplicate case labels and
17754 remove the unneeded edge when the label is unused. Return
17755 true when some edges are removed.
17756 (execute_lower_eh_dispatch): When any lowering resulted in
17757 removing an edge, also delete unreachable blocks.
17759 2010-03-10 Jakub Jelinek <jakub@redhat.com>
17762 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17763 UNSPEC_MACHOPIC_OFFSET.
17765 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
17768 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
17769 (m68k_delegitimize_address): New function.
17771 2010-03-09 Jakub Jelinek <jakub@redhat.com>
17774 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
17777 * var-tracking.c (adjust_sets): New function.
17778 (count_with_sets, add_with_sets): Use it.
17779 (get_adjusted_src): New inline function.
17780 (add_stores): Use it.
17783 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
17784 call cselib_dummy_expand_value_rtx_cb instead of
17785 cselib_expand_value_rtx_cb.
17788 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
17789 * config/i386/i386.c: Include debug.h and dwarf2out.h.
17790 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
17791 and .cfi_endproc around the pic thunks.
17792 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
17793 all queued unwind info register saves are saved before the call.
17794 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
17795 considered as sp-=4 for unwind info and the pop as sp+=4 which
17796 also clobbers dest, but doesn't actually restore it.
17799 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
17800 RTX_FRAME_RELATED_P.
17802 2010-03-09 Jie Zhang <jie@codesourcery.com>
17804 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
17805 whitespaces in output template.
17807 2010-03-09 Jie Zhang <jie@codesourcery.com>
17809 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
17810 out array boundary.
17812 2010-03-08 Jakub Jelinek <jakub@redhat.com>
17814 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
17815 builtins.exp in a separate job.
17817 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17819 * graphite-sese-to-poly.c (add_param_constraints): Use
17820 lower_bound_in_type and upper_bound_in_type.
17822 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17824 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
17825 instead of unsigned_type_node.
17827 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17828 Reza Yazdani <reza.yazdani@amd.com>
17830 PR middle-end/43065
17831 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
17832 on pointer type parameters.
17834 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17836 PR middle-end/42644
17837 PR middle-end/42130
17838 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
17839 handle conversions from pointer to integers.
17840 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
17841 induction variable, to be able to work with code generated by CLooG.
17842 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
17843 (build_poly_scop): Bail out if we cannot codegen a loop.
17845 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
17847 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
17848 code generation with gloog_error.
17850 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17852 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
17853 Call fold_convert on all the returned values.
17854 (expand_scalar_variables_expr): Pass to
17855 expand_scalar_variables_ssa_name the type of the resulting expression.
17857 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17859 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
17860 ppl_min_for_le_pointset.
17861 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
17862 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
17864 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17866 * graphite-dependences.c (map_into_dep_poly): Removed.
17867 (dependence_polyhedron_1): Use combine_context_id_scat.
17869 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17871 * graphite-poly.h (struct poly_scattering): Add layout documentation.
17872 (struct poly_bb): Same.
17873 (combine_context_id_scat): New.
17875 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17877 PR middle-end/42326
17878 * sese.c (name_defined_in_loop_p): Return false for default
17881 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17883 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
17884 and clean up the logic.
17886 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
17888 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
17891 2010-03-08 Jakub Jelinek <jakub@redhat.com>
17893 * var-tracking.c (remove_cselib_value_chains): Define only for
17895 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
17896 delete_slot_part, emit_notes_for_differences_1): Don't call
17897 remove_cselib_value_chains here.
17898 (set_slot_part, emit_notes_for_differences_2): Don't call
17899 add_cselib_value_chains here.
17900 (preserved_values): New vector.
17901 (preserve_value): New function.
17902 (add_uses, add_stores, vt_add_function_parameters): Use it
17903 instead of cselib_preserve_value.
17904 (changed_values_stack): New vector.
17905 (check_changed_vars_0): New function.
17906 (check_changed_vars_1, check_changed_vars_2): Use it.
17907 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
17908 changed_values_stack VALUEs.
17909 (vt_emit_notes): For all preserved_values call
17910 add_cselib_value_chains. If ENABLE_CHECKING call
17911 remove_cselib_value_chains before verifying value_chains is empty.
17912 Initialize and free changed_values_stack.
17913 (vt_initialize): Initialize preserved_values.
17914 (vt_finalize): Free preserved_values.
17916 2010-03-08 Richard Guenther <rguenther@suse.de>
17918 PR tree-optimization/43269
17919 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
17922 2010-03-08 Martin Jambor <mjambor@suse.cz>
17924 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
17925 (ipa_is_param_called): Removed.
17926 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
17927 (ipa_print_node_params): Do not print the called flag.
17928 (ipa_write_node_info): Do not stream the called flag.
17929 (ipa_read_node_info): Likewise.
17931 2010-03-07 Jakub Jelinek <jakub@redhat.com>
17934 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
17935 * cselib.c (struct expand_value_data): Add dummy field.
17936 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
17938 (cselib_dummy_expand_value_rtx_cb): New function.
17939 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
17941 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
17942 * var-tracking.c: Include pointer-set.h.
17943 (variable): Change n_var_parts to char from int. Add
17944 cur_loc_changed and in_changed_variables fields.
17945 (variable_canonicalize): Remove.
17946 (shared_var_p): New inline function.
17947 (unshare_variable): Maintain cur_loc_changed and
17948 in_changed_variables fields. If var was in changed_variables,
17949 replace it there with new_var. Just copy cur_loc instead of
17950 resetting it to something else.
17951 (variable_union): Don't recompute cur_loc. Use shared_var_p.
17952 (dataflow_set_union): Don't call variable_canonicalize.
17953 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
17954 of their DEBUG_EXPR_TREE_DECLs.
17955 (canonicalize_loc_order_check): Verify that cur_loc is NULL
17956 and in_changed_variables and cur_loc_changed is false.
17957 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
17958 and cur_loc_changed. Don't update cur_loc here.
17959 (variable_merge_over_src): Don't call variable_canonicalize.
17960 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
17961 removing loc that is equal to cur_loc, clear cur_loc,
17962 set cur_loc_changed and ensure variable_was_changed is called.
17963 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
17964 compare pointers in cur_loc check, if it is equal to loc,
17965 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
17966 (variable_different_p): Remove compare_current_location argument,
17967 don't compare cur_loc.
17968 (dataflow_set_different_1): Adjust variable_different_p caller.
17969 (variable_was_changed): If dv had some var in changed_variables
17970 already, reset in_changed_variables flag for it and propagate
17971 cur_loc_changed over to the new variable. On empty var
17972 always set cur_loc_changed. Set in_changed_variables on whatever
17973 var is added to changed_variables.
17974 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
17975 Use shared_var_p. When removing loc that is equal to cur_loc,
17976 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
17977 end, don't set it to something else, just call variable_was_changed.
17978 (delete_slot_part): Use shared_var_p. When cur_loc equals to
17979 loc being removed, clear cur_loc and set cur_loc_changed.
17980 Set cur_loc_changed if all locations have been removed.
17981 (struct expand_loc_callback_data): New type.
17982 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
17983 allocated. Always create SUBREGs if simplify_subreg failed.
17984 Prefer to use cur_loc, when that fails and still in
17985 changed_variables (and seen first time) recompute it. Set
17986 cur_loc_changed of variables which had to change cur_loc and
17987 compute elcd->cur_loc_changed if any of the subexpressions used
17988 had to change cur_loc.
17989 (vt_expand_loc): Adjust to pass arguments in
17990 expand_loc_callback_data structure.
17991 (vt_expand_loc_dummy): New function.
17992 (emitted_notes): New variable.
17993 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
17994 that weren't used for any other decl in current
17995 emit_notes_for_changes call call vt_expand_loc_dummy to update
17996 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
17997 first loc_chain location if NULL before. Always use just
17998 cur_loc instead of first loc_chain location. When cur_loc_changed
17999 is false, when not --enable-checking=rtl just don't emit any note.
18000 When rtl checking, compute the note and assert it is the same
18001 as previous note. Clear cur_loc_changed and in_changed_variables
18002 at the end before removing from changed_variables.
18003 (check_changed_vars_3): New function.
18004 (emit_notes_for_changes): Traverse changed_vars to call
18005 check_changed_vars_3 on each changed var.
18006 (emit_notes_for_differences_1): Clear cur_loc_changed and
18007 in_changed_variables. Recompute cur_loc of new_var.
18008 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
18009 (vt_emit_notes): Initialize and destroy emitted_notes.
18011 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
18013 PR rtl-optimization/42220
18014 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
18015 Use verify_reg_tracked to determine if we should use OP_OUT rather
18017 (build_def_use): If we see an in-out operand for a register that we
18018 know nothing about, treat is an output if possible, fail the block if
18021 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
18024 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
18027 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
18030 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
18031 uses of relevant DEFs that are dead outside the loop too.
18033 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
18035 * var-tracking.c (dataflow_set_merge): Swap src and src2.
18037 2010-01-13 Jakub Jelinek <jakub@redhat.com>
18039 * var-tracking.c (values_to_unmark): New variable.
18040 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18041 values_to_unmark vector. Moved body to...
18042 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
18043 instead queue it into values_to_unmark vector.
18044 (vt_find_locations): Free values_to_unmark vector.
18046 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
18048 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
18049 (site.exp): Export them when plugins are enabled.
18051 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
18053 PR middle-end/42326
18054 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
18055 that contain scevs.
18056 (chrec_fold_multiply): Same.
18058 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
18061 * c-decl.c (build_compound_literal): Return early if init is
18062 an error_mark_node.
18064 2010-03-04 Martin Jambor <mjambor@suse.cz>
18066 PR tree-optimization/43164
18067 PR tree-optimization/43191
18068 * tree-sra.c (type_consists_of_records_p): Reject records with
18069 zero-size bit-fields at the end.
18071 2010-03-04 Mike Stump <mikestump@comcast.net>
18073 * Makefile.in (TAGS): Remove *.y.
18075 2010-03-04 Richard Guenther <rguenther@suse.de>
18077 PR tree-optimization/40761
18078 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
18080 (my_rev_post_order_compute): New function.
18081 (init_pre): Call it.
18083 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
18085 PR middle-end/43209
18086 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
18087 decrease the cost of an IV candidate when the cost is infinite.
18089 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18091 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
18092 Use '3DNow!' for the extension of that name, ensure normal space
18094 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
18096 2010-03-03 Jeff Law <law@redhat.com>
18098 * PR middle-end/32693
18099 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
18100 than gen_rtx_SUBREG.
18101 (extract_bit_field_1): Likewise.
18103 2010-03-03 Janis Johnson <janis187@us.ibm.com>
18105 * doc/sourcebuild.texi (Test directives): Document that arguments
18106 include-opts and exclude-opts are now optional for dg-skip-if,
18107 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
18109 2010-03-03 Jason Merrill <jason@redhat.com>
18112 * cgraph.h (varpool_node): Add extra_name field.
18113 * varpool.c (varpool_extra_name_alias): New.
18114 (varpool_assemble_decl): Emit extra name aliases.
18115 (varpool_mark_needed_node): Look past an extra name alias.
18116 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
18117 * lto-streamer-in.c (lto_input_tree): Read it.
18118 * lto-streamer-out.c (output_unreferenced_globals): Write it.
18120 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
18122 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
18123 (sparc*-*-solaris2*): ...this.
18125 2010-03-03 Jakub Jelinek <jakub@redhat.com>
18128 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
18129 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
18130 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
18131 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
18134 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
18135 fallthrough to default handling, just with want_address 0 instead of 2.
18136 For single element lists, add_AT_loc directly, otherwise create an
18137 artificial variable DIE and stick location list to it.
18140 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
18141 (VAL_EXPR_HAS_REVERSE): Define.
18142 (reverse_op): New function.
18143 (add_stores): For reversible operations add an extra MO_VAL_USE.
18145 2010-03-02 Jason Merrill <jason@redhat.com>
18147 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
18149 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
18151 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
18152 (sparc64-*-linux*): Likewise.
18153 (sparc64-*-solaris2*): Include assembler files before linker ones.
18154 (sparc-*-solaris2*): Simplify and reorder to match previous case.
18155 * config/sparc/gas.h: Delete.
18156 * config/sparc/sol2-64.h: Add copyright notice.
18157 * config/sparc/sol2-gas-bi.h: Likewise.
18158 * config/sparc/sol2-gld.h: Likewise.
18159 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
18160 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
18161 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
18162 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
18163 (sparc_elf_asm_named_section): Rename into...
18164 (sparc_solaris_elf_asm_named_section): ...this. Always define.
18166 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
18168 * config/alpha/alpha.c (override_options): Fix -mtune error message.
18170 2010-03-02 Jeff Law <law@redhat.com>
18172 PR middle-end/42431
18173 * reload1.c (rtx_p, substitute_stack): Declare.
18174 (substitute): Record addresses of changed rtxs.
18175 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
18176 Restore the original rtx when complete.
18177 (reload): Free subsitute_stack when complete.
18179 2010-03-02 Janis Johnson <janis187@us.ibm.com>
18181 * doc/gccint.texi (menu): Add Testsuites as a chapter.
18182 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
18184 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
18185 LTO Testing, gcov Testing, profopt Testing, compat Testing,
18186 Torture Tests): Change from subsection to section.
18188 2010-03-02 Jakub Jelinek <jakub@redhat.com>
18189 Steven Bosscher <steven@gcc.gnu.org>
18191 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
18194 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
18196 PR middle-end/42640
18197 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
18198 the assignment from the new induction variable to the assignment
18199 of the value from the original loop PHI function.
18201 2010-03-01 Janis Johnson <janis187@us.ibm.com>
18202 Daniel Jacobowitz <dan@codesourcery.com>
18204 * doc/sourcebuild.texi (Test directives): Clarify options to
18207 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18209 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
18210 Disable cfi directives unless GCC and gas agree on using read-only
18211 .eh_frame sections for 64-bit.
18212 * configure: Regenerate.
18214 2010-03-01 Richard Guenther <rguenther@suse.de>
18216 PR tree-optimization/43220
18217 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
18218 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
18220 2010-03-01 Richard Guenther <rguenther@suse.de>
18221 Martin Jambor <mjambor@suse.cz>
18223 PR middle-end/41250
18224 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
18225 gimplified parameters.
18227 2010-03-01 Christian Bruel <christian.bruel@st.com>
18229 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
18231 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18233 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
18235 2010-03-01 Richard Guenther <rguenther@suse.de>
18237 PR middle-end/43213
18238 * expr.c (expand_assignment): Use the alias-oracle to tell
18239 if the rhs aliases the result decl.
18241 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18244 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
18245 to sol_gt_pch_get_address.
18246 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
18247 64-bit, SPARC and x86.
18248 (sol_gt_pch_get_address): New function.
18250 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
18252 * toplev.h (inform_n, error_n): Declare.
18253 * diagnostic.c (inform_n, error_n): New function.
18255 2010-03-01 Jakub Jelinek <jakub@redhat.com>
18257 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
18258 has no rtl yet when processing local_decls, queue it and recheck
18259 if deferred stack allocation hasn't assigned it rtl.
18261 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
18263 * config/sh/sh.c (unspec_bbr_uid): New.
18264 (gen_block_redirect): Use it instead of INSN_UID.
18265 (gen_far_branch): Likewise.
18267 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
18269 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
18270 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
18272 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18274 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
18275 (Warning Options): -Wno-conversion-null is valid for
18276 Objective-C++ as well.
18277 * doc/tm.texi (Named Address Spaces): Likewise.
18278 * doc/plugins.texi (Plugins): Replace TABs with spaces.
18279 * doc/tree-ssa.texi (Tree SSA): Likewise.
18281 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
18284 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
18285 by default. Don't set the default arch for
18286 i[34567]86-*-darwin*|x86_64-*-darwin*.
18288 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
18291 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
18292 default. Set the default 32bit/64bit archs with $with_arch
18293 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
18295 2010-02-27 Richard Guenther <rguenther@suse.de>
18297 PR tree-optimization/43186
18298 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
18299 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
18300 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
18301 unroller iterations.
18303 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
18305 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
18306 required and i[34567]86-*-* targets don't support 64bit ISA.
18308 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
18311 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18312 the same alias set.
18314 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
18316 * config.gcc: Set the default arch at least to Prescott for
18317 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
18318 if SSE math is enabled.
18320 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
18322 * diagnostic.c (diagnostic_initialize): Update.
18323 (diagnostic_report_diagnostic): Test inhibit_notes_p for
18325 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
18326 (diagnostic_inhibit_notes): New.
18327 * toplev.c (process_options): inhibit notes with -fcompare-debug.
18329 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
18332 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
18333 * doc/standards.texi: Likewise.
18334 * doc/extend.texi: Likewise.
18335 * doc/trouble.texi: Likewise.
18336 * doc/cppopts.texi: Likewise.
18337 * doc/install.texi: Likewise.
18338 * c.opt (std=c90,std=gnu90): New options.
18339 * c-opts.c (c_common_handle_option): Handle them.
18341 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
18344 * c-decl.c (undeclared_variable): Use an informative note.
18346 2010-02-26 Richard Guenther <rguenther@suse.de>
18348 PR tree-optimization/43186
18349 * gimple.h (gimple_fold): Remove.
18350 * gimple.c (gimple_fold): Remove. Inline into single user ...
18351 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
18352 Try harder for conditions.
18354 2010-02-26 Jakub Jelinek <jakub@redhat.com>
18357 * function.c (used_types_insert): Don't skip through named pointer
18358 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
18359 and it is different from the main variant's type.
18361 2010-02-26 Nick Clifton <nickc@redhat.com>
18363 * config/rx/rx.md (sminsi3): Remove bogus alternative.
18365 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
18367 * config.gcc: Support --with-fpmath=sse for x86.
18369 * config/i386/ssemath.h: New.
18371 * doc/install.texi (--with-fpmath=sse): Documented.
18373 2010-02-26 Richard Guenther <rguenther@suse.de>
18375 PR tree-optimization/43188
18376 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
18377 vector types of over-aligned element type.
18379 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
18382 * config/i386/i386.c (expand_vec_perm_blend): Use correct
18383 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
18385 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
18387 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
18389 2010-02-26 Jakub Jelinek <jakub@redhat.com>
18391 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
18392 * var-tracking.c: Include diagnostic.h.
18393 (debug_dv): New function.
18394 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
18397 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
18398 (add_value_chain, add_value_chains, remove_value_chain,
18399 remove_value_chains): Handle DEBUG_EXPRs.
18400 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
18403 * regcprop.c (struct queued_debug_insn_change): New type.
18404 (struct value_data_entry): Add debug_insn_changes field.
18405 (struct value_data): Add n_debug_insn_changes field.
18406 (debug_insn_changes_pool): New variable.
18407 (free_debug_insn_changes, apply_debug_insn_changes,
18408 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
18409 (kill_value_one_regno): Call free_debug_insn_changes if needed.
18410 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
18412 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
18414 (copyprop_hardreg_forward_1): Don't call apply_change_group for
18415 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
18416 changes, call cprop_find_used_regs via note_stores.
18417 (copyprop_hardreg_forward): When copying vd from predecessor
18418 which has any queued DEBUG_INSN changes, make sure the pointers are
18419 cleared. At the end call df_analyze and then if there are any
18420 DEBUG_INSN changes queued at the end of some basic block for still
18421 live registers, apply them.
18422 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
18424 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
18426 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
18429 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
18431 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
18432 targets. Set the default with_cpu/with_arch from arch/cpu.
18433 Allow x86-64 and native for with_cpu/with_arch.
18435 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
18437 * ebitmap.c: Change calls to verify_popcount with calls to
18438 sbitmap_verify_popcount.
18439 (ebitmap_clear_bit): Fixed map->cacheindex test and
18440 map>cache update when bit clearing results in an empty
18443 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
18446 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
18447 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
18448 and support both V2DF and V2DI modes.
18449 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
18450 support both V2DF and V2DI modes.
18451 (general): Delete trailing whitespace from a few patterns.
18453 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18454 V2DF/V2DI interleave high/low builtins.
18456 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
18459 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
18460 interleave high/low functions.
18462 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
18464 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
18465 #pragma extern_prefix.
18467 2010-02-25 Jakub Jelinek <jakub@redhat.com>
18470 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
18471 BLKmode, assert op0 is a MEM and just adjust its mode.
18474 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
18475 if bitpos isn't multiple of mode's bitsize.
18477 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18479 * c.opt (-ftemplate-depth=): New.
18480 (-ftemplate-depth-): Deprecate.
18481 * optc-gen.awk: Handle -ftemplate-depth=.
18482 * opth-gen.awk: Likewise.
18483 * c-opts.c (c_common_handle_option): Likewise.
18484 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
18486 2010-02-24 Jason Merrill <jason@redhat.com>
18488 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
18490 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18492 * cfg.c (alloc_aux_for_block): Remove inline.
18493 (alloc_aux_for_edge): Likewise.
18495 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18497 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
18499 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18501 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
18502 * config/i386/sol2-gas.h: New file.
18503 * config.gcc (i[34567]86-*-solaris2*): Use it.
18505 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
18508 * c-typeck.c (ep_convert_and_check): New.
18509 (build_conditional_expr): Use it.
18510 (build_binary_op): Likewise.
18512 2010-02-24 Jakub Jelinek <jakub@redhat.com>
18514 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
18517 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
18518 bounds even for -O+.
18519 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
18520 expr needs to have DECL_NAME set.
18522 2010-02-24 Nick Clifton <nickc@redhat.com>
18524 * config/mep/mep.c: Include gimple.h.
18525 (mep_function_uses_sp): Delete unused function.
18526 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
18527 parameters. Use unsigned integers to count args. Return a
18528 NULL_RTX instead of an error_mark_node. Toidy up formatting.
18530 2010-02-23 Jakub Jelinek <jakub@redhat.com>
18533 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
18534 greater or equal to nelt instead of 2 * nelt.
18535 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
18538 2010-02-23 Jason Merrill <jason@redhat.com>
18541 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
18542 in cfun->local_decls even if they have register types.
18545 * stor-layout.c (place_field): Don't warn about unnecessary
18546 DECL_PACKED if the type is packed.
18548 2010-02-23 Jakub Jelinek <jakub@redhat.com>
18551 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
18552 GOTOFF relocs, even when the base reg isn't pic pointer.
18554 2010-02-23 Michael Matz <matz@suse.de>
18557 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
18558 (expand_gimple_basic_block): Generate and use debug temps if there
18559 are debug uses left after the last real use of TERed ssa names.
18560 Unlink debug immediate uses when they are expanded.
18562 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
18565 * config/i386/i386.c (override_options): Reorganise to provide
18566 better error messages.
18568 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
18570 PR middle-end/43083
18571 * graphite-scop-detection.c (create_single_exit_edge): Move
18572 the call to find_single_exit_edge to....
18573 (create_sese_edges): ...here. Don't handle multiple edges
18574 exiting the function.
18575 (build_graphite_scops): Don't handle multiple edges
18576 exiting the function.
18578 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
18580 PR middle-end/43097
18581 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
18582 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
18584 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
18586 PR middle-end/43026
18587 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
18589 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
18592 * c-typeck.c (convert_arguments): Print declaration location.
18593 * c-common.c (validate_nargs): Rename as
18594 builtin_function_validate_nargs.
18595 (check_builtin_function_arguments): Update.
18597 2010-02-22 Richard Guenther <rguenther@suse.de>
18600 * tree-inline.c (declare_return_variable): Use the type of
18601 the call stmt lhs if available.
18603 2010-02-22 Duncan Sands <baldrick@free.fr>
18605 * passes.c (register_pass): Always consider all pass lists when
18606 ref_pass_instance_number is zero.
18608 2010-02-22 Richard Guenther <rguenther@suse.de>
18610 PR tree-optimization/42749
18611 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
18612 parameter. Do arithmetic in the original type.
18613 (update_accumulator_with_ops): Likewise.
18614 (adjust_accumulator_values): Adjust.
18616 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18618 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
18619 (QI to BLKmode splitter): New splitter.
18621 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
18623 * config/i386/i386.c (initial_ix86_tune_features): Turn on
18624 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
18626 2010-02-22 Richard Guenther <rguenther@suse.de>
18628 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
18630 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
18632 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
18633 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
18634 ($(T)crti.o, $(T)crtn.o): Remove rules.
18636 2010-02-21 Tobias Burnus <burnus@net-b.de>
18639 * doc/invoke.texi (-fassociative-math): Document that this
18640 option is automatically enabled for Fortran.
18642 2010-02-20 David S. Miller <davem@davemloft.net>
18644 * configure.ac: Test if linker and assembler properly support
18645 GOTDATA_OP relocations.
18646 * configure: Rebuild.
18647 * config.in: Likewise.
18648 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
18649 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
18650 (movsi_high_pic): Likewise.
18651 (movdi_lo_sum_pic): Likewise.
18652 (movdi_high_pic): Likewise.
18653 (movsi_pic_gotdata_op): New pattern.
18654 (movdi_pic_gotdata_op): Likewise.
18655 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
18656 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
18658 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
18661 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
18662 attribute to ssemul.
18663 (xop_mulv2div2di3_high): Ditto.
18665 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
18668 * c.opt (Wconversion-null): New option.
18669 * doc/invoke.texi (Wconversion-null): Document.
18671 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
18673 * common.opt (Wlarger-than-): Add Undocumented.
18675 2010-02-19 Mike Stump <mikestump@comcast.net>
18677 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
18679 2010-02-19 Jason Merrill <jason@redhat.com>
18682 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
18683 * configure: Likewise.
18685 2010-02-20 Alan Modra <amodra@gmail.com>
18687 PR middle-end/42344
18688 * cgraph.h (cgraph_make_decl_local): Declare.
18689 * cgraph.c (cgraph_make_decl_local): New function.
18690 (cgraph_make_node_local): Use it.
18691 * cgraphunit.c (cgraph_function_versioning): Likewise.
18692 * ipa.c (function_and_variable_visibility): Likewise.
18694 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18697 * except.c (sjlj_emit_function_enter): Don't call
18698 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
18700 * rtl.h (add_reg_br_prob_note): Remove prototype.
18702 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18705 * c-common.c (conversion_warning): Remove widening conversions
18706 before checking the conversion of integers to reals.
18708 2010-02-19 Mike Stump <mikestump@comcast.net>
18710 PR middle-end/43125
18711 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
18714 * cgraphunit.c (process_function_and_variable_attributes): Check
18715 DECL_PRESERVE_P instead of looking up attribute "used".
18716 * ipa-pure-const.c (check_decl): Likewise.
18717 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
18718 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
18719 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
18720 instead of attribute "used".
18721 * config/sol2-c.c (solaris_pragma_init): Likewise.
18722 (solaris_pragma_fini): Likewise.
18724 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18726 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
18727 Use XCNEW instead of xcalloc.
18728 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
18729 XNEW instead of xmalloc.
18730 (get_fields): Use XNEWVEC instead of xmalloc.
18733 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
18734 populate vars array.
18735 (create_new_general_access): For debug stmts just reset value.
18736 (get_stmt_accesses): For accesses within debug stmts just record them
18737 using add_access_to_acc_sites instead of preventing the peeling or
18738 counting them as accesses.
18740 PR middle-end/42233
18741 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
18743 2010-02-19 Richard Guenther <rguenther@suse.de>
18745 PR tree-optimization/42916
18746 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
18749 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
18751 * configure.ac: Replace all uses of changequote in macro arguments
18752 with proper quoting.
18754 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18756 PR middle-end/42233
18757 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
18759 2010-02-19 Richard Guenther <rguenther@suse.de>
18761 PR tree-optimization/42944
18762 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
18763 test for aliasing with errno.
18765 2010-02-19 Jakub Jelinek <jakub@redhat.com>
18767 PR middle-end/42233
18768 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
18769 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
18770 * dojump.c: Include output.h.
18771 (inv): New inline function.
18772 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
18773 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
18774 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
18775 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
18776 argument, pass it down to other calls.
18777 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
18778 add REG_BR_PROB note to the conditional jump.
18779 * cfgexpand.c (add_reg_br_prob_note): Removed.
18780 (expand_gimple_cond): Don't call it, add the probability
18781 as last argument to jumpif_1/jumpifnot_1.
18782 * Makefile.in (dojump.o): Depend on output.h.
18783 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
18785 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
18786 * stmt.c (do_jump_if_equal): Likewise.
18787 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
18788 * loop-unswitch.c (compare_and_jump_seq): Likewise.
18789 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
18791 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
18792 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
18793 jumpifnot_1 callers.
18794 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
18796 (store_expr): Adjust jumpifnot caller.
18797 (store_constructor): Adjust jumpif caller.
18799 PR middle-end/42233
18800 * gimplify.c (gimple_boolify): For __builtin_expect call
18801 gimple_boolify also on its first argument.
18803 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
18805 * configure.ac (gnu-unique-object): Wrap regexps using [] in
18807 (__stack_chk_fail): Ditto. Remove quadrigraphs.
18808 * configure: Regenerated.
18810 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18812 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
18813 lang_hooks.types_compatible_p instead of comptypes.
18815 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18817 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
18818 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
18819 if __prefer_thumb__ is defined.
18821 2010-02-18 Martin Jambor <mjambor@suse.cz>
18823 PR tree-optimization/43066
18824 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
18825 array with zero-sized element type.
18827 2010-02-18 Jakub Jelinek <jakub@redhat.com>
18829 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
18830 rtx, allocate struct var_loc_node here and return it to the
18831 caller, and only if it is actually needed.
18832 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
18833 move it earlier and return immediately if it returns NULL.
18835 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
18837 * config/sparc/gas.h: New file. Restore
18838 TARGET_ASM_NAMED_SECTION to its ELF default.
18839 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
18840 check !HAVE_GNU_AS.
18841 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18842 Likewise. Add ATTRIBUTE_UNUSED to prototype.
18843 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
18844 after sparc/sysv4.h.
18846 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
18848 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
18850 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
18852 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
18853 patterns from predicated pattern.
18855 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
18858 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
18859 for insn mnemonic suffix.
18861 2010-02-17 Richard Guenther <rguenther@suse.de>
18863 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
18866 2010-02-17 Jakub Jelinek <jakub@redhat.com>
18869 * caller-save.c (save_call_clobbered_regs): If BB ends with
18870 a DEBUG_INSN, move any notes in between last real insn and the last
18871 DEBUG_INSN after the last DEBUG_INSN.
18873 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
18875 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
18876 Fix return type. Fix argument type. Explain meaning of return value.
18878 2010-02-16 Richard Guenther <rguenther@suse.de>
18880 PR tree-optimization/41043
18881 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
18882 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
18884 (vrp_visit_phi_node): ... but only for loop PHI nodes.
18886 2010-02-16 Ira Rosen <irar@il.ibm.com>
18888 PR tree-optimization/43074
18889 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
18890 * tree-vect-loop.c (vect_analyze_loop_operations): Add
18891 vectorizable cycles in hybrid SLP check.
18892 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
18894 2010-02-16 Richard Guenther <rguenther@suse.de>
18896 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
18897 (true_dependence): If memrefs_conflict_p computes must-alias
18898 trust it. Move TBAA check after offset-based disambiguation.
18899 (canon_true_dependence): Likewise.
18901 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
18903 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
18904 * doc/invoke.texi: Document it.
18905 * var-tracking.c: Include toplev.h and params.h.
18906 (vt_find_locations): Return bool indicating success. Compute
18907 hash sizes unconditionally. Check new parameter, report.
18908 (variable_tracking_main_1): Check vt_find_locations results and
18909 retry. Renamed from...
18910 (variable_tracking_main): ... this. New wrapper to preserve
18911 flag_var_tracking_assignments.
18912 * Makefile.in (var-tracking.o): Adjust dependencies.
18914 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
18915 Jakub Jelinek <jakub@redhat.com>
18918 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
18919 if weak_import attribute is present.
18920 * config/darwin.c (machopic_select_section): Likewise.
18922 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
18924 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
18925 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
18926 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
18927 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
18929 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
18932 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18933 Fix argument types.
18935 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
18936 Rewrite text to refer to the names.
18938 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
18940 * config/i386/i386-builtin-types.def
18941 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
18942 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
18943 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
18944 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
18945 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
18946 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
18947 IX86_BUILTIN_VPERMIL2PS256.
18948 (MULTI_ARG_4_DF2_DI_I): Defined.
18949 (MULTI_ARG_4_DF2_DI_I1): Defined.
18950 (MULTI_ARG_4_SF2_SI_I): Defined.
18951 (MULTI_ARG_4_SF2_SI_I1): Defined.
18952 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
18953 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
18954 __builtin_ia32_vpermil2ps256.
18955 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18956 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18957 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
18958 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
18959 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
18960 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
18961 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
18962 CODE_FOR_xop_vpermil2v8sf3.
18963 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
18964 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
18965 * config/i386/xopintrin.h (_mm_permute2_pd): New.
18966 (_mm256_permute2_pd): New.
18967 (_mm_permute2_ps): New.
18968 (_mm256_permute2_ps): New.
18970 2010-02-15 Nick Clifton <nickc@redhat.com>
18972 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
18973 boolean parameters. Use emit_jump_insn when emitting a pop
18974 instruction containing a return insn.
18975 (push): Use 'true' rather than '1' as second parameter to F.
18976 (h8300_expand_prologue): Likewise.
18977 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
18978 (h8300_expand_epilogue): Likewise.
18980 2010-02-15 Richard Guenther <rguenther@suse.de>
18982 PR middle-end/43068
18983 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
18986 2010-02-15 Nick Clifton <nickc@redhat.com>
18988 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
18991 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
18993 * intl.c (fake_ngettext): New function.
18994 * intl.h (fake_ngettext): Declare.
18995 (ngettext): Define macro.
18996 * collect2.c (notice_translated): New function.
18997 (main): Use notice_translated and ngettext.
18998 * collect2.h (notice_translated): Declare.
19000 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
19002 * reorg.c (delete_computation): Comment fixes.
19003 * caller-save.c (setup_save_areas): Idem.
19004 * sel-sched-dump.c (dump_lv_set): Idem.
19007 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19009 * config/s390/s390.c (s390_sched_init): New function.
19010 (TARGET_SCHED_INIT): Target hook defined.
19012 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
19013 Jack Howarth <howarth@bromo.med.uc.edu>
19014 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
19017 Partial revert of unintended change in fix for PR41605.
19018 * config/darwin.h: Fix typo.
19019 * config/darwin9.h: Same.
19021 2010-02-11 Jakub Jelinek <jakub@redhat.com>
19023 * c-pch.c (pch_init): Clear v.
19025 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
19027 PR middle-end/42930
19028 * graphite-scop-detection.c (graphite_can_represent_scev): Call
19029 graphite_can_represent_init for MULT_EXPR.
19031 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
19033 PR middle-end/42914
19034 PR middle-end/42530
19035 * graphite-sese-to-poly.c (remove_phi): New.
19036 (translate_scalar_reduction_to_array): Call remove_phi.
19038 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
19040 PR middle-end/42771
19041 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
19042 * graphite-clast-to-gimple.h (gloog): Update declaration.
19043 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
19044 * graphite-poly.h (struct poly_bb): Add missing comments.
19045 (struct scop): Add poly_scop_p field.
19046 (POLY_SCOP_P): New.
19047 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
19048 * graphite.c (graphite_transform_loops): Build the polyhedral
19049 representation for each scop before code generation.
19050 * sese.c (rename_variables_in_operand): Removed.
19051 (rename_variables_in_expr): Return the renamed expression.
19052 (rename_sese_parameters): New.
19053 * sese.h (rename_sese_parameters): Declared.
19055 2010-02-11 Richard Guenther <rguenther@suse.de>
19057 PR tree-optimization/42998
19058 * tree-ssa-pre.c (create_expression_by_pieces): Treat
19059 POINTER_PLUS_EXPR properly.
19061 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
19062 Changpeng Fang <changpeng.fang@amd.com>
19064 PR middle-end/40886
19065 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
19066 the cost of an IV candidate when the IV is used in a test against zero.
19068 * gcc.dg/tree-ssa/ivopts-3.c: New.
19070 2010-02-11 Richard Guenther <rguenther@suse.de>
19073 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
19074 pointer-vs-decl case by swapping refs. Handle some cases
19075 of pointer-vs-decl disambiguations more conservatively.
19076 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
19077 to false after expanding.
19079 2010-02-11 Richard Guenther <rguenther@suse.de>
19082 * gcc.c (process_command): Handle LTO file@offset case more
19085 2010-02-11 Jakub Jelinek <jakub@redhat.com>
19087 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
19088 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
19090 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
19092 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
19093 if MEM's mode size isn't DWARF2_ADDR_SIZE.
19094 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
19095 Optimize eq/ne comparisons when both arguments are known to be
19097 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
19098 Don't mask operands unnecessarily if they are known to be already
19101 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
19103 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
19106 2010-02-10 Richard Guenther <rguenther@suse.de>
19108 PR tree-optimization/43017
19109 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
19110 for wrapping signed arithmetic.
19112 2010-02-10 Jakub Jelinek <jakub@redhat.com>
19115 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
19116 if no debug info should be emitted for it.
19118 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
19120 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
19121 note when flag_exceptions is set.
19123 2010-02-10 Duncan Sands <baldrick@free.fr>
19125 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
19127 2010-02-10 Richard Guenther <rguenther@suse.de>
19130 * tree.c (get_unwidened): Handle constants.
19131 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
19133 2010-02-10 Martin Jambor <mjambor@suse.cz>
19136 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
19137 check for variable argument counts independently.
19139 2010-02-10 Christian Bruel <christian.bruel@st.com>
19142 * config/sh/sh.c (find_barrier): Increase length for non delayed
19143 conditional branches.
19145 2010-02-10 Christian Bruel <christian.bruel@st.com>
19147 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
19149 2010-02-10 Jakub Jelinek <jakub@redhat.com>
19151 * builtins.c (set_builtin_user_assembler_name): Also handle
19152 ffs if int is smaller than word.
19154 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
19156 PR middle-end/42973
19157 * ira-conflicts.c (get_dup): Remove.
19158 (process_reg_shuffles): Add new parameter. Use it as an
19159 additional guard for copy generation.
19160 (add_insn_allocno_copies): Rewrite.
19162 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
19164 * common.opt (fsched2-use-traces): Preserved for backward
19166 * doc/invoke.texi: Remove the documentation about option
19167 -fsched2-use-traces.
19168 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
19169 flag_sched2_use_traces.
19170 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
19171 the backward compatibility flag section.
19173 2010-02-09 Richard Guenther <rguenther@suse.de>
19175 PR tree-optimization/43008
19176 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
19177 make HEAP variables initialized from global memory if they
19178 are not known builtin functions.
19179 (find_func_aliases): Adjust.
19181 2010-02-09 Richard Guenther <rguenther@suse.de>
19183 PR tree-optimization/43000
19184 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
19185 arithmetic manually.
19187 2010-02-08 Jakub Jelinek <jakub@redhat.com>
19189 PR tree-optimization/42931
19190 * tree-loop-linear.c (try_interchange_loops): Don't call
19191 double_int_mul if estimated_loop_iterations failed.
19193 2010-02-08 Martin Jambor <mjambor@suse.cz>
19195 PR middle-end/42898
19196 * tree-sra.c (build_accesses_from_assign): Do not mark in
19197 should_scalarize_away_bitmap if stmt has volatile ops.
19198 (sra_modify_assign): Do not process assigns piecemeal if if stmt
19201 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
19203 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
19205 2010-02-07 Adam Nemet <adambnmet@gmail.com>
19207 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
19208 before the pattern.
19210 2010-02-07 Andrew Pinski <pinskia@gmail.com>
19212 PR middle-end/42946
19213 * df-core.c (df_finish_pass): Change type of saved_flags to int.
19215 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
19217 PR middle-end/42988
19218 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
19219 to unknown_dependence.
19220 (graphite_legal_transform_dr): Handle the unknown_dependence.
19221 (graphite_carried_dependence_level_k): Same.
19223 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
19225 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
19227 2010-02-07 Richard Guenther <rguenther@suse.de>
19229 PR middle-end/42991
19230 * expr.c (get_inner_reference): Always initialize *pbitsize.
19232 2010-02-07 Richard Guenther <rguenther@suse.de>
19234 PR middle-end/42956
19235 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
19236 new ARRAY_REFs on variable size element or minimal index arrays.
19238 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
19239 gimple_fold_indirect_ref.
19241 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
19244 * arm.c (arm_override_options): Just return if the user has specified
19245 an invalid fpu name.
19247 2010-02-03 Jason Merrill <jason@redhat.com>
19250 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
19251 i386_pe_maybe_record_exported_symbol.
19253 2010-02-05 Steve Ellcey <sje@cup.hp.com>
19256 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19257 (pa_delegitimize_address): New function.
19259 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
19261 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
19262 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
19264 2010-02-05 Richard Guenther <rguenther@suse.de>
19267 * lto-streamer-in.c (get_resolution): Deal with references
19268 to undefined functions.
19270 2010-02-05 Richard Guenther <rguenther@suse.de>
19272 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
19273 (fold_const_aggregate_ref): Likewise.
19274 (ccp_fold_stmt): Substitute loads.
19275 (maybe_fold_reference): Verify types before substituting.
19277 (fold_gimple_assign): Unshare properly.
19278 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
19280 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
19282 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
19283 for rs6000_gen_cell_microcode.
19285 2010-02-04 Richard Guenther <rguenther@suse.de>
19287 PR rtl-optimization/42952
19288 * dse.c (const_or_frame_p): Remove MEM handling.
19290 2010-02-04 Nick Clifton <nickc@redhat.com>
19292 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19293 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
19294 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
19295 (mn10300_asm_output_mi_thunk): New function.
19296 (mn10300_can_output_mu_thunk): New function.
19297 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
19298 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
19299 (FUNCTION_ARG): Delete incorrect comment.
19301 2010-02-03 Jason Merrill <jason@redhat.com>
19304 * fold-const.c (operand_equal_p): Handle erroneous types.
19306 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
19308 * config/h8300/h8300.md (can_delay): Fix attibute condition.
19310 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
19312 PR rtl-optimization/42941
19313 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
19316 2010-02-03 Jason Merrill <jason@redhat.com>
19319 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
19321 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
19324 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
19325 (cselib_reset_table): Renamed from...
19326 (cselib_reset_table_with_next_value): ... this.
19327 (cselib_get_next_uid): Renamed from...
19328 (cselib_get_next_unknown_value): ... this.
19329 * cselib.c (next_uid): Renamed from...
19330 (next_unknown_value): ... this.
19331 (cselib_clear_table): Adjust.
19332 (cselib_reset_table): Adjust. Renamed from...
19333 (cselib_reset_table_with_next_value): ... this.
19334 (cselib_get_next_uid): Adjust. Renamed from...
19335 (cselib_get_next_unknown_value): ... this.
19336 (get_value_hash): Use hash.
19337 (cselib_hash_rtx): Likewise.
19338 (new_cselib_val): Adjust. Set and dump uid.
19339 (cselib_lookup_mem): Pass next_uid as hash.
19340 (cselib_subst_to_values): Likewise.
19341 (cselib_log_lookup): Dump uid.
19342 (cselib_lookup): Pass next_uid as hash. Adjust.
19343 (cselib_process_insn): Adjust.
19344 (cselib_init): Initialize next_uid.
19345 (cselib_finish): Adjust.
19346 (dump_cselib_table): Likewise.
19347 * dse.c (canon_address): Dump value uid.
19348 * print-rtl.c (print_rtx): Print value uid.
19349 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
19351 (dv_uid): New function, sort of renamed from...
19352 (dv_htab_hash): ... this, reimplemented in terms of it and...
19353 (dv_uid2hash): ... this. New.
19354 (variable_htab_eq): Drop excess assertions.
19355 (tie_break_pointers): Removed.
19356 (canon_value_cmp): Compare uids.
19357 (variable_post_merge_New_vals): Print uids.
19358 (vt_add_function_parameters): Adjust.
19359 (vt_initialize): Reset table. Adjust.
19361 2010-02-03 Richard Guenther <rguenther@suse.de>
19363 PR tree-optimization/42944
19364 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
19365 (call_may_clobber_ref_p_1): Likewise. Properly handle
19366 malloc and calloc clobbering errno.
19368 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
19370 * doc/invoke.texi: Fix name of sched1 dump.
19372 * opts.c (decode_options): Set flag_tree_switch_conversion
19373 only conditionally on optimize >= 2.
19375 * gcse.c: Assorted comment fixes in pass description.
19377 2010-02-03 Anthony Green <green@moxielogic.com>
19379 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
19380 nop padding in order to maintain alignment of storage location of
19381 target function address.
19382 (moxie_trampoline_init): Store target function address at newly
19384 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
19386 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
19388 2010-02-03 Richard Guenther <rguenther@suse.de>
19390 PR middle-end/42927
19391 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
19393 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19395 * config.gcc: Reenable check for obsolete targets.
19396 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
19397 mips-sgi-irix6.[0-4]*.
19399 2010-02-02 Nick Clifton <nickc@redhat.com>
19401 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
19402 constant size of 4 as being the same as 0.
19403 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
19404 can take values in the range 0..4.
19406 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
19409 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
19410 as _darwin10_Unwind_FindEnclosingFunction().
19411 * libgcc-libsystem.ver: New.
19413 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
19416 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
19417 implicitly set registers.
19419 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
19421 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
19422 (arm_override_options): Allow automatic selection of the thread
19423 pointer register if thumb2.
19424 (legitimize_pic_address): Improve code sequences for Thumb2.
19425 (arm_call_tls_get_addr): Likewise.
19426 (legitimize_tls_address): Likewise.
19427 * arm.md (pic_load_addr_arm): Delete. Replace with ...
19428 (pic_load_addr_32bit): ... this. New named pattern.
19429 * thumb2.md (pic_load_addr_thumb2): Delete.
19430 (pic_load_dot_plus_four): Delete.
19431 (tls_load_dot_plus_four): New named pattern.
19433 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19436 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
19437 Document fix for TLS bug.
19439 2010-01-31 Richard Guenther <rguenther@suse.de>
19441 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
19442 conservatively correct.
19444 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19448 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19450 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19452 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19454 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
19456 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
19458 * config.gcc: Adjust order of makefile fragments for mingw targets.
19460 2010-01-31 Richard Guenther <rguenther@suse.de>
19462 PR middle-end/42898
19463 * gimplify.c (gimplify_init_constructor): For volatile LHS
19464 initialize a temporary.
19466 2010-01-31 Matthias Klose <doko@ubuntu.com>
19468 * configure.ac: Fix __stack_chk_fail check for cross builds configured
19470 * configure: Regenerate.
19472 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
19474 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19475 the same alias set and their sizes different constantness.
19476 (aliasing_component_refs_p): Revert 2009-10-24 change.
19478 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19480 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
19483 2010-01-29 Richard Guenther <rguenther@suse.de>
19485 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
19486 Assert we successfully updated the call.
19488 2010-01-29 Jakub Jelinek <jakub@redhat.com>
19490 PR rtl-optimization/42889
19491 * df.h (df_set_bb_dirty_nonlr): New prototype.
19492 * df-core.c (df_set_bb_dirty_nonlr): New function.
19493 * df-scan.c (df_insn_rescan): Call it instead of
19494 df_set_bb_dirty for DEBUG_INSNs.
19496 2010-01-29 Richard Guenther <rguenther@suse.de>
19498 PR middle-end/37448
19499 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
19500 quadratic behavior in most cases.
19502 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
19505 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
19506 in the call to gen_x86_movsicc_0_m1.
19508 2010-01-28 Richard Guenther <rguenther@suse.de>
19510 PR tree-optimization/42871
19511 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
19513 2010-01-28 Richard Guenther <rguenther@suse.de>
19515 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
19516 into call arguments.
19518 2010-01-28 Richard Guenther <rguenther@suse.de>
19520 PR middle-end/42883
19521 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
19522 the forwarder if the destination is an EH landing pad.
19524 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
19526 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
19527 block list passed to gimple_duplicate_sese_tail.
19528 (parallelize_loops): Avoid parallelization when the function
19529 has_nonlocal_label.
19530 Avoid parallelization when the preheader is IRREDUCIBLE.
19531 Try to optimize when estimated_loop_iterations_int is unresolved.
19532 Add the loop's location to the dump file.
19533 * tree-cfg.c (add_phi_args_after_redirect): Remove.
19534 (gimple_duplicate_sese_tail): Remove the check for the latch.
19535 Redirect nexits to the exit block.
19536 Remove handling of the incoming edges to the latch.
19537 Redirect the backedge from the copied latch to the exit bb.
19539 2010-01-28 Michael Matz <matz@suse.de>
19542 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
19543 Wrap force_reg into a sequence, emit it before user.
19545 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
19547 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
19549 (arm_legacy_rev): Likewise.
19550 (thumb_legacy_rev): Likewise.
19552 2010-01-27 Jakub Jelinek <jakub@redhat.com>
19554 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
19555 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
19556 on MEM's address failed, try avoid_constant_pool_reference and
19557 recurse if it returned something different.
19558 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
19559 address, try avoid_constant_pool_reference and recurse if it
19560 returned something different.
19561 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
19562 address and avoid_constant_pool_reference returned something
19563 different, don't set have_address.
19565 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
19568 * var-tracking.c (val_store): Add modified argument, obey it.
19570 (count_uses): Move down logging of main.
19571 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
19572 don't need resolution.
19573 (emit_notes_in_bb): Likewise.
19575 2010-01-27 Richard Guenther <rguenther@suse.de>
19577 PR middle-end/42878
19578 * tree-inline.c (remap_decl): Delay remapping of SSA name
19579 default definitions until we need them.
19581 2010-01-27 Jakub Jelinek <jakub@redhat.com>
19583 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
19584 (rs6000_delegitimize_address): New function.
19586 * config/s390/s390.c (s390_delegitimize_address): Call
19587 delegitimize_mem_from_attrs.
19589 PR middle-end/42874
19590 * tree-inline.c (cannot_copy_type_1): Removed.
19591 (copy_forbidden): Don't forbid copying of functions containing
19592 records/unions with variable length fields.
19594 2010-01-27 Christian Bruel <christian.bruel@st.com>
19598 * config/sh/sh.c (find_barrier): Increase length for non delayed
19599 conditional branches.
19601 2010-01-27 Matthias Klose <doko@ubuntu.com>
19603 * configure.ac (gnu-unique-object): Fix ldd version check.
19604 * configure: Regenerate.
19606 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19608 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
19610 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
19611 Test for HAVE_GNU_AS value.
19613 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19615 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
19616 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
19617 INT64_TYPE): Define.
19618 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
19619 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19620 INT_LEAST64_TYPE): Define.
19621 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
19622 UINT_LEAST64_TYPE): Define.
19623 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
19624 INT_FAST64_TYPE): Define.
19625 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19626 UINT_FAST64_TYPE): Define.
19627 (INTMAX_TYPE, UINTMAX_TYPE): Define.
19628 (INTPTR_TYPE, UINTPTR_TYPE): Define.
19629 (SIG_ATOMIC_TYPE): Define.
19631 2010-01-26 Richard Guenther <rguenther@suse.de>
19633 * df-scan.c (df_scan_set_bb_info): Remove assert.
19634 (df_insn_rescan_debug_internal): Merge asserts.
19635 (df_install_ref): Likewise.
19636 (df_mark_reg): Use bitmap_set_range.
19637 (df_hard_reg_used_p): Remove assert.
19638 (df_hard_reg_used_count): Likewise.
19640 2010-01-26 Richard Guenther <rguenther@suse.de>
19642 PR rtl-optimization/42685
19643 * web.c (web_main): Ignore DEBUG_INSNs.
19645 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
19647 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
19649 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
19650 Fix types of fndecl and arglist parameters.
19652 2010-01-26 Richard Guenther <rguenther@suse.de>
19654 PR middle-end/42806
19655 * tree-eh.c (unsplit_eh): Skip debug insns.
19657 2010-01-26 Richard Guenther <rguenther@suse.de>
19659 PR tree-optimization/42250
19660 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
19662 2010-01-26 Jakub Jelinek <jakub@redhat.com>
19665 * omp-low.c (expand_omp_sections): Only use single_pred if
19666 l2_bb is single_pred_p.
19668 2010-01-25 Christian Bruel <christian.bruel@st.com>
19671 * config/sh/sh.c (find_barrier): Increase length for non delayed
19672 conditional branches.
19673 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
19675 2010-01-24 David S. Miller <davem@davemloft.net>
19677 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
19678 define if not using GAS.
19679 * config/sparc/sparc.c (sparc_elf_asm_named_section):
19680 Likewise. Delete SECTION_MERGE code, which is only applicable
19683 2010-01-24 Mark Mitchell <mark@codesourcery.com>
19686 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
19687 mangling of va_list in system headers.
19689 2010-01-23 Toon Moene <toon@moene.org>
19691 * tree-predcom.c (combine_chains): Return NULL, not false.
19693 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
19695 * tree-loop-distribution.c (distribute_loop): Fix declaration and
19696 initialization of variable res to agree with return type.
19698 2010-01-22 Steve Ellcey <sje@cup.hp.com>
19700 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
19701 * tree-sra.c: Add include of expr.h.
19703 2010-01-22 Jakub Jelinek <jakub@redhat.com>
19705 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
19706 insert the debug stmt on the single non-EH edge from the stmt.
19708 2010-01-22 Richard Henderson <rth@redhat.com>
19711 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
19712 the RHS until after generate_subtree_copies has insertted its
19713 code before the current statement.
19715 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
19717 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
19719 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
19721 2010-01-21 Martin Jambor <mjambor@suse.cz>
19723 PR tree-optimization/42585
19724 * tree-sra.c (struct access): New field grp_total_scalarization.
19725 (dump_access): Dump the new field.
19726 (should_scalarize_away_bitmap): New variable.
19727 (cannot_scalarize_away_bitmap): Likewise.
19728 (sra_initialize): Allocate new bitmaps.
19729 (sra_deinitialize): Free new bitmaps.
19730 (create_access_1): New function.
19731 (create_access): Parts moved to create_access_1.
19732 (type_consists_of_records_p): New function.
19733 (completely_scalarize_record): Likewise.
19734 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
19735 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
19736 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
19738 (analyze_all_variable_accesses): Completely scalarize small eligible
19741 2010-01-21 Martin Jambor <mjambor@suse.cz>
19743 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
19745 2010-01-21 Andrew Haley <aph@redhat.com>
19747 * gcc.c (process_command): Move lang_specific_driver before
19748 setting cc_libexec_prefix.
19750 2010-01-21 Richard Guenther <rguenther@suse.de>
19752 PR middle-end/19988
19753 * fold-const.c (negate_expr_p): Pretend only negative
19754 real constants are easily negatable.
19756 2010-01-20 Janis Johnson <janis187@us.ibm.com>
19757 Jason Merrill <jason@redhat.com>
19759 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
19760 (TYPE_TRANSPARENT_AGGR): this, for union and record.
19761 * calls.c (initialize argument_information): Handle it.
19762 * c-common.c (handle_transparent_union_attribute): Use new name.
19763 * c-decl.c (finish_struct): Ditto.
19764 * c-typeck.c (type_lists_compatible_p): Ditto.
19765 (convert_for_assignment): Use new name and also handle record.
19766 * function.c (aggregate_value_p): Handle it.
19767 (pass_by_reference): Ditto.
19768 (assign_parm_data_types): Ditto.
19769 * print-tree.c (print_node): Ditto.
19770 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
19771 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
19772 * tree.c (first_field): New fn.
19774 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
19777 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
19778 even when linking statically, for now.
19780 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
19783 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
19784 without a cselib val.
19785 (count_uses): Accept MO_VAL_SET with no val on stores.
19786 (add_stores): Likewise.
19788 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19790 * var-tracking.c (check_value_val): Add a compile time assertion.
19791 (dv_is_decl_p): Simplify.
19792 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
19793 gcc_assert if ENABLE_CHECKING.
19795 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
19798 * var-tracking.c: Include tree-flow.h.
19799 (mem_dies_at_call): New.
19800 (dataflow_set_preserve_mem_locs): Use it.
19801 (dataflow_set_remove_mem_locs): Likewise.
19802 (dump_var): Renamed from dump_variable. Adjust all callers.
19803 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
19804 * Makefile.in (var-tracking.o): Adjust deps.
19806 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
19808 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
19810 2010-01-20 Richard Guenther <rguenther@suse.de>
19812 PR tree-optimization/42717
19813 * tree-ssa-dce.c (get_live_post_dom): Remove.
19814 (forward_edge_to_pdom): Take an arbitrary edge to copy
19815 degenerate PHI args from.
19816 (remove_dead_stmt): Use the first post-dominator even if it
19817 does not contain live statements as redirection destination.
19819 2010-01-20 Richard Guenther <rguenther@suse.de>
19821 * tree-inline.c (estimate_num_insns): Handle EH builtins.
19823 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19825 * sel-sched.c (create_speculation_check): Remove set but not used
19827 (try_transformation_cache): Remove set but not used variable ds.
19828 (calculate_privileged_insns): Remove set but not used variables
19829 cur_insn and min_spec_insn.
19830 (find_best_expr): Remove set but not used variable avail_n.
19831 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
19833 * cgraphunit.c (assemble_thunk): Remove set but not used variable
19835 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
19836 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
19837 new_scop_exit_edge.
19839 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
19842 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
19843 cpu types. Add support for *-sse3 cpu types.
19844 (x86_64-*-*): Ditto.
19846 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19848 PR middle-end/42803
19849 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
19850 argument, call initializer_constant_valid_p_1 instead of
19851 initializer_constant_valid_p, pass CACHE to it, return NULL
19852 immediately if first call returns NULL.
19853 (initializer_constant_valid_p_1): New function.
19854 (initializer_constant_valid_p): Use it.
19856 2010-01-20 Thomas Quinot <quinot@adacore.com>
19858 * tree.def (PLACEHOLDER_EXPR): Fix comment.
19860 2010-01-20 Jakub Jelinek <jakub@redhat.com>
19862 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
19863 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
19864 (loc_list_from_tree): Don't handle unsigned division. Handle
19865 signed modulo using DW_OP_{over,over,div,mul,minus}.
19866 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
19867 modulo instead of signed.
19869 2010-01-20 DJ Delorie <dj@redhat.com>
19871 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
19873 (h8300_emit_stack_adjustment): Propogate it.
19875 (h8300_expand_prologue): Likewise.
19876 (h8300_expand_epilogue): Likewise.
19878 2010-01-19 Michael Matz <matz@suse.de>
19880 PR tree-optimization/41783
19881 * tree-data-ref.c (toplevel): Include flags.h.
19882 (dump_data_dependence_relation): Also dump the inputs if the
19883 result will be unknown.
19884 (split_constant_offset_1): Look through some conversions.
19885 * tree-predcom.c (determine_roots_comp): Restart a new chain if
19886 the offset from last element is too large.
19887 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
19888 (reassociate_to_the_same_stmt): Handle vector registers.
19889 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
19890 (e.g. conversions).
19891 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
19892 wide_prolog_niters argument, emit widening instructions.
19893 (vect_do_peeling_for_alignment): Adjust caller, use widened
19894 variant of the iteration cound.
19895 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
19897 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19900 * config/arm/neon-testgen.m (emit_automatics): New parameter
19901 features. Adjust for Fixed_return_reg feature.
19902 (test_intrinsic): Call emit_automatics with new feature.
19903 * config/arm/neon.ml: Update copyright years.
19904 (features): New Fixed_return_reg feature.
19905 (ops): Update feature for Vget_low.
19907 2010-01-19 Jakub Jelinek <jakub@redhat.com>
19909 PR tree-optimization/42719
19910 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
19914 * fwprop.c (all_uses_available_at): Return false if def_set dest
19915 is a REG that is used in def_insn.
19917 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
19919 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
19921 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
19922 Add argument names.
19924 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
19926 * target.h (struct gcc_target) <secondary_reload>: Change type
19927 of last argument to secondary_reload_info *.
19929 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
19932 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
19933 memory references with unaligned offsets. Remove CQImode handling.
19934 (unaligned_memory_operand): Return 1 for memory references with
19935 unaligned offsets. Remove CQImode handling.
19937 2010-01-18 Richard Guenther <rguenther@suse.de>
19939 PR middle-end/39954
19940 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
19943 2010-01-18 Richard Guenther <rguenther@suse.de>
19945 PR tree-optimization/42781
19946 * tree-ssa-structalias.c (find_what_var_points_to): Skip
19947 restrict processing only if the original variable was artificial.
19949 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
19951 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
19952 find number of popped argument bytes.
19954 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
19955 Fix the text that describes the return value for invalid insns.
19957 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
19959 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
19960 Clarify what 'cost of the -dependence' is. Fix quoting.
19962 * toplev.c (default_get_pch_validity): Rename argument to "sz".
19963 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
19965 2010-01-17 Jakub Jelinek <jakub@redhat.com>
19967 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19968 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
19970 2010-01-17 Richard Guenther <rguenther@suse.de>
19972 PR middle-end/42248
19973 * function.c (split_complex_args): Take a VEC to modify.
19974 (assign_parms_augmented_arg_list): Build a VEC instead of
19975 a chain of PARM_DECLs.
19976 (assign_parms_unsplit_complex): Take a VEC of arguments.
19977 Do not fixup unmodified parms.
19978 (assign_parms): Deal with the VEC.
19979 (gimplify_parameters): Likewise.
19981 2010-01-17 Richard Guenther <rguenther@suse.de>
19983 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
19984 node existence check.
19985 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
19986 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
19987 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
19988 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
19989 (gimple_execute_on_growing_pred): Likewise.
19991 2010-01-17 Richard Guenther <rguenther@suse.de>
19993 PR tree-optimization/42773
19994 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
19995 (compute_antic_aux): Likewise.
19996 (compute_partial_antic_aux): Likewise.
19998 2010-01-17 Jie Zhang <jie.zhang@analog.com>
20001 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
20004 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
20006 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
20009 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
20010 Fix markup for strict argument.
20012 (TARGET_SCHED_REORDER2): Fix argument types.
20014 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
20015 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
20017 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
20018 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
20020 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
20023 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
20024 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
20025 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
20026 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
20027 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
20029 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
20031 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
20033 (TARGET_ASM_RELOC_RW_MASK): Add return type.
20034 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
20036 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
20038 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
20041 (TARGET_ASM_NAMED_SECTION): Fix argument list.
20043 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
20044 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
20046 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
20048 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
20050 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
20051 referring to it. Fix language.
20053 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
20055 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
20057 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
20059 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
20061 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
20062 '@var{stream}. Remove stray 'and'.
20064 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
20066 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
20068 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
20070 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
20071 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
20073 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
20074 Fix description of return value.
20075 Rename argument "sz" to "len."
20077 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
20078 Clarify meaning of 'true' return value.
20080 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
20082 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
20083 rep_mode versus mode_rep.
20085 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
20087 (TARGET_BUILTIN_DECL): Fix name.
20089 (TARGET_COMMUTATIVE_P): Fix type of first argument.
20091 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
20093 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
20095 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
20097 (TARGET_RELAXED_ORDERING): Use @deftypevr.
20099 (TARGET_GET_DRAP_RTX): Note that this is a hook.
20102 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
20103 Rename argument tm_fn to md_fn.
20105 (TARGET_OPTION_PRINT): Fix argument list.
20107 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
20110 * config/i386/i386.c (ix86_fixup_binary_operands):
20111 Revert FMA4 fixup of operands.
20113 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20116 * Makefile.in (write_entries_to_file, install-plugin):
20117 Use \012 instead of \n with tr.
20119 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
20121 * configure.ac (HAVE_AS_REF): New C macro.
20122 * configure: Regenerate.
20123 * config.in: Likewise.
20124 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
20126 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
20129 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
20131 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
20133 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
20135 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
20137 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
20139 (TARGET_IN_SMALL_DATA_P): Fix argument type.
20141 (TARGET_BINDS_LOCAL_P): Fix argument type.
20143 (TARGET_ASM_FILE_END): Use prototype.
20145 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
20147 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
20149 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
20151 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
20153 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
20154 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
20156 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
20157 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
20159 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
20160 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
20161 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
20162 (TARGET_ADDR_SPACE_CONVERT): Likewise.
20164 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
20166 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
20168 (TARGET_INIT_BUILTINS): Use prototype.
20170 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
20171 Put 'const char *' in braces. Fix parameter types.
20172 (TARGET_INVALID_CONVERSION): Fix parameter types.
20173 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
20174 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
20176 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
20179 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
20181 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
20183 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
20185 * doc/tm.texi (TARGET_HELP): Fix return type.
20187 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
20188 in braces. Fix argument types.
20190 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
20192 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
20194 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
20196 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
20197 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
20199 (TARGET_MANGLE_TYPE): Fix argument types.
20201 (TARGET_IRA_COVER_CLASSES): Use prototype.
20203 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
20205 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
20207 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
20209 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
20211 (TARGET_CALLEE_COPIES): Fix argument types.
20213 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
20215 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
20217 (TARGET_FUNCTION_VALUE): Fix argument types.
20219 (TARGET_RETURN_IN_MSB): Fix argument type.
20221 (TARGET_RETURN_IN_MEMORY): Fix argument types.
20223 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
20225 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
20227 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
20228 agree with return type.
20230 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
20232 2010-01-15 Jing Yu <jingyu@google.com>
20234 PR rtl-optimization/42691
20235 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
20236 a pseudo to a constant and are merged, and adjust comments.
20238 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
20240 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
20242 2010-01-15 Richard Guenther <rguenther@suse.de>
20244 PR middle-end/42739
20245 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
20246 labels of computed or non-local gotos to the destination.
20247 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
20248 landing pad label is the first label.
20250 2010-01-15 Richard Guenther <rguenther@suse.de>
20252 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
20254 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20257 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
20258 to allow generation of the xssqrtdp instruction on power7.
20259 (sqrtdf2_fpr): Ditto.
20261 2010-01-14 Jakub Jelinek <jakub@redhat.com>
20263 PR middle-end/42674
20264 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
20265 functions with noreturn attribute.
20268 * varasm.c (declare_weak): Add weak attribute to decl if it
20269 doesn't have one already.
20270 (assemble_external): Only add decls to weak_decls if they also
20271 have weak attribute.
20273 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
20275 * var-tracking.c (var_reg_delete): Don't delete the association
20276 between REGs and values or one-part variables if the register
20279 2010-01-14 Jakub Jelinek <jakub@redhat.com>
20282 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
20283 because its first operand is a non-localized variable.
20285 2010-01-14 Martin Jambor <mjambor@suse.cz>
20287 PR tree-optimization/42706
20288 * tree-sra.c (encountered_recursive_call): New variable.
20289 (encountered_unchangable_recursive_call): Likewise.
20290 (sra_initialize): Initialize both new variables.
20291 (callsite_has_enough_arguments_p): New function.
20292 (scan_function): Call decl and flags check only for IPA-SRA, check
20293 whether there is a recursive call and whether it has enough arguments.
20294 (all_callers_have_enough_arguments_p): New function.
20295 (convert_callers): Look for recursive calls only when
20296 encountered_recursive_call is set.
20297 (ipa_early_sra): Bail out either if
20298 !all_callers_have_enough_arguments_p or
20299 encountered_unchangable_recursive_call.
20301 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20303 * sel-sched.c: Add 2010 to copyright years.
20304 * sel-sched-ir.c: Likewise.
20305 * sel-sched-ir.h: Likewise.
20307 2010-01-14 Martin Jambor <mjambor@suse.cz>
20309 PR tree-optimization/42714
20310 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
20311 constructors specially.
20313 2010-01-14 Andi Kleen <ak@linux.intel.com>
20315 * config/i386/drivers-i386.c (detect_caches_intel):
20316 Add l2sizekb parameter and fill in.
20317 (host_detect_local_cpu): Add l2sizekb, fill in.
20318 Add Atom small cache heuristic.
20320 2010-01-14 Andi Kleen <ak@linux.intel.com>
20322 * config/i386/drivers-i386.c (detect_caches_cpuid4):
20323 Add level3 parameter and fill in.
20324 (detect_caches_intel): Handle level3 cache.
20326 2010-01-14 Andi Kleen <ak@linux.intel.com>
20328 * config/i386/drivers-i386.c (host_detect_local_cpu):
20329 Fix core duo detection.
20331 2010-01-14 Andi Kleen <ak@linux.intel.com>
20333 * config/i386/drivers-i386.c (host_detect_local_cpu):
20334 Fix Atom detection.
20336 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20338 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
20339 (rs6000_variable_issue_1): this. Use...
20340 (rs6000_variable_issue): here. Reimplement. Print debug info.
20342 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20344 * sel-sched-ir.c (sel_restore_other_notes): Rename to
20345 sel_restore_notes. Update all callers. Call reemit_notes
20348 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20350 PR rtl-optimization/42246
20351 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
20354 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20356 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
20357 all successors is the same as number of successors in current region.
20359 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20361 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
20362 to rename is not separable. Otherwise check that its LHS is not NULL.
20364 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20366 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
20368 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20370 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
20371 available registers when failed to discover LHS register class.
20372 Fix indentation. Update comment.
20374 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20375 Alexander Monakov <amonakov@ispras.ru>
20377 PR rtl-optimization/42389
20378 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
20380 (advance_state_on_fence): Likewise.
20381 (sel_target_adjust_priority): Print debug output only when
20382 sched_verbose >= 4, not 2.
20383 (get_expr_cost): Do not issue all unique insns on the next cycle.
20384 (fill_insns): Initialize can_issue_more from the value saved
20386 * sel-sched-ir.c (flist_add): New parameter issue_more.
20387 Init FENCE_ISSUE_MORE with it.
20388 (merge_fences): Likewise.
20389 (init_fences): Update call to flist_add.
20390 (add_to_fences, add_clean_fence_to_fences)
20391 (add_dirty_fence_to_fences): Likewise.
20392 (move_fence_to_fences): Update call to merge_fences.
20393 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
20395 * sel-sched-ir.h (struct _fence): New field issue_more.
20396 (FENCE_ISSUE_MORE): New accessor macro.
20398 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20400 PR rtl-optimization/42388
20401 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
20402 that have no predecessors nor successors. Do not call move_bb_info
20403 for empty blocks outside of current region.
20405 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20407 PR rtl-optimization/42294
20408 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
20409 * sel-sched.c (move_exprs_to_boundary): Transitively add all
20410 originators' originators.
20412 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
20414 PR rtl-optimization/39453
20415 PR rtl-optimization/42246
20416 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
20418 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
20420 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20421 Alexander Monakov <amonakov@ispras.ru>
20423 PR middle-end/42245
20424 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
20425 (maybe_tidy_empty_bb): ... here. Make static. Add new
20426 argument. Update all callers.
20427 (tidy_control_flow): ... and here. Recompute topological order
20428 of basic blocks in region if necessary.
20429 (sel_redirect_edge_and_branch): Change return type. Return true
20430 if topological order might have been invalidated.
20431 (purge_empty_blocks): Export and move from...
20432 * sel-sched.c (purge_empty_blocks): ... here.
20433 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
20434 (maybe_tidy_empty_bb): Delete prototype.
20435 (purge_empty_blocks): Declare.
20437 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
20439 PR rtl-optimization/42249
20440 * sel-sched.c (try_replace_dest_reg): When chosen register
20441 and original register is the same, do not bail out early, but
20442 still check all original insns for validity of replacing destination
20443 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
20446 2010-01-14 Jakub Jelinek <jakub@redhat.com>
20449 Port from no-undefined-overflow branch:
20450 2009-03-09 Richard Guenther <rguenther@suse.de>
20452 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
20454 2010-01-14 Richard Guenther <rguenther@suse.de>
20457 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
20459 2010-01-14 Ira Rosen <irar@il.ibm.com>
20461 PR tree-optimization/42709
20462 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
20463 as scalar type in creation of constant vector operand.
20465 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20468 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
20469 (check-parallel-%): Match `testsuite' directory component only
20472 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
20474 PR translation/39521
20475 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
20478 2010-01-13 Richard Guenther <rguenther@suse.de>
20480 PR tree-optimization/42730
20481 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
20484 2010-01-13 Steve Ellcey <sje@cup.hp.com>
20487 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
20488 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
20491 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
20493 * config/bfin/libgcc-bfin.ver: Regenerate based on current
20494 libgcc-std.ver. Add entries for ___smulsi3_highpart and
20495 ___umulsi3_highpart.
20497 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
20498 rather than schedule_insns if the pass is enabled.
20500 2010-01-13 Martin Jambor <mjambor@suse.cz>
20502 PR tree-optimization/42704
20503 * tree-sra.c (sra_modify_assign): Do not delete assignments to
20506 2010-01-13 Martin Jambor <mjambor@suse.cz>
20508 PR tree-optimization/42703
20509 * tree-sra.c (analyze_access_subtree): Check that we can build a
20510 reference to the original data within the aggregate.
20512 2010-01-13 Richard Guenther <rguenther@suse.de>
20514 PR tree-optimization/42705
20515 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
20517 2010-01-13 Richard Guenther <rguenther@suse.de>
20519 PR middle-end/42716
20520 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
20522 2010-01-13 Jakub Jelinek <jakub@redhat.com>
20525 * var-tracking.c (values_to_unmark): New variable.
20526 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20527 values_to_unmark vector. Moved body to...
20528 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
20529 instead queue it into values_to_unmark vector.
20530 (vt_find_locations): Free values_to_unmark vector.
20532 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
20534 * config/s390/s390.c (override_options): Set
20535 default of max-pending-list-length to 256
20537 2010-01-13 Richard Guenther <rguenther@suse.de>
20540 * tree-pass.h (PROP_gimple_lcx): New.
20541 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
20542 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
20543 before the final cleanup_eh.
20544 (dump_properties): Dump PROP_gimple_lcx.
20545 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
20546 (tree_lower_complex_O0): Remove.
20547 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
20548 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
20549 tree_lower_complex, schedule TODO_update_ssa.
20550 * lto-streamer-out.c (output_function): Stream the functions
20552 * lto-streamer-in.c (input_function): Likewise.
20553 (lto_read_body): Do not override them here.
20555 2010-01-12 Joseph Myers <joseph@codesourcery.com>
20558 * c-typeck.c (build_c_cast): Fold value cast to union type before
20559 wrapping it in a CONSTRUCTOR.
20561 2010-01-12 Jakub Jelinek <jakub@redhat.com>
20563 PR rtl-optimization/42699
20564 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
20567 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20569 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
20570 SUBTARGET_WARN_UNUSED_SPEC): Move ...
20571 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
20572 SUBTARGET_WARN_UNUSED_SPEC): ... here
20573 * config/mips/iris5.h (LIBGCC_SPEC): Define.
20575 2010-01-12 Julian Brown <julian@codesourcery.com>
20577 * config/arm/neon-schedgen.ml (Utils): Don't try to
20578 open missing module.
20579 (find_with_result): New.
20581 2010-01-12 Jakub Jelinek <jakub@redhat.com>
20584 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
20585 sharing when canonicalizing ({lt,ge}u (plus a b) b).
20587 PR tree-optimization/42645
20588 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
20589 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
20590 decl_map, set processing_debug_stmt to -1 and return name without
20593 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
20595 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
20596 binutils version, and reword target configuration description.
20598 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
20600 * config/avr/avr.h (LINKER_NAME): Remove.
20602 2010-01-11 Janis Johnson <janis187@us.ibm.com>
20605 * config/rs6000/rs6000.c (rs6000_override_options): On targets
20606 that support VSX, warn for -mno-altivec if vsx is not disabled,
20609 2010-01-11 Joseph Myers <joseph@codesourcery.com>
20610 Shujing Zhao <pearly.zhao@oracle.com>
20612 PR translation/42469
20613 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
20614 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
20615 character between option name and help text.
20616 * c.opt (imultilib): Likewise.
20618 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
20620 * lto-streamer-out.c (output_unreferenced_globals): Output static
20623 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
20625 PR rtl-optimization/42621
20626 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
20627 optimizing for size.
20628 (duplicate_computed_gotos): Remove now-redundant check.
20630 2010-01-10 Steve Ellcey <sje@cup.hp.com>
20633 * configure.ac: Save and restore LDFLAGS and LIBS
20634 * configure: Regenerate.
20636 2010-01-10 Richard Guenther <rguenther@suse.de>
20638 PR middle-end/42667
20639 * builtins.c (fold_builtin_strlen): Add type argument and
20640 convert the resulting length to it.
20641 (fold_builtin_1): Adjust.
20643 2010-01-09 Jakub Jelinek <jakub@redhat.com>
20645 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
20646 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
20648 (num_insns_constant_wide): Adjust for that change.
20650 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20653 * web.c (union_defs): Add used argument, to combine uses of
20654 uninitialized regs.
20655 (entry_register): Adjust type and tests of used argument.
20656 (web_main): Widen used for new use. Pass it to union_defs.
20657 * df.h (union_defs): Adjust prototype.
20659 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20662 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
20663 uses in new incoming argument. Free body.
20664 (reset_debug_uses_in_loop): New.
20665 (analyze_insn_to_expand_var): Call the latter if the former found
20666 anything. Fix whitespace. Reject invalid dest overlaps before
20667 going through all insns in the loop.
20669 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20672 * haifa-sched.c (dying_use_p): Debug insns don't count.
20674 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20676 PR middle-end/42363
20677 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
20678 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
20679 (verify_gimple_call): Reject LHS in noreturn calls.
20681 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20685 * tree-vect-loop-manip.c (adjust_info): New type.
20686 (adjust_vec): New pointer to vector.
20687 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
20688 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
20689 (slpeel_update_phis_for_duplicate_loop): Use them.
20690 (slpeel_update_phi_nodes_for_guard1): Likewise.
20691 (slpeel_update_phi_nodes_for_guard2): Likewise.
20692 (slpeel_tree_peel_loop_to_edge): Likewise.
20693 (vect_update_ivs_after_vectorizer): Likewise.
20695 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20697 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
20698 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
20700 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
20702 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
20703 bogus uninitialized warning.
20705 2010-01-09 Richard Guenther <rguenther@suse.de>
20707 PR middle-end/42512
20708 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
20709 the evolution is compatible with the initial condition.
20711 2010-01-09 Jakub Jelinek <jakub@redhat.com>
20713 * gcc.c (process_command): Update copyright notice dates.
20714 * gcov.c (print_version): Likewise.
20715 * gcov-dump.c (print_version): Likewise.
20716 * mips-tfile.c (main): Likewise.
20717 * mips-tdump.c (main): Likewise.
20719 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
20722 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
20724 (rotlhi3_8): Delete.
20726 (rotlsi3_8): Delete.
20727 (rotlsi3_16): Delete.
20728 (rotlsi3_24): Delete.
20729 (rotl<mode>3): New.
20730 (*rotw<mode>3): New.
20731 (*rotb<mode>3): New.
20732 * config/avr/avr.c (avr_rotate_bytes): New function.
20733 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
20735 2010-01-08 Steve Ellcey <sje@cup.hp.com>
20738 * configure.ac: Modify -rdynamic check.
20739 * configure: Regenerate.
20741 2010-01-08 DJ Delorie <dj@redhat.com>
20743 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
20744 register popping order.
20746 2010-01-08 Richard Guenther <rguenther@suse.de>
20749 * c.opt (fsigned-char): Also let LTO handle this option.
20750 (funsigned-char): Likewise.
20752 2010-01-07 Richard Guenther <rguenther@suse.de>
20754 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
20755 (gimple_op): Likewise.
20756 (gimple_op_ptr): Likewise.
20757 (gimple_assign_set_lhs): Remove gcc_assert.
20758 (gimple_assign_set_rhs1): Likewise.
20759 (gimple_assign_set_rhs2): Likewise.
20760 (gimple_call_set_lhs): Likewise.
20761 (gimple_call_set_fn): Likewise.
20762 (gimple_call_set_fndecl): Likewise.
20763 (gimple_call_fndecl): Likewise.
20764 (gimple_call_return_type): Likewise.
20765 (gimple_call_set_chain): Likewise.
20766 (gimple_call_num_args): Likewise.
20767 (gimple_call_set_arg): Likewise.
20768 (gimple_cond_set_code): Likewise.
20769 (gimple_cond_set_lhs): Likewise.
20770 (gimple_cond_set_rhs): Likewise.
20771 (gimple_cond_set_true_label): Likewise.
20772 (gimple_cond_set_false_label): Likewise.
20773 (gimple_label_set_label): Likewise.
20774 (gimple_goto_set_dest): Likewise.
20775 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
20776 (gimple_debug_bind_get_value): Likewise.
20777 (gimple_debug_bind_get_value_ptr): Likewise.
20778 (gimple_debug_bind_set_var): Likewise.
20779 (gimple_debug_bind_set_value): Likewise.
20780 (gimple_debug_bind_reset_value): Likewise.
20781 (gimple_debug_bind_has_value_p): Likewise.
20782 (gimple_return_retval_ptr): Remove gcc_assert.
20783 (gimple_return_retval): Likewise.
20784 (gimple_return_set_retval): Likewise.
20785 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
20786 (safe_referenced_var_iterator): Remove.
20787 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
20788 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
20789 (fill_referenced_var_vec): Remove.
20790 (first_readonly_imm_use): Remove redundant gcc_assert.
20791 (phi_arg_index_from_use): Combine gcc_asserts.
20792 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
20793 (first_imm_use_stmt): Remove redundant gcc_assert.
20794 * tree-cfg.c (verify_gimple_call): Verify function and chain
20795 operands. Verify arguments.
20796 (verify_types_in_gimple_stmt): Verify condition code and labels.
20798 2010-01-07 Richard Guenther <rguenther@suse.de>
20800 PR tree-optimization/42641
20801 * sese.c (rename_map_elt_info): Use the SSA name version, do
20804 2010-01-07 Jakub Jelinek <jakub@redhat.com>
20806 PR tree-optimization/42625
20807 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
20808 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
20810 2010-01-07 Duncan Sands <baldrick@free.fr>
20812 * Makefile.in (PLUGIN_HEADERS): Add version.h.
20814 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
20817 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
20818 note itself is not function_invariant_p.
20820 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
20822 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
20823 Do not add the DF_NOTE problem.
20824 * store-motion.c (execute_rtl_store_motion): Likewise.
20826 2010-01-07 Martin Jambor <mjambor@suse.cz>
20828 PR tree-optimization/42157
20829 * tree-sra.c (compare_access_positions): Stabilize sort if both
20830 accesses have integer types, return zero immediately if they are the
20833 2010-01-06 Richard Henderson <rth@redhat.com>
20835 PR middle-end/41883
20836 * haifa-sched.c (add_to_note_list): Merge into ...
20837 (concat_note_lists): ... here, and ...
20838 (unlink_other_notes, rm_other_notes): Merge into...
20839 (remove_notes): ... here. Create REG_SAVE_NOTEs for
20840 NOTE_INSN_EPILOGUE_BEG.
20842 2010-01-06 Richard Guenther <rguenther@suse.de>
20844 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
20845 not inline regular functions into always-inline functions.
20847 2010-01-06 Nick Clifton <nickc@redhat.com>
20849 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
20850 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
20852 (OVERRIDE_OPTIONS): Delete.
20853 (OPTIMIZATION_OPTIONS): Define.
20854 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
20855 * config/rx/rx.c (rx_handle_option): Issue an error message if
20856 -mcpu=rx200 and -fpu are used together.
20857 (rx_set_optimization_options): New function. Issue an error
20858 message if an optimization attribute attempts to reset the FPU/
20859 math optimization pairing.
20860 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
20861 * config/rx/rx.opt: Set the default to 32-bit doubles.
20862 * config/rx/t-rx: Add multilibs for -nofpu option.
20863 * doc/invoke.texi: Update documentation of RX options.
20865 2010-01-06 Richard Guenther <rguenther@suse.de>
20867 * tree-ssa-pre.c (name_to_id): New global.
20868 (alloc_expression_id): Simplify SSA name handling.
20869 (lookup_expression_id): Likewise.
20870 (init_pre): Zero name_to_id.
20871 (fini_pre): Free it.
20873 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
20875 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
20877 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
20880 * config/i386/sse.md (smaxv2di3): New.
20881 (umaxv2di3): Likewise.
20882 (sminv2di3): Likewise.
20883 (uminv2di3): Likewise.
20885 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
20888 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
20889 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
20890 (legitimize_tls_address): Likewise.
20891 (sparc_tls_referenced_p): Likewise.
20892 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
20893 and adjust calls to legitimize_pic_address.
20894 (legitimate_constant_p) Use sparc_tls_referenced_p.
20895 (legitimate_pic_operand_p): Likewise.
20896 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
20897 (sparc_tls_symbol_ref_1): Delete.
20898 (sparc_tls_referenced_p): Make static, recognize specific patterns.
20899 (legitimize_tls_address): Make static, handle CONST patterns.
20900 (legitimize_pic_address): Make static, remove unused parameter and
20901 adjust recursive calls.
20902 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
20903 and adjust call to legitimize_pic_address.
20904 (sparc_output_mi_thunk): Likewise.
20906 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
20907 H.J. Lu <hongjiu.lu@intel.com>
20910 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
20911 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
20912 operands to make them signed.
20915 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
20918 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
20919 GTU to GT for V4SI and V2DI.
20921 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
20922 (umin<mode>3): Removed.
20924 (uminv4si3): Likewise.
20926 2010-01-05 Martin Jambor <mjambor@suse.cz>
20928 PR tree-optimization/42462
20929 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
20930 current_function_decl to helper functions and macros.
20932 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20935 * flags.h: Don't include real.h.
20936 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
20937 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
20938 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
20939 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
20940 * dominance.c: Update copyright.
20941 * gimple.c (walk_gimple_op): Remove inline.
20942 * tree-ssa-reassoc.c: Include real.h.
20943 * Makefile.in (FLAGS_H): Remove $(REAL_H).
20944 (tree-ssa-reassoc.o): Depend on $(REAL_H).
20946 2010-01-05 Nick Clifton <nickc@redhat.com>
20948 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
20949 register to push into the stack frame when the accumulator has to
20950 be saved during interrupts.
20952 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
20954 * doc/invoke.texi: Remove the documentation about option
20955 -Wunreachable-code.
20956 * common.opt (Wunreachable-code): Preserved for backward
20958 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
20959 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
20960 the backward compatibility flag section.
20962 2010-01-05 Richard Guenther <rguenther@suse.de>
20964 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
20966 2010-01-05 Jakub Jelinek <jakub@redhat.com>
20969 * cfgexpand.c (expand_one_var): Diagnose too large variables.
20971 PR tree-optimization/42508
20972 * tree-sra.c (convert_callers): Check for recursive call
20973 by comparing cgraph nodes instead of decls.
20974 (modify_function): Call ipa_modify_formal_parameters also
20975 on all same_body aliases.
20977 * cgraphunit.c (cgraph_materialize_all_clones): Compare
20978 cgraph nodes when checking for same_body aliases.
20980 2010-01-05 Richard Guenther <rguenther@suse.de>
20982 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
20983 allocation and lookup.
20984 (get_or_alloc_expr_for_constant): Likewise.
20985 (phi_translate): Sink allocation.
20987 2010-01-04 Richard Guenther <rguenther@suse.de>
20989 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
20990 a new entry only if needed.
20991 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
20992 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
20994 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
20996 (phi_translate): Handle CONSTANTs early.
20998 2010-01-04 Martin Jambor <mjambor@suse.cz>
21000 PR tree-optimization/42398
21001 * tree-sra.c (struct access): Removed flag grp_different_types.
21002 (dump_access): Do not dump the removed flag.
21003 (sort_and_splice_var_accesses): Do not set the removed flag.
21004 (sra_modify_expr): Check for type compatibility directly.
21006 2010-01-04 Martin Jambor <mjambor@suse.cz>
21008 PR tree-optimization/42366
21009 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
21010 edges with variable number of parameters.
21011 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
21012 flag instead of asserting it.
21013 (ipa_read_node_info): Read uses_analysis_done flag.
21015 2010-01-04 Richard Guenther <rguenther@suse.de>
21017 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
21018 iterative_hash_* as intended.
21019 (vn_reference_compute_hash): Likewise. Simplify hashing
21021 (vn_reference_lookup_2): Likewise.
21022 (vn_nary_op_compute_hash): Likewise.
21023 (vn_phi_compute_hash): Likewise.
21024 (expressions_equal_p): Remove strange code.
21025 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
21026 (pre_expr_hash): Likewise. Simplify hashing SSA names.
21027 (bitmap_insert_into_set_1): Take value-id as parameter.
21028 (add_to_value): Pass it.
21029 (bitmap_insert_into_set): Likewise.
21030 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
21032 2010-01-04 Jakub Jelinek <jakub@redhat.com>
21035 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
21036 (do_self_spec): For switches with SWITCH_IGNORE set set also
21037 SWITCH_IGNORE_PERMANENTLY.
21038 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
21041 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
21043 * lto-streamer-out.c (output_unreferenced_globals): Output the full
21044 tree of an unreferenced global var.
21046 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
21049 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
21050 GTU to GT for V4SI and V2DI.
21052 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
21053 (umin<mode>3): Removed.
21055 (uminv4si3): Likewise.
21057 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
21060 * collect2.c (main): Turn on trace in collect2 if -v is passed
21063 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
21065 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
21066 description of expression operand.
21068 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
21070 * configure.ac: Add install-html to target_list for Make-hooks.
21071 * configure: Regenerate.
21072 * fortran/Make-lang.in (F95_HTMLFILES): New.
21073 (fortran.html): Use it.
21074 (fortran.install-html): New.
21075 * Makefile.in (install-html): Add lang.install-html.
21076 * java/Make-lang.in (JAVA_HTMLFILES): New.
21077 (java.html): Use it.
21078 (java.install-html): New.
21079 * objc/Make-lang.in (objc.install-html): New.
21080 * objcp/Make-lang.in (obj-c++.install-html): New.
21081 * cp/Make-lang.in (c++.install-html): New.
21082 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
21083 * lto/Make-lang.in (lto.install-html): New.
21085 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
21088 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
21090 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
21092 PR rtl-optimization/41862
21093 * store-motion.c (store_killed_in_insn, compute_store_table,
21094 remove_reachable_equiv_notes, replace_store_insn,
21095 build_store_vectors): Ignore all DEBUG_INSNs.
21097 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
21100 * common.opt: Add dumpdir.
21102 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
21104 (option_map): Add --dumpdir.
21106 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
21108 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
21110 * opts.c (decode_options): Try dump_dir_name first if
21111 dump_base_name isn't an absolute path.
21112 (common_handle_option): Handle OPT_dumpdir.
21114 * toplev.c (dump_dir_name): New.
21115 (print_switch_values): Also ignore -dumpdir.
21117 * toplev.h (dump_dir_name): New.
21119 2010-01-03 Richard Guenther <rguenther@suse.de>
21121 PR tree-optimization/42589
21122 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
21123 double-word expansion of bswap32.
21125 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
21127 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
21128 with BLOCK_FOR_INSN.
21129 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
21130 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
21131 noce_process_if_block): Likewise.
21132 * gcse.c (compute_local_properties, insert_expr_in_table,
21133 insert_set_in_table, canon_list_insert, find_avail_set,
21134 pre_insert_copy_insn): Likewise.
21136 * basic-block.h (BLOCK_NUM): Move from here...
21137 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
21139 2010-01-03 Richard Guenther <rguenther@suse.de>
21141 PR tree-optimization/42438
21142 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
21143 contains_may_not_return_call flag.
21144 (BB_MAY_NOTRETURN): New.
21145 (valid_in_sets): Trapping nary operations are not valid
21146 in blocks that may not return.
21147 (insert_into_preds_of_block): Remove check for trapping expressions.
21148 (compute_avail): Compute also BB_MAY_NOTRETURN.
21150 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
21152 * doc/invoke.texi: Add 2010 to copyright years.
21154 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
21156 * config/sparc/sparc.c: Fix formatting nits.
21158 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
21159 Alexander Monakov <amonakov@ispras.ru>
21161 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
21163 2010-01-02 Richard Guenther <rguenther@suse.de>
21165 PR middle-end/42577
21166 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
21167 (simplify_switch_using_ranges): Mark to be removed edges
21170 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21172 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
21174 * collect2.c (scan_libraries): Add missing argument in call to
21177 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
21180 * config/alpha/predicates.md (aligned_memory_operand): Return false
21182 (unaligned_memory_operand): Return true for CQImode.
21183 * config/alpha/alpha.c (get_aligned_mem): Assert that location
21184 doesn not cross aligned SImode word boundary.
21186 2010-01-02 Anatoly Sokolov <aesok@post.ru>
21188 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
21190 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
21191 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
21193 2010-01-02 Richard Guenther <rguenther@suse.de>
21196 * toplev.c (compile_file): Emit LTO marker properly. Change
21197 it to __gnu_lto_v1.
21198 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
21200 2010-01-01 Richard Guenther <rguenther@suse.de>
21203 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
21205 2010-01-01 Richard Guenther <rguenther@suse.de>
21208 * c-decl.c (grokdeclarator): For zero-size arrays force
21209 structural equality checks as layout_type does.
21211 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
21213 * builtins.c: Update copyright to 2010.
21215 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
21218 * lto-streamer-out.c (produce_asm): Revert the last change.
21219 (copy_function): Likewise.
21221 * lto-streamer.c (lto_get_section_name): Skip any leading
21224 2010-01-01 Richard Guenther <rguenther@suse.de>
21226 PR middle-end/42559
21227 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
21231 Copyright (C) 2010 Free Software Foundation, Inc.
21233 Copying and distribution of this file, with or without modification,
21234 are permitted in any medium without royalty provided the copyright
21235 notice and this notice are preserved.