1 2010-07-08 Jan Hubicka <jh@suse.cz>
3 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
7 * ipa-cp.c (ipcp_estimate_growth): Use it.
8 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
11 2010-07-08 Jan Hubicka <jh@suse.cz>
13 * tree-inline.c (declare_return_variable): Allocate annotation for new
16 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
18 PR tree-optimization/44710
19 * tree-if-conv.c (parse_predicate): New.
20 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
21 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
23 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
25 * common.opt (ftree-loop-if-convert): New flag.
26 * doc/invoke.texi (ftree-loop-if-convert): Documented.
27 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
28 when flag_tree_loop_if_convert is set.
30 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
32 * config/i386/i386.c: Use short syntax for function calls
33 through function pointers.
34 * config/i386/i386.md: Ditto.
36 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
38 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
40 2010-07-08 Richard Guenther <rguenther@suse.de>
42 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
43 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
45 2010-07-08 Jakub Jelinek <jakub@redhat.com>
47 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
48 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
49 (loc_list_from_tree): Likewise.
50 (output_loc_operands): Handle outputting DW_OP_const[48]u
52 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
54 2010-07-08 Jan Hubicka <jh@suse.cz>
56 * ipa.c: Include pointer-set.h
57 (cgraph_externally_visible_p): New attribute ALIASED;
58 when in LTO, hidden symbols are local unless they are aliased.
59 (function_and_variable_visibility): Compute aliased nodes;
60 handle LTO and hidden symbol on functions and vars.
61 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
62 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
64 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
66 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
67 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
68 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
69 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
70 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
71 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
72 (ix86_gen_probe_stack_range): Likewise.
73 (override_options): Set them.
74 (ix86_target_stack_probe): New function.
75 (ix86_compute_frame_layout): Force use of push instructions to
76 save registers if stack checking with probes is enabled.
77 (get_scratch_register_on_entry): New function.
78 (release_scratch_register_on_entry): Likewise.
79 (ix86_adjust_stack_and_probe): Likewise.
80 (output_adjust_stack_and_probe): Likewise.
81 (ix86_emit_probe_stack_range): Likewise.
82 (output_probe_stack_range): Likewise.
83 (ix86_expand_prologue): Emit stack checking code if static built-in
84 stack checking is enabled.
85 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
86 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
87 (output_adjust_stack_and_probe): Likewise.
88 (output_probe_stack_range): Likewise.
89 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
90 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
92 (allocate_stack_worker_64): Likewise.
93 (allocate_stack): Likewise.
94 (adjust_stack_and_probe): New insn.
95 (probe_stack_range): Likewise.
97 2010-07-08 Richard Guenther <rguenther@suse.de>
99 PR tree-optimization/44831
100 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
101 a MEM_REF preserving TBAA info of the original dereference.
102 Dereference the original pointer if the address is not
104 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
105 at least one invariant address that we are going to dereference.
107 2010-07-08 Richard Guenther <rguenther@suse.de>
109 PR tree-optimization/44861
110 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
111 information when building MEM_REFs.
112 (vectorizable_load): Likewise.
113 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
115 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
117 * config/sol2-c.c: Do not include diagnostic-core.h.
119 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
122 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
123 with respect to current_function_decl. Pass decl of the function.
124 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
125 * ipa-inline.c (compute_inline_parameters): Pass decl to
126 estimated_stack_frame_size.
128 2010-07-08 Richard Guenther <rguenther@suse.de>
130 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
132 (valueize_refs): Call it.
134 2010-07-08 Richard Guenther <rguenther@suse.de>
136 PR rtl-optimization/44838
137 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
138 SSA form do not use pointer equivalence.
140 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
142 * dwarf2out.c (AT_linkage_name): Delete.
143 (add_linkage_attr): New function.
144 (add_linkage_name): Call it to emit the linkage attribute.
145 (dwarf2out_finish): Likewise.
146 (move_linkage_attr): Explicitly accept both attribute variants.
148 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
150 * toplev.h: Do not include diagnostic-core.h.
151 Include diagnostic-core.h in every file that includes toplev.h.
152 * c-tree.h: Do not include toplev.h.
153 * pretty-print.h: Update comment.
154 * Makefile.in: Update dependencies.
155 * alias.c: Include diagnostic-core.h in every file that includes
157 * attribs.c: Likewise.
158 * auto-inc-dec.c: Likewise.
159 * bb-reorder.c: Likewise.
160 * bt-load.c: Likewise.
161 * caller-save.c: Likewise.
164 * cfganal.c: Likewise.
165 * cfgbuild.c: Likewise.
166 * cfgcleanup.c: Likewise.
167 * cfghooks.c: Likewise.
168 * cfgloop.c: Likewise.
169 * combine.c: Likewise.
170 * config/alpha/alpha.c: Likewise.
171 * config/arc/arc.c: Likewise.
172 * config/arm/arm.c: Likewise.
173 * config/arm/pe.c: Likewise.
174 * config/avr/avr.c: Likewise.
175 * config/bfin/bfin.c: Likewise.
176 * config/cris/cris.c: Likewise.
177 * config/crx/crx.c: Likewise.
178 * config/darwin-c.c: Likewise.
179 * config/darwin.c: Likewise.
180 * config/fr30/fr30.c: Likewise.
181 * config/frv/frv.c: Likewise.
182 * config/h8300/h8300.c: Likewise.
183 * config/host-darwin.c: Likewise.
184 * config/i386/i386.c: Likewise.
185 * config/i386/netware.c: Likewise.
186 * config/i386/nwld.c: Likewise.
187 * config/i386/winnt-cxx.c: Likewise.
188 * config/i386/winnt-stubs.c: Likewise.
189 * config/i386/winnt.c: Likewise.
190 * config/ia64/ia64-c.c: Likewise.
191 * config/ia64/ia64.c: Likewise.
192 * config/iq2000/iq2000.c: Likewise.
193 * config/lm32/lm32.c: Likewise.
194 * config/m32c/m32c-pragma.c: Likewise.
195 * config/m32c/m32c.c: Likewise.
196 * config/m32r/m32r.c: Likewise.
197 * config/m68hc11/m68hc11.c: Likewise.
198 * config/m68k/m68k.c: Likewise.
199 * config/mcore/mcore.c: Likewise.
200 * config/mep/mep-pragma.c: Likewise.
201 * config/mep/mep.c: Likewise.
202 * config/mmix/mmix.c: Likewise.
203 * config/mn10300/mn10300.c: Likewise.
204 * config/moxie/moxie.c: Likewise.
205 * config/pa/pa.c: Likewise.
206 * config/pdp11/pdp11.c: Likewise.
207 * config/picochip/picochip.c: Likewise.
208 * config/rs6000/rs6000-c.c: Likewise.
209 * config/rs6000/rs6000.c: Likewise.
210 * config/rx/rx.c: Likewise.
211 * config/s390/s390.c: Likewise.
212 * config/score/score.c: Likewise.
213 * config/score/score3.c: Likewise.
214 * config/score/score7.c: Likewise.
215 * config/sh/sh.c: Likewise.
216 * config/sh/symbian-base.c: Likewise.
217 * config/sh/symbian-c.c: Likewise.
218 * config/sh/symbian-cxx.c: Likewise.
219 * config/sol2-c.c: Likewise.
220 * config/sol2.c: Likewise.
221 * config/sparc/sparc.c: Likewise.
222 * config/spu/spu.c: Likewise.
223 * config/stormy16/stormy16.c: Likewise.
224 * config/v850/v850-c.c: Likewise.
225 * config/v850/v850.c: Likewise.
226 * config/vax/vax.c: Likewise.
227 * config/vxworks.c: Likewise.
228 * config/xtensa/xtensa.c: Likewise.
229 * convert.c: Likewise.
231 * cselib.c: Likewise.
232 * dbgcnt.c: Likewise.
233 * dbxout.c: Likewise.
235 * dominance.c: Likewise.
236 * emit-rtl.c: Likewise.
237 * explow.c: Likewise.
238 * expmed.c: Likewise.
239 * fixed-value.c: Likewise.
240 * fold-const.c: Likewise.
241 * fwprop.c: Likewise.
243 * ggc-common.c: Likewise.
244 * ggc-page.c: Likewise.
245 * ggc-zone.c: Likewise.
246 * gimple-low.c: Likewise.
247 * gimplify.c: Likewise.
249 * haifa-sched.c: Likewise.
251 * implicit-zee.c: Likewise.
252 * integrate.c: Likewise.
253 * ira-build.c: Likewise.
254 * ira-color.c: Likewise.
255 * ira-conflicts.c: Likewise.
256 * ira-costs.c: Likewise.
257 * ira-lives.c: Likewise.
260 * loop-doloop.c: Likewise.
261 * loop-iv.c: Likewise.
262 * lto-opts.c: Likewise.
263 * lto-symtab.c: Likewise.
265 * modulo-sched.c: Likewise.
266 * optabs.c: Likewise.
267 * params.c: Likewise.
268 * plugin.c: Likewise.
269 * postreload-gcse.c: Likewise.
270 * postreload.c: Likewise.
271 * predict.c: Likewise.
272 * profile.c: Likewise.
274 * regcprop.c: Likewise.
275 * reginfo.c: Likewise.
276 * regmove.c: Likewise.
278 * resource.c: Likewise.
280 * rtlanal.c: Likewise.
281 * sched-deps.c: Likewise.
282 * sched-ebb.c: Likewise.
283 * sched-rgn.c: Likewise.
284 * sdbout.c: Likewise.
285 * sel-sched-dump.c: Likewise.
286 * sel-sched-ir.c: Likewise.
287 * simplify-rtx.c: Likewise.
289 * stor-layout.c: Likewise.
290 * store-motion.c: Likewise.
291 * targhooks.c: Likewise.
292 * tree-cfg.c: Likewise.
293 * tree-cfgcleanup.c: Likewise.
294 * tree-dump.c: Likewise.
295 * tree-eh.c: Likewise.
296 * tree-inline.c: Likewise.
297 * tree-nomudflap.c: Likewise.
298 * tree-object-size.c: Likewise.
299 * tree-optimize.c: Likewise.
300 * tree-outof-ssa.c: Likewise.
301 * tree-phinodes.c: Likewise.
302 * tree-profile.c: Likewise.
303 * tree-ssa-ccp.c: Likewise.
304 * tree-ssa-coalesce.c: Likewise.
305 * tree-ssa-live.c: Likewise.
306 * tree-ssa-loop-niter.c: Likewise.
307 * tree-ssa-loop-prefetch.c: Likewise.
308 * tree-ssa-loop.c: Likewise.
309 * tree-ssa-structalias.c: Likewise.
310 * tree-ssa-uninit.c: Likewise.
311 * tree-ssa.c: Likewise.
312 * tree-vect-data-refs.c: Likewise.
313 * tree-vect-loop-manip.c: Likewise.
314 * tree-vect-loop.c: Likewise.
315 * tree-vect-patterns.c: Likewise.
316 * tree-vect-stmts.c: Likewise.
317 * tree-vrp.c: Likewise.
318 * varasm.c: Likewise.
321 * xcoffout.c: Likewise.
323 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
325 * gengtype.c (write_field_root): New function.
326 (write_root): Use it.
328 2010-07-07 Wei Guozhi <carrot@google.com>
330 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
331 of lowest bits to lshift/compare): Add a missing line.
333 2010-07-07 Wei Guozhi <carrot@google.com>
335 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
336 of lowest bits to lshift/compare): New.
338 2010-07-07 Tom Tromey <tromey@redhat.com>
340 * doc/tm.texi: Update.
341 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
343 * target.def (want_debug_pub_sections): New hook.
344 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
345 * dwarf2out.c (add_pubname_string): Check
346 targetm.want_debug_pub_sections.
347 (add_pubname): Likewise.
348 (add_pubtype): Likewise.
350 2010-07-07 Jie Zhang <jie@codesourcery.com>
352 * genautomata.c (output_automata_list_min_issue_delay_code):
353 Correctly decompress min_issue_delay.
355 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
357 PR rtl-optimization/44404
358 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
359 possible, use reg_overlap_mentioned_p instead.
361 2010-07-07 Duncan Sands <baldrick@free.fr>
364 * tree.c (build_function_type_skip_args): Copy the original type using
365 build_distinct_type_copy rather than copy_node.
367 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
370 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
372 (ix86_expand_prologue): Likewise.
373 (ix86_handle_fndecl_attribute): Likewise.
374 (ix86_asm_declare_function_name): Likewise.
375 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
376 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
377 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
378 * config/i386/i386-protos.h (ix86_asm_declare_function_name):
380 * doc/extend.texi: Likewise.
382 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
385 * config/i386/i386.md (rdrand<mode>): Changed to expand to
386 retry if the carry flag isn't valid.
387 (rdrand<mode>_1): New.
389 2010-07-07 Richard Guenther <rguenther@suse.de>
392 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
393 for expanding the constant offset for MEM_REFs.
395 2010-07-07 Richard Guenther <rguenther@suse.de>
397 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
398 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
399 * gimple.h (is_gimple_operand): Remove.
400 * gimple.c (is_gimple_operand): Likewise.
401 (walk_gimple_op): Fix wi->val_only setting for calls.
402 * tree-cfg.c (verify_gimple_call): Fix argument validation.
403 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
404 invalid gimple calls.
406 2010-07-06 Jan Hubicka <jh@suse.cz>
408 * lto-cgraph.c (output_cgraph): Add missing declaration.
410 2010-07-06 Jan Hubicka <jh@suse.cz>
412 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
415 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
417 * doc/gimple.texi (GIMPLE_DEBUG): Document.
418 * doc/rtl.texi (Debug Information): New node.
419 (NOTE_INSN_VAR_LOCATION): Document.
420 (debug_insn): Likewise.
421 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
423 2010-07-07 Jan Hubicka <jh@suse.cz>
425 With parts by Richard Guenther
428 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
429 for functions passed by reference.
430 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
431 in memory when passed by reference.
432 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
434 * ipa-split.c (split_function): Cleanup way return value is passed;
435 handle SSA DECL_BY_REFERENCE retvals.
436 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
437 DECL_BY_REFERENCE is set.
438 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
439 find_what_p_points_to): Handle RESULT_DECL.
440 * tree-inline.c (declare_return_variable): Get new entry_block argument;
441 when passing by reference ensure that RESULT_DECL is gimple_val.
442 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
443 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
445 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
447 PR rtl-optimization/44787
448 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
449 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
451 2010-07-06 Jan Hubicka <jh@suse.cz>
453 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
454 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
455 with body can prevail.
456 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
457 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
458 * cgraph.c (cgraph_get_node_or_alias): New function.
459 * cgraph.h (cgraph_get_node_or_alias): Declare.
461 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
463 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
465 (ix86_expand_prologue): Likewise.
466 (ix86_handle_fndecl_attribute): Likewise.
467 (ix86_asm_declare_function_name): New function for
468 ASM_DECLARE_FUNCTION_NAME.
469 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
470 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
471 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
472 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
473 * doc/extend.texi: Adjust documentation about ms_hook_prologue
476 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
478 * config/i386/i386.md (immediate_operand): New mode attribute.
480 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
481 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
482 using P mode iterator.
483 (pro_epilogue_adjust_stack_di_2): Rename from
484 pro_epilogue_adjust_stack_rex64_2.
486 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
488 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
490 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
491 through gen_mov_insv_1 function pointer.
492 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
493 gen_truncxf<mode>2 through gen_truncxf function pointer.
494 (remainder<mode>3): Ditto.
495 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
496 (allocate_stack): Call gen_allocate_stack_worker_64 or
497 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
499 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
502 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
504 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
505 operand constraint instead of <r><i>m.
507 2010-07-06 Richard Guenther <rguenther@suse.de>
510 * convert.c (convert_to_integer): Watch out for overflowing
513 2010-07-05 Jan Hubicka <jh@suse.cz>
515 * lto-streamer.c (write_symbol_vec): Rename to ...
516 (write_symbol) ... this one; write only symbol given and when
517 present in cache. Sanity check that what is defined is present
518 in cgraph/varpool with body/finalized decl.
519 (write_symbols_of_kind): Remove.
520 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
521 pairs to produce symtab.
522 (produce_asm_for_decls): Update call of produce_symtab; don't do so
523 when doing WPA streaming.
525 2010-07-05 Jan Hubicka <jh@suse.cz>
527 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
528 function is still available to fold into.
530 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
532 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
533 * function.h (struct_function): Change type of local_decls field
535 (add_local_decl): New function.
536 (FOR_EACH_LOCAL_DECL): New macro.
537 * cfgexpand.c (init_vars_expansion): Adjust for new type of
539 (estimated_stack_frame_size): Likewise.
540 (expand_used_vars): Likewise.
541 * cgraphbuild.c (build_cgraph_edges): Likewise.
542 * function.c (instantiate_decls_1): Likewise.
543 * ipa-struct-reorg.c (build_data_structure): Likewise.
544 * ipa-type-escape.c (analyze_function): Likewise.
545 * lto-streamer-in.c (input_function): Likewise.
546 * lto-streamer-out.c (output_function): Likewise.
547 * tree-ssa-live.c (remove_unused_locals): Likewise.
548 * tree.c (free_lang_data_in_decl): Likewise.
549 (find_decls_types_in_node): Likewise.
550 * omp-low.c (remove_exit_barrier): Likewise.
551 (expand_omp_taskreg): Likewise.
552 (list2chain): Rename to...
553 (vec2chain): ...this. Adjust.
554 * cgraphunit.c (assemble_thunk): Call add_local_decl.
555 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
556 * gimple-low.c (record_vars_into): Likewise.
557 * tree-inline.c (remap_decls): Likewise.
558 (declare_return_variable): Likewise.
559 (declare_inline_vars): Likewise.
560 (copy_forbidden): Adjust for new type of cfun->local_decls.
561 (add_local_variables): New function.
562 (expand_call_inline): Call it.
563 (tree_function_versioning): Likewise.
565 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
567 AVX Programming Reference (June, 2010)
568 * config/i386/cpuid.h (bit_F16C): New.
569 (bit_RDRND): Likewise.
570 (bit_FSGSBASE): Likewise.
572 * config/i386/i386-builtin-types.def: Add
573 "DEF_FUNCTION_TYPE (UINT16)", function types for
574 float16 <-> float conversions and
575 "DEF_FUNCTION_TYPE (VOID, UINT64)".
577 * config/i386/i386-c.c (ix86_target_macros_internal): Support
578 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
579 OPTION_MASK_ISA_F16C.
581 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
582 (OPTION_MASK_ISA_RDRND_SET): Likewise.
583 (OPTION_MASK_ISA_F16C_SET): Likewise.
584 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
585 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
586 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
587 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
588 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
589 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
590 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
591 (override_options): Handle them.
592 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
593 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
594 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
595 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
596 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
597 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
598 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
599 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
600 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
601 (bdesc_args): Likewise.
602 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
603 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
604 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
605 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
606 Handle non-memory store.
608 * config/i386/i386.h (TARGET_FSGSBASE): New.
609 (TARGET_RDRND): Likewise.
610 (TARGET_F12C): Likewise.
612 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
613 (UNSPEC_VCVTPS2PH): Likewise.
614 (UNSPECV_RDFSBASE): Likewise.
615 (UNSPECV_RDGSBASE): Likewise.
616 (UNSPECV_WRFSBASE): Likewise.
617 (UNSPECV_WRGSBASE): Likewise.
618 (UNSPECV_RDRAND): Likewise.
619 (rdfsbase<mode>): Likewise.
620 (rdgsbase<mode>): Likewise.
621 (wrfsbase<mode>): Likewise.
622 (wrgsbase<mode>): Likewise.
623 (rdrand<mode>): Likewise.
625 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
627 * config/i386/immintrin.h (_rdrand_u16): New.
628 (_rdrand_u32): Likewise.
629 (_readfsbase_u32): Likewise.
630 (_readfsbase_u64): Likewise.
631 (_readgsbase_u32): Likewise.
632 (_readgsbase_u64): Likewise.
633 (_writefsbase_u32): Likewise.
634 (_writefsbase_u64): Likewise.
635 (_writegsbase_u32): Likewise.
636 (_writegsbase_u64): Likewise.
637 (_rdrand_u64): Likewise.
638 (_cvtsh_ss): Likewise.
639 (_mm_cvtph_ps): Likewise.
640 (_mm256_cvtph_ps): Likewise.
641 (_cvtss_sh): Likewise.
642 (_mm_cvtps_ph): Likewise.
643 (_mm256_cvtps_ph): Likewise.
645 * config/i386/sse.md (vcvtph2ps): New.
646 (*vcvtph2ps_load): Likewise.
647 (vcvtph2ps256): Likewise.
648 (vcvtps2ph): Likewise.
649 (*vcvtps2ph): Likewise.
650 (*vcvtps2ph_store): Likewise.
651 (vcvtps2ph256): Likewise.
653 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
655 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
657 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
660 * genenums.c (main): Output include of insn-constants.h
661 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
663 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
665 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
666 (override_options): Initialize it.
667 (ix86_expand_prologue): Use it.
669 2010-07-05 Jakub Jelinek <jakub@redhat.com>
671 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
673 2010-07-05 Anatoly Sokolov <aesok@post.ru>
675 * double-int.h (fit_double_type): Remove declaration.
676 * double-int.c (fit_double_type): Remove function.
677 * tree.h (int_fits_type_p): Adjust prototype.
678 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
679 instead of fit_double_type.
680 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
681 instead of fit_double_type and build_int_cst_wide.
682 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
683 instead of fit_double_type and build_int_cst_wide.
684 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
687 2010-07-05 Jan Hubicka <jh@suse.cz>
689 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
691 * lto-cgraph.c (referenced_from_other_partition_p,
692 reachable_from_other_partition_p): Use in_other_partition flags.
693 (output_node, output_varpool_node): COMDAT nodes always have private
694 copies and thus are never used from other partition.
696 2010-07-05 Anatoly Sokolov <aesok@post.ru>
698 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
699 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
700 * config/ia64/ia64.c Include reload.h.
701 (ia64_memory_move_cost): New function.
702 (TARGET_MEMORY_MOVE_COST): Define.
703 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
706 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
709 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
710 comments about cost model.
711 (try_add_cand_for): Add second strategy for choosing initial set
712 based on original IVs, controlled by ORIGINALP argument.
713 (get_initial_solution): Add ORIGINALP argument.
714 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
715 (find_optimal_iv_set): Try two different strategies for choosing
716 the IV set, and return the one with lower cost.
718 2010-07-05 Richard Guenther <rguenther@suse.de>
720 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
722 2010-07-05 Richard Guenther <rguenther@suse.de>
724 * tree.c (reference_alias_ptr_type): New function.
725 * tree.h (reference_alias_ptr_type): Declare.
726 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
727 allow non-TARGET_MEM_REF new refs.
728 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
729 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
730 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
731 (create_mem_ref): Get alias pointer type. Adjust calls to
733 (maybe_fold_tmr): Likewise.
734 * tree-flow.h (create_mem_ref): Adjust prototype.
736 2010-07-05 Jakub Jelinek <jakub@redhat.com>
739 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
742 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
744 * tree.h (build_call_list): Remove.
745 * tree.c (build_call_list): Remove.
747 2010-07-05 Richard Guenther <rguenther@suse.de>
749 * double-int.h (double_int_sub): Declare.
750 * double-int.c (double_int_sub): New function.
751 * dwarf2out.c (field_byte_offset): Use it.
752 * fixed-value.c (do_fixed_add): Likewise.
753 (do_fixed_multiply): Likewise.
754 (do_fixed_divide): Likewise.
755 * tree-predcom.c (add_ref_to_chain): Likewise.
756 (determine_roots_comp): Likewise.
757 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
759 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
761 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
764 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
766 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
767 * arm-modes.def (CC_NOTB): Don't define.
768 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
769 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
770 (LTUGEU): New code_iterator.
771 (cnb, optab): New corresponding code_attrs.
772 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
773 to canonical form. Operands 1 and 2 are commutative. Parametrize
775 (addsi3_carryin_shift_<optab>): Likewise.
776 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
777 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
778 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
779 (subsi3_compare): Renamed from subsi3_compare0_c.
780 Change CC_NOTB to CC.
781 (arm_subsi3_insn): Allow constants for operand 0.
782 (compare_scc peephole for eq case): New.
783 (compare_scc splitters): Change CC_NOTB to CC.
785 2010-07-05 Richard Guenther <rguenther@suse.de>
787 * tree-ssa-loop-im.c (for_each_index): Do not handle
789 (gen_lsm_tmp_name): Likewise.
790 * tree-dump.c (dequeue_and_dump): Likewise.
791 * tree-pretty-print.c (dump_generic_node): Likewise.
792 (op_code_prio): Likewise.
793 (op_symbol_code): Likewise.
794 * tree.c (staticp): Likewise.
795 (build1_stat): Likewise.
796 * tree.h (INDIRECT_REF_P): Likewise.
797 * fold-const.c (maybe_lvalue_p): Likewise.
798 (operand_equal_p): Likewise.
799 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
800 (ao_ref_init_from_vn_reference): Likewise.
801 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
802 (find_interesting_uses_address): Likewise.
803 * dwarf2out.c (loc_list_from_tree): Likewise.
804 * gimplify.c (gimplify_expr): Likewise.
805 * tree-eh.c (tree_could_trap_p): Likewise.
806 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
807 * cfgexpand.c (expand_debug_expr): Likewise.
808 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
809 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
810 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
811 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
812 * tree-ssa-operands.c (get_expr_operands): Likewise.
813 * expr.c (safe_from_p): Likewise.
814 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
815 * tree-vect-data-refs.c (vect_setup_realignment): Build
816 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
817 * tree-vect-stmts.c (vectorizable_load): Likewise.
818 * tree.def (ALIGN_INDIRECT_REF): Remove.
820 2010-07-05 Richard Guenther <rguenther@suse.de>
822 PR tree-optimization/44784
823 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
825 (find_or_generate_expression): Fix SCCVN insertion check.
827 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
829 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
830 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
831 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
834 2010-07-05 Ira Rosen <irar@il.ibm.com>
836 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
837 statements that are not vectorized.
838 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
841 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
844 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
846 2010-07-05 Richard Guenther <rguenther@suse.de>
848 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
849 RESULT_DECLs properly.
851 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
853 PR rtl-optimization/44695
854 * config/i386/i386.md (extract_code): Removed.
855 (<u>divmodqi4): Likewise.
857 (udivmodqi4): Likewise.
858 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
859 (udivmodhiqi3): Likewise.
861 2010-07-04 Jan Hubicka <jh@suse.cz>
863 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
865 2010-07-04 Jan Hubicka <jh@suse.cz>
867 * cgraphunit.c (init_cgraph): Only initialize dump file if it
868 is not already initialized.
870 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
872 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
873 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
874 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
875 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
876 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
877 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
878 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
879 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
880 (sync_new_nand_optab): Redefine as macros.
881 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
883 (direct_optab_index): New enum.
884 (direct_optab_d): New structure.
885 (direct_optab): New typedef.
886 (direct_optab_table): Declare.
887 (direct_optab_handler, set_direct_optab_handler): New functions.
888 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
889 (sync_lock_release_optab): New macros.
890 * optabs.c (direct_optab_table): New variable.
891 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
892 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
893 cmpstr_optab and cmpstrn_optab.
894 (emit_conditional_move): Likewise for movcc_optab.
895 (can_conditionally_move_p): Likewise for movcc_gen_code.
896 (init_insn_codes): Clear direct_optab_table.
897 (init_optabs): Don't initialize the new "direct optabs" here.
898 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
900 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
901 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
902 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
903 (expand_sync_operation): Likewise other sync_*_optabs.
904 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
905 to sync_compare_and_swap_optab.
906 (expand_sync_lock_test_and_set): Use direct_optab_handler for
907 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
908 to the names of both.
909 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
910 cmpstr_optab and cmpstrn_optab.
911 (expand_builtin_lock_release): Likewise sync_lock_release.
912 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
913 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
914 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
915 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
916 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
917 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
918 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
919 (sync_lock_test_and_set, sync_lock_release): Delete.
920 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
921 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
922 * genopinit.c (optabs): Use set_direct_optab_handler for the new
924 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
925 the "optab" local variable. Use direct_optab_handler for optab and
926 sync_compare_and_swap_optab.
927 * reload1.c (reload_in_optab, reload_out_optab): Delete.
928 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
929 reload_in_optab and reload_out_optab.
930 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
931 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
932 * config/pa/pa.c (pa_secondary_reload): Likewise.
933 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
934 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
935 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
936 (VMSupportsCS8_builtin): Likewise.
938 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
940 * optabs.h (optab_handlers): Change type of insn_code to int.
941 (optab_handler, set_optab_handler, convert_optab_handler)
942 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
944 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
945 (init_insn_codes): Zero both the above arrays.
946 (init_optabs): Never call init_insn_codes first time around.
948 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
950 * optabs.h (optab_handler, convert_optab_handler): Turn into
951 inline functions that return an insn code.
952 (set_optab_handler, set_convert_optab_handler): New functions.
953 * builtins.c: Replace optab_handler(X)->insn_code with
954 optab_handler or set_optab_handler thoughout. Likewise
955 convert_optab_handler(X)->insn_code with convert_optab_handler
956 and set_convert_optab_handler.
957 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
958 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
959 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
960 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
961 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
962 config/spu/spu.c: Likewise.
964 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
967 * config.gcc (sh*-*-*): Use regular expressions instead of
968 the 'i' modifier for sed substitutions.
970 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
972 * gimple.c (gimple_body): Comments added.
974 2010-07-04 Richard Guenther <rguenther@suse.de>
977 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
980 2010-07-04 Richard Guenther <rguenther@suse.de>
982 PR tree-optimization/44479
983 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
984 extra SSA name copy statements which preserves points-to
986 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
987 Copy points-to information for all pointers. Properly handle
989 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
991 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
994 2010-07-04 Richard Guenther <rguenther@suse.de>
997 * tree-inline.c (initialize_inlined_parameters): Do not
998 re-use pointer-map slot over remap_type call.
1000 2010-07-04 Richard Guenther <rguenther@suse.de>
1002 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1004 2010-07-04 Richard Guenther <rguenther@suse.de>
1006 PR tree-optimization/44656
1007 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1008 again after value-replacing in the defintions lhs.
1010 2010-07-04 Ira Rosen <irar@il.ibm.com>
1011 Revital Eres <eres@il.ibm.com>
1013 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1014 Document new arguments.
1015 * doc/tm.texi: Regenerate.
1016 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1017 Handle unaligned store.
1018 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1019 * target.def (builtin_vectorization_cost): Add new arguments.
1020 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1021 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1022 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1023 (vect_vfa_segment_size): Fix indentation.
1024 * tree-vectorizer.h (struct _vect_peel_info): New.
1025 (struct _vect_peel_extended_info): New.
1026 (struct _loop_vec_info): Add new field for peeling hash table and a
1027 macro for its access.
1028 (VECT_MAX_COST): Define.
1029 (vect_get_load_cost): Declare.
1030 (vect_get_store_cost, vect_get_known_peeling_cost,
1031 vect_get_single_scalar_iteraion_cost): Likewise.
1032 (vect_supportable_dr_alignment): Add new argument.
1033 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1035 (destroy_loop_vec_info): Free peeling hash table.
1036 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1037 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1038 vect_analyze_slp. Fix indentation.
1039 (vect_get_single_scalar_iteraion_cost): New function.
1040 (vect_get_known_peeling_cost): Likewise.
1041 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1042 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1043 statement. Move outside cost calculation inside unknown peeling case.
1044 Call vect_get_known_peeling_cost for known amount of peeling.
1045 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1046 reference to the print message of forced alignment.
1047 (vect_verify_datarefs_alignment): Update call to
1048 vect_supportable_dr_alignment.
1049 (vect_get_data_access_cost): New function.
1050 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1051 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1052 vect_peeling_hash_choose_best_peeling): Likewise.
1053 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1054 to store all the accesses in the loop and find best possible access to
1055 align using peeling for known alignment case. For unknown alignment
1056 check if stores are preferred or if peeling is worthy.
1057 (vect_find_same_alignment_drs): Analyze pairs of loads too.
1058 (vect_supportable_dr_alignment): Add new argument and check aligned
1059 accesses according to it.
1060 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1061 (cost_for_stmt): Call vect_get_stmt_cost.
1062 (vect_model_simple_cost): Likewise.
1063 (vect_model_store_cost): Call vect_get_stmt_cost. Call
1064 vect_get_store_cost to calculate the cost of the statement.
1065 (vect_get_store_cost): New function.
1066 (vect_model_load_cost): Call vect_get_stmt_cost. Call
1067 vect_get_load_cost to calculate the cost of the statement.
1068 (vect_get_load_cost): New function.
1069 (vectorizable_store): Update call to vect_supportable_dr_alignment.
1070 (vectorizable_load): Likewise.
1071 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1072 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1073 arguments. Handle unaligned store.
1074 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1075 (rs6000_builtin_support_vector_misalignment): Return true for word and
1076 double word alignments for VSX.
1077 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1078 vect_supportable_dr_alignment and builtin_vectorization_cost.
1080 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1083 * config/pa/predicates.md (prefetch_cc_operand): Remove.
1084 (prefetch_nocc_operand): Likewise.
1085 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1086 (prefetch_20): New insn.
1087 (prefetch_cc): Remove.
1088 (prefetch_nocc): Likewise.
1090 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1092 * expr.c (vector_mode_valid_p): Move to c-common.c.
1093 * expr.h (vector_mode_valid_p): Do not declare here.
1094 * system.h: Poison GCC_EXPR_H in front-ends.
1095 * Makefile.in: Update dependencies.
1097 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1100 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1102 2010-07-03 Jan Hubicka <jh@suse.cz>
1104 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1105 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1106 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1107 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1110 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1112 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1113 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1114 TV_IPA_LTO_DECL_OUT): New.
1115 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1117 2010-07-03 Jan Hubicka <jh@suse.cz>
1119 * ipa-inline.c (update_edge_key): Break out from ...
1120 update_callers_keys): ... here;
1121 (update_callee_keys): Update only the edges from caller to callee.
1122 (update_all_calle_keys): Do what update_calle_keys did.
1123 (decide_inlining_of_small_functions): Avoid recomputing of all
1124 callees when badness increase.
1126 2010-07-03 Jie Zhang <jie@codesourcery.com>
1128 * config/arm/arm.c (arm_attr_length_move_neon): New.
1129 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1130 * config/arm/neon.md (define_mode_attr V_slen): Remove.
1131 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1132 to compute length attribute.
1134 2010-07-03 Jie Zhang <jie@codesourcery.com>
1136 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1137 as predicate for operand 1 and remove its constraint.
1138 * config/arm/predicates.md (vfp_register_operand): New.
1139 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1140 (*push_fp_multi): Likewise.
1142 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1144 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1146 2010-07-03 Jan Hubicka <jh@suse.cz>
1148 * config/i386/i386.c (override_options): Revert accidental commit.
1150 2010-07-02 Le-Chun Wu <lcwu@google.com>
1153 * doc/invoke.texi: Update documentation of -Wshadow.
1155 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1156 Julian Brown <julian@codesourcery.com>
1157 Sandra Loosemore <sandra@codesourcery.com>
1159 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1160 comparisons. Adjust to take both operands.
1161 (arm_select_cc_mode): Handle DImode comparisons.
1162 (arm_gen_compare_reg): Generate a scratch register for DImode
1163 comparisons which require one. Use xor for Thumb equality checks.
1164 (arm_const_double_by_immediates): New.
1165 (arm_print_operand): Allow 'Q' and 'R' for constants.
1166 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1167 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1168 arm_canonicalize_comparison.
1169 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1170 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1172 (arm_const_double_by_immediates): Declare.
1173 * config/arm/constraints.md (Di): New constraint.
1174 * config/arm/predicates.md (arm_immediate_di_operand)
1175 (arm_di_operand, cmpdi_operand): New.
1176 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1177 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1178 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1179 (cstoredi4): Handle non-Cirrus also.
1181 2010-07-02 Julian Brown <julian@codesourcery.com>
1182 Sandra Loosemore <sandra@codesourcery.com>
1185 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1186 (smax<mode>3): Disable for NEON float modes when
1187 flag_unsafe_math_optimizations is false.
1188 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1190 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1191 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1192 for NEON float modes when flag_unsafe_math_optimizations is false.
1193 (quad_halves_<code>v4sf): Only enable if
1194 flag_unsafe_math_optimizations is true.
1195 * doc/invoke.texi (ARM Options): Add note about floating point
1196 vectorization requiring -funsafe-math-optimizations.
1198 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1199 Julian Brown <julian@codesourcery.com>
1201 * config/arm/neon.md (UNSPEC_VABA): Delete.
1202 (UNSPEC_VABAL): Delete.
1203 (UNSPEC_VABS): Delete.
1204 (UNSPEC_VMUL_N): Delete.
1207 (mul<mode>3add<mode>_neon): Make the pattern named.
1208 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1209 (neon_vadd<mode>): Replace with define_expand, and move the remaining
1211 (neon_vadd<mode>_unspec): ...to this.
1212 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1213 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1214 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1215 (neon_vaba<mode>): Rewrite in terms of vabd.
1216 (neon_vabal<mode>): Rewrite in terms of vabdl.
1217 (neon_vabs<mode>): Rewrite without unspec.
1218 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1219 (*arm_subdi3): Likewise.
1220 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1221 No_op attribute to disable assembly output checks.
1222 * config/arm/arm_neon.h: Regenerated.
1223 * doc/arm-neon-intrinsics.texi: Regenerated.
1225 2010-07-02 Jan Hubicka <jh@suse.cz>
1227 * ipa-split.c (split_function): For aggregate values, set the return
1228 slot optimization bit. When passing DECL_BY_REFERENCE, produce
1229 *<retval> = fncall.part ().
1230 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1232 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1234 * config/arm/neon.md (UNSPEC_VAND): Delete.
1235 (UNSPEC_VBIC): Delete.
1236 (UNSPEC_VCLZ): Delete.
1237 (UNSPEC_VCNT): Delete.
1238 (UNSPEC_VEOR): Delete.
1239 (UNSPEC_VORN): Delete.
1240 (UNSPEC_VORR): Delete.
1241 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
1243 (anddi3_neon): Likewise.
1244 (orndi3_neon): Likewise.
1245 (bicdi3_neon): Likewise.
1246 (xordi3_neon): Likewise.
1247 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1248 rid of unspec and handle unused operand.
1249 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1250 * config/arm/predicates.md (imm_for_neon_logic_operand):
1251 Require TARGET_NEON.
1252 (imm_for_neon_inv_logic_operand): Likewise.
1253 * config/arm/arm.md (define_split for logical_binary_operator):
1254 Disable for NEON registers.
1255 (anddi3): Add new define_expand, and rename the insn. Disable
1256 this insn for NEON, where anddi3_neon now applies.
1257 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1258 (iordi3): As for anddi3.
1260 * config/arm/neon.ml (Vand): Split DImode variants and mark them
1261 as No_op to disable testing for exact instruction match.
1266 * config/arm/arm_neon.h: Regenerated.
1267 * doc/arm-neon-intrinsics.texi: Regenerated.
1269 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1271 * expr.h (emit_stack_probe): Declare.
1272 * explow.c (emit_stack_probe): Make global.
1273 (anti_adjust_stack_and_probe): Fix comments.
1274 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1275 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1276 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1277 * config/sparc/sparc.c: Include except.h.
1278 (sparc_emit_probe_stack_range): New function.
1279 (output_probe_stack_range): Likewise.
1280 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
1281 built-in stack checking is enabled.
1282 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
1283 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1284 (probe_stack_range): New insn.
1286 2010-07-02 Richard Guenther <rguenther@suse.de>
1289 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
1290 for argument alignment.
1292 2010-07-02 Jan Hubicka <jh@suse.cz>
1294 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
1295 walk backwards from entry_bb to check only those basic block of header
1296 that might lead to execution of split part.
1297 (consider_split) ... here.
1298 (find_return_bb): Allow assignment in return BB.
1300 (split_function): Fix name of cloned function; take care of updating
1301 return value in return_bb containing move.
1303 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
1306 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
1309 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1311 * implicit-zee.c (combine_reaching_defs): Fix long lines.
1312 (is_set_with_extension_DI): Delete.
1313 (struct zero_extend_info): New structure.
1314 (add_removable_zero_extend): New function.
1315 (find_removable_zero_extends): Use note_stores to find SETs.
1316 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
1318 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1320 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
1321 is_miss_rate_acceptable. Pull total_positions computation
1322 out of the loops. Early return if miss_positions exceeds
1323 the acceptable threshold.
1324 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
1325 is_miss_rate_acceptable after renaming of compute_miss_rate.
1327 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1330 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
1331 of 1000) for miss rate if the address diference is greater than or
1332 equal to the cache line size (the two reference will never hit the
1335 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
1338 * config/arm/arm-modes.def (CC_NOTB): New mode.
1339 * config/arm/arm.c (get_arm_condition_code): Handle it.
1340 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
1341 * config/arm/arm.md (subsi3_compare0_c): New pattern.
1342 (compare_scc): Now a define_and_split. Add a number of extra
1343 splitters before it.
1346 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
1348 (arm_rtx_costs_1): Likewise.
1349 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1350 * config/arm/arm.md (is_arch6): New attribute.
1351 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1352 extendqisi2): Tighten the code somewhat, avoiding invalid
1353 RTL to occur in the expander patterns.
1354 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1355 (thumb1_zero_extendhisi2_v6): Delete.
1356 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1357 (thumb1_extendhisi2_v6): Delete.
1358 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1359 (thumb1_extendqisi2_v6): Delete.
1360 (zero_extendhisi2 for register input splitter): New.
1361 (zero_extendqisi2 for register input splitter): New.
1362 (thumb1_extendhisi2 for register input splitter): New.
1363 (extendhisi2 for register input splitter): New.
1364 (extendqisi2 for register input splitter): New.
1365 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1366 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1367 and add support for a register alternative requiring a split.
1368 (thumb1_zero_extendqisi2): Likewise.
1369 (arm_zero_extendqisi2): Likewise.
1370 (arm_extendhisi2): Likewise.
1371 (arm_extendqisi2): Likewise.
1373 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1375 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1376 instead of an unspec.
1377 (neon_expand_vector_init): Likewise.
1378 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1379 (UNSPEC_VDUP_LANE): Delete.
1380 (UNSPEC VDUP_N): Delete.
1381 (UNSPEC_VGET_HIGH): Delete.
1382 (UNSPEC_VGET_LANE): Delete.
1383 (UNSPEC_VGET_LOW): Delete.
1384 (UNSPEC_VMVN): Delete.
1385 (UNSPEC_VSET_LANE): Delete.
1386 (V_double_vector_mode): New.
1387 (vec_set<mode>_internal): Make code emitted match that for the
1388 corresponding intrinsics.
1389 (vec_setv2di_internal): Likewise.
1390 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1391 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1392 (neon_vset_lane<mode>): Combine double and quad patterns and
1393 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1394 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1395 (neon_vdup_n<mode>): Rewrite RTL without unspec.
1396 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1397 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1398 with neon_vdup_lanev2di, adjusting the pattern from the latter
1399 to be predicable for consistency.
1400 (neon_vdup_lane<mode>_internal): New.
1401 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1402 to avoid using an unspec.
1403 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1404 (neon_vdup_lanev2di): Turn into a define_expand.
1405 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1406 (neon_vget_high<mode>): Replace with....
1407 (neon_vget_highv16qi): New pattern using canonical RTL.
1408 (neon_vget_highv8hi): Likewise.
1409 (neon_vget_highv4si): Likewise.
1410 (neon_vget_highv4sf): Likewise.
1411 (neon_vget_highv2di): Likewise.
1412 (neon_vget_low<mode>): Replace with....
1413 (neon_vget_lowv16qi): New pattern using canonical RTL.
1414 (neon_vget_lowv8hi): Likewise.
1415 (neon_vget_lowv4si): Likewise.
1416 (neon_vget_lowv4sf): Likewise.
1417 (neon_vget_lowv2di): Likewise.
1419 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1420 test for this emitting vmov.
1421 (Vset_lane): Likewise.
1425 * doc/arm-neon-intrinsics.texi: Regenerated.
1427 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1429 * config/arm/neon.md (vec_extractv2di): Correct error in register
1430 numbering to reconcile with neon_vget_lanev2di.
1432 2010-07-02 Richard Guenther <rguenther@suse.de>
1434 * tree-ssa-structalias.c (pt_solution_set_var): New function.
1435 * tree-ssa-alias.h (pt_solution_set_var): Declare.
1436 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1437 points-to information.
1439 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
1441 * config/s390/s390.c (override_options): Adopt prefetching
1442 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1444 2010-07-02 Jan Hubicka <jh@suse.cz>
1446 * df-problems.c (df_kill_notes): Do not collect dead notes.
1447 (df_set_note): Just call add_reg_note.
1448 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1449 df_create_unused_note): Do not deal with lists of old notes.
1450 (df_note_bb_compute): Likewise.
1452 2010-07-02 Richard Guenther <rguenther@suse.de>
1454 * tree-ssa-structalias.c (find_func_aliases): Handle
1455 pointer alignment via BIT_AND_EXPR.
1456 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1458 2010-07-02 Richard Guenther <rguenther@suse.de>
1460 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1461 mismatching number of dimensions properly.
1463 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1466 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1467 (lo_sum (high ...) ...) patterns generated by earlier passes.
1469 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1471 * doc/install.texi (Prerequisites): Document Perl requirement on
1473 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1475 2010-07-02 Richard Guenther <rguenther@suse.de>
1478 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1480 2010-07-02 Jan Hubicka <jh@suse.cz>
1483 * predict.c (predict_paths_for_bb): Handle case when control dependence
1484 BB has only abnormal edges.
1486 2010-07-02 Richard Guenther <rguenther@suse.de>
1488 PR tree-optimization/44748
1489 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1490 the embedded conversion in MEM_REFs.
1492 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
1494 * reload.c: Include toplev.h.
1495 * recog.c: Likewise.
1496 * Makefile.in: Adjust dependencies.
1498 2010-07-01 Jakub Jelinek <jakub@redhat.com>
1501 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1502 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1504 2010-07-01 Richard Guenther <rguenther@suse.de>
1506 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1509 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
1512 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1515 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
1518 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1519 Make sure operand 0 dies.
1521 2010-07-01 Richard Guenther <rguenther@suse.de>
1525 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1526 * doc/generic.texi (References to storage): Document MEM_REF.
1527 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1528 (print_call_name): Likewise.
1529 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1530 (build_simple_mem_ref_loc): New function.
1531 (mem_ref_offset): Likewise.
1532 * tree.h (build_simple_mem_ref_loc): Declare.
1533 (build_simple_mem_ref): Define.
1534 (mem_ref_offset): Declare.
1535 * fold-const.c: Include tree-flow.h.
1536 (operand_equal_p): Handle MEM_REF.
1537 (build_fold_addr_expr_with_type_loc): Likewise.
1538 (fold_comparison): Likewise.
1539 (fold_unary_loc): Fold
1540 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1541 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1542 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1543 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1544 (ptr_deref_may_alias_ref_p_1): Likewise.
1545 (ao_ref_base_alias_set): Properly differentiate base object for
1547 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1548 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1549 (indirect_refs_may_alias_p): Likewise.
1550 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
1552 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1553 (call_may_clobber_ref_p_1): Likewise.
1554 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1555 * expr.c (expand_assignment): Handle MEM_REF.
1556 (store_expr): Handle MEM_REFs from STRING_CSTs.
1557 (store_field): If expanding a MEM_REF of a non-addressable
1558 decl use bitfield operations.
1559 (get_inner_reference): Handle MEM_REF.
1560 (expand_expr_addr_expr_1): Likewise.
1561 (expand_expr_real_1): Likewise.
1562 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1563 * alias.c (ao_ref_from_mem): Handle MEM_REF.
1564 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
1565 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1566 (dr_analyze_indices): Likewise.
1567 (dr_analyze_alias): Likewise.
1568 (object_address_invariant_in_loop_p): Likewise.
1569 * gimplify.c (mark_addressable): Handle MEM_REF.
1570 (gimplify_cond_expr): Build MEM_REFs.
1571 (gimplify_modify_expr_to_memcpy): Likewise.
1572 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1573 (gimple_fold_indirect_ref): Adjust.
1574 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
1575 * tree.def (MEM_REF): New tree code.
1576 * tree-dfa.c: Include toplev.h.
1577 (get_ref_base_and_extent): Handle MEM_REF.
1578 (get_addr_base_and_unit_offset): New function.
1579 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1580 * gimple-fold.c (may_propagate_address_into_dereference): Handle
1582 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1583 accesses if the array has just one dimension. Remove always true
1584 parameter. Do not require type compatibility here.
1585 (maybe_fold_offset_to_component_ref): Remove.
1586 (maybe_fold_stmt_indirect): Remove.
1587 (maybe_fold_reference): Remove INDIRECT_REF handling.
1588 Fold back to non-MEM_REF.
1589 (maybe_fold_offset_to_address): Simplify. Deal with type
1591 (maybe_fold_reference): Likewise.
1592 (maybe_fold_stmt_addition): Likewise. Also handle
1593 &ARRAY + I in addition to &ARRAY[0] + I.
1594 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1595 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1596 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1597 * tree-ssa.c (useless_type_conversion_p): Make most pointer
1598 conversions useless.
1599 (warn_uninitialized_var): Handle MEM_REF.
1600 (maybe_rewrite_mem_ref_base): New function.
1601 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1603 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1604 INDIRECT_REF handling.
1605 (copy_tree_body_r): Handle MEM_REF.
1606 * gimple.c (is_gimple_addressable): Adjust.
1607 (is_gimple_address): Likewise.
1608 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1609 invariant base are invariant.
1610 (is_gimple_min_lval): Adjust.
1611 (is_gimple_mem_ref_addr): New function.
1612 (get_base_address): Handle MEM_REF.
1613 (count_ptr_derefs): Likewise.
1614 (get_base_loadstore): Likewise.
1615 * gimple.h (is_gimple_mem_ref_addr): Declare.
1616 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1617 * tree-cfg.c (verify_address): New function, split out from ...
1618 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
1619 the address operand of MEM_REFs. Verify MEM_REFs. Reject
1621 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
1622 INDIRECT_REF. Allow conversions.
1623 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1624 a register does not change its size.
1625 (verify_types_in_gimple_reference): Verify MEM_REF.
1626 (verify_gimple_assign_single): Disallow INDIRECT_REF.
1628 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1630 (mark_address_taken): Handle MEM_REF.
1631 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1632 (get_asm_expr_operands): Pass opf_not_non_addressable.
1633 (get_expr_operands): Handle opf_[not_]non_addressable.
1634 Handle MEM_REF. Remove INDIRECT_REF handling.
1635 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1636 (search_for_addr_array): Likewise.
1637 (check_array_bounds): Likewise.
1638 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1639 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1640 (ref_always_accessed_p): Likewise.
1641 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
1642 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1644 * cgraphbuild.c (mark_load): Properly check for NULL result
1645 from get_base_address.
1646 (mark_store): Likewise.
1647 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1648 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1649 handling for MEM_REF.
1650 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1651 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1652 * builtins.c (stabilize_va_list_loc): Use the function ABI
1653 valist type if we couldn't canonicalize the argument type.
1654 Always dereference with the canonical va-list type.
1655 (maybe_emit_free_warning): Handle MEM_REF.
1656 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1658 * builtins.c (fold_builtin_memory_op): Use ref-all types
1659 for all memcpy foldings.
1660 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1661 (build_outer_var_ref): Likewise.
1662 (scan_omp_1_op): Likewise.
1663 (lower_rec_input_clauses): Likewise.
1664 (lower_lastprivate_clauses): Likewise.
1665 (lower_reduction_clauses): Likewise.
1666 (lower_copyprivate_clauses): Likewise.
1667 (expand_omp_atomic_pipeline): Likewise.
1668 (expand_omp_atomic_mutex): Likewise.
1669 (create_task_copyfn): Likewise.
1670 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1671 Remove old union trick. Initialize constant offsets.
1672 (ao_ref_init_from_vn_reference): Likewise. Do not handle
1673 INDIRECT_REF. Init base_alias_set properly.
1674 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1675 (vn_reference_fold_indirect): Adjust for MEM_REFs.
1676 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
1678 (may_insert): Remove.
1679 (visit_reference_op_load): Do not test may_insert.
1680 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1681 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1682 a field to store the constant offset this op applies.
1683 (run_scc_vn): Adjust prototype.
1684 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1685 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1686 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
1687 bother about volatile qualifiers on pointers.
1688 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1689 * tree-ssa-loop-ivopts.c
1690 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1691 (strip_offset_1): Likewise.
1692 (find_interesting_uses_address): Replace INDIRECT_REF handling with
1694 (get_computation_cost_at): Likewise.
1695 * ipa-pure-const.c (check_op): Handle MEM_REF.
1696 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1697 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1699 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1700 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1701 (eliminate_local_variables_1): Likewise.
1702 (create_call_for_reduction_1): Likewise.
1703 (create_loads_for_reductions): Likewise.
1704 (create_loads_and_stores_for_name): Likewise.
1705 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1706 (ssa_accessed_in_tree): Handle MEM_REF.
1707 (ssa_accessed_in_assign_rhs): Likewise.
1708 (update_type_size): Likewise.
1709 (analyze_accesses_for_call_stmt): Likewise.
1710 (analyze_accesses_for_assign_stmt): Likewise.
1711 (transform_access_sites): Likewise.
1712 (transform_allocation_sites): Likewise.
1713 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1714 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1715 not handle INDIRECT_REF.
1716 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1717 (cond_store_replacement): Likewise.
1718 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1719 MEM_REF, no not handle INDIRECT_REFs.
1720 (insert_into_preds_of_block): Properly initialize avail.
1721 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
1722 for ARRAY_REFs. Properly handle reference lookups that
1723 require a bit re-interpretation.
1724 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
1725 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1726 (build_ref_for_offset_1): Remove.
1727 (build_ref_for_offset): Build MEM_REFs.
1728 (gate_intra_sra): Disable for now.
1729 (sra_ipa_modify_expr): Handle MEM_REF.
1730 (ipa_early_sra_gate): Disable for now.
1731 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1733 (disqualify_base_of_expr): Likewise.
1734 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1736 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1737 Use mem_ref_offset. Remove bogus folding.
1738 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1739 (make_fancy_name_1): Add support for MEM_REF.
1740 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1741 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1742 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1743 (compute_complex_ancestor_jump_func): Likewise.
1744 (ipa_analyze_virtual_call_uses): Likewise.
1745 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1746 INDIRECT_REF folding with more generalized MEM_REF folding.
1747 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1748 (forward_propagate_addr_into_variable_array_index): Also handle
1749 &ARRAY + I in addition to &ARRAY[0] + I.
1750 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1751 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1752 creates assignments with overlap.
1753 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1754 (get_frame_field): Likewise.
1755 (get_nonlocal_debug_decl): Likewise.
1756 (convert_nonlocal_reference_op): Likewise.
1757 (struct nesting_info): Add mem_refs pointer-set.
1758 (create_nesting_tree): Allocate it.
1759 (convert_local_reference_op): Insert to be folded mem-refs.
1760 (fold_mem_refs): New function.
1761 (finalize_nesting_tree_1): Perform defered folding of mem-refs
1762 (free_nesting_tree): Free the pointer-set.
1763 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1764 (vectorizable_load): Likewise.
1765 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1766 (propagate_with_phi): Likewise.
1767 * tree-object-size.c (addr_object_size): Handle MEM_REFs
1768 instead of INDIRECT_REFs.
1769 (compute_object_offset): Handle MEM_REF.
1770 (plus_stmt_object_size): Handle MEM_REF.
1771 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1773 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1774 (symbol_marked_for_renaming): Likewise.
1775 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1776 (fold-const.o): Add $(TREE_FLOW_H).
1777 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1778 (find_func_clobbers): Likewise.
1779 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1780 (decompose_access): Likewise.
1781 (replace_field_acc): Likewise.
1782 (replace_field_access_stmt): Likewise.
1783 (insert_new_var_in_stmt): Likewise.
1784 (get_stmt_accesses): Likewise.
1785 (reorg_structs_drive): Disable.
1786 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1787 (ix86_canonical_va_list_type): Likewise.
1789 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1792 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1793 * target.def (struct gcc_target): Replace enum reg_class with
1794 reg_class_t in hook argument / return types.
1795 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1796 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1797 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1798 * targhooks.h (default_branch_target_register_class): Likewise.
1799 (default_ira_cover_classes, default_secondary_reload): Likewise.
1800 (default_memory_move_cost, default_register_move_cost): Likewise.
1801 * targhooks.c (default_branch_target_register_class): Likewise.
1802 (default_ira_cover_classes, default_secondary_reload): Likewise.
1803 (default_memory_move_cost, default_register_move_cost): Likewise.
1804 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1805 * bt-load.c (branch_target_load_optimize): Likewise.
1806 * ira.c (setup_cover_and_important_classes): Likewise.
1807 * ira-costs.c (copy_cost): Likewise.
1808 * reload1.c (emit_input_reload_insns): Likewise.
1809 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1810 * config/frv/frv.c (frv_secondary_reload): Likewise.
1811 * config/s390/s390.c (s390_secondary_reload): Likewise.
1812 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1813 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1814 (ix86_register_move_cost): Likewise.
1815 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1816 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1817 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1818 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1819 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1820 (rs6000_ira_cover_classes): Likewise.
1821 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1822 * config/picochip/picochip-protos.h (picochip_secondary_reload):
1824 * config/pa/pa.c (pa_secondary_reload): Likewise.
1825 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1826 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1827 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1828 * doc/tm.texi: Regenerate.
1830 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
1833 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1835 (build_alias_set_optimal_p): Likewise.
1836 (build_base_obj_set_for_drs): Likewise.
1838 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1840 * target.def: Remove comment about licensing problems of function
1843 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
1844 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1845 * doc/tm.texi: Regenerate.
1847 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
1848 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1850 * target.def (enum_va_list_p): Use DEFHOOK.
1851 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1852 Rename ptype to ptree.
1853 * doc/tm.texi: Regenerate.
1855 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
1856 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1857 * doc/tm.texi: Regenerate.
1859 * target.def (memory_move_cost): Use DEFHOOK.
1860 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1861 Rename regclass AKA class to rclass.
1862 * doc/tm.texi: Regenerate.
1864 * target.def (pragma_parse): Use DEFHOOK.
1865 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1866 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1867 * doc/tm.texi: Regenerate.
1869 * target.def (pass_by_reference): Use DEFHOOK.
1870 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1871 * doc/tm.texi: Regenerate.
1873 * target.def (resolve_overloaded_builtin): Rename params to arglist.
1875 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1876 * doc/tm.texi: Regenerate.
1878 * target.def (return_pops_args): Use DEFHOOK.
1879 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1880 Rename stack-size to size.
1881 * doc/tm.texi: Regenerate.
1883 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
1884 last-sched_cycle to last_clock, cur_cycle to clock.
1885 * doc/tm.texi.in: Use @hook.
1886 * doc/tm.texi: Regenerate.
1888 * target.def (print_operand, print_operand_address): Update comment.
1889 (print_operand_punct_valid_p): Likewise.
1891 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1893 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1895 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1896 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1898 * regrename.c: Do not include toplev.h. Include rtl-error.h.
1899 * rtl-error.c: Likewise.
1900 * reload.c: Likewise.
1901 * recog.c: Likewise.
1902 * sel-sched.c: Likewise.
1903 * function.c: Likewise.
1904 * reg-stack.c: Likewise.
1905 * cfgrtl.c: Likewise.
1906 * reload1.c: Likewise.
1907 * final.c: Include rtl-error.
1908 * Makefile.in: Adjust dependencies.
1910 2010-06-30 Jan Hubicka <jh@suse.cz>
1912 PR middle-end/PR44706
1913 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1914 to return the value.
1916 2010-06-30 Michael Matz <matz@suse.de>
1919 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1920 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1921 a gimple reg, attach the original VDEF to the last store in the
1924 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
1927 * config/darwin.c (darwin_override_options): Use renamed
1928 targetm.asm_out.emit_unwind_label.
1930 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1932 PR tree-optimization/39799
1933 * tree-inline.c (remap_ssa_name): Initialize variable only if
1934 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1936 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
1938 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1940 2010-06-30 Richard Guenther <rguenther@suse.de>
1943 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1944 against oscillation with reverse peephole2.
1946 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
1949 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1952 2010-06-30 Nick Clifton <nickc@redhat.com>
1954 * config/rx/rx-modes.def: New file.
1955 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1956 (CC_REGNUM): Define.
1957 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1959 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1960 (SELECT_CC_MODE): Define.
1961 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
1962 (reg:CC CC_REG) instead of (cc0).
1963 (attr "cc"): Delete.
1964 (cbranchsi4): Do not split compare and branch here. Instead move
1966 (cbranchsi4_<code>): ... here. New patterns.
1967 (cmpsi): Call rx-compare_redundant to find out if it is necessary
1968 to emit the compare instruction.
1969 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1971 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1972 FIRST_PSEUDO_REGNUM.
1973 (rx_expand_prologue, rx_expand_epilogue): Likewise.
1974 (rx_notice_update_cc): Delete.
1975 (rx_cc_modes_compatible): New function.
1976 (flags_needed_for_conditional): New function.
1977 (flags_from_mode): New function.
1978 (rx_compare_redundant): New function - scans backwards through
1979 insn list to find out if condition flags are already set correctly.
1980 (TARGET_CC_MODES_COMPATIBLE): Define.
1981 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1983 * config/rx/rx.h (BRANCH_COST): Define.
1984 (REGISTER_MOVE_COST): Define.
1985 * config/rx/predicates (rx_source_operand): Allow all constant types.
1986 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1987 (tstsi4): New pattern.
1988 * config/rx/rx.c (rx_memory_move_cost): Define.
1989 (TARGET_MEMORY_MOVE_COST): Define.
1991 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1993 * tree.h (block_may_fallthru): Declare here.
1994 * tree-flow.h (block_may_fallthru): Do not declare here.
1995 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1997 * Makefile.in (c-typeck.o): Update dependencies.
1999 2010-06-30 Jakub Jelinek <jakub@redhat.com>
2002 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2003 * cselib.c (cfa_base_preserved_regno): New static variable.
2004 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2005 of REGNO (cfa_base_preserved_val->locs->loc).
2006 (cselib_preserve_cfa_base_value): Add regno argument, set
2007 cfa_base_preserved_regno to it.
2008 (cselib_invalidate_regno): Allow removal of registers other than
2009 cfa_base_preserved_regno from cfa_base_preserved_val.
2010 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2011 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2012 of MEM addresses, if not on LHS.
2013 (reverse_op): Don't add reverse ops for cfa_base_rtx.
2014 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2016 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2018 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2020 (peep2_buf_position): New static function.
2021 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2022 peephole2_optimize): Use it.
2023 (peep2_attempt, peep2_update_life): New static functions, broken out
2024 of peephole2_optimize.
2025 (peep2_fill_buffer): New static function.
2026 (peephole2_optimize): Change the main loop to try to fill the buffer
2027 with the maximum number of insns before matching them against
2028 peepholes. Use a forward scan. Remove special case for targets with
2029 conditional execution.
2030 * genrecog.c (change_state): Delete dead code.
2031 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2032 Rewrite so as not to expect the second insn to have had a peephole
2035 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2037 * genhooks.c (emit_findices): Cast field precision to int.
2038 (emit_documentation): Likewise.
2040 2010-06-29 Jakub Jelinek <jakub@redhat.com>
2042 PR tree-optimization/43801
2043 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2044 if old_decl was DECL_ONE_ONLY.
2047 * dwarf2out.c (add_accessibility_attribute): New function.
2048 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2049 instead of adding DW_AT_accessibility manually.
2050 (gen_enumeration_type_die, gen_struct_or_union_type_die,
2051 gen_typedef_die): Use it.
2053 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2055 * vmsdbgout.c (full_name): Just output the file name if not native.
2057 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2059 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2060 (funcnam_table): New static table.
2061 (funcnum_table): New static table.
2062 (write_rtnbeg): Write value saved in funcnum_table.
2063 (write_rtnend): Write value saved in funcnum_table.
2064 (vmsdbgout_begin_function): Save current function info in
2065 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2066 (vmsdbgout_finish): Iterate over funcnum_table.
2068 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2070 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2071 (vmsdbgout_type_decl): Declare
2072 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2073 (FUNC_EPILOGUE_LABEL): New macro
2074 (vmsdbgout_begin_epilogue): New function.
2075 (vmsdbgout_type_decl): New function.
2077 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2079 * vmsdbg.h: Update copyright.
2081 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2083 * vmsdbg.h (DST_K_TBG): New DST constant.
2084 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2085 (write_modbeg): Cast module_language to avoid warning.
2086 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2088 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2091 * target.def, doc/tm.texi.in, genhooks.c: New files.
2092 * target.h: Instead of defining individual hook members,
2093 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2095 * target-def.h: Instead of defining individual hook initializers,
2096 include target-hooks-def.h.
2097 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2098 targetm.live_on_entry -> targetm.extra_live_on_entry
2099 targetm.sched.md_finish ->targetm.sched.finish
2100 targetm.sched.md_init -> targetm.sched.init
2101 targetm.sched.md_init_global -> targetm.sched.init_global
2102 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2103 targetm.asm_out.except_table_label ->
2104 targetm.asm_out.emit_except_table_label
2105 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2106 targetm.target_help -> targetm.help
2107 targetm.vectorize.builtin_support_vector_misalignment ->
2108 targetm.vectorize.support_vector_misalignment
2109 targetm.file_start_app_off -> targetm.asm_file_start_app_off
2110 targetm.file_start_file_directive ->
2111 targetm.asm_file_start_file_directive
2112 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2113 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2114 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2115 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2116 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2117 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2118 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2119 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2120 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2121 * Makefile.in (TARGET_H): Depend on target.def.
2122 (TARGET_DEF_H): Depend on target-hooks-def.h.
2123 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2124 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2125 * doc/tm.texi: Regenerate.
2127 * Makefile.in (s-tm-texi): Remove stray tab / rule.
2129 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2130 (targetm.sched.init): Likewise.
2132 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2135 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2136 (function_arg_advance_32): Const-ify TYPE parameter.
2137 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
2138 (ix86_function_arg_advance): Change type of NAMED to bool.
2139 (function_arg_32): Const-ify CUM and TYPE parameters.
2140 (function_arg_64): Likewise. Change type of NAMED to bool.
2141 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2143 (ix86_function_arg): Change type of NAMED to bool.
2144 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
2145 last argument as a bool.
2147 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2149 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2150 (OVERRIDE_OPTIONS): Add note of obsolescence.
2151 Replace references with references to TARGET_OPTION_OVERRIDE.
2152 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2154 * targhooks.c (default_target_option_override): New function.
2155 * targhooks.h (default_target_option_override): Declare.
2156 * target.h (struct gcc_target): Add override member to
2157 target_option member.
2158 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2159 targetm.target_option.override call.
2160 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2161 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2163 2010-06-29 Jan Hubicka <jh@suse.cz>
2165 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2167 2010-06-29 Jan Hubicka <jh@suse.cz>
2169 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2171 (rebuild_frequencies): New function.
2172 * predict.h (rebuild_frequencies): Declare.
2173 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2174 entry block and edge reaching new_entry.
2175 (tree_function_versioning): When doing partial cloning, rebuild
2176 frequencies when done.
2177 * passes.c (execute_function_todo): Use rebild_frequencies.
2179 2010-06-29 Richard Guenther <rguenther@suse.de>
2181 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2182 * tree-flow.h (enum noalias_state): Remove.
2183 (struct var_ann_d): Remove noalias_state member.
2185 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2188 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2189 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
2190 (maddhidi4): Likewise.
2192 Revert parts of the change for PR25130.
2193 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2196 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2198 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2199 targetm.calls.function_incoming_arg, and
2200 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2201 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2202 * target.h (struct gcc_target): Add function_arg_advance,
2203 function_arg, and function_incoming_arg fields.
2204 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2205 (TARGET_FUNCTION_INCOMING_ARG): Define.
2206 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2207 and TARGET_FUNCTION_INCOMING_ARG.
2208 * targhooks.h (default_function_arg_advance): Declare.
2209 (default_function_arg, default_function_incoming_arg): Declare.
2210 * targhooks.c (default_function_arg_advance): New function.
2211 (default_function_arg, default_function_incoming_arg): New function.
2212 * config/i386/i386.c (function_arg_advance): Rename to...
2213 (ix86_function_arg_advance): ...this. Make static.
2214 (function_arg): Rename to...
2215 (ix86_function_arg): ...this. Make static.
2216 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2217 (TARGET_FUNCTION_ARG): Define.
2218 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2219 (FUNCTION_ARG): Delete.
2220 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2221 (function_arg): Delete prototype.
2223 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2225 * reginfo.c (init_reg_sets_1): Adjust comments.
2226 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2227 * calls.c (prepare_call_address): Likewise.
2228 (emit_call_1): Use targetm.calls.return_pops_args.
2229 (expand_call): Likewise.
2230 * function.c (assign_parms): Likewise.
2231 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2232 * target.h (struct gcc_target) [struct calls]: Add
2233 return_pops_args field.
2234 * targhooks.h (default_return_pops_args): Declare.
2235 * targhooks.c (default_return_pops_args): Define.
2236 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2237 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2238 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2239 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
2241 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2242 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2243 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2244 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2245 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2246 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2247 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2248 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2249 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2250 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2251 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2252 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2253 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2254 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2255 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2256 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2257 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2258 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2259 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2260 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2261 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2262 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2263 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2264 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2265 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2266 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2267 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2268 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
2269 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
2270 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
2271 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
2272 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
2273 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
2274 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
2275 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
2276 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
2277 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
2278 * config/i386/i386.c (ix86_return_pops_args): Make static.
2280 (TARGET_RETURN_POPS_ARGS): Define.
2281 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
2282 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
2283 (TARGET_RETURN_POPS_ARGS): Define.
2284 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
2285 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
2286 (TARGET_RETURN_POPS_ARGS): Define.
2288 2010-06-29 Richard Guenther <rguenther@suse.de>
2291 * tree-inline.c (initialize_inlined_parameters): Make sure
2292 to remap the inlined parameter variable substitutions types.
2294 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
2296 PR rtl-optimization/44659
2297 * combine.c (make_compound_operation) <SUBREG>: Do not return the
2298 result of force_to_mode if it partially re-expanded the compound.
2300 2010-06-28 Jan Hubicka <jh@suse.cz>
2303 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
2306 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2308 * double-int.h (force_fit_type_double): Remove declaration.
2309 * double-int.c (force_fit_type_double): Move to tree.c.
2310 * tree.h (force_fit_type_double): Declare.
2311 * tree.h (force_fit_type_double): Moved from double-int.c. Use
2312 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
2313 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
2314 * convert.c (convert_to_pointer): Adjust call to
2315 force_fit_type_double.
2316 * tree-vrp.c (extract_range_from_assert,
2317 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
2318 * fold-const.c: Update comment.
2319 (int_const_binop, fold_convert_const_int_from_int,
2320 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
2321 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
2322 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
2323 round_up_loc): Adjust call to force_fit_type_double.
2325 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2327 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
2329 2010-06-28 Martin Jambor <mjambor@suse.cz>
2331 * tree-sra.c (convert_callers): New parameter, change fndecls of
2333 (modify_function): Pass the old decl to convert_callers.
2335 2010-06-28 Martin Jambor <mjambor@suse.cz>
2337 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
2338 ipa_check_create_node_params and ipa_initialize_node_params with
2339 checking asserts they are not necessary.
2341 2010-06-28 Jan Hubicka <jh@suse.cz>
2343 PR tree-optimization/44687
2344 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
2346 2010-06-28 Martin Jambor <mjambor@suse.cz>
2349 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2350 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2351 instead of BINFO_BASE_BINFO.
2353 2010-06-28 Michael Matz <matz@suse.de>
2356 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2357 proper VDEF chain for intermediate stores in the sequence.
2359 2010-06-28 Jan Hubicka <jh@suse.cz>
2361 PR tree-optimization/44357
2362 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2363 uninlinable functions.
2365 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2367 * config.gcc (powerpc*-*-*): Handle titan.
2368 * config/rs6000/rs6000.c (titan_cost): New costs.
2369 (rs6000_override_options): Add "titan" to processor_target_table.
2370 Add Titan to branch alignment logic.
2371 Correctly set rs6000_cost for titan.
2372 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
2373 * config/rs6000/titan.md: New file.
2374 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2376 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2378 * tree-browser.c (TB_history_stack): Convert to a VEC.
2379 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2380 (TB_history_prev): Likewise.
2382 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2384 * vec.h (vec_heap_free): Add parentheses around free.
2386 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2388 * system.h: Poison GCC_EXCEPT_H for front-end files.
2390 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2392 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2393 Define to NULL by default.
2394 * except.h: Define GCC_EXCEPT_H.
2395 (doing_eh): Remove prototype.
2396 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2397 (lang_protect_cleanup_actions): Remove.
2398 * except.c (lang_protect_cleanup_actions): Remove.
2400 (gen_eh_region): Don't check doing_eh here.
2401 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2402 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2403 instead of lang_protect_cleanup_actions.
2404 * omp-low.c (maybe_catch_exception): Likewise.
2405 * Makefile.in: Update dependencies.
2407 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
2409 * cgraph.h (struct varpool_node): new used_from_object_file flag.
2410 (struct cgraph_local_info): new used_from_object_file flag.
2411 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2412 (cgraph_clone_node): initialize used_from_object_file.
2413 (cgraph_create_virtual_clone): initialize used_from_object_file.
2414 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2415 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2416 when compiling with -fwhole-program.
2417 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2419 * ipa.c (function_and_variable_visibility): Set externally_visible
2420 flag of varpool_node if used_from_object_file flag is set.
2421 (cgraph_externally_visible_p): check used_from_object_file flag.
2422 * doc/invoke.texi (-fwhole-program option): Change description of
2423 externally_visible attribute accordingly.
2424 * doc/extend.texi (externally_visible): Ditto.
2426 2010-06-27 Jan Hubicka <jh@suse.cz>
2428 * params.def (max-inline-insns-auto): Default to 40.
2429 * doc/invoke.texi (max-inline-insns-auto): Document the change.
2431 2010-06-27 Jan Hubicka <jh@suse.cz>
2435 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2437 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2438 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2440 2010-06-27 Anatoly Sokolov <aesok@post.ru>
2442 * target.h (struct gcc_target): Add register_move_cost field.
2443 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2444 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2445 * targhooks.c (default_register_move_cost): New function.
2446 * targhooks.h (default_register_move_cost): Declare function.
2447 * defaults.h (REGISTER_MOVE_COST): Delete.
2448 * ira-int.h (ira_register_move_cost): Update comment.
2449 * ira.c: (ira_register_move_cost): Update comment.
2450 * reload.h (register_move_cost): Declare.
2451 * reginfo.c (register_move_cost): New function.
2452 (move_cost): Update comment.
2453 (init_move_cost, memory_move_secondary_cost): Replace
2454 REGISTER_MOVE_COST with register_move_cost.
2455 * postreload.c (reload_cse_simplify_set): (Ditto.).
2456 * reload.c (find_valid_class, find_reloads): (Ditto.).
2457 * reload1.c (choose_reload_regs): (Ditto.).
2458 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2459 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2460 * doc/md.texi (can_create_pseudo_p): Update documentation.
2462 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2463 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2464 * config/i386/i386.h (ix86_memory_move_cost): Make static.
2465 (TARGET_MEMORY_MOVE_COST): Define.
2467 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2468 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2469 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2470 (TARGET_MEMORY_MOVE_COST): Define.
2472 2010-06-27 Richard Guenther <rguenther@suse.de>
2474 PR tree-optimization/44683
2475 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2476 false edge from the inverted condition.
2478 2010-06-27 Richard Guenther <rguenther@suse.de>
2481 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2482 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2483 for register LHS. Or non-store assignments.
2485 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
2487 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2488 (sparc_emit_set_const64): Likewise. Remove disabled code.
2489 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2490 (sparc_emit_set_const64): Likewise.
2492 2010-06-26 Catherine Moore <clm@codesourcery.com>
2494 * config/mips/mips.md (alu_type): New attribute.
2495 (type): Infer type from alu_type.
2496 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2497 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2498 *subsi3_extended, negsi2, negdi2, *low<mode>,
2499 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2500 xor<mode>3, *nor<mode>3,
2501 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2502 *zero_extendhi_truncqi): Set alu_type instead of type.
2504 2010-06-26 Douglas B Rupp <rupp@gnat.com>
2506 * config/alpha/alpha.c (alpha_need_linkage): Adjust
2507 splay_tree_new_ggc call.
2508 (alpha_use_linkage): Likewise.
2510 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2512 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2513 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2514 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2515 (static_specs): Remove switches_need_spaces.
2516 (process_command, do_self_spec): Hardcode handling "-o" instead of
2517 checking switches_need_spaces.
2518 * system.h (SWITCHES_NEED_SPACES): Poison.
2520 2010-06-26 Richard Guenther <rguenther@suse.de>
2522 PR tree-optimization/44393
2523 * tree-loop-distribution.c (generate_loops_for_partition): Fix
2524 stmt removal and VOP renaming.
2525 (generate_memset_zero): Remove redundant stmt updating.
2526 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2527 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2529 2010-06-26 Jan Hubicka <jh@suse.cz>
2531 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2532 edges comming from header are equivalent.
2533 (visit_bb): Handle PHIs correctly.
2534 * tree-inline.c (copy_phis_for_bb): Be able to copy
2535 PHI from entry edge.
2536 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2538 2010-06-26 Richard Guenther <rguenther@suse.de>
2541 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2542 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
2544 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2546 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2547 add_infile, alloc_switch): New.
2548 (process_command): Remove variable lang_n_infiles. Process
2549 options in a single pass. Use new functions for allocating
2550 infiles and switches arrays. Properly skip operands of
2551 -Xpreprocessor and -Xassembler.
2553 2010-06-26 Jan Hubicka <jh@suse.cz>
2556 * cgraphunit.c (cgraph_function_versioning): Remove wrong
2557 cgraph_make_decl_local call; fix typo copying RTL data.
2559 2010-06-25 DJ Delorie <dj@redhat.com>
2561 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2562 (m32c_output_aligned_common): Likewise.
2563 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2564 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2565 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2566 (m32c_register_pragmas): Register it.
2567 * config/m32c/m32c.c (m32c_get_pragma_address): New.
2568 (m32c_insert_attributes): Set #pragma address decls volatile.
2569 (pragma_entry_eq): New.
2570 (pragma_entry_hash): New.
2571 (m32c_note_pragma_address): New.
2572 (m32c_get_pragma_address): New.
2573 (m32c_output_aligned_common): New.
2574 * doc/extend.texi: Document the new pragma.
2576 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2578 * config/m32c/predicates.md (m32c_any_operand): Check the code
2579 instead of memory_operand so as to allow matching volatile MEMs.
2580 (m32c_nonimmediate_operand): Likewise.
2581 (mra_operand): Allow volatiles.
2583 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
2586 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2587 address if the offset is unknown.
2589 2010-06-25 Douglas B Rupp <rupp@gnat.com>
2591 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2592 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2593 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2594 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2595 to ia64_start_function. Invoke it.
2596 * config/ia64/ia64.c (ia64_start_function): Call new function
2597 dwarf2out_vms_debug_main_pointer.
2599 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2601 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2602 statements computing the true predicate.
2604 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2606 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2607 to boolean_true_node.
2608 (reset_bb_predicate): New.
2609 (predicate_bbs): Call reset_bb_predicate.
2611 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2613 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2614 (tree_if_conversion): Returns true when something has been changed.
2615 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2618 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2620 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2621 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2622 * tree-if-conv.c: Include dbgcnt.h.
2623 (tree_if_conversion): Use if_conversion_tree to count the number of
2624 if-convertible loops.
2626 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
2628 * common.opt (fprefetch-loop-arrays): Re-define
2629 -fprefetch-loop-arrays as a tri-state option with the initial
2631 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2632 pass only when flag_prefetch_loop_arrays > 0.
2633 * toplev.c (process_options): Note that, with tri-states,
2634 flag_prefetch_loop_arrays>0 means prefetching is enabled.
2635 * config/i386/i386.c (override_options): Enable prefetching at -O3
2636 for a set of CPUs that sw prefetching is helpful.
2637 (software_prefetching_beneficial_p): New. Return TRUE if software
2638 prefetching is beneficial for the given CPU.
2640 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
2642 PR rtl-optimization/44326
2643 * implicit-zee.c (find_removable_zero_extends): Replace
2644 INSN_P with NONDEBUG_INSN_P.
2646 2010-06-25 Martin Jambor <mjambor@suse.cz>
2648 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2649 (struct ipa_node_params): Removed the modification_analysis_done flag.
2650 (ipa_is_param_modified): Removed.
2651 (ipa_analyze_node): Declare.
2652 (ipa_compute_jump_functions): Remove declaration.
2653 (ipa_count_arguments): Likewise.
2654 (ipa_detect_param_modifications): Likewise.
2655 (ipa_analyze_params_uses): Likewise.
2656 * ipa-prop.c (struct param_analysis_info): New type.
2657 (visit_store_addr_for_mod_analysis): Removed.
2658 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2659 moved down in the file.
2660 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2661 (ipa_count_arguments): Made static.
2662 (mark_modified): New function.
2663 (is_parm_modified_before_call): New function.
2664 (compute_pass_through_member_ptrs): New parameter parms_info, call
2665 is_parm_modified_before_call instead of ipa_is_param_modified.
2666 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2667 it to compute_pass_through_member_ptrs.
2668 (ipa_compute_jump_functions): New parameter parms_info, pass it to
2669 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
2670 on the callee if it is analyzed. Made static.
2671 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2672 is_parm_modified_before_call instead of ipa_is_param_modified.
2673 (ipa_analyze_call_uses): New parameter parms_info, pass it to
2674 ipa_analyze_indirect_call_uses.
2675 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2676 ipa_analyze_call_uses.
2677 (ipa_analyze_params_uses): New parameter parms_info, pass it to
2678 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
2679 (ipa_analyze_node): New function.
2680 (ipa_print_node_params): Do not dump the modified flag.
2681 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2682 it. Do not stream the modified parameter flag.
2683 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2684 it. Do not stream the modified parameter flag.
2685 * ipa-cp.c (ipcp_analyze_node): Removed.
2686 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2687 with only a call to ipa_analyze_node.
2688 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2689 node with only a call to ipa_analyze_node.
2691 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2693 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2695 2010-06-25 Jan Hubicka <jh@suse.cz>
2697 * tree-pass.h (pass_split_functions): Declare.
2698 * opts.c (decode_options): Enable function splitting at -O2
2699 * timevar.def (TV_IPA_FNSPLIT): New macro.
2700 * ipa-split.c: New file.
2701 * common.opt (-fpartial-inlining): New flag.
2702 * Makefile.in (ipa-split.o): New object file.
2703 * passes.c (init_optimization_passes): Add ipa-split.
2704 * params.def (partial-inlining-entry-probability): New parameters.
2705 * doc/invoke.texi (-fpartial-inlining): New.
2707 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2710 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2711 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2712 (gimplify_expr): Likewise.
2714 2010-06-25 Martin Jambor <mjambor@suse.cz>
2716 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2717 statements instead of bailing out on them.
2718 (ipa_analyze_indirect_call_uses): Do not require that loads from the
2719 parameter are in the same BB as the condition. Update comments.
2721 2010-06-25 Jakub Jelinek <jakub@redhat.com>
2724 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2725 true or always false, return NULL_TREE.
2726 (tree_unswitch_single_loop): Optimize conditions even when reaching
2727 max-unswitch-level parameter. If num > 0, optimize first all conditions
2728 using entry checks, then do still reachable block discovery and consider
2729 only conditions in still reachable basic blocks in the loop.
2731 PR tree-optimization/44539
2732 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2733 the call doesn't have LHS, but has VDEF.
2735 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2737 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2738 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2739 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2740 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2741 * system.h (MODIFY_TARGET_NAME): Poison.
2743 2010-06-25 Alan Modra <amodra@gmail.com>
2745 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2746 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2747 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2748 CMODEL_LARGE as default.
2749 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2750 (offsettable_ok_by_alignment): Delete.
2751 (rs6000_emit_move): Remove mcmodel=medium optimization.
2753 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2755 With large parts from Jim Wilson:
2757 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2758 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2759 * optabs.c (optab_for_tree_code): Likewise.
2760 (expand_widen_pattern_expr): Likewise.
2761 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2762 out of execute_optimize_widening_mul.
2763 (convert_plusminus_to_widen): New function.
2764 (execute_optimize_widening_mul): Use the two new functions.
2765 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2766 Remove code to generate widening multiply-accumulate. Add support
2767 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2768 * gimple-pretty-print.c (dump_ternary_rhs): New function.
2769 (dump_gimple_assign): Call it when appropriate.
2770 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2771 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2772 (expand_gimple_stmt_1): Likewise.
2773 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2774 WIDEN_MULT_MINUS_EXPR.
2775 * tree-ssa-operands.c (get_expr_operands): Likewise.
2776 * tree-inline.c (estimate_operator_cost): Likewise.
2777 * gimple.c (extract_ops_from_tree_1): Renamed from
2778 extract_ops_from_tree. Add new arg for a third operand; fill it.
2779 (gimple_build_assign_stat): Support operations with three operands.
2780 (gimple_build_assign_with_ops_stat): Likewise.
2781 (gimple_assign_set_rhs_from_tree): Likewise.
2782 (gimple_assign_set_rhs_with_ops_1): Renamed from
2783 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
2784 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2785 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2786 WIDEN_MULT_MINUS_EXPR.
2787 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2788 (extract_ops_from_tree_1): Adjust declaration.
2789 (gimple_assign_set_rhs_with_ops_1): Likewise.
2790 (gimple_build_assign_with_ops): Pass NULL for last operand.
2791 (gimple_build_assign_with_ops3): New macro.
2792 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2793 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2795 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2796 (verify_gimple_assign): Call it.
2797 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2798 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2799 functions for dealing with three-operand statements.
2800 * tree.c (commutative_ternary_tree_code): New function.
2801 * tree.h (commutative_ternary_tree_code): Declare it.
2802 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2804 (gimple_assign_nonzero_warnv_p): Likewise.
2805 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2806 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2807 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
2808 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2809 (struct hashtable_expr): New member ternary in the union.
2810 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2811 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
2812 (iterative_hash_hashable_expr): Likewise.
2813 (print_expr_hash_elt): Handle EXPR_TERNARY.
2814 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2815 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2816 statements. Handle GIMPLE_TERNARY_RHS.
2818 2010-06-25 Jan Hubicka <jh@suse.cz>
2820 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2822 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
2825 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2826 parameters are not good.
2827 (c_parser_parameter_declaration): Error unknown type name if the type
2828 name can't start declaration specifiers.
2830 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2832 * gcc.c (translate_options): Don't mention +e in comment.
2833 (process_command): Don't handle +e specially.
2835 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2837 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2839 * ira-build.c (merge_hard_reg_conflicts): New function.
2840 (create_cap_allocno, copy_info_to_removed_store_destinations,
2841 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2842 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2843 (remove_unnecessary_allocnos, remove_low_level_allocnos)
2844 copy_nifo_to_removed_store_destination): Use them.
2845 * ira-lives.c (make_hard_regno_born): New function, split out of
2847 (make_allocno_born): Likewise.
2848 (make_hard_regno_dead): New function, split out of make_regno_dead.
2849 (make_allocno_dead): Likewise.
2850 (inc_register_pressure): New function, split out of set_allocno_live.
2851 (dec_register_pressure): New function, split out of clear_allocno_live.
2852 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2853 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
2854 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2855 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
2856 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2857 mark_pseudo_regno_live.
2858 (process_bb_node_lives): Use mark_pseudo_regno_live,
2859 make_hard_regno_born and make_allocno_dead.
2860 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2861 set_allocno_live, clear_allocno_live): Delete functions.
2863 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2864 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2866 (ira_flattening): Use ira_parent_allocno.
2867 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2868 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2870 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2873 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2874 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2875 minmax_set_iter_cond, minmax_set_iter_next,
2876 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2877 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2878 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2879 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
2882 * ira-int.h (struct live_range, live_range_t): Renamed from struct
2883 ira_allocno_live_range and allocno_live_range_t; all uses changed.
2884 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2887 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
2889 * thumb2.md (thumb2_tlobits_cbranch): Delete.
2890 (peephole2 to convert zero_extract/compare of single bit to
2891 lshift/compare): New.
2893 2010-06-24 Anatoly Sokolov <aesok@post.ru>
2895 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2896 recursive call and call to 'int_const_binop'.
2897 (build_range_check, fold_cond_expr_with_comparison, unextend,
2898 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2899 multiple_of_p): Adjust call to const_binop.
2901 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
2903 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2904 determine size of XFmode operand.
2905 (XFmode extended DFmode push splitter): Ditto.
2906 (XFmode extended SFmode push splitter): Ditto.
2908 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
2911 * config/i386/i386.md (extract_code): New.
2912 (<u>divmodqi4): Likewise.
2913 (divmodhiqi3): Likewise.
2914 (udivmodhiqi3): Likewise.
2915 (<u>divqi3): Remvoved.
2917 2010-06-24 Jakub Jelinek <jakub@redhat.com>
2920 * recog.h (struct recog_data): Add is_asm field.
2921 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2922 present in constraints of inline-asm operand and memory operand
2923 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2924 (extract_insn): Initialize recog_data.is_asm.
2925 * doc/md.texi (Constraints): Document operand side-effect rules.
2927 2010-06-24 Andi Kleen <ak@linux.intel.com>
2929 * c-parser.c (c_parser_conditional_expression): Call
2930 warn_for_omitted_condop.
2931 * doc/invoke.texi: Document omitted condop warning.
2933 2010-06-24 Nick Clifton<nickc@redhat.com>
2935 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2936 insn in the sequence is a jump insn before setting its label.
2938 2010-06-24 Alan Modra <amodra@gmail.com>
2940 * collect2.c (main): Match exactly --version and --help.
2942 2010-06-24 DJ Delorie <dj@redhat.com>
2944 * config/m32c/m32c-pragma.c: Don't include rtl.h.
2946 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
2948 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2949 using X87MODEF mode iterator.
2950 (pushsf splitter): Macroize splitter using P mode iterator.
2951 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2954 (*movxf_internal): Rename from *movxf_integer.
2955 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2956 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2957 (*movdf_internal): Rename from *movdf_integer.
2958 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2959 (*movsf_internal): Rename from *movdf_1.
2961 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
2963 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2964 (const_gimple_seq_node): Removed typedefs.
2966 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2967 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2969 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
2971 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2972 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2973 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2974 and CODE_FOR_vec_extract_lo_v4df.
2976 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2977 Changed to define_insn_and_split.
2978 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2979 (vec_extract_lo_v16hi): Likewise.
2980 (vec_extract_lo_v32qi): Likewise.
2981 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2982 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2984 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
2987 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2988 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2989 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2990 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2991 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2994 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2997 * df-core.c (struct df): Rename to df_d.
2998 * df.h (struct df): Likewise.
2999 * dse.h (struct df): Remove forward declaration.
3000 * recog.h (struct insn_data): Rename to:
3001 (struct_insn_data_d). Adjusted all users.
3003 2010-06-23 Arnaud Charlet <charlet@adacore.com
3006 * doc/install.texi: Update requirements to build GNAT.
3008 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
3010 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3012 (m68k_sched_attr_opx_type): Remove unreachable return.
3013 (m68k_sched_attr_opy_type): Likewise.
3014 (m68k_sched_attr_size): Likewise.
3015 (sched_get_opxy_mem_type): Likewise.
3016 (m68k_sched_attr_op_mem): Likewise.
3018 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
3020 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3021 new statement and adjust VDEF only if necessary. Remove superfluous
3022 call to maybe_clean_or_replace_eh_stmt.
3023 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3025 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3026 * tree-inline.c (copy_bb): ...and not there.
3028 2010-06-22 Cary Coutant <ccoutant@google.com>
3030 * dwarf2out.c (is_nested_in_subprogram): New function.
3031 (should_move_die_to_comdat): Use it.
3032 (copy_ancestor_tree): Don't mark DIEs here.
3033 (copy_decls_walk): Start walk from root of newly-added tree;
3034 mark DIEs here instead.
3036 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
3038 * config/i386/i386.md (unit): Also check sseishft1.
3040 2010-06-22 Jan Hubicka <jh@suse.cz>
3042 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3045 2010-06-22 Jan Hubicka <jh@suse.cz>
3047 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3048 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3049 Return true if something changed.
3050 * df.h (df_confluence_function_n): Return bool.
3051 * df-core.c (df_worklist_propagate_forward,
3052 df_worklist_propagate_backward): Track changes and ages.
3053 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3055 * dse.c (dse_confluence_n): Return always true.
3057 2010-06-22 Jan Hubicka <jh@suse.cz>
3059 * bitmap.c (bitmap_clear_bit): Micro optimize.
3061 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
3063 * config/i386/i386.md (SWI1248x): New mode iterator.
3068 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3069 SWI1248x mode iterator.
3070 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3071 using SWI124 mode iterator.
3072 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3074 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
3075 *pushdi2_prologue_rex64 using P mode iterator.
3076 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3077 using SWI48 mode iterator.
3078 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3079 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3080 using SWI1248x mode iterator.
3081 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3082 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3083 SWI48 mode iterator.
3084 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3086 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3087 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3088 SWI12 mode iterator.
3089 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3090 SWI12 mode iterator.
3091 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3092 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3093 SWI24 mode iterator.
3094 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3095 SWI48 mode iterator.
3096 (mov<mode>_insn_1): New expander.
3097 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3098 using SWI48x mode iterator.
3100 (*movoi_internal_avx): Rename from *movoi_internal.
3101 (*movti_internal_rex64): Rename from *movti_rex64.
3102 (*movti_internal_sse): Rename from *movti_sse.
3103 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3104 (*movdi_internal): Rename from *movdi_2.
3105 (*movsi_internal): Rename from *movsi_1.
3106 (*movhi_internal): Rename from *movhi_1.
3107 (*movqi_internal): Rename from *movqi_1.
3109 (insv): Update the call to gen_movsi_insv_1 for rename.
3110 * config/i386/i386.c (promote_duplicated_reg): Ditto.
3112 2010-06-22 Jan Hubicka <jh@suse.cz>
3114 * passes.c (execute_function_todo): Move call of statistics_fini_pass
3116 (execute_todo) ... this one.
3118 2010-06-22 Alan Modra <amodra@gmail.com>
3121 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3122 * caller-save.c (insert_restore, insert_save): Use non-validate
3123 form of adjust_address.
3125 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3128 * config/pa/pa.c (override_options): Disable
3129 -freorder-blocks-and-partition.
3131 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
3134 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3136 * config/i386/i386.md (type): Add sseishft1
3138 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3139 (ppro_insn_load): Likewise.
3140 (ppro_insn_store): Likewise.
3141 (ppro_insn_both): Likewise.
3143 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3144 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3146 (*vec_extractv2di_1_avx): Likewise.
3147 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3148 type. Remove atom_unit.
3149 (*vec_extractv2di_1_sse2): Likewise.
3151 2010-06-21 DJ Delorie <dj@redhat.com>
3153 * diagnostic.h (diagnostic_classification_change_t): New.
3154 (diagnostic_context): Add history and push/pop list.
3155 (diagnostic_push_diagnostics): Declare.
3156 (diagnostic_pop_diagnostics): Declare.
3157 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3158 from pragmas in a history chain instead of the global table.
3159 (diagnostic_push_diagnostics): New.
3160 (diagnostic_pop_diagnostics): New.
3161 (diagnostic_report_diagnostic): Scan history chain to find state
3162 of diagnostics as of the diagnostic location.
3163 * opts.c (set_option): Pass UNKNOWN_LOCATION to
3164 diagnostic_classify_diagnostic.
3165 (enable_warning_as_error): Likewise.
3166 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3167 use in the history chain.
3168 * doc/extend.texi: Document pragma GCC diagnostic changes.
3170 2010-06-21 Jakub Jelinek <jakub@redhat.com>
3172 * dwarf2out.c (add_linkage_name): New function. Don't add
3173 anything to DW_TAG_member DIEs.
3174 (add_name_and_src_coords_attributes): Use it.
3175 (gen_variable_die): Call it for C++ static data members if
3176 specification is DW_TAG_member.
3178 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3179 C++ char16_t and char32_t.
3181 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3182 * genattrtab.c: Include vecprim.h.
3183 (cached_attrs, cached_attr_count, attrs_seen_once,
3184 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3185 attrs_cached_after): New variables.
3186 (find_attrs_to_cache): New function.
3187 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3188 (write_test_expr): Add attrs_cached argument, return it too,
3189 attempt to cache non-const attributes used more than once in
3190 a single case handling.
3191 (write_attr_get): Use find_attrs_to_cache, for caching candidates
3192 emit cached_* variables. Adjust write_attr_set callers.
3193 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3194 to find attributes that should be cached in this block. Adjust
3195 write_test_expr callers.
3196 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
3198 (make_automaton_attrs): Adjust write_test_expr caller.
3200 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3201 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3202 (make_automaton_attrs): If find_tune_attr returns non-NULL,
3203 write separate internal_dfa_insn_code_* and insn_default_latency_*
3204 functions for each attribute's value and emit init_sched_attrs
3205 function and function pointers.
3206 * genattr.c (const_attrs, reservations): New variables.
3207 (gen_attr): Add const attributes to const_attrs vector.
3208 (check_tune_attr, find_tune_attr): New functions.
3209 (main): Add reservations to reservations vector. If find_tune_attr
3210 returns true, add prototype for init_sched_attrs and make
3211 internal_dfa_insn_code and insn_default_latency function pointers,
3212 otherwise define init_sched_attrs as dummy macro.
3213 * cfgexpand.c: Include insn-attr.h.
3214 (gimple_expand_cfg): Call init_sched_attrs.
3216 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3219 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3220 va_arg from a set of register save slots into a temporary,
3221 if the container is bigger than type size, do the copying
3222 using smaller mode or using memcpy.
3225 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3227 (sel_print_to_dot): Remove macro.
3228 (sel_print): Likewise. New prototype.
3229 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3230 (sel_print): New function.
3232 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3234 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3235 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3237 2010-06-21 Nick Clifton <nickc@redhat.com>
3239 * config/rx/rx.h (PTRDIFF_TYPE): Define.
3240 (SMALL_REGISTER_CLASS): Define (to zero).
3241 (PRINT_OPERAND): Delete.
3242 (PRINT_OPERAND_ADDRESS): Delete.
3243 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3244 (rx_print_operand_address): Delete prototype.
3245 * config/rx/rx.c (rx_print_operand): Make static.
3246 Allow %H and %L to handle CONST_DOUBLEs.
3247 (rx_print_operand_address): Make static.
3248 (rx_gen_move_template): Rename local variable 'template' to
3250 (rx_function_arg): Do not pass unknown sized objects in registers.
3251 (TARGET_PRINT_OPERAND): Define.
3252 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3254 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3256 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3258 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
3260 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3261 stack-alignment for simple leaf-functions.
3263 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3265 * doc/install.texi: Document bootstrap-lto.
3267 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3270 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
3271 (input_function): Drop them here, if VTA is disabled.
3273 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
3276 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
3278 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
3279 ix86_swapped_fp_comparsion_operator instead of
3280 ix86_fp_comparison_operator.
3282 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
3283 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
3284 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
3285 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
3286 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
3287 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
3289 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3292 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
3293 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
3294 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
3295 (decode_cmdline_option): Update for this return value. Set
3296 orig_option_with_args_text field. Set arg field for unknown
3297 options. Make static.
3298 (decode_cmdline_options_to_array): New.
3299 (prune_options): Update handling of find_opt return value.
3300 * opts.c (read_cmdline_option): Take decoded option. Return void.
3301 (read_cmdline_options): Take decoded options.
3302 (decode_options): Add parameters for decoded options. Use
3303 decode_cmdline_options_to_array. Use decoded options for -O
3304 scan. Use integral_argument for -O parameters. Update call to
3305 read_cmdline_options.
3306 (enable_warning_as_error): Update handling of find_opt return value.
3307 * opts.h: Update comment on unknown options.
3308 (struct cl_decoded_option): Update comments on opt_index and arg.
3309 Add orig_option_with_args_text.
3310 (decode_cmdline_option): Remove.
3311 (decode_cmdline_options_to_array): Declare.
3312 (decode_options): Update prototype.
3313 * toplev.c (save_argv): Remove.
3314 (save_decoded_options, save_decoded_options_count): New.
3315 (read_integral_parameter): Remove.
3316 (print_switch_values): Use decoded options.
3317 (toplev_main): Don't set save_argv. Update call to decode_options.
3318 * toplev.h (read_integral_parameter): Remove.
3319 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
3321 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
3324 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
3326 * constraints.md (Pw, Px): New constraints.
3327 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
3329 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
3331 * config/i386/sse.md (fma4modesuffixf4): Removed.
3332 (ssemodesuffixf2s): Likewise.
3333 (ssemodesuffixf4): Likewise.
3334 (ssemodesuffixf2c): Likewise.
3335 (ssescalarmodesuffix2s): Likewise.
3336 (avxmodesuffixf2c): Likewise.
3337 (ssemodesuffix): New.
3338 (ssescalarmodesuffix): Likewise.
3339 Update patterns with ssemodesuffix and ssescalarmodesuffix.
3341 2010-06-19 Philip Herron <herron.philip@googlemail.com>
3343 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
3345 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
3347 * stor-layout.c (debug_rli): Remove unused local variables.
3349 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3351 PR rtl-optimization/40900
3352 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
3353 original expression for later reuse.
3354 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3355 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3357 2010-06-18 Anatoly Sokolov <aesok@post.ru>
3359 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3360 double_int_fits_in_uhwi_p): Implement as static inline.
3361 (double_int_xor): New inline function.
3362 (double_int_lrotate, double_int_rrotate, double_int_max,
3363 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3364 double_int_smin): Declare.
3365 (lrotate_double, rrotate_double): Remove declaration.
3366 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3367 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3368 (double_int_lrotate, double_int_rrotate, double_int_max,
3369 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3370 double_int_smin): New function.
3371 * fold-const.c (int_const_binop): Clean up, use double_int_*
3373 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3374 double_int_* and immed_double_int_const functions.
3376 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3378 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3379 * function.c (types_used_by_cur_var_decl): Likewise.
3380 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3382 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3384 * tree.h (record_layout_info): Change type of pending_statics field
3386 * stor-layout.c (start_record_layout): Store NULL into
3388 (debug_rli): Call debug_vec_tree instead of debug_tree.
3389 (place_field): Likewise.
3390 (finish_record_layout): Likewise.
3392 2010-06-18 Alan Modra <amodra@gmail.com>
3394 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3396 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3399 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3400 for SET source operand from SET destination operand.
3402 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
3404 PR rtl-optimization/39871
3405 * reload1.c (init_eliminable_invariants): For flag_pic, disable
3406 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3407 (function_invariant_p): Rule out a plus of frame or arg pointer with
3409 * ira.c (find_reg_equiv_invariant_const): Likewise.
3411 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
3413 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3414 print_operand_address and puts to output the operand for CONST.
3416 2010-06-17 Jakub Jelinek <jakub@redhat.com>
3419 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3422 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3424 * v850-protos.h (print_operand): Delete.
3425 (print_operand_address): Delete.
3426 * v850.h (PRINT_OPERAND): Delete.
3427 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3428 (PRINT_OPERAND_ADDRESS): Delete.
3429 * v850.c (print_operand_address): Rename to...
3430 (v850_print_operand_address): ...this. Make static. Call
3432 (print_operand): Rename to...
3433 (v850_print_operand): ...this. Make static. Call
3434 v850_print_operand_address.
3435 (v850_print_operand_punct_valid_p): New function.
3436 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3437 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3439 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3441 * config/sh/sh-protos.h (print_operand): Delete.
3442 (print_operand_address): Delete.
3443 * config/sh/sh.h (PRINT_OPERAND): Delete.
3444 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3445 (PRINT_OPERAND_ADDRESS): Delete.
3446 * config/sh/sh.c (sh_print_operand_address): Make static.
3447 (sh_print_operand): Make static. Call sh_print_operand_address
3448 and sh_print_operand.
3449 (sh_print_operand_punct_valid_p): New function.
3450 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3451 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3453 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3455 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3456 (mcore_print_operand_address): Delete.
3457 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3458 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3459 (PRINT_OPERAND_ADDRESS): Delete.
3460 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3461 (mcore_print_operand): Make static.
3462 (mcore_print_operand_punct_valid_p): New function.
3463 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3464 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3466 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3468 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3469 (print_operand_address): Delete.
3470 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3471 (PRINT_OPERAND_ADDRESS): Delete.
3472 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3474 (m68hc11_print_operand): Make static.
3475 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3477 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3479 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3480 (m32r_print_operand_address): Delete.
3481 * config/m32r/m32r.h (m32r_punct_chars): Delete.
3482 (PRINT_OPERAND): Delete.
3483 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3484 (PRINT_OPERAND_ADDRESS): Delete.
3485 * config/m32r/m32r.c (m32r_punct_chars): Make static.
3486 (m32r_print_operand_address): Make static.
3487 (m32r_print_operand): Make static.
3488 (m32r_print_operand_punct_valid_p): New function.
3489 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3490 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3492 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3494 * config/iq2000/iq2000-protos.h (print_operand): Delete.
3495 (print_operand_address): Delete.
3496 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3497 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3498 (PRINT_OPERAND_ADDRESS): Delete.
3499 (iq2000_print_operand_punct): Delete.
3500 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3501 (iq2000_print_operand_address): Make static.
3502 (iq2000_print_operand): Make static.
3503 (iq2000_print_operand_punct_valid_p): New function.
3504 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3505 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3507 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3509 * config/frv/frv-protos.h (frv_print_operand): Delete.
3510 (frv_print_operand_address): Delete.
3511 * config/frv/frv.h (PRINT_OPERAND): Delete.
3512 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3513 (PRINT_OPERAND_ADDRESS): Delete.
3514 * config/frv/frv.c (frv_print_operand_address): Make static.
3515 (frv_print_operand): Make static.
3516 (frv_print_operand_punct_valid_p): New function.
3517 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3518 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3520 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3522 * tree.h (vec_member): Declare.
3523 * tree.c (vec_member): Define.
3525 2010-06-17 Richard Guenther <rguenther@suse.de>
3527 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3528 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3530 2010-06-17 Richard Guenther <rguenther@suse.de>
3532 * tree-inline.c (declare_return_variable): Remove bogus code.
3534 2010-06-17 Richard Guenther <rguenther@suse.de>
3536 * gimplify.c (gimplify_bind_expr): Always promote complex
3537 and vector variables to registers if possible.
3539 2010-06-17 Richard Guenther <rguenther@suse.de>
3541 * expr.c (get_inner_reference): Use double_int for bit_offset
3544 2010-06-16 DJ Delorie <dj@redhat.com>
3546 * common.opt (-fstrict-volatile-bitfields): new.
3547 * doc/invoke.texi: Document it.
3548 * fold-const.c (optimize_bit_field_compare): For volatile
3549 bitfields, use the field's type to determine the mode, not the
3551 * expr.c (expand_assignment): Likewise.
3552 (get_inner_reference): Likewise.
3553 (expand_expr_real_1): Likewise.
3554 * expmed.c (store_fixed_bit_field): Likewise.
3555 (extract_bit_field_1): Likewise.
3556 (extract_fixed_bit_field): Likewise.
3558 2010-06-16 Richard Guenther <rguenther@suse.de>
3560 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3562 2010-06-16 Douglas B Rupp <rupp@gnat.com>
3564 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3565 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3566 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3567 * debug.c: Likewise.
3568 * sdbout.c: Likewise.
3569 * vmsdbgout.c: Likewise.
3570 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3571 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3572 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3573 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3574 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3575 * dwarf2out.c (dw_fde_struct): New fields
3576 dw_fde_vms_{end,begin}_prologue.
3577 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3578 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3579 (dwarf2out_vms_end_prologue): New function.
3580 (dwarf2out_vms_begin_epilogue): New function.
3581 (dw_val_struct): New value dw_val_class_vms_delta.
3582 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3583 begin_epilogue for VMS.
3584 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3585 new static functions.
3586 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3587 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3589 (print_die): New case dw_val_class_vms_delta.
3590 (attr_checksum): Likewise.
3591 (same_dw_val_p: Likewise.
3592 (size_of_die): Likewise.
3593 (value_format): Likewise.
3594 (output_die): Likewise.
3595 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3596 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3597 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3598 dwarf2out_cfi_begin_epilogue
3599 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3601 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3603 * config/cris/cris-protos.h (cris_print_operand): Delete.
3604 (cris_print_operand_address): Delete.
3605 * config/cris/cris.h (PRINT_OPERAND): Delete.
3606 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3607 (PRINT_OPERAND_ADDRESS): Delete.
3608 * config/cris/cris.c (cris_print_operand_address): Make static.
3609 (cris_print_operand): Make static.
3610 (cris_print_operand_punct_valid_p): New function.
3611 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3612 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3614 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3616 * config/arm/arm-protos.h (arm_print_operand): Delete.
3617 (arm_print_operand_address): Delete.
3618 * config/arm/arm.h (PRINT_OPERAND): Delete.
3619 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3620 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3621 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3622 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
3623 (arm_print_operand): Make static.
3624 (arm_print_operand_punct_valid_p): New function.
3625 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3626 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3628 2010-06-16 Nick Clifton <nickc@redhat.com>
3630 * config/rx/constraints.md (NEGint4): New constraint.
3631 * config/rx/rx.md (attr cc): Add set_zsc.
3632 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3635 (call_internal): Clobber the cc0 register.
3636 (call_value_internal): Likewise.
3637 (cstoresi4): Likewise.
3638 (movsieq): Likewise.
3639 (movsine): Likewise.
3640 (addsi3): Add alternative to handle small negative constants.
3642 (addsi3): Do not set the O bit in the cc0 register.
3646 (andsi3): Reorder alternatives to prefer shorter forms.
3649 (negsi2): Note that the cc0 flags are set.
3650 (rotlsi3): Note that only the Z and S bits are set in cc0.
3651 (lshrsi3): Likewise.
3652 (ashlsi3): Likewise.
3653 (subsf3): Use %Q for the MEM operand.
3654 (fix_truncsfsi2): Likewise.
3655 (floatsisf2): Likewise.
3656 (bitset): Remove early clobber from destination.
3657 (bitset_in_memory): Likewise.
3658 (lrintsf2): Clobber the cc0 register.
3659 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3660 (rx_print_operand): Handle %N.
3662 2010-06-16 Jan Hubicka <jh@suse.cz>
3664 * df-core.c (df_compact_blocks): Free problem_temps vector.
3666 2010-06-16 Martin Jambor <mjambor@suse.cz>
3668 PR tree-optimization/43905
3669 * tree-sra.c: Include tree-inline.h.
3670 (create_abstract_origin): Removed.
3671 (modify_function): Version the call graph node instead of creating
3672 abstract origins and dealing with same_body aliases.
3673 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3674 function is versionable.
3675 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3677 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
3679 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3680 (CHOOSE_DYNAMIC_LINKER): Update.
3682 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
3684 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
3685 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3686 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3687 *prefetch_3dnow_rex.
3689 2010-06-15 Anatoly Sokolov <aesok@post.ru>
3691 * target.h (struct asm_out):Add declare_constant_name field.
3692 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3693 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3694 * output.h (default_asm_declare_constant_name): Declare.
3695 (assemble_label): Update prototype.
3696 * varasm.c (assemble_constant_contents): Use
3697 targetm.asm_out.declare_constant_name target hook.
3698 (assemble_label): Add 'file' argument.
3699 (default_asm_declare_constant_name): New function.
3700 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3701 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3702 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3704 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3705 * config/darwin.c (darwin_asm_declare_constant_name): New function.
3706 (machopic_output_indirection): Update assemble_label argument list.
3707 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3708 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3710 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
3713 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3714 size_one_node for pointer types. Do not call gmp_cst_to_tree.
3716 2010-06-15 Richard Guenther <rguenther@suse.de>
3718 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3720 2010-06-15 Paul Brook <paul@codesourcery.com>
3722 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3725 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
3727 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3728 don't get a vector type for output.
3730 2010-06-15 Jakub Jelinek <jakub@redhat.com>
3733 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3734 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3735 (LANG_HOOKS_DECLS): Add it.
3736 * gimplify.c (omp_notice_variable): Call
3737 lang_hooks.decls.omp_report_decl.
3739 2010-06-15 Martin Jambor <mjambor@suse.cz>
3742 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3743 on the newly dead SSA name.
3745 2010-06-15 Alan Modra <amodra@gmail.com>
3747 * doc/invoke.texi: Add mcmodel to powerpc options.
3748 * configure.ac: Add HAVE_LD_LARGE_TOC test.
3749 * configure: Regenerate.
3750 * config.in: Regenerate.
3751 * config/rs6000/linux64.opt (mcmodel): New.
3752 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3753 (TARGET_CMODEL, SET_CMODEL): Define.
3754 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3755 select CMODEL_MEDIUM default.
3756 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3757 (TARGET_CMODEL): Define default.
3758 * config/rs6000/rs6000.c (cmodel): New variable.
3759 (rs6000_explicit_options): Add cmodel field.
3760 (rs6000_handle_option): Handle -mcmodel.
3761 (create_TOC_reference): Add largetoc_reg param. Generate high,
3762 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
3763 (rs6000_delegitimize_address): Recognise new toc reference rtl
3764 and minimal-toc rtl.
3765 (rs6000_legitimize_reload_address): Handle new toc references.
3766 (print_operand_address): Handle legitimate_constant_pool_address_p
3767 match before lo_sum.
3768 (rs6000_eliminate_indexed_memrefs): Tidy.
3769 (rs6000_emit_move): Tweak threshold for inlining constants.
3770 Keep rs6000_emit_allocate_stack large stack frame offsets
3771 loaded into r0 inline.
3772 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3773 (tocrel_base, tocrel_offset): New variables.
3774 (toc_relative_expr_p): Set them here.
3775 (print_operand_address): Skip over any offset on constant pool address.
3776 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3777 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3778 (offsettable_ok_by_alignment): New function.
3779 (rs6000_emit_move): Address suitably aligned local symbol_refs
3780 relative to the toc pointer for -mcmodel=medium.
3781 (legitimate_constant_pool_address_p): Make param const_rtx. Add
3782 strict param. Allow lo_sum version of addressing. Verify reg
3783 used for -mminimal-toc and -mcmodel != small. Update all callers.
3784 * config/rs6000/constraints.md: Update for above change.
3785 * config/rs6000/predicates.md: Likewise.
3786 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3788 (tls_gd): Split for -mcmodel=medium/large.
3789 (tls_gd_high, tls_gd_low): New.
3790 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3791 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3792 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3793 (largetoc_high, largetoc_low): New.
3794 (cmptf_internal2): Add clobber.
3795 * config/rs6000/rs6000-protos.h: Update.
3797 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
3799 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
3800 true if no prefetch is going to be generated for a given group.
3801 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3802 estimate the prefetch_count.
3803 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3804 prefetch count by considering the unroll_factor and prefetch_mod
3805 for is_loop_prefetching_profitable.
3807 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
3809 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3810 anything if the argument is not a MEM.
3812 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3817 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3819 (canonicalize_loop_ivs): Likewise.
3821 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3824 * haifa-sched.c (setup_insn_reg_pressure_info,
3825 update_register_pressure): Reject debug insns.
3826 (ready_sort): Don't setup reg pressure for debug insns.
3827 (schedule_insn): Don't update reg pressure for debug insns.
3829 2010-06-14 Richard Guenther <rguenther@suse.de>
3831 * lto-streamer.c (cached_bp): Remove.
3832 (bitpack_delete): Likewise.
3833 (bitpack_create): Likewise.
3834 (bp_get_next_word): Likewise.
3835 (bp_pack_value, bp_unpack_value): Move ...
3836 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3838 (struct bitpack_d): Likewise.
3839 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3840 New inline functions.
3841 * lto-streamer-out.c (lto_output_bitpack): Remove.
3842 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3843 (pack_value_fields): Adjust.
3844 (lto_write_tree): Likewise.
3845 (output_gimple_stmt): Likewise.
3846 (output_function): Likewise.
3847 * lto-streamer-in.c (input_gimple_stmt): Adjust.
3848 (input_function): Likewise.
3849 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3850 (lto_input_bitpack): Remove.
3851 (lto_materialize_tree): Adjust.
3852 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3853 * lto-cgraph.c (lto_output_edge): Adjust.
3854 (lto_output_node): Likewise.
3855 (lto_output_varpool_node): Likewise.
3856 (lto_output_ref): Likewise.
3857 (input_node): Likewise.
3858 (input_varpool_node): Likewise.
3859 (input_ref): Likewise.
3860 (input_edge): Likewise.
3861 (output_node_opt_summary): Likewise.
3862 (input_node_opt_summary): Likewise.
3863 * ipa-pure-const.c (pure_const_write_summary): Likewise.
3864 (pure_const_read_summary): Likewise.
3865 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3866 (ipa_read_indirect_edge_info): Likewise.
3867 (ipa_write_node_info): Likewise.
3868 (ipa_read_node_info): Likewise.
3870 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
3873 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3874 (vec_extract_lo_v16hi): Likewise.
3875 (vec_extract_lo_v32qi): Likewise.
3877 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3880 * tree.h (build_call_expr): Don't define as vararg macro, instead
3882 * builtins.c (build_call_nofold): Remove.
3883 (expand_builtin_int_roundingfn, expand_builtin_pow,
3884 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3885 expand_builtin_memset_args, expand_builtin_strcmp,
3886 expand_builtin_strncmp, expand_builtin_memory_chk): Use
3887 build_call_nofold_loc instead of build_call_nofold.
3888 (build_call_expr): New function.
3890 PR tree-optimization/44508
3891 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3892 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3893 don't eliminate trivially dead stmts.
3894 * tree-vrp.c (vrp_finalize): Pass false as last argument
3895 to substitute_and_fold.
3896 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3897 to substitute_and_fold.
3898 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3901 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3903 2010-06-14 Ira Rosen <irar@il.ibm.com>
3905 PR tree-optimization/44507
3906 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3907 to build initial vector for BIT_AND_EXPR.
3908 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3910 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3912 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3913 adjust z10prop set_attr.
3915 2010-06-13 Jan Hubicka <jh@suse.cz>
3917 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3918 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3919 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3920 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3921 datastructure checks into checking asserts.
3922 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3923 * tree-ssa-sccvn.c (VN_INFO): Likewise.
3924 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3925 df_ref_create_structure): Likewise.
3926 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3927 pool_free): Use gcc_checking_assert.
3928 * alias.c (get_alias_set): Likewise.
3929 * var-tracking.c (variable_htab_free, shared_hash_copy,
3930 canonicalize_values_mark, variable_merge_over_cur): Likewise.
3931 * lto-streamer.c (bp_unpack_value): Likewise.
3933 2010-06-13 Richard Guenther <rguenther@suse.de>
3935 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3936 Do not stream but initialize TYPE_CANONICAL to NULL.
3937 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3938 * gimple.c (gimple_types_compatible_p): Disregard
3939 TYPE_STRUCTURAL_EQUALITY_P.
3940 (gimple_register_type): Use TYPE_CANONICAL as cache.
3941 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3942 before registering common types.
3943 * config/i386/i386.c (ix86_function_arg_boundary): Do not
3944 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3945 * tree.h (TYPE_CANONICAL): Clarify documentation.
3947 2010-06-13 Anatoly Sokolov <aesok@post.ru>
3949 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3950 LIBCALL_VALUE): Remove macros.
3951 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3952 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3953 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3954 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3955 (ia64_function_value): Make static. Handle receiving the function
3956 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3958 2010-06-12 Jan Hubicka <jh@suse.cz>
3960 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3963 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
3965 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3967 2010-06-12 Jan Hubicka <jh@suse.cz>
3969 * df-core.c (df_clear_bb_info): New function.
3970 (df_set_blocks): bb_info is always allocated.
3971 (df_get_bb_info): Use block_info_elt_size.
3972 (df_set_bb_info): Likewise.
3973 (df_compact_blocks): Update for new block_info.
3974 (grow_bb_info): New function.
3975 * df-problems.c (df_grow_bb_info): Move to df-core.c
3976 (df_rd_set_bb_info): Remove.
3977 (df_rd_free_bb_info): Do not free block pool.
3978 (df_rd_alloc): Do not create pool, use check for
3979 obstack presence instead of NULL pointer for new blocks.
3980 (df_rd_free): DO not free alloc pool; clear block_info.
3981 (problem_RD): Add size of block info structure.
3982 (df_lr_set_bb_info): Remove.
3983 (df_lr_free_bb_info): Do not free block pool.
3984 (df_lr_alloc): Do not create pool, use check for
3985 obstack presence instead of NULL pointer for new blocks.
3986 (df_lr_free): DO not free alloc pool; clear block_info.
3987 (problem_LR): Add size of block info structure.
3988 (df_live_set_bb_info): Remove.
3989 (df_live_free_bb_info): Do not free block pool.
3990 (df_live_alloc): Do not create pool, use check for
3991 obstack presence instead of NULL pointer for new blocks.
3992 (df_live_free): DO not free alloc pool; clear block_info.
3993 (problem_LIVE): Add size of block info structure.
3994 (problem_CHAIN): Add size of block info structure.
3995 (df_byte_lr_set_bb_info): Remove.
3996 (df_byte_lr_free_bb_info): Do not free block pool.
3997 (df_byte_lr_alloc): Do not create pool, use check for
3998 obstack presence instead of NULL pointer for new blocks.
3999 (df_byte_lr_free): DO not free alloc pool; clear block_info.
4000 (problem_BYTE_LR): Add size of block info structure.
4001 (problem_NOTE): Add size of block info structure.
4002 (df_byte_MD_set_bb_info): Remove.
4003 (df_byte_MD_free_bb_info): Do not free block pool.
4004 (df_byte_MD_alloc): Do not create pool, use check for
4005 obstack presence instead of NULL pointer for new blocks.
4006 (df_byte_MD_free): DO not free alloc pool; clear block_info.
4007 (problem_BD): Add size of block info structure.
4008 * df-scan.c (df_scan_free_internal): Free block pool.
4009 (df_scan_set_bb_info): Remove.
4010 (df_scan_free_bb_info): Check for artificial_defs instead
4011 of bb_info being non-NULL.
4012 (df_scan_alloc): DO not create df_scan_block pool.
4013 (problem_SCAN): Set size of block info.
4014 (df_bb_refs_record): Do not allocate bb_info.
4015 * df.h (df_problem): Add block_info_elt_size.
4016 (struct dataflow): Change block_info to void *.
4017 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4018 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4021 2010-06-12 Jan Hubicka <jh@suse.cz>
4023 PR tree-optimize/44485
4024 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4025 containing use of return value of noreturn function.
4027 2010-06-12 Anatoly Sokolov <aesok@post.ru>
4029 * targhooks.c (default_function_value): Don't use
4030 FUNCTION_OUTGOING_VALUE.
4031 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4032 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4034 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
4036 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4037 Add crtfastmath.o to extra_parts.
4038 * config/mips/crtfastmath.c: New.
4039 * config/mips/linux.h (ENDFILE_SPEC): New.
4041 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
4043 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4044 old_type in parameter.
4045 (gcc_type_for_value): Update call to gcc_type_for_interval.
4046 (compute_type_for_level_1): Renamed compute_type_for_level.
4047 Update call to gcc_type_for_interval.
4049 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4051 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4052 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4054 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4056 * opts-common.c: Include options.h.
4057 (integral_argument): Move from opts.c.
4058 (decode_cmdline_option): New. Based on read_cmdline_option.
4059 * opts.c (integral_argument): Move to opts-common.c.
4060 (read_cmdline_option): Move most contents to
4061 decode_cmdline_option. Use %qs in diagnostics.
4062 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4063 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4064 decode_cmdline_option): New.
4066 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4069 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4070 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4071 (partiysi2_cmp): Ditto.
4072 (*partiyhi2_cmp): Ditto.
4073 (*parityqi2_cmp): Remove.
4075 2010-06-11 Jan Hubicka <jh@suse.cz>
4077 * bitmap.h (bmp_iter_next_bit): New.
4078 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4080 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
4081 Eric Botcazou <ebotcazou@adacore.com>
4083 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4086 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4088 * config/i386/i386.md (unspec): New define_c_enum.
4091 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4093 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4095 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
4098 * tree-if-conv.c (bb_predicate_s): New struct.
4099 (bb_predicate_p): New.
4100 (bb_has_predicate): New.
4101 (bb_predicate): New.
4102 (set_bb_predicate): New.
4103 (bb_predicate_gimplified_stmts): New.
4104 (set_bb_predicate_gimplified_stmts): New.
4105 (add_bb_predicate_gimplified_stmts): New.
4106 (init_bb_predicate): New.
4107 (free_bb_predicate): New.
4108 (is_predicated): Use bb_predicate.
4109 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4110 (predicate_bbs): Same. Gimplify the condition of the basic blocks
4111 before processing their successors.
4112 (clean_predicate_lists): Removed.
4113 (find_phi_replacement_condition): Use bb_predicate.
4114 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
4116 (insert_gimplified_predicates): New.
4117 (combine_blocks): Call insert_gimplified_predicates.
4118 (tree_if_conversion): Call free_bb_predicate instead of
4119 clean_predicate_lists.
4121 2010-10-11 Paul Brook <paul@codesourcery.com>
4123 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4124 * config/arm/arm.c (all_architectures): Change v7e-m default to
4126 * config/arm/arm-cores.def: Add cortex-m4.
4127 * config/arm/arm-tune.md: Regenerate.
4129 2010-06-11 Jan Hubicka <jh@suse.cz>
4131 * ipa-pure-const.c (special_builtlin_state): New function.
4132 (check_call): Use it instead of special casign BUILT_IN_RETURN.
4133 (propagate_pure_const): Use it.
4135 2010-06-11 Jan Hubicka <jh@suse.cz>
4137 * df-problems.c (df_live_scratch): Convert to bitmap_head.
4138 (df_live_alloc): Initialize df_live_scratch when initializing
4140 (df_live_transfer_function): Update uses of df_live_scratch.
4141 (df_live_free): Free problem_data; clear df_live_scratch before
4142 releasing the obstack.
4143 (df_md_free): Free problem data.
4145 2010-06-11 Jan Hubicka <jh@suse.cz>
4147 * doc/invoke.texi (Wsuggest-attribute): Document.
4148 (Wmissing-noreturn): Remove.
4149 * ipa-pure-const.c (warn_function_noreturn): New function.
4150 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4151 warn_missing_noreturn.
4152 * common.opt (Wsuggest-attribute=noreturn): New.
4153 * tree-flow.h (warn_function_noreturn): Declare.
4154 * tree-cfg.c (execute_warn_function_noreturn): Use
4155 warn_function_noreturn.
4156 (gate_warn_function_noreturn): New.
4157 (pass_warn_function_noreturn): Update.
4159 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4161 * c-typeck.c (handle_warn_cast_qual): Add loc
4162 parameter. Improve warning message.
4163 (build_c_cast): Pass location to handle_warn_cast_qual.
4165 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4167 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4168 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
4170 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4172 2010-06-10 Dodji Seketeli <dodji@redhat.com>
4174 Fix bootstap on mips
4175 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4178 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
4180 * system.h (helper_const_non_const_cast): New inline for
4182 (CONST_CAST2): For gcc version <= 4.0 use
4183 new helper to do const/non-const casting.
4185 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4187 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4188 * Makefile.in (OBJS-common): Include insn-enums.o.
4189 (insn-enums.o): New rule.
4190 (simple_generated_c): Add insn-enums.c.
4191 (build/genenums.o): New rule.
4192 (genprogmd): Add "enums".
4193 * genconstants.c (print_enum_type): Declare a C string array
4195 * genenums.c: New file.
4196 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4197 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
4198 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4200 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4202 * doc/md.texi (define_enum_attr): Document.
4203 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4204 * read-md.h (lookup_enum_type): Declare.
4205 * read-md.c (lookup_enum_type): New function.
4206 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4207 * genattrtab.c (attr_desc): Add an enum_name field.
4208 (evaluate_eq_attr): Take the associated attribute as argument.
4209 Get the enum prefix from the enum_name field, if defined.
4210 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
4211 (simplify_test_exp): Pass attr to evaluate_eq_attr.
4212 (add_attr_value): New function, split out from...
4213 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
4214 (write_test_expr): Pass attr to evaluate_eq_attr.
4215 (write_attr_get): Use the enum_name as the enum tag, if defined.
4216 (write_attr_valueq): Use the enum_name as a prefix, if defined.
4217 (find_attr): Initialize enum_name.
4218 (main): Handle DEFINE_ENUM_ATTR.
4219 * gensupport.c (process_rtx): Likewise.
4220 * config/mips/mips.h (mips_tune_attr): Delete.
4221 * config/mips/mips.md (cpu): Use define_attr_enum.
4223 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4225 * doc/md.texi (define_c_enum, define_enum): Document.
4226 * read-md.h (md_constant): Add a parent_enum field.
4227 (enum_value, enum_type): New structures.
4228 (upcase_string, traverse_enum_types): Declare.
4229 * read-md.c (enum_types): New variable.
4230 (upcase_string, add_constant): New functions.
4231 (handle_constants): Don't create the hash table here.
4233 (traverse_md_constants): Don't check for a null md_constants.
4234 (decimal_string, handle_enum, traverse_enum_types): New functions.
4235 (read_md_files): Initialize md_constants and md_enums.
4236 * genconstants.c (print_md_constant): Ignore info argument.
4237 Only print constants that belong to no enum.
4238 (print_enum_type): New function.
4239 (main): Don't pass stdout to print_md_constant. Call print_enum_type
4240 for each defined enum type.
4241 * config/mips/mips.md (processor): New define_enum.
4242 (unspec): New define_c_enum.
4243 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4244 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4245 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4246 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4247 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4248 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4249 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4250 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4251 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4252 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4253 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4254 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4255 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4256 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4257 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4258 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4259 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4260 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4261 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4262 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4263 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4264 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4265 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4266 (UNSPEC_RDDSP): Move to mips-dsp.md.
4267 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4268 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
4269 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
4270 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
4271 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
4272 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
4273 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
4274 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
4275 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
4276 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
4277 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
4278 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
4279 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
4280 Moved to mips-dspr2.md.
4281 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
4282 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
4283 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
4284 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
4285 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
4286 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
4287 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4288 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4289 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4290 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4291 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4292 UNSPEC_LOONGSON_PSADBH)
4293 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4294 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4295 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
4296 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4297 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4298 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4299 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
4300 (cpu): Update comment.
4301 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
4302 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
4303 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
4304 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
4305 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
4306 UNSPEC_LOONGSON_PCMPEQ)
4307 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
4308 UNSPEC_LOONGSON_PINSR_0)
4309 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4310 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4311 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4312 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4313 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4314 UNSPEC_LOONGSON_PSADBH)
4315 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4316 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4317 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
4318 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4319 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4320 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4321 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
4322 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
4323 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
4324 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
4325 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
4326 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
4327 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
4328 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
4329 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
4330 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
4331 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
4332 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
4333 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
4334 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
4335 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
4336 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
4337 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
4338 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
4339 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
4340 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
4341 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4342 (UNSPEC_RDDSP): Moved from mips.md.
4343 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
4344 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
4345 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
4346 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
4347 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
4348 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4349 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4350 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4351 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4352 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4353 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4354 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4355 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4356 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4357 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4358 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4359 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4360 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4361 (UNSPEC_SCC): Moved from mips.md.
4362 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4363 "processor_type" to "processor".
4364 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4365 * config/mips/mips.h (processor_type): Delete.
4366 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4367 "processor_type" to "processor".
4369 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4371 * configure.ac (tm_include_list): Add insn-constants.h.
4372 * configure: Regenerate.
4373 * Makefile.in (GTM_H): Move insn-constants.h here from...
4375 * mkconfig.sh: Remove special handling for insn-constants.h.
4377 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4379 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4380 (BUILD_MD): ...this new variable.
4381 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4382 that include the old contents of simple_generated_h and
4384 (simple_generated_h, simple_generated_c): Include them. Add
4386 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4387 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4388 Remove these dependencies from the main rule and include
4389 insn-conditions.md in the command line only if it appears
4390 in the dependency list.
4391 (insn-constants.h, s-constants): Delete.
4392 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4394 (build/genmddeps.o): Likewise.
4395 (genprogrtl): New variable that contains everything from genprogmd
4396 except mddeps and constants.
4397 (genprogmd): Redefine in terms of genprogrtl. Make these programs
4398 depend on $(BUILD_MD)
4399 (genprog): New variable. Make these programs depend on
4401 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4402 (main): Use read_md_files instead of init_rtx_reader_args.
4403 * genconstants.c: As for genmddeps.c.
4404 * read-md.h (read_skip_construct): Declare.
4405 * read-md.c (read_skip_construct): New function.
4406 (handle_file): Allow a null handle_directive, skipping the
4408 (parse_include): Update the comment accordingly.
4410 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4412 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4413 * genmddeps.c: Include read-md.h.
4414 (main): Call init_rtx_reader_args instead of init_md_reader_args.
4415 * genattr.c (main): Likewise.
4416 * genattrtab.c (main): Likewise.
4417 * genautomata.c (main): Likewise.
4418 * gencodes.c (main): Likewise.
4419 * genconditions.c (main): Likewise.
4420 * genconfig.c (main): Likewise.
4421 * genconstants.c (main): Likewise.
4422 * genemit.c (main): Likewise.
4423 * genextract.c (main): Likewise.
4424 * genflags.c (main): Likewise.
4425 * genopinit.c (main): Likewise.
4426 * genoutput.c (main): Likewise.
4427 * genpeep.c (main): Likewise.
4428 * genrecog.c (main): Likewise.
4429 * genpreds.c (main): Likewise.
4430 * gensupport.h (in_fname): Move to read-md.h.
4431 (init_md_reader_args_cb): Rename to...
4432 (init_rtx_reader_args_cb): ...this and return a bool.
4433 (init_md_reader_args): Rename to...
4434 (init_rtx_reader_args): ...this and return a bool.
4435 (include_callback): Move to read-md.h.
4436 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4437 (file_name_list, first_dir_md_include): Move to read-md.c
4438 (first_bracket_include): Delete unused variable.
4439 (last_dir_md_include): Move to read-md.c.
4440 (process_include): Delete, moving code to read-md.c:handle_include.
4441 (process_rtx): Don't handle INCLUDE.
4442 (save_string): Delete.
4443 (rtx_handle_directive): New function.
4444 (init_md_reader_args_cb): Rename to...
4445 (init_rtx_reader_args_cb): ...this and return a boolean success value.
4447 (init_md_reader_args): Rename to...
4448 (init_rtx_reader_args): ...this and return a boolean success value.
4449 * rtl.def (INCLUDE): Delete.
4450 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
4452 * read-rtl.c (read_conditions): Don't gobble ')' here.
4453 (read_mapping): Likewise.
4454 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
4455 Handle top-level non-rtx constructs here rather than in read_rtx_1.
4456 Store the whole queue in *X. Remove call to init_md_reader.
4457 (read_rtx_1): Rename to...
4458 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
4459 Don't handle top-level non-rtx constructs here. Don't handle (nil)
4461 (read_nested_rtx): New function. Handle (nil) here rather than
4463 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
4465 * read-md.h (directive_handler_t): New type.
4466 (in_fname, include_callback): Moved from read-md.h.
4467 (read_constants, init_md_reader): Delete.
4468 (read_md_files): Declare.
4469 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4470 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4472 (read_constants): Rename to...
4473 (handle_constants): ...this. Don't gobble ')' here.
4474 (handle_include, handle_file, handle_toplevel_file)
4475 (parse_include): New functions, mostly taken from gensupport.c.
4476 (init_md_reader): Subsume into...
4477 (read_md_files): ...this new function.
4479 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4481 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4482 (unread_char): Decrement read_md_lineno after putting back '\n'.
4483 * read-md.c (fatal_with_file_and_line): Push back any characters
4484 that we decide not to add to the context.
4485 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
4486 fatal_expected_char in cases where '/' ends a line (for example).
4487 (read_name): Don't increment read_md_lineno here.
4488 (read_escape): Likewise.
4489 (read_quoted_string): Likewise.
4490 (read_braced_string): Likewise.
4492 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4494 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4495 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4496 * genconstants.c: Include read-md.h.
4497 * read-rtl.c (md_constants): Move to read-md.c.
4498 (md_name): Move to read-md.h.
4499 (initialize_iterators): Use leading_string_hash instead of def_hash
4500 and leading_string_eq_p instead of def_name_eq_p.
4501 (read_name): Move to read-md.c.
4502 (def_hash, def_name_eq_p): Delete.
4503 (read_constants, traverse_md_constants): Move to read-md.c.
4504 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4505 * read-md.h: Include hashtab.h.
4506 (md_name): Moved from read-rtl.c.
4507 (md_constant): Moved from read-md.h.
4508 (leading_string_hash, leading_string_eq_p, read_name)
4509 (read_constants, traverse_md_constants): Declare.
4510 * read-md.c (md_constants): Moved from read-rtl.c.
4511 (leading_string_hash, leading_string_eq_p): New functions.
4512 (read_name, read_constants, traverse_md_constants): Moved from
4515 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4517 * read-rtl.c (md_name): New structure.
4518 (read_name): Take an md_name instead of a buffer pointer.
4519 Use the "string" field instead of strcpy when expanding constants.
4520 (read_constants): Remove the tmp_char argument. Update the calls
4521 to read_name, using two local name buffers instead of the tmp_char
4522 argument. Merge the constant-creation code.
4523 (read_conditions): Remove the tmp_char argument. Update the calls
4524 to read_name, using a local name buffer instead of the tmp_char
4526 (read_mapping): Replace tmp_char variable with a local name buffer.
4527 Update the calls to read_name.
4528 (read_rtx_1): Likewise. Update the calls to read_constants and
4531 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4533 * Makefile.in (build/read-md.o): Depend on errors.h.
4534 * read-md.h (error_with_line): Declare.
4535 * read-md.c: Include errors.h.
4536 (message_with_line_1): New function, extracted from...
4537 (message_with_line): ...here.
4538 (error_with_line): New function.
4539 * genattrtab.c: If a call to message_with_line is followed by
4540 "have_error = 1;", replace both statements with a call to
4542 * genoutput.c: Likewise.
4543 * genpreds.c: Likewise.
4544 * genrecog.c: If a call to message_with_line is followed by
4545 "error_count++;", replace both statements with a call to
4547 (errorcount): Delete.
4548 (main): Don't check it.
4549 * gensupport.c: If a call to message_with_line is followed by
4550 "errors = 1;", replace both statements with a call to error_with_line.
4552 (process_define_cond_exec): Check have_error instead of errors.
4553 (init_md_reader_args_cb): Likewise. Don't set errors.
4555 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4557 * read-md.h (read_md_file): Declare.
4558 (read_char, unread_char): New functions.
4559 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4560 (read_quoted_string, read_string): Remove FILE * argument.
4561 * read-md.c (read_md_file): New variable.
4562 (read_md_filename, read_md_lineno): Update comments and remove
4563 unnecessary initialization.
4564 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4565 (read_escape, read_quoted_string, read_braced_string, read_string):
4566 Remove FILE * argument. Update calls accordingly, using read_char
4567 and unread_char instead of getc and ungetc.
4568 * rtl.h (read_rtx): Remove FILE * argument.
4569 * read-rtl.c (iterator_group): Remove FILE * argument from
4571 (iterator_traverse_data): Remove "infile" field.
4572 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4573 (add_mapping, read_name, read_constants, read_conditions)
4574 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4575 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4576 Remove file arguments from all calls, using read_char and unread_char
4577 instead of getc and ungetc.
4578 * gensupport.c (process_include): Preserve read_md_file around
4579 the include. Set read_md_file to the handle of the included file.
4580 Update call to read_rtx.
4581 (init_md_reader_args_cb): Set read_md_file to the handle of the file
4582 and remove local FILE *. Update calls to read_rtx.
4584 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4586 * read-md.h (read_rtx_lineno): Rename to...
4587 (read_md_lineno): ...this.
4588 (read_rtx_filename): Rename to...
4589 (read_md_filename): ...this.
4590 (copy_rtx_ptr_loc): Rename to...
4591 (copy_md_ptr_loc): ...this.
4592 (print_rtx_ptr_loc): Rename to...
4593 (print_md_ptr_loc): ...this.
4594 * read-md.c: Likewise. Update references after renaming.
4595 (string_obstack): Replace RTL with MD in comment.
4596 (set_rtx_ptr_loc): Rename to...
4597 (set_md_ptr_loc): ...this.
4598 (get_rtx_ptr_loc): Rename to...
4599 (get_md_ptr_loc): ...this.
4600 * genconditions.c: Update references after renaming.
4601 * genemit.c: Likewise.
4602 * genoutput.c: Likewise.
4603 * genpreds.c: Likewise.
4604 * gensupport.c: Likewise.
4605 * read-rtl.c: Likewise.
4607 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4609 * Makefile.in (READ_MD_H): New variable.
4610 (BUILD_RTL): Add build/read-md.o.
4611 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4612 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4613 (build/genattrtab.o, build/genconditions.o build/genemit.o)
4614 (build/genextract.o, build/genflags.o, build/genoutput.o)
4615 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4616 (build/read-md.o): New rule.
4617 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4618 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4619 * coretypes.h: ...here.
4620 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4621 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4622 * genattr.c: Include read-md.h.
4623 * genattrtab.c: Likewise.
4624 * genconditions.c: Likewise.
4625 * genemit.c: Likewise.
4626 * genextract.c: Likewise.
4627 * genflags.c: Likewise.
4628 * genoutput.c: Likewise.
4629 * genpreds.c: Likewise.
4630 * genrecog.c: Likewise.
4631 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4632 (join_c_conditions, print_c_condition, read_rtx_filename)
4633 (read_rtx_lineno): Move to read-md.h.
4634 * read-rtl.c: Include read-md.h.
4635 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4636 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4637 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4638 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4639 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4640 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4641 (read_braced_string, read_string): Move to read-md.c.
4642 (read_rtx): Move some initialization to init_md_reader and call
4643 init_md_reader here.
4644 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4646 * gensupport.c: Include read-md.h.
4647 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4648 * read-md.h, read-md.c: New files.
4650 2010-06-10 Anatoly Sokolov <aesok@post.ru>
4652 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4653 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4654 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4655 * config/moxie/moxie.c (moxie_function_value): Make static.
4656 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4657 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4659 2010-06-10 Martin Jambor <mjambor@suse.cz>
4661 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4662 * dbgcnt.def (tree_sra): New counter.
4663 * tree-sra.c: Include dbgcnt.h.
4664 (gate_intra_sra): Check tree_sra debug counter.
4666 2010-06-10 Martin Jambor <mjambor@suse.cz>
4668 PR tree-optimization/44258
4669 * tree-sra.c (build_access_subtree): Return false iff there is a
4671 (build_access_trees): Likewise.
4672 (analyze_all_variable_accesses): Disqualify candidates if
4673 build_access_trees returns true for them.
4675 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
4678 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4679 tail-recurse into canonical node. Fast-forward over
4680 non-canonical VALUEs.
4682 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
4685 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4686 (*addsi_1_zext) <TYPE_LEA>: Likewise.
4687 (add lea splitter): Likewise.
4688 (add_zext lea splitter): Likewise.
4690 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4692 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4694 2010-06-10 Jan Hubicka <jh@suse.cz>
4696 * df-problems.c (df_live_problem_data): Add live_bitmaps.
4697 (df_live_alloc): Initialize problem data and live_osbtacks.
4698 (df_live_finalize): Remove obstack, problem data; do not
4700 (df_live_top_dump, df_live_bottom_dump): Do not dump old
4701 data when not allocated.
4702 (df_live_verify_solution_start): Do not allocate problem data.
4703 (df_live_verify_solution_end): Check if out is allocated.
4704 (struct df_md_problem_data): New structure.
4705 (df_md_alloc): Allocate problem data.
4706 (df_md_free): Free problem data; do not clear bitmaps.
4708 2010-06-10 Jan Beulich <jbeulich@novell.com>
4711 * configure.ac: Replace $() with ${} when intending to expand
4712 variables rather than invoking commands.
4713 * configure: Re-generate.
4715 2010-06-10 Jan Hubicka <jh@suse.cz>
4717 PR rtl-optimization/44460
4718 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4719 TYPE_NEEDS_CONSTRUCTING sanity check.
4721 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4723 * doc/include/fdl.texi: Move to GFDL version 1.3.
4725 * doc/cpp.texi: Move to GFDL version 1.3.
4726 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
4727 * doc/gccint.texi: Move to GFDL version 1.3.
4728 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
4729 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
4730 * doc/invoke.texi: Move to GFDL version 1.3.
4732 2010-06-09 Jan Hubicka <jh@suse.cz>
4734 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4736 (propagate) ... here; swap the order.
4738 2010-06-09 Jan Hubicka <jh@suse.cz>
4740 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4741 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4742 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4743 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4745 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4747 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4748 Do not the gather memory reference in the outer loop if the step
4751 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4753 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4754 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4755 8 to 4. Minor change of the related comments.
4757 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4759 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4760 the scev analysis when the variable is not used outside the loop
4761 in a close phi node: call compute_overall_effect_of_inner_loop.
4763 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4765 * graphite-sese-to-poly.c (single_pred_cond): Renamed
4766 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
4767 (build_sese_conditions_before): Renamed call to single_pred_cond.
4768 (build_sese_conditions_after): Same.
4770 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4772 * graphite-poly.h: Fix comments and indentation.
4773 * graphite-sese-to-poly.c: Same.
4774 (build_sese_conditions_before): Compute stmt and gbb only when needed.
4775 * tree-chrec.c: Fix comments and indentation.
4776 (tree-ssa-loop-niter.c): Same.
4778 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4780 PR rtl-optimization/42461
4781 * dce.c (deletable_insn_p): Return true for const or pure calls again.
4782 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4784 2010-06-09 Jan Hubicka <jh@suse.cz>
4786 * bitmap.c (bitmap_and): Walk array forward.
4787 (bitmap_and_compl_into): Likewise.
4788 (bitmap_xor): Likewise.
4789 (bitmap_xor_into): Likewise.
4790 (bitmap_equal_p): Likewise.
4791 (bitmap_intersect_p): Likewise.
4792 (bitmap_intersect_compl_p): Likewise.
4793 (bitmap_ior_and_into): Likewise.
4794 (bitmap_elt_copy): Likewise.
4795 (bitmap_and_compl): Likewise.
4796 (bitmap_elt_ior): Likewise.
4798 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
4800 * opts-common.c (prune_options): Ensure replacement argv array
4801 is correctly terminated by a NULL entry.
4803 2010-06-09 Jan Hubicka <jh@suse.cz>
4805 * cgraph.h (varpool_first_static_initializer,
4806 varpool_next_static_initializer): Make checking only when
4808 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4809 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4810 gcc_assert to gcc_checking_assert.
4811 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4812 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4813 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4814 op_iter_init_phiuse, op_iter_init_phidef,
4815 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4816 gcc_checking_assert.
4817 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4818 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4819 partition_is_global, live_on_entry, live_on_exit,
4820 live_merge_and_clear): Likewise.
4821 * system.h (gcc_checking_assert): New macro.
4822 * gimple.h (set_bb_seq): Use gcc_checking_assert.
4824 2010-06-09 Jason Merrill <jason@redhat.com>
4826 * Makefile.in (TAGS): Collect tags info from c-family.
4828 2010-06-09 Jan Hubicka <jh@suse.cz>
4830 * gimple.h (gcc_gimple_checking_assert): New macro.
4831 (gimple_set_def_ops, gimple_set_use_ops,
4832 gimple_set_vuse, gimple_set_vdef,
4833 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4834 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4835 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4836 gimple_asm_output_op, gimple_asm_output_op_ptr,
4837 gimple_asm_set_output_op, gimple_asm_clobber_op,
4838 gimple_asm_set_clobber_op, gimple_asm_label_op,
4839 gimple_asm_set_label_op, gimple_try_set_kind,
4840 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4841 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4842 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4843 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4844 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4845 gimple_omp_for_set_initial, gimple_omp_for_final,
4846 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4847 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4848 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4849 conditional with ENABLE_GIMPLE_CHECKING.
4850 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4852 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
4854 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4855 (get_computation_cost_at): Use it.
4856 (determine_use_iv_cost_condition): Likewise.
4857 (determine_iv_cost): Likewise.
4859 2010-06-09 Richard Guenther <rguenther@suse.de>
4861 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4864 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
4866 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4868 2010-06-09 Martin Jambor <mjambor@suse.cz>
4870 PR tree-optimization/44423
4871 * tree-sra.c (dump_access): Dump also grp_assignment_read.
4872 (analyze_access_subtree): Pass negative allow_replacements to children
4873 if the current type is scalar.
4875 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4878 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4879 * doc/plugins.texi (Plugin license check): Update information
4880 on type of plugin_is_GPL_compatible.
4881 * Makefile.in (PLUGINCC): Define as $(COMPILER).
4882 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4884 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
4886 * config/arm/arm.c (thumb2_reorg): New function.
4887 (arm_reorg): Call it.
4888 * config/arm/thumb2.md (define_peephole2 for flag clobbering
4889 arithmetic operations): Delete.
4891 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
4894 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4897 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4900 * gcc-plugin.h: Encapsulate all declarations in extern "C".
4902 2010-06-08 Jan Hubicka <jh@suse.cz>
4904 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4905 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4907 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
4909 PR tree-optimization/39874
4911 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4913 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4914 same_bool_result_p): New.
4915 (and_var_with_comparison, and_var_with_comparison_1,
4916 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4917 (or_var_with_comparison, or_var_with_comparison_1,
4918 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4919 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4920 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4921 of combine_comparisons.
4922 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4924 2010-06-08 Anatoly Sokolov <aesok@post.ru>
4926 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4927 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4928 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4929 pdp11_function_value_regno_p): New functions.
4930 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4931 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4933 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
4935 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4936 Thumb-2 in the MINUS case.
4938 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4940 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4942 * doc/gty.texi (GTY Options): Document typed GC allocation and
4943 variable_size GTY option.
4945 * ggc-internal.h: New.
4947 * ggc.h: Update copyright year.
4948 (digit_string): Move to stringpool.c.
4949 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4950 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4951 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4952 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4953 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4954 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4955 (ggc_force_collect, ggc_get_size, ggc_statistics)
4956 (ggc_print_common_statistics): Move to ggc-internal.h.
4957 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4958 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4959 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4960 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4961 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4962 (ggc_alloc_zone_pass_stat): Remove.
4963 (ggc_internal_alloc_stat, ggc_internal_alloc)
4964 (ggc_internal_cleared_alloc_stat): New.
4965 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4966 (ggc_internal_vec_alloc_stat)
4967 (ggc_internal_cleared_vec_alloc_stat)
4968 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4969 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4970 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4971 (ggc_cleared_alloc_ptr_array_two_args): New.
4972 (htab_create_ggc, splay_tree_new_ggc): Redefine.
4973 (ggc_splay_alloc): Change the type of the first argument to
4975 (ggc_alloc_string): Make macro.
4976 (ggc_alloc_string_stat): New.
4977 (ggc_strdup): Redefine.
4978 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4979 (ggc_alloc_rtvec_sized): New.
4980 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4981 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4982 (ggc_internal_cleared_alloc_zone_stat)
4983 (ggc_internal_zone_alloc_stat)
4984 (ggc_internal_zone_cleared_alloc_stat)
4985 (ggc_internal_zone_vec_alloc_stat)
4986 (ggc_alloc_zone_rtx_def_stat)
4987 (ggc_alloc_zone_tree_node_stat)
4988 (ggc_alloc_zone_cleared_tree_node_stat)
4989 (ggc_alloc_cleared_gimple_statement_d_stat): New.
4991 * ggc-common.c: Include ggc-internal.h.
4992 (ggc_internal_cleared_alloc_stat): Rename from
4993 ggc_alloc_cleared_stat.
4994 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4995 (ggc_calloc): Remove.
4996 (ggc_cleared_alloc_htab_ignore_args): New.
4997 (ggc_cleared_alloc_ptr_array_two_args): New.
4998 (ggc_splay_alloc): Add obj_type parameter.
4999 (init_ggc_heuristics): Formatting fixes.
5001 * ggc-none.c: Update copyright year.
5002 (ggc_alloc_stat): Rename to ggc_alloc_stat.
5003 (ggc_alloc_cleared_stat): Rename to
5004 ggc_internal_cleared_alloc_stat.
5005 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5007 * ggc-page.c: Update copyright year. Include ggc-internal.h.
5008 Remove references to ggc_alloc in comments.
5009 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5010 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5011 (new_ggc_zone, destroy_ggc_zone): Remove.
5012 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5014 * ggc-zone.c: Include ggc-internal.h. Remove references to
5015 ggc_alloc in comments.
5016 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5017 (ggc_internal_alloc_zone_pass_stat): New.
5018 (ggc_internal_cleared_alloc_zone_stat): New.
5019 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5020 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5021 (new_ggc_zone, destroy_ggc_zone): Remove.
5023 * stringpool.c: Update copyright year. Include ggc-internal.h
5024 (digit_vector): Make static.
5025 (digit_string): Moved from ggc.h.
5026 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5027 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5029 * Makefile.in (GGC_INTERNAL_H): New.
5030 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5031 $(GGC_INTERNAL_H) to dependencies.
5033 * gentype.c: Update copyright year.
5034 (walk_type): Accept variable_size GTY option.
5035 (USED_BY_TYPED_GC_P): New macro.
5036 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
5037 whitespace at the end of strings.
5038 (get_type_specifier, variable_size_p): New functions.
5039 (alloc_quantity, alloc_zone): New enums.
5040 (write_typed_alloc_def): New function.
5041 (write_typed_struct_alloc_def): Likewise.
5042 (write_typed_typed_typedef_alloc_def): Likewise.
5043 (write_typed_alloc_defns): Likewise.
5044 (output_typename, write_splay_tree_allocator_def): Likewise.
5045 (write_splay_tree_allocators): Likewise.
5046 (main): Call write_typed_alloc_defns and
5047 write_splay_tree_allocators.
5049 * lto-streamer.h (lto_file_decl_data_ptr): New.
5051 * passes.c (order): Define using cgraph_node_ptr.
5053 * strinpool.c (struct string_pool_data): Declare nested_ptr using
5056 * gimple.h (union gimple_statement_d): Likewise.
5058 * rtl.h (struct rtx_def): Likewise.
5059 (struct rtvec_def): Likewise.
5061 * tree.h (union tree_node): Likewise.
5063 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5065 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5067 * tree-scalar-evolution.c (scev_initialize): Likewise.
5069 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5071 * dwarf2asm.c (dw2_force_const_mem): Likewise.
5073 * omp-low.c (lower_omp_critical): Likewise.
5075 * bitmap.h (struct bitmap_head_def): Update comment to not
5076 reference ggc_alloc.
5078 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5080 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5082 * ipa-prop.c (duplicate_ggc_array): Rename to
5083 duplicate_ipa_jump_func_array. Use typed GC allocation.
5084 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5086 * gimple.c (gimple_alloc_stat): Use
5087 ggc_alloc_cleared_gimple_statement_d_stat.
5089 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5091 * tree.c (make_node_stat): Use
5092 ggc_alloc_zone_cleared_tree_node_stat.
5093 (make_tree_vec_stat): Likewise.
5094 (build_vl_exp_stat): Likewise.
5095 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5096 (make_tree_binfo_stat): Likewise.
5097 (tree_cons_stat): Likewise.
5099 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5100 (shallow_copy_rtx_stat): Likewise.
5101 (make_node_stat): Likewise.
5103 * lto-symtab.c: Fix comment.
5105 * tree-cfg.c (create_bb): Update comment to not reference
5107 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5109 * varpool.c (varpool_node): Use typed GC allocation.
5110 (varpool_extra_name_alias): Likewise.
5112 * varasm.c (emutls_decl): Likewise.
5113 (get_unnamed_section): Likewise.
5114 (get_noswitch_section): Likewise.
5115 (get_section): Likewise.
5116 (get_block_for_section): Likewise.
5117 (build_constant_desc): Likewise.
5118 (create_constant_pool): Likewise.
5119 (force_const_mem): Likewise.
5121 * tree.c (build_vl_exp_stat): Likewise.
5122 (build_real): Likewise.
5123 (build_string): Likewise.
5124 (decl_debug_expr_insert): Likewise.
5125 (decl_value_expr_insert): Likewise.
5126 (type_hash_add): Likewise.
5127 (build_omp_clause): Likewise.
5129 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5131 * tree-ssa.c (init_tree_ssa): Likewise.
5133 * tree-ssa-structalias.c (heapvar_insert): Likewise.
5135 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5137 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5139 * tree-ssa-alias.c (get_ptr_info): Likewise.
5141 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5143 * tree-phinodes.c (allocate_phi_node): Likewise.
5145 * tree-iterator.c (tsi_link_before): Likewise.
5146 (tsi_link_after): Likewise.
5148 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5150 * tree-dfa.c (create_var_ann): Likewise.
5152 * tree-cfg.c (create_bb): Likewise.
5154 * toplev.c (alloc_for_identifier_to_locale): Likewise.
5155 (general_init): Likewise.
5157 * stringpool.c (stringpool_ggc_alloc): Likewise.
5158 (gt_pch_save_stringpool): Likewise.
5160 * sese.c (if_region_set_false_region): Likewise.
5162 * passes.c (do_per_function_toporder): Likewise.
5164 * optabs.c (set_optab_libfunc): Likewise.
5165 (set_conv_libfunc): Likewise.
5167 * lto-symtab.c (lto_symtab_register_decl): Likewise.
5169 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5170 (input_eh_region): Likewise.
5171 (input_eh_lp): Likewise.
5172 (make_new_block): Likewise.
5173 (unpack_ts_real_cst_value_fields): Likewise.
5175 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5177 * lto-cgraph.c (input_node_opt_summary): Likewise.
5179 * loop-init.c (loop_optimizer_init): Likewise.
5181 * lambda.h (lambda_vector_new): Likewise.
5183 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5185 * ira.c (update_equiv_regs): Likewise.
5187 * ipa.c (cgraph_node_set_new): Likewise.
5188 (cgraph_node_set_add): Likewise.
5189 (varpool_node_set_new): Likewise.
5190 (varpool_node_set_add): Likewise.
5192 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5193 (duplicate_ipa_jump_func_array): Likewise.
5194 (ipa_read_node_info): Likewise.
5196 * ipa-cp.c (ipcp_create_replace_map): Likewise.
5198 * integrate.c (get_hard_reg_initial_val): Likewise.
5200 * gimple.c (gimple_alloc_stat): Likewise.
5201 (gimple_build_omp_for): Likewise.
5202 (gimple_seq_alloc): Likewise.
5203 (gimple_copy): Likewise.
5205 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5206 (gsi_insert_after_without_update): Likewise.
5208 * function.c (add_frame_space): Likewise.
5209 (insert_temp_slot_address): Likewise.
5210 (assign_stack_temp_for_type): Likewise.
5211 (allocate_struct_function): Likewise.
5212 (types_used_by_var_decl_insert): Likewise.
5214 * except.c (init_eh_for_function): Likewise.
5215 (gen_eh_region): Likewise.
5216 (gen_eh_region_catch): Likewise.
5217 (gen_eh_landing_pad): Likewise.
5218 (add_call_site): Likewise.
5220 * emit-rtl.c (get_mem_attrs): Likewise.
5221 (get_reg_attrs): Likewise.
5222 (start_sequence): Likewise.
5223 (init_emit): Likewise.
5225 * dwarf2out.c (new_cfi): Likewise.
5226 (queue_reg_save): Likewise.
5227 (dwarf2out_frame_init): Likewise.
5228 (new_loc_descr): Likewise.
5229 (find_AT_string): Likewise.
5230 (new_die): Likewise.
5231 (add_var_loc_to_decl): Likewise.
5232 (clone_die): Likewise.
5233 (clone_as_declaration): Likewise.
5234 (break_out_comdat_types): Likewise.
5235 (new_loc_list): Likewise.
5236 (loc_descriptor): Likewise.
5237 (add_loc_descr_to_each): Likewise.
5238 (add_const_value_attribute): Likewise.
5239 (tree_add_const_value_attribute): Likewise.
5240 (add_comp_dir_attribute): Likewise.
5241 (add_name_and_src_coords_attributes): Likewise.
5242 (lookup_filename): Likewise.
5243 (store_vcall_insn): Likewise.
5244 (dwarf2out_init): Likewise.
5246 * dbxout.c (dbxout_init): Likewise.
5248 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5250 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5252 * config/score/score7.c (score7_output_external): Likewise.
5254 * config/score/score3.c (score3_output_external): Likewise.
5256 * config/s390/s390.c (s390_init_machine_status): Likewise.
5258 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5259 (rs6000_init_machine_status): Likewise.
5260 (output_toc): Likewise.
5262 * config/pa/pa.c (pa_init_machine_status): Likewise.
5263 (get_deferred_plabel): Likewise.
5265 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5267 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5269 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5271 * config/mep/mep.c (mep_init_machine_status): Likewise.
5272 (mep_note_pragma_flag): Likewise.
5274 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5276 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5278 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5280 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5281 (i386_pe_maybe_record_exported_symbol): Likewise.
5283 * config/i386/i386.c (get_dllimport_decl): Likewise.
5284 (ix86_init_machine_status): Likewise.
5285 (assign_386_stack_local): Likewise.
5287 * config/frv/frv.c (frv_init_machine_status): Likewise.
5289 * config/darwin.c (machopic_indirection_name): Likewise.
5291 * config/cris/cris.c (cris_init_machine_status): Likewise.
5293 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5295 * config/avr/avr.c (avr_init_machine_status): Likewise.
5297 * config/arm/arm.c (arm_init_machine_status): Likewise.
5299 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5300 (alpha_need_linkage): Likewise.
5301 (alpha_use_linkage): Likewise.
5303 * cgraph.c (cgraph_allocate_node): Likewise.
5304 (cgraph_create_edge_1): Likewise.
5305 (cgraph_create_indirect_edge): Likewise.
5306 (cgraph_add_asm_node): Likewise.
5308 * cfgrtl.c (init_rtl_bb_info): Likewise.
5310 * cfgloop.c (alloc_loop): Likewise.
5311 (rescan_loop_exit): Likewise.
5313 * cfg.c (init_flow): Likewise.
5314 (alloc_block): Likewise.
5315 (unchecked_make_edge): Likewise.
5317 * c-parser.c (c_parse_init): Likewise.
5318 (c_parse_file): Likewise.
5320 * c-decl.c (bind): Likewise.
5321 (record_inline_static): Likewise.
5322 (push_scope): Likewise.
5323 (make_label): Likewise.
5324 (lookup_label_for_goto): Likewise.
5325 (finish_struct): Likewise.
5326 (finish_enum): Likewise.
5327 (c_push_function_context): Likewise.
5329 * bitmap.c (bitmap_element_allocate): Likewise.
5330 (bitmap_gc_alloc_stat): Likewise.
5332 * alias.c (record_alias_subset): Likewise.
5333 (init_alias_analysis): Likewise.
5335 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
5337 * fold-const.c (fold_comparison): Remove redundant parenthesis.
5338 * tree-inline.c (expand_call_inline): Pass translated return value of
5339 cgraph_inline_failed_string to diagnostic function.
5341 2010-06-08 Andrew Pinski <pinskia@gmail.com>
5342 Shujing Zhao <pearly.zhao@oracle.com>
5345 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
5346 implicit bad conversions is initialization.
5347 (error_init): Use gmsgid instead of msgid for argument name and change
5349 (pedwarn_init): Use gmsgid instead of msgid for argument name and
5350 change the call for pedwarn.
5351 (warning_init): Use gmsgid instead of msgid for argument name and
5352 change the call for warning.
5354 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
5356 * config/mips/mips-protos.h (mips_print_operand): Delete.
5357 (mips_print_operand_address): Delete.
5358 * config/mips/mips.h (mips_print_operand_punct): Delete.
5359 (PRINT_OPERAND): Delete.
5360 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5361 (PRINT_OPERAND_ADDRESS): Delete.
5362 * config/mips/mips.c (mips_print_operand_punct): Make static.
5363 (mips_print_operand_address): Make static.
5364 (mips_print_operand): Make static. Call
5365 mips_print_operand_punct_valid_p.
5366 (mips_print_operand_punct_valid_p): New function.
5367 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5368 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5370 2010-06-07 Jan Hubicka <jh@suse.cz>
5373 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5376 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
5378 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5381 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5383 * doc/sourcebuild.texi (Effective-Target Keywords, Other
5384 attributes): Document gas.
5386 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
5388 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5389 <TYPE_LEA>: Split instruction.
5390 <default>: Remove alternative 2 handling.
5391 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5392 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5393 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5395 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5396 (ashift_zext lea splitter): Use DImode for multiplication.
5398 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5399 to generate addition.
5401 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5403 * common.opt (fira-verbose): Use Var.
5404 (fpcc-struct-return): Use Init instead of VarExists.
5405 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5407 * flags.h (flag_signed_char, flag_short_enums,
5408 flag_pcc_struct_return, flag_ira_verbose,
5409 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5410 * toplev.c (flag_detailed_statistics, flag_signed_char,
5411 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5412 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5413 * toplev.h (flag_crossjumping, flag_if_conversion,
5414 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5415 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5416 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5417 flag_cprop_registers, time_report, flag_ira_loop_pressure,
5418 flag_ira_coalesce, flag_ira_move_spills,
5419 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5421 2010-06-07 Jan Hubicka <jh@suse.cz>
5423 * df-core.c (df_analyze_problem): Do verification after allocation.
5425 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5426 (df_lr_alloc): Initialize problem data; move bitmaps to
5428 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5429 (df_lr_verify_solution_start): Do not initialize problem data;
5430 allocate bitmaps in lr_bitmaps.
5431 (df_lr_verify_solution_end): Do not free problem data.
5433 2010-06-07 Jan Hubicka <jh@suse.cz>
5435 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5436 if caller is noreturn.
5437 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5438 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5439 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5440 * ipa-pure-const.c (check_decl): Add IPA parameter.
5441 (state_from_flags): New function.
5442 (better_state, worse_state): New functions.
5443 (check_call): When in IPA mode, do not care about callees.
5444 (check_load, check_store): Update.
5445 (check_ipa_load, check_ipa_store): New.
5446 (check_stmt): When in IPA mode, use IPA checkers.
5447 (analyze_function): Use state_from_flags.
5448 (propagate): Check indirect edges and references.
5450 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
5452 PR rtl-optimization/44404
5453 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5454 of count_occurrences to see if it's safe to modify mem_insn.
5456 2010-06-07 Richard Guenther <rguenther@suse.de>
5458 * gimplify.c (gimplify_cleanup_point_expr): For empty body
5459 and EH-only cleanup drop the cleanup instead of inserting it
5462 2010-06-07 Ira Rosen <irar@il.ibm.com>
5464 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5466 * targhooks.c (default_builtin_vectorization_cost): New function.
5467 * targhooks.h (default_builtin_vectorization_cost): Declare.
5468 * target.h (enum vect_cost_for_stmt): Define.
5469 (builtin_vectorization_cost): Change argument and comment.
5470 * tree-vectorizer.h: Remove cost model macros.
5471 * tree-vect-loop.c: Include target.h.
5472 (vect_get_cost): New function.
5473 (vect_estimate_min_profitable_iters): Replace cost model macros with
5474 calls to vect_get_cost.
5475 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5476 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5477 default implementation.
5478 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5479 calls to target hook builtin_vectorization_cost.
5480 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5482 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5483 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5484 implementation to return costs.
5485 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5486 * config/spu/spu.h: Remove vectorizer cost model macros.
5487 * config/i386/i386.h: Likewise.
5488 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5489 a call to target hook builtin_vectorization_cost.
5491 2010-06-06 Sriraman Tallam <tmsriram@google.com>
5494 * config/i386/i386.c (override_options): Turn zee pass on for level 2
5495 and above and defer till target is known.
5496 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5499 2010-05-25 Jan Hubicka <jh@suse.cz>
5501 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5502 (df_compact_blocks): Likewise.
5503 * df.h (struct df): Turn hardware_regs_used,
5504 regular_block_artificial_uses, eh_block_artificial_uses,
5505 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5507 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5508 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5509 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5510 df_scan_blocks, df_insn_delete, df_insn_rescan,
5511 df_insn_rescan_debug_internal, df_insn_rescan_all,
5512 df_process_deferred_rescans, df_process_deferred_rescans,
5513 df_notes_rescan, df_get_call_refs, df_get_call_refs,
5514 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5515 df_record_entry_block_defs, df_record_exit_block_uses,
5516 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5517 df_scan_verify): Update.
5519 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5522 * c-common.c (is_typedef_decl): Move this definition ...
5523 * tree.c (is_typedef_decl): ... here.
5524 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5525 * c-common.h (is_typedef_decl): Move this declaration ...
5526 * tree.h (is_typedef_decl): ... here.
5527 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5528 * dwarf2out.c (is_naming_typedef_decl): New function.
5529 (gen_tagged_type_die): Split out of ...
5530 (gen_type_die_with_usage): ... this function. When an anonymous
5531 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5532 is emitted for the typedef.
5533 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5534 anonymous tagged types.
5536 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5539 * c-decl.c (grokdeclarator): Delete warning.
5541 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
5543 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5544 newly built CALL_EXPR.
5545 * tree-profile.c (tree_profiling): Don't profile functions produced
5548 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
5552 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5553 endianness-independent.
5555 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5557 * c-common.c: Move to c-family/.
5558 * c-common.def: Likewise.
5559 * c-common.h: Likewise.
5560 * c-cppbuiltin.c: Likewise.
5561 * c-dump.c: Likewise.
5562 * c-format.c: Likewise.
5563 * c-format.h : Likewise.
5564 * c-gimplify.c: Likewise.
5565 * c-lex.c: Likewise.
5566 * c-omp.c: Likewise.
5568 * c-opts.c: Likewise.
5569 * c-pch.c: Likewise.
5570 * c-ppoutput.c: Likewise.
5571 * c-pragma.c: Likewise.
5572 * c-pragma.h: Likewise.
5573 * c-pretty-print.c: Likewise.
5574 * c-pretty-print.h: Likewise.
5575 * c-semantics.c: Likewise.
5576 * stub-objc.c: Likewise.
5578 * gengtype.c (get_file_langdir): Special-case files in c-family/.
5579 (get_output_file_with_visibility): Fix name for c-common.h.
5580 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5582 * c-tree.h: Update include path for moved files.
5583 * c-lang.c: Likewise.
5584 * c-lang.h: Likewise.
5585 * c-parser.c: Likewise.
5586 * c-convert.c: Likewise.
5587 * c-decl.c: Likewise.
5588 * c-objc-common.c: Likewise.
5589 * configure.ac: Make sure c-family/ exists in the build directory.
5590 * configure: Regenerate.
5591 * Makefile.in: Update paths for moved files. Regroup files per
5592 location and update dependencies. Move generated_files down after
5595 * config/spu/spu-c.c: Update paths for moved files.
5596 * config/mep/mep-pragma.c: Likewise.
5597 * config/darwin-c.c: Likewise.
5598 * config/i386/msformat-c.c: Likewise.
5599 * config/i386/i386-c.c: Likewise.
5600 * config/avr/avr-c.c: Likewise.
5601 * config/sol2-c.c: Likewise.
5602 * config/ia64/ia64-c.c: Likewise.
5603 * config/rs6000/rs6000-c.c: Likewise.
5604 * config/arm/arm.c: Likewise.
5605 * config/arm/arm-c.c: Likewise.
5606 * config/h8300/h8300.c: Likewise.
5607 * config/v850/v850-c.c: Likewise.
5609 * config/t-darwin: Fix dependencies for moved files.
5610 * config/t-sol2: Fix dependencies for moved files.
5611 * config/mep/t-mep: Fix dependencies for moved files.
5612 * config/ia64/t-ia64: Fix dependencies for moved files.
5613 * config/rs6000/t-rs6000: Fix dependencies for moved files.
5614 * config/v850/t-v850: Fix dependencies for moved files.
5615 * config/v850/t-v850e: Fix dependencies for moved files.
5617 * config/m32c/m32c-pragma.c
5619 * po/exgettext: Look in c-family/ also.
5621 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
5623 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5624 (mark_control_dependent_edges_necessary): Call it instead of marking
5625 the last statement manually.
5626 (propagate_necessity): Likewise.
5628 2010-06-05 Jan Hubicka <jh@suse.cz>
5630 * basic-block.h (compute_dominance_frontiers): Updated.
5631 (compute_idf): Likewise.
5633 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5634 for dominance frontiers.
5635 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5636 (insert_updated_phi_nodes_for): Likewise.
5637 (update_ssa): Likewise.
5638 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5639 (compute_dominance_frontiers): Likewise.
5640 (compute_idf): Likewise.
5641 * df-problems.c (df_md_local_compute): Likewise.
5643 2010-06-05 Anatoly Sokolov <aesok@post.ru>
5645 * target.h (struct gcc_target): Add memory_move_cost field.
5646 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5647 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5648 * targhooks.c (default_memory_move_cost): New function.
5649 * targhooks.h (default_memory_move_cost): Declare function.
5650 * reload.h (memory_move_cost): Declare.
5651 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5652 * reginfo.c (memory_move_cost): New function.
5653 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5654 * ira.h (ira_memory_move_cost): Update comment.
5655 * ira.c: (ira_memory_move_cost): Update comment.
5656 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5657 with memory_move_cost.
5658 * postreload.c (reload_cse_simplify_set): (Ditto.).
5659 * reload1.c (choose_reload_regs): (Ditto.).
5660 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5661 (MEMORY_MOVE_COST): Revise documentation.
5663 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5664 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5665 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5666 type of 'in' argument to bool.
5667 (TARGET_MEMORY_MOVE_COST): Define.
5669 2010-06-05 Jan Hubicka <jh@suse.cz>
5671 * ipa-pure-const.c (propagate): Fix typo in handling of functions
5672 that cannot return. Be more careful when merging the results with
5673 previously known ones.
5675 2010-06-05 Matthias Klose <doko@ubuntu.com>
5677 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5678 function to add the -iplugindir option.
5679 (find_plugindir_spec_function): Add new declaration and function.
5680 (static_spec_func): Use it for "find-plugindir".
5682 2010-06-05 Jakub Jelinek <jakub@redhat.com>
5685 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5686 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5687 statement expression.
5689 2010-06-05 Jan Hubicka <jh@suse.cz>
5691 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5692 (df_rd_problem_data): Convert sparse_invalidated_by_call,
5693 dense_invalidated_by_call to bitmap head.
5694 (df_rd_alloc, df_rd_bb_local_compute_process_def,
5695 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5696 df_rd_start_dump, df_lr_verify_transfer_functions,
5697 df_live_verify_transfer_functions, df_chain_create_bb,
5698 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5699 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5700 df_simulate_one_insn_forwards, df_md_alloc,
5701 df_md_bb_local_compute_process_def,
5702 df_md_bb_local_compute_process_def, df_md_local_compute,
5703 df_md_transfer_function df_md_free): Update.
5705 2010-06-05 Joseph Myers <joseph@codesourcery.com>
5708 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5709 target type for ADDR_EXPR; require no changes to qualifiers except
5711 * c-tree.h (c_build_type_variant): Remove.
5713 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5715 * genautomata.c (get_excl_set): Do work per element, not per char.
5716 (check_presence_pattern_sets): Similar.
5717 (check_absence_pattern_sets): Similar.
5719 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5721 * genautomata.c (curr_state_pass_num): Delete.
5722 (min_issue_delay_pass_states): Delete.
5723 (min_issue_delay): Delete.
5724 (initiate_min_issue_delay_pass_states): Delete.
5725 (output_min_issue_delay_table): Compute min_issue_delay_vect
5726 using a breadth-first search variant.
5727 (output_tables): Don't call initiate_min_issue_delay_pass_states.
5729 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
5732 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5733 (df_byte_lr_bb_local_compute): Likewise.
5735 2010-06-03 Jason Merrill <jason@redhat.com>
5737 Implement noexcept operator (5.3.7)
5738 * c-common.c (c_common_reswords): Add noexcept.
5739 * c-common.h (enum rid): Add RID_NOEXCEPT.
5741 2010-06-04 Joseph Myers <joseph@codesourcery.com>
5743 * config/darwin-driver.c (darwin_default_min_version): Use
5744 GCC-specific formats in diagnostics.
5745 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5747 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5748 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5749 eval_spec_function, handle_braces, process_brace_body, main,
5750 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5751 getenv_spec_function, compare_version_strings,
5752 version_compare_spec_function): Use GCC-specific formats in
5755 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5757 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5758 that operand 0 and operand 1 are equal.
5759 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5760 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5761 and operand 1 are equal.
5762 <default>: Ditto. Remove ??? comment.
5763 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5764 and operand 1 are equal.
5765 <default>: Ditto. Remove ??? comment.
5766 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5768 (*add<mode>_4) <default>: Ditto.
5769 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5771 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
5773 * config/i386/i386-protos.h (ix86_print_operand): Declare.
5774 * config/i386/i386.c (ix86_print_operand): Make non-static.
5775 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5776 * output.h (output_operand): Declare.
5777 * final.c (output_operand): Make non-static.
5779 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
5781 PR rtl-optimization/44013
5782 * sched-deps.c (add_dependence_list_and_free): Don't free lists
5783 when processing debug insns.
5786 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5787 recursing. Check that recursion is bounded. Rename inner var
5788 to avoid hiding incoming argument.
5790 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5792 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5797 (*addqi_ext_1_rex64): Ditto.
5798 (*addqi_ext_1): Ditto.
5800 (*addqi_4): Check for incdec_operand in QImode.
5802 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5803 using SWI mode iterator.
5804 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5805 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5807 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5808 using SWI mode iterator.
5810 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5813 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5814 * c-format.c (gcc_diag_flag_specs): Add hash.
5815 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5816 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5817 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5818 pp_c_cv_qualifiers. Handle qualifiers spelling here.
5819 (pp_c_type_qualifier_list): Call the function above.
5820 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5821 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5822 (WARN_FOR_QUALIFIERS): New macro.
5823 (convert_for_assignment): Use it.
5825 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
5827 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5829 2010-06-04 Jan Hubicka <jh@suse.cz>
5831 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5832 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5833 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5834 DF_BYTE_LR_OUT): Update for embedded bitmaps.
5835 * fwprop.c (single_def_use_enter_block): Likewise.
5836 * ddg.c (create_ddg_dep_from_intra_loop_link,
5837 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5838 * loop-iv.c (latch_dominating_def): Likewise.
5839 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5840 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5841 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5842 df_rd_transfer_function, df_rd_top_dump,
5843 df_rd_bottom_dump): Update.
5844 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5845 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5846 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5847 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5848 df_lr_verify_solution_start, df_lr_verify_solution_end,
5849 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5850 df_live_free_bb_info, df_live_alloc, df_live_reset,
5851 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5852 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5853 df_live_verify_solution_start, df_live_verify_solution_end,
5854 df_live_verify_transfer_functions, df_chain_create_bb,
5855 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5856 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5857 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5858 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5859 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5860 df_byte_lr_transfer_function, df_byte_lr_top_dump,
5861 df_byte_lr_bottom_dump, df_create_unused_note,
5862 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5863 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5864 df_md_transfer_function, df_md_init, df_md_confluence_0,
5866 df_md_top_dump, df_md_bottom_dump): Update.
5867 (struct df_lr_problem_data): Embedd bitmap headers.
5869 2010-06-04 Jan Hubicka <jh@suse.cz>
5871 * dce.c (dce_process_block): Do not re-scan already marked
5874 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
5876 PR rtl-optimization/39871
5877 PR rtl-optimization/40615
5878 PR rtl-optimization/42500
5879 PR rtl-optimization/42502
5880 * ira.c (init_reg_equiv_memory_loc: New function.
5881 (ira): Call it twice.
5882 * reload.h (calculate_elim_costs_all_insns): Declare.
5883 * ira-costs.c: Include "reload.h".
5884 (regno_equiv_gains): New static variable.
5885 (init_costs): Allocate it.
5886 (finish_costs): Free it.
5887 (ira_costs): Call calculate_elim_costs_all_insns.
5888 (find_costs_and_classes): Take estimated elimination costs
5890 (ira_adjust_equiv_reg_cost): New function.
5891 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5892 * reload1.c (init_eliminable_invariants, free_reg_equiv,
5893 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5894 (elim_bb): New static variable.
5895 (reload): Move code out of here into init_eliminable_invariants and
5896 free_reg_equiv. Call them.
5897 (calculate_elim_costs_all_insns): New function.
5898 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
5899 all callers changed. If FOR_COSTS is true, don't call alter_reg,
5900 but call note_reg_elim_costly if we turned a valid memory address
5901 into an invalid one.
5902 * Makefile.in (ira-costs.o): Depend on reload.h.
5904 2010-06-04 Julian Brown <julian@codesourcery.com>
5906 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5909 2010-06-04 Richard Guenther <rguenther@suse.de>
5912 * cgraph.h (struct varpool_node): Add lto_file_data field.
5913 * lto-cgraph.c (input_varpool_node): Initialize it.
5915 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5917 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5918 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5919 predicate in "type" attribute calculation.
5920 (*addsi_1_zext): Ditto.
5921 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5922 (*addsi_2_zext): Ditto.
5923 (*add<mode>_3): Ditto.
5924 (*addsi_3_zext): Ditto.
5925 (*add<mode>_5): Ditto.
5927 2010-06-03 Jan Hubicka <jh@suse.cz>
5929 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5931 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5933 2010-06-03 Jan Hubicka <jh@suse.cz>
5935 * df-problems.c (df_create_unused_note, df_note_bb_compute):
5936 micro-optimize the checks when to add new note.
5938 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
5940 * final.c (output_asm_insn): Call
5941 targetm.asm_out.print_operand_punct_valid_p. Update comments.
5942 (output_operand): Call targetm.asm_out.print_operand. Update comments.
5943 (output_address): Call targetm.asm_out.print_operand_address.
5945 * target.h (struct gcc_target): Add print_operand,
5946 print_operand_address, and print_operand_punct_valid_p fields.
5947 * targhooks.h (default_print_operand): Declare.
5948 (default_print_operand_address): Declare.
5949 (default_print_operand_punct_valid_p): Declare.
5950 * targhooks.c (default_print_operand): Define.
5951 (default_print_operand_address): Define.
5952 (default_print_operand_punct_valid_p): Define.
5953 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5954 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5955 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5956 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5957 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5958 * vmsdbgout.c (addr_const_to_string): Update comment.
5959 * config/i386/i386.c (print_operand): Rename to...
5960 (ix86_print_operand): ...this. Make static.
5961 (print_operand_address): Rename to...
5962 (ix86_print_operand_address): ...this. Make static. Call
5963 ix86_print_operand instead of PRINT_OPERAND.
5964 (ix86_print_operand_punct_valid_p): New function.
5965 (TARGET_PRINT_OPERAND): Define.
5966 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5967 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5968 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5969 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5970 (PRINT_OPERAND): Delete.
5971 (PRINT_OPERAND_ADDRESS): Delete.
5972 * config/i386/i386-protos.h (print_operand): Delete prototype.
5973 (print_operand_address): Delete prototype.
5975 2010-06-03 Richard Guenther <rguenther@suse.de>
5977 PR tree-optimization/44403
5978 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5979 Preserve pointer qualifiers.
5980 (vect_create_data_ref_ptr): Likewise.
5982 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
5985 * defaults.h (MAX_FIXED_MODE_SIZE): New.
5987 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5989 2010-06-03 Jakub Jelinek <jakub@redhat.com>
5992 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5993 return false if merging the bbs would lead to goto_locus
5994 location being lost from the IL.
5996 2010-06-03 Jan Hubicka <jh@suse.cz>
5997 Jakub Jelinek <jakub@redhat.com>
5999 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6000 set->regs[i] is NULL or has just one entry.
6002 2010-06-03 Jan Hubicka <jh@suse.cz>
6004 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6005 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6007 2010-06-03 Paul Brook <paul@codesourcery.com>
6009 * config/arm/arm.c (FL_TUNE): Define.
6010 (arm_default_cpu, arm_cpu_select): Remove.
6011 (all_cores): Populate core field.
6012 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6013 (arm_find_cpu): New function.
6014 (arm_handle_option): Lookup cpu/architecture names.
6015 (arm_override_options): Cleanup mcpu/march/mtune handling.
6016 (arm_file_start): Ditto.
6018 2010-06-03 Alan Modra <amodra@gmail.com>
6021 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6022 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6023 rtx to gen_load_toc_v4_PIC_1b. Tidy.
6024 (rs6000_emit_load_toc_table): Likewise.
6026 2010-06-02 Jan Hubicka <jh@suse.cz>
6028 * passes.c (init_optimization_passes): Put ipa reference
6029 after ipa pure-const.
6031 2010-06-02 Jan Hubicka <jh@suse.cz>
6033 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6034 calls_read_all and calls_write_all.
6035 (get_reference_optimization_summary): Fix formatting.
6036 (is_proper_for_analysis): Check that decl is not readonly.
6037 (propagate_bits): Check CONST/PURE/noreturn flags.
6038 (ipa_init): Move all_module_statics to optimization_summary_obstack.
6039 (analyze_function): Ignore indirect edges.
6040 (copy_global_bitmap): For all module statics, do nothing.
6041 (generate_summary): Do not print calls_read_all/calls_write_all.
6042 (read_write_all_from_decl): Take node as argument; check
6043 cgraph_node_cannot_return.
6044 (propagate): Reorganize read_all/write_all computation;
6045 check indirect edges; check ecf flags; use all_module_statics
6046 in the results; do not free all_module_statics.
6047 (stream_out_bitmap): Handle all_module_statics.
6048 (ipa_reference_write_optimization_summary): Likewise; use
6049 varpool/cgraph encoders to get boundaries.
6050 (ipa_reference_read_optimization_summary): Read in all_module_statics;
6051 use it when possible.
6053 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6056 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6057 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6059 * doc/extend.texi (powerpc builtins): Document vec_recip,
6060 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6062 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6063 (rs6000_emit_swrsqrt): Ditto.
6064 (rs6000_emit_swdivsf): Delete.
6065 (rs6000_emit_swdivdf): Ditto.
6066 (rs6000_emit_swrsqrtsf): Ditto.
6068 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6069 describe the reciprocal estimate support for each type.
6070 (recip_options): Map -mrecip=<opt> into option bits.
6071 (gen_2arg_fn_t): New typedef for binary rtx gen function.
6072 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6073 reciprocal estimate instructions.
6074 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6075 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6076 Set up rs6000_recip_bits based on the -mrecip* options. Print the
6077 cost information if -mdebug=cost or -mdebug=reg.
6078 (rs6000_override_options): Set -mrecip-precision for power6, and
6079 power7 machines. If -mvsx or -mdfp, enable various options that
6080 came in previous instruction set ISAs, unless the option was
6081 explicitly disabled by the command line option. Parse
6082 -mrecip=<opt> options.
6083 (rs6000_builtin_vectorized_function): Add support for vectorizing
6084 the reciprocal estimate builtins and expansions.
6085 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6086 (bdesc_2arg): Add reciprocal estimate builtins.
6087 (bdesc_1arg): Add reciprocal square root estimate builtins.
6088 (rs6000_expand_builtin): Rewrite to use a switch statement,
6089 instead of multiple if/then/elses. Add reciprocal estimate builtins.
6090 (rs6000_init_builtins): Create declarations for reciprocal
6092 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6093 sized, prefer traditional floating point registers, if integer
6094 vector types, prefer altivec registers. Don't actually look at
6095 the memory address any more.
6096 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6098 (rs6000_load_constant_and_splat): New helper function to load up
6099 the constant for reciprocal estimate instructions.
6100 (rs6000_emit_madd): New helper function for generating
6101 multiply/add type instructions, based on the current switches.
6102 (rs6000_emit_msub): Ditto.
6103 (rs6000_emit_mnsub): Ditto.
6104 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6105 replace a divide with a reciprocal estimate and fixup, adding
6106 support for machines with high precision and vectors.
6107 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6108 low precision machines.
6109 (rs6000_emit_swdiv): New common function to be called to replace a
6110 division with reciprocal estimate and fixup.
6111 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
6112 for double and vector types. Add support for high precision machines.
6114 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6115 the reciprocal estimate instructions can be generated.
6116 (TARGET_FRE): Ditto.
6117 (TARGET_FRSQRTES): Ditto.
6118 (TARGET_FRSQRTE): Ditto.
6119 (RS6000_RECIP_*): New macros for reciprocal estimate support.
6121 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6122 square root estimate on vectors.
6123 (re<mode>2): New insn for reciprocal division estimate on vectors.
6125 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6127 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6128 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6129 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6130 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6131 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6132 (RS6000_BUILTIN_RSQRT): Ditto.
6133 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6134 floating point builtin.
6136 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6137 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6138 __RECIP_PRECISION__ based on the command line switches.
6139 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6141 * config/rs6000/rs6000.opt (-mrecip): Document add support for
6142 replacing division instructions with reciprocal estimate and fixup.
6143 (-mrecip=<opt>): New option.
6144 (-mrecip-precision): Ditto.
6146 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6147 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6148 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6151 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6152 (UNSPEC_VREFP): Ditto.
6153 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6154 conterparts with regard to support of -mno-fused-madd and -ffast-math.
6155 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6156 reciprocal estimate instructions to be generated.
6157 (altivec_vrefp): Ditto.
6159 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6161 (rreg): New mode attribute for reciprocal estimate support.
6162 (recip<mode>3): New insn for division using reciprocal estimate
6164 (divide define_split): New define_split to convert floating point
6165 division to use reciprocal estimate if the user used the
6166 appropriate options and the split is run when we can add new
6167 pseudo registers for the fixup.
6168 (rsqrt<mode>2): New insn for reciprocal square root support.
6169 (recipsf3): Move into recip<mode>3.
6171 (fres): Use TARGET_FRES.
6172 (rsqrtsf2): Move into rsqrt<mode>2.
6173 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6174 (copysignsf3): Add support for VSX.
6175 (fred): Use TARGET_FRE.
6177 (rsqrtdf_internal1): New function for frsqrte instruciton.
6179 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6182 2010-06-03 Richard Guenther <rguenther@suse.de>
6185 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6186 (set_user_assembler_libfunc): Likewise.
6188 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6190 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6192 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6194 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6195 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6196 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6197 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6198 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6199 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6200 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6201 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6202 * defaults.h: Updated for above mentioned changes.
6204 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
6206 * c-common.c: Remove header include of tm_p.h.
6207 * Makefile.in (c-common.o): Remove TM_P_H dependency.
6209 2010-06-02 Jakub Jelinek <jakub@redhat.com>
6211 * tree.h (struct tree_decl_map): New type.
6212 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6213 (tree_decl_map_hash): New prototype.
6214 (debug_expr_for_decl, value_expr_for_decl): Change into
6215 tree_decl_map hashtab from tree_map.
6216 (init_ttree): Adjust initialization.
6217 (tree_decl_map_hash): New function.
6218 (decl_debug_expr_lookup, decl_debug_expr_insert,
6219 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6221 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6223 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6225 * configure: Regenerate.
6226 * config.in: Regenerate.
6228 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6229 (X86_64_EMULATION): Define.
6230 (TARGET_LD_EMULATION): Use them.
6232 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6233 (SPARC64_EMULATION): Define.
6234 (LINK_ARCH_SPEC): Use them.
6236 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6238 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6239 smallest_mode_for_size for computing the precision types of new
6240 graphite IVs. Do not call lang_hooks.types.type_for_size.
6242 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6244 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6246 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6248 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6251 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6252 return false instead.
6254 2010-06-02 Jan Hubicka <jh@suse.cz>
6257 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6258 create new cgraph node to check callee.
6260 2010-06-02 Richard Guenther <rguenther@suse.de>
6262 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6264 2010-06-02 Richard Guenther <rguenther@suse.de>
6266 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6267 (lto_wrapper_cleanup): ... this. Do not exit.
6268 (fatal): Adjust. Exit here.
6269 (fatal_perror): Likewise.
6270 (fatal_signal): New function.
6271 (main): Set up signal handlers to cleanup temporary files.
6272 * Makefile.in (lto-wrapper.o): Adjust dependencies.
6274 2010-06-02 Richard Guenther <rguenther@suse.de>
6276 PR tree-optimization/44377
6277 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
6279 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6281 * config/s390/2097.md (z10_fhex): Remove insn reservation.
6282 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
6283 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6284 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
6286 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
6288 2010-06-02 Jan Hubicka <jh@suse.cz>
6290 * bitmap.c (bitmap_descriptor): Add search_iter.
6291 (bitmap_find_bit): Increment it.
6292 (print_statistics): Print it.
6294 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
6296 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
6297 instead of gimple_build_call_vec. Delete unnecessary local variable.
6299 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6301 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
6302 change from yesterday.
6304 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6306 * c-ada-spec.c: Clean up redundant includes.
6308 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
6310 * gimplify.c: Do not include except.h and optabs.h.
6311 (gimplify_body): Do not initialize RTL profiling.
6312 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
6313 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
6314 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
6315 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
6318 * tree-pretty-print.h: Include pretty-print.h.
6319 * gimple-pretty-print.h: Include pretty-print.h.
6321 * tree-pretty-print.c: Do not include diagnostic.h.
6322 * tree-vrp.c: Likewise.
6323 * tree-tailcall.c: Likewise
6324 * tree-scalar-evolution.c: Likewise
6325 * tree-ssa-dse.c: Likewise
6326 * tree-chrec.c: Likewise
6327 * tree-ssa-sccvn.c: Likewise
6328 * tree-ssa-copyrename.c: Likewise
6329 * tree-nomudflap.c: Likewise
6330 * tree-call-cdce.c: Likewise
6331 * tree-stdarg.c: Likewise
6332 * tree-ssa-math-opts.c: Likewise
6333 * tree-nrv.c: Likewise
6334 * tree-ssa-sink.c: Likewise
6335 * tree-browser.c: Likewise
6336 * tree-ssa-loop-ivcanon.c: Likewise
6337 * tree-ssa-loop.c: Likewise
6338 * tree-parloops.c: Likewise
6339 * tree-ssa-address.c: Likewise
6340 * tree-ssa-ifcombine.c: Likewise
6341 * tree-if-conv.c: Likewise
6342 * tree-data-ref.c: Likewise
6343 * tree-affine.c: Likewise
6344 * tree-ssa-phiopt.c: Likewise
6345 * tree-ssa-coalesce.c: Likewise
6346 * tree-ssa-pre.c: Likewise
6347 * tree-ssa-live.c: Likewise
6348 * tree-predcom.c: Likewise
6349 * tree-ssa-forwprop.c: Likewise
6350 * tree-ssa-dce.c: Likewise
6351 * tree-ssa-ter.c: Likewise
6352 * tree-ssa-loop-prefetch.c: Likewise
6353 * tree-optimize.c: Likewise
6354 * tree-ssa-phiprop.c: Likewise
6355 * tree-object-size.c: Likewise
6356 * tree-outof-ssa.c: Likewise
6357 * tree-ssa-structalias.c: Likewise
6358 * tree-switch-conversion.c: Likewise
6359 * tree-ssa-reassoc.c: Likewise
6360 * tree-ssa-operands.c: Likewise
6361 * tree-vectorizer.c: Likewise
6362 * tree-vect-data-refs.c: Likewise
6363 * tree-vect-generic.c: Likewise
6364 * tree-vect-stmts.c: Likewise
6365 * tree-vect-patterns.c: Likewise
6366 * tree-vect-slp.c: Likewise
6367 * tree-vect-loop.c: Likewise
6368 * tree-ssa-loop-ivopts.c: Likewise
6369 * tree-ssa-loop-im.c: Likewise
6370 * tree-ssa-loop-niter.c: Likewise
6371 * tree-ssa-loop-unswitch.c: Likewise
6372 * tree-ssa-loop-manip.c: Likewise
6373 * tree-ssa-loop-ch.c: Likewise
6374 * tree-dump.c: Likewise
6375 * tree-complex.c: Likewise
6377 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6378 * tree-ssa-uninit.c: Likewise
6379 * tree-ssa-threadupdate.c: Likewise
6380 * tree-ssa-uncprop.c: Likewise
6381 * tree-ssa-ccp.c: Likewise
6382 * tree-ssa-dom.c: Likewise
6383 * tree-ssa-propagate.c: Likewise
6384 * tree-ssa-alias.c: Likewise
6385 * tree-dfa.c: Likewise
6386 * tree-cfgcleanup.c: Likewise
6387 * tree-sra.c: Likewise
6388 * tree-ssa-copy.c: Likewise
6389 * tree-ssa.c: Likewise
6390 * tree-profile.c: Likewise
6391 * tree-cfg.c: Likewise
6392 * tree-ssa-threadedge.c: Likewise
6393 * tree-vect-loop-manip.c: Likewise
6395 * tree-inline.c: Do not include diagnostic.h and expr.h.
6397 (copy_decl_for_dup_finish): Do not use NULL_RTX.
6399 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6400 * tree-loop-distribution.c: Likewise.
6402 2010-06-01 Jan Hubicka <jh@suse.cz>
6404 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6406 2010-06-01 Jan Hubicka <jh@suse.cz>
6408 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6409 remove return value.
6410 (split_bbs_on_noreturn_calls) .... here.
6411 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6412 * tree-flow.h (fixup_noreturn_call): New.
6414 2010-06-01 Jan Hubicka <jh@suse.cz>
6416 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6418 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
6420 * tree.h (build_nt_call_list): Delete.
6421 * tree.c (build_nt_call_list): Delete.
6423 2010-06-01 Jan Hubicka <jh@suse.cz>
6425 * fwprop.c: Make emit-rtl.h include last.
6426 * rtlanal.c: Include emit-rtl.h.
6427 * genautomata.c: Output emit-rtl include into insn-automata.c
6428 * df-scan.c: Include emit-rtl.h.
6429 * haifa-sched.c: Indlude emit-rtl.h.
6430 * mode-switching.c: Indlude emit-rtl.h.
6431 * graph.c: Indlude emit-rtl.h.
6432 * sel-sched.c: Include emit-rtl.h.
6433 * sel-sched-ir.c: Include emit-rtl.h.
6434 * ira-build.c: Include emit-rtl.h.
6435 * emit-rtl.c: (first_insn, last_insn): Remove defines.
6436 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6438 (set_new_first_and_last_insn, get_last_insn_anywhere,
6439 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6440 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6441 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6442 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6443 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6444 Use accessor functions.
6445 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6446 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6447 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6448 mem_expr_equal_p): Move here from rtl.h.
6449 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6450 Move here from emit-rtl.c; make inline.
6451 * cfglayout.h: Include emit-rtl.h.
6452 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6453 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6454 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6455 mem_expr_equal_p, get_insns, set_first-insn,
6456 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6457 * reg-stack.c: Include emit-rtl.h.
6460 2010-06-01 Jan Hubicka <jh@suse.cz>
6462 * cgraph.h (tree_function_versioning): Update prototype.
6463 (cgraph_function_versioning): Update prototype.
6464 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6466 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6467 (cgraph_materialize_clone, save_inline_function_body): Update use of
6468 tree_function_versioning.
6469 * tree-inline.c (copy_bb): Look for previous copied block to link
6470 after; fix debug output.
6471 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6472 (copy_body): Likewise.
6473 (expand_call_inline): Update use of copy_body.
6474 (tree_function_versioning): Update use of copy body; accept
6475 blocks_to_copy and new_entry.
6477 2010-06-01 Jan Hubicka <jh@suse.cz>
6479 * gegenrtl.c: Remove unnecesary prototypes.
6481 (gendef): Produce static inline.
6483 (main): Do not decode parameters; generate header only.
6484 * Makefile.in (genrtl.c): Remove.
6486 2010-06-01 Jan Hubicka <jh@suse.cz>
6488 * tree-switch-conversion.c (build_one_array): Make it readonly.
6490 2010-06-01 Richard Guenther <rguenther@suse.de>
6492 * optabs.c (init_optabs): Guard all accesses to reinit.
6493 * ipa-pure-const.c (propagate): Fix another typo.
6494 * opts.c (common_handle_option): Split assignment to bool.
6495 * c-opts.c (c_common_handle_option): Likewise.
6497 2010-06-01 Arnaud Charlet <charlet@adacore.com>
6498 Matthew Gingell <gingell@adacore.com>
6500 * doc/invoke.texi: Mention -fdump-ada-spec.
6501 * tree-dump.c (dump_files): Add ada-spec.
6502 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6503 * tree-pass.h (tree_dump_index): Add TDI_ada.
6504 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6505 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6506 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6507 * c-decl.c: Include c-ada-spec.h.
6508 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6510 (c_write_global_declarations): Add handling of -fdump-ada-spec.
6511 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6512 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6513 * c-ada-spec.h, c-ada-spec.c: New files.
6515 2010-06-01 Richard Guenther <rguenther@suse.de>
6518 * ipa-pure-const.c (get_function_state): Hand back varying state
6519 if we do not have one.
6520 (has_function_state): New function.
6521 (duplicate_node_data): Adjust.
6522 (remove_node_data): Likewise.
6523 (pure_const_write_summary): Likewise.
6524 (propagate): Likewise. Fix typo.
6526 2010-06-01 Jan Hubicka <jh@suse.cz>
6528 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6529 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6530 (execute_all_ipa_transforms): Do not play with the states.
6532 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6534 * config/arm/t-linux-androideabi: New.
6535 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6537 2010-06-01 Jan Hubicka <jh@suse.cz>
6539 * tree-inline.c (estimate_num_insns): For stdarg functions look
6540 into call statement to count cost of argument passing.
6542 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
6544 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6545 argument for fprintf.
6546 (ix86_output_addr_diff_elt): Likewise.
6547 (x86_function_profiler): Likewise.
6548 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6549 (LPREFIX): Likewise.
6550 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6552 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6555 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6556 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6557 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6558 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6559 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6560 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6561 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6562 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6565 2010-05-31 Jan Hubicka <jh@suse.cz>
6567 * tree.h (tree_range_check_failed): Declare noreturn.
6569 2010-05-31 Jan Hubicka <jh@suse.cz>
6571 * gimple.c (gimple_call_builtin_p): New function.
6572 * gimple.h (gimple_call_builtin_p): Declare.
6573 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6575 (execute_warn_function_return): BUILT_IN_RETURN is return.
6576 (split_critical_edges): Return edges are not critical.
6577 (is_ctrl_altering_stmt): Builtin_in_return is altering.
6578 (gimple_verify_flow_info): Handle built_in_return.
6579 (execute_warn_function_return): Handle built_in_return.
6580 * ipa-pure-const.c (check_call): Ignore builtin_return.
6582 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6585 * expr.c (expand_assignment): Don't store anything for out-of-bounds
6586 array accesses with non-MEM.
6588 PR tree-optimization/44182
6589 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6590 newly needs to end a bb is followed by debug stmts, instead return
6591 true from the function at the end.
6592 (maybe_move_debug_stmts_to_successors): New function.
6593 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6595 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
6598 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6600 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
6602 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6603 for nested functions in non-optimized compilation.
6605 2010-05-31 Richard Guenther <rguenther@suse.de>
6607 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6609 2010-05-30 Jan Hubicka <jh@suse.cz>
6611 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6613 2010-05-30 Richard Guenther <rguenther@suse.de>
6616 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6617 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6620 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
6622 * config/darwin.c (output_objc_section_asm_op): Add comment.
6623 (name_needs_quotes): Add '_' to list of valid comment chars.
6624 (machopic_output_function_base_name): Remove unneeded quotes.
6625 (darwin_encode_section_info): Adjust asm whitespace.
6626 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6627 (ASM_OUTPUT_LOCAL): Ditto.
6628 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6629 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6630 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6632 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6634 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6635 RS6000_OUTPUT_BASENAME unconditionally.
6636 (rs6000_output_function_epilogue): Likewise.
6638 2010-05-30 Jan Hubicka <jh@suse.cz>
6640 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6643 2010-05-30 Richard Guenther <rguenther@suse.de>
6645 * tree-cfg.c (verify_gimple_assign_single): Implement
6646 verification for COND_EXPR rhs.
6648 2010-05-30 Jan Hubicka <jh@suse.cz>
6650 * cgraph.h (cgraph_dump_file): Declare.
6651 * cgraphunit.c (cgraph_dump_file): Export.
6652 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6654 2010-05-30 Jan Hubicka <jh@suse.cz>
6656 * dwarf2out.c (reference_to_unused,
6657 premark_types_used_by_global_vars_helper): Avoid creation of new
6660 2010-05-30 Jan Hubicka <jh@suse.cz>
6662 * cgraph.h (cgraph_node_cannot_return,
6663 cgraph_edge_cannot_lead_to_return): New functions.
6664 * cgraph.c (cgraph_node_cannot_return,
6665 cgraph_edge_cannot_lead_to_return): Use them.
6666 * ipa-pure-const.c (pure_const_names): New static var.
6667 (check_call): Handle calls not leading to return.
6668 (pure_const_read_summary): Dump info read.
6669 (propagate): Dump info about propagation process; ignore side effects
6670 of functions not leading to exit; fix handling of pure functions.
6672 2010-05-30 Jan Hubicka <jh@suse.cz>
6674 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6675 for tail call epilogues.
6677 2010-05-30 Jan Hubicka <jh@suse.cz>
6679 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6680 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6683 2010-05-29 Jan Hubicka <jh@suse.cz>
6685 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6686 node; remove references in node we no longer keep in cgrpah but need
6689 2010-05-29 Jan Hubicka <jh@suse.cz>
6691 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6693 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6696 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6698 2010-05-29 Jan Hubicka <jh@suse.cz>
6700 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6701 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6702 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6703 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6704 debug_names_replaced_by, debug_update_ssa): Likewise.
6705 * sbitmap.c (debug_sbitmap): Likewise.
6706 * genrecog.c (debug_decision, debug_decision_list): Likewise.
6707 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6708 debug_tree_chain): Likewise.
6709 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6710 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6711 * optabs.c (debug_optab_libfuncs): Likewise.
6712 (verify_loop_closed_ssa): Likewise.
6713 * value-prof.c (verify_histograms): Likewise.
6714 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6715 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6716 * cfghooks.c (verify_flow_info): Likewise.
6717 * fold-const.c (debug_fold_checksum): Likewise.
6718 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6719 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6721 * omega.c (debug_omega_problem): Likewise.
6722 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6723 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6724 * dominance.c (verify_dominators, debug_dominance_info,
6725 debug_dominance_tree): Likewise.
6726 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6727 * df_regno_debug, df_ref_debug,
6728 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6729 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6730 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6731 * sel-sched.c (debug_state): Likewise.
6732 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6734 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6735 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6736 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6737 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6739 * c-pretty-print.c (debug_c_tree): Likewise.
6740 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6741 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6742 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6743 * ebitmap.c (debug_ebitmap): Likewise.
6744 * function.c (debug_find_var_in_block_tree): Likewise.
6745 * print-rtl.c (debug_rtx): Likewise.
6746 (debug_rtx_count): Likewise.
6747 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6748 * stor-layout.c (debug_rli): Likewise.
6749 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6750 * tree-data-ref.c (debug_data_references,
6751 debug_data_dependence_relations, debug_data_reference,
6752 debug_data_dependence_relation, debug_rdg_vertex,
6753 debug_rdg_component, debug_rdg): Likewise.
6754 * tree-affine.c (debug_aff): Likewise.
6755 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6757 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6758 * emit-rtl.c (verify_rtl_sharing): Likewise.
6759 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6760 debug_value_expressions): Likewise.
6761 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6762 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6763 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6764 * cfglayout.c (verify_insn_chain): Likewise.
6765 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6766 debug_clast_stmt, debug_generated_program): Likewise.
6767 * ggc-page.c (debug_print_page_list): Likewise.
6768 * tree-ssa-ter.c (debug_ter): Likewise.
6769 * graphite-dependences.c (debug_pddr): Likewise.
6770 * sched-deps.c (debug_ds): Likewise.
6771 * tree-ssa.c (verify_ssa): Likewise.
6772 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6773 debug_scattering_functions, debug_iteration_domains, debug_pdr,
6774 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6775 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6776 * tree-inline.c (debug_find_tree): Likewise.
6777 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6778 debug_ppl_powerset_matrix): Likewise.
6779 * var-tracking.c (debug_dv): Likewise.
6780 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6781 * cfgloop.c (verify_loop_structure): Likewise.
6782 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6783 * c-common.c (verify_sequence_points): Likewise.
6784 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6785 debug_candidates, debug_rgn_dependencies): Likewise.
6786 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6787 * debug_constraint_graph, debug_solution_for_var,
6788 debug_sa_points_to_info): Likewise.
6789 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6791 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6792 debug_loops, debug_loop, debug_loop_num): Likewise.
6793 * passes.c (debug_pass): Likewise.
6794 (dump_properties): Likewise; add cfglayout property.
6795 (debug_properties): Likewise.
6796 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6797 * varpool.c (debug_varpool): Likewise.
6798 * regcprop.c (debug_value_data): Likewise.
6799 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6800 debug_immediate_uses_for): Likewise.
6802 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6805 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6806 Filter out insn-flags.h.
6808 2010-05-29 Jan Hubicka <jh@suse.cz>
6810 * cgraph.h (struct varpool_node_set_def,
6811 struct cgraph_node_set_def): Remove unused AUX pointer.
6812 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6815 2010-05-29 Jan Hubicka <jh@suse.cz>
6818 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6820 2010-05-29 Richard Guenther <rguenther@suse.de>
6822 * lto-streamer.c (cached_bp): New global variable.
6823 (bitpack_create): Return the cached bitpack, if available.
6824 (bitpack_delete): Clear and cache the bitpack, if appropriate.
6825 (bp_pack_value): Remove redundant asserts.
6827 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6830 * tree-if-conv.c (is_true_predicate): New.
6831 (is_predicated): Use is_true_predicate.
6832 (add_to_predicate_list): Same. Do not use unshare_expr.
6833 (add_to_dst_predicate_list): Same.
6835 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6837 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6839 (predicate_bbs): Same.
6840 (clean_predicate_lists): Same.
6841 (find_phi_replacement_condition): Do not AND the predicate from
6844 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6847 * Makefile.in (build/gencondmd.o): Add a missing `\'.
6849 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6852 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6853 (negdf2): Adjust expander pattern and use negdf2_slow.
6856 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
6858 * basic-block.h (struct control_flow_graph): Move last_label_uid field
6860 * df.h (struct df_base_ref): Move regno field up.
6861 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6862 * expr.h (struct separate_ops): Move location field up.
6863 * optabs.h (struct optab_d): Move libcall_basename field down.
6864 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6865 * config/i386/i386.h (struct machine_function): Convert call_abi field
6866 into a bitfield. Move cfa field to the end of the structure.
6868 2010-05-29 Jan Hubicka <jh@suse.cz>
6870 * varpool.c (varpool_get_node): Fix lookup.
6872 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6874 * config/spu/spu-protos.h: Do not include rtl.h. Protect
6875 RTL specific prototypes with #ifdef RTX_CODE.
6876 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6877 * config/spu/t-spu-elf: Fix dependencies.
6879 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6881 2010-05-29 Mike Stump <mikestump@comcast.net>
6884 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6885 TM_H when building to avoid dependency loops.
6887 2010-05-29 Jan Hubicka <jh@suse.cz>
6889 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6890 refs and body; not the whole node for masters of materialized clones.
6892 2010-05-29 Mike Stump <mikestump@comcast.net>
6894 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6896 2010-05-29 Jan Hubicka <jh@suse.cz>
6898 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6899 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6900 use of clone_function_name.
6901 * cgraph.h (cgraph_create_virtual_clone,
6902 cgraph_function_versioning): update prototypes.
6903 (clone_function_name): Declare.
6904 * ipa-cp.c (ipcp_insert_stage): Update call of
6905 cgraph_create_virtual_clone.
6906 * omp-low.c (create_omp_child_function_name): Use
6907 cgraph_create_virtual_clone.
6908 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6909 (cgraph_function_versioning): Take SUFFIX argument; produce new name
6910 and make decl local.
6912 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6914 * vec.h: Include statistics.h
6915 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
6918 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6920 * c-lex.c: Do not include c-tree.h.
6921 * c-pretty-print.c: Likewise.
6922 * c-opts.c: Likewise.
6923 * c-gimplify.c: Likewise.
6924 * c-common.c: Likewise.
6925 * c-dump.c: Likewise. Include c-common.h.
6927 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6929 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6930 before including diagnostic-core.h.
6931 (c_cpp_error): New prototype moved from c-tree.h.
6932 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6933 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6934 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6935 (c_cpp_error): Prototype moved to c-common.h.
6936 * Makefile.in: Update dependency for C_COMMON_H.
6938 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6940 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6941 * c-common.c (c_register_addr_space): Remove here.
6942 * c-decl.c (c_register_addr_space): Re-add here.
6944 2010-05-28 Mike Stump <mikestump@comcast.net>
6946 * config/darwin-c.c: Remove c-tree.h include.
6948 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6950 * gcc.c: Include diagnostic.h.
6951 (error_count): Remove. All users changed to use errorcount.
6952 (programname): Remove. All users changed to use progname.
6953 (fancy_abort, internal_error, fatal_error, error, warning, inform,
6955 (execute): Don't include "Internal error" and bug reporting
6956 information in argument of internal_error call.
6957 (process_command): Don't increment error_count after calling
6959 (input_filename): Rename to gcc_input_filename. All users
6961 (main): Call diagnostic_initialize. Register delete_temp_files
6962 with atexit. Use seen_error to test for errors.
6963 * gcc.h: Include diagnostic-core.h.
6964 (fatal_error, error, warning): Remove.
6965 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6966 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6967 (gcc.o): Update dependencies.
6969 2010-05-28 Jeff Law <law@redhat.com>
6971 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6973 * ira.h (ira_bad_reload_regno): Declare
6974 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6976 * ira-color.c (update_curr_costs): Free updated hard reg costs.
6977 (ira_reassign_conflict_allocnos): Remove bogus asserts.
6978 (allocno_reload_assign): Likewise.
6980 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
6982 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6985 2010-05-28 Richard Guenther <rguenther@suse.de>
6988 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6989 Stream fixed-point constants mode.
6990 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6992 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6993 Stream fixed-point constants mode.
6994 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6997 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6999 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7000 only place it was called from.
7001 (number_of_latch_executions): Do not return chrec_dont_know when the
7002 may_be_zero is a runtime condition: instead, return a COND_EXPR
7003 including the may_be_zero condition.
7004 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7006 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7009 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7011 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7012 generate COND_EXPRs for degenerate_phi_result.
7014 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7017 * tree-if-conv.c (if_convertible_loop_p): Check the
7018 if-convertibility of phi nodes in non predicated BBs.
7020 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7022 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7024 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7027 * gcc.c (inform, warning, inform): New functions.
7028 (fatal_ice): Rename to internal_error; change cmsgid parameter to
7029 gmsgid. All callers changed.
7030 (notice): Rename to fnotice; add parameter fp. All callers changed.
7031 (fatal_error): Rename to fatal_signal. All users changed.
7032 (fatal): Rename to fatal_error; change cmsgid parameter to
7033 gmsgid. All callers changed.
7034 (process_command): Use warning instead of error for warnings.
7035 (end_going_arg): Don't use _() around argument of error.
7036 (do_spec_1): Use inform for message from %n specs. Use warning
7037 instead of error for warnings.
7038 (main): Use inform for comparison messages. Use warning for
7039 message about unused linker input.
7040 (error): Increment error_count. Print "error: ".
7041 * gcc.h (fatal): Change to fatal_error.
7043 * config/darwin-driver.c (darwin_default_min_version): Use warning
7044 instead of fprintf for warnings.
7045 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7047 2010-05-28 Julian Brown <julian@codesourcery.com>
7049 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7050 (*thumb2_addsi3_compare0_scratch): New.
7051 * config/arm/constraints.md (Pv): New.
7052 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7054 (*addsi3_compare0_scratch): Likewise.
7056 2010-05-28 Jan Hubicka <jh@suse.cz>
7058 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7060 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7061 only on local statics.
7063 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
7065 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7067 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7070 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7071 (OPTION_GLIBC): Define.
7073 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7076 * dwarf2out.c (double_int_type_size_in_bits): New function.
7077 (round_up_to_align): Change first argument and return value to
7079 (field_byte_offset): Work internally on double_ints.
7082 * builtins.c (expand_movstr): Use a temporary pseudo instead
7083 of target even when target is not NULL and not const0_rtx, but
7084 fails movstr predicate.
7085 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7087 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7089 * final.c (rest_of_clean_state): Use %m in errors instead of
7091 * gengtype.c (read_input_list, close_output_files): Use xstrerror
7092 instead of strerror.
7093 * toplev.c (process_options): Use %m in errors instead of strerror
7095 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7098 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
7100 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7101 (ix86_canonical_va_list_type): Make static. Add declaration.
7102 (ix86_enum_va_list): Make static. Reindent.
7103 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7104 (ix86_canonical_va_list_type): Ditto.
7105 (ix86_enum_va_list): Ditto.
7107 2010-05-28 Richard Guenther <rguenther@suse.de>
7109 * lto-wrapper.c (run_gcc): With -save-temps generate a
7110 user-visible ltrans filename. Fixup ltrans unit numbering.
7112 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
7114 * c-common.c (c_common_nodes_and_builtins): Replace use
7115 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7116 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7117 to ix86_enum_va_list.
7118 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7119 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7120 (TARGET_ENUM_VA_LIST_P): Add hook description.
7121 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7122 * target.h (gcc_target): Add enum_va_list hook.
7125 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7126 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7127 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7129 2010-05-28 Alan Modra <amodra@gmail.com>
7132 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7133 emit_library_call machinery to set up __tls_get_addr calls.
7135 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7137 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7139 2010-05-28 Dodji Seketeli <dodji@redhat.com>
7141 Revert fix for PR c++/44188
7142 * c-common.c (is_typedef_decl): Revert the moving of this
7144 * tree.c (is_typedef_decl): ... here.
7145 (typdef_variant_p): Revert the moving of this definition
7146 here from gcc/cp/tree.c.
7147 * c-common.h (is_typedef_decl): Revert the moving of this
7149 * tree.h (is_typedef_decl): ... here.
7150 (typedef_variant_p): Revert the moving of this declaration here
7151 from gcc/cp/cp-tree.h
7152 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7153 (gen_tagged_type_die): Revert the splitting out of ...
7154 (gen_type_die_with_usage): ... this function. Revert the anonymous
7155 tagged type handling.
7156 (gen_typedef_die): Revert emitting DW_TAG_typedef for
7157 typedefs naming anonymous tagged types.
7159 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7161 * config/rs6000/rs6000-modes.def (PSImode): Delete.
7163 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7165 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7166 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7168 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7170 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7171 XER_REGS to CA_REGS throughout.
7172 * config/rs6000/rs6000.h: Same.
7173 (ADDITIONAL_REGISTER_NAMES): Add "xer".
7174 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
7175 that mode_iterator "P" is the size for arithmetic carries as well.
7176 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7178 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7181 * combine.c (struct rtx_subst_pair): Define unconditionally.
7182 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
7183 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7184 Call make_compound_operation on pair->to.
7185 (propagate_for_debug): Don't call make_compound_operation here.
7186 Always use simplify_replace_fn_rtx.
7188 2010-05-27 Sterling Augustine <sterling@tensilica.com>
7190 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7191 * config/xtensa/xtensa.c (override_options): Check
7192 TARGET_FORCE_NO_PIC and set flag_pic.
7193 * config/xtensa/xtensa.opt: Document -mforce-no-pic
7195 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7198 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7199 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7201 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7203 * diagnostic-core.h: New. Contents moved from diagnostic.h and
7205 * diagnostic.c: Don't include toplev.h.
7206 (progname): Define. Moved from toplev.c.
7207 (seen_error): New function.
7208 * diagnostic.h: Include diagnostic-core.h.
7209 (diagnostic_t, emit_diagnostic): Don't declare here.
7210 * toplev.c (progname): Move to toplev.c.
7211 (emit_debug_global_declarations, compile_file, finalize,
7212 do_compile, toplev_main): Use seen_error.
7213 * toplev.h: Include diagnostic-core.h.
7214 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7215 internal_error, warning, warning_at, error, error_n, error_at,
7216 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7217 verbatim, fnotice, progname): Move to diagnostic-core.h.
7218 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7219 (expand_builtin_expect): Use seen_error.
7220 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7221 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7222 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7223 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7224 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7225 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7226 errorcount for errors.
7227 * c-opts.c (c_common_finish): Use seen_error.
7228 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7229 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7230 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7231 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7232 (get_coverage_counts): Use seen_error.
7233 * dwarf2out.c (dwarf2out_finish): Use seen_error.
7234 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7235 gimplify_body): Use seen_error.
7236 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7237 * ipa-pure-const.c (gate_pure_const): Use seen_error.
7238 * ipa-reference.c (gate_reference): Use seen_error.
7239 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7240 * lambda-code.c: Include diagnostic-core.h instead of
7242 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7243 * lto-compress.c: Include diagnostic-core.h instead of
7245 * lto-section-in.c: Include diagnostic-core.h instead of
7247 * lto-streamer-out.c: Include diagnostic-core.h instead of
7249 * lto-streamer.c: Include diagnostic-core.h instead of
7251 (gate_lto_out): Use seen_error.
7252 * matrix-reorg.c: Include diagnostic-core.h instead of
7254 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7255 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7256 (gate_expand_omp, lower_omp_1): Use seen_error.
7257 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7258 (rest_of_decl_compilation, rest_of_type_compilation,
7259 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7260 * tree-cfg.c (label_to_block_fn): Use seen_error.
7261 * tree-inline.c (optimize_inline_calls): Use seen_error.
7262 * tree-mudflap.c (mudflap_finish_file): Use
7264 * tree-optimize.c (gate_all_optimizations,
7265 gate_all_early_local_passes, gate_all_early_optimizations): Use
7267 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7268 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
7269 (varpool_remove_unreferenced_decls,
7270 varpool_assemble_pending_decls): Use seen_error.
7271 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
7272 (TOPLEV_H, DIAGNOSTIC_H): Update.
7273 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
7274 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
7275 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
7276 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
7277 coverage.o, lambda-code.o): Update dependencies.
7279 2010-05-25 Dodji Seketeli <dodji@redhat.com>
7282 * c-common.c (is_typedef_decl): Move this definition ...
7283 * tree.c (is_typedef_decl): ... here.
7284 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7285 * c-common.h (is_typedef_decl): Move this declaration ...
7286 * tree.h (is_typedef_decl): ... here.
7287 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7288 * dwarf2out.c (is_naming_typedef_decl): New function.
7289 (gen_tagged_type_die): Split out of ...
7290 (gen_type_die_with_usage): ... this function. When an anonymous
7291 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7292 is emitted for the typedef.
7293 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7294 anonymous tagged types.
7296 2010-05-27 Jason Merrill <jason@redhat.com>
7298 * print-tree.c (debug_vec_tree): New fn.
7299 (print_vec_tree): New fn.
7300 * tree.h: Declare them.
7301 * gdbinit.in (pvt): New command.
7303 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
7305 * gdbinit.in (pdd): New command.
7307 2010-05-27 Jan Hubicka <jh@suse.cz>
7309 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
7310 (update_caller_keys): Return early if there are no callers;
7311 only update fibheap when decresing the key.
7312 (update_callee_keys): Avoid recursion.
7313 (decide_inlining_of_small_functions): When badness does not match;
7314 re-insert into fibheap.
7316 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
7318 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
7319 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
7320 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
7321 (ALL_HOST_OBJS): Now a union of the above two.
7322 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
7323 all files in ALL_HOST_FRONTEND_OBJS.
7324 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
7326 * c-common.c: Pretend to be a backend file by undefining
7327 IN_GCC_FRONTEND (still need rtl.h here).
7329 2010-05-27 Jan Hubicka <jh@suse.cz>
7331 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
7332 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
7334 2010-05-27 Jan Hubicka <jh@suse.cz>
7336 * sched-ebb.c: Rename struct deps to struct deps_desc.
7338 * sel-sched-ir.c: Likewise.
7339 * sched-deps.c: Likewise.
7340 * sched-int.h: Likewise.
7341 * sched-rgn.c: Likewise.
7343 2010-05-27 Jon Beniston <jon@beniston.com>
7346 * config/lm32/lm32.h: Remove definition of
7347 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
7349 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
7352 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7354 2010-05-27 Richard Guenther <rguenther@suse.de>
7356 PR tree-optimization/44284
7357 * tree-vect-stmts.c (vectorizable_assignment): Handle
7358 sign-changing conversions as simple copy.
7360 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7362 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7364 (__gthread_active_p): Check for pthread_create if compiling against
7367 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7369 Support compilation for Android platform. Reimplement -mandroid.
7371 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7372 (*android*): Set ANDROID_DEFAULT.
7373 (arm*-*-linux*): Include linux-android.h.
7374 (arm*-*-eabi*): Don't include previous -mandroid implementation.
7375 * config/arm/eabi.h: Remove, move Android-specific parts ...
7376 * config/linux-android.h: ... here. New file.
7377 * config/arm/eabi.opt: Rename to ...
7378 * config/linux-android.opt: ... this.
7379 (mandroid): Allow -mno-android option. Initialize based on
7381 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7382 Move logic to corresponding LINUX_TARGET_* macros.
7383 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7384 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7385 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7386 Android definitions.
7387 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7388 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7391 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7393 Add support for Bionic C library
7395 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7397 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7398 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7400 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7401 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7402 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7403 to support multiple C libraries. Handle Bionic.
7404 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7405 (BIONIC_DYNAMIC_LINKER64): Define.
7406 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7408 (TARGET_HAS_SINCOS): Enable for Bionic.
7410 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
7411 the last option specified on command line take effect.
7412 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7414 (mglibc, muclibc): Update.
7416 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7417 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7420 * doc/invoke.texi (-mglibc, -muclibc): Update.
7421 (-mbionic): Document.
7423 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7425 * c-common.h (c_register_addr_space): Add prototype.
7426 (ADDR_SPACE_KEYWORD): Remove.
7427 * c-common.c (c_register_addr_space): New function.
7428 (c_addr_space_name): Reimplement.
7429 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7431 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7432 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7434 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7435 Remove TARGET_ADDR_SPACE_KEYWORDS.
7437 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7439 * input.c: New file.
7440 * input.h (main_input_filename): Move declaration to toplev.h.
7441 * toplev.c (input_location, line_table): Move to input.c
7442 * toplev.h (main_input_filename): Move declaration from input.h.
7443 * tree.c (expand_location): Move to input.c.
7444 * Makefile.in (OBJS-common): Add input.o.
7445 (input.o): Add dependencies.
7447 2010-05-27 Richard Guenther <rguenther@suse.de>
7449 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7450 for non-existant files.
7451 (fork_execute): Mark args_name file as deleted.
7453 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7456 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7457 (narrow_signed_type): Likewise.
7459 2010-05-26 Jan Hubicka <jh@suse.cz>
7461 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7462 edge only when checking is enabled; check using former_clone_of;
7463 check inline clones too.
7464 (cgraph_materialize_clone): Record former_clone_of pointer.
7465 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7466 combining redirections; dump args_to_skip bitmap
7467 (cgraph_materialize_all_clones): Do no redirection here.
7468 * ipa-inline.c (inline_transform): Do redirection here.
7469 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7472 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7474 * config/avr/avr-c.c: Do not include regs.h.
7475 Include cpplib.h for cpp_define and tree.h for c-common.h.
7476 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7477 * config/avr/t-avr: Fix dependencies for avr-c.o.
7479 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7481 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7482 string instead of SYMBOL_REF rtx.
7483 * rtl.h (set_stack_check_libfunc): Move prototype from here...
7484 * libfuncs.h: ...to here. Adjust for explow.c change.
7486 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7488 * pretty-print.c: Don't include ggc.h.
7489 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7490 (identifier_to_locale): Use them for allocation.
7491 * pretty-print.h (identifier_to_locale_alloc,
7492 identifier_to_locale_free): Declare.
7493 * toplev.c (alloc_for_identifier_to_locale): New.
7494 (general_init): Set identifier_to_locale_alloc and
7495 identifier_to_locale_free.
7496 * Makefile.in (pretty-print.o): Update dependencies.
7498 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7500 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7501 pointer types if they have different alignment or mode.
7503 2010-05-26 Anatoly Sokolov <aesok@post.ru>
7505 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7506 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7507 * config/sparc/sparc-protos.h (function_value): Remove declaration.
7508 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7509 sparc_function_value_regno_p): New functions.
7510 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7511 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7512 (function_value): Rename to...
7513 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7514 argument to 'outgoing'.
7515 (function_arg_record_value, function_arg_union_value,
7516 function_arg_vector_value): Update comment.
7518 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7520 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7521 (fde_needed_for_eh_p): New predicate.
7522 (output_call_frame_info): Use it throughout to decide whether FDEs
7523 are needed for EH purpose.
7524 (dwarf2out_begin_prologue): Reorder assignments.
7526 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7528 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7529 special case loop->header.
7530 (is_predicated): New.
7531 (if_convertible_loop_p): Call it.
7533 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7535 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7536 iterator in parameter. Do not generate code during the analysis.
7537 (tree_if_convert_cond_stmt): Removed.
7538 (tree_if_convert_stmt): Removed.
7539 (predicate_bbs): New.
7540 (if_convertible_loop_p): Call predicate_bbs.
7541 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7542 now contains all the analysis part.
7544 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7546 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7547 statements in the analysis part.
7548 (tree_if_convert_stmt): Update comment.
7549 (remove_conditions_and_labels): New.
7550 (combine_blocks): Call remove_conditions_and_labels.
7551 (tree_if_conversion): Update comment.
7553 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7555 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7556 than 2 predecessors or more than 2 successors.
7558 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7560 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7561 of loops in which the data dependence analysis fails.
7563 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7565 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7566 CDI_POST_DOMINATORS.
7567 (tree_if_conversion): Same.
7569 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7571 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7573 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7575 * tree-if-conv.c: Update copyright years. Fix comments.
7578 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
7580 * builtin-types.def (BT_INT128): New primitive type.
7581 (BT_UINT128): Likewise.
7582 * c-common.c (c_common_r): Add __int128 keyword.
7583 (c_common_type_for_size): Handle __int128.
7584 (c_common_type_for_mode): Likewise.
7585 (c_common_signed_or_unsigned_type): Likewise.
7586 (c_common_nodes_and_builtins): Add builtin type
7587 if target supports 128-bit integer scalar.
7588 * c-common.h (enum rid): Add RID_INT128.
7589 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7590 if target supports 128-bit integer scalar.
7591 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7592 (finish_declspecs): Likewise.
7593 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7594 (c_token_starts_declspecs): Likewise.
7595 (c_parser_declspecs): Likewise.
7596 (c_parser_attributes): Likewise.
7597 (c_parser_objc_selector): Likewise.
7598 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7599 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7600 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7601 * tree.c (make_or_reuse_type): Likewise.
7602 (make_unsigned_type): Likewise.
7603 (build_common_tree_nodes_2): Likewise.
7604 * tree.h (enum integer_type_kind): Add itk_int128 and
7605 itk_unsigned_int128.
7606 (int128_integer_type_node): New define.
7607 (int128_unsigned_type_node): New define.
7608 * doc/extend.texi: Add documentation about __int128 type.
7610 2010-05-26 Richard Guenther <rguenther@suse.de>
7612 * tree-ssa-sccvn.c (copy_nary): Adjust.
7613 (copy_phis): Rename to ...
7614 (copy_phi): ... this. Adjust.
7615 (copy_references): Rename to ...
7616 (copy_reference): ... this. Adjust.
7617 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7618 result into the valid table.
7620 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7622 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7623 insn-config.h, insn-codes.h, recog.h, and optabs.h.
7625 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7627 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7629 2010-05-26 Richard Guenther <rguenther@suse.de>
7631 * opts.c (common_handle_option): Handle OPT_Ofast.
7633 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7635 * diagnostic.c: Don't include opts.h.
7636 (permissive_error_option): Define.
7637 (diagnostic_initialize): Take n_opts parameter. Allocate memory
7638 for classify_diagnostic. Don't use memset for
7639 classify_diagnostic. Initialize new and recently added fields.
7640 (diagnostic_classify_diagnostic): Use context->n_opts instead of
7642 (diagnostic_report_diagnostic): Pass context parameter to
7643 diagnostic_report_warnings_p. Use option_enabled and option_name
7645 (emit_diagnostic): Use permissive_error_option.
7646 (permerror): Likewise.
7647 * diagnostic.h: Don't include options.h.
7648 (struct diagnostic_context): Add n_opts, opt_permissive,
7649 inhibit_warnings, warn_system_headers, option_enabled and
7650 option_name fields. Change classify_diagnostic to a pointer.
7651 * opts-diagnostic.h: New file.
7652 * opts.c: Include opts-diagnostic.h.
7653 (common_handle_option): Set global_dc fields for -Wfatal-errors,
7654 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7655 (option_name): New function.
7656 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7657 (c_common_handle_option): Set global_dc->permissive for
7659 * c-common.c (c_cpp_error): Save and restore
7660 global_dc->warn_system_headers, not variable warn_system_headers.
7661 * toplev.c: Include opts-diagnostic.h.
7662 (general_init): Update call to diagnostic_initialize. Set
7663 global_dc->show_column, global_dc->option_enabled and
7664 global_dc->option_name.
7665 (process_options): Don't set global_dc fields here.
7666 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7667 (diagnostic.o, opts.o, toplev.o): Update dependencies.
7669 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7671 * config/picochip/picochip.md (movsi): Split a movsi from a
7674 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7676 * ggc-zone.c: Update copyright year.
7677 (poison_region): Mark memory for Valgrind as undefined before
7678 memset () call and inaccessible afterwards.
7679 (ggc_pch_total_size): Change type of i to int.
7681 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7683 * ggc-common.c (ggc_free_overhead): Allow empty slot.
7685 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7687 * ggc-common.c: Update copyright year.
7688 (ggc_rlimit_bound): Remove prototype. Compile only if
7689 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7690 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7691 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
7692 (ggc_min_heapsize_heuristic): Likewise.
7694 2010-05-26 Richard Guenther <rguenther@suse.de>
7696 PR rtl-optimization/44164
7697 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7698 no-common access-path disambiguation.
7699 (indirect_ref_may_alias_decl_p): Adjust.
7700 (indirect_refs_may_alias_p): Likewise.
7701 (refs_may_alias_p_1): Likewise.
7703 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7705 * c-typeck.c: Do not include expr.h.
7707 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7709 * rtl.h (decl_default_tls_model): Move prototype from here...
7710 * output.h: ...to here.
7711 * c-decl.c: Do not include rtl.h.
7712 * c-pragma.c: Likewise.
7713 * c-parser.c: Likewise.
7714 * c-gimplify.c: Likewise. And also not hard-reg-set.
7715 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
7716 FIXME note for it. Add a FIXME note for expr.h.
7717 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7718 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7721 2010-05-26 Jakub Jelinek <jakub@redhat.com>
7724 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7725 or total_size is larger than red zone size for non-V4 ABI, emit a
7726 stack_tie resp. frame_tie insn before stack pointer restore.
7727 * config/rs6000/rs6000.md (frame_tie): New insn.
7729 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
7731 * function.h (struct function): Add can_throw_non_call_exceptions bit.
7732 * lto-streamer-in.c (input_function): Stream it in.
7733 * lto-streamer-out.c (output_function): Stream it out.
7734 * function.c (allocate_struct_function): Set it.
7735 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7736 for flag_non_call_exceptions.
7737 * cfgbuild.c (control_flow_insn_p): Likewise.
7738 (make_edges): Likewise.
7739 * cfgexpand.c (expand_stack_alignment): Likewise.
7740 * combine.c (distribute_notes): Likewise.
7741 * cse.c (cse_extended_basic_block): Likewise.
7742 * except.c (insn_could_throw_p): Likewise.
7743 * gcse.c (simple_mem): Likewise.
7744 * ipa-pure-const.c (check_call): Likewise.
7745 (check_stmt ): Likewise.
7746 * lower-subreg.c (lower-subreg.c): Likewise.
7747 * optabs.c (emit_libcall_block): Likewise.
7748 (prepare_cmp_insn): Likewise.
7749 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7750 * postreload.c (rest_of_handle_postreload): Likewise.
7751 * reload1.c (reload_as_needed): Likewise.
7752 (emit_input_reload_insns): Likewise.
7753 (emit_output_reload_insns): Likewise.
7754 (fixup_abnormal_edges): Likewise.
7755 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7756 * store-motion.c (find_moveable_store): Likewise.
7757 * tree-eh.c (stmt_could_throw_p): Likewise.
7758 (tree_could_throw_p): Likewise.
7759 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7760 * config/arm/arm.c (arm_expand_prologue): Likewise.
7761 (thumb1_expand_prologue): Likewise.
7762 * config/rx/rx.md (cbranchsf4): Likewise.
7764 * config/s390/s390.c (s390_emit_prologue): Likewise.
7765 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7766 (inline_forbidden_into_p): New predicate.
7767 (expand_call_inline): Use it to forbid inlining.
7768 (tree_can_inline_p): Likewise.
7770 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7772 * config/i386/i386-c.c: Do not include rtl.h.
7773 * config/i386/t-i386: Update dependencies.
7775 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7777 * attribs.c: Do not include rtl.h.
7778 * Makefile.in: Update dependencies.
7780 2010-05-25 Anatoly Sokolov <aesok@post.ru>
7782 * double-int.h (double_int_and): New.
7783 * combine.c (try_combine): Clean up, use double_int_* and
7784 immed_double_int_const functions.
7786 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7788 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7789 stderr to /dev/null instead of grep -q.
7790 * configure: Regenerate.
7792 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7794 * Makefile.in (EXCEPT_H): Fix typo.
7796 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
7798 * ira-build.c (update_conflict_hard_reg_costs): New.
7799 (ira_build): Call update_conflict_hard_reg_costs.
7801 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7804 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7806 (intersect_loc_chains): Walk the s2var's loc_chain together
7807 with s1node chain as long as the locations are equal, don't
7808 call find_loc_in_1pdv in that case.
7811 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7812 (copy_bind_expr): ... instead of here.
7813 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7814 if the block hasn't been remapped.
7815 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7816 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7818 2010-05-25 Richard Guenther <rguenther@suse.de>
7821 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7822 out-of-bounds array accesses.
7824 2010-05-25 Richard Guenther <rguenther@suse.de>
7826 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7827 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7828 (run_gcc): Re-organize to make cleanup easier.
7830 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7832 * config/s390/s390.c (optimization_options): Fix and move the
7833 flag_prefetch_loop_arrays override ...
7834 (override_options): ... here.
7836 2010-05-25 Joseph Myers <joseph@codesourcery.com>
7838 * diagnostic.c: Don't include plugin.h.
7839 (diagnostic_report_diagnostic): Don't handle plugins specially
7840 here. Pass context to internal_error callback.
7841 * diagnostic.h (struct diagnostic_context): Add context parameter
7842 to internal_error callback.
7843 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7844 * plugin.h (struct diagnostic_context): Declare.
7845 (warn_if_plugins, plugins_internal_error_function): Declare.
7846 * toplev.c (general_init): Set global_dc->internal_error.
7847 * Makefile.in (diagnostic.o): Update dependencies.
7849 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
7851 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7852 * config/rs6000/t-darwin64: New.
7853 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7856 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
7859 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7860 match the original (and intended) behaviour before r159557. This
7861 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7864 2010-05-25 Richard Guenther <rguenther@suse.de>
7866 * doc/invoke.texi: Document -Ofast.
7867 * target.h (struct gcc_target): Add handle_ofast.
7868 * target-def.h (TARGET_HANDLE_OFAST): Add.
7869 (TARGET_INITIALIZER): Adjust.
7870 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
7871 * common.opt (Ofast): Add.
7873 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7875 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7876 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7878 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7881 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7882 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
7883 false_rtx. Use false_rtx to compute the correct *ptest for reversed
7884 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7886 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7888 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7889 DW_OP_minus with negated offset instead of DW_OP_plus.
7890 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7892 2010-05-25 Wei Guozhi <carrot@google.com>
7894 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7895 tst instruction and a new alternative.
7896 * config/arm/constraints.md (Pu): New constraint.
7898 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
7900 * function.c (assign_stack_local_1): Initialize variable
7901 to avoid warning when bootstrapping at -O3.
7903 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
7905 * configure.ac (all_lang_makefiles): Remove everything related to it.
7906 * configure: Regenerate.
7907 * Makefile.in: Fix reference to ada Make-lang.in.
7908 Remove support for LANG_MAKEFILES.
7910 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
7911 Sandra Loosemore <sandra@codesourcery.com>
7913 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7914 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7915 description. Add arm_neon_fp16_ok.
7916 (Add Options): Add arm_neon and arm_neon_fp16.
7918 2010-05-24 Joseph Myers <joseph@codesourcery.com>
7920 * diagnostic.c: Don't include flags.h.
7921 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7922 context parameters. Check flags in the context passed as a parameter.
7923 (diagnostic_build_prefix): Add context parameter. Check
7924 show_column flag in context.
7925 (diagnostic_action_after_output): Check fatal_errors flag in context.
7926 (diagnostic_report_current_module): Check show_column flag in context.
7927 (default_diagnostic_starter): Update call to
7928 diagnostic_build_prefix.
7929 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7930 (emit_diagnostic): Pass context to permissive_error_kind.
7931 (permerror): Pass context to permissive_error_kind.
7932 * diagnostic.h (struct diagnostic_context): Add show_column,
7933 pedantic_errors, permissive and fatal_errors fields.
7934 (diagnostic_build_prefix): Update prototype.
7936 * toplev.c (process_options): Set flags in global_dc from
7937 flag_show_column, flag_pedantic_errors, flag_permissive,
7939 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7940 to diagnostic_build_prefix.
7941 * Makefile.in (diagnostic.o): Update dependencies.
7943 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
7945 * config/i386/ia32intrin.h (__crc32q): Define only if
7946 __SSE4_2__ is defined.
7948 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
7952 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7953 DECL_VISIBILITY_SPECIFIED.
7954 (emutls_decl): Set DECL_PRESERVE_P and copy
7955 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7956 (emutls_finalize_control_var): New callback.
7957 (emutls_finish): Finalize emutls control variables.
7958 * toplev.c (compile_file): Move the call to emutls_finish ()
7959 before varpool_assemble_pending_decls ().
7961 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
7963 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7964 added to the preprocessor condition.
7966 2010-05-24 Paul Brook <paul@codesourcery.com>
7968 * gengtype-lex.l: Add HARD_REG_SET.
7969 * expr.c (expand_expr_real_1): Record writes to hard registers.
7970 * function.c (rtl_data): Add asm_clobbers.
7971 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7972 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7973 Use crtl->asm_clobbers.
7975 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7977 * doc/makefile.texi (Makefile): Mention stages 'profile'
7978 and 'feedback' for profiledbootstrap.
7980 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
7983 * config/i386/i386.c (def_builtin): Properly check
7984 OPTION_MASK_ISA_64BIT.
7986 2010-05-23 Joseph Myers <joseph@codesourcery.com>
7988 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7989 typedefs with different but compatible types. Allow duplicate
7990 typedefs with the same type except for pedantic non-C1X, but give
7991 warning for variably modified types.
7992 * c-typeck.c (tagged_types_tu_compatible_p,
7993 function_types_compatible_p, type_lists_compatible_p,
7994 comptypes_internal): Add parameter different_types_p; set
7995 *different_types_p for different but compatible types. All
7997 (comptypes_check_different_types): New.
7998 * c-tree.h (comptypes_check_different_types): Declare.
8000 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8002 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
8003 * jump.c: Include basic-block.h.
8004 * profile.c: Likewise.
8005 * tree-profile.c: Likewise.
8006 * coverage.c: Likewise.
8007 * basic-block.h (optimize_function_for_size_p): Move to function.h.
8008 (optimize_function_for_speed_p): Likewise.
8009 * function.h (optimize_function_for_size_p,
8010 optimize_function_for_speed_p): Moved here from basic-block.h.
8011 * Makefile.in: Update dependencies.
8013 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8015 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8016 before calling make; allow override through $MAKE.
8017 * doc/invoke.texi (Optimize Options): Document override.
8019 2010-05-23 Anatoly Sokolov <aesok@post.ru>
8021 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8022 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8023 (rs6000_mode_dependent_address_ptr): Make static.
8024 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8025 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8028 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
8031 * config/i386/i386.c: Make sure that the correct regparm is passed.
8033 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8035 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8036 * sbitmap.c: ...to here to internalize sbitmap element access.
8037 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8038 Explain why basic-block.h is included.
8039 * function.h: Include tm.h for CUMULATIVE_ARGS.
8040 * Makefile.in: Update dependencies.
8042 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8044 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8046 * sbitmap.h (struct sbitmap_def): Do not typedef here.
8047 * sbitmap.c: Include sbitmap.h.
8048 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8049 hard-reg-set.h. Split everything related to regsets out from here...
8050 * regset.h: ...to here. New file.
8051 * df.h: Include regset.h and sbitmap.h.
8052 * tree-flow.h: Likewise.
8053 * cfgloop.h: Likewise.
8054 * except.h: Do not include sbitmap.h. Include hashtab.h.
8055 * cgraph.h: Include vec.h and function.h.
8056 * reload.h (struct insn_chain): Change types of live_throughout
8057 and dead_or_set from regset_head to bitmap_head.
8058 (compute_use_by_pseudos): Be defined also if regset.h is not included.
8059 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8060 spilled_regs from regset_head to bitmap_head to avoid dependency
8062 * sel-sched-ir.h: Include regset.h.
8063 * reload.c: Include df.h before reload.h.
8064 * caller-save.c: Likewise.
8065 * reload1.c: Likewise.
8067 (mark_elimination): Update type of r to bitmap, consistent with
8069 * dominance.c: Include bitmap.h.
8070 * modulo-sched.c: Include df.h.
8071 * cfganal.c: Include bitmap.h and sbitmap.h.
8072 * cfgbuild.c: Include sbitmap.h.
8073 * lcm.c: Include sbitmap.h.
8074 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8075 * domwalk.c: Include sbitmap.h, exclude ggc.h.
8076 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8077 * cselib.c: Include bitmap.h.
8078 * tree-optimize.c: Include regset.h.
8079 * stmt.c: Include bitmap.h.
8080 * Makefile.in: Update dependencies.
8082 2010-05-22 Jan Hubicka <jh@suse.cz>
8084 * cgraph.h (struct varpool_node): Add same_comdat_group.
8085 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8087 (output_varpool): Update call of lto_output_varpool_node.
8088 (input_varpool): Read same_comdat_group pointer.
8089 (input_varpool_1): Fixup same_comdat_group pointer.
8090 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8091 group is needed, all are.
8092 * varpool.c (varpool_remove_node): Remove node from same comdat group
8094 (varpool_analyze_pending_decls): Walk same comdat groups.
8096 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8098 * rtl.h (union rtunion_def): Remove rt_bit member.
8099 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8100 * print-rtl (print_rtx): Do not print the member.
8101 * gengtype.c (adjust_field_rtx_def): Do not handle it.
8102 * gengenrtl.c (type_from_format): Likewise.
8103 (accessor_from_format): Likewise.
8105 2010-05-22 Joseph Myers <joseph@codesourcery.com>
8107 * dbgcnt.c: Include toplev.h instead of errors.h.
8108 * ira-emit.c: Don't include errors.h.
8109 * ira.c: Include toplev.h instead of errors.h.
8110 * lto-compress.c: Include toplev.h instead of errors.h.
8111 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8112 ira.o, dbgcnt.o): Update dependencies.
8114 2010-05-22 Richard Guenther <rguenther@suse.de>
8116 * gimple.c (gimple_types_compatible_p): Check type qualifications
8117 before merging pointer to complete and pointer to incomplete type.
8118 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8119 we use our own resolution algorithm. The gold linker plugin
8120 doesn't do the job we want it to do here.
8122 2010-05-22 Anatoly Sokolov <aesok@post.ru>
8124 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8125 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8126 (sparc_mode_dependent_address_p): New function.
8128 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8130 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8132 * timevar.c: Do not include any core headers.
8133 (timevar_print): De-i18n-ize.
8134 (print_time): Likewise.
8135 * timevar.h (timevar_push, timevar_pop): Make inline functions.
8137 2010-05-21 Joseph Myers <joseph@codesourcery.com>
8139 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8141 (diagnostic_initialize): Initialize x_data not last_function.
8142 (diagnostic_report_current_function): Move to tree-diagnostic.c.
8143 (default_diagnostic_starter): Call
8144 diagnostic_report_current_module not
8145 diagnostic_report_current_function.
8146 (diagnostic_report_diagnostic): Initialize x_data not
8148 (verbatim): Likewise.
8149 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8151 (struct diagnostic_context): Change last_function to x_data.
8152 (diagnostic_auxiliary_data): Replace with
8153 diagnostic_context_auxiliary_data and
8154 diagnostic_info_auxiliary_data.
8155 (diagnostic_last_function_changed, diagnostic_set_last_function,
8156 diagnostic_report_current_function): Move to tree-diagnostic.h.
8157 (print_declaration, dump_generic_node, print_generic_stmt,
8158 print_generic_stmt_indented, print_generic_expr,
8159 print_generic_decl, debug_c_tree, dump_omp_clauses,
8160 print_call_name, debug_generic_expr, debug_generic_stmt,
8161 debug_tree_chain, default_tree_printer): Move to
8162 tree-pretty-print.h.
8163 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8164 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8165 gimple-pretty-print.h.
8166 * pretty-print.c: Don't include tree.h
8167 (pp_base_format): Don't handle %K here.
8168 (pp_base_tree_identifier): Move to tree-pretty-print.c.
8169 * pretty-print.h (text_info): Change abstract_origin to x_data.
8170 (pp_tree_identifier, pp_unsupported_tree,
8171 pp_base_tree_identifier): Move to tree-pretty-print.h.
8172 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8173 tree-pretty-print.h: New files.
8174 * tree-pretty-print.c: Include tree-pretty-print.h.
8175 (percent_K_format): New. Moved from pretty-print.c.
8176 (pp_base_tree_identifier): Move from pretty-print.c.
8177 * c-objc-common.c: Include tree-pretty-print.h.
8178 (c_tree_printer): Handle %K here.
8179 * langhooks.c: Include tree-diagnostic.h.
8180 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8181 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8182 (default_tree_printer): Handle %K using percent_K_format.
8183 (general_init): Use default_tree_diagnostic_starter.
8184 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8185 (free_lang_data): Use default_tree_diagnostic_starter.
8186 * c-pretty-print.c: Include tree-pretty-print.h.
8187 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8188 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8189 * dwarf2out.c: Include tree-pretty-print.h.
8190 * except.c: Include tree-pretty-print.h.
8191 * gimple-pretty-print.c: Include tree-pretty-print.h and
8192 gimple-pretty-print.h.
8193 * gimplify.c: Include tree-pretty-print.h.
8194 * graphite-poly.c: Include tree-pretty-print.h and
8195 gimple-pretty-print.h.
8196 * ipa-cp.c: Include tree-pretty-print.h.
8197 * ipa-inline.c: Include gimple-pretty-print.h.
8198 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8199 * ipa-pure-const.c: Include gimple-pretty-print.h.
8200 * ipa-struct-reorg.c: Include tree-pretty-print.h and
8201 gimple-pretty-print.h.
8202 * ipa-type-escape.c: Include tree-pretty-print.h.
8203 * print-rtl.c: Include tree-pretty-print.h.
8204 * print-tree.c: Include gimple-pretty-print.h.
8205 * sese.c: Include tree-pretty-print.h.
8206 * tree-affine.c: Include tree-pretty-print.h.
8207 * tree-browser.c: Include tree-pretty-print.h.
8208 * tree-call-cdce.c: Include gimple-pretty-print.h.
8209 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8210 * tree-chrec.c: Include tree-pretty-print.h.
8211 * tree-data-ref.c: Include tree-pretty-print.h and
8212 gimple-pretty-print.h.
8213 * tree-dfa.c: Include tree-pretty-print.h.
8214 * tree-if-conv.c: Include tree-pretty-print.h and
8215 gimple-pretty-print.h.
8216 * tree-inline.c: Include tree-pretty-print.h.
8217 * tree-into-ssa.c: Include tree-pretty-print.h and
8218 gimple-pretty-print.h.
8219 * tree-nrv.c: Include tree-pretty-print.h.
8220 * tree-object-size.c: Include tree-pretty-print.h and
8221 gimple-pretty-print.h.
8222 * tree-outof-ssa.c: Include tree-pretty-print.h and
8223 gimple-pretty-print.h.
8224 * tree-parloops.c: Include tree-pretty-print.h and
8225 gimple-pretty-print.h.
8226 * tree-predcom.c: Include tree-pretty-print.h and
8227 gimple-pretty-print.h.
8228 * tree-scalar-evolution.c: Include tree-pretty-print.h and
8229 gimple-pretty-print.h.
8230 * tree-sra.c: Include tree-pretty-print.h.
8231 * tree-ssa-address.c: Include tree-pretty-print.h.
8232 * tree-ssa-alias.c: Include tree-pretty-print.h.
8233 * tree-ssa-ccp.c: Include tree-pretty-print.h and
8234 gimple-pretty-print.h.
8235 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8236 * tree-ssa-copy.c: Include tree-pretty-print.h and
8237 gimple-pretty-print.h.
8238 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8239 * tree-ssa-dce.c: Include tree-pretty-print.h and
8240 gimple-pretty-print.h.
8241 * tree-ssa-dom.c: Include tree-pretty-print.h and
8242 gimple-pretty-print.h.
8243 * tree-ssa-dse.c: Include gimple-pretty-print.h.
8244 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8245 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8246 * tree-ssa-live.c: Include tree-pretty-print.h and
8247 gimple-pretty-print.h.
8248 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8249 gimple-pretty-print.h.
8250 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8251 gimple-pretty-print.h.
8252 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8253 gimple-pretty-print.h.
8254 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8255 gimple-pretty-print.h.
8256 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8257 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8258 * tree-ssa-operands.c: Include tree-pretty-print.h and
8259 gimple-pretty-print.h.
8260 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8261 gimple-pretty-print.h.
8262 * tree-ssa-pre.c: Include tree-pretty-print.h and
8263 gimple-pretty-print.h.
8264 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8265 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8266 gimple-pretty-print.h.
8267 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8268 gimple-pretty-print.h.
8269 * tree-ssa-sink.c: Include gimple-pretty-print.h.
8270 * tree-ssa-ter.c: Include tree-pretty-print.h and
8271 gimple-pretty-print.h.
8272 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
8273 * tree-ssa.c: Include tree-pretty-print.h and
8274 gimple-pretty-print.h.
8275 * tree-stdarg.c: Include gimple-pretty-print.h.
8276 * tree-switch-conversion.c: Include gimple-pretty-print.h.
8277 * tree-tailcall.c: Include tree-pretty-print.h and
8278 gimple-pretty-print.h.
8279 * tree-vect-data-refs.c: Include tree-pretty-print.h and
8280 gimple-pretty-print.h.
8281 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
8282 gimple-pretty-print.h.
8283 * tree-vect-loop.c: Include tree-pretty-print.h and
8284 gimple-pretty-print.h.
8285 * tree-vect-patterns.c: Include gimple-pretty-print.h.
8286 * tree-vect-slp.c: Include tree-pretty-print.h and
8287 gimple-pretty-print.h.
8288 * tree-vect-stmts.c: Include tree-pretty-print.h and
8289 gimple-pretty-print.h.
8290 * tree-vectorizer.c: Include tree-pretty-print.h.
8291 * tree-vrp.c: Include tree-pretty-print.h and
8292 gimple-pretty-print.h.
8293 * value-prof.c: Include tree-pretty-print.h and
8294 gimple-pretty-print.h.
8295 * var-tracking.c: Include tree-pretty-print.h.
8296 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
8297 (tree-diagnostic.o): New dependencies.
8298 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
8299 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
8300 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
8301 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
8302 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
8303 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
8304 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
8305 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
8306 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
8307 tree-ssa-address.o, tree-ssa-loop-niter.o,
8308 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
8309 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
8310 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
8311 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
8312 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
8313 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
8314 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
8315 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
8316 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
8317 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
8318 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
8319 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
8320 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
8321 tree-switch-conversion.o, var-tracking.o, value-prof.o,
8322 cfgexpand.o, pretty-print.o): Update dependencies.
8324 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
8326 * tree-ssa-structalias.c: Remove tm_p.h from include.
8328 2010-05-21 Jeff Law <law@redhat.com>
8330 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
8332 2010-05-21 Jason Merrill <jason@redhat.com>
8334 * tree-eh.c (cleanup_is_dead_in): New.
8335 (lower_try_finally): Don't generate a dead cleanup region.
8336 (lower_cleanup): Likewise.
8338 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8341 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
8342 unchain each use from the cyclic next_regno_use chain first.
8344 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8346 * real: Do not include gmp.h, mpfr.h, and mpc.h.
8347 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
8348 (real_value_negate, real_value_abs): New prototypes.
8349 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8350 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8351 new include file for interface between MPFR and REAL_VALUE_TYPE.
8352 * real.c: Include realmpfr.h.
8353 (real_arithmetic2): Remove legacy function.
8354 (real_value_negate): New.
8355 (real_value_abs): New.
8356 (mfpr_from_real, real_from_mpfr): Move from here...
8357 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8358 * builtins.c: Include realmpfr.h.
8359 * fold-const.c: Include realmpfr.h.
8360 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8361 (fold_negate_const): Likewise.
8362 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8363 * toplev.c: Include realmpfr.h.
8364 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8365 and real_value_negate.
8366 * fixed-value.c (check_real_for_fixed_mode): Likewise.
8367 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8368 (vfp3_const_double_index): Likewise.
8369 (arm_print_operand): Likewise.
8370 * Makefile.in: Update dependencies.
8372 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8374 * config/s390/s390.c (override_options): Increase the default
8375 of max-completely-peel-times.
8377 2010-05-21 Julian Brown <julian@codesourcery.com>
8378 Mark Mitchell <mark@codesourcery.com>
8380 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8381 sibling calls for Thumb-1.
8382 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8383 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8385 (*call_insn, *call_value_insn): Don't use for Thumb-2.
8386 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8388 (return): New expander.
8389 (*arm_return): New name for ARM return insn.
8390 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8392 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
8394 * config.gcc (sparc64-*-rtems*): New target.
8396 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8398 * tree.c (build_function_decl_skip_args): Fix grammar.
8399 (build_function_type_list_1): Fix typos, adjust formatting.
8401 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8403 * tree.h: Include real.h and fixed-value.h as basic datatypes.
8404 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8405 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8406 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8407 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8408 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8409 tree-pretty-print.c, tree-loop-distribution.c,
8410 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8411 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8412 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8413 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8414 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8415 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8416 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8417 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8418 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8419 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8420 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8421 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8422 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8423 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8424 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8425 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8426 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8427 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8428 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8429 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8430 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8431 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8432 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8433 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8434 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8435 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8436 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8437 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8438 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8439 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8440 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8441 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8442 config/score/score7.c, config/score/score.c, config/arm/arm.c,
8443 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8444 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8445 config/bfin/bfin.c: Clean up redundant includes.
8446 * Makefile.in: Update accordingly.
8448 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8451 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8452 statement has no arguments.
8454 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
8457 * varasm.c (emutls_decl): Merge attributes to new decl.
8459 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
8462 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8463 around the uniquized constructor if its type requires a conversion.
8465 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8468 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8469 at -O0 goto_locus of any of the incoming edges differs from
8470 goto_locus of outgoing edge, or gimple_location of any of the
8473 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
8475 * ira.c (ira_non_ordered_class_hard_regs): Define.
8476 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8477 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8478 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8479 cost of unaligned hard regs when allocating multi-reg pseudos.
8481 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
8483 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8484 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8485 for TARGET_NO_FLOAT.
8486 * config/mips/mips.c (mips_file_start): Expand conditional expression
8487 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8488 (mips_override_options): Move -mno-float override -msoft-float and
8490 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8491 Condition(TARGET_SUPPORTS_NO_FLOAT).
8492 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8493 __mips_no_float here.
8494 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8495 (TARGET_SUPPORTS_NO_FLOAT): Define.
8496 * config/mips/sdemtk.opt: Delete.
8498 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8500 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8502 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
8505 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8506 * configure: Regenerate.
8507 * config.in: Regenerate.
8508 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8509 instead of sahf only for 64bit targets.
8511 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8514 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8515 setup_ref_regs for DEBUG_INSNs.
8517 2010-05-20 Jan Hubicka <jh@suse.cz>
8520 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8522 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8525 * df-scan.c (df_ref_compare): Stabilize sort.
8527 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8529 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8530 argument. Don't use DW_OP_piece if offset is non-zero,
8531 put offset into second DW_OP_bit_piece argument.
8532 (dw_sra_loc_expr): Adjust callers. For memory expressions
8535 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
8538 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8539 settings for 16-bit-constant "addo" alternative.
8541 2010-05-19 James E. Wilson <wilson@codesourcery.com>
8543 * config/mips/mips-dsp.md (add<DSPV:mode>3,
8544 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8547 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
8548 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8551 2010-05-19 Joseph Myers <joseph@codesourcery.com>
8553 * diagnostic.c (FLOAT, FFS): Don't undefine.
8554 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8555 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8558 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
8560 * combine.c (propagate_for_debug): Call make_compound_operation
8561 on the source value.
8562 (try_combine): When implementing a split chosen by find_split_point,
8563 either copy i2src or set it to null. Assert that i2src is not null
8564 before substituting into CALL_INSN_FUNCTION_USAGE.
8566 2010-05-19 Anatoly Sokolov <aesok@post.ru>
8568 * double-int.h (double_int_ior): New function.
8569 * tree.h (build_int_cst_wide_type): Remove.
8570 * tree.c (build_int_cst_wide_type): Remove.
8571 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8572 of build_int_cst_wide_type.
8573 * stor-layout.c (set_sizetype): (Ditto.).
8574 * dojump.c (do_jump): Use build_int_cstu instead of
8575 build_int_cst_wide_type.
8577 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8579 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8580 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8581 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8582 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8583 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
8584 propagate the 'data' argument to copy_tree_r.
8585 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8586 Propagate 'data' argument to walk_tree.
8587 (copy_if_shared): New function.
8588 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8589 (unmark_visited): New function.
8590 (unshare_body): Call copy_if_shared instead of doing it manually.
8591 (unvisit_body): Call unmark_visited instead of doing it manually.
8593 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
8595 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8596 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
8597 * hooks.c: Likewise.
8598 * target-def.h (TARGET_FOLD_BUILTIN): Define to
8599 hook_tree_tree_int_treep_bool_null.
8600 * target.h (struct gcc_target): Update signature of fold_builtin
8602 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8603 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8604 instead of the call expression.
8605 (fold_builtin_call_array): Pass n and argarray directly.
8606 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8608 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
8609 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
8610 `i' and use it in place of `arity'.
8611 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8612 Dereference `args' directly.
8613 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8615 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8617 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8619 (Directives): Document optional dg-require-effective-target
8622 2010-05-19 Richard Guenther <rguenther@suse.de>
8625 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8627 2010-05-19 Richard Guenther <rguenther@suse.de>
8629 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8630 * common.opt (fwhopr=): New.
8631 * opts.c (common_handle_option): Handle OPT_fwhopr.
8632 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8633 * collect2.c (main): Match -fwhopr*.
8634 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8635 Execute ltrans stage in parallel when jobs is bigger than 1.
8637 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8639 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8640 pentiumpro on Solaris 8/x86 with Sun as.
8641 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8643 (gcc_cv_as_ix86_quad): Check for .quad directive.
8644 * configure: Regenerate.
8645 * config.in: Regenerate.
8646 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8648 2010-05-19 Martin Jambor <mjambor@suse.cz>
8650 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8651 also for indirect edges. Actual printing moved...
8652 (ipa_print_node_jump_functions_for_edge): ...here.
8653 (ipa_compute_jump_functions): Renamed to
8654 ipa_compute_jump_functions_for_edge and made static.
8655 (ipa_compute_jump_functions): New function.
8656 (make_edge_direct_to_target): Check if the number of arguments on
8657 the newly direct edge is the same as the number of parametrs of
8659 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8660 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
8661 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8662 analysis functions unconditionally, call the new
8663 ipa_analyze_params_uses on the node instead of every edge.
8665 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
8667 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8669 (dump_mem_ref): Adopt debug code to handle a tree as step. This
8670 also checks for a constant int vs. non-constant but
8671 loop-invariant steps.
8672 (find_or_create_group): Change the sort algorithm to only consider
8673 steps that are constant ints.
8674 (idx_analyze_ref): Adopt code to handle a tree instead of a
8675 HOST_WIDE_INT for step.
8676 (gather_memory_references_ref): Handle tree instead of int and be
8677 prepared to see a NULL_TREE.
8678 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8679 prefetches if the step cannot be calculated at compile time.
8680 (issue_prefetch_ref): Issue prefetches for non-constant but
8681 loop-invariant steps.
8683 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8686 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8688 * tree.h (build_call_list): Remove.
8689 * tree.c (build_call_list): Remove.
8691 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8693 * tree.h (build_call_list): Remove.
8694 * tree.c (build_call_list): Remove.
8696 2010-05-18 Jan Hubicka <jh@suse.cz>
8698 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8700 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
8702 PR rtl-optimization/43332
8703 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8705 2010-05-18 Anatoly Sokolov <aesok@post.ru>
8707 * tree.h (build_int_cstu): Implement as static inline.
8708 * tree.c (build_int_cstu): Remove function.
8709 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8712 2010-05-18 Richard Guenther <rguenther@suse.de>
8715 * lto-wrapper.c (verbose): New variable. Initialize from -v.
8716 (debug): Initialize from -save-temps.
8717 (collect_execute): Print command-line when verbose.
8718 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
8719 for ltrans invocation. Produce -dumpbase flag again.
8720 (process_args): Remove.
8722 * collect2.c (maybe_run_lto_and_relink): Only pass object
8723 files to lto-wrapper.
8724 * gcc.c (LINK_COMMAND_SPEC): Likewise.
8726 2010-05-18 Jan Hubicka <jh@suse.cz>
8728 * opts.c (decode_options): Do not disable whopr at ipa_cp.
8729 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8731 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8734 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8736 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8739 2010-05-18 Jakub Jelinek <jakub@redhat.com>
8742 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8745 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8747 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8748 lto-macho as lto_binary_reader.
8750 * darwin.c (darwin_asm_named_section): Do not add assembler comment
8751 after .section directive; just print it before the directive instead.
8753 2010-05-17 Jan Hubicka <jh@suse.cz>
8755 * cgraph.c (cgraph_create_virtual_clone): Only check
8756 versionable_function_p when not in wpa and checking is enabled.
8757 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8758 there are no more functions to materialize.
8760 2010-05-17 Jan Hubicka <jh@suse.cz>
8762 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8763 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8765 (output_cgraph): Call output_cgraph_opt_summary.
8766 (input_cgrpah): Call input_cgraph_opt_summary.
8767 (output_cgraph_opt_summary_p, output_node_opt_summary,
8768 input_node_opt_summary, input_cgraph_opt_section): New functions.
8769 * lto-section-in.c (lto_section_name): Add cgraphopt.
8770 * tree-inline.c (tree_function_versioning): Handle parm_num.
8771 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8772 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8774 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8776 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8777 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8778 the insn to prefetch ratio heuristic to loops with known trip count.
8780 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8782 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8783 (schedule_prefetches): Do not generate a prefetch if the unroll factor
8784 is far from what is required by the prefetch.
8786 2010-05-17 Jan Hubicka <jh@suse.cz>
8788 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8789 (ipcp_estimate_growth): Likewise.
8790 (ipcp_const_param_count): Likewise.
8791 (ipcp_insert_stage): Likewise.
8792 * ipa-prop.c (visit_load_for_mod_analysis): New function.
8793 (visit_store_addr_for_mod_analysis): Set used flag.
8794 (ipa_detect_param_modifications): Set used flag for SSE params;
8795 update use of walk_stmt_load_store_addr_ops.
8796 (ipa_print_node_params): Print used flag.
8797 (ipa_write_node_info): Stream used flag.
8798 (ipa_read_node_info): Likewise.
8799 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8800 (ipa_is_param_used): New function.
8801 (lto_ipa_fixup_call_notes): Remove unused declaration.
8803 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8806 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8807 * configure: Regenerate.
8808 * config.in: Regenerate.
8809 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8810 !HAVE_AS_IX86_REP_LOCK_PREFIX.
8811 Don't emit whitespace.
8812 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8813 (*rep_movsi): Likewise.
8814 (*rep_movsi_rex64): Likewise.
8815 (*rep_movqi): Likewise.
8816 (*rep_movqi_rex64): Likewise.
8817 (*rep_stosdi_rex64): Likewise.
8818 (*rep_stossi): Likewise.
8819 (*rep_stossi_rex64): Likewise.
8820 (*rep_stosqi): Likewise.
8821 (*rep_stosqi_rex64): Likewise.
8822 (*cmpstrnqi_nz_1): Use {%;} after repz.
8823 (*cmpstrnqi_nz_rex_1): Likewise.
8824 (*cmpstrnqi_1): Likewise.
8825 (*cmpstrnqi_rex_1): Likewise.
8826 (*strlenqi_1): Use {%;} after repnz.
8827 (*strlenqi_rex_1): Likewise.
8828 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8829 (*sync_compare_and_swap<mode>): Likewise.
8830 (sync_double_compare_and_swap<mode>): Likewise.
8831 (*sync_double_compare_and_swapdi_pic): Likewise.
8832 (sync_old_add<mode>): Likewise.
8833 (sync_add<mode>): Likewise.
8834 (sync_sub<mode>): Likewise.
8835 (sync_<code><mode>): Likewise.
8837 2010-05-17 Martin Jambor <mjambor@suse.cz>
8839 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8840 otr_token and polymorphic.
8841 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8842 (cgraph_clone_edge): Copy the above fields.
8843 * tree.c (get_binfo_at_offset): New function.
8844 * tree.h (get_binfo_at_offset): Declare.
8845 * ipa-prop.h (enum jump_func_type): Added known_type jump function
8846 type, reordered items, updated comments.
8847 (union jump_func_value): Added base_type field, reordered fields.
8848 (enum ipa_lattice_type): Moved down in the file.
8849 (struct ipa_param_descriptor): New field polymorphic.
8850 (ipa_is_param_polymorphic): New function.
8851 * ipa-prop.c: Include gimple.h and gimple-fold.h.
8852 (ipa_print_node_jump_functions): Print known type jump functions.
8853 (compute_complex_pass_through): Renamed to...
8854 (compute_complex_assign_jump_func): this.
8855 (compute_complex_ancestor_jump_func): New function.
8856 (compute_known_type_jump_func): Likewise.
8857 (compute_scalar_jump_functions): Create known type and complex ancestor
8859 (ipa_note_param_call): New parameter polymorphic, set the corresponding
8860 flag in the call note accordingly.
8861 (ipa_analyze_call_uses): Renamed to...
8862 (ipa_analyze_indirect_call_uses): this. New parameter target, define
8863 variable var only in the block where it is used.
8864 (ipa_analyze_virtual_call_uses): New function.
8865 (ipa_analyze_call_uses): Likewise.
8866 (combine_known_type_and_ancestor_jfs): Likewise.
8867 (update_jump_functions_after_inlining): Implemented handling of a
8868 number of new jump function types combination.
8869 (print_edge_addition_message): Removed.
8870 (make_edge_direct_to_target): New function.
8871 (try_make_edge_direct_simple_call): Likewise.
8872 (try_make_edge_direct_virtual_call): Likewise.
8873 (update_call_notes_after_inlining): Renamed to...
8874 (update_indirect_edges_after_inlining): this. Moved edge creation for
8875 indirect calls to try_make_edge_direct_simple_call, also calls
8876 try_make_edge_direct_virtual_call for virtual calls.
8877 (ipa_print_node_params): Changed the header message.
8878 (ipa_write_jump_function): Stream also known type jump functions.
8879 (ipa_read_jump_function): Likewise.
8880 (ipa_write_indirect_edge_info): Stream new fields in
8881 cgraph_indirect_call_info.
8882 (ipa_read_indirect_edge_info): Likewise.
8883 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8886 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8888 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8890 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8892 * tree.h (CALL_EXPR_ARGS): Delete.
8893 (call_expr_arglist): Delete.
8894 * tree.c (call_expr_arglist): Delete.
8895 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8896 targetm.fold_builtin.
8897 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8898 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8899 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8900 arglist parameter. Use CALL_EXPR_ARG.
8901 (picochip_expand_builtin_3op): Likewise.
8902 (picochip_expand_builtin_2opvoid): Likewise.
8903 (picochip_expand_array_get): Likewise.
8904 (picochip_expand_array_put): Likewise.
8905 (picochip_expand_array_testport): Likewise.
8906 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
8907 rather than arglist.
8908 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8910 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8911 than TREE_VALUE and TREE_CHAIN.
8912 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8913 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8916 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8919 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8920 to have no fallthru edge.
8923 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8924 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8925 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8926 add BARRIER after previous bb if needed.
8928 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8930 * tree.c (build_function_type_list_1): Remove bogus assert condition.
8932 2010-05-17 Alan Modra <amodra@gmail.com>
8934 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8935 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
8936 with copy_reg rtx param.
8937 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8938 Correct cases where code for ABI_V4 did not initialise the reg
8939 used to access frame. Also leave frame_reg_rtx as sp for large
8940 frames that save no regs.
8942 2010-05-17 Martin Jambor <mjambor@suse.cz>
8945 * tree-sra.c (create_access_replacement): New parameter rename, mark
8946 the replaement for renaming only when it is true.
8947 (get_access_replacement): Pass true in the rename parameter of
8948 create_access_replacement.
8949 (get_unrenamed_access_replacement): New function.
8950 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8951 replacement declaration from it.
8953 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
8955 * function.c (try_fit_stack_local, add_frame_space): New static
8957 (assign_stack_local_1): Use them. Look for opportunities to use
8958 space previously wasted on alignment.
8959 * function.h (struct frame_space): New.
8960 (struct rtl_data): Add FRAME_SPACE_LIST member.
8961 * reload1.c (something_was_spilled): New static variable.
8962 (alter_reg): Set it.
8963 (reload): Test it in addition to testing if the frame size changed.
8965 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
8967 * config/s390/s390.c: Define sane prefetch settings and activate
8968 flag_prefetch_loop_arrays on -O3.
8969 * config/s390/s390.h: Declare that read can use write prefetch.
8971 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8973 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8976 2010-05-16 Jan Hubicka <jh@suse.cz>
8978 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8979 function body; do not check stdarg field of struct function.
8981 2010-05-16 Jan Hubicka <jh@suse.cz>
8983 * cgraph.c (dump_cgraph_node): Dump versionable flag.
8984 * cgraph.h (cgraph_local_info): Add versionable flag.
8985 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8986 (ipcp_versionable_function_p): Use it.
8987 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8990 2010-05-16 Jan Hubicka <jh@suse.cz>
8992 * cgraph.c (cgraph_clone_node): Take decl argument and insert
8993 clone into hash when it is different from orig.
8994 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8995 * cgraph.h (cgraph_clone_node): Update prototype.
8996 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8997 (lto_cgraph_encoder_delete): Delete body map.
8998 (lto_cgraph_encoder_size): Move to header.
8999 (lto_cgraph_encoder_encode_body_p,
9000 lto_set_cgraph_encoder_encode_body): New.
9001 (lto_output_node): Do not take written_decls argument; output clone_of
9003 (add_node_to): Add include_body_argument; call
9004 lto_set_cgraph_encoder_encode_body on master of the clone.
9005 (add_references): Update use of add_node_to.
9006 (compute_ltrans_boundary): Likewise.
9007 (output_cgraph): Do not create written_decls bitmap.
9008 (input_node): Take nodes argument; stream in clone_of correctly.
9009 (input_cgraph_1): Update use of input_node.
9010 * lto-streamer-out.c (lto_output): Use encoder info to decide
9011 what bodies to output.
9012 * ipa-inline.c (cgraph_clone_inlined_nodes,
9013 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9014 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9015 (lto_cgraph_encoder_size): Define here.
9016 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9019 2010-05-16 Richard Guenther <rguenther@suse.de>
9021 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9023 * ipa-type-escape.c (gate_type_escape_vars): Run when
9024 -fipa-struct-reorg runs.
9025 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9026 * common.opt (fipa-type-escape): Remove.
9028 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9030 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9031 (decode_options): Likewise.
9032 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9034 2010-05-16 Jan Hubicka <jh@suse.cz>
9036 * ipa.c (function_and_variable_visibility): Also bring local all
9039 2010-05-16 Richard Guenther <rguenther@suse.de>
9041 * alias.c (nonoverlapping_memrefs_p): Remove use of
9042 IPA type-escape information.
9044 2010-05-16 Joseph Myers <joseph@codesourcery.com>
9046 * c-common.c (c_common_reswords): Add _Static_assert for C.
9047 * c-parser.c (c_token_starts_declaration,
9048 c_parser_next_token_starts_declaration,
9049 c_parser_static_assert_declaration_no_semi,
9050 c_parser_static_assert_declaration): New.
9051 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9052 Handle static assertions if static_assert_ok.
9053 (c_parser_external_declaration, c_parser_declaration_or_fndef,
9054 c_parser_compound_statement_nostart, c_parser_label,
9055 c_parser_for_statement, c_parser_objc_methodprotolist,
9056 c_parser_omp_for_loop): All callers of
9057 c_parser_declaration_or_fndef changed.
9058 (c_parser_struct_declaration): Handle static assertions.
9059 (c_parser_compound_statement_nostart): Use
9060 c_parser_next_token_starts_declaration and
9061 c_token_starts_declaration to detect start of declarations.
9062 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9065 2010-05-16 Anatoly Sokolov <aesok@post.ru>
9067 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9068 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9069 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9070 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9071 (mmix_function_outgoing_value): Rename to...
9072 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9073 (mmix_function_value_regno_p): Make static.
9074 (mmix_libcall_value): New function.
9075 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9076 mmix_function_value_regno_p): Remove declaration.
9078 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9080 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9081 BUILT_IN_ALLOCA if stack checking is enabled.
9083 2010-05-16 Richard Guenther <rguenther@suse.de>
9085 * var-tracking.c (vars_copy_1): Inline ...
9086 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
9087 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
9088 (variable_merge_over_cur): Adjust. Merge asserts.
9089 (variable_merge_over_src): Likewise.
9090 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9091 (variable_post_merge_new_vals): Merge asserts.
9092 (variable_post_merge_perm_vals): Likewise.
9093 (find_mem_expr_in_1pdv): Likewise.
9094 (dataflow_set_different_value): Remove.
9095 (onepart_variable_different_p): Merge asserts.
9096 (variable_different_p): Likewise.
9097 (dataflow_set_different_1): Inline ...
9098 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
9099 (emit_notes_for_differences_1): Merge asserts.
9101 2010-05-16 Richard Guenther <rguenther@suse.de>
9103 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9104 * optabs.c (libfunc_decl_hash): Likewise.
9105 * varasm.c (emutls_decl): Likewise.
9107 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
9109 * c-decl.c: Don't include gimple.h.
9110 (merge_decls): Do not copy gimple_body.
9112 2010-05-15 Jason Merrill <jason@redhat.com>
9114 * c.opt: Add -fnothrow-opt.
9116 2010-05-15 Jan Hubicka <jh@suse.cz>
9118 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9120 * passes.c (ipa_write_summaries): Write all analyzed nodes.
9122 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
9124 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9125 * Makefile.in: Add it.
9126 Fix all other Makefile dependencies for changes below.
9127 * tree.h: Include it instead of defining VEC primitives here.
9128 * gimple.h: Likewise.
9130 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9131 * except.h: Include vecir.h, break dependence on tree.h.
9133 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9135 * tree-iterator.c: ...to here.
9136 * tree-iterator.h: Fix file introduction comment. Add extern markers.
9138 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
9140 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9141 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9142 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9143 tree-mudflap.h, and target.h.
9144 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9145 predict.h, tree-inline.h, gimple.h, and langhooks.h.
9146 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9147 Add FIXME for why gimple.h is still included (should be unnecessary
9148 since GCC 4.5 gimplification unit-at-a-time).
9149 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9150 * c-pragma.c: Add FIXME for why function.h needs to be included just
9151 for cfun, at front-end level.
9152 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9153 Do not include ggc.h, but include vecprim.h for VEC(char).
9154 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9155 Explain why target.h is included.
9156 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9157 Explain why gimple.h is included.
9158 * c-ppoutput.c: Do not include tm.h.
9159 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
9160 * c-parses.c: Explain why rtl.h is included, and that this (and only
9161 this) is also why tm.h must be included.
9162 Do not include except.h.
9163 * c-lang.c: Do not include ggc.h.
9165 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
9167 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9169 2010-05-15 Joseph Myers <joseph@codesourcery.com>
9171 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9172 unions by default if those structs and unions have no tags. Do
9173 not condition anonymous struct and unions handling on flag_iso.
9174 Allow anonymous structs and unions for C1X.
9175 (finish_struct): Do not diagnose lack of named fields when
9176 anonymous structs and unions present for C1X. Accept flexible
9177 array members in structure with anonymous structs or unions but no
9178 directly named fields.
9179 * doc/extend.texi (Unnamed Fields): Update.
9181 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
9183 * gimple.h (compare_field_offset): Rename into...
9184 (gimple_compare_field_offset): ...this.
9185 * gimple.c (compare_field_offset): Rename into...
9186 (gimple_compare_field_offset): ...this. Compare the full access if
9187 the offset is self-referential.
9188 (gimple_types_compatible_p): Adjust for above renaming.
9189 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
9190 DECL_NONADDRESSABLE_P flag of fields before merging them.
9192 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
9194 * tree.h (ctor_to_list): Delete.
9195 * tree.c (ctor_to_list): Delete.
9197 2010-05-15 Jan Hubicka <jh@suse.cz>
9199 * ipa-reference.c: Include toplev.h
9200 (is_proper_for_analysis): Only add to all_module_statics
9202 (write_node_summary_p, stream_out_bitmap,
9203 ipa_reference_write_optimization_summary,
9204 ipa_reference_read_optimization_summary): New.
9205 (struct ipa_opt_pass_d pass_ipa_reference): Add
9206 optimization summary streaming.
9207 * lto-cgraph.c (referenced_from_this_partition_p,
9208 reachable_from_this_partition_p): New functions.
9209 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9210 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9211 * opts.c (decode_options): Enable ipa_reference.
9212 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9213 * lto-streamer.h (referenced_from_this_partition_p,
9214 reachable_from_this_partition_p): Declare.
9216 2010-05-15 Richard Guenther <rguenther@suse.de>
9218 PR tree-optimization/44038
9219 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9220 taking the address of a V_C_E of a constant.
9222 2010-05-14 Jan Hubicka <jh@suse.cz>
9224 * tree.h (memory_identifier_string): Remove.
9225 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9226 (ipa_reference_global_vars_info_d): Remove statics_not_read and
9227 statics_not_written.
9228 (ipa_reference_optimization_summary_d): New structure.
9229 (ipa_reference_optimization_summary_t): New type and vector.
9230 (ipa_reference_vars_info_d): Embedd structures instead of using
9232 (reference_vars_to_consider): Remove out of GGC space.
9233 (module_statics_escape): Remove.
9234 (global_info_obstack): Rename to ...
9235 (optimization_summary_obstack): ... this one.
9236 (initialization_status_t): Remove.
9237 (memory_identifier_string): Remove.
9238 (get_reference_vars_info): Fix indenting.
9239 (set_reference_vars_info): Likewise.
9240 (get_reference_optimization_summary): New.
9241 (set_reference_optimization_summary): New.
9242 (get_global_reference_vars_info): Remove.
9243 (ipa_reference_get_read_global): Remove.
9244 (ipa_reference_get_written_global): Remove.
9245 (ipa_reference_get_not_read_global): Update.
9246 (ipa_reference_get_not_written_global): Update.
9247 (is_proper_for_analysis): Outlaw addressable.
9248 (propagate_bits): Update for new datastructures.
9249 (analyze_variable): Remove.
9250 (init_function_info): Update for new datastructures.
9251 (clean_function_local_data): Remove.
9252 (clean_function): Remove.
9253 (copy_global_bitmap): Use optimizations_summary_obstack.
9254 (duplicate_node_data): Duplicate optimization summary only.
9255 (remove_node_data): Remove optimization summary only.
9256 (generate_summary): Do not analyze variables; do not compute
9257 module_statics_escape; do not prune solutions by it.
9258 (read_write_all_from_decl): Fix typos in comments.
9259 (propagate): Doscover readonly and nonaddressable first;
9260 update for new datastructures; share global bitmaps.
9261 * ipa-reference.h (ipa_reference_get_read_global,
9262 ipa_reference_get_written_global): Remove.
9263 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9264 * Makefile.in: Remove ipa-refereference from GT files.
9266 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9269 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
9270 for all SYMBOL_REF_DECLs.
9272 2010-05-14 Jan Hubicka <jh@suse.cz>
9274 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
9275 (varpool_all_refs_explicit_p): New inline function.
9276 * ipa-reference.c: Update comment.
9277 (module_statics_written): Remove.
9278 (get_static_decl): Remove.
9279 (ipa_init): Do not initialize module_statics_written.
9280 (analyze_function): Likewise.
9281 (generate_summary): Likewise; do not compute module_statics_readonly
9282 and do not update variable flags.
9283 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
9284 * ipa.c: Inlucde flags.h
9285 (cgraph_local_node_p): New.
9286 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
9287 promote functions to local.
9288 (ipa_discover_readonly_nonaddressable_vars): New function.
9289 (function_and_variable_visibility): Use cgraph_local_node_p.
9290 * varpool.c (varpool_finalize_decl): Set force_output for
9291 DECL_PRESERVE_P vars.
9293 2010-05-14 Jan Hubicka <jh@suse.cz>
9295 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
9297 2010-05-14 Richard Guenther <rguenther@suse.de>
9299 PR tree-optimization/44119
9300 * tree-ssa-pre.c (eliminate): Properly mark replacement of
9301 a PHI node necessary.
9303 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
9305 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
9307 2010-05-14 Jason Merrill <jason@redhat.com>
9310 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
9311 (gimple_call_set_nothrow): New.
9312 * gimple.c (gimple_build_call_from_tree): Call it.
9313 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
9316 * gimplify.c (gimplify_seq_add_stmt): No longer static.
9317 * gimple.h: Declare it.
9318 * gimple.c (gimple_build_eh_filter): No ops.
9320 2010-05-14 Jan Hubicka <jh@suse.cz>
9322 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
9323 nodes already in queue.
9324 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
9327 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9330 * cfgexpand.c (expand_debug_expr): If non-memory op0
9331 has BLKmode, return NULL.
9333 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
9335 * config.gcc: Add support for --with-cpu option for bdver1.
9336 * config/i386/i386.h (TARGET_BDVER1): New macro.
9337 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
9338 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9339 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
9340 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9341 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
9342 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
9343 (processor_type): Add PROCESSOR_BDVER1.
9344 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
9345 processor_type in config/i386/i386.h.
9346 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
9347 movaps <reg, reg> instead of movapd <reg, reg> when replacing
9348 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9349 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9350 to emit packed xor instead of packed double/packed integer
9351 xor for SSE and AVX when moving a zero value.
9352 * config/i386/sse.md: Add check for
9353 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9354 movapd/movdqa for SSE and AVX.
9355 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9356 single logical operations i.e and, or and xor instead of packed double
9357 logical operations for SSE and AVX.
9358 * config/i386/i386-c.c (ix86_target_macros_internal):
9359 Add PROCESSOR_BDVER1.
9360 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9361 (has_fma4, has_xop): New.
9362 * config/i386/i386.c (bdver1_cost): New variable.
9363 (m_BDVER1): New macro.
9364 (m_AMD_MULTIPLE): Add m_BDVER1.
9365 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9366 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9367 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9368 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9369 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9370 x86_tune_sse_partial_reg_dependency,
9371 x86_tune_sse_unaligned_load_optimal,
9372 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9373 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9374 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9375 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9376 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9377 Enable/disable for bdver1.
9378 (processor_target_table): Add bdver1_cost.
9379 (cpu_names): Add bdver1.
9380 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9381 processor_alias_table.
9382 (ix86_expand_vector_move_misalign): Change.
9383 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9384 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9385 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9386 of movupd/movdqu for SSE and AVX.
9387 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9388 (ix86_tune_adjust_cost): Add code for bdver1.
9389 (standard_sse_constant_opcode): Add check for
9390 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9391 of packed double xor for SSE and AVX.
9393 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
9395 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9398 2010-05-14 Tristan Gingold <gingold@adacore.com>
9400 * toplev.c (default_debug_hooks): Remove this variable.
9401 (process_options): Remove assignments to default_debug_hooks.
9403 2010-05-14 Martin Jambor <mjambor@suse.cz>
9405 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9406 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9407 * langhooks.h (struct lang_hooks_for_decls): Removed field
9409 * tree.c (free_lang_data): Remove assignment to
9410 lang_hooks.fold_obj_type_ref.
9411 * tree.def (OBJ_TYPE_REF): Update comment.
9413 2010-05-14 Richard Guenther <rguenther@suse.de>
9415 PR tree-optimization/44124
9416 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9418 2010-05-14 Alan Modra <amodra@gmail.com>
9421 * config/rs6000/rs6000.c (struct machine_function): Reorder
9422 fields for better packing. Add lr_save_state.
9423 (rs6000_ra_ever_killed): Return lr_save_state if set.
9424 (rs6000_emit_eh_reg_restore): Set lr_save_state.
9426 2010-05-13 Jan Hubicka <jh@suse.cz>
9428 * varpool.c (decide_is_variable_needed): Drop code checking
9429 TREE_SYMBOL_REFERENCED.
9431 2010-05-13 Jan Hubicka <jh@suse.cz>
9433 * final.c (output_addr_const): Do not call mark_decl_referenced.
9434 * cgraphunit.c (process_function_and_variable_attributes): Use
9435 mark_needed_node dirrectly.
9436 (assemble_thunk): Do not call mark_decl_referenced.
9438 2010-05-13 Anatoly Sokolov <aesok@post.ru>
9440 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9442 2010-05-13 Jeff Law <law@redhat.com>
9444 * ira-conflicts.c (print_allocno_conflicts): New function broken out
9446 (print_conflicts): Call print_allocno_conflicts.
9448 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9451 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9454 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
9456 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9457 t-mingw-w64 or t-mingw-w32 for multilib configuration.
9458 * config/i386/t-mingw-w32: New.
9459 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9461 2010-05-13 Martin Jambor <mjambor@suse.cz>
9463 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9465 * gimple-fold.c (get_base_binfo_for_type): New function.
9466 (gimple_get_relevant_ref_binfo): Likewise.
9467 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9468 (gimple_fold_obj_type_ref): Likewise.
9469 (fold_gimple_call): Simplify condition for folding virtual calls
9470 and call gimple_fold_obj_type_ref.
9471 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9472 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9474 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
9476 * config/rs6000/rs6000-protos.h
9477 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9478 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9479 (rs6000_debug_mode_dependent_address)
9480 (rs6000_mode_dependent_address_ptr): Likewise.
9482 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9485 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9487 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9488 * tree-sra.c (create_access_replacement): Call unshare_expr before
9489 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9490 * dwarf2out.c: Include tree-flow.h.
9491 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9492 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9493 Handle DW_OP_bit_piece.
9494 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9495 construct_piece_list, adjust_piece_list): New functions.
9496 (add_var_loc_to_decl): Handle SRA optimized variables.
9497 Adjust for var_loc_note to loc field renaming.
9498 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9499 in VAR_LOCATION note.
9500 (new_loc_descr_op_bit_piece): New function.
9501 (dw_sra_loc_expr): New function.
9502 (dw_loc_list): Use it. Don't handle the last range after the
9503 loop, handle it inside of the loop. Adjust for var_loc_note
9504 to loc field renaming.
9505 (add_location_or_const_value_attribute): Only special case
9506 single entry loc lists if loc is NOTE_P. Adjust for
9507 var_loc_note to loc field renaming.
9508 (dwarf2out_var_location): Don't set newloc->var_loc_note
9509 and newloc->next here.
9511 2010-05-12 Jan Hubicka <jh@suse.cz>
9513 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9515 * cgraph.h (cgraph_only_called_directly_p,
9516 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9517 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9518 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9520 * ipa.c (cgraph_remove_unreachable_nodes): Use
9521 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9523 * tree-inline.c (copy_bb): Check address_taken flag.
9524 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9525 externally_visible flag.
9527 2010-05-12 Jason Merrill <jason@redhat.com>
9531 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9532 * sdbout.c (plain_type_1): Likewise.
9533 * dwarf2out.c (is_base_type): Likewise.
9534 (gen_type_die_with_usage): Likewise. Generate
9535 DW_TAG_unspecified_type for any LANG_TYPE.
9537 2010-05-12 Jan Hubicka <jh@suse.cz>
9539 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9541 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9542 (cgraph_clone_edge): Update.
9543 (cgraph_node_remove_callees): Remove indirect calls too.
9544 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9545 (cgraph_create_indirect_edge): Update prototype.
9546 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9547 is_proper_for_analysis.
9548 (add_new_function, visited_nodes, function_insertion_hook_holder,
9549 get_local_reference_vars_info, mark_address_taken, mark_address,
9550 mark_load, mark_store, check_asm_memory_clobber, check_call,
9551 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9552 (ipa_init): Do not initialize visited_nodes;
9553 function_insertion_hook_holder.
9554 (analyze_variable): Rewrite.
9555 (analyze_function): Rewrite.
9556 (copy_local_bitmap): Remove.
9557 (duplicate_node_dat): Do not duplicate local info.
9558 (generate_summary): Simplify to only walk cgraph.
9559 (write_node_summary_p, ipa_reference_write_summary,
9560 ipa_reference_read_summary): Remove.
9561 (propagate): Do not remove function insertion;
9563 (pass_ipa_reference): NULLify summary handling fields.
9564 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9565 (input_edge): Input ecf_flags.
9566 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9567 (update_indirect_edges_after_inlining): Ignore edges with unknown
9570 2010-05-12 Sriraman Tallam <tmsriram@google.com>
9572 * implicit-zee.c: New file.
9573 * tree-pass.h (pass_implicit_zee): Declare.
9574 * passes.c (init_optimization_passes): Add zee pass.
9575 * common.opt (fzee): New flag.
9576 * timevar.def (TV_ZEE): Define.
9577 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9579 * Makefile.in (implicit-zee.o): Add new build file.
9581 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9582 Nathan Froyd <froydnj@codesourcery.com>
9584 * c-common.c (sync_resolve_params): Remove write-only variable.
9586 2010-05-12 Anatoly Sokolov <aesok@post.ru>
9588 * target.h (struct gcc_target): Add mode_dependent_address_p field.
9589 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9590 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9591 * targhooks.c (default_mode_dependent_address_p): New function.
9592 * targhooks.h (default_mode_dependent_address_p): Declare function.
9593 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9594 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9595 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9596 target hook. Change return type to bool.
9597 * recog.h (mode_dependent_address_p): Change return type to bool.
9599 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9600 Nathan Froyd <froydnj@codesourcery.com>
9602 * tree-mudflap.c (build_function_type_0, build_function_type_1,
9603 build_function_type_2, build_function_type_3): Remove.
9604 (mudflap_init): Use build_function_type_list.
9606 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9607 Nathan Froyd <froydnj@codesourcery.com>
9609 * coverage.c (build_fn_info_value): Call build_constructor instead of
9610 build_constructor_from_list.
9611 (build_ctr_info_value): Likewise.
9612 (build_gcov_info): Likewise.
9614 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
9616 * tree.c (build_constructor): Compute TREE_CONSTANT for the
9617 resultant constructor.
9618 (build_constructor_single): Don't set TREE_CONSTANT.
9619 (build_constructor_from_list): Don't compute TREE_CONSTANT.
9621 2010-05-12 Jan Hubicka <jh@suse.cz>
9623 * cgraph.h (struct varpool_node): Add aux.
9624 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9625 * varpool.c (varpool_remove_node): Do not remove initializer.
9626 (varpool_reset_queue): Export.
9627 (varpool_finalize_decl): Volatile vars are forced to be output.
9628 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9630 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9631 process_references, varpool_can_remove_if_no_refs): New functions.
9632 (cgraph_remove_unreachable_nodes): Handle variables too.
9634 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
9637 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9639 2010-05-12 Jakub Jelinek <jakub@redhat.com>
9642 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9643 change value of ORT_TASK.
9644 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9645 (omp_notice_threadprivate_variable): New function.
9646 (omp_notice_variable): Call it for threadprivate variables.
9647 If enclosing ctx is a task, print enclosing task rather than
9648 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
9649 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9650 if task has untied clause.
9653 * dwarf2out.c (base_type_die): Don't add name attribute here.
9654 (modified_type_die): Instead of sizetype use
9655 its underlying original type. If a DW_TAG_base_type doesn't
9656 have name added, add __unknown__.
9657 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9658 always call force_type_die instead.
9660 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
9662 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9663 for __stack_chk_guard.
9665 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9667 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9668 don't call start_source_file debug hook here...
9669 (finish_options): ... but here, after outputting predefined and
9670 command line defines and undefs.
9673 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9675 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9676 optimizing away empty bb with no successors, move over its
9677 footer chain to fallthru predecessor.
9678 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9679 (rtl_split_edge): For asm goto call patch_jump_insn even if
9680 splitting fallthru edge.
9683 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9684 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9685 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9686 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9690 * c-parser.c (c_parser_expression): Mark LHS of a comma
9691 expression as read if it is a decl, handled component or
9692 COMPOUND_EXPR with that on the RHS.
9693 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9694 if it is a decl or handled component.
9696 2010-05-11 Jan Hubicka <jh@suse.cz>
9698 * lto-symtab.c (lto_symtab_free): New function.
9699 * lto-streamer.h (lto_symtab_free): Declare.
9701 2010-05-11 Jan Hubicka <jh@suse.cz>
9703 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9704 that if function is needed it is reachable.
9705 (lto_output_node): See if it the function is reachable or referenced.
9706 (output_cgraph): Update call of lto_output_node.
9707 * lto-streamer.h (reachable_from_other_partition_p): Declare.
9709 2010-05-11 Jan Hubicka <jh@suse.cz>
9711 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9714 2010-05-11 Jan Hubicka <jh@suse.cz>
9716 PR tree-optimize/44063
9717 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9719 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9721 (estimate_function_body_sizes): Compute sizes even when disregarding.
9723 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
9725 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9727 2010-05-11 Jan Hubicka <jh@suse.cz>
9729 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9730 into every boundary.
9732 2010-05-11 Jan Hubicka <jh@suse.cz>
9734 * matrix-reorg.c (matrix_reorg): Rebuild edges.
9736 2010-05-11 Jan Hubicka <jh@suse.cz>
9738 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9739 lto_streamer_cache_delete): Put nodes into heap.
9740 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9743 2010-05-11 Jan Hubicka <jh@suse.cz>
9745 * cgraphbuild.c (cgraph_rebuild_references): New.
9746 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9748 * cgraph.h (cgraph_rebuild_references): Declare.
9749 * tree-inline.c (tree_function_versioning): Use it.
9750 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9752 2010-05-11 Jan Hubicka <jh@suse.cz>
9754 * cgraph.c: Include ipa-utils.h
9755 (cgraph_create_virtual_clone): Update references.
9756 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9758 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9760 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9761 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9764 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9766 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9768 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9770 * gcc.c (execute): For -### don't quote arguments that
9771 contain just alphanumerics and _/-. characters.
9772 * doc/invoke.texi: Document that change for -###.
9775 * df-problems.c (struct dead_debug): Add to_rescan field.
9776 (dead_debug_init): Clear to_rescan field.
9777 (dead_debug_finish): Rescan all debug insns in to_rescan
9778 bitmap and free the bitmap.
9779 (dead_debug_insert_before): Instead of rescanning debug insns
9780 immediately queue their rescanning until dead_debug_finish.
9781 (df_note_bb_compute): After dead_debug_add do continue instead
9784 2010-05-10 Jakub Jelinek <jakub@redhat.com>
9787 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9788 clear also INSN_REG_USE_LIST.
9790 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9792 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9794 2010-05-10 Jan Hubicka <jh@suse.cz>
9796 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9799 2010-05-10 Jan Hubicka <jh@suse.cz>
9801 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9803 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9804 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9805 (lto_streamer_cache_create): Init alloc pool.
9806 (lto_streamer_cache_delete): Free alloc pool.
9807 * lto-streamer.h: Include alloc pool.
9808 (lto_streamer_cache_d): Use alloc pool.
9809 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9811 2010-05-10 Jan Hubicka <jh@suse.cz>
9813 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9814 * cgraphbuild.c: Include except.h
9815 (record_type_list, record_eh_tables): New function.
9816 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9818 2010-05-10 Jan Hubicka <jh@suse.cz>
9820 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9821 __frame_dummy_init_array_entry, force_to_data): Attribute as used
9824 2010-05-10 Michael Matz <matz@suse.de>
9826 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9827 (can_reassociate_p): Use FLOAT_TYPE_P.
9828 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9829 (vect_force_simple_reduction): ... this.
9830 * tree-parloops.c (gather_scalar_reductions): Use
9831 vect_force_simple_reduction.
9832 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9833 vect_is_simple_reduction, add modify argument, if true rewrite
9834 "a-b" into "a+(-b)".
9835 (vect_is_simple_reduction, vect_force_simple_reduction): New
9837 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9839 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
9840 Vladimir Makarov <vmakarov@redhat.com>
9842 PR rtl-optimization/44012
9843 * ira-build.c (remove_unnecessary_allocnos): Nullify
9844 regno_allocno_map of the removed allocno.
9846 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9848 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9850 * configure: Regenerate.
9852 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9854 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9856 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9857 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9859 * configure: Regenerate.
9861 2010-05-10 Richard Guenther <rguenther@suse.de>
9863 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9864 marked if the entry identifier is marked.
9866 2010-05-10 Richard Guenther <rguenther@suse.de>
9868 * c-common.c (struct c_common_attributes): Add fnspec attribute.
9869 (handle_fnspec_attribute): New function.
9870 * gimple.h (gimple_call_return_flags): Declare.
9871 (gimple_call_arg_flags): Likewise.
9872 * gimple.c (gimple_call_arg_flags): New function.
9873 (gimple_call_return_flags): Likewise.
9874 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9876 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9878 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9879 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9881 (make_heapvar_for): ... this new function.
9882 (handle_rhs_call): Handle fnspec attribute argument specifiers.
9883 (handle_lhs_call): Likewise.
9884 (find_func_aliases): Adjust.
9886 2010-05-10 Richard Guenther <rguenther@suse.de>
9888 PR tree-optimization/44050
9889 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9891 2010-05-10 Wei Guozhi <carrot@google.com>
9894 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9896 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9899 * c-typeck.c (lookup_field): Take a type directly. Update
9901 (build_component_ref): Update call to lookup_field.
9902 (set_init_label): Use lookup_field to find initialized field.
9903 Handle returned list of fields like a sequence of designators.
9905 2010-05-09 Richard Guenther <rguenther@suse.de>
9908 * fold-const.c (tree_single_nonzero_warnv_p): Properly
9909 handle &FUNCTION_DECL.
9911 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9914 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
9915 structures and unions recursively.
9916 (detect_field_duplicates): Move duplicate detection with a hash to
9917 detect_field_duplicates_hash. Always use a hash if anonymous
9918 structures or unions are present.
9919 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9922 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
9925 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9926 detect Atom, Core 2 and Core i7.
9928 2010-05-09 Richard Guenther <rguenther@suse.de>
9930 * gcc.c (store_arg): Handle temporary file deletion for
9933 2010-05-09 Richard Guenther <rguenther@suse.de>
9936 * ipa-inline.c (estimate_function_body_sizes): Return after
9937 disregarding inline limits.
9939 2010-05-09 Richard Guenther <rguenther@suse.de>
9941 * gcc.c (store_arg): Revert last change.
9943 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
9946 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9947 (optimize_ops_list): Call it.
9949 2010-05-08 Richard Guenther <rguenther@suse.de>
9951 PR tree-optimization/44030
9952 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
9953 NECESSARY flag if we propagate from a inserted expression.
9955 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
9957 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9958 domain types as equal if they are both PLACEHOLDER_EXPRs.
9960 2010-05-08 Richard Guenther <rguenther@suse.de>
9962 * lto-wrapper.c (run_gcc): Remove linker output from
9963 command line for LTRANS invocation.
9965 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
9967 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9968 lto-macho as lto_binary_reader.
9969 * target.h (struct gcc_target): New hooks lto_start and lto_end.
9970 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9971 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9972 in lto_start and lto_end calls.
9973 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
9975 (scan_prog_file): Update is_elf_or_coff call.
9976 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9978 * collect2.c (main): Fix enum comparison.
9980 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9982 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9983 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
9984 and TARGET_ASM_LTO_END.
9985 * darwin.c: Include obstack.h and lto-streamer.h.
9986 (lto_section_names_offset, lto_section_names_obstack,
9987 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9989 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9990 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
9991 to a temporary file.
9992 (darwin_asm_lto_end): New function. Restore asm_out_file.
9993 (darwin_asm_named_section): For LTO sections, replace the name with
9994 the offset of the section name in a string table, and build this
9996 (darwin_file_start): Initialize global vars for LTO support.
9997 (darwin_file_end): If output to asm_out_file was redirected, append it
9998 to the proper asm_out_file here. Add the section names section.
10000 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10002 * c-pragma.c (pending_weak_d, pending_weak): New.
10003 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10004 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10005 handle_pragma_weak): Update the uses of pending_weaks.
10007 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10009 PR documentation/44016
10010 * doc/standards.texi (Standards): Link to unversioned
10011 cxx0x_status.html page.
10013 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
10016 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10017 in addition to TREE_USED, to avoid "set but unused" warnings.
10019 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10021 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10022 (is_loop_prefetching_profitable): Do not insert prefetches
10023 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10024 times the prefetch ahead distance.
10026 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10028 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10029 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10030 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10033 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10035 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10036 a diagnostic info when the insn-to-mem ratio is too small.
10038 2010-05-07 Richard Guenther <rguenther@suse.de>
10040 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10042 (store_arg): Queue temp_filename for deletion instead of
10043 the whole argument.
10045 2010-05-07 Richard Guenther <rguenther@suse.de>
10047 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10048 (run_gcc): Handle LTRANS phase invocation.
10049 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10051 2010-05-07 Jakub Jelinek <jakub@redhat.com>
10053 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10054 this is also meaningful on PARM_DECLs and RESULT_DECLs.
10056 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10058 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10060 2010-05-07 Richard Guenther <rguenther@suse.de>
10062 PR tree-optimization/44020
10063 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10064 code when PRE is not yet initialized.
10066 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10068 * config/mips/dbxmdebug.h: Remove.
10069 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10071 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
10073 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10074 with null pointer and also warn about ordered comparison of zero with
10075 pointer if -Wextra.
10077 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10079 * graphite-blocking.c
10080 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10081 * graphite-clast-to-gimple.c
10082 (clast_to_gcc_expression): Same.
10083 (precision_for_value): Same.
10084 (precision_for_interval): Same.
10085 (gcc_type_for_interval): Same.
10086 (graphite_create_new_guard): Same.
10087 (compute_bounds_for_level): Same.
10088 (graphite_create_new_loop_guard): Same.
10089 * graphite-interchange.c
10090 (build_linearized_memory_access): Same.
10091 (pdr_stride_in_loop): Same.
10092 (memory_strides_in_loop_1): Same.
10093 (memory_strides_in_loop): Same.
10094 (extend_scattering): Same.
10095 (psct_scattering_dim_for_loop_depth): Same.
10096 (pbb_number_of_iterations): Same.
10098 (debug_iteration_domains): Same.
10100 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10101 (ppl_set_inhomogeneous_gmp): Same.
10102 (ppl_strip_loop): Same.
10103 (ppl_lexico_compare_linear_expressions): Same.
10104 (ppl_read_polyhedron_matrix): Same.
10105 (ppl_max_for_le_pointset): Same.
10107 (ppl_read_polyhedron_matrix): Same.
10108 (tree_int_to_gmp): Same.
10109 (gmp_cst_to_tree): Same.
10110 (ppl_set_inhomogeneous): Same.
10111 (ppl_set_inhomogeneous_tree): Same.
10112 (ppl_set_coef): Same.
10113 (ppl_set_coef_tree): Same.
10114 * graphite-sese-to-poly.c
10115 (build_pbb_scattering_polyhedrons): Same.
10116 (build_scop_scattering): Same.
10117 (scan_tree_for_params_right_scev): Same.
10118 (scan_tree_for_params): Same.
10119 (find_params_in_bb): Same.
10120 (find_scop_parameters): Same.
10121 (add_upper_bounds_from_estimated_nit): Same.
10122 (build_loop_iteration_domains): Same.
10123 (add_condition_to_domain): Same.
10124 (pdr_add_memory_accesses): Same.
10126 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10128 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10129 CLooG's value_* macros to their respective mpz_* counterparts.
10130 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10131 (graphite_create_new_loop_guard): Same.
10132 * graphite-interchange.c (build_linearized_memory_access): Same.
10133 (pdr_stride_in_loop): Same.
10134 (memory_strides_in_loop_1): Same.
10135 (1st_interchange_profitable_p): Same.
10136 * graphite-poly.c (extend_scattering): Same.
10137 (psct_scattering_dim_for_loop_depth): Same.
10138 (pbb_number_of_iterations): Same.
10139 (pbb_number_of_iterations_at_time): Same.
10140 * graphite-poly.h (new_1st_loop): Same.
10141 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10142 (oppose_constraint): Same.
10143 (insert_constraint_into_matrix): Same.
10144 (ppl_set_inhomogeneous_gmp): Same.
10145 (ppl_set_coef_gmp): Same.
10146 (ppl_strip_loop): Same.
10147 (ppl_lexico_compare_linear_expressions): Same.
10148 (ppl_max_for_le_pointset): Same.
10149 (ppl_min_for_le_pointset): Same.
10150 (ppl_build_realtion): Same.
10151 * graphite-ppl.h (gmp_cst_to_tree): Same.
10152 (ppl_set_inhomogeneous): Same.
10153 (ppl_set_inhomogeneous_tree): Same.
10154 (ppl_set_coef): Same.
10155 (ppl_set_coef_tree): Same.
10156 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10157 (build_scop_scattering): Same.
10158 (add_value_to_dim): Same.
10159 (scan_tree_for_params_right_scev): Same.
10160 (scan_tree_for_params_int): Same.
10161 (scan_tree_for_params): Same.
10162 (find_params_in_bb): Same.
10163 (find_scop_parameters): Same.
10164 (add_upper_bounds_from_estimated_nit): Same.
10165 (build_loop_iteration_domains): Same.
10166 (create_linear_expr_from_tree): Same.
10167 (add_condition_to_domain): Same.
10168 (pdr_add_memory_accesses): Same.
10170 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
10171 Jason Merrill <jason@redhat.com>
10173 * c-common.c (c_common_reswords): Add nullptr.
10174 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
10175 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10176 (gen_type_die_with_usage): Likewise.
10177 * dbxout.c (dbxout_type): Likewise.
10178 * sdbout.c (plain_type_1): Likewise.
10180 2010-05-06 Jason Merrill <jason@redhat.com>
10182 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10183 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
10185 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10187 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10188 stripping WITH_SIZE_EXPR.
10189 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10192 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10194 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10195 list of obsolete configurations.
10196 Disabled check for obsolete configurations.
10197 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10198 Removed support for previous versions.
10199 * config/mips/iris.h: Removed.
10200 * config/mips/iris5.h: Removed.
10201 * config/mips/iris6.h: Merged old iris.h contents.
10202 (TARGET_IRIX): Removed.
10203 (DRIVER_SELF_SPECS): Removed mabi=32.
10204 (IDENT_ASM_OP): Removed undef.
10205 (STARTFILE_SPEC): Removed mabi=32.
10206 (ENDFILE_SPEC): Likewise.
10207 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10208 (MACHINE_TYPE): Update for IRIX 6.5.
10209 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10210 TARGET_IRIX by TARGET_IRIX6.
10211 (mips_file_start): Likewise.
10212 (mips_output_external): Remove IRIX 5/6 O32 support.
10213 (mips_output_function_prologue): Likewise.
10214 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10216 (TARGET_CPU_CPP_BUILTINS): Likewise.
10217 (TARGET_IRIX): Removed.
10218 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10219 (MULTILIB_DIRNAMES): Removed 32.
10220 (MULTILIB_OSDIRNAMES): Removed ../lib.
10221 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10222 (Specific, mips-sgi-irix5): Document removal.
10223 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10224 Remove references to older IRIX 6 releases and the O32 ABI.
10226 2010-05-06 Jakub Jelinek <jakub@redhat.com>
10229 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10230 instead of DF_REF_REAL_REG.
10232 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
10235 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10236 handling to still return true for x64 targets.
10238 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10240 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10242 2010-05-06 Jan Hubicka <jh@suse.cz>
10244 PR tree-optimization/43791
10245 * ipa-inline.c (update_caller_keys): Remove bogus
10246 disregard_inline_limits check.
10248 2010-05-06 Michael Matz <matz@suse.de>
10250 PR tree-optimization/43984
10251 * tree-ssa-pre.c (inserted_phi_names): Remove.
10252 (inserted_exprs): Change to bitmap.
10253 (create_expression_by_pieces): Set bits, don't append to vector.
10254 (insert_into_preds_of_block): Don't handle inserted_phi_names.
10255 (eliminate): Don't look at inserted_phi_names, remove deleted
10256 insns from inserted_exprs.
10257 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10258 (init_pre, fini_pre): Allocate and free bitmaps.
10259 (execute_pre): Insert insns on edges before elimination.
10261 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10263 * tree.c (initializer_zerop): Handle STRING_CST.
10265 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
10268 * doc/invoke.texi (Wimplicit): Document as C only.
10269 * opts.c (common_handle_option): Add argument kind.
10270 (handle_option): Rename as read_cmdline_option. Factor out code to...
10271 (handle_option): ... here. New.
10272 (handle_options): Rename as read_cmdline_options.
10273 (decode_options): Update call.
10274 (set_option): Use option index instead of option pointer. Classify
10275 diagnostics correctly.
10276 (enable_warning_as_error): Call handle_option.
10277 * opts.h (set_option): Update declaration.
10278 (handle_option): Declare.
10279 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
10280 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
10281 * c-opts.c (set_Wimplicit): Delete.
10282 (c_family_lang_mask): New static constant.
10283 (c_common_handle_option): Add argument kind. Use handle_option
10284 instead of set_Wimplicit.
10285 (c_common_post_options): warn_implicit and warn_implicit_int
10286 are disabled by default.
10287 * c-common.c (warn_implicit): Do not define here.
10288 * c-common.h (warn_implicit): Do not declare here.
10289 (c_common_handle_option): Update declaration.
10290 * lto-opts.c (lto_reissue_options): Update call to set_option.
10292 2010-05-06 Richard Guenther <rguenther@suse.de>
10294 PR tree-optimization/43571
10295 * domwalk.c (walk_dominator_tree): Walk the dominator
10296 sons in more optimal order.
10298 2010-05-06 Richard Guenther <rguenther@suse.de>
10300 PR tree-optimization/43934
10301 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
10302 (stmt_cost): Likewise.
10303 (extract_true_false_args_from_phi): New helper.
10304 (determine_max_movement): For PHI nodes verify we can hoist them
10305 and compute their cost.
10306 (determine_invariantness_stmt): Handle PHI nodes.
10307 (move_computations_stmt): Likewise. Hoist PHI nodes in
10308 if-converted form using COND_EXPRs.
10309 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
10310 (tree_ssa_lim): Likewise.
10311 * tree-flow.h (tree_ssa_lim): Adjust prototype.
10312 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
10314 2010-05-06 Richard Guenther <rguenther@suse.de>
10316 PR tree-optimization/43987
10317 * tree-ssa-structalias.c (could_have_pointers): For possibly
10318 address-taken variables force pointers to be recorded.
10319 (create_variable_info_for_1): Likewise.
10320 (push_fields_onto_fieldstack): Pass in wheter all fields
10321 must have pointers.
10322 (find_func_aliases): Query types instead of vars whether
10323 they contain pointers where appropriate.
10325 2010-05-06 Jan Hubicka <jh@suse.cz>
10327 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
10328 (record_reference, mark_address, mark_load, mark_store): Record
10330 (record_references_in_initializer): Update call of record_references.
10331 (rebuild_cgraph_edges): Remove all references before rebuiding.
10332 * cgraph.c (cgraph_create_node): Clear ref list.
10333 (cgraph_remove_node): Remove references.
10334 (dump_cgraph_node): Dump references.
10335 (cgraph_clone_node): Clone references.
10336 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
10337 (struct cgraph_node, varpool_node): Add ref_lst.
10338 * ipa-ref.c: New file.
10339 * ipa-ref.h: New file.
10340 * ipa-ref-inline.h: New file.
10341 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
10342 (referenced_from_other_partition_p): New function.
10343 (lto_output_varpool_node): Take set arugment; call
10344 referenced_from_other_partition.
10345 (lto_output_ref): New.
10346 (add_references): New.
10347 (output_refs): New.
10348 (output_cgraph): Compute boundary based on references; output refs.
10349 (output_varpool): Accept cgraph_node_set argument.
10352 (input_cgraph): Call input_refs.
10353 * lto-section-in.c (lto_section_name): Add refs.
10354 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10355 (ipa-ref.o): New file.
10356 * varpool.c (varpool_node): Clear ipa ref list.
10357 (varpool_remove_node): Remove references.
10358 (dump_varpool_node): Dump references.
10359 (varpool_assemble_decl): Only compile finalized ones.
10360 (varpool_extra_name_alias): Initialize ref list.
10361 * lto-streamer.c (lto-get_section_name): Add .refs section.
10362 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10363 (referenced_from_other_partition_p): Declared.
10365 2010-05-06 Ira Rosen <irar@il.ibm.com>
10367 PR tree-optimization/43901
10368 * tree-vect-stmts.c (vectorizable_call): Assert that vector
10369 type is not NULL if it's transformation phase, and return
10370 FALSE if it's analysis.
10371 (vectorizable_conversion, vectorizable_operation,
10372 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10374 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10376 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10378 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10380 * config/mips/mips-protos.h
10381 (mips_small_register_classes_for_mode_p): Delete prototype.
10383 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
10385 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10386 * config/arm/arm.c (multiple_operation_profitable_p,
10387 compute_offset_order): New static functions.
10388 (load_multiple_sequence, store_multiple_sequence): Use them.
10389 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
10390 memory offsets, not register numbers.
10391 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10393 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
10395 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10396 (get_pending_sizes, put_pending_size, put_pending_sizes):
10397 Update the uses of pending_sizes.
10398 * c-decl.c (store_parm_decls): Likewise.
10399 * c-tree.h (struct c_arg_info): Likewise.
10400 * tree.h: Update the prototype for get_pending_sizes and
10403 2010-05-05 Jason Merrill <jason@redhat.com>
10406 * c-common.c (handle_aligned_attribute): Respect
10407 ATTR_FLAG_TYPE_IN_PLACE.
10410 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10411 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10412 (TARGET_INITIALIZER): Use it.
10413 * c-common.c (attribute_takes_identifier_p): Call it.
10414 * c-common.h: Update prototype.
10415 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10416 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10418 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10421 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10422 DW_ID_down_case for Fortran compilation units.
10424 2010-05-05 Jan Hubicka <jh@suse.cz>
10426 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10429 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
10431 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10432 a variable-sized RESULT_DECL.
10434 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
10436 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10438 2010-05-05 Jason Merrill <jason@redhat.com>
10441 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10443 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10445 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
10446 Jakub Jelinek <jakub@redhat.com>
10449 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10450 (dead_debug_init, dead_debug_finish): New functions.
10451 (dead_debug_add, dead_debug_insert_before): Likewise.
10452 (df_note_bb_compute): Initialize a dead_debug object, add dead
10453 debug uses to it, insert debug bind insns before death insns,
10454 reset debug insns that refer to pending uses at the end.
10455 * rtl.h (make_debug_expr_from_rtl): New prototype.
10456 * varasm.c (make_debug_expr_from_rtl): New function.
10458 2010-05-05 Jan Hubicka <jh@suse.cz>
10460 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10461 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10462 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10463 lto_varpool_encoder_deref, lto_varpool_encoder_size,
10464 lto_varpool_encoder_encode_initializer_p,
10465 lto_set_varpool_encoder_encode_initializer): New functions.
10466 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10467 call output_varpool.
10468 (input_varpool_node): Do not always set analyzed.
10469 (input_cgraph_1): Return vector of cgraph nodes.
10470 (input_varpool_1): Return vector of varpools.
10471 (input_cgraph): Free the vectors.
10472 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10473 output only initializers needed.
10474 (lto_output): Only call output_cgraph.
10475 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10476 * lto-section-out.c (lto_new_out_decl_state): Initialize
10477 state->varpool_node_encoder.
10478 * lto-streamer.h (lto_varpool_encoder_d): New.
10479 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10480 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10481 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10482 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10483 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10485 (output_varpool, input_varpool): Remove declarations.
10487 2010-05-05 Jan Hubicka <jh@suse.cz>
10489 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10490 with body can prevail.
10492 2010-05-05 Jan Hubicka <jh@suse.cz>
10494 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10497 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10499 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10501 * gengtype.h (erro_at_line): Constify pos argument.
10503 * gengtype.c: Include hashtab.h.
10504 (enum gc_used): Document GC_MAYBE_POINTED_TO.
10505 (error_at_line): Constify pos argument.
10506 (do_typedef): Initialize p->opt field.
10507 (get_file_gtfilename): Fix comment typo.
10508 (struct walk_type_data): Constify line field.
10509 (get_output_file_for_structure): New function.
10510 (write_local_func_for_structure): Constify orig_s argument.
10511 Use get_output_file_for_structure.
10512 (write_func_for_structure): Use get_output_file_for_structure.
10513 (INDENT): New define.
10514 (dump_pair, dump_type, dump_type_list, dump_typekind)
10515 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10516 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10518 (seen_types): New variable.
10519 (main): New variable do_dump. Process "-d" command line option.
10520 Call dump_everything if dump requested.
10522 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10524 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10525 in a temporary instead of invoking the macro multiple times.
10526 (track_expr_p): Likewise.
10528 2010-05-04 Neil Vachharajani <nvachhar@google.com>
10530 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10532 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10533 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
10534 conditions for printing notes.
10535 * common.opt (-Wcoverage-mismatch): Allow negative, default to
10536 true, update documentation.
10537 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10539 2010-05-04 Jakub Jelinek <jakub@redhat.com>
10542 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10545 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10548 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10549 (*sse_prologue_save_insn1): Likewise.
10550 (SSE prologue save splitter): Likewise.
10552 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
10554 * tree.c (free_lang_data_in_one_sizepos): New inline function.
10555 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10556 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10557 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10558 all decls. Call it on DECL_FIELD_OFFSET of fields.
10559 (find_decls_types_r): Follow DECL_VALUE_EXPR.
10560 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10562 2010-05-04 Martin Jambor <mjambor@suse.cz>
10564 * tree-sra.c (build_access_from_expr_1): The first parameter type
10565 changed to simple tree.
10566 (build_access_from_expr): Likewise, gsi parameter was eliminated.
10567 (scan_assign_result): Renamed to assignment_mod_result, enum elements
10569 (build_accesses_from_assign): Removed all parameters except for a
10570 simple gimple statement. Now returns a simple bool.
10571 (scan_function): All non-analysis parts moved to separate functions
10572 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
10573 parameters and updated both callers.
10574 (sra_modify_expr): Removed parameter data.
10575 (sra_modify_function_body): New function.
10576 (perform_intra_sra): Call sra_modify_function_body to modify the
10578 (replace_removed_params_ssa_names): Parameter data changed into
10579 adjustments vector.
10580 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
10581 changed the parameter dont_convert to convert with the opposite
10583 (sra_ipa_modify_assign): Parameter data changed into adjustments
10584 vector, return value changed to bool.
10585 (ipa_sra_modify_function_body): New function.
10586 (sra_ipa_reset_debug_stmts): Updated a comment.
10587 (modify_function): Use ipa_sra_modify_function_body to modify function
10590 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10592 PR middle-end/43671
10593 * alias.c (true_dependence): Handle the same VALUE in x and mem.
10594 (canon_true_dependence): Likewise.
10595 (write_dependence_p): Likewise.
10597 2010-05-04 Jan Hubicka <jh@suse.cz>
10599 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10600 * cgraphbuild.c: Include ipa-utils.h
10601 (record_reference_ctx): New struct.
10602 (record_reference): Simplify to work on initializers; not statements.
10603 (mark_address, mark_load, mark_store): New.
10604 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10605 walk PHI nodes too.
10606 (record_references_in_initializer): Update use of record_reference.
10607 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10608 walk PHI nodes too.
10610 2010-05-04 Jan Hubicka <jh@suse.cz>
10612 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10613 node will be removed anyway.
10614 (lto_varpool_replace_node): Allow also unanalyzed nodes;
10615 relink aliases of node into prevailing node.
10616 * varpool.c (varpool_remove_node): Remove aliases properly;
10617 when removing node, remove all its aliases too; remove DECL_INITIAL
10618 of removed node; ggc_free the varpool node.
10620 2010-05-04 Richard Guenther <rguenther@suse.de>
10622 PR tree-optimization/43879
10623 * tree-ssa-structalias.c (alias_get_name): Use
10624 DECL_ASSEMBLER_NAME if available.
10625 (create_function_info_for): Return the varinfo node.
10626 (ipa_pta_execute): Associate same-body aliases and extra names
10627 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
10629 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
10631 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10633 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
10636 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10637 only if HONOR_REG_ALLOC_ORDER is not defined.
10639 2010-05-04 Richard Guenther <rguenther@suse.de>
10641 PR tree-optimization/43949
10642 * tree-vrp.c (extract_range_from_binary_expr): Only handle
10645 2010-04-26 Jason Merrill <jason@redhat.com>
10647 * c.opt (-fstrict-enums): New.
10648 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10650 2010-05-03 David Ung <davidu@mips.com>
10651 James E. Wilson <wilson@codesourcery.com>
10653 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10654 emit the trap instruction before the divide for TUNE_74K.
10656 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
10658 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10659 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10660 based on the above, for new target hook.
10662 * hooks.c (hook_bool_mode_true): New generic hook.
10663 * hooks.h (hook_bool_mode_true): Add prototype.
10665 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10667 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10668 target hook, set to hook_bool_mode_false.
10669 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10670 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10671 with targetm.small_register_classes_for_mode_p.
10672 (find_reusable_reload): Likewise.
10673 (combine_reloads): Likewise.
10674 * reload1.c (reload_as_needed): Likewise.
10675 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10676 * ifcvt.c (noce_process_if_block, check_cond_move_block,
10677 dead_or_predicable): Likewise.
10678 * regmove.c (optimize_reg_copy_1): Likewise.
10679 * calls.c (prepare_call_address): Likewise.
10680 (precompute_register_parameters): Likewise.
10682 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10684 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10685 implementation of the hook that considers all register classes
10686 small except for SH64.
10687 (sh_override_options): Use the new hook.
10688 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10691 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10693 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10694 implementation of the hook that considers all register classes
10696 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10699 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10701 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10702 implementation of the hook that considers all register classes
10704 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10707 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10709 * config/m32c/m32c.h: Likewise.
10710 * config/pdp11/pdp11.h: Likewise.
10711 * config/avr/avr.h: Likewise.
10712 * config/xtensa/xtensa.h: Likewise.
10713 * config/m68hc11/m68hc11.h: Likewise.
10714 * config/mn10300/mn10300.h: Likewise.
10715 * config/mcore/mcore.h: Likewise.
10716 * config/h8300/h8300.h: Likewise.
10717 * config/bfin/bfin.h: Likewise.
10719 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10720 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10722 2010-05-03 Anatoly Sokolov <aesok@post.ru>
10724 * double-int.h (tree_to_double_int): Remove macro.
10725 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10726 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10727 (tree_to_double_int): New function.
10728 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10730 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10732 2010-05-03 Richard Guenther <rguenther@suse.de>
10734 PR tree-optimization/43971
10735 * tree-ssa-structalias.c (get_constraint_for_1): Fix
10736 constraints in the !flag_delete_null_pointer_checks case.
10738 2010-05-03 Jakub Jelinek <jakub@redhat.com>
10741 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10742 result mode matches original rtl mode.
10744 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
10747 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10749 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10751 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10752 when processing flag options.
10754 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10756 * gcov-iov.c (main): Change format string placeholder
10757 from %#08x to 0x%08x.
10758 * genchecksum.c (dosum): Change format string placeholder
10759 from %#02x to 0x%02x.
10761 2010-05-02 Richard Guenther <rguenther@suse.de>
10763 PR tree-optimization/43879
10764 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10766 2010-05-02 Bruno Haible <bruno@clisp.org>
10768 * doc/extend.texi (Function Attributes): Fix a typo.
10770 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10773 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10774 placeholder from 0x%x to %#x.
10775 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10776 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10777 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10778 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10779 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10780 * config/i386/i386.c (ix86_target_string): Ditto.
10781 * config/i386/i386.c (output_pic_addr_const): Ditto.
10782 (print_operand): Ditto.
10784 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10786 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10787 placeholder from 0x%x to %#x.
10788 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10789 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10790 (ASM_OUTPUT_DEBUG_DATA): Ditto.
10791 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10792 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10793 * optc-gen.awk: Ditto.
10794 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10795 (HOST_WIDE_INT_PRINT_HEX): Ditto.
10796 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10797 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10799 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10801 * target.h (struct calls): Add function_value_regno_p field.
10802 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10803 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10804 * targhooks.c (default_function_value_regno_p): New function.
10805 * targhooks.h (default_function_value_regno_p): Declare function.
10806 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10807 * builtins.c. (apply_result_size): (Ditto.).
10808 * combine.c. (likely_spilled_retval_p): (Ditto.).
10809 * mode-switching.c. Include 'target.h'.
10810 (create_pre_exit): Use function_value_regno_p hook.
10811 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10812 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10813 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10815 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10816 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10817 (ix86_function_value_regno_p): Declare as static, change argument
10818 type to const unsigned int.
10819 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10821 2010-05-01 Richard Guenther <rguenther@suse.de>
10823 PR tree-optimization/43949
10824 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10826 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10828 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10830 * rtl.h (CONST_DOUBLE_P): Define.
10831 (rtx_to_double_int): Declare.
10832 * emit-rtl.c (rtx_to_double_int): New function.
10833 * dwarf2out.c (insert_double): New function.
10834 (loc_descriptor, add_const_value_attribute): Clean up, use
10835 rtx_to_double_int and insert_double functions.
10837 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
10839 * doc/extend.texi (Inline): Add missing return keyword to examples.
10840 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10843 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
10845 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10846 the variable part of the offset as well. Use highest_pow2_factor for
10847 all alignment checks.
10849 2010-04-30 Richard Guenther <rguenther@suse.de>
10851 PR tree-optimization/43879
10852 * tree-ssa-structalias.c (type_could_have_pointers): Functions
10855 2010-04-30 Jan Hubicka <jh@suse.cz>
10857 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10859 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10861 2010-04-30 Jan Hubicka <jh@suse.cz>
10863 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10865 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10866 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10867 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10868 cgraph_node_set_needs_ltrans_p): Remove.
10870 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10872 * sdbout.c: Include vec.h, do not include varray.h.
10873 (deferred_global_decls, sdbout_global_decl,
10874 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10875 * toplev.c: Do not include varray.h.
10876 (dump_memory_report): Do not dump VARRAY statistics.
10877 * gengtype.c (open_base_file): Ignore varray.h.
10878 * Makefile.in: Update for abovementioned changes.
10879 Remove all traces of varray.c and varray.h.
10880 * varray.c: Remove file.
10881 * varray.h: Remove file.
10883 2010-04-30 Jan Hubicka <jh@suse.cz>
10885 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10888 2010-04-30 Jan Hubicka <jh@suse.cz>
10890 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10893 2010-04-30 Richard Guenther <rguenther@suse.de>
10895 * tree-ssa-structalias.c (get_constraint_for_1): Generate
10896 constraints for CONSTRUCTOR.
10898 2010-04-30 Richard Guenther <rguenther@suse.de>
10901 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10902 first after all lowering passes.
10904 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10906 * toplev.c: Include varray.h for statistics dumping.
10907 * tree.h: Do not declare varray_head_tag.
10908 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10909 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10910 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10911 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10912 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10913 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10914 c-common.c, c-common.h, reg-stack.c, basic-block.h,
10915 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10917 * Makefile.in: Update for abovementioned changes.
10919 2010-04-30 Jakub Jelinek <jakub@redhat.com>
10922 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10924 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10926 * config/picochip/picochip.c (picochip_legitimize_address): Define.
10927 Use this function to do machine-specific conversion.
10928 (picochip_legitimize_reload_address): Likewise.
10929 (picochip_legitimate_address_p): Check valid base register only if
10931 (picochip_check_conditional_copy): Check for modw only if opnd is
10933 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10934 to call the function in c.
10935 * config/picochip/picochip-protos.h
10936 (picochip_legitimize_reload_address): Define.
10937 * config/picochip/picochip.md (supported_compare1): Define.
10939 2010-04-30 Jan Hubicka <jh@suse.cz>
10941 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10942 (cgraph_global_info): Remove inlined.
10943 (LTO_cgraph_tag_names): Remove.
10944 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10945 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10946 simplify cgraph tags and document.
10947 (lto_output_node): Use only LTO_cgraph_unavail_node and
10948 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10949 for_functions_valid, global info, process and output flags.
10950 (input_overwrite_node): Initialize estimated stack size and
10951 estimated growth. Do not read flags we no longer store.
10952 (input_node): Likewise do not read info no longer stored.
10953 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10956 2010-04-30 Richard Guenther <rguenther@suse.de>
10958 PR tree-optimization/43879
10959 * tree-ssa-structalias.c (get_constraint_for_1): Properly
10960 handle non-zero initializers.
10962 2010-04-30 Richard Guenther <rguenther@suse.de>
10964 * builtins.c (fold_builtin_1): Delete free (0).
10966 2010-04-29 Jan Hubicka <jh@suse.cz>
10968 * gengtype.c (open_base_files): Add lto-streamer.h
10969 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10970 (pass_ipa_cp): GGC collect.
10971 * toplev. (compile_file): Do not output symbols.
10972 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10973 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10974 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10975 * lto-section-in.c: Include ggc.h
10976 (lto_new_in_decl_state): Alloc in GGC.
10977 (lto_delete_in_decl_state): Likewise.
10978 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10981 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
10984 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10985 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
10986 (HONOR_REG_ALLOC_ORDER): Describe new macro.
10987 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10988 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10989 account only if HONOR_REG_ALLOC_ORDER is not defined.
10990 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10991 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10993 2010-04-29 Jon Grant <04@jguk.org>
10995 * collect2.c (vflag): Change type from int to bool.
10997 (helpflag): New global bool.
10998 (main): Set vflag and debug with boolean, not integer truth values.
10999 Accept new "--help" option and output usage text if found.
11000 * collect2.h (vflag): Update prototype.
11003 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11006 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11008 2010-04-29 Richard Guenther <rguenther@suse.de>
11011 * plugin.h (invoke_plugin_callbacks): Annotate arguments
11012 with ATTRIBUTE_UNUSED.
11014 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11017 * config/i386/i386.c (get_some_local_dynamic_name): Replace
11018 INSN_P with NONDEBUG_INSN_P.
11019 (distance_non_agu_define): Likewise.
11020 (distance_agu_use): Likewise.
11022 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11024 From Dominique d'Humieres <dominiq@lps.ens.fr>
11026 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11029 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
11031 * plugin.h (invoke_plugin_callbacks): New inline function.
11032 * plugin.c (flag_plugin_added): New global flag.
11033 (add_new_plugin): Initialize above flag.
11034 (invoke_plugin_callbacks): Rename to ...
11035 (invoke_plugin_callbacks_full): ... this.
11037 2010-04-28 Jan Hubicka <jh@suse.cz>
11039 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11040 (lto_varpool_replace_node): New.
11041 (lto_symtab_resolve_symbols): Resolve varpool nodes.
11042 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11043 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11044 * cgraph.h (varpool_node_ptr): New type.
11045 (varpool_node_ptr): New vector.
11046 (varpool_node_set_def): New structure.
11047 (varpool_node_set): New type.
11048 (varpool_node_set): New vector.
11049 (varpool_node_set_element_def): New structure.
11050 (varpool_node_set_element, const_varpool_node_set_element): New types.
11051 (varpool_node_set_iterator): New type.
11052 (varpool_node): Add prev pointers, add used_from_other_partition,
11053 in_other_partition.
11054 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11055 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11056 varpool_get_node, varpool_remove_node): Declare.
11057 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11058 varpool_node_set_size): New inlines.
11059 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11060 * tree-pass.h (varpool_node_set_def): Forward declare.
11061 (ipa_opt_pass_d): Summary writting takes vnode sets too.
11062 (ipa_write_optimization_summaries): Update prototype.
11063 * ipa-cp.c (ipcp_write_summary): Update.
11064 * ipa-reference.c (ipa_reference_write_summary): Update.
11065 * lto-cgraph.c (lto_output_varpool_node): New static function.
11066 (output_varpool): New function.
11067 (input_varpool_node): New static function.
11068 (input_varpool_1): New function.
11069 (input_cgraph): Input varpool.
11070 * ipa-pure-const.c (pure_const_write_summary): Update.
11071 * lto-streamer-out.c (lto_output): Update, output varpool too.
11072 (write_global_stream): Kill WPA hack.
11073 (produce_asm_for_decls): Update.
11074 (output_alias_pair_p): Handle variables.
11075 (output_unreferenced_globals): Output only needed partition of varpool.
11076 * ipa-inline.c (inline_write_summary): Update.
11077 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11079 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11080 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11081 varpool_node_set_new, varpool_node_set_add,
11082 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11083 debug_varpool_node_set): New functions.
11084 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11085 (execute_one_pass): Process new decls too.
11086 (ipa_write_summaries_2): Pass around vsets.
11087 (ipa_write_summaries_1): Likewise.
11088 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11090 (ipa_write_optimization_summaries_1): Pass around vsets.
11091 (ipa_write_optimization_summaries): Likewise.
11092 * varpool.c (varpool_get_node): New.
11093 (varpool_node): Update doubly linked lists.
11094 (varpool_remove_node): New.
11095 (dump_varpool_node): More dumping.
11096 (varpool_enqueue_needed_node): Update doubly linked lists.
11097 (decide_is_variable_needed): Kill ltrans hack.
11098 (varpool_finalize_decl): Kill lto hack.
11099 (varpool_assemble_decl): Skip decls in other partitions.
11100 (varpool_assemble_pending_decls): Update doubly linkes lists.
11101 (varpool_empty_needed_queue): Likewise.
11102 (varpool_extra_name_alias): Likewise.
11103 * lto-streamer.c (lto_get_section_name): Add vars section.
11104 * lto-streamer.h (lto_section_type): Update.
11105 (output_varpool, input_varpool): Declare.
11107 2010-04-28 Mike Stump <mikestump@comcast.net>
11109 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11111 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11113 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11114 record or union type with RECORD_OR_UNION_TYPE_P predicate.
11115 (lto_input_ts_type_tree_pointers): Likewise.
11116 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11117 (lto_output_ts_type_tree_pointers): Likewise.
11119 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11121 Uniquization of constants at the Tree level
11122 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11123 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11125 (tree_output_constant_def): Declare.
11126 * gimplify.c (gimplify_init_constructor): When using block copy, first
11127 uniquize the constant constructor on the RHS.
11128 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11129 DECL_IN_CONSTANT_POOL flag.
11130 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11131 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11133 (assemble_variable): Deal with symbols belonging to the tree constant
11135 (get_constant_section): Add ALIGN parameter and simplify.
11136 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11137 (assemble_constant_contents): Use the expression of the VAR_DECL.
11138 (output_constant_def_contents): Use the alignment of the VAR_DECL.
11139 (tree_output_constant_def): New global function.
11140 (mark_constant): Use the expression of the VAR_DECL.
11141 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11143 (output_object_block): Likewise and assemble the expression.
11145 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11147 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11148 hash_tree, eq_tree): New tree hash table.
11149 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11150 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11151 lto_orig_address_remove): Reimplement.
11153 2010-04-28 Xinliang David Li <davidxl@google.com>
11156 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11157 (compute_uninit_opnds_pos): New function.
11158 (is_non_loop_exit_postdominating): New function.
11159 (compute_control_dep_chain): New function.
11160 (find_pdom): New function.
11161 (convert_control_dep_chain_into_preds): New function.
11162 (find_predicates): New function.
11163 (find_control_equiv_block): New function.
11164 (collect_phi_def_edges): New function.
11165 (find_def_preds): New function.
11166 (find_dom): New function.
11167 (dump_predicates): New function.
11168 (get_cmp_code): New function.
11169 (is_value_included_in): New function.
11170 (find_matching_predicate_in_rest_chains): New function.
11171 (use_pred_not_overlap_with_undef_path_pred): New function.
11172 (is_use_properly_guarded): New function.
11173 (normalize_cond_1): New function.
11174 (is_and_or_or): New function.
11175 (normalize_cond): New function.
11176 (is_gcond_subset_of): New function.
11177 (is_subset_of_any): New function.
11178 (is_or_set_subset_of): New function.
11179 (is_and_set_subset_of): New function.
11180 (is_norm_cond_subset_of): New function.
11181 (is_pred_expr_subset_of): New function.
11182 (is_pred_chain_subset_of): New function.
11183 (is_included_in): New function.
11184 (is_superset_of): New function.
11185 (find_uninit_use): New function.
11186 (warn_uninitialized_phi): New function.
11187 (compute_possibly_undefined_names): New function.
11188 (ssa_undefined_value_p): New function.
11189 (execute_late_warn_uninitialized): New function.
11190 * tree-ssa.c (ssa_undefined_value_p): Removed.
11191 (warn_uninit): Changed to extern.
11192 (warn_uninitialized_phi): Removed.
11193 (warn_uninitialized_vars): Changed to extern.
11194 (execute_late_warn_uninitialized): Removed
11195 * tree-flow.h: Add new prototypes.
11196 * timevar.def: Add new time variable.
11197 * Makefile.in: Add new build file.
11199 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
11201 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11204 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11207 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11209 2010-04-28 Martin Jambor <mjambor@suse.cz>
11211 * cgraph.h (struct cgraph_node): New field indirect_calls.
11212 (struct cgraph_indirect_call_info): New type.
11213 (struct cgraph_edge): Removed field indirect_call. New fields
11214 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11215 (cgraph_create_indirect_edge): Declare.
11216 (cgraph_make_edge_direct): Likewise.
11217 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11218 * ipa-prop.h (struct ipa_param_call_note): Removed.
11219 (struct ipa_node_params): Removed field param_calls.
11220 (ipa_create_all_structures_for_iinln): Declare.
11221 * cgraph.c: Described indirect edges and uids in initial comment.
11222 (cgraph_add_edge_to_call_site_hash): New function.
11223 (cgraph_edge): Search also among the indirect edges, use
11224 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11225 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11226 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11228 (initialize_inline_failed): Assign a reason to indirect edges.
11229 (cgraph_create_edge_1): New function.
11230 (cgraph_create_edge): Moved some functionality to
11231 cgraph_create_edge_1.
11232 (cgraph_create_indirect_edge): New function.
11233 (cgraph_edge_remove_callee): Add an assert checking for
11235 (cgraph_edge_remove_caller): Special-case indirect edges.
11236 (cgraph_remove_edge): Likewise.
11237 (cgraph_set_edge_callee): New function.
11238 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11239 (cgraph_make_edge_direct): New function.
11240 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11241 the declaration of the call statement matches.
11242 (cgraph_node_remove_callees): Special-case indirect edges.
11243 (cgraph_clone_edge): Likewise.
11244 (cgraph_clone_node): Clone also the indirect edges.
11245 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11246 indirect_call, dump count of indirect_calls edges.
11247 * ipa-prop.c (iinlining_processed_edges): New variable.
11248 (ipa_note_param_call): Create indirect edges instead of
11249 creating notes. New parameter node.
11250 (ipa_analyze_call_uses): New parameter node, pass it on to
11251 ipa_note_param_call.
11252 (ipa_analyze_stmt_uses): Likewise.
11253 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11254 (print_edge_addition_message): Work on edges rather than on notes.
11255 (update_call_notes_after_inlining): Likewise, renamed to
11256 update_indirect_edges_after_inlining.
11257 (ipa_create_all_structures_for_iinln): New function.
11258 (ipa_free_node_params_substructures): Do not free notes.
11259 (ipa_edge_duplication_hook): Propagate bits within
11260 iinlining_processed_edges bitmap.
11261 (ipa_node_duplication_hook): Do not duplicate notes.
11262 (free_all_ipa_structures_after_ipa_cp): Renamed to
11263 ipa_free_all_structures_after_ipa_cp.
11264 (free_all_ipa_structures_after_iinln): Renamed to
11265 ipa_free_all_structures_after_iinln.
11266 (ipa_write_param_call_note): Removed.
11267 (ipa_read_param_call_note): Removed.
11268 (ipa_write_indirect_edge_info): New function.
11269 (ipa_read_indirect_edge_info): Likewise.
11270 (ipa_write_node_info): Do not stream notes, do stream information
11272 (ipa_read_node_info): Likewise.
11273 (lto_ipa_fixup_call_notes): Removed.
11274 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
11275 * ipa-inline.c (pass_ipa_inline): Likewise.
11276 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
11277 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
11278 * tree-inline.c (copy_bb): Removed an unnecessary double check for
11280 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
11282 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
11283 (output_cgraph): Stream also indirect edges.
11284 (lto_output_edge): Added capability to stream indirect edges.
11285 (input_edge): Likewise.
11286 (input_cgraph_1): Likewise.
11287 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
11290 2010-04-28 Richard Guenther <rguenther@suse.de>
11292 PR tree-optimization/43879
11293 PR tree-optimization/43909
11294 * tree-ssa-structalias.c (struct variable_info): Add
11295 only_restrict_pointers flag.
11296 (new_var_info): Initialize it. Increment stats.total_vars here.
11297 (create_function_info_for): Do not increment stats.total_vars here.
11298 (get_function_part_constraint): Fix build with C++.
11299 (insert_into_field_list): Remove.
11300 (push_fields_onto_fieldstack): Properly merge fields.
11301 (create_variable_info_for): Split and simplify.
11302 (create_variable_info_for_1): New piece.
11303 (intra_create_variable_infos): Properly make restrict constraints
11306 2010-04-28 Richard Guenther <rguenther@suse.de>
11309 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
11311 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
11312 Jan Hubicka <hubicka@ucw.cz>
11314 * doc/invoke.texi (-Wsuggest-attribute=const,
11315 -Wsuggest-attribute=pure): Document.
11316 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
11317 (function_always_visible_to_compiler_p,
11318 suggest_attribute, warn_function_pure, warn_function_const):
11320 (check_call): Improve debug info.
11321 (analyze_function): Do not check availability.
11322 (add_new_function): Check availability.
11323 (propagate): Output warnings.
11324 (skip_function_for_local_pure_const): New function.
11325 (local_pure_const): Use it; output warnings.
11326 * common.opt (Wsuggest-attribute=const,
11327 Wsuggest-attribute=pure): New.
11329 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11331 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
11332 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
11333 or DW_CFA_def_cfa_offset{,_sf}.
11335 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11337 * tree.h: Fix truncated long macros.
11339 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
11341 * collect2.c (TARGET_64BIT): Redefine to target's default.
11342 * tlink.c: Likewise.
11343 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
11344 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
11345 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
11346 for underscoring __USER_LABEL_PREFIX__.
11347 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
11348 (SUB_LINK_ENTRY32): New.
11349 (SUB_LINK_ENTRY64): New.
11350 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11351 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11352 (SUB_LINK_ENTRY64): New.
11353 (SUB_LINK_ENTRY): New.
11354 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11355 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11356 x64 target is choosen.
11357 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11358 * configure: Regenerated.
11359 * configure.ac (leading-mingw64-underscores): Option added.
11361 2010-04-27 Jan Hubicka <jh@suse.cz>
11363 * doc/invoke.texi (-fipa-profile): Document.
11364 * opts.c (decode_options): Enable ipa-profile at -O1.
11365 * timevar.def (TV_IPA_PROFILE): Define.
11366 * common.opt (fipa-profile): Add.
11367 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11369 (cgraph_propagate_frequency): Handle only local ones.
11370 * tree-pass.h (pass_ipa_profile): Declare.
11371 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11372 (pass_ipa_profile): Use TV_IPA_PROFILE.
11373 * ipa.c (ipa_profile): New function.
11374 (gate_ipa_profile): Likewise.
11375 (pass_ipa_profile): New global variable.
11376 * passes.c (pass_ipa_profile): New.
11378 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
11380 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11382 2010-04-27 Martin Jambor <mjambor@suse.cz>
11384 PR middle-end/43812
11385 * ipa.c (dissolve_same_comdat_group_list): New function.
11386 (function_and_variable_visibility): Call
11387 dissolve_same_comdat_group_list when comdat group contains external or
11389 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11390 lists are circular and that they contain only DECL_ONE_ONLY nodes.
11392 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11394 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11395 (const_hash_1) <VECTOR_CST>: New case.
11396 (compare_constant) <VECTOR_CST>: Likewise.
11397 <ADDR_EXPR>: Deal with LABEL_REFs.
11398 (copy_constant) <VECTOR_CST>: New case.
11400 2010-04-27 Jan Hubicka <jh@suse.cz>
11402 * cgraph.c (cgraph_propagate_frequency): New function.
11403 * cgraph.h (cgraph_propagate_frequency): Declare.
11404 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11405 cgraph_propagate_frequency.
11407 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11409 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11411 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
11414 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11415 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11416 here to determine which regs to push and how much stack to reserve.
11418 2010-04-27 Jie Zhang <jie@codesourcery.com>
11420 * doc/gimple.texi (gimple_statement_with_ops): Remove
11421 addresses_taken field.
11422 (gimple_statement_with_memory_ops): Likewise.
11424 2010-04-27 Jan Hubicka <jh@suse.cz>
11426 * tree-inline.c (eni_inlining_weights): Remove.
11427 (estimate_num_insns): Special case more builtins.
11429 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
11432 * c-typeck.c (build_binary_op): Move forward check for comparison
11433 pointer with null pointer constant and adjust the diagnostic message.
11435 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
11438 * configure.ac (gcc_cv_as_section_has_align): Set if installed
11439 binutils supports extended .section directive needed by LTO, or
11440 warn if older binutils found.
11441 (LTO_BINARY_READER): New AC_SUBST'd variable.
11442 (LTO_USE_LIBELF): Likewise.
11443 * gcc/config.gcc (lto_binary_reader): New target-specific configure
11445 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11446 (LTO_USE_LIBELF): Likewise.
11447 * configure: Regenerate.
11449 * collect2.c (is_elf): Rename from this ...
11450 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11451 object files in addition to ELF-formatted ones.
11452 (scan_prog_file): Caller updated. Also allow for LTO info marker
11453 symbol to be prefixed or not by an extra underscore.
11455 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11456 * config/i386/winnt.c: Also #include lto-streamer.h
11457 (i386_pe_asm_named_section): Specify 1-byte section alignment for
11458 LTO named sections.
11459 (i386_pe_asm_output_aligned_decl_common): Add comment.
11460 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11462 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
11465 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11466 Add missing earlyclobber for second alternative.
11468 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
11470 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11471 bits for artificial defs at the top of the block.
11472 * fwprop.c (single_def_use_enter_block): Don't call it.
11474 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
11477 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11478 instead of "$gcc_cv_objdump -T".
11479 Use "-undefined dynamic_lookup" on darwin.
11480 * gcc/configure: Regenerate.
11482 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11485 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11487 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11489 * c-parser.c (struct c_token): Move location field up.
11490 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11491 (struct c_declspecs): Convert typespec_word, storage_class, and
11492 default_int_p into bitfields.
11493 (struct c_declarator): Move loc field up.
11495 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11497 * cfgloop.h (struct loop): Move can_be_parallel field up.
11498 * ipa-prop.h (struct ip_node_params): Move bitfields up.
11499 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11501 (struct iv_cand): Convert pos field into a bitfield.
11502 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11504 (struct _stmt_vec_info): Shuffle fields for better packing.
11506 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11508 * varasm.c (IN_NAMED_SECTION): Remove guard.
11509 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11510 (IN_NAMED_SECTION_P): ...this.
11511 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11512 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11514 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11516 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11517 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
11518 of shadowing it. Fix comments.
11520 2010-04-26 Jan Hubicka <jh@suse.cz>
11522 * cgraph.c (cgraph_create_node): Set node frequency to normal.
11523 (cgraph_clone_node): Copy function frequency.
11524 * cgraph.h (node_frequency): New enum
11525 (struct cgraph_node): Add.
11526 * final.c (rest_of_clean_state): Update.
11527 * lto-cgraph.c (lto_output_node): Output node frequency.
11528 (input_overwrite_node): Input node frequency.
11529 * tre-ssa-loop-ivopts (computation_cost): Update.
11530 * lto-streamer-out.c (output_function): Do not output function
11532 * predict.c (maybe_hot_frequency_p): Update and handle functions
11534 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11536 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11537 (compute_function_frequency): Set noreturn functions to be executed
11539 (choose_function_section): Update.
11540 * lto-streamer-in.c (input_function): Do not input function frequency.
11541 * function.c (allocate_struct_function): Do not initialize function
11543 * function.h (function_frequency): Remove.
11544 (struct function): Remove function frequency.
11545 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11546 (try_update): Update.
11547 * tree-inline.c (initialize_cfun): Do not update function frequency.
11548 * passes.c (pass_init_dump_file): Update.
11549 * i386.c (ix86_compute_frame_layout): Update.
11550 (ix86_pad_returns): Update.
11552 2010-04-26 Jie Zhang <jie@codesourcery.com>
11554 PR tree-optimization/43833
11555 * tree-vrp.c (range_int_cst_p): New.
11556 (range_int_cst_singleton_p): New.
11557 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11558 when both operands are constants. Use range_int_cst_p in
11561 2010-04-26 Jan Hubicka <jh@suse.cz>
11563 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11565 2010-04-26 Richard Guenther <rguenther@suse.de>
11568 * gimple.c (gimple_decl_printable_name): Deal gracefully
11569 with a NULL DECL_NAME.
11571 2010-04-26 Richard Guenther <rguenther@suse.de>
11574 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11575 if emitting debug information and it is either a function
11576 or a namespace decl.
11578 2010-04-26 Ira Rosen <irar@il.ibm.com>
11580 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11581 determine if the statement is vectorizable, and a macro to access it.
11582 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11583 Skip statements that can't be vectorized. If the analysis fails,
11584 mark the statement as unvectorizable if vectorizing basic block.
11585 (vect_compute_data_refs_alignment): Likewise.
11586 (vect_verify_datarefs_alignment): Skip statements marked as
11587 unvectorizable. Add print.
11588 (vect_analyze_group_access): Skip statements that can't be
11589 vectorized. If the analysis fails, mark the statement as
11590 unvectorizable if vectorizing basic block.
11591 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11592 * tree-vect-stmts.c (vectorizable_store): Fix the number of
11593 generated stmts for SLP.
11594 (new_stmt_vec_info): Initialize the new field.
11595 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11596 statements marked as unvectorizable.
11598 2010-04-25 Joseph Myers <joseph@codesourcery.com>
11600 * c-common.c (flag_isoc1x): New.
11601 (flag_isoc99): Update comment.
11602 * c-common.h (flag_isoc1x): New.
11603 (flag_isoc99): Update comment.
11604 * c-cppbuiltin.c (builtin_define_float_constants): Also define
11605 __<type>_DECIMAL_DIG__.
11606 * c-opts.c (set_std_c1x): New.
11607 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11608 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11609 * c.opt (-std=c1x, -std=gnu1x): New options.
11610 * doc/cpp.texi: Mention -std=c1x.
11611 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11612 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11613 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11614 * doc/standards.texi: Mention C1X.
11615 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11616 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11617 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11620 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
11622 * config/i386/gmon-sol2.c (_mcleanup): Change format string
11623 placeholder from 0x%x to %#x.
11624 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11625 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11626 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11627 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11628 * config/i386/i386.c (ix86_target_string): Ditto.
11629 (output_pic_addr_const): Ditto.
11630 (print_operand): Ditto.
11632 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
11634 * combine.c (find_split_point): Add third argument. Use it
11635 to find nested multiply-accumulate instructions. Adjust calls.
11636 (try_combine): Adjust call to find_split_point.
11638 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11640 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11642 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
11644 PR tree-optimization/41442
11645 * fold-const.c (merge_truthop_with_opposite_arm): New function.
11646 (fold_binary_loc): Call it.
11648 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11650 * toplev.c (general_init): Set default for fdiagnostics-show-option.
11651 * opts.c (common_handle_option): Allow disabling it.
11652 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11654 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
11656 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11657 between modes if both types are integral.
11659 2010-04-23 Richard Guenther <rguenther@suse.de>
11661 PR tree-optimization/43572
11662 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11664 2010-04-23 Richard Guenther <rguenther@suse.de>
11667 * tree-inline.c (tree_can_inline_p): Also check compatibility
11670 2010-04-23 Martin Jambor <mjambor@suse.cz>
11672 PR tree-optimization/43846
11673 * tree-sra.c (struct access): New flag grp_assignment_read.
11674 (build_accesses_from_assign): Set grp_assignment_read.
11675 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11676 (enum mark_read_status): New type.
11677 (analyze_access_subtree): Propagate grp_assignment_read, create
11678 accesses also if both direct_read and root->grp_assignment_read.
11680 2010-04-23 Martin Jambor <mjambor@suse.cz>
11682 PR middle-end/43835
11683 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11684 function does not have type attributes.
11686 2010-04-23 Richard Guenther <rguenther@suse.de>
11689 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11692 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11694 * sese.h (create_if_region_on_edge): Remove.
11696 * sese.c (create_if_region_on_edge): Make static.
11698 * tree-inline.c: Do not include ggc.h.
11700 * expr.c: Do not include ggc.h.
11702 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11705 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
11708 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11709 in the middle of insns for casesi_worker_2.
11711 2010-04-22 David Edelsohn <edelsohn@gnu.org>
11713 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11715 2010-04-22 Ira Rosen <irar@il.ibm.com>
11717 PR tree-optimization/43842
11718 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11719 loop unrolling in update of exit phis. Fix comment.
11720 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11721 least two reduction statements in the loop before starting SLP
11724 2010-04-22 Nick Clifton <nickc@redhat.com>
11726 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11728 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
11730 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11731 to simplify a + ~a.
11733 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11735 * tree-parloops.c (loop_parallel_p): New argument
11736 parloop_obstack. Pass it down.
11737 (parallelize_loops): New variable parloop_obstack. Initialize it,
11738 pass it down, free it.
11740 * tree-loop-linear.c (linear_transform_loops): Pass down
11743 * tree-data-ref.h (lambda_compute_access_matrices): New argument
11744 of type struct obstack *.
11746 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11747 scratch_obstack. Initialize it, pass down, free it.
11749 * lambda.h (lambda_loop_new): Remove.
11750 (lambda_matrix_new, lambda_matrix_inverse)
11751 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11752 argument of type struct obstack *.
11754 * lambda-trans.c (lambda_trans_matrix_new): New argument
11755 lambda_obstack. Pass it down, use obstack allocation for ret.
11756 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
11759 * lambda-mat.c (lambda_matrix_get_column)
11760 (lambda_matrix_project_to_null): Remove.
11761 (lambda_matrix_new): New argument lambda_obstack. Use obstack
11762 allocation for mat.
11763 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11766 * lambda-code.c (lambda_loop_new): New function.
11767 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11768 (lambda_compute_auxillary_space, lambda_compute_target_space)
11769 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11770 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11771 (build_access_matrix): New argument lambda_obstack. Use obstack
11773 (lambda_compute_step_signs, lambda_compute_access_matrices): New
11774 argument lambda_obstack. Pass it down.
11776 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11778 * optabs.h (expand_widening_mult): Declare.
11780 2010-04-22 Richard Guenther <rguenther@suse.de>
11782 PR tree-optimization/43845
11783 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11784 lookup the CALL_EXPR function and arguments.
11786 2010-04-22 Nick Clifton <nickc@redhat.com>
11788 * config/stormy16/stormy16.c
11789 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11790 * config/stormy16/stormy16.h: Tidy up formatting.
11791 (DONT_USE_BUILTIN_SETJMP): Remove definition.
11792 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11793 (ineqbranchsi): Delete pattern.
11794 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11795 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11796 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11797 stormy16-lib2-ucmpsi2.c.
11799 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11801 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11802 df_simulate_find_noclobber_defs as appropriate. Keep track of an
11803 extra set merge_set_noclobber, and use it to relax the final test
11805 * df.h (df_simulate_find_noclobber_defs): Declare.
11806 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11808 (df_simulate_find_noclobber_defs): New function.
11810 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
11812 * config/i386/i386.md: Use {} around multi-line preparation statements.
11814 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11816 * c-tree.h (push_init_level, pop_init_level, set_init_index)
11817 (process_init_element): New argument of type struct obstack *.
11819 * c-typeck.c (push_init_level, pop_init_level, set_designator)
11820 (set_init_index, set_init_label, set_nonincremental_init)
11821 (set_nonincremental_init_from_string, find_init_member)
11822 (output_init_element, output_pending_init_elements)
11823 (process_init_element): New argument braced_init_obstack. Pass it
11825 (push_range_stack, add_pending_init): New argument
11826 braced_init_obstack. Use obstack allocation.
11828 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11829 braced_init_obstack. Pass it down.
11830 (c_parser_braced_init): New variables ret, braced_init_obstack.
11831 Initialize obstack, pass it down and finally free it.
11833 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11835 PR middle-end/29274
11836 * tree-pass.h (pass_optimize_widening_mul): Declare.
11837 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11838 gate_optimize_widening_mul): New static functions.
11839 (pass_optimize_widening_mul): New.
11840 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11841 <case MULT_EXPR>: Remove support for widening multiplies.
11842 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11843 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11844 simplify_gen_unary rather than directly building extensions.
11845 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11847 * expmed.c (expand_widening_mult): New function.
11848 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11850 2010-04-21 Jan Hubicka <jh@suse.cz>
11852 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11853 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11854 * lto-wpa-fixup.c: Remove.
11855 * Makefile.in (lto-wpa-fixup.o): Remove.
11856 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11857 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11858 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11860 2010-04-21 Jan Hubicka <jh@suse.cz>
11862 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11863 add write_optimization_summary, read_optimization_summary.
11864 (ipa_write_summaries_of_cgraph_node_set): Remove.
11865 (ipa_write_optimization_summaries): Declare.
11866 (ipa_read_optimization_summaries): Declare.
11867 * ipa-cp.c (pass_ipa_cp): Update.
11868 * ipa-reference.c (pass_ipa_reference): Update.
11869 * ipa-pure-const.c (pass_ipa_pure_const): Update.
11870 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11872 * ipa-inline.c (pass_ipa_inline): Update.
11873 * ipa.c (pass_ipa_whole_program): Update.
11874 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11875 * passes.c (ipa_write_summaries_1): Do not test wpa.
11876 (ipa_write_optimization_summaries_1): New.
11877 (ipa_write_optimization_summaries): New.
11878 (ipa_read_summaries): Do not test ltrans.
11879 (ipa_read_optimization_summaries_1): New.
11880 (ipa_read_optimization_summaries): New.
11882 2010-04-21 Jan Hubicka <jh@suse.cz>
11884 * lto-cgraph.c (lto_output_node): Do not output comdat groups
11885 for boundary nodes.
11886 (output_cgraph): Do not arrange comdat groups for boundary nodes.
11888 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11891 * dwarf2out.c (add_name_and_src_coords_attributes): Add
11892 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11894 2010-04-21 Jan Hubicka <jh@suse.cz>
11896 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11898 2010-04-21 Jan Hubicka <jh@suse.cz>
11900 * varpool.c (decide_is_variable_needed): Variable is always needed
11903 2010-04-21 Jan Hubicka <jh@suse.cz>
11905 * opts.c (decode_options): Enable pure-const pass for whopr.
11907 2010-04-21 Jan Hubicka <jh@suse.cz>
11909 * cgraph.c (dump_cgraph_node): Dump also assembler name.
11910 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11912 (cgraph_decide_inlining): Do not expect callee to be removed in all
11915 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
11917 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11919 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11921 * config/i386/i386.md (x86_shrd): Add athlon_decode and
11922 amdfam10_decode attributes.
11924 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11926 PR middle-end/43570
11927 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11928 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11929 (lower_copyprivate_clauses): Use private var in outer
11930 context instead of original var. Make sure the types
11931 are correct for VLAs.
11933 2010-04-21 Richard Guenther <rguenther@suse.de>
11935 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11936 to non-pointer objects.
11938 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11940 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
11941 last chain entry if it starts with the still current label.
11942 (add_location_or_const_value_attribute): Check that
11943 loc_list->first->next is NULL instead of comparing ->first with ->last.
11944 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11945 to add_var_loc_to_decl.
11947 * dwarf2out.c (output_call_frame_info): For dw_cie_version
11948 >= 4 add also address size and segment size fields into CIE header.
11950 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11951 long as address size is the same as sizeof (void *) and
11953 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
11954 address size or segment size is unexpected, return DW_EH_PE_omit.
11955 (classify_object_over_fdes): If get_cie_encoding returned
11956 DW_EH_PE_omit, return -1.
11957 (init_object): If classify_object_over_fdes returned -1,
11958 pretend there were no FDEs at all.
11960 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11962 * config/i386/i386.md (bswap<mode>2): Macroize expander from
11963 bswap{si,di}2 using SWI48 mode iterator.
11964 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11965 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
11966 set modrm attribute of bswap insn to 0 and remove length attribute.
11967 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11968 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
11969 set mode attribute to <MODE> and remove length attribute.
11971 2010-04-20 James E. Wilson <wilson@codesourcery.com>
11973 PR rtl-optimization/43520
11974 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11975 zero available registers.
11977 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11979 * builtins.c (fold_builtin_cproj): Fold more cases.
11981 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11983 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11984 (fold_builtin_1): Fold builtin cproj.
11985 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11986 Use ATTR_CONST_NOTHROW_LIST.
11988 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
11990 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11991 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
11992 ffsi2_no_cmove for !TARGET_CMOVE.
11993 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
11994 (ffssi2): Remove expander.
11995 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11997 (ctz<mode>2): Ditto from ctz{si,di}2.
11998 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12000 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12003 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12005 * dwarf2out.c (AT_linkage_name): Define.
12006 (clone_as_declaration): Handle DW_AT_linkage_name.
12007 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12008 of DW_AT_MIPS_linkage_name.
12009 (move_linkage_attr): Likewise.
12010 (dwarf2out_finish): Likewise.
12012 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
12014 PR middle-end/41952
12015 * fold-const.c (fold_comparison): New folding rule.
12017 2010-04-20 Anatoly Sokolov <aesok@post.ru>
12019 * double-int.h (double_int_setbit): Declare.
12020 * double-int.c (double_int_setbit): New function.
12021 * rtl.h (immed_double_int_const): Declare.
12022 * emit-rtl.c (immed_double_int_const): New function.
12023 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12024 and immed_double_int_const functions.
12025 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12026 expand_copysign_bit): (Ditto.).
12027 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12028 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12029 * dojump.c (prefer_and_bit_test): (Ditto.).
12030 * expr.c (convert_modes, reduce_to_bit_field_precision,
12031 const_vector_from_tree): (Ditto.).
12032 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12034 2010-04-20 Jan Hubicka <jh@suse.cz>
12036 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12037 (dump_cgraph_node): Dump new flags.
12038 * cgraph.h (struct cgraph_node): Add flags
12039 reachable_from_other_partition and in_other_partition.
12040 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12041 other partition can not be removed.
12042 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12043 the other partition must be output; silence sanity checking on
12044 leaking functions bodies from other paritition.
12045 * lto-cgraph.c (reachable_from_other_partition_p): New function.
12046 (lto_output_node): Output new flags; do not sanity check that inline
12047 clones are output; drop lto_forced_extern_inline_p code; do not mock
12048 visibility flags at partition boundaries.
12049 (add_node_to): New function.
12050 (output_cgraph): Use it to sort functions so masters appear before
12052 (input_overwrite_node): Input new flags.
12053 * passes.c (ipa_write_summaries): Do not call
12054 lto_new_extern_inline_states.
12055 * lto-section-out.c (forced_extern_inline,
12056 lto_new_extern_inline_states lto_delete_extern_inline_states,
12057 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12058 * lto-streamer.h (lto_new_extern_inline_states,
12059 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12060 lto_forced_extern_inline_p): Kill.
12062 2010-04-20 Richard Guenther <rguenther@suse.de>
12064 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12065 from vars that can have pointers.
12066 (process_constraint): Dump useless constraints.
12068 2010-04-20 Richard Guenther <rguenther@suse.de>
12070 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12071 (dump_sa_points_to_info): Remove asserts.
12072 (init_base_vars): nothing_id isn't an escape point nor does it
12075 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12077 * tree.h (TYPE_REF_IS_RVALUE): Define.
12078 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12079 should_move_die_to_comdat, prune_unused_types_walk): Handle
12080 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12081 (modified_type_die, gen_reference_type_die): Emit
12082 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12083 if TYPE_REF_IS_RVALUE and -gdwarf-4.
12085 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12088 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12089 calls for -fpic -m31 if they have been sibcall optimized.
12091 2010-04-19 James E. Wilson <wilson@codesourcery.com>
12093 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12094 ar.lc fixed and call-used.
12096 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12098 2010-04-19 Jan Hubicka <jh@suse.cz>
12100 * opts.c (decode_options): Disable whpr incompatible passes.
12101 * lto/lto.c (lto_1_to_1_map): Skip clones.
12102 (read_cgraph_and_symbols): Do not mark everything as needed.
12103 (do_whole_program_analysis): Do map only after optimizing;
12104 set proper cgraph_state; use passmanager.
12106 2010-04-19 DJ Delorie <dj@redhat.com>
12108 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12109 POINTER_PLUS_EXPR and fix them.
12111 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
12113 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12114 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12115 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12116 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12117 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12118 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12119 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12120 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12121 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12122 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12123 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12125 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
12127 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12128 (check_cond_move_block): Likewise.
12129 (cond_move_process_if_block): Likewise.
12130 (noce_find_if_block): Improve formatting.
12131 (find_if_header): Pass 0 to memset and tweak conditions.
12132 (cond_exec_find_if_block): Fix long lines and tweak conditions.
12134 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12136 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12139 PR middle-end/43337
12140 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12141 with non-local decl doesn't need chain.
12143 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
12145 * ira-color.c (allocno_reload_assign): Avoid accumulating
12146 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12148 2010-04-19 Martin Jambor <mjambor@suse.cz>
12150 * gimple.h (create_tmp_reg): Declare.
12151 * gimplify.c (create_tmp_reg): New function.
12152 (gimplify_return_expr): Use create_tmp_reg.
12153 (gimplify_omp_atomic): Likewise.
12154 (gimple_regimplify_operands): Likewise.
12155 * tree-dfa.c (make_rename_temp): Likewise.
12156 * tree-predcom.c (predcom_tmp_var): Likewise.
12157 (reassociate_to_the_same_stmt): Likewise.
12158 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12159 (get_replaced_param_substitute): Likewise.
12160 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12161 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12162 * tree-ssa-pre.c (get_representative_for): Likewise.
12163 (create_expression_by_pieces): Likewise.
12164 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12165 (create_tailcall_accumulator): Likewise.
12167 2010-04-19 Martin Jambor <mjambor@suse.cz>
12169 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12171 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12173 2010-04-19 Richard Guenther <rguenther@suse.de>
12175 PR tree-optimization/43796
12176 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12177 from SCEV in the lattice.
12178 (vrp_visit_phi_node): Dump change.
12180 2010-04-19 Richard Guenther <rguenther@suse.de>
12182 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12183 * configure: Re-generated.
12185 2010-04-19 Richard Guenther <rguenther@suse.de>
12187 PR tree-optimization/43783
12188 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12189 constant ARRAY_REF operands two and three if possible.
12191 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
12194 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12196 2010-04-19 Jie Zhang <jie@codesourcery.com>
12199 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12201 2010-04-19 Ira Rosen <irar@il.ibm.com>
12203 PR tree-optimization/37027
12204 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12205 and macro to access it.
12206 (vectorizable_reduction): Add argument.
12207 (vect_get_slp_defs): Likewise.
12208 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12209 statements for possible use in SLP.
12210 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12211 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12212 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12214 (vectorizable_reduction): Likewise.
12215 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12217 (vectorizable_type_demotion, vectorizable_type_promotion,
12218 vectorizable_store): Likewise.
12219 (vect_analyze_stmt): Update call to vectorizable_reduction.
12220 (vect_transform_stmt): Likewise.
12221 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12222 (vect_build_slp_tree): Fix indentation. Check that there are no loads
12223 from different interleaving chains in same node.
12224 (vect_slp_rearrange_stmts): New function.
12225 (vect_supported_load_permutation_p): Allow load permutations for
12226 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12227 inside SLP nodes if necessary.
12228 (vect_analyze_slp_instance): Handle reductions.
12229 (vect_analyze_slp): Try to build SLP instances originating from groups
12231 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12232 (vect_get_constant_vectors): Create initial vectors for reductions
12233 according to reduction code. Add new argument.
12234 (vect_get_slp_defs): Add new argument, pass it to
12235 vect_get_constant_vectors.
12236 (vect_schedule_slp_instance): Remove SLP tree root statements.
12238 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12240 * tree.h (ENUM_IS_SCOPED): Define.
12241 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12242 for ENUM_IS_SCOPED enums.
12244 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
12246 * fold-const.c (fold_comparison): Use ssizetype.
12247 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12248 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12249 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12250 * tree-object-size.c (compute_object_sizes): Use size_type_node.
12252 * tree.h (initialize_sizetypes): Remove parameter.
12253 (build_common_tree_nodes): Remove second parameter.
12254 * stor-layout.c (initialize_sizetypes): Remove parameter.
12255 Always create an unsigned type.
12256 (set_sizetype): Assert that the passed type is unsigned and simplify.
12257 * tree.c (build_common_tree_nodes): Remove second parameter.
12258 Adjust call to initialize_sizetypes.
12259 * c-decl.c (c_init_decl_processing): Remove second argument in call to
12260 build_common_tree_nodes.
12262 2010-04-18 Matthias Klose <doko@ubuntu.com>
12264 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12266 2010-04-18 Ira Rosen <irar@il.ibm.com>
12268 PR tree-optimization/43771
12269 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
12270 load permutation doesn't have gaps.
12272 2010-04-18 Jan Hubicka <jh@suse.cz>
12274 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
12275 (sse_prologue_save_insn expander): Use new pattern.
12276 (sse_prologue_save_insn1): New pattern and splitter.
12277 (sse_prologue_save_insn): Update to deal also with 64bit aligned
12279 * i386.c (setup_incoming_varargs_64): Do not compute jump
12281 (ix86_gimplify_va_arg): Update alignment needed.
12282 (ix86_local_alignment): Do not align all local arrays to 128bit.
12284 2010-04-17 Jan Hubicka <jh@suse.cz>
12286 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
12288 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12290 * arm.md (negdi2): Remove redundant code to force values into a
12293 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12295 * arm/bpabi.S: Add EABI alignment attributes to objects.
12296 * arm/bpabi-v6m.S: Likewise.
12297 * arm/crti.asm: Likewise.
12298 * arm/crtn.asm: Likewise.
12299 * arm/lib1funcs.asm: Likewise.
12300 * arm/libunwind.S: Likewise.
12302 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12304 * arm-protos.h (tune_params): New structure.
12305 * arm.c (current_tune): New variable.
12306 (arm_constant_limit): Delete.
12307 (struct processors): Add pointer to the tune parameters.
12308 (arm_slowmul_tune): New tuning option.
12309 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
12310 (all_cores): Adjust to pick up the tuning model.
12311 (arm_constant_limit): New function.
12312 (arm_override_options): Select the appropriate tuning model. Delete
12313 initialization of arm_const_limit.
12314 (arm_split_constant): Use the new constant-limit model.
12315 (arm_rtx_costs): Pick up the current tuning model.
12316 * arm.md (is_strongarm, is_xscale): Delete.
12317 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
12318 for Xscale variant architectures.
12319 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
12321 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12323 * config/arm/arm.c (arm_gen_constant): Remove unused variable
12325 (arm_rtx_costs_1): Remove unused variable extra_cost.
12326 (arm_unwind_emit_set): Use variable offset.
12327 (thumb1_output_casesi): Remove unused variable flags.
12329 2010-04-16 Jeff Law <law@redhat.com>
12331 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
12332 needing assignment rather than doing a two-phase assignment. Remove
12333 unused variable 'm'.
12335 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12338 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
12340 2010-04-16 Doug Kwan <dougkwan@google.com>
12342 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
12343 (next_operand_entry_id): New static variable.
12344 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
12345 (add_to_ops_vec): Assigned unique ID to operand entry.
12346 (struct oecount_s): New field ID.
12347 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
12348 (undistribute_ops_list): Assign unique IDs to oecounts.
12349 (init_reassoc): reset next_operand_entry_id.
12351 2010-04-16 Doug Kwan <dougkwan@google.com>
12353 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12354 missing left parenthesis.
12356 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
12358 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12359 *btdi_rex64 using SWI48 mode iterator.
12360 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12361 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12362 *jcc_btdi_mask_rex64.
12364 2010-04-16 Anatoly Sokolov <aesok@post.ru>
12366 * double-int.h (tree_to_double_int): Convert to macro.
12367 * double-int.c (tree_to_double_int): Remove.
12369 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12372 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12373 with want_address 2 and in case a single element list might be
12374 possible, call it again with want_address 0.
12376 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12378 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12379 case 'W' print operands for HI mode.
12380 * config/h8300/h8300.h (Y0, Y2) : New constraints.
12381 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12382 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12383 * config/h8300/predicate.md (bit_register_indirect_operand): New.
12385 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12387 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12388 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12389 #xx:3 and #xx:4 mode.
12391 * config/h8300/h8300.md (inverted load with HImode dest): Add
12392 support for H8300SX.
12394 * config/h8300/predicate.md (bit_operand): Allow immediate values that
12395 satisfy 'U' constraint.
12397 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12399 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12400 * configure: Regenerate.
12401 * config.in: Regenerate.
12402 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12405 2010-04-16 Richard Guenther <rguenther@suse.de>
12407 * tree.h (struct tree_decl_minimal): Move pt_uid ...
12408 (struct tree_decl_common): ... here.
12409 (DECL_PT_UID): Adjust.
12410 (SET_DECL_PT_UID): Likewise.
12411 (DECL_PT_UID_SET_P): Likewise.
12413 2010-04-16 Richard Guenther <rguenther@suse.de>
12415 PR tree-optimization/43572
12416 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12417 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12418 * tree-flow.h (is_call_clobbered): Remove.
12419 * tree-flow-inline.h (is_call_clobbered): Likewise.
12420 * tree-dfa.c (dump_variable): Do not dump call clobber state.
12421 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12422 (execute_return_slot_opt): Adjust.
12423 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12424 check for call clobbered vars here.
12425 (find_tail_calls): Move tailcall verification to the
12428 2010-04-16 Diego Novillo <dnovillo@google.com>
12430 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12432 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12435 * config/arm/arm.md (cbranchqi4): New pattern.
12436 * config/arm/predicates.md (const0_operand,
12437 cbranchqi4_comparison_operator): New predicates.
12439 2010-04-16 Richard Guenther <rguenther@suse.de>
12441 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12442 (dump_gimple_stmt): Likewise.
12444 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12446 * recog.h (struct recog_data): New field is_operator.
12447 (struct insn_operand_data): New field is_operator.
12448 * recog.c (extract_insn): Set recog_data.is_operator.
12449 * genoutput.c (output_operand_data): Emit code to set the
12451 * reload.c (find_reloads): Use it rather than testing for an
12452 empty constraint string.
12455 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12456 If the previous insn is a cbranchsi4_insn with the same arguments,
12457 omit the compare instruction.
12459 * config/arm/arm.md (addsi3_cbranch): If destination is a high
12460 register, inputs must be low registers and we need a low register
12461 scratch. Handle alternative 2 like alternative 3.
12463 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12465 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12466 don't call get_addr on both. If one expression is a VALUE and
12467 the other a REG, check VALUE's locs if the REG isn't among them.
12469 2010-04-16 Christian Bruel <christian.bruel@st.com>
12471 * config/sh/sh.h (sh_frame_pointer_required): New function.
12472 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12473 (flag_omit_frame_pointer) Set.
12474 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12475 (rounded_frame_size): Adjust size with outgoing_args_size.
12476 (sh_set_return_address): Must return from stack pointer.
12477 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12478 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12479 (ACCUMULATE_OUTGOING_ARGS): Define.
12480 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12481 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12483 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12486 * config/sh/sh.c (sh_legitimize_reload_address): Use
12487 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12488 Remove a unneeded check for offset_base.
12490 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
12492 * configure: Regenerated.
12494 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12496 * config/s390/s390.c (s390_call_save_register_used): Switch back
12497 to HARD_REGNO_NREGS.
12499 2010-04-15 Richard Guenther <rguenther@suse.de>
12501 * alias.c (alias_set_subset_of): Handle alias-set zero
12504 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
12505 Julian Brown <julian@codesourcery.com>
12507 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12508 alternatives according to use of high and low regs.
12509 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12510 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12511 optimizing for size on Thumb-2.
12513 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
12515 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12517 2010-04-15 Richard Guenther <rguenther@suse.de>
12519 * tree-ssa-structalias.c (struct variable_info): Add
12521 (new_var_info): Initialize it.
12522 (dump_constraints): Support printing last added constraints.
12523 (debug_constraints): Adjust.
12524 (dump_constraint_graph): Likewise.
12525 (make_heapvar_for): Check for NULL cfun.
12526 (get_function_part_constraint): New function.
12527 (get_fi_for_callee): Likewise.
12528 (find_func_aliases): Properly implement IPA PTA constraints.
12529 (process_ipa_clobber): New function.
12530 (find_func_clobbers): Likewise.
12531 (insert_into_field_list_sorted): Remove.
12532 (create_function_info_for): Properly allocate vars for IPA mode.
12533 Do not use insert_into_field_list_sorted.
12534 (create_variable_info_for): Properly generate constraints for
12535 global vars in IPA mode.
12536 (dump_solution_for_var): Always dump the solution.
12537 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12538 (find_what_var_points_to): Adjust.
12539 (pt_solution_set): Change.
12540 (pt_solution_ior_into): New function.
12541 (pt_solution_empty_p): Export.
12542 (pt_solution_includes_global): Adjust.
12543 (pt_solution_includes_1): Likewise.
12544 (pt_solutions_intersect_1): Likewise.
12545 (dump_sa_points_to_info): Check some invariants.
12546 (solve_constraints): Move constraint dumping ...
12547 (compute_points_to_sets): ... here.
12548 (ipa_pta_execute): ... and here.
12549 (compute_may_aliases): Do not re-compute points-to info
12550 locally if IPA info is available.
12551 (ipa_escaped_pt): New global var.
12552 (ipa_pta_execute): Properly implement IPA PTA.
12553 * tree-into-ssa.c (dump_decl_set): Support dumping
12554 decls not in referenced-vars.
12555 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12556 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12557 (dump_points_to_solution): Likewise.
12558 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12559 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12560 (remap_gimple_stmt): Reset call clobber/use information if necessary.
12561 (copy_decl_to_var): Copy DECL_PT_UID.
12562 (copy_result_decl_to_var): Likewise.
12563 * tree.c (make_node_stat): Initialize DECL_PT_UID.
12564 (copy_node_stat): Copy it.
12565 * tree.h (DECL_PT_UID): New macro.
12566 (SET_DECL_PT_UID): Likewise.
12567 (DECL_PT_UID_SET_P): Likewise.
12568 (struct tree_decl_minimal): Add pt_uid member.
12569 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12570 (pt_solution_empty_p): Declare.
12571 (pt_solution_set): Adjust.
12572 (ipa_escaped_pt): Declare.
12573 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12574 * gimple-pretty-print.c (pp_points_to_solution): New function.
12575 (dump_gimple_call): Dump call clobber/use information.
12576 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12577 * tree-pass.h (TDF_ALIAS): New dump option.
12578 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12579 * doc/invoke.texi (-fipa-pta): Update documentation.
12581 2010-04-15 Richard Guenther <rguenther@suse.de>
12583 * Makefile.in (OBJS-common): Add gimple-fold.o.
12584 (gimple-fold.o): New rule.
12585 * tree.h (maybe_fold_offset_to_reference,
12586 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12588 * gimple.h: ... here.
12589 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12590 may_propagate_address_into_dereference): Move prototypes ...
12591 * gimple.h: ... here.
12592 * tree-ssa-ccp.c (get_symbol_constant_value,
12593 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12594 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12595 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12596 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12597 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12598 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12599 gimplify_and_update_call_from_tree): Move ...
12600 * gimple-fold.c: ... here. New file.
12601 (ccp_fold_builtin): Rename to ...
12602 (gimple_fold_builtin): ... this.
12603 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12605 2010-04-15 Richard Guenther <rguenther@suse.de>
12607 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12608 fit_double_type, force_fit_type_double, add_double_with_sign,
12609 neg_double, mul_double_with_sign, lshift_double, rshift_double,
12610 lrotate_double, rrotate_double, div_and_round_double): Move ...
12611 * double-int.c: ... here.
12612 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12613 add_double, neg_double, mul_double_with_sign, mul_double,
12614 lshift_double, rshift_double, lrotate_double, rrotate_double,
12615 div_and_round_double): Move prototypes ...
12616 * double-int.h: ... here.
12618 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
12621 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
12622 matching constraints to ensure inputs match the output.
12624 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12627 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12628 in an input-only operand.
12630 2010-04-15 Anatoly Sokolov <aesok@post.ru>
12632 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12633 (double_int_not, double_int_lshift, double_int_rshift): Declare.
12634 (double_int_negative_p): Convert to static inline function.
12635 * double-int.c (double_int_lshift, double_int_lshift): New functions.
12636 (double_int_negative_p): Remove.
12637 * tree.h (lshift_double, rshift_double):
12638 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12639 * fold-const.c (fold_convert_const_int_from_real,
12640 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12641 (lshift_double): Change type of arith argument to bool.
12642 (rshift_double): Change type of arith argument to bool. Correct
12644 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12646 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
12649 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12650 at the start and end of the then/else blocks, and omit them from the
12652 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
12653 argument; all callers changed. Pass zero to old_insns_match_p instead.
12654 (flow_find_head_matching_sequence): New function.
12655 (old_insns_match_p): Check REG_EH_REGION notes for calls.
12656 * basic-block.h (flow_find_cross_jump,
12657 flow_find_head_matching_sequence): Declare functions.
12659 2010-04-14 Jason Merrill <jason@redhat.com>
12662 * c-common.c (attribute_takes_identifier_p): New fn.
12663 * c-common.h: Declare it.
12665 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12667 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12668 splitter condition.
12669 (*udivmod<mode>4): Ditto.
12671 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12673 * config/i386/i386.md (maxmin_int): Rename code attribute from
12674 maxminiprefix and update all users.
12675 (maxmin_float): Ditto from maxminfprefix.
12676 (logic): Ditto from logicprefix.
12677 (absneg_mnemonic): Ditto from absnegprefix.
12678 * config/i386/mmx.md: Update all users of maxminiprefix,
12679 maxminfprefix and logicprefix for rename.
12680 * config/i386/sse.md: Ditto.
12681 * config/i386/sync.md (sync_<code><mode>): Update for
12682 logicprefix rename.
12684 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12687 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12688 warnings converted to errors.
12690 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12692 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12693 used insn_type variable.
12694 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12695 to avoid set-but-not-used warning.
12697 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12699 * df-core.c (df_ref_debug): Change format string placeholder
12701 * dwarf2asm.c (dw2_asm_output_data_raw,
12702 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12703 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12704 * dwarf2out.c (output_cfi, output_cfi_directive,
12705 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12706 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12708 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12709 * print-rtl.c (print_rtx): Ditto.
12711 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12713 PR middle-end/42694
12714 * builtins.c (expand_builtin_pow_root): New function to expand pow
12715 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12716 series of sqrt and cbrt calls under -ffast-math.
12717 (expand_builtin_pow): Call it.
12719 2010-04-14 Michael Matz <matz@suse.de>
12721 PR tree-optimization/42963
12722 * tree-cfg.c (touched_switch_bbs): New static variable.
12723 (group_case_labels_stmt): New function broken out from ...
12724 (group_case_labels): ... here, use the above.
12725 (start_recording_case_labels): Allocate touched_switch_bbs.
12726 (end_recording_case_labels): Deallocate it, call
12727 group_case_labels_stmt.
12728 (gimple_redirect_edge_and_branch): Remember index of affected BB.
12730 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12732 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12733 from insn template.
12735 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12737 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12739 2010-04-13 Jan Hubicka <jh@suse.cz>
12741 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12742 of optimized out static functions.
12743 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12744 cost computation. Also sanity check for overflows.
12745 (update_caller_keys): Update cgraph_edge_badness call; properly
12746 update fibheap and sanity check that it is up to date.
12747 (add_new_edges_to_heap): Update cgraph_edge_badness.
12748 (cgraph_decide_inlining_of_small_function): Likewise;
12749 add sanity checking that badness in heap is up to date;
12750 improve dumping of reason; Update badness of calls to the
12751 offline copy of function currently inlined; dump badness
12752 of functions not inlined because of unit growth limits.
12754 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12756 PR middle-end/32628
12757 * c-common.c (pointer_int_sum): Disregard overflow that occured only
12758 because of sign-extension change when converting to sizetype here...
12759 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12761 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12762 the folding to constants. Remove redundant final conversion.
12763 (fold_binary) <associate>: Do not associate if the re-association of
12764 constants alone overflows.
12765 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12766 to the end of the list.
12767 (multiple_of_p) <COND_EXPR>: New case.
12769 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12771 * opt-functions.awk (opt_sanitized_name): New.
12773 * optc-gen.awk: Use it
12774 * opth-gen.awk: Use it.
12776 2010-04-13 Martin Jambor <mjambor@suse.cz>
12778 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12779 (sra_modify_assign): Delete stmts loading dead data even if racc has no
12780 children. Call replace_uses_with_default_def_ssa_name to handle
12783 2010-04-13 Michael Matz <matz@suse.de>
12785 PR middle-end/43730
12786 * builtins.c (expand_builtin_interclass_mathfn): Also create
12787 a register if the predicate doesn't match.
12789 2010-04-13 Diego Novillo <dnovillo@google.com>
12791 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12792 * c-pch.c: Include timevar.h.
12793 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12794 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12795 * ggc-common.c: Include timevar.h.
12796 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12797 * timevar.def (TV_PCH_SAVE): Define.
12798 (TV_PCH_CPP_SAVE): Define.
12799 (TV_PCH_PTR_REALLOC): Define.
12800 (TV_PCH_PTR_SORT): Define.
12801 (TV_PCH_RESTORE): Define.
12802 (TV_PCH_CPP_RESTORE): Define.
12804 2010-04-13 Michael Matz <matz@suse.de>
12806 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12808 (can_reassociate_p): New function.
12809 (break_up_subtract_bb, reassociate_bb): Use it.
12811 2010-04-13 Richard Guenther <rguenther@suse.de>
12814 * builtins.c (c_readstr): Fix assert.
12816 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
12818 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12819 when generating cltd insn.
12821 (*ashl<mode>3_1): Remove special handling for register operand 2.
12822 (*ashlsi3_1_zext): Ditto.
12823 (*ashlhi3_1): Ditto.
12824 (*ashlhi3_1_lea): Ditto.
12825 (*ashlqi3_1): Ditto.
12826 (*ashlqi3_1_lea): Ditto.
12827 (*<shiftrt_insn><mode>3_1): Ditto.
12828 (*<shiftrt_insn>si3_1_zext): Ditto.
12829 (*<shiftrt_insn>qi3_1_slp): Ditto.
12830 (*<rotate_insn><mode>3_1): Ditto.
12831 (*<rotate_insn>si3_1_zext): Ditto.
12832 (*<rotate_insn>qi3_1_slp): Ditto.
12834 2010-04-13 Richard Guenther <rguenther@suse.de>
12836 * tree-ssa-structalias.c (callused_id): Remove.
12837 (call_stmt_vars): New.
12838 (get_call_vi): Likewise.
12839 (lookup_call_use_vi): Likewise.
12840 (lookup_call_clobber_vi): Likewise.
12841 (get_call_use_vi): Likewise.
12842 (get_call_clobber_vi): Likewise.
12843 (make_transitive_closure_constraints): Likewise.
12844 (handle_const_call): Adjust to do per-call call-used handling.
12845 (handle_pure_call): Likewise.
12846 (find_what_var_points_to): Remove general callused handling.
12847 (init_base_vars): Likewise.
12848 (init_alias_vars): Initialize call_stmt_vars.
12849 (compute_points_to_sets): Process call-used and call-clobbered
12850 vars for call statements.
12851 (delete_points_to_sets): Free call_stmt_vars.
12853 2010-04-13 Richard Guenther <rguenther@suse.de>
12855 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12856 Only add RW dependence for dependence distance zero.
12857 Adjust maximal vectorization factor according to dependences.
12858 Move alignment handling ...
12859 (vect_find_same_alignment_drs): ... here. New function.
12860 (vect_analyze_data_ref_dependences): Adjust.
12861 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12862 (vect_analyze_data_refs): Adjust minimal vectorization factor
12863 according to data references.
12864 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12865 dependences before determining the vectorization factor.
12866 Analyze alignment after determining the vectorization factor.
12867 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12868 dependences before alignment.
12869 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12871 (vect_analyze_data_refs): Likewise.
12872 (MAX_VECTORIZATION_FACTOR): New define.
12874 2010-04-13 Duncan Sands <baldrick@free.fr>
12876 * except.h (lang_eh_type_covers): Remove.
12877 * except.c (lang_eh_type_covers): Likewise.
12879 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12880 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12882 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12883 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12884 UNITS_PER_LONG where it is ABI relevant.
12885 (s390_return_addr_rtx): Likewise.
12886 (s390_back_chain_rtx): Likewise.
12887 (s390_frame_area): Likewise.
12888 (s390_frame_info): Likewise.
12889 (s390_initial_elimination_offset): Likewise.
12890 (save_gprs): Likewise.
12891 (s390_emit_prologue): Likewise.
12892 (s390_emit_epilogue): Likewise.
12893 (s390_function_arg_advance): Likewise.
12894 (s390_function_arg): Likewise.
12895 (s390_va_start): Likewise.
12896 (s390_gimplify_va_arg): Likewise.
12897 (s390_function_profiler): Likewise.
12898 (s390_optimize_prologue): Likewise.
12899 (s390_rtx_costs): Likewise.
12900 (s390_secondary_reload): Likewise.
12901 (s390_promote_function_mode): Likewise.
12902 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12903 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12904 registers available.
12905 (s390_unwind_word_mode): New function.
12906 (s390_function_value): Split 64 bit values into register pair if
12907 used as return value.
12908 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12909 function call parameters. Handle parallels.
12910 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12911 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12912 (DWARF_CIE_DATA_ALIGNMENT): New macro.
12913 (s390_expand_setmem): Remove unused variable src_addr.
12914 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12915 deal with 64 bit registers.
12916 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12917 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12918 (UNITS_PER_LONG): New macro.
12919 * libjava/include/s390-signal.h: Define extended ucontext
12920 structure containing the upper halfs of the 64 bit registers.
12922 2010-04-13 Simon Baldwin <simonb@google.com>
12924 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12926 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12928 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12929 rvalue on the RHS if the LHS is of a non-renamable type.
12930 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12932 2010-04-13 Matthias Klose <doko@ubuntu.com>
12934 * gcc.c (cc1_options): Handle -iplugindir before processing
12935 the cc1 spec. Only add -iplugindir once.
12936 (cpp_unique_options): Add -iplugindir option if -fplugin* options
12938 * common.opt (iplugindir): Remove `Separate' property, initialize.
12939 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12941 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12942 (distclean): Remove plugin dir.
12943 * doc/invoke.texi: Document -iplugindir.
12945 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
12947 * doc/plugins.texi (Loading Plugins): Document short
12948 -fplugin=foo option.
12949 (Plugin API): Mention default_plugin_dir_name function.
12951 * gcc.c (find_file_spec_function): Add new declaration.
12952 (static_spec_func): Use it for "find-file".
12953 (find_file_spec_function): Add new function.
12954 (cc1_options): Add -iplugindir option if -fplugin* options found.
12956 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12958 * plugin.c (add_new_plugin): Updated comment, and handle short
12960 (default_plugin_dir_name): Added new function.
12962 * common.opt (iplugindir): New option to set the plugin directory.
12964 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
12966 * config/i386/i386.md (any_rotate): New code iterator.
12967 (rotate_insn): New code attribute.
12969 (SWIM124): New mode iterator.
12970 (<rotate_insn>ti3): New expander.
12971 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12972 any_rotate code iterator.
12973 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12974 using any_rotate code iterator and SWIM124 mode iterator.
12975 (ix86_rotlti3): New insn_and_split pattern.
12976 (ix86_rotrti3): Ditto.
12977 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12978 ix86_rotl{di,ti}3 patterns.
12979 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12980 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12981 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12982 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12983 code iterator and SWI mode iterator.
12984 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12985 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12987 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12988 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12989 (bswap rotatert splitter): Add splitter.
12990 (bswap splitter): Macroize splitter using any_rotate code iterator.
12991 Add insn predicate to split only for TARGET_USE_XCHGB or when
12992 optimizing function for size.
12994 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12996 * config/pa/pa.c (emit_move_sequence): Remove use of
12997 deleted variable flag_argument_noalias.
12999 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13001 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13003 Add to unsupported targets list.
13004 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13005 sparc*-sun-solaris2.[567]* from target lists.
13006 * configure: Regenerate.
13007 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13009 Remove Solaris 7 patch references.
13010 (Specific, sparc-sun-solaris2.7): Removed.
13011 (sparc-sun-solaris2*): Update Solaris 7 example.
13012 (sparc64-*-solaris2*): Likewise.
13014 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13016 * config.build (alpha*-dec-osf4*): Remove.
13017 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13018 of obsolete configurations.
13019 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13021 * config/alpha/t-osf4: Renamed to ...
13022 * config/alpha/t-osf5: ... this.
13023 * config/alpha/osf.h: Renamed to ...
13024 * config/alpha/osf5.h: ... this.
13025 Merged old osf5.h contents.
13027 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13028 (EXTRA_SPECS): Removed.
13029 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13030 reflect removal of Tru64 UNIX V4.0/V5.0 support.
13033 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13035 * doc/contrib.texi (Contributors, Rainer Orth): Update.
13037 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
13040 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13041 __thiscall convention.
13043 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13045 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13047 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13049 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13051 * function.c (assign_parms_initialize_all): Add unused attribute
13054 2010-04-12 Richard Guenther <rguenther@suse.de>
13056 * gsstruct.def (GSS_CALL): New.
13057 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13058 * gimple.h: Include tree-ssa-alias.h.
13059 (struct gimple_statement_call): New.
13060 (union gimple_statement_struct_d): Add gimple_call member.
13061 (gimple_call_reset_alias_info): Declare.
13062 (gimple_call_use_set): New function.
13063 (gimple_call_clobber_set): Likewise.
13064 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13065 * gimple.c (gimple_call_reset_alias_info): New function.
13066 (gimple_build_call_1): Call it.
13067 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13068 * tree-inline.c (remap_gimple_stmt): Likewise.
13069 (expand_call_inline): Remove callused handling.
13070 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13071 * tree-dfa.c (dump_variable): Likewise.
13072 * tree-parloops.c (parallelize_loops): Likewise.
13073 * tree-ssa.c (init_tree_ssa): Likewise.
13074 (delete_tree_ssa): Likewise.
13075 * tree-flow-inline.h (is_call_used): Remove.
13076 * tree-flow.h (struct gimple_df): Remove callused member.
13077 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13078 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13079 (ref_maybe_used_by_call_p_1): Simplify.
13080 (call_may_clobber_ref_p_1): Likewise.
13081 * tree-ssa-structalias.c (compute_points_to_sets): Set
13082 the call stmt used and clobbered sets.
13083 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13084 (find_tail_calls): Verify the tail call.
13086 2010-04-12 Richard Guenther <rguenther@suse.de>
13088 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13089 single-iteration always-inline inlining.
13090 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13091 (cgraph_decide_inlining): Do not handle always-inline specially.
13092 (try_inline): Remove always-inline cycle detection special case.
13093 Do not recurse on always-inlines.
13094 (cgraph_early_inlining): Do not iterate if not optimizing.
13095 (cgraph_gate_early_inlining): remove.
13096 (pass_early_inline): Run unconditionally.
13097 (gate_cgraph_decide_inlining): New function.
13098 (pass_ipa_inline): Use it. Do not run the IPA inliner if
13099 not inlining or optimizing.
13100 (cgraph_decide_inlining_of_small_functions): Also consider
13101 always-inline functions.
13102 (cgraph_default_inline_p): Return true for nodes which should
13103 disregard inline limits.
13104 (estimate_function_body_sizes): Assume zero size and time for
13105 nodes which are marked as disregarding inline limits.
13106 (cgraph_decide_recursive_inlining): Do not perform recursive
13107 inlining on always-inline nodes.
13109 2010-04-12 Jakub Jelinek <jakub@redhat.com>
13112 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13113 for exprs satisfying handled_component_p.
13115 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
13117 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13118 non-constant aggregate elements.
13120 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13121 is a real initialization.
13123 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
13126 * c-decl.c (start_function): Move forward check for nested function.
13128 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
13130 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13131 * config/sh/sh.c: Include reload.h.
13132 (sh_legitimize_reload_address): New.
13133 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13134 sh_legitimize_reload_address.
13136 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13138 * config/sh/sh.md (*movqi_pop): New insn pattern.
13139 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13141 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13143 * config/i386/i386.md (any_shiftrt): New code iterator.
13144 (shiftrt_insn): New code attribute.
13146 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13147 using any_shiftrt code iterator.
13148 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13149 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13150 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13151 pattern from corresponding peephole2 patterns.
13152 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13153 using any_shiftrt code iterator.
13154 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13155 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13156 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13157 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13158 *{ashr,lshr}<mode>3_cmp_zext.
13159 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13161 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13163 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13165 (*lshr<mode>3_cconly): Ditto.
13167 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13169 * config/i386/i386.md (lshr<mode>3): Macroize expander from
13170 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13171 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13172 pattern from *lshr{di,ti}3_1 and corresponding splitters using
13174 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13175 from corresponding peephole2 patterns.
13176 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13177 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13178 and *lshrdi3_1_rex64 using SWI mode iterator.
13179 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13180 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13181 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13182 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13183 and *lshrdi3_cmp_rex64 using SWI mode iterator.
13184 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13185 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13186 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13187 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13190 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
13192 * config/i386/i386.md (ashr<mode>3): Macroize expander from
13193 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13194 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13195 pattern from *ashr{di,ti}3_1 and corresponding splitters using
13197 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13198 from corresponding peephole2 patterns.
13199 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13200 (ashrsi3_cvt): Rename from ashrsi3_31.
13201 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13202 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13203 and x86_64_shift_adj_3 using SWI48 mode iterator.
13204 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13205 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13206 and *ashrdi3_1_rex64 using SWI mode iterator.
13207 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13208 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13209 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13210 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13211 and *ashrdi3_cmp_rex64 using SWI mode iterator.
13212 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13213 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13214 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13215 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13217 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13218 * config/i386/i386.c (ix86_split_ashr): Update for renamed
13219 x86_shift<mode>_adj_3 expanders.
13221 2010-04-10 Wei Guozhi <carrot@google.com>
13224 * config/arm/arm.c (arm_pic_static_addr): New function.
13225 (legitimize_pic_address): Call arm_pic_static_addr when it detects
13227 (arm_output_addr_const_extra): Output expression for new pattern.
13228 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13230 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
13232 * ira-costs.c (record_reg_classes): Ignore alternatives that are
13235 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13236 * web.c: Include "insn-config.h" and "recog.h".
13237 (union_match_dups): New function.
13238 (web_main): Call it.
13239 (union_defs): Don't try to recognize match_dups.
13241 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13242 if doing so would replace the entire pattern.
13244 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13248 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13249 and splitter pattern. Change splitter operand 1 predicate to
13252 2010-04-09 Martin Jambor <mjambor@suse.cz>
13254 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13255 lattices are addresses of CONST_DECLs with the same initial value.
13256 (ipcp_print_all_lattices): Print values of CONST_DECLs.
13257 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13259 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
13260 Bernd Schmidt <bernds@codesourcery.com>
13262 * loop-invariant.c (replace_uses): New static function.
13263 (move_invariant_reg): Use it to ensure we can replace the uses.
13265 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13267 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
13269 (picochip_override_options): Enable section anchors only above -O1.
13270 (picochip_reorg): Fixed a couple of build warnings.
13272 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13274 * configure.ac (plugin -rdynamic test): Log result.
13275 * configure: Regenerate.
13276 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
13277 (RDYNAMIC_SPEC): Define.
13278 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
13280 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13282 * configure.ac: Determine Sun ld version numbers.
13283 (comdat_group): Restrict GNU ld version checks to gld.
13284 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
13285 (enable_comdat): Support --enable-comdat.
13286 * configure: Regenerate.
13287 * doc/install.texi (Configuration): Document --enable-comdat.
13289 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13291 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
13292 * config/sol2-gld.h: ... here.
13293 * config.gcc (sparc*-*-solaris2*): Reflect this.
13294 (i[34567]86-*-solaris2*): Use it.
13296 2010-04-09 Steve Ellcey <sje@cup.hp.com>
13298 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
13300 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
13302 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13305 * diagnostic.c (diagnostic_initialize): Initialize
13306 some_warnings_are_errors.
13307 (diagnostic_finish): New.
13308 (diagnostic_action_after_output): Call it before exiting.
13309 (diagnostic_report_diagnostic): Do not print message here. Set
13310 some_warnings_are_errors.
13311 * diagnostic.h (diagnostic_context): Delete
13312 issue_warnings_are_errors_message. Add some_warnings_are_errors.
13313 (diagnostic_finish): Declare.
13314 * toplev.c (toplev_main): Call it before exit.
13316 2010-04-09 Jason Merrill <jason@redhat.com>
13319 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
13320 for incomplete type.
13323 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
13324 based on a warning flag.
13326 2010-04-09 Richard Guenther <rguenther@suse.de>
13328 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
13330 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
13333 * varasm.c (default_assemble_visibility): Wrap vars that are
13334 set, but unused, by targets without GAS.
13335 * config/rs6000/rs6000.c (paired_emit_vector_compare):
13336 Remove set, but unused, vars.
13337 (rs6000_legitimize_tls_address): Likewise.
13338 (altivec_expand_dst_builtin): Likewise.
13339 * config/darwin.c (machopic_classify_symbol): Likewise.
13340 (machopic_indirection_name): Likewise.
13342 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13344 * config/i386/i386.md (DWI): New mode iterator.
13345 (S): New mode attribute.
13346 (shift_operand): Ditto.
13347 (shift_immediate_operand): Ditto.
13348 (ashl_input_operand): Ditto.
13349 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13350 using SDWIM mode iterator.
13351 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
13352 pattern from *ashl{di,ti}3_1 and corresponding splitters using
13354 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13355 from corresponding peephole2 patterns.
13356 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13357 and x86_64_shift_adj_1 using SWI48 mode iterator.
13358 (x86_shift<mode>_adj_2): Ditto.
13359 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13360 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13361 using SWI48 mode iterator.
13362 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13363 *ashldi3_cmp_rex64 using SWI mode iterator.
13364 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13365 *ashldi3_cconly_rex64 using SWI mode iterator.
13366 * config/i386/i386.c (ix86_split_ashl): Update for renamed
13367 x86_shift<mode>_adj_{1,2}.
13368 (ix86_split_ashr): Ditto.
13369 (ix86_split_lshr): Ditto.
13371 2010-04-09 Richard Guenther <rguenther@suse.de>
13373 * target.h (builtin_conversion): Pass in input and output types.
13374 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13375 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13376 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13377 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13379 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13381 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13383 2010-04-09 Richard Guenther <rguenther@suse.de>
13386 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13388 2010-04-09 Richard Guenther <rguenther@suse.de>
13390 * tree-vectorizer.h (struct _stmt_vec_info): Document
13391 that vectype is the type of the LHS.
13392 (supportable_widening_operation, supportable_narrowing_operation):
13393 Get both input and output vector types as arguments.
13394 (vect_is_simple_use_1): Declare.
13395 (get_same_sized_vectype): Likewise.
13396 * tree-vect-loop.c (vect_determine_vectorization_factor):
13397 Set STMT_VINFO_VECTYPE to the vector type of the def.
13398 (vectorizable_reduction): Adjust.
13399 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13400 Adjust. Specify the output vector type.
13401 (vect_pattern_recog_1): Adjust.
13402 * tree-vect-stmts.c (get_same_sized_vectype): New function.
13403 (vectorizable_call): Adjust.
13404 (vectorizable_conversion): Likewise.
13405 (vectorizable_operation): Likewise.
13406 (vectorizable_type_demotion): Likewise.
13407 (vectorizable_type_promotion): Likewise.
13408 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13410 (vect_is_simple_use_1): New function.
13411 (supportable_widening_operation): Get both input and output
13413 (supportable_narrowing_operation): Likewise.
13414 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13416 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
13418 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13419 __thiscall and _thiscall as predefined macros.
13420 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13421 thiscall attribute handling.
13422 (ix86_comp_type_attributes): Likewise.
13423 (ix86_function_regparm): Likewise.
13424 (ix86_return_pops_args): Likewise.
13425 (init_cumulative_args): Likewise.
13426 (find_drap_reg): Likewise.
13427 (ix86_static_chain): Likewise.
13428 (x86_this_parameter): Likewise.
13429 (x86_output_mi_thunk): Likewise.
13430 (ix86_attribute_table): Add description for thiscall attribute.
13431 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13432 * doc/extend.texi: Add documentation for thiscall.
13434 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13437 * c.opt (Wint-to-pointer-cast): Available in C++.
13438 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13440 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
13442 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13443 * calls.c (expand_call): Pass the function type to aggregate_value_p.
13444 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13445 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
13446 function type instead. Reorder and simplify checks.
13448 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13450 2010-04-08 Jing Yu <jingyu@google.com>
13451 Zdenek Dvorak <ook@ucw.cz>
13453 PR tree-optimization/42720
13454 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13455 loop unswitch conditions here from ...
13456 (tree_unswitch_single_loop): ... here.
13458 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13460 * tree-if-conv.c: Fix comments and simplify logic.
13462 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13464 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13465 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
13466 (main_tree_if_conversion): Update call to tree_if_conversion.
13468 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13471 * doc/invoke.texi (-b,-V): Delete.
13472 * doc/tm.texi: Do not mention -b.
13473 * gcc.c (display_help): Delete -b and -V.
13474 (process_command): Delete -b and -V.
13475 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13477 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
13478 Wolfgang Gellerich <gellerich@de.ibm.com>
13480 Implement target hook for loop unrolling
13481 * target.h (loop_unroll_adjust): Add a new target hook function.
13482 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13483 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13484 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13485 (s390_loop_unroll_adjust): Implement the new target hook for s390.
13486 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13488 (decide_unroll_stupid): Likewise.
13490 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13493 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13495 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13497 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13498 (Specific, *-*-solaris2*): Likewise.
13499 Don't prefer Sun as over GNU as.
13501 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
13503 * config/s390/s390.c (override_options): Adjust the z10 defaults
13504 for max-unroll-times, max-completely-peeled-insns
13505 and max-completely-peel-times.
13507 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13509 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13510 instructions for z10.
13511 (s390_expand_setmem): Likewise.
13512 (s390_expand_cmpmem): Likewise.
13514 2010-04-08 Richard Guenther <rguenther@suse.de>
13516 PR tree-optimization/43679
13517 * tree-ssa-pre.c (eliminate): Only propagate copies.
13519 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13522 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13523 set but not used variable warning.
13525 2010-04-08 Wei Guozhi <carrot@google.com>
13528 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13529 (arm_size_rtx_costs): Call the new function when optimized for size.
13531 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13534 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13535 op0 is not a MEM, just return NULL instead of assertion
13537 (discover_nonconstant_array_refs): Don't walk debug stmts.
13539 2010-04-08 Doug Kwan <dougkwan@google.com>
13541 * configure.ac: Recognize gold and do not use its version number
13542 to test ld features.
13543 * configure: Regenerate.
13545 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
13547 PR middle-end/40815
13548 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13549 (negate_value): Move code to push elements to broken_up_substracts ...
13550 (eliminate_plus_minus_pair): ... here. Push operands that have no
13551 negative pair to plus_negates.
13552 (repropagate_negates, init_reassoc, fini_reassoc): Update.
13554 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13556 * doc/install.texi (Configuration): Move description of
13557 --enable-lto, --with-libelf*, --enable-gold from Java section to
13560 * doc/generic.texi (Working with declarations)
13561 (Function Properties, C and C++ Trees): Fix typos.
13562 * doc/sourcebuild.texi (Top Level): Likewise.
13564 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13567 * tree.h (DECL_READ_P): Define.
13568 (struct tree_decl_common): Add decl_read_flag.
13569 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13570 a set but not used warning.
13571 (merge_decls): Merge DECL_READ_P flag.
13572 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13573 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13574 * c-common.c (handle_used_attribute, handle_unused_attribute):
13576 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13578 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13580 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13581 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13582 c_parser_binary_expression, c_parser_cast_expression,
13583 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13584 Call default_function_array_read_conversion instead of
13585 default_function_array_conversion where needed.
13586 (c_parser_unary_expression, c_parser_conditional_expression,
13587 c_parser_postfix_expression_after_primary, c_parser_initelt):
13588 Likewise. Call mark_exp_read where needed.
13589 (c_parser_statement_after_labels, c_parser_asm_operands,
13590 c_parser_typeof_specifier, c_parser_sizeof_expression,
13591 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13593 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13595 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13596 (warn_unused_but_set_parameter): Default to warn_unused
13598 * doc/invoke.texi: Document -Wunused-but-set-variable and
13599 -Wunused-but-set-parameter.
13601 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13602 used count variable.
13603 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13604 when operandN variables aren't used in the body of the expander
13606 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13607 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13608 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13609 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13610 FOR_EACH_IMM_USE_ON_STMT): Likewise.
13611 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13612 * tree.c (PROCESS_ARG): Likewise.
13614 2010-04-07 Simon Baldwin <simonb@google.com>
13616 * diagnostic.h (diagnostic_override_option_index): New macro to
13617 set a diagnostic's option_index.
13618 * c-tree.h (c_cpp_error): Add warning reason argument.
13619 * opts.c (_warning_as_error_callback): New.
13620 (register_warning_as_error_callback): Store callback for
13621 warnings enabled via enable_warning_as_error.
13622 (enable_warning_as_error): Call callback, minor code tidy.
13623 * opts.h (register_warning_as_error_callback): Declare.
13624 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13625 response to -Werror=.
13626 (c_common_init_options): Register warning_as_error_callback in opts.c.
13627 * common.opt: Add -Wno-cpp option.
13628 * c-common.c (struct reason_option_codes_t): Map cpp warning
13629 reason codes to gcc option indexes.
13630 * (c_option_controlling_cpp_error): New function, lookup the gcc
13631 option index for a cpp warning reason code.
13632 * (c_cpp_error): Add warning reason argument, call
13633 c_option_controlling_cpp_error for diagnostic_override_option_index.
13634 * doc/invoke.texi: Document -Wno-cpp.
13636 2010-04-07 Richard Guenther <rguenther@suse.de>
13638 * ipa-reference.c (mark_load): Use get_base_address.
13639 (mark_store): Likewise.
13641 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13642 inserting GIMPLE_NOPs into the IL.
13643 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13644 Explicitly strip handled components and indirect references.
13646 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13647 folding address expressions.
13648 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13649 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13650 operand_equal_p to compare decls.
13651 (ptr_deref_may_alias_decl_p): Likewise.
13652 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13653 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13654 Handle reversed comparison ops.
13655 * tree-sra.c (asm_visit_addr): Use get_base_address.
13656 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13657 * ipa-reference.c (mark_address): Use get_base_address.
13659 2010-04-07 Richard Guenther <rguenther@suse.de>
13661 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13662 Propagate constants everywhere.
13664 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13667 * tree.c (MAX_INT_CACHED_PREC): Define.
13668 (nonstandard_integer_type_cache): New array.
13669 (build_nonstandard_integer_type): Cache results for precision
13670 <= MAX_INT_CACHED_PREC.
13672 2010-04-07 Richard Guenther <rguenther@suse.de>
13674 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13675 -fargument-noalias-global, -fargument-noalias-anything): Remove.
13676 * common.opt: Likewise.
13677 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13678 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13679 (nonoverlapping_memrefs_p): Likewise.
13680 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13681 * opts.c (common_handle_option): Handle OPT_fargument_alias,
13682 OPT_fargument_noalias, OPT_fargument_noalias_anything and
13683 OPT_fargument_noalias_global for backward compatibility.
13685 2010-04-07 Richard Guenther <rguenther@suse.de>
13687 PR tree-optimization/43270
13688 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13689 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13690 * tree-ssa-pre.c (phi_translate_1): Adjust.
13691 (fully_constant_expression): Split out vn_reference handling to ...
13692 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13693 Fold reads from constant strings.
13694 (vn_reference_lookup): Handle fully constant references.
13695 (vn_reference_lookup_pieces): Likewise.
13696 * Makefile.in (expmed.o-warn): Add -Wno-error.
13698 2010-04-07 Martin Jambor <mjambor@suse.cz>
13700 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13702 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
13705 * gcc.c: Add -static-libstdc++ to list of recognized options.
13707 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13709 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13711 2010-04-07 Richard Guenther <rguenther@suse.de>
13713 PR middle-end/42617
13714 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13715 bases build simple mem attributes to retain points-to information.
13717 2010-04-07 Richard Guenther <rguenther@suse.de>
13719 PR middle-end/42617
13720 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13721 preserve points-to related information.
13723 2010-04-07 Richard Guenther <rguenther@suse.de>
13725 PR middle-end/42617
13726 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13727 discard plain indirect references.
13728 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13729 * tree.c (tree_nop_conversion): Likewise.
13731 2010-04-07 Dodji Seketeli <dodji@redhat.com>
13734 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13736 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
13738 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13739 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13741 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13743 * tree-if-conv.c: Fix indentation and comments.
13745 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13747 * tree-if-conv.c: Sort static functions in topological order.
13749 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13751 * tree-if-conv.c: Fix indentation and comments.
13753 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13755 PR middle-end/43519
13756 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13757 lang_hooks.types.type_for_size instead of
13758 build_nonstandard_integer_type.
13759 When converting an unsigned type to signed, double its precision.
13760 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13761 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13762 (graphite_create_new_loop_guard): When ub + 1 wraps around,
13765 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13767 PR middle-end/43519
13768 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13769 POINTER_PLUS_EXPR for pointer types.
13771 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13773 PR middle-end/43519
13774 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13775 * graphite-clast-to-gimple.c: Include langhooks.h.
13776 (max_signed_precision_type): New.
13777 (max_precision_type): Takes two types as arguments.
13778 (precision_for_value): New.
13779 (precision_for_interval): New.
13780 (gcc_type_for_interval): New.
13781 (gcc_type_for_value): New.
13782 (gcc_type_for_clast_term): New.
13783 (gcc_type_for_clast_red): New.
13784 (gcc_type_for_clast_bin): New.
13785 (gcc_type_for_clast_expr): Split up into several functions.
13786 (gcc_type_for_clast_eq): Rewritten.
13787 (compute_bounds_for_level): New.
13788 (compute_type_for_level_1): New.
13789 (compute_type_for_level): New.
13790 (gcc_type_for_cloog_iv): Removed.
13791 (gcc_type_for_iv_of_clast_loop): Rewritten.
13792 (graphite_create_new_loop): Compute the lower and upper bound types
13793 with gcc_type_for_clast_expr.
13794 (graphite_create_new_loop_guard): Same.
13795 (find_cloog_iv_in_expr): Removed.
13796 (compute_cloog_iv_types_1): Removed.
13797 (compute_cloog_iv_types): Removed.
13798 (gloog): Do not call compute_cloog_iv_types.
13799 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13800 GBB_CLOOG_IV_TYPES.
13801 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13802 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13803 (GBB_CLOOG_IV_TYPES): Removed.
13805 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13807 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13808 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13809 (detect_commutative_reduction): Same.
13811 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13813 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13814 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
13816 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13817 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13818 (rewrite_commutative_reductions_out_of_ssa): Same.
13819 * passes.c (execute_function_todo): Call verify_ssa for every pass
13820 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
13821 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13822 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13823 with an extra argument.
13824 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
13825 verify_ssa only when the extra argument is true.
13826 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13827 with an extra argument.
13828 (tree_transform_and_unroll_loop): Same.
13830 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13832 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13833 for all the passes of the LNO having LOOP_CLOSED_SSA.
13834 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13835 * tree-loop-distribution.c (pass_loop_distribution): Same.
13836 * tree-pass.h (TODO_verify_loops): Removed.
13837 * tree-ssa-loop.c (pass_tree_loop_init): Same.
13839 (pass_tree_unswitch): Same.
13840 (pass_predcom): Same.
13841 (pass_vectorize): Same.
13842 (pass_linear_transform): Same.
13843 (pass_graphite_transforms): Same.
13844 (pass_iv_canon): Same.
13845 (pass_complete_unroll): Same.
13846 (pass_complete_unrolli): Same.
13847 (pass_parallelize_loops): Same.
13848 (pass_loop_prefetch): Same.
13849 (pass_iv_optimize): Same.
13851 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
13853 PR middle-end/32824
13854 * passes.c (init_optimization_passes): Move pass_lim before
13855 pass_copy_prop and pass_dce_loop.
13857 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13860 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13861 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13862 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13863 MULTI_* defines for 4 argument vpermil2p* builtins.
13865 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13867 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13868 * config/i386/i386.c (x86_maybe_negate_const_int): New.
13869 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13870 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13871 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13872 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13873 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13874 Use x86_maybe_negate_const_int to output insn mnemonic.
13875 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
13876 check from instruction predicate. Update comments.
13877 * config/i386/sync.md (sync_add<mode>): Use
13878 x86_maybe_negate_const_int to output insn mnemonic.
13880 2010-04-06 Jan Hubicka <jh@suse.cz>
13882 PR tree-optimization/42906
13883 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13884 IGNORE_SELF argument. Set visited_control_parents for fully
13886 (find_obviously_necessary_stmts): Update call of
13887 mark_control_dependent_edges_necessary.
13888 (propagate_necessity): Likewise. Handle PHI edges more curefully.
13890 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13892 * config/i386/i386.md: Remove comment about 'e' and 'E'
13895 2010-04-06 Richard Guenther <rguenther@suse.de>
13897 PR tree-optimization/43627
13898 * tree-vrp.c (extract_range_from_unary_expr): Widenings
13899 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13902 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13904 * BASE-VER: Change to 4.6.0.
13907 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13910 2010-04-06 Richard Guenther <rguenther@suse.de>
13912 PR middle-end/43661
13913 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13915 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13917 * doc/invoke.texi (Optimize Options): Document that LTO
13918 won't remove object access purely due to incompatible
13921 2010-04-04 Matthias Klose <doko@ubuntu.com>
13923 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13924 Initialize variable.
13926 2010-04-03 Richard Guenther <rguenther@suse.de>
13928 PR middle-end/42509
13929 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13930 require a non-NULL MEM_OFFSET.
13932 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
13934 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13935 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13936 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13937 config/alpha/predicates.md, config/arm/arm.md,
13938 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13939 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13940 config/darwin9.h, config/darwin.c, config/darwin.h,
13941 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13942 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13943 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13944 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13945 config/mips/mips.md, config/mn10300/mn10300.c,
13946 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13947 config/rs6000/aix.h, config/rs6000/dfp.md,
13948 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13949 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13950 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13951 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13952 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13953 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13954 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13955 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13956 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13957 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13958 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13959 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13960 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13961 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13962 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13963 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13964 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13965 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13966 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13967 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13968 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13969 opt-functions.awk, opth-gen.awk, params.def, passes.c,
13970 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13971 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13972 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13973 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13974 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13975 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13976 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13977 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13978 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13979 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13980 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13981 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13982 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13983 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13985 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13988 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13989 * aclocal.m4: Regenerate.
13991 2010-04-02 Richard Guenther <rguenther@suse.de>
13993 PR tree-optimization/43629
13994 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13995 if we have seen a constant value.
13997 2010-04-02 Joseph Myers <joseph@codesourcery.com>
13999 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14001 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
14004 * arm.c (legitimize_tls_address): Adjust call to
14005 gen_tls_load_dot_plus_four.
14006 (arm_note_pic_base): New function.
14007 (arm_cannot_copy_insn_p): Use it.
14008 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14011 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14016 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14018 * Makefile.in ($(out_object_file)): Depend on
14019 gt-$(basename $(notdir $(out_file))).h.
14021 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
14023 * config.gcc (lm32-*-rtems*): Add t-lm32.
14025 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
14027 * config.gcc: Add lm32-*-rtems*.
14028 * config/lm32/rtems.h: New file.
14030 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
14033 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14035 2010-04-01 Jakub Jelinek <jakub@redhat.com>
14037 * dwarf2out.c (output_compilation_unit_header): For
14038 -gdwarf-4 use version 4 instead of version 3.
14039 (output_line_info): For version 4 and above emit additional
14040 maximum ops per insn header field.
14041 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14043 * dwarf2out.c (is_c_family, is_java): Remove.
14044 (lower_bound_default): New function.
14045 (add_bound_info, gen_descr_array_type_die): Use it.
14047 2010-04-01 Dodji Seketeli <dodji@redhat.com>
14050 * dwarf2out.c (gen_variable_die): Allow debug info for variable
14051 re-declaration when it happens in a function.
14053 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
14055 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14056 (cgraph_remove_function_insertion_hook): Same.
14057 (cgraph_call_function_insertion_hooks): Same.
14059 2010-04-01 Richard Guenther <rguenther@suse.de>
14061 PR middle-end/43614
14062 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14063 and TREE_THIS_VOLATILE.
14064 (copy_ref_info): Likewise.
14065 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14066 * tree.c (build6_stat): Ignore side-effects of all but arg5
14067 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
14070 2010-04-01 Richard Guenther <rguenther@suse.de>
14072 PR tree-optimization/43607
14073 * ipa-type-escape.c (check_call): Do not access non-existing
14076 2010-04-01 Richard Guenther <rguenther@suse.de>
14078 PR middle-end/43602
14080 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14081 Jack Howarth <howarth@bromo.med.uc.edu>
14083 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14086 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14088 * doc/install.texi (Prerequisites): Document libelf usability on
14089 IRIX 5/6 and Solaris 2.
14090 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14091 Update GNU as, GNU ld requirements.
14092 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14093 Document Sun Studio compiler download.
14094 Update and simplify as, ld recommendations.
14095 (Specific, *-*-solaris2.7): Note obsoletion, removal.
14097 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14099 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14100 with_tune_32 to pentium4.
14102 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
14104 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14106 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14108 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14109 obsoletion, removal.
14111 Document GNU as requirement.
14112 Update configure requirements.
14113 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14114 Recomment IRIX 6.5.18+.
14115 Document IDF/IDL requirement.
14116 Document GNU as requirement.
14117 Document GNU ld bootstrap failure.
14118 Remove freeware.sgi.com reference.
14120 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14122 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14123 UNIX V4.0, V5.0 obsoletion, removal.
14124 Remove --with-gc=simple reference.
14125 Update VM requirements during bootstrap.
14126 Remove -oldas bootstrap description.
14127 Update binutils reference.
14128 Remove comparison failure note.
14130 2010-03-31 Richard Guenther <rguenther@suse.de>
14131 Zdenek Dvorak <ook@ucw.cz>
14132 Sebastian Pop <sebastian.pop@amd.com>
14134 PR middle-end/43464
14135 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14136 with multiple arguments.
14137 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14139 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14141 * graphite-dependences.c (print_pddr): Call print_pdr with an
14143 * graphite-poly.c (debug_pdr): Add an extra argument for the
14146 (print_pbb_domain): Same.
14148 (print_scop_context): Same.
14149 (print_scop): Same.
14150 (print_cloog): Same.
14151 (debug_pbb_domain): Same.
14153 (print_pdrs): Same.
14154 (debug_pdrs): Same.
14155 (debug_scop_context): Same.
14156 (debug_scop): Same.
14157 (debug_cloog): Same.
14158 (print_scop_params): Same.
14159 (debug_scop_params): Same.
14160 (print_iteration_domain): Same.
14161 (print_iteration_domains): Same.
14162 (debug_iteration_domain): Same.
14163 (debug_iteration_domains): Same.
14164 (print_scattering_function): Same.
14165 (print_scattering_functions): Same.
14166 (debug_scattering_function): Same.
14167 (debug_scattering_functions): Same.
14168 * graphite-poly.h (debug_pdr): Update declaration.
14170 (print_pbb_domain): Same.
14172 (print_scop_context): Same.
14173 (print_scop): Same.
14174 (print_cloog): Same.
14175 (debug_pbb_domain): Same.
14177 (print_pdrs): Same.
14178 (debug_pdrs): Same.
14179 (debug_scop_context): Same.
14180 (debug_scop): Same.
14181 (debug_cloog): Same.
14182 (print_scop_params): Same.
14183 (debug_scop_params): Same.
14184 (print_iteration_domain): Same.
14185 (print_iteration_domains): Same.
14186 (debug_iteration_domain): Same.
14187 (debug_iteration_domains): Same.
14188 (print_scattering_function): Same.
14189 (print_scattering_functions): Same.
14190 (debug_scattering_function): Same.
14191 (debug_scattering_functions): Same.
14193 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14195 * graphite-poly.c (print_scattering_function_1): New.
14196 (print_scattering_function): Call it.
14197 (print_scop_params): Remove spaces at the end of lines.
14198 (print_cloog): New.
14199 (debug_cloog): New.
14200 * graphite-poly.h (print_cloog): Declared.
14201 (debug_cloog): Declared.
14203 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14205 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14207 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14208 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14209 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14210 to switch between adding the IV bump in loop->latch or in loop->header.
14212 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14214 * graphite-poly.c (print_scattering_function): Pretty print following
14215 the scoplib format.
14217 (print_pbb_domain): Same.
14218 (dump_gbb_cases): Same.
14219 (dump_gbb_conditions): Same.
14220 (print_pdrs): Same.
14222 (print_scop_params): Same.
14223 (print_scop_context): Same.
14224 (print_scop): Same.
14225 (print_pbb_body): New.
14226 (lst_indent_to): New.
14227 (print_lst): Start new lines with a #.
14228 * graphite-poly.h (pbb_bb): New.
14229 (pbb_index): Use pbb_bb.
14230 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14232 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14234 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14236 * dwarf2out.c (size_of_die): For -gdwarf-4 use
14237 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14238 and 0 instead of 1 for dw_val_class_flag.
14239 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14240 dw_val_class_range_list, dw_val_class_loc_list,
14241 dw_val_class_lineptr and dw_val_class_macptr, use
14242 DW_FORM_flag_present for dw_val_class_flag and
14243 DW_FORM_exprloc for dw_val_class_loc.
14244 (output_die): For -gdwarf-4 print dw_val_class_loc
14245 size as uleb128 instead of 1 or 2 bytes and don't print
14246 anything for dw_val_class_flag.
14248 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14249 instead of cselib_lookup following by tweaking locs->setting_insn.
14252 * cselib.c (cselib_process_insn): Clear cselib_current_insn
14253 even before returning from label, setjmp call or volatile asm
14256 2010-03-31 Richard Guenther <rguenther@suse.de>
14258 PR middle-end/43600
14259 * cgraphunit.c (cgraph_output_in_order): Do not allocate
14260 temporary data on stack.
14262 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14264 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14265 (PUSHSECTION_ASM_OP): Remove.
14266 (POPSECTION_ASM_OP): Remove.
14267 (PUSHSECTION_FORMAT): Remove.
14268 * config/sol2.h (PUSHSECTION_FORMAT): Define.
14269 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
14270 * config/sol2.c (solaris_output_init_fini): Use it.
14272 2010-03-31 Jie Zhang <jie@codesourcery.com>
14275 * opt-functions.awk (var_type_struct): Use signed char type
14276 for simple variables.
14278 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14280 * config/sol2.c: Include output.h.
14281 (solaris_assemble_visibility): New function.
14282 * config/t-sol2 (sol2.o): Add output.h dependency.
14283 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
14284 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
14287 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14290 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
14291 V2SImode or XFmode on PRE_DEC.
14294 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
14297 2010-03-31 Jie Zhang <jie@codesourcery.com>
14300 * reload.h (caller_save_initialized_p): Declare.
14301 * toplev.c (backend_init_target): Don't call
14302 init_caller_save but set caller_save_initialized_p to false.
14303 * caller-save.c (caller_save_initialized_p): Define.
14304 (init_caller_save): Check caller_save_initialized_p.
14305 * ira.c (ira): Call init_caller_save if flag_caller_saves.
14307 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14310 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
14311 and soft-fp/t-softfp to tmake_file.
14312 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
14313 (LIBGCC2_TF_CEXT): Define.
14316 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
14319 * cselib.c (n_useless_values): Document handling of debug locs.
14320 (n_useless_debug_values, n_debug_values): New variables.
14321 (new_elt_loc_list): Don't add to debug values, keep count.
14322 (promote_debug_loc): New.
14323 (cselib_reset_table): Zero new variables.
14324 (entry_and_rtx_equal_p): Promote debug locs.
14325 (discard_useless_locs): Increment n_useless_debug_values for
14327 (remove_useless_values): Adjust n_useless_values and n_debug_values
14328 with n_useless_debug_values.
14329 (add_mem_for_addr): Promote debug locs.
14330 (cselib_lookup_mem): Likewise.
14331 (cselib_lookup_addr): Renamed to...
14332 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
14333 (cselib_log_lookup): ... this. Turn into...
14334 (cselib_lookup_addr): ... new wrapper.
14335 (cselib_lookup_from_insn): New.
14336 (cselib_invalidate_regno): Increment n_useless_debug_values for
14338 (cselib_invalidate_mem): Likewise.
14339 (cselib_process_insn): Take n_deleted and n_debug_values into
14340 account to guard remove_useless_value call.
14341 (cselib_finish): Zero n_useless_debug_values.
14342 * cselib.h (cselib_lookup_from_insn): Declare.
14343 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
14344 (sched_analyze_2): Likewise.
14346 2010-03-30 Jakub Jelinek <jakub@redhat.com>
14348 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14350 (adjust_mems): Replace narrowing SUBREG of expression containing
14351 just PLUS, MINUS, MULT and ASHIFT of registers and constants
14352 with operations in the narrower mode.
14355 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14356 regs_invalidated_by_call instead all call_used_reg_set registers.
14358 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
14360 PR middle-end/43430
14361 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14362 pointer comparisons with types_compatible_p.
14363 * tree-vect-stmts.c (vectorizable_call): Same.
14364 (vectorizable_condition): Same.
14366 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14368 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14369 stack check if the mask would be zero.
14371 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14372 Jack Howarth <howarth@bromo.med.uc.edu>
14374 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14377 2010-03-30 Joseph Myers <joseph@codesourcery.com>
14380 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
14382 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14383 Include ___unordxf2 and ___unordtf2.
14384 * config/i386/libgcc-glibc.ver: Do not define inheritance from
14387 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
14389 * config/lm32/t-lm32: New file.
14390 * config.gcc: Use the above file when targetting lm32.
14392 2010-03-28 Duncan Sands <baldrick@free.fr>
14394 * Makefile.in (PLUGIN_HEADERS): Add except.h.
14396 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14398 PR middle-end/43431
14399 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14400 Improve vectorization cost model diagnostic.
14402 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14404 PR middle-end/43436
14405 * tree-vect-data-refs.c (vect_analyze_data_refs): When
14406 compute_data_dependences_for_loop returns false, early exit
14407 and output an extra diagnostic for the failed data reference
14410 2010-03-29 Richard Guenther <rguenther@suse.de>
14412 PR tree-optimization/43560
14413 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14414 (can_sm_ref_p): Treat stores to readonly locations as trapping.
14416 2010-03-29 Jie Zhang <jie@codesourcery.com>
14419 * toplev.c (process_options): Set optimization_default_node
14420 and optimization_current_node.
14421 * opts.c (decode_options): Don't set optimization_default_node
14422 and optimization_current_node.
14424 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
14426 * config/rtems.h: Abandon -qrtems_debug.
14428 2010-03-28 Jan Hubicka <jh@suse.cz>
14430 PR tree-optimization/43505
14431 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14432 map should not be copied.
14434 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14436 PR middle-end/41674
14437 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14438 cdtors, set DECL_PRESERVE_P.
14439 * ipa.c (cgraph_externally_visible_p): Return true if declaration
14440 should be preseved.
14442 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
14444 PR tree-optimization/43528
14445 * stor-layout.c (place_field): Check that constant fits into
14446 unsigned HWI when skipping calculation of MS bitfield layout.
14448 2010-03-27 Jan Hubicka <jh@suse.cz>
14450 PR middle-end/43391
14451 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14452 notice_global_symbol work.
14454 2010-03-27 Jakub Jelinek <jakub@redhat.com>
14456 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14457 instead of dwarf2out_decl.
14458 (struct var_loc_node): Remove section_label field.
14459 (dwarf2out_function_decl): New function.
14460 (dwarf2out_var_location): Don't set section_label field.
14461 (dwarf2out_begin_function): Don't empty decl_loc_table here.
14463 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14465 PR tree-optimization/43544
14466 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14467 First argument for builtin vectorized function hook is now a
14468 tree to be able to distinguish between machine specific and
14470 * targhooks.c (default_builtin_vectorized_function): Ditto.
14471 * targhooks.h (default_builtin_vectorized_function): Ditto.
14472 * target.h (struct gcc_target): Ditto.
14473 * tree-vect-stmts.c (vectorizable_function): Ditto.
14474 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14475 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14478 2010-03-26 Joseph Myers <joseph@codesourcery.com>
14481 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14482 nested binding iff it is a FUNCTION_DECL.
14483 (store_parm_decls_newstyle): Pass nested=true to bind for
14484 FUNCTION_DECLs amongst parameters.
14486 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14488 * var-tracking.c (vt_expand_loc_callback): Don't run
14489 cselib_expand_value_rtx_cb in dummy mode if
14490 cselib_dummy_expand_value_rtx_cb returned false.
14492 * var-tracking.c (emit_note_insn_var_location): For one part
14493 notes with offset 0, don't add EXPR_LIST around the location.
14494 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14495 add_location_or_const_value_attribute): Adjust for that change.
14498 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14499 into first operand and location into second.
14500 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14501 dw_cfi_oprnd_loc for DW_CFA_expression.
14502 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14503 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14504 assume first argument is regnum and second argument is location.
14506 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14509 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14510 of scratch register to DImode. Split to DImode comparison operator.
14511 Use SImode subreg of scratch register in the multiplication.
14512 (*cmp_sadd_sidi): Ditto.
14513 (*cmp_ssub_si): Ditto.
14514 (*cmp_ssub_sidi): Ditto.
14516 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14519 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14520 Remove invalid assert and wrong comment.
14522 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14525 * flags.h (final_insns_dump_p): New extern.
14526 * final.c (final_insns_dump_p): New variable.
14527 (rest_of_clean_state): Set it before -fdump-final-insns=
14528 dumping, clear afterwards.
14529 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14530 MEM_ALIAS_SET on MEMs.
14532 2010-03-26 David S. Miller <davem@davemloft.net>
14534 * configure.ac: Fix sparc GOTDATA_OP bug check.
14535 * configure: Rebuild.
14537 2010-03-26 Alan Modra <amodra@gmail.com>
14539 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14541 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14543 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14544 TLS_SECTION_ASM_FLAG.
14546 2010-03-25 Jakub Jelinek <jakub@redhat.com>
14549 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14550 Clear first_function_block_is_cold.
14553 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14554 argument if the argument is truth_value_p.
14556 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14558 * config/rs6000/constraints.md: Update copyright year for my changes.
14561 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14562 used in reg+reg addressing, swap registers.
14564 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14567 * target.h (struct gcc_target): Add code_end hook.
14568 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14569 if not yet defined.
14570 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14571 * toplev.c (compile_file): Call targetm.asm_out.code_end
14572 hook before unwind info/debug info output.
14573 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14574 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14575 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14576 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14577 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14578 * config/i386/i386.c (ix86_file_end): Renamed to...
14579 (ix86_code_end): ... this. Make static. Don't call
14580 file_end_indicate_exec_stack. Emit unwind info using
14581 final_start_function/final_end_function.
14582 (darwin_x86_file_end): Remove.
14583 (TARGET_ASM_CODE_END): Define.
14584 * config/i386/i386.h (TARGET_ASM_FILE_END,
14585 NEED_INDICATE_EXEC_STACK): Don't define.
14586 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14587 (TARGET_ASM_FILE_END): Define to darwin_file_end.
14588 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14589 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14592 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14593 at the beginning and final_end_function at the end.
14594 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14596 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14598 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14599 and Sun as TLS syntax.
14600 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14601 * configure: Regenerate.
14602 * config.in: Regenerate.
14603 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14604 (default_elf_asm_named_section): Use it.
14605 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14606 (i386_output_dwarf_dtprel): Likewise.
14607 (output_addr_const_extra): Likewise.
14608 (output_pic_addr_const): Lowercase @GOTTPOFF.
14609 (output_addr_const_extra): Likewise.
14610 (output_pic_addr_const): Lowercase @GOTNTPOFF.
14611 (output_addr_const_extra): Likewise.
14612 (output_pic_addr_const): Lowercase @INDNTPOFF.
14613 (output_addr_const_extra): Likewise.
14614 (output_pic_addr_const): Lowercase @NTPOFF.
14615 (output_addr_const_extra): Likewise.
14616 (output_pic_addr_const): Lowercase @TPOFF.
14617 (output_addr_const_extra): Likewise.
14618 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14619 (*tls_global_dynamic_64): Likewise.
14620 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14621 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14623 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14624 (ASM_OUTPUT_TLS_COMMON): Use it.
14625 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14628 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14629 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14630 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14631 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14632 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14633 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14635 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14637 * config/i386/i386.c (override_options): Don't accept
14638 -mtls-dialect=sun any longer.
14639 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14640 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14641 (*tls_local_dynamic_base_32_sun): Likewise.
14642 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14644 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14647 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14648 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14651 * ira.c (adjust_cleared_regs): New function.
14652 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14656 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14658 * expr.c (expand_expr_real): Restore previous
14659 curr_insn_source_location and curr_insn_block after
14660 expand_expr_real_1 call.
14661 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14662 instead of expand_expr_real_1.
14664 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
14666 PR rtl-optimization/43413
14667 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14670 2010-03-22 James E. Wilson <wilson@codesourcery.com>
14673 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14674 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14676 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
14678 * config/i386/i386.c (ix86_target_string): Add -mfma.
14679 Fix a typo in comment.
14681 2010-03-22 Mike Stump <mikestump@comcast.net>
14684 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14685 Don't overly align based upon packed packed fields.
14687 2010-03-22 Jason Merrill <jason@redhat.com>
14689 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14690 Use () rather than [], and move before the element type.
14692 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14694 * doc/configfiles.texi (Configuration Files): Removed
14695 fixinc/Makefile*, intl/Makefile.*.
14696 * doc/makefile.texi: Fixed markup. Abstract from version
14697 control system used.
14698 (Makefile): Removed obsolete gcc/java/parse.y example.
14699 * doc/sourcebuild.texi: Likewise.
14700 (Top Level): Added config, gnattools, libdecnumber, libgcc,
14701 libgomp, libssp. Removed fastjar.
14702 (Miscellaneous Docs): Clarify location.
14703 Added COPYING3, COPYING3.LIB.
14704 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14706 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14709 * config/i386/i386.c (x86_function_profiler)
14710 [!NO_PROFILE_COUNTERS]: Fix typo.
14711 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14714 2010-03-22 Janis Johnson <janis187@us.ibm.com>
14715 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14717 * doc/sourcebuild.texi (Test Directives): Split into six
14718 subsections, with most of the current text in new subsections
14719 Directives, Selectors, and Final Actions.
14720 (Directives): Split list of test directives into multiple
14722 (Selectors): Describe use and syntax of selectors.
14723 (Effective-Target Keywords): Describe all existing keywords.
14724 (Add Options): Describe features for dg-add-options.
14725 (Require Support): Describe variants of dg-require-support.
14726 (Final Actions): Describe commands to use in dg-final.
14728 2010-03-22 Michael Matz <matz@suse.de>
14730 PR middle-end/43475
14731 * recog.c (validate_replace_rtx_group): Replace also in
14732 REG_EQUAL and REG_EQUIV notes.
14734 2010-03-22 Richard Guenther <rguenther@suse.de>
14736 PR tree-optimization/43390
14737 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14738 sure vector extracts are type correct.
14740 2010-03-22 Richard Guenther <rguenther@suse.de>
14742 PR middle-end/40106
14743 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14744 x * sqrt (x) even when optimizing for size if the target
14745 has native support for sqrt.
14747 2010-03-22 Jakub Jelinek <jakub@redhat.com>
14749 * varasm.c (make_decl_rtl_for_debug): Also clear
14750 flag_mudflap for the duration of make_decl_rtl call.
14753 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14754 locs from preserved VALUEs.
14756 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14758 PR middle-end/42718
14759 * pa.md (movmemsi): Set align to one if zero.
14760 (movmemdi): Likewise.
14762 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
14765 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14766 with their corresponding prologue pushes.
14768 2010-03-20 Andrew Pinski <pinskia@gmail.com>
14771 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14772 at the begining or end.
14773 (spu_expand_epilogue): Likewise.
14775 2010-03-20 Richard Guenther <rguenther@suse.de>
14777 PR rtl-optimization/43438
14778 * combine.c (make_extraction): Properly zero-/sign-extend an
14779 extraction of the low part of a CONST_INT. Also handle
14782 2010-03-19 Mike Stump <mikestump@comcast.net>
14784 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14785 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14786 (override_options): Use SUBTARGET32_DEFAULT_CPU.
14788 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
14791 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14794 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
14796 PR rtl-optimization/42258
14797 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14798 use that may match DEF.
14801 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14802 the cost of loading the constant rather than assuming
14804 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14805 outer code is AND, do the same tests as the andsi3 expander and
14806 return COSTS_N_INSNS (1) if and is cheap.
14808 * optabs.c (avoid_expensive_constant): Fix formatting.
14810 2010-03-19 Michael Matz <matz@suse.de>
14813 * attribs.c (decl_attributes): When rebuilding a function pointer
14814 type use the same qualifiers as the original pointer type.
14816 2010-03-19 Martin Jambor <mjambor@suse.cz>
14818 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14819 and is_gimple_ip_invariant_address.
14821 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14824 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14826 * config/arm/arm.c (arm_override_options): Turn off
14827 flag_dwarf2_cfi_asm for AAPCS variants.
14829 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14832 * config/arm/arm.c (emit_multi_reg_push): Update comments.
14833 Use PRE_MODIFY instead of PRE_DEC.
14834 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14835 (vfp_emit_fstmd): Likewise.
14837 2010-03-19 Michael Matz <matz@suse.de>
14840 * builtins.c (expand_builtin_interclass_mathfn,
14841 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14844 2010-03-19 Richard Guenther <rguenther@suse.de>
14846 PR tree-optimization/43415
14847 * tree-ssa-pre.c (phi_translate): Split out worker to ...
14848 (phi_translate_1): ... this.
14849 (phi_translate): Move all caching here. Cache all NARY
14850 and REFERENCE translations.
14852 2010-03-19 David S. Miller <davem@davemloft.net>
14854 With help from Eric Botcazou.
14855 * config/sparc/sparc.c: Include dwarf2out.h.
14856 (emit_pic_helper): Delete.
14857 (pic_helper_symbol_name): Delete.
14858 (pic_helper_emitted_p): Delete.
14859 (pic_helper_needed): New.
14860 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14861 (get_pc_thunk_name): New.
14862 (load_pic_register): Remove 'delay_pic_helper' arg. Use
14863 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14864 Set pic_helper_needed to true. Don't call emit_pic_helper.
14865 (sparc_expand_prologue): Update load_pic_register call.
14866 (sparc_output_mi_thunk): Likewise.
14867 (sparc_file_end): Emit a hidden comdat symbol for the PIC
14868 thunk if possible. Output CFI information as needed.
14870 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14871 Jack Howarth <howarth@bromo.med.uc.edu>
14874 * config/i386/i386.h: Fix ABI on darwin x86-32.
14876 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
14878 * tree.h: Declare make_decl_rtl_for_debug.
14879 * varasm.c (make_decl_rtl_for_debug): New.
14880 * dwarf2out.c (rtl_for_decl_location): Call it.
14881 * cfgexpand.c (expand_debug_expr): Call it.
14883 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14886 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14890 * var-tracking.c (vt_init_cfa_base): Do nothing if
14891 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14893 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
14896 * var-tracking.c (canonicalize_vars_star): New.
14897 (dataflow_post_merge_adjust): Use it.
14899 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14902 * var-tracking.c (non_suitable_const): New function.
14903 (add_uses): For DEBUG_INSNs with constants, don't record any
14904 value, instead just the constant value itself.
14905 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14906 is not VAR_LOC_UNKNOWN_P, set var to the constant.
14907 (emit_notes_in_bb): Likewise.
14908 (emit_note_insn_var_location): For onepart variables if
14909 cur_loc is a VOIDmode constant, use DECL_MODE.
14911 2010-03-18 Martin Jambor <mjambor@suse.cz>
14913 PR middle-end/42450
14914 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14915 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14916 all non-clones. Moved call redirection...
14917 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14918 (cgraph_materialize_all_clones): Dispose of all
14919 combined_args_to_skip bitmaps.
14920 (verify_cgraph_node): Do not check for edges pointing to wrong
14921 nodes in inline clones.
14922 * tree-inline.c (copy_bb): Call
14923 cgraph_redirect_edge_call_stmt_to_callee.
14924 * ipa.c (cgraph_remove_unreachable_nodes): Call
14925 cgraph_node_remove_callees even when there are used clones.
14927 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14929 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14931 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14934 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14937 2010-03-18 Michael Matz <matz@suse.de>
14939 PR middle-end/43419
14940 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14941 into sqrt(x) if we need to preserve signed zeros.
14943 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
14944 Eric Botcazou <ebotcazou@adacore.com>
14946 PR rtl-optimization/43360
14947 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14948 note if we don't know its invariant status.
14950 2010-03-18 Michael Matz <matz@suse.de>
14952 PR tree-optimization/43402
14953 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14954 PHI chains of ssa names registered for update.
14956 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
14959 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14960 non-offsettable and pre_modify update addressing.
14961 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14962 and "2" alternatives "#".
14963 (*movdd_softfloat32): Make all alternatives "#";
14964 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14965 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14966 (*movdf_softfloat32): Make all alternatives "#";
14967 (movdi): Use the new DIFD mode iterator to create a common splitter
14968 for movdi, movdf and movdd patterns.
14970 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
14972 * common.opt (dumpdir): Remove redundant tab.
14974 2010-03-17 Martin Jambor <mjambor@suse.cz>
14976 PR tree-optimization/43347
14977 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14978 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14980 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
14982 PR rtl-optimization/42216
14983 * regrename.c (create_new_chain): New function, broken out from...
14984 (scan_rtx_reg): ... here. Call it. Handle the case where we are
14985 appending a use to an empty chain.
14986 (build_def_use): Remove previous changes that convert OP_INOUT to
14987 OP_OUT operands; instead detect the case where an OP_INOUT operand
14988 uses a previously untracked register and create an empty chain for it.
14990 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14992 * doc/extend.texi (Function Attributes): Rewrite unfinished
14993 sentence in ms_abi documentation.
14995 2010-03-17 Alan Modra <amodra@gmail.com>
14997 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14998 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14999 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15000 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15002 2010-03-16 Richard Henderson <rth@redhat.com>
15004 PR middle-end/43365
15005 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15006 (lower_try_finally): Save and restore eh_seq around the expansion
15007 of the try-finally.
15009 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15011 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15012 statements before splitting block.
15014 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15016 * doc/sourcebuild.texi (Testsuites): Fix markup.
15017 Use pathnames relative to gcc/testsuite.
15018 (Test Directives): Move description of how timeout is determined.
15019 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15020 (C Tests): Correct gcc.misc-tests directory.
15021 Framework tests now live in gcc.test-framework.
15023 2010-03-16 Richard Guenther <rguenther@suse.de>
15025 PR middle-end/43379
15026 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15027 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15029 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15030 Alexandre Oliva <aoliva@redhat.com>
15032 PR tree-optimization/42917
15033 * lambda-code.c (remove_iv): Skip debug statements.
15034 (lambda_loopnest_to_gcc_loopnest): Likewise.
15035 (not_interesting_stmt): Debug statements are not interesting.
15037 2010-03-16 Jakub Jelinek <jakub@redhat.com>
15041 * cselib.c (cselib_preserve_constants,
15042 cfa_base_preserved_val): New static variables.
15043 (preserve_only_constants): New function.
15044 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15045 clear its REG_VALUES. If cselib_preserve_constants, don't
15046 empty the whole hash table, but preserve there VALUEs with constants,
15047 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15048 (cselib_preserve_cfa_base_value): New function.
15049 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15050 (cselib_init): Change argument to int bitfield. Set
15051 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15053 (cselib_finish): Clear cselib_preserve_constants and
15054 cfa_base_preserved_val.
15055 * cselib.h (enum cselib_record_what): New enum.
15056 (cselib_init): Change argument to int.
15057 (cselib_preserve_cfa_base_value): New prototype.
15058 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15059 * dse.c (dse_step1): Likewise.
15060 * cfgcleanup.c (thread_jump): Likewise.
15061 * sched-deps.c (sched_analyze): Likewise.
15062 * gcse.c (local_cprop_pass): Likewise.
15063 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15064 If FN is non-NULL, call the callback always and whenever it returns
15065 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
15066 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15067 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15068 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15069 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15070 * var-tracking.c: Include recog.h.
15071 (bb_stack_adjust_offset): Remove.
15072 (vt_stack_adjustments): Don't call it, instead just gather the
15073 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15074 (adjust_stack_reference): Remove.
15075 (compute_cfa_pointer): New function.
15076 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15077 (struct adjust_mem_data): New type.
15078 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15080 (get_address_mode): New function.
15081 (replace_expr_with_values): Use it.
15082 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15083 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
15084 (adjust_sets): Remove.
15085 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15086 Use get_address_mode.
15087 (get_adjusted_src): Remove.
15088 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
15089 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
15090 (add_with_sets): Don't call adjust_sets.
15091 (fp_setter, vt_init_cfa_base): New functions.
15092 (vt_initialize): Change return type to bool. Move most of pool etc.
15093 initialization to the beginning of the function from end. Pass
15094 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15095 If !frame_pointer_needed, call vt_stack_adjustment before mos
15096 vector is filled, call vt_init_cfa_base if argp/framep has been
15097 eliminated to sp. If frame_pointer_needed and argp/framep has
15098 been eliminated to hard frame pointer, set
15099 hard_frame_pointer_adjustment and call vt_init_cfa_base after
15100 encountering fp setter in the prologue. For MO_ADJUST, call
15101 log_op_type before pusing the op into mos vector, not afterwards.
15102 Call adjust_insn before cselib_process_insn/add_with_sets,
15103 call cancel_changes (0) afterwards.
15104 (variable_tracking_main_1): Adjust for vt_initialize calling
15105 vt_stack_adjustments and returning whether it succeeded or not.
15107 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
15109 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15112 2010-03-15 Jakub Jelinek <jakub@redhat.com>
15114 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15116 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15117 drap_reg has not been set.
15119 2010-03-15 Michael Matz <matz@suse.de>
15121 PR middle-end/43300
15122 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15123 use it to expand block copies.
15124 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15125 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15126 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15128 2010-03-15 Richard Guenther <rguenther@suse.de>
15130 PR tree-optimization/43367
15131 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15134 2010-03-15 Richard Guenther <rguenther@suse.de>
15136 PR tree-optimization/43317
15137 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15139 2010-03-15 Martin Jambor <mjambor@suse.cz>
15141 PR tree-optimization/43141
15142 * tree-sra.c (create_abstract_origin): New function.
15143 (modify_function): Call create_abstract_origin.
15145 2010-03-15 Chris Demetriou <cgd@google.com>
15147 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15150 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15152 PR middle-end/43354
15153 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15154 call insert_out_of_ssa_copy for default definitions.
15156 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15158 * graphite-clast-to-gimple.c (my_long_long): Defined.
15159 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15160 * graphite-sese-to-poly.c (my_long_long): Defined.
15161 (scop_ivs_can_be_represented): Use it.
15163 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15165 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15166 graphite-max-bbs-per-function, and loop-block-tile-size.
15167 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15169 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15171 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15173 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15174 forward declaration.
15175 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15176 (add_upper_bounds_from_estimated_nit): New.
15177 (build_loop_iteration_domains): Use it.
15179 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15181 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15183 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15185 PR middle-end/43306
15186 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15187 should be an INTEGER_CST. Also handle CASE_CONVERT.
15189 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15191 * graphite.c (graphite_initialize): To bound the number of bbs per
15192 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15193 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15194 * doc/invoke.texi: Document it.
15196 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15198 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15199 * graphite-sese-to-poly.h (build_poly_scop): Same.
15201 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15203 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15204 the number of parameters in the scop. Use as an upper bound
15205 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15206 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15207 * doc/invoke.texi: Document it.
15209 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
15211 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15212 * doc/c-tree.texi: Remove.
15213 * doc/generic.texi: Merge c-tree.texi here.
15214 * doc/gccint.texi (Trees): Remove menu entry.
15215 (c-tree.texi): Remove @include.
15216 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15217 * doc/languages.texi (Reading RTL): Ditto.
15219 2010-03-12 Steve Ellcey <sje@cup.hp.com>
15222 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15224 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15226 PR middle-end/42431
15227 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15228 code added to work around reload clobbering CONST insns.
15230 2010-03-12 Jakub Jelinek <jakub@redhat.com>
15232 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15233 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15234 (cselib_preserve_only_values): Remove retain argument, don't
15235 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15236 * cselib.h (cselib_preserve_only_values): Remove retain argument.
15237 * var-tracking.c (micro_operation): Move insn field before union.
15238 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15239 (struct variable_tracking_info_def): Remove n_mos field, change
15240 mos into a vector of micro_operations.
15241 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15242 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15243 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15244 changing into a vector.
15245 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
15246 come before all other uops generated by add_stores.
15247 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15249 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
15250 a vector. Run just one pass over the bbs instead of separate counting
15251 and computation phase.
15252 (vt_finalize): Free VTI (bb)->mos vector instead of array.
15255 * tree-inline.c (remap_decls): Put old_var rather than origin_var
15256 into *nonlocalized_list vector.
15257 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15258 even if origin is non-NULL.
15259 (gen_variable_die): Likewise.
15260 (process_scope_var): Don't change origin.
15261 (gen_decl_die): Likewise.
15262 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15263 before adding new edges instead of after it, fix moving over
15266 2010-03-11 David S. Miller <davem@davemloft.net>
15268 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
15270 * configure: Rebuild.
15272 2010-03-11 Martin Jambor <mjambor@suse.cz>
15274 PR tree-optimization/43257
15275 * tree.c (assign_assembler_name_if_neeeded): New function.
15276 (free_lang_data_in_cgraph): Assembler name assignment moved to the
15277 above new function.
15278 * tree.h (assign_assembler_name_if_neeeded): Declare.
15279 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
15280 the function if needed.
15282 2010-03-11 Chris Demetriou <cgd@google.com>
15284 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
15285 include/stdint-gcc.h, and include/stdint.h world-readable.
15287 2010-03-11 Richard Guenther <rguenther@suse.de>
15289 PR tree-optimization/43255
15290 * tree-vrp.c (process_assert_insertions_for): Do not insert
15291 asserts for trivial conditions.
15293 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15295 PR tree-optimization/43280
15296 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
15297 generation. Move calculation of size out of the if branch.
15298 (find_bswap): Modify compare number generation.
15300 2010-03-11 Richard Guenther <rguenther@suse.de>
15303 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
15304 (input_gimple_stmt): Fixup handled component types during
15305 operand read. Also fix up decls in ADDR_EXPRs.
15307 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
15309 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
15310 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
15312 2010-03-10 Jan Hubicka <jh@suse.cz>
15315 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
15316 * varasm.c (get_variable_section): Don't do that here...
15317 (make_decl_rtl): ... and here.
15318 (do_assemble_alias): Produce decl RTL.
15319 (assemble_alias): Likewise.
15321 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15324 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
15325 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
15327 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
15328 (based_loc_descr): Only express drap or vdrap regno based expressions
15329 using DW_OP_fbreg when not optimizing.
15330 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
15331 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
15332 REG_CFA_SET_VDRAP note.
15334 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
15336 PR tree-optimization/43236
15337 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
15338 error in calculation of base address in reverse iteration case.
15339 (generate_builtin): Take number of latch executions if the statement
15342 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
15344 PR middle-end/42859
15345 * tree-eh.c: Include pointer-set.h.
15346 (lower_eh_dispatch): Filter out duplicate case labels and
15347 remove the unneeded edge when the label is unused. Return
15348 true when some edges are removed.
15349 (execute_lower_eh_dispatch): When any lowering resulted in
15350 removing an edge, also delete unreachable blocks.
15352 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15355 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15356 UNSPEC_MACHOPIC_OFFSET.
15358 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
15361 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15362 (m68k_delegitimize_address): New function.
15364 2010-03-09 Jakub Jelinek <jakub@redhat.com>
15367 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15370 * var-tracking.c (adjust_sets): New function.
15371 (count_with_sets, add_with_sets): Use it.
15372 (get_adjusted_src): New inline function.
15373 (add_stores): Use it.
15376 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15377 call cselib_dummy_expand_value_rtx_cb instead of
15378 cselib_expand_value_rtx_cb.
15381 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15382 * config/i386/i386.c: Include debug.h and dwarf2out.h.
15383 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15384 and .cfi_endproc around the pic thunks.
15385 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15386 all queued unwind info register saves are saved before the call.
15387 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15388 considered as sp-=4 for unwind info and the pop as sp+=4 which
15389 also clobbers dest, but doesn't actually restore it.
15392 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15393 RTX_FRAME_RELATED_P.
15395 2010-03-09 Jie Zhang <jie@codesourcery.com>
15397 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15398 whitespaces in output template.
15400 2010-03-09 Jie Zhang <jie@codesourcery.com>
15402 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15403 out array boundary.
15405 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15407 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15408 builtins.exp in a separate job.
15410 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15412 * graphite-sese-to-poly.c (add_param_constraints): Use
15413 lower_bound_in_type and upper_bound_in_type.
15415 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15417 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15418 instead of unsigned_type_node.
15420 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15421 Reza Yazdani <reza.yazdani@amd.com>
15423 PR middle-end/43065
15424 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15425 on pointer type parameters.
15427 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15429 PR middle-end/42644
15430 PR middle-end/42130
15431 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15432 handle conversions from pointer to integers.
15433 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15434 induction variable, to be able to work with code generated by CLooG.
15435 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15436 (build_poly_scop): Bail out if we cannot codegen a loop.
15438 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15440 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15441 code generation with gloog_error.
15443 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15445 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15446 Call fold_convert on all the returned values.
15447 (expand_scalar_variables_expr): Pass to
15448 expand_scalar_variables_ssa_name the type of the resulting expression.
15450 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15452 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15453 ppl_min_for_le_pointset.
15454 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15455 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15457 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15459 * graphite-dependences.c (map_into_dep_poly): Removed.
15460 (dependence_polyhedron_1): Use combine_context_id_scat.
15462 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15464 * graphite-poly.h (struct poly_scattering): Add layout documentation.
15465 (struct poly_bb): Same.
15466 (combine_context_id_scat): New.
15468 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15470 PR middle-end/42326
15471 * sese.c (name_defined_in_loop_p): Return false for default
15474 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15476 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15477 and clean up the logic.
15479 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15481 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15484 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15486 * var-tracking.c (remove_cselib_value_chains): Define only for
15488 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15489 delete_slot_part, emit_notes_for_differences_1): Don't call
15490 remove_cselib_value_chains here.
15491 (set_slot_part, emit_notes_for_differences_2): Don't call
15492 add_cselib_value_chains here.
15493 (preserved_values): New vector.
15494 (preserve_value): New function.
15495 (add_uses, add_stores, vt_add_function_parameters): Use it
15496 instead of cselib_preserve_value.
15497 (changed_values_stack): New vector.
15498 (check_changed_vars_0): New function.
15499 (check_changed_vars_1, check_changed_vars_2): Use it.
15500 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15501 changed_values_stack VALUEs.
15502 (vt_emit_notes): For all preserved_values call
15503 add_cselib_value_chains. If ENABLE_CHECKING call
15504 remove_cselib_value_chains before verifying value_chains is empty.
15505 Initialize and free changed_values_stack.
15506 (vt_initialize): Initialize preserved_values.
15507 (vt_finalize): Free preserved_values.
15509 2010-03-08 Richard Guenther <rguenther@suse.de>
15511 PR tree-optimization/43269
15512 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15515 2010-03-08 Martin Jambor <mjambor@suse.cz>
15517 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15518 (ipa_is_param_called): Removed.
15519 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15520 (ipa_print_node_params): Do not print the called flag.
15521 (ipa_write_node_info): Do not stream the called flag.
15522 (ipa_read_node_info): Likewise.
15524 2010-03-07 Jakub Jelinek <jakub@redhat.com>
15527 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15528 * cselib.c (struct expand_value_data): Add dummy field.
15529 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15531 (cselib_dummy_expand_value_rtx_cb): New function.
15532 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15534 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15535 * var-tracking.c: Include pointer-set.h.
15536 (variable): Change n_var_parts to char from int. Add
15537 cur_loc_changed and in_changed_variables fields.
15538 (variable_canonicalize): Remove.
15539 (shared_var_p): New inline function.
15540 (unshare_variable): Maintain cur_loc_changed and
15541 in_changed_variables fields. If var was in changed_variables,
15542 replace it there with new_var. Just copy cur_loc instead of
15543 resetting it to something else.
15544 (variable_union): Don't recompute cur_loc. Use shared_var_p.
15545 (dataflow_set_union): Don't call variable_canonicalize.
15546 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15547 of their DEBUG_EXPR_TREE_DECLs.
15548 (canonicalize_loc_order_check): Verify that cur_loc is NULL
15549 and in_changed_variables and cur_loc_changed is false.
15550 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15551 and cur_loc_changed. Don't update cur_loc here.
15552 (variable_merge_over_src): Don't call variable_canonicalize.
15553 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
15554 removing loc that is equal to cur_loc, clear cur_loc,
15555 set cur_loc_changed and ensure variable_was_changed is called.
15556 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
15557 compare pointers in cur_loc check, if it is equal to loc,
15558 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
15559 (variable_different_p): Remove compare_current_location argument,
15560 don't compare cur_loc.
15561 (dataflow_set_different_1): Adjust variable_different_p caller.
15562 (variable_was_changed): If dv had some var in changed_variables
15563 already, reset in_changed_variables flag for it and propagate
15564 cur_loc_changed over to the new variable. On empty var
15565 always set cur_loc_changed. Set in_changed_variables on whatever
15566 var is added to changed_variables.
15567 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15568 Use shared_var_p. When removing loc that is equal to cur_loc,
15569 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
15570 end, don't set it to something else, just call variable_was_changed.
15571 (delete_slot_part): Use shared_var_p. When cur_loc equals to
15572 loc being removed, clear cur_loc and set cur_loc_changed.
15573 Set cur_loc_changed if all locations have been removed.
15574 (struct expand_loc_callback_data): New type.
15575 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15576 allocated. Always create SUBREGs if simplify_subreg failed.
15577 Prefer to use cur_loc, when that fails and still in
15578 changed_variables (and seen first time) recompute it. Set
15579 cur_loc_changed of variables which had to change cur_loc and
15580 compute elcd->cur_loc_changed if any of the subexpressions used
15581 had to change cur_loc.
15582 (vt_expand_loc): Adjust to pass arguments in
15583 expand_loc_callback_data structure.
15584 (vt_expand_loc_dummy): New function.
15585 (emitted_notes): New variable.
15586 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15587 that weren't used for any other decl in current
15588 emit_notes_for_changes call call vt_expand_loc_dummy to update
15589 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
15590 first loc_chain location if NULL before. Always use just
15591 cur_loc instead of first loc_chain location. When cur_loc_changed
15592 is false, when not --enable-checking=rtl just don't emit any note.
15593 When rtl checking, compute the note and assert it is the same
15594 as previous note. Clear cur_loc_changed and in_changed_variables
15595 at the end before removing from changed_variables.
15596 (check_changed_vars_3): New function.
15597 (emit_notes_for_changes): Traverse changed_vars to call
15598 check_changed_vars_3 on each changed var.
15599 (emit_notes_for_differences_1): Clear cur_loc_changed and
15600 in_changed_variables. Recompute cur_loc of new_var.
15601 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15602 (vt_emit_notes): Initialize and destroy emitted_notes.
15604 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
15606 PR rtl-optimization/42220
15607 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15608 Use verify_reg_tracked to determine if we should use OP_OUT rather
15610 (build_def_use): If we see an in-out operand for a register that we
15611 know nothing about, treat is an output if possible, fail the block if
15614 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15617 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15620 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15623 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15624 uses of relevant DEFs that are dead outside the loop too.
15626 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15628 * var-tracking.c (dataflow_set_merge): Swap src and src2.
15630 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15632 * var-tracking.c (values_to_unmark): New variable.
15633 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15634 values_to_unmark vector. Moved body to...
15635 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15636 instead queue it into values_to_unmark vector.
15637 (vt_find_locations): Free values_to_unmark vector.
15639 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
15641 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15642 (site.exp): Export them when plugins are enabled.
15644 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
15646 PR middle-end/42326
15647 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15648 that contain scevs.
15649 (chrec_fold_multiply): Same.
15651 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15654 * c-decl.c (build_compound_literal): Return early if init is
15655 an error_mark_node.
15657 2010-03-04 Martin Jambor <mjambor@suse.cz>
15659 PR tree-optimization/43164
15660 PR tree-optimization/43191
15661 * tree-sra.c (type_consists_of_records_p): Reject records with
15662 zero-size bit-fields at the end.
15664 2010-03-04 Mike Stump <mikestump@comcast.net>
15666 * Makefile.in (TAGS): Remove *.y.
15668 2010-03-04 Richard Guenther <rguenther@suse.de>
15670 PR tree-optimization/40761
15671 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15673 (my_rev_post_order_compute): New function.
15674 (init_pre): Call it.
15676 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
15678 PR middle-end/43209
15679 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15680 decrease the cost of an IV candidate when the cost is infinite.
15682 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15684 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15685 Use '3DNow!' for the extension of that name, ensure normal space
15687 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15689 2010-03-03 Jeff Law <law@redhat.com>
15691 * PR middle-end/32693
15692 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15693 than gen_rtx_SUBREG.
15694 (extract_bit_field_1): Likewise.
15696 2010-03-03 Janis Johnson <janis187@us.ibm.com>
15698 * doc/sourcebuild.texi (Test directives): Document that arguments
15699 include-opts and exclude-opts are now optional for dg-skip-if,
15700 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15702 2010-03-03 Jason Merrill <jason@redhat.com>
15705 * cgraph.h (varpool_node): Add extra_name field.
15706 * varpool.c (varpool_extra_name_alias): New.
15707 (varpool_assemble_decl): Emit extra name aliases.
15708 (varpool_mark_needed_node): Look past an extra name alias.
15709 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15710 * lto-streamer-in.c (lto_input_tree): Read it.
15711 * lto-streamer-out.c (output_unreferenced_globals): Write it.
15713 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
15715 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15716 (sparc*-*-solaris2*): ...this.
15718 2010-03-03 Jakub Jelinek <jakub@redhat.com>
15721 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15722 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
15723 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15724 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15727 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15728 fallthrough to default handling, just with want_address 0 instead of 2.
15729 For single element lists, add_AT_loc directly, otherwise create an
15730 artificial variable DIE and stick location list to it.
15733 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15734 (VAL_EXPR_HAS_REVERSE): Define.
15735 (reverse_op): New function.
15736 (add_stores): For reversible operations add an extra MO_VAL_USE.
15738 2010-03-02 Jason Merrill <jason@redhat.com>
15740 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15742 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
15744 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15745 (sparc64-*-linux*): Likewise.
15746 (sparc64-*-solaris2*): Include assembler files before linker ones.
15747 (sparc-*-solaris2*): Simplify and reorder to match previous case.
15748 * config/sparc/gas.h: Delete.
15749 * config/sparc/sol2-64.h: Add copyright notice.
15750 * config/sparc/sol2-gas-bi.h: Likewise.
15751 * config/sparc/sol2-gld.h: Likewise.
15752 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15753 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15754 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15755 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15756 (sparc_elf_asm_named_section): Rename into...
15757 (sparc_solaris_elf_asm_named_section): ...this. Always define.
15759 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
15761 * config/alpha/alpha.c (override_options): Fix -mtune error message.
15763 2010-03-02 Jeff Law <law@redhat.com>
15765 PR middle-end/42431
15766 * reload1.c (rtx_p, substitute_stack): Declare.
15767 (substitute): Record addresses of changed rtxs.
15768 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15769 Restore the original rtx when complete.
15770 (reload): Free subsitute_stack when complete.
15772 2010-03-02 Janis Johnson <janis187@us.ibm.com>
15774 * doc/gccint.texi (menu): Add Testsuites as a chapter.
15775 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15777 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15778 LTO Testing, gcov Testing, profopt Testing, compat Testing,
15779 Torture Tests): Change from subsection to section.
15781 2010-03-02 Jakub Jelinek <jakub@redhat.com>
15782 Steven Bosscher <steven@gcc.gnu.org>
15784 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15787 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
15789 PR middle-end/42640
15790 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15791 the assignment from the new induction variable to the assignment
15792 of the value from the original loop PHI function.
15794 2010-03-01 Janis Johnson <janis187@us.ibm.com>
15795 Daniel Jacobowitz <dan@codesourcery.com>
15797 * doc/sourcebuild.texi (Test directives): Clarify options to
15800 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15802 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15803 Disable cfi directives unless GCC and gas agree on using read-only
15804 .eh_frame sections for 64-bit.
15805 * configure: Regenerate.
15807 2010-03-01 Richard Guenther <rguenther@suse.de>
15809 PR tree-optimization/43220
15810 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15811 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15813 2010-03-01 Richard Guenther <rguenther@suse.de>
15814 Martin Jambor <mjambor@suse.cz>
15816 PR middle-end/41250
15817 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15818 gimplified parameters.
15820 2010-03-01 Christian Bruel <christian.bruel@st.com>
15822 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15824 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15826 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15828 2010-03-01 Richard Guenther <rguenther@suse.de>
15830 PR middle-end/43213
15831 * expr.c (expand_assignment): Use the alias-oracle to tell
15832 if the rhs aliases the result decl.
15834 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15837 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15838 to sol_gt_pch_get_address.
15839 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15840 64-bit, SPARC and x86.
15841 (sol_gt_pch_get_address): New function.
15843 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
15845 * toplev.h (inform_n, error_n): Declare.
15846 * diagnostic.c (inform_n, error_n): New function.
15848 2010-03-01 Jakub Jelinek <jakub@redhat.com>
15850 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15851 has no rtl yet when processing local_decls, queue it and recheck
15852 if deferred stack allocation hasn't assigned it rtl.
15854 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
15856 * config/sh/sh.c (unspec_bbr_uid): New.
15857 (gen_block_redirect): Use it instead of INSN_UID.
15858 (gen_far_branch): Likewise.
15860 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
15862 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15863 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15865 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15867 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15868 (Warning Options): -Wno-conversion-null is valid for
15869 Objective-C++ as well.
15870 * doc/tm.texi (Named Address Spaces): Likewise.
15871 * doc/plugins.texi (Plugins): Replace TABs with spaces.
15872 * doc/tree-ssa.texi (Tree SSA): Likewise.
15874 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15877 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15878 by default. Don't set the default arch for
15879 i[34567]86-*-darwin*|x86_64-*-darwin*.
15881 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15884 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15885 default. Set the default 32bit/64bit archs with $with_arch
15886 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15888 2010-02-27 Richard Guenther <rguenther@suse.de>
15890 PR tree-optimization/43186
15891 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15892 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15893 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15894 unroller iterations.
15896 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15898 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15899 required and i[34567]86-*-* targets don't support 64bit ISA.
15901 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
15904 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15905 the same alias set.
15907 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15909 * config.gcc: Set the default arch at least to Prescott for
15910 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15911 if SSE math is enabled.
15913 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15915 * diagnostic.c (diagnostic_initialize): Update.
15916 (diagnostic_report_diagnostic): Test inhibit_notes_p for
15918 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15919 (diagnostic_inhibit_notes): New.
15920 * toplev.c (process_options): inhibit notes with -fcompare-debug.
15922 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15925 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15926 * doc/standards.texi: Likewise.
15927 * doc/extend.texi: Likewise.
15928 * doc/trouble.texi: Likewise.
15929 * doc/cppopts.texi: Likewise.
15930 * doc/install.texi: Likewise.
15931 * c.opt (std=c90,std=gnu90): New options.
15932 * c-opts.c (c_common_handle_option): Handle them.
15934 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15937 * c-decl.c (undeclared_variable): Use an informative note.
15939 2010-02-26 Richard Guenther <rguenther@suse.de>
15941 PR tree-optimization/43186
15942 * gimple.h (gimple_fold): Remove.
15943 * gimple.c (gimple_fold): Remove. Inline into single user ...
15944 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15945 Try harder for conditions.
15947 2010-02-26 Jakub Jelinek <jakub@redhat.com>
15950 * function.c (used_types_insert): Don't skip through named pointer
15951 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
15952 and it is different from the main variant's type.
15954 2010-02-26 Nick Clifton <nickc@redhat.com>
15956 * config/rx/rx.md (sminsi3): Remove bogus alternative.
15958 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15960 * config.gcc: Support --with-fpmath=sse for x86.
15962 * config/i386/ssemath.h: New.
15964 * doc/install.texi (--with-fpmath=sse): Documented.
15966 2010-02-26 Richard Guenther <rguenther@suse.de>
15968 PR tree-optimization/43188
15969 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15970 vector types of over-aligned element type.
15972 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
15975 * config/i386/i386.c (expand_vec_perm_blend): Use correct
15976 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
15978 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15980 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15982 2010-02-26 Jakub Jelinek <jakub@redhat.com>
15984 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15985 * var-tracking.c: Include diagnostic.h.
15986 (debug_dv): New function.
15987 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15990 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15991 (add_value_chain, add_value_chains, remove_value_chain,
15992 remove_value_chains): Handle DEBUG_EXPRs.
15993 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15996 * regcprop.c (struct queued_debug_insn_change): New type.
15997 (struct value_data_entry): Add debug_insn_changes field.
15998 (struct value_data): Add n_debug_insn_changes field.
15999 (debug_insn_changes_pool): New variable.
16000 (free_debug_insn_changes, apply_debug_insn_changes,
16001 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16002 (kill_value_one_regno): Call free_debug_insn_changes if needed.
16003 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16005 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16007 (copyprop_hardreg_forward_1): Don't call apply_change_group for
16008 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
16009 changes, call cprop_find_used_regs via note_stores.
16010 (copyprop_hardreg_forward): When copying vd from predecessor
16011 which has any queued DEBUG_INSN changes, make sure the pointers are
16012 cleared. At the end call df_analyze and then if there are any
16013 DEBUG_INSN changes queued at the end of some basic block for still
16014 live registers, apply them.
16015 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16017 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
16019 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16022 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
16024 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16025 targets. Set the default with_cpu/with_arch from arch/cpu.
16026 Allow x86-64 and native for with_cpu/with_arch.
16028 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
16030 * ebitmap.c: Change calls to verify_popcount with calls to
16031 sbitmap_verify_popcount.
16032 (ebitmap_clear_bit): Fixed map->cacheindex test and
16033 map>cache update when bit clearing results in an empty
16036 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16039 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16040 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16041 and support both V2DF and V2DI modes.
16042 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16043 support both V2DF and V2DI modes.
16044 (general): Delete trailing whitespace from a few patterns.
16046 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16047 V2DF/V2DI interleave high/low builtins.
16049 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16052 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16053 interleave high/low functions.
16055 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16057 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16058 #pragma extern_prefix.
16060 2010-02-25 Jakub Jelinek <jakub@redhat.com>
16063 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16064 BLKmode, assert op0 is a MEM and just adjust its mode.
16067 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16068 if bitpos isn't multiple of mode's bitsize.
16070 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16072 * c.opt (-ftemplate-depth=): New.
16073 (-ftemplate-depth-): Deprecate.
16074 * optc-gen.awk: Handle -ftemplate-depth=.
16075 * opth-gen.awk: Likewise.
16076 * c-opts.c (c_common_handle_option): Likewise.
16077 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16079 2010-02-24 Jason Merrill <jason@redhat.com>
16081 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16083 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16085 * cfg.c (alloc_aux_for_block): Remove inline.
16086 (alloc_aux_for_edge): Likewise.
16088 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16090 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16092 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16094 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16095 * config/i386/sol2-gas.h: New file.
16096 * config.gcc (i[34567]86-*-solaris2*): Use it.
16098 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16101 * c-typeck.c (ep_convert_and_check): New.
16102 (build_conditional_expr): Use it.
16103 (build_binary_op): Likewise.
16105 2010-02-24 Jakub Jelinek <jakub@redhat.com>
16107 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16110 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16111 bounds even for -O+.
16112 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16113 expr needs to have DECL_NAME set.
16115 2010-02-24 Nick Clifton <nickc@redhat.com>
16117 * config/mep/mep.c: Include gimple.h.
16118 (mep_function_uses_sp): Delete unused function.
16119 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16120 parameters. Use unsigned integers to count args. Return a
16121 NULL_RTX instead of an error_mark_node. Toidy up formatting.
16123 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16126 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16127 greater or equal to nelt instead of 2 * nelt.
16128 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16131 2010-02-23 Jason Merrill <jason@redhat.com>
16134 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16135 in cfun->local_decls even if they have register types.
16138 * stor-layout.c (place_field): Don't warn about unnecessary
16139 DECL_PACKED if the type is packed.
16141 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16144 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16145 GOTOFF relocs, even when the base reg isn't pic pointer.
16147 2010-02-23 Michael Matz <matz@suse.de>
16150 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16151 (expand_gimple_basic_block): Generate and use debug temps if there
16152 are debug uses left after the last real use of TERed ssa names.
16153 Unlink debug immediate uses when they are expanded.
16155 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16158 * config/i386/i386.c (override_options): Reorganise to provide
16159 better error messages.
16161 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16163 PR middle-end/43083
16164 * graphite-scop-detection.c (create_single_exit_edge): Move
16165 the call to find_single_exit_edge to....
16166 (create_sese_edges): ...here. Don't handle multiple edges
16167 exiting the function.
16168 (build_graphite_scops): Don't handle multiple edges
16169 exiting the function.
16171 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16173 PR middle-end/43097
16174 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16175 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16177 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16179 PR middle-end/43026
16180 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16182 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
16185 * c-typeck.c (convert_arguments): Print declaration location.
16186 * c-common.c (validate_nargs): Rename as
16187 builtin_function_validate_nargs.
16188 (check_builtin_function_arguments): Update.
16190 2010-02-22 Richard Guenther <rguenther@suse.de>
16193 * tree-inline.c (declare_return_variable): Use the type of
16194 the call stmt lhs if available.
16196 2010-02-22 Duncan Sands <baldrick@free.fr>
16198 * passes.c (register_pass): Always consider all pass lists when
16199 ref_pass_instance_number is zero.
16201 2010-02-22 Richard Guenther <rguenther@suse.de>
16203 PR tree-optimization/42749
16204 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16205 parameter. Do arithmetic in the original type.
16206 (update_accumulator_with_ops): Likewise.
16207 (adjust_accumulator_values): Adjust.
16209 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16211 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16212 (QI to BLKmode splitter): New splitter.
16214 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
16216 * config/i386/i386.c (initial_ix86_tune_features): Turn on
16217 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16219 2010-02-22 Richard Guenther <rguenther@suse.de>
16221 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16223 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
16225 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16226 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16227 ($(T)crti.o, $(T)crtn.o): Remove rules.
16229 2010-02-21 Tobias Burnus <burnus@net-b.de>
16232 * doc/invoke.texi (-fassociative-math): Document that this
16233 option is automatically enabled for Fortran.
16235 2010-02-20 David S. Miller <davem@davemloft.net>
16237 * configure.ac: Test if linker and assembler properly support
16238 GOTDATA_OP relocations.
16239 * configure: Rebuild.
16240 * config.in: Likewise.
16241 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16242 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16243 (movsi_high_pic): Likewise.
16244 (movdi_lo_sum_pic): Likewise.
16245 (movdi_high_pic): Likewise.
16246 (movsi_pic_gotdata_op): New pattern.
16247 (movdi_pic_gotdata_op): Likewise.
16248 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16249 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16251 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
16254 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16255 attribute to ssemul.
16256 (xop_mulv2div2di3_high): Ditto.
16258 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16261 * c.opt (Wconversion-null): New option.
16262 * doc/invoke.texi (Wconversion-null): Document.
16264 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16266 * common.opt (Wlarger-than-): Add Undocumented.
16268 2010-02-19 Mike Stump <mikestump@comcast.net>
16270 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
16272 2010-02-19 Jason Merrill <jason@redhat.com>
16275 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
16276 * configure: Likewise.
16278 2010-02-20 Alan Modra <amodra@gmail.com>
16280 PR middle-end/42344
16281 * cgraph.h (cgraph_make_decl_local): Declare.
16282 * cgraph.c (cgraph_make_decl_local): New function.
16283 (cgraph_make_node_local): Use it.
16284 * cgraphunit.c (cgraph_function_versioning): Likewise.
16285 * ipa.c (function_and_variable_visibility): Likewise.
16287 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16290 * except.c (sjlj_emit_function_enter): Don't call
16291 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
16293 * rtl.h (add_reg_br_prob_note): Remove prototype.
16295 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16298 * c-common.c (conversion_warning): Remove widening conversions
16299 before checking the conversion of integers to reals.
16301 2010-02-19 Mike Stump <mikestump@comcast.net>
16303 PR middle-end/43125
16304 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
16307 * cgraphunit.c (process_function_and_variable_attributes): Check
16308 DECL_PRESERVE_P instead of looking up attribute "used".
16309 * ipa-pure-const.c (check_decl): Likewise.
16310 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
16311 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
16312 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
16313 instead of attribute "used".
16314 * config/sol2-c.c (solaris_pragma_init): Likewise.
16315 (solaris_pragma_fini): Likewise.
16317 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16319 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
16320 Use XCNEW instead of xcalloc.
16321 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
16322 XNEW instead of xmalloc.
16323 (get_fields): Use XNEWVEC instead of xmalloc.
16326 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
16327 populate vars array.
16328 (create_new_general_access): For debug stmts just reset value.
16329 (get_stmt_accesses): For accesses within debug stmts just record them
16330 using add_access_to_acc_sites instead of preventing the peeling or
16331 counting them as accesses.
16333 PR middle-end/42233
16334 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
16336 2010-02-19 Richard Guenther <rguenther@suse.de>
16338 PR tree-optimization/42916
16339 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
16342 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
16344 * configure.ac: Replace all uses of changequote in macro arguments
16345 with proper quoting.
16347 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16349 PR middle-end/42233
16350 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16352 2010-02-19 Richard Guenther <rguenther@suse.de>
16354 PR tree-optimization/42944
16355 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16356 test for aliasing with errno.
16358 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16360 PR middle-end/42233
16361 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16362 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16363 * dojump.c: Include output.h.
16364 (inv): New inline function.
16365 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16366 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16367 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16368 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16369 argument, pass it down to other calls.
16370 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
16371 add REG_BR_PROB note to the conditional jump.
16372 * cfgexpand.c (add_reg_br_prob_note): Removed.
16373 (expand_gimple_cond): Don't call it, add the probability
16374 as last argument to jumpif_1/jumpifnot_1.
16375 * Makefile.in (dojump.o): Depend on output.h.
16376 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16378 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16379 * stmt.c (do_jump_if_equal): Likewise.
16380 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16381 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16382 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16384 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16385 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16386 jumpifnot_1 callers.
16387 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16389 (store_expr): Adjust jumpifnot caller.
16390 (store_constructor): Adjust jumpif caller.
16392 PR middle-end/42233
16393 * gimplify.c (gimple_boolify): For __builtin_expect call
16394 gimple_boolify also on its first argument.
16396 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
16398 * configure.ac (gnu-unique-object): Wrap regexps using [] in
16400 (__stack_chk_fail): Ditto. Remove quadrigraphs.
16401 * configure: Regenerated.
16403 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16405 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16406 lang_hooks.types_compatible_p instead of comptypes.
16408 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
16410 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16411 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16412 if __prefer_thumb__ is defined.
16414 2010-02-18 Martin Jambor <mjambor@suse.cz>
16416 PR tree-optimization/43066
16417 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16418 array with zero-sized element type.
16420 2010-02-18 Jakub Jelinek <jakub@redhat.com>
16422 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16423 rtx, allocate struct var_loc_node here and return it to the
16424 caller, and only if it is actually needed.
16425 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16426 move it earlier and return immediately if it returns NULL.
16428 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
16430 * config/sparc/gas.h: New file. Restore
16431 TARGET_ASM_NAMED_SECTION to its ELF default.
16432 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16433 check !HAVE_GNU_AS.
16434 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16435 Likewise. Add ATTRIBUTE_UNUSED to prototype.
16436 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16437 after sparc/sysv4.h.
16439 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
16441 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16443 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
16445 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16446 patterns from predicated pattern.
16448 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
16451 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16452 for insn mnemonic suffix.
16454 2010-02-17 Richard Guenther <rguenther@suse.de>
16456 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16459 2010-02-17 Jakub Jelinek <jakub@redhat.com>
16462 * caller-save.c (save_call_clobbered_regs): If BB ends with
16463 a DEBUG_INSN, move any notes in between last real insn and the last
16464 DEBUG_INSN after the last DEBUG_INSN.
16466 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
16468 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16469 Fix return type. Fix argument type. Explain meaning of return value.
16471 2010-02-16 Richard Guenther <rguenther@suse.de>
16473 PR tree-optimization/41043
16474 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
16475 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16477 (vrp_visit_phi_node): ... but only for loop PHI nodes.
16479 2010-02-16 Ira Rosen <irar@il.ibm.com>
16481 PR tree-optimization/43074
16482 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16483 * tree-vect-loop.c (vect_analyze_loop_operations): Add
16484 vectorizable cycles in hybrid SLP check.
16485 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16487 2010-02-16 Richard Guenther <rguenther@suse.de>
16489 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16490 (true_dependence): If memrefs_conflict_p computes must-alias
16491 trust it. Move TBAA check after offset-based disambiguation.
16492 (canon_true_dependence): Likewise.
16494 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
16496 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16497 * doc/invoke.texi: Document it.
16498 * var-tracking.c: Include toplev.h and params.h.
16499 (vt_find_locations): Return bool indicating success. Compute
16500 hash sizes unconditionally. Check new parameter, report.
16501 (variable_tracking_main_1): Check vt_find_locations results and
16502 retry. Renamed from...
16503 (variable_tracking_main): ... this. New wrapper to preserve
16504 flag_var_tracking_assignments.
16505 * Makefile.in (var-tracking.o): Adjust dependencies.
16507 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
16508 Jakub Jelinek <jakub@redhat.com>
16511 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16512 if weak_import attribute is present.
16513 * config/darwin.c (machopic_select_section): Likewise.
16515 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
16517 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16518 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16519 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16520 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16522 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16525 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16526 Fix argument types.
16528 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16529 Rewrite text to refer to the names.
16531 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
16533 * config/i386/i386-builtin-types.def
16534 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16535 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16536 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16537 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16538 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16539 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16540 IX86_BUILTIN_VPERMIL2PS256.
16541 (MULTI_ARG_4_DF2_DI_I): Defined.
16542 (MULTI_ARG_4_DF2_DI_I1): Defined.
16543 (MULTI_ARG_4_SF2_SI_I): Defined.
16544 (MULTI_ARG_4_SF2_SI_I1): Defined.
16545 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16546 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16547 __builtin_ia32_vpermil2ps256.
16548 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16549 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16550 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
16551 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16552 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16553 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
16554 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16555 CODE_FOR_xop_vpermil2v8sf3.
16556 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16557 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16558 * config/i386/xopintrin.h (_mm_permute2_pd): New.
16559 (_mm256_permute2_pd): New.
16560 (_mm_permute2_ps): New.
16561 (_mm256_permute2_ps): New.
16563 2010-02-15 Nick Clifton <nickc@redhat.com>
16565 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16566 boolean parameters. Use emit_jump_insn when emitting a pop
16567 instruction containing a return insn.
16568 (push): Use 'true' rather than '1' as second parameter to F.
16569 (h8300_expand_prologue): Likewise.
16570 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16571 (h8300_expand_epilogue): Likewise.
16573 2010-02-15 Richard Guenther <rguenther@suse.de>
16575 PR middle-end/43068
16576 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16579 2010-02-15 Nick Clifton <nickc@redhat.com>
16581 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16584 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
16586 * intl.c (fake_ngettext): New function.
16587 * intl.h (fake_ngettext): Declare.
16588 (ngettext): Define macro.
16589 * collect2.c (notice_translated): New function.
16590 (main): Use notice_translated and ngettext.
16591 * collect2.h (notice_translated): Declare.
16593 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
16595 * reorg.c (delete_computation): Comment fixes.
16596 * caller-save.c (setup_save_areas): Idem.
16597 * sel-sched-dump.c (dump_lv_set): Idem.
16600 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16602 * config/s390/s390.c (s390_sched_init): New function.
16603 (TARGET_SCHED_INIT): Target hook defined.
16605 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
16606 Jack Howarth <howarth@bromo.med.uc.edu>
16607 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16610 Partial revert of unintended change in fix for PR41605.
16611 * config/darwin.h: Fix typo.
16612 * config/darwin9.h: Same.
16614 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16616 * c-pch.c (pch_init): Clear v.
16618 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16620 PR middle-end/42930
16621 * graphite-scop-detection.c (graphite_can_represent_scev): Call
16622 graphite_can_represent_init for MULT_EXPR.
16624 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16626 PR middle-end/42914
16627 PR middle-end/42530
16628 * graphite-sese-to-poly.c (remove_phi): New.
16629 (translate_scalar_reduction_to_array): Call remove_phi.
16631 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16633 PR middle-end/42771
16634 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16635 * graphite-clast-to-gimple.h (gloog): Update declaration.
16636 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16637 * graphite-poly.h (struct poly_bb): Add missing comments.
16638 (struct scop): Add poly_scop_p field.
16639 (POLY_SCOP_P): New.
16640 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16641 * graphite.c (graphite_transform_loops): Build the polyhedral
16642 representation for each scop before code generation.
16643 * sese.c (rename_variables_in_operand): Removed.
16644 (rename_variables_in_expr): Return the renamed expression.
16645 (rename_sese_parameters): New.
16646 * sese.h (rename_sese_parameters): Declared.
16648 2010-02-11 Richard Guenther <rguenther@suse.de>
16650 PR tree-optimization/42998
16651 * tree-ssa-pre.c (create_expression_by_pieces): Treat
16652 POINTER_PLUS_EXPR properly.
16654 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16655 Changpeng Fang <changpeng.fang@amd.com>
16657 PR middle-end/40886
16658 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16659 the cost of an IV candidate when the IV is used in a test against zero.
16661 * gcc.dg/tree-ssa/ivopts-3.c: New.
16663 2010-02-11 Richard Guenther <rguenther@suse.de>
16666 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16667 pointer-vs-decl case by swapping refs. Handle some cases
16668 of pointer-vs-decl disambiguations more conservatively.
16669 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16670 to false after expanding.
16672 2010-02-11 Richard Guenther <rguenther@suse.de>
16675 * gcc.c (process_command): Handle LTO file@offset case more
16678 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16680 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16681 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
16683 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16685 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16686 if MEM's mode size isn't DWARF2_ADDR_SIZE.
16687 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16688 Optimize eq/ne comparisons when both arguments are known to be
16690 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16691 Don't mask operands unnecessarily if they are known to be already
16694 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
16696 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16699 2010-02-10 Richard Guenther <rguenther@suse.de>
16701 PR tree-optimization/43017
16702 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16703 for wrapping signed arithmetic.
16705 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16708 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16709 if no debug info should be emitted for it.
16711 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
16713 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16714 note when flag_exceptions is set.
16716 2010-02-10 Duncan Sands <baldrick@free.fr>
16718 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16720 2010-02-10 Richard Guenther <rguenther@suse.de>
16723 * tree.c (get_unwidened): Handle constants.
16724 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16726 2010-02-10 Martin Jambor <mjambor@suse.cz>
16729 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16730 check for variable argument counts independently.
16732 2010-02-10 Christian Bruel <christian.bruel@st.com>
16735 * config/sh/sh.c (find_barrier): Increase length for non delayed
16736 conditional branches.
16738 2010-02-10 Christian Bruel <christian.bruel@st.com>
16740 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16742 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16744 * builtins.c (set_builtin_user_assembler_name): Also handle
16745 ffs if int is smaller than word.
16747 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
16749 PR middle-end/42973
16750 * ira-conflicts.c (get_dup): Remove.
16751 (process_reg_shuffles): Add new parameter. Use it as an
16752 additional guard for copy generation.
16753 (add_insn_allocno_copies): Rewrite.
16755 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
16757 * common.opt (fsched2-use-traces): Preserved for backward
16759 * doc/invoke.texi: Remove the documentation about option
16760 -fsched2-use-traces.
16761 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16762 flag_sched2_use_traces.
16763 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16764 the backward compatibility flag section.
16766 2010-02-09 Richard Guenther <rguenther@suse.de>
16768 PR tree-optimization/43008
16769 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16770 make HEAP variables initialized from global memory if they
16771 are not known builtin functions.
16772 (find_func_aliases): Adjust.
16774 2010-02-09 Richard Guenther <rguenther@suse.de>
16776 PR tree-optimization/43000
16777 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16778 arithmetic manually.
16780 2010-02-08 Jakub Jelinek <jakub@redhat.com>
16782 PR tree-optimization/42931
16783 * tree-loop-linear.c (try_interchange_loops): Don't call
16784 double_int_mul if estimated_loop_iterations failed.
16786 2010-02-08 Martin Jambor <mjambor@suse.cz>
16788 PR middle-end/42898
16789 * tree-sra.c (build_accesses_from_assign): Do not mark in
16790 should_scalarize_away_bitmap if stmt has volatile ops.
16791 (sra_modify_assign): Do not process assigns piecemeal if if stmt
16794 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
16796 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16798 2010-02-07 Adam Nemet <adambnmet@gmail.com>
16800 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16801 before the pattern.
16803 2010-02-07 Andrew Pinski <pinskia@gmail.com>
16805 PR middle-end/42946
16806 * df-core.c (df_finish_pass): Change type of saved_flags to int.
16808 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16810 PR middle-end/42988
16811 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16812 to unknown_dependence.
16813 (graphite_legal_transform_dr): Handle the unknown_dependence.
16814 (graphite_carried_dependence_level_k): Same.
16816 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16818 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16820 2010-02-07 Richard Guenther <rguenther@suse.de>
16822 PR middle-end/42991
16823 * expr.c (get_inner_reference): Always initialize *pbitsize.
16825 2010-02-07 Richard Guenther <rguenther@suse.de>
16827 PR middle-end/42956
16828 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16829 new ARRAY_REFs on variable size element or minimal index arrays.
16831 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16832 gimple_fold_indirect_ref.
16834 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
16837 * arm.c (arm_override_options): Just return if the user has specified
16838 an invalid fpu name.
16840 2010-02-03 Jason Merrill <jason@redhat.com>
16843 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16844 i386_pe_maybe_record_exported_symbol.
16846 2010-02-05 Steve Ellcey <sje@cup.hp.com>
16849 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16850 (pa_delegitimize_address): New function.
16852 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
16854 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16855 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16857 2010-02-05 Richard Guenther <rguenther@suse.de>
16860 * lto-streamer-in.c (get_resolution): Deal with references
16861 to undefined functions.
16863 2010-02-05 Richard Guenther <rguenther@suse.de>
16865 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16866 (fold_const_aggregate_ref): Likewise.
16867 (ccp_fold_stmt): Substitute loads.
16868 (maybe_fold_reference): Verify types before substituting.
16870 (fold_gimple_assign): Unshare properly.
16871 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16873 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
16875 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16876 for rs6000_gen_cell_microcode.
16878 2010-02-04 Richard Guenther <rguenther@suse.de>
16880 PR rtl-optimization/42952
16881 * dse.c (const_or_frame_p): Remove MEM handling.
16883 2010-02-04 Nick Clifton <nickc@redhat.com>
16885 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16886 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16887 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16888 (mn10300_asm_output_mi_thunk): New function.
16889 (mn10300_can_output_mu_thunk): New function.
16890 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16891 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
16892 (FUNCTION_ARG): Delete incorrect comment.
16894 2010-02-03 Jason Merrill <jason@redhat.com>
16897 * fold-const.c (operand_equal_p): Handle erroneous types.
16899 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16901 * config/h8300/h8300.md (can_delay): Fix attibute condition.
16903 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
16905 PR rtl-optimization/42941
16906 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16909 2010-02-03 Jason Merrill <jason@redhat.com>
16912 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16914 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
16917 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
16918 (cselib_reset_table): Renamed from...
16919 (cselib_reset_table_with_next_value): ... this.
16920 (cselib_get_next_uid): Renamed from...
16921 (cselib_get_next_unknown_value): ... this.
16922 * cselib.c (next_uid): Renamed from...
16923 (next_unknown_value): ... this.
16924 (cselib_clear_table): Adjust.
16925 (cselib_reset_table): Adjust. Renamed from...
16926 (cselib_reset_table_with_next_value): ... this.
16927 (cselib_get_next_uid): Adjust. Renamed from...
16928 (cselib_get_next_unknown_value): ... this.
16929 (get_value_hash): Use hash.
16930 (cselib_hash_rtx): Likewise.
16931 (new_cselib_val): Adjust. Set and dump uid.
16932 (cselib_lookup_mem): Pass next_uid as hash.
16933 (cselib_subst_to_values): Likewise.
16934 (cselib_log_lookup): Dump uid.
16935 (cselib_lookup): Pass next_uid as hash. Adjust.
16936 (cselib_process_insn): Adjust.
16937 (cselib_init): Initialize next_uid.
16938 (cselib_finish): Adjust.
16939 (dump_cselib_table): Likewise.
16940 * dse.c (canon_address): Dump value uid.
16941 * print-rtl.c (print_rtx): Print value uid.
16942 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16944 (dv_uid): New function, sort of renamed from...
16945 (dv_htab_hash): ... this, reimplemented in terms of it and...
16946 (dv_uid2hash): ... this. New.
16947 (variable_htab_eq): Drop excess assertions.
16948 (tie_break_pointers): Removed.
16949 (canon_value_cmp): Compare uids.
16950 (variable_post_merge_New_vals): Print uids.
16951 (vt_add_function_parameters): Adjust.
16952 (vt_initialize): Reset table. Adjust.
16954 2010-02-03 Richard Guenther <rguenther@suse.de>
16956 PR tree-optimization/42944
16957 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16958 (call_may_clobber_ref_p_1): Likewise. Properly handle
16959 malloc and calloc clobbering errno.
16961 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
16963 * doc/invoke.texi: Fix name of sched1 dump.
16965 * opts.c (decode_options): Set flag_tree_switch_conversion
16966 only conditionally on optimize >= 2.
16968 * gcse.c: Assorted comment fixes in pass description.
16970 2010-02-03 Anthony Green <green@moxielogic.com>
16972 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16973 nop padding in order to maintain alignment of storage location of
16974 target function address.
16975 (moxie_trampoline_init): Store target function address at newly
16977 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16979 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16981 2010-02-03 Richard Guenther <rguenther@suse.de>
16983 PR middle-end/42927
16984 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16986 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16988 * config.gcc: Reenable check for obsolete targets.
16989 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16990 mips-sgi-irix6.[0-4]*.
16992 2010-02-02 Nick Clifton <nickc@redhat.com>
16994 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16995 constant size of 4 as being the same as 0.
16996 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16997 can take values in the range 0..4.
16999 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
17002 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17003 as _darwin10_Unwind_FindEnclosingFunction().
17004 * libgcc-libsystem.ver: New.
17006 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
17009 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17010 implicitly set registers.
17012 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
17014 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17015 (arm_override_options): Allow automatic selection of the thread
17016 pointer register if thumb2.
17017 (legitimize_pic_address): Improve code sequences for Thumb2.
17018 (arm_call_tls_get_addr): Likewise.
17019 (legitimize_tls_address): Likewise.
17020 * arm.md (pic_load_addr_arm): Delete. Replace with ...
17021 (pic_load_addr_32bit): ... this. New named pattern.
17022 * thumb2.md (pic_load_addr_thumb2): Delete.
17023 (pic_load_dot_plus_four): Delete.
17024 (tls_load_dot_plus_four): New named pattern.
17026 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17029 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17030 Document fix for TLS bug.
17032 2010-01-31 Richard Guenther <rguenther@suse.de>
17034 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17035 conservatively correct.
17037 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17041 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17043 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17045 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17047 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17049 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
17051 * config.gcc: Adjust order of makefile fragments for mingw targets.
17053 2010-01-31 Richard Guenther <rguenther@suse.de>
17055 PR middle-end/42898
17056 * gimplify.c (gimplify_init_constructor): For volatile LHS
17057 initialize a temporary.
17059 2010-01-31 Matthias Klose <doko@ubuntu.com>
17061 * configure.ac: Fix __stack_chk_fail check for cross builds configured
17063 * configure: Regenerate.
17065 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
17067 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17068 the same alias set and their sizes different constantness.
17069 (aliasing_component_refs_p): Revert 2009-10-24 change.
17071 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17073 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17076 2010-01-29 Richard Guenther <rguenther@suse.de>
17078 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17079 Assert we successfully updated the call.
17081 2010-01-29 Jakub Jelinek <jakub@redhat.com>
17083 PR rtl-optimization/42889
17084 * df.h (df_set_bb_dirty_nonlr): New prototype.
17085 * df-core.c (df_set_bb_dirty_nonlr): New function.
17086 * df-scan.c (df_insn_rescan): Call it instead of
17087 df_set_bb_dirty for DEBUG_INSNs.
17089 2010-01-29 Richard Guenther <rguenther@suse.de>
17091 PR middle-end/37448
17092 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17093 quadratic behavior in most cases.
17095 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
17098 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17099 in the call to gen_x86_movsicc_0_m1.
17101 2010-01-28 Richard Guenther <rguenther@suse.de>
17103 PR tree-optimization/42871
17104 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17106 2010-01-28 Richard Guenther <rguenther@suse.de>
17108 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17109 into call arguments.
17111 2010-01-28 Richard Guenther <rguenther@suse.de>
17113 PR middle-end/42883
17114 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17115 the forwarder if the destination is an EH landing pad.
17117 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
17119 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17120 block list passed to gimple_duplicate_sese_tail.
17121 (parallelize_loops): Avoid parallelization when the function
17122 has_nonlocal_label.
17123 Avoid parallelization when the preheader is IRREDUCIBLE.
17124 Try to optimize when estimated_loop_iterations_int is unresolved.
17125 Add the loop's location to the dump file.
17126 * tree-cfg.c (add_phi_args_after_redirect): Remove.
17127 (gimple_duplicate_sese_tail): Remove the check for the latch.
17128 Redirect nexits to the exit block.
17129 Remove handling of the incoming edges to the latch.
17130 Redirect the backedge from the copied latch to the exit bb.
17132 2010-01-28 Michael Matz <matz@suse.de>
17135 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17136 Wrap force_reg into a sequence, emit it before user.
17138 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
17140 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17142 (arm_legacy_rev): Likewise.
17143 (thumb_legacy_rev): Likewise.
17145 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17147 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17148 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
17149 on MEM's address failed, try avoid_constant_pool_reference and
17150 recurse if it returned something different.
17151 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17152 address, try avoid_constant_pool_reference and recurse if it
17153 returned something different.
17154 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17155 address and avoid_constant_pool_reference returned something
17156 different, don't set have_address.
17158 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
17161 * var-tracking.c (val_store): Add modified argument, obey it.
17163 (count_uses): Move down logging of main.
17164 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17165 don't need resolution.
17166 (emit_notes_in_bb): Likewise.
17168 2010-01-27 Richard Guenther <rguenther@suse.de>
17170 PR middle-end/42878
17171 * tree-inline.c (remap_decl): Delay remapping of SSA name
17172 default definitions until we need them.
17174 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17176 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17177 (rs6000_delegitimize_address): New function.
17179 * config/s390/s390.c (s390_delegitimize_address): Call
17180 delegitimize_mem_from_attrs.
17182 PR middle-end/42874
17183 * tree-inline.c (cannot_copy_type_1): Removed.
17184 (copy_forbidden): Don't forbid copying of functions containing
17185 records/unions with variable length fields.
17187 2010-01-27 Christian Bruel <christian.bruel@st.com>
17191 * config/sh/sh.c (find_barrier): Increase length for non delayed
17192 conditional branches.
17194 2010-01-27 Matthias Klose <doko@ubuntu.com>
17196 * configure.ac (gnu-unique-object): Fix ldd version check.
17197 * configure: Regenerate.
17199 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17201 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17203 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17204 Test for HAVE_GNU_AS value.
17206 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17208 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17209 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17210 INT64_TYPE): Define.
17211 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17212 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17213 INT_LEAST64_TYPE): Define.
17214 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17215 UINT_LEAST64_TYPE): Define.
17216 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17217 INT_FAST64_TYPE): Define.
17218 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17219 UINT_FAST64_TYPE): Define.
17220 (INTMAX_TYPE, UINTMAX_TYPE): Define.
17221 (INTPTR_TYPE, UINTPTR_TYPE): Define.
17222 (SIG_ATOMIC_TYPE): Define.
17224 2010-01-26 Richard Guenther <rguenther@suse.de>
17226 * df-scan.c (df_scan_set_bb_info): Remove assert.
17227 (df_insn_rescan_debug_internal): Merge asserts.
17228 (df_install_ref): Likewise.
17229 (df_mark_reg): Use bitmap_set_range.
17230 (df_hard_reg_used_p): Remove assert.
17231 (df_hard_reg_used_count): Likewise.
17233 2010-01-26 Richard Guenther <rguenther@suse.de>
17235 PR rtl-optimization/42685
17236 * web.c (web_main): Ignore DEBUG_INSNs.
17238 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
17240 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17242 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17243 Fix types of fndecl and arglist parameters.
17245 2010-01-26 Richard Guenther <rguenther@suse.de>
17247 PR middle-end/42806
17248 * tree-eh.c (unsplit_eh): Skip debug insns.
17250 2010-01-26 Richard Guenther <rguenther@suse.de>
17252 PR tree-optimization/42250
17253 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17255 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17258 * omp-low.c (expand_omp_sections): Only use single_pred if
17259 l2_bb is single_pred_p.
17261 2010-01-25 Christian Bruel <christian.bruel@st.com>
17264 * config/sh/sh.c (find_barrier): Increase length for non delayed
17265 conditional branches.
17266 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17268 2010-01-24 David S. Miller <davem@davemloft.net>
17270 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
17271 define if not using GAS.
17272 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17273 Likewise. Delete SECTION_MERGE code, which is only applicable
17276 2010-01-24 Mark Mitchell <mark@codesourcery.com>
17279 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
17280 mangling of va_list in system headers.
17282 2010-01-23 Toon Moene <toon@moene.org>
17284 * tree-predcom.c (combine_chains): Return NULL, not false.
17286 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
17288 * tree-loop-distribution.c (distribute_loop): Fix declaration and
17289 initialization of variable res to agree with return type.
17291 2010-01-22 Steve Ellcey <sje@cup.hp.com>
17293 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
17294 * tree-sra.c: Add include of expr.h.
17296 2010-01-22 Jakub Jelinek <jakub@redhat.com>
17298 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
17299 insert the debug stmt on the single non-EH edge from the stmt.
17301 2010-01-22 Richard Henderson <rth@redhat.com>
17304 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
17305 the RHS until after generate_subtree_copies has insertted its
17306 code before the current statement.
17308 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
17310 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
17312 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
17314 2010-01-21 Martin Jambor <mjambor@suse.cz>
17316 PR tree-optimization/42585
17317 * tree-sra.c (struct access): New field grp_total_scalarization.
17318 (dump_access): Dump the new field.
17319 (should_scalarize_away_bitmap): New variable.
17320 (cannot_scalarize_away_bitmap): Likewise.
17321 (sra_initialize): Allocate new bitmaps.
17322 (sra_deinitialize): Free new bitmaps.
17323 (create_access_1): New function.
17324 (create_access): Parts moved to create_access_1.
17325 (type_consists_of_records_p): New function.
17326 (completely_scalarize_record): Likewise.
17327 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
17328 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
17329 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
17331 (analyze_all_variable_accesses): Completely scalarize small eligible
17334 2010-01-21 Martin Jambor <mjambor@suse.cz>
17336 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
17338 2010-01-21 Andrew Haley <aph@redhat.com>
17340 * gcc.c (process_command): Move lang_specific_driver before
17341 setting cc_libexec_prefix.
17343 2010-01-21 Richard Guenther <rguenther@suse.de>
17345 PR middle-end/19988
17346 * fold-const.c (negate_expr_p): Pretend only negative
17347 real constants are easily negatable.
17349 2010-01-20 Janis Johnson <janis187@us.ibm.com>
17350 Jason Merrill <jason@redhat.com>
17352 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17353 (TYPE_TRANSPARENT_AGGR): this, for union and record.
17354 * calls.c (initialize argument_information): Handle it.
17355 * c-common.c (handle_transparent_union_attribute): Use new name.
17356 * c-decl.c (finish_struct): Ditto.
17357 * c-typeck.c (type_lists_compatible_p): Ditto.
17358 (convert_for_assignment): Use new name and also handle record.
17359 * function.c (aggregate_value_p): Handle it.
17360 (pass_by_reference): Ditto.
17361 (assign_parm_data_types): Ditto.
17362 * print-tree.c (print_node): Ditto.
17363 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17364 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17365 * tree.c (first_field): New fn.
17367 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
17370 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17371 even when linking statically, for now.
17373 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17376 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17377 without a cselib val.
17378 (count_uses): Accept MO_VAL_SET with no val on stores.
17379 (add_stores): Likewise.
17381 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17383 * var-tracking.c (check_value_val): Add a compile time assertion.
17384 (dv_is_decl_p): Simplify.
17385 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17386 gcc_assert if ENABLE_CHECKING.
17388 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17391 * var-tracking.c: Include tree-flow.h.
17392 (mem_dies_at_call): New.
17393 (dataflow_set_preserve_mem_locs): Use it.
17394 (dataflow_set_remove_mem_locs): Likewise.
17395 (dump_var): Renamed from dump_variable. Adjust all callers.
17396 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
17397 * Makefile.in (var-tracking.o): Adjust deps.
17399 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
17401 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17403 2010-01-20 Richard Guenther <rguenther@suse.de>
17405 PR tree-optimization/42717
17406 * tree-ssa-dce.c (get_live_post_dom): Remove.
17407 (forward_edge_to_pdom): Take an arbitrary edge to copy
17408 degenerate PHI args from.
17409 (remove_dead_stmt): Use the first post-dominator even if it
17410 does not contain live statements as redirection destination.
17412 2010-01-20 Richard Guenther <rguenther@suse.de>
17414 * tree-inline.c (estimate_num_insns): Handle EH builtins.
17416 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17418 * sel-sched.c (create_speculation_check): Remove set but not used
17420 (try_transformation_cache): Remove set but not used variable ds.
17421 (calculate_privileged_insns): Remove set but not used variables
17422 cur_insn and min_spec_insn.
17423 (find_best_expr): Remove set but not used variable avail_n.
17424 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17426 * cgraphunit.c (assemble_thunk): Remove set but not used variable
17428 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17429 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17430 new_scop_exit_edge.
17432 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
17435 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17436 cpu types. Add support for *-sse3 cpu types.
17437 (x86_64-*-*): Ditto.
17439 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17441 PR middle-end/42803
17442 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17443 argument, call initializer_constant_valid_p_1 instead of
17444 initializer_constant_valid_p, pass CACHE to it, return NULL
17445 immediately if first call returns NULL.
17446 (initializer_constant_valid_p_1): New function.
17447 (initializer_constant_valid_p): Use it.
17449 2010-01-20 Thomas Quinot <quinot@adacore.com>
17451 * tree.def (PLACEHOLDER_EXPR): Fix comment.
17453 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17455 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17456 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17457 (loc_list_from_tree): Don't handle unsigned division. Handle
17458 signed modulo using DW_OP_{over,over,div,mul,minus}.
17459 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17460 modulo instead of signed.
17462 2010-01-20 DJ Delorie <dj@redhat.com>
17464 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17466 (h8300_emit_stack_adjustment): Propogate it.
17468 (h8300_expand_prologue): Likewise.
17469 (h8300_expand_epilogue): Likewise.
17471 2010-01-19 Michael Matz <matz@suse.de>
17473 PR tree-optimization/41783
17474 * tree-data-ref.c (toplevel): Include flags.h.
17475 (dump_data_dependence_relation): Also dump the inputs if the
17476 result will be unknown.
17477 (split_constant_offset_1): Look through some conversions.
17478 * tree-predcom.c (determine_roots_comp): Restart a new chain if
17479 the offset from last element is too large.
17480 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17481 (reassociate_to_the_same_stmt): Handle vector registers.
17482 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17483 (e.g. conversions).
17484 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17485 wide_prolog_niters argument, emit widening instructions.
17486 (vect_do_peeling_for_alignment): Adjust caller, use widened
17487 variant of the iteration cound.
17488 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17490 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17493 * config/arm/neon-testgen.m (emit_automatics): New parameter
17494 features. Adjust for Fixed_return_reg feature.
17495 (test_intrinsic): Call emit_automatics with new feature.
17496 * config/arm/neon.ml: Update copyright years.
17497 (features): New Fixed_return_reg feature.
17498 (ops): Update feature for Vget_low.
17500 2010-01-19 Jakub Jelinek <jakub@redhat.com>
17502 PR tree-optimization/42719
17503 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17507 * fwprop.c (all_uses_available_at): Return false if def_set dest
17508 is a REG that is used in def_insn.
17510 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
17512 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17514 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17515 Add argument names.
17517 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17519 * target.h (struct gcc_target) <secondary_reload>: Change type
17520 of last argument to secondary_reload_info *.
17522 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
17525 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17526 memory references with unaligned offsets. Remove CQImode handling.
17527 (unaligned_memory_operand): Return 1 for memory references with
17528 unaligned offsets. Remove CQImode handling.
17530 2010-01-18 Richard Guenther <rguenther@suse.de>
17532 PR middle-end/39954
17533 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17536 2010-01-18 Richard Guenther <rguenther@suse.de>
17538 PR tree-optimization/42781
17539 * tree-ssa-structalias.c (find_what_var_points_to): Skip
17540 restrict processing only if the original variable was artificial.
17542 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
17544 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17545 find number of popped argument bytes.
17547 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17548 Fix the text that describes the return value for invalid insns.
17550 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
17552 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17553 Clarify what 'cost of the -dependence' is. Fix quoting.
17555 * toplev.c (default_get_pch_validity): Rename argument to "sz".
17556 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17558 2010-01-17 Jakub Jelinek <jakub@redhat.com>
17560 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17561 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17563 2010-01-17 Richard Guenther <rguenther@suse.de>
17565 PR middle-end/42248
17566 * function.c (split_complex_args): Take a VEC to modify.
17567 (assign_parms_augmented_arg_list): Build a VEC instead of
17568 a chain of PARM_DECLs.
17569 (assign_parms_unsplit_complex): Take a VEC of arguments.
17570 Do not fixup unmodified parms.
17571 (assign_parms): Deal with the VEC.
17572 (gimplify_parameters): Likewise.
17574 2010-01-17 Richard Guenther <rguenther@suse.de>
17576 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17577 node existence check.
17578 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17579 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17580 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17581 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17582 (gimple_execute_on_growing_pred): Likewise.
17584 2010-01-17 Richard Guenther <rguenther@suse.de>
17586 PR tree-optimization/42773
17587 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17588 (compute_antic_aux): Likewise.
17589 (compute_partial_antic_aux): Likewise.
17591 2010-01-17 Jie Zhang <jie.zhang@analog.com>
17594 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17597 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
17599 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17602 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17603 Fix markup for strict argument.
17605 (TARGET_SCHED_REORDER2): Fix argument types.
17607 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17608 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17610 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17611 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17613 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17616 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17617 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17618 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17619 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17620 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17622 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17624 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17626 (TARGET_ASM_RELOC_RW_MASK): Add return type.
17627 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17629 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17631 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17634 (TARGET_ASM_NAMED_SECTION): Fix argument list.
17636 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17637 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17639 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17641 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17643 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17644 referring to it. Fix language.
17646 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17648 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17650 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17652 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17654 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17655 '@var{stream}. Remove stray 'and'.
17657 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17659 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17661 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17663 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17664 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17666 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17667 Fix description of return value.
17668 Rename argument "sz" to "len."
17670 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17671 Clarify meaning of 'true' return value.
17673 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17675 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17676 rep_mode versus mode_rep.
17678 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17680 (TARGET_BUILTIN_DECL): Fix name.
17682 (TARGET_COMMUTATIVE_P): Fix type of first argument.
17684 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17686 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17688 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17690 (TARGET_RELAXED_ORDERING): Use @deftypevr.
17692 (TARGET_GET_DRAP_RTX): Note that this is a hook.
17695 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17696 Rename argument tm_fn to md_fn.
17698 (TARGET_OPTION_PRINT): Fix argument list.
17700 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
17703 * config/i386/i386.c (ix86_fixup_binary_operands):
17704 Revert FMA4 fixup of operands.
17706 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17709 * Makefile.in (write_entries_to_file, install-plugin):
17710 Use \012 instead of \n with tr.
17712 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
17714 * configure.ac (HAVE_AS_REF): New C macro.
17715 * configure: Regenerate.
17716 * config.in: Likewise.
17717 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17719 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17722 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
17724 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17726 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17728 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17730 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17732 (TARGET_IN_SMALL_DATA_P): Fix argument type.
17734 (TARGET_BINDS_LOCAL_P): Fix argument type.
17736 (TARGET_ASM_FILE_END): Use prototype.
17738 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17740 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17742 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17744 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17746 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17747 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17749 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17750 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17752 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17753 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17754 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17755 (TARGET_ADDR_SPACE_CONVERT): Likewise.
17757 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17759 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17761 (TARGET_INIT_BUILTINS): Use prototype.
17763 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17764 Put 'const char *' in braces. Fix parameter types.
17765 (TARGET_INVALID_CONVERSION): Fix parameter types.
17766 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17767 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17769 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17772 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17774 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17776 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
17778 * doc/tm.texi (TARGET_HELP): Fix return type.
17780 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17781 in braces. Fix argument types.
17783 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17785 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17787 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17789 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17790 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17792 (TARGET_MANGLE_TYPE): Fix argument types.
17794 (TARGET_IRA_COVER_CLASSES): Use prototype.
17796 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
17798 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17800 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17802 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17804 (TARGET_CALLEE_COPIES): Fix argument types.
17806 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17808 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17810 (TARGET_FUNCTION_VALUE): Fix argument types.
17812 (TARGET_RETURN_IN_MSB): Fix argument type.
17814 (TARGET_RETURN_IN_MEMORY): Fix argument types.
17816 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17818 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17820 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17821 agree with return type.
17823 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17825 2010-01-15 Jing Yu <jingyu@google.com>
17827 PR rtl-optimization/42691
17828 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17829 a pseudo to a constant and are merged, and adjust comments.
17831 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
17833 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17835 2010-01-15 Richard Guenther <rguenther@suse.de>
17837 PR middle-end/42739
17838 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17839 labels of computed or non-local gotos to the destination.
17840 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17841 landing pad label is the first label.
17843 2010-01-15 Richard Guenther <rguenther@suse.de>
17845 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17847 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17850 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17851 to allow generation of the xssqrtdp instruction on power7.
17852 (sqrtdf2_fpr): Ditto.
17854 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17856 PR middle-end/42674
17857 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17858 functions with noreturn attribute.
17861 * varasm.c (declare_weak): Add weak attribute to decl if it
17862 doesn't have one already.
17863 (assemble_external): Only add decls to weak_decls if they also
17864 have weak attribute.
17866 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
17868 * var-tracking.c (var_reg_delete): Don't delete the association
17869 between REGs and values or one-part variables if the register
17872 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17875 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17876 because its first operand is a non-localized variable.
17878 2010-01-14 Martin Jambor <mjambor@suse.cz>
17880 PR tree-optimization/42706
17881 * tree-sra.c (encountered_recursive_call): New variable.
17882 (encountered_unchangable_recursive_call): Likewise.
17883 (sra_initialize): Initialize both new variables.
17884 (callsite_has_enough_arguments_p): New function.
17885 (scan_function): Call decl and flags check only for IPA-SRA, check
17886 whether there is a recursive call and whether it has enough arguments.
17887 (all_callers_have_enough_arguments_p): New function.
17888 (convert_callers): Look for recursive calls only when
17889 encountered_recursive_call is set.
17890 (ipa_early_sra): Bail out either if
17891 !all_callers_have_enough_arguments_p or
17892 encountered_unchangable_recursive_call.
17894 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17896 * sel-sched.c: Add 2010 to copyright years.
17897 * sel-sched-ir.c: Likewise.
17898 * sel-sched-ir.h: Likewise.
17900 2010-01-14 Martin Jambor <mjambor@suse.cz>
17902 PR tree-optimization/42714
17903 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17904 constructors specially.
17906 2010-01-14 Andi Kleen <ak@linux.intel.com>
17908 * config/i386/drivers-i386.c (detect_caches_intel):
17909 Add l2sizekb parameter and fill in.
17910 (host_detect_local_cpu): Add l2sizekb, fill in.
17911 Add Atom small cache heuristic.
17913 2010-01-14 Andi Kleen <ak@linux.intel.com>
17915 * config/i386/drivers-i386.c (detect_caches_cpuid4):
17916 Add level3 parameter and fill in.
17917 (detect_caches_intel): Handle level3 cache.
17919 2010-01-14 Andi Kleen <ak@linux.intel.com>
17921 * config/i386/drivers-i386.c (host_detect_local_cpu):
17922 Fix core duo detection.
17924 2010-01-14 Andi Kleen <ak@linux.intel.com>
17926 * config/i386/drivers-i386.c (host_detect_local_cpu):
17927 Fix Atom detection.
17929 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17931 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17932 (rs6000_variable_issue_1): this. Use...
17933 (rs6000_variable_issue): here. Reimplement. Print debug info.
17935 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17937 * sel-sched-ir.c (sel_restore_other_notes): Rename to
17938 sel_restore_notes. Update all callers. Call reemit_notes
17941 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17943 PR rtl-optimization/42246
17944 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17947 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17949 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17950 all successors is the same as number of successors in current region.
17952 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17954 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17955 to rename is not separable. Otherwise check that its LHS is not NULL.
17957 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17959 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
17961 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17963 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17964 available registers when failed to discover LHS register class.
17965 Fix indentation. Update comment.
17967 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17968 Alexander Monakov <amonakov@ispras.ru>
17970 PR rtl-optimization/42389
17971 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17973 (advance_state_on_fence): Likewise.
17974 (sel_target_adjust_priority): Print debug output only when
17975 sched_verbose >= 4, not 2.
17976 (get_expr_cost): Do not issue all unique insns on the next cycle.
17977 (fill_insns): Initialize can_issue_more from the value saved
17979 * sel-sched-ir.c (flist_add): New parameter issue_more.
17980 Init FENCE_ISSUE_MORE with it.
17981 (merge_fences): Likewise.
17982 (init_fences): Update call to flist_add.
17983 (add_to_fences, add_clean_fence_to_fences)
17984 (add_dirty_fence_to_fences): Likewise.
17985 (move_fence_to_fences): Update call to merge_fences.
17986 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17988 * sel-sched-ir.h (struct _fence): New field issue_more.
17989 (FENCE_ISSUE_MORE): New accessor macro.
17991 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17993 PR rtl-optimization/42388
17994 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17995 that have no predecessors nor successors. Do not call move_bb_info
17996 for empty blocks outside of current region.
17998 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18000 PR rtl-optimization/42294
18001 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18002 * sel-sched.c (move_exprs_to_boundary): Transitively add all
18003 originators' originators.
18005 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18007 PR rtl-optimization/39453
18008 PR rtl-optimization/42246
18009 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18011 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18013 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18014 Alexander Monakov <amonakov@ispras.ru>
18016 PR middle-end/42245
18017 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
18018 (maybe_tidy_empty_bb): ... here. Make static. Add new
18019 argument. Update all callers.
18020 (tidy_control_flow): ... and here. Recompute topological order
18021 of basic blocks in region if necessary.
18022 (sel_redirect_edge_and_branch): Change return type. Return true
18023 if topological order might have been invalidated.
18024 (purge_empty_blocks): Export and move from...
18025 * sel-sched.c (purge_empty_blocks): ... here.
18026 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18027 (maybe_tidy_empty_bb): Delete prototype.
18028 (purge_empty_blocks): Declare.
18030 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18032 PR rtl-optimization/42249
18033 * sel-sched.c (try_replace_dest_reg): When chosen register
18034 and original register is the same, do not bail out early, but
18035 still check all original insns for validity of replacing destination
18036 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18039 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18042 Port from no-undefined-overflow branch:
18043 2009-03-09 Richard Guenther <rguenther@suse.de>
18045 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18047 2010-01-14 Richard Guenther <rguenther@suse.de>
18050 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18052 2010-01-14 Ira Rosen <irar@il.ibm.com>
18054 PR tree-optimization/42709
18055 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18056 as scalar type in creation of constant vector operand.
18058 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18061 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18062 (check-parallel-%): Match `testsuite' directory component only
18065 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
18067 PR translation/39521
18068 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18071 2010-01-13 Richard Guenther <rguenther@suse.de>
18073 PR tree-optimization/42730
18074 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18077 2010-01-13 Steve Ellcey <sje@cup.hp.com>
18080 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18081 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18084 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
18086 * config/bfin/libgcc-bfin.ver: Regenerate based on current
18087 libgcc-std.ver. Add entries for ___smulsi3_highpart and
18088 ___umulsi3_highpart.
18090 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18091 rather than schedule_insns if the pass is enabled.
18093 2010-01-13 Martin Jambor <mjambor@suse.cz>
18095 PR tree-optimization/42704
18096 * tree-sra.c (sra_modify_assign): Do not delete assignments to
18099 2010-01-13 Martin Jambor <mjambor@suse.cz>
18101 PR tree-optimization/42703
18102 * tree-sra.c (analyze_access_subtree): Check that we can build a
18103 reference to the original data within the aggregate.
18105 2010-01-13 Richard Guenther <rguenther@suse.de>
18107 PR tree-optimization/42705
18108 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18110 2010-01-13 Richard Guenther <rguenther@suse.de>
18112 PR middle-end/42716
18113 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18115 2010-01-13 Jakub Jelinek <jakub@redhat.com>
18118 * var-tracking.c (values_to_unmark): New variable.
18119 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18120 values_to_unmark vector. Moved body to...
18121 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
18122 instead queue it into values_to_unmark vector.
18123 (vt_find_locations): Free values_to_unmark vector.
18125 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
18127 * config/s390/s390.c (override_options): Set
18128 default of max-pending-list-length to 256
18130 2010-01-13 Richard Guenther <rguenther@suse.de>
18133 * tree-pass.h (PROP_gimple_lcx): New.
18134 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18135 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18136 before the final cleanup_eh.
18137 (dump_properties): Dump PROP_gimple_lcx.
18138 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18139 (tree_lower_complex_O0): Remove.
18140 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18141 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
18142 tree_lower_complex, schedule TODO_update_ssa.
18143 * lto-streamer-out.c (output_function): Stream the functions
18145 * lto-streamer-in.c (input_function): Likewise.
18146 (lto_read_body): Do not override them here.
18148 2010-01-12 Joseph Myers <joseph@codesourcery.com>
18151 * c-typeck.c (build_c_cast): Fold value cast to union type before
18152 wrapping it in a CONSTRUCTOR.
18154 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18156 PR rtl-optimization/42699
18157 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18160 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18162 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18163 SUBTARGET_WARN_UNUSED_SPEC): Move ...
18164 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18165 SUBTARGET_WARN_UNUSED_SPEC): ... here
18166 * config/mips/iris5.h (LIBGCC_SPEC): Define.
18168 2010-01-12 Julian Brown <julian@codesourcery.com>
18170 * config/arm/neon-schedgen.ml (Utils): Don't try to
18171 open missing module.
18172 (find_with_result): New.
18174 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18177 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18178 sharing when canonicalizing ({lt,ge}u (plus a b) b).
18180 PR tree-optimization/42645
18181 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
18182 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18183 decl_map, set processing_debug_stmt to -1 and return name without
18186 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
18188 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18189 binutils version, and reword target configuration description.
18191 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18193 * config/avr/avr.h (LINKER_NAME): Remove.
18195 2010-01-11 Janis Johnson <janis187@us.ibm.com>
18198 * config/rs6000/rs6000.c (rs6000_override_options): On targets
18199 that support VSX, warn for -mno-altivec if vsx is not disabled,
18202 2010-01-11 Joseph Myers <joseph@codesourcery.com>
18203 Shujing Zhao <pearly.zhao@oracle.com>
18205 PR translation/42469
18206 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18207 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18208 character between option name and help text.
18209 * c.opt (imultilib): Likewise.
18211 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
18213 * lto-streamer-out.c (output_unreferenced_globals): Output static
18216 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
18218 PR rtl-optimization/42621
18219 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18220 optimizing for size.
18221 (duplicate_computed_gotos): Remove now-redundant check.
18223 2010-01-10 Steve Ellcey <sje@cup.hp.com>
18226 * configure.ac: Save and restore LDFLAGS and LIBS
18227 * configure: Regenerate.
18229 2010-01-10 Richard Guenther <rguenther@suse.de>
18231 PR middle-end/42667
18232 * builtins.c (fold_builtin_strlen): Add type argument and
18233 convert the resulting length to it.
18234 (fold_builtin_1): Adjust.
18236 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18238 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18239 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18241 (num_insns_constant_wide): Adjust for that change.
18243 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18246 * web.c (union_defs): Add used argument, to combine uses of
18247 uninitialized regs.
18248 (entry_register): Adjust type and tests of used argument.
18249 (web_main): Widen used for new use. Pass it to union_defs.
18250 * df.h (union_defs): Adjust prototype.
18252 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18255 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18256 uses in new incoming argument. Free body.
18257 (reset_debug_uses_in_loop): New.
18258 (analyze_insn_to_expand_var): Call the latter if the former found
18259 anything. Fix whitespace. Reject invalid dest overlaps before
18260 going through all insns in the loop.
18262 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18265 * haifa-sched.c (dying_use_p): Debug insns don't count.
18267 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18269 PR middle-end/42363
18270 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
18271 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
18272 (verify_gimple_call): Reject LHS in noreturn calls.
18274 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18278 * tree-vect-loop-manip.c (adjust_info): New type.
18279 (adjust_vec): New pointer to vector.
18280 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
18281 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
18282 (slpeel_update_phis_for_duplicate_loop): Use them.
18283 (slpeel_update_phi_nodes_for_guard1): Likewise.
18284 (slpeel_update_phi_nodes_for_guard2): Likewise.
18285 (slpeel_tree_peel_loop_to_edge): Likewise.
18286 (vect_update_ivs_after_vectorizer): Likewise.
18288 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18290 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
18291 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18293 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18295 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
18296 bogus uninitialized warning.
18298 2010-01-09 Richard Guenther <rguenther@suse.de>
18300 PR middle-end/42512
18301 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
18302 the evolution is compatible with the initial condition.
18304 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18306 * gcc.c (process_command): Update copyright notice dates.
18307 * gcov.c (print_version): Likewise.
18308 * gcov-dump.c (print_version): Likewise.
18309 * mips-tfile.c (main): Likewise.
18310 * mips-tdump.c (main): Likewise.
18312 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18315 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
18317 (rotlhi3_8): Delete.
18319 (rotlsi3_8): Delete.
18320 (rotlsi3_16): Delete.
18321 (rotlsi3_24): Delete.
18322 (rotl<mode>3): New.
18323 (*rotw<mode>3): New.
18324 (*rotb<mode>3): New.
18325 * config/avr/avr.c (avr_rotate_bytes): New function.
18326 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
18328 2010-01-08 Steve Ellcey <sje@cup.hp.com>
18331 * configure.ac: Modify -rdynamic check.
18332 * configure: Regenerate.
18334 2010-01-08 DJ Delorie <dj@redhat.com>
18336 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
18337 register popping order.
18339 2010-01-08 Richard Guenther <rguenther@suse.de>
18342 * c.opt (fsigned-char): Also let LTO handle this option.
18343 (funsigned-char): Likewise.
18345 2010-01-07 Richard Guenther <rguenther@suse.de>
18347 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
18348 (gimple_op): Likewise.
18349 (gimple_op_ptr): Likewise.
18350 (gimple_assign_set_lhs): Remove gcc_assert.
18351 (gimple_assign_set_rhs1): Likewise.
18352 (gimple_assign_set_rhs2): Likewise.
18353 (gimple_call_set_lhs): Likewise.
18354 (gimple_call_set_fn): Likewise.
18355 (gimple_call_set_fndecl): Likewise.
18356 (gimple_call_fndecl): Likewise.
18357 (gimple_call_return_type): Likewise.
18358 (gimple_call_set_chain): Likewise.
18359 (gimple_call_num_args): Likewise.
18360 (gimple_call_set_arg): Likewise.
18361 (gimple_cond_set_code): Likewise.
18362 (gimple_cond_set_lhs): Likewise.
18363 (gimple_cond_set_rhs): Likewise.
18364 (gimple_cond_set_true_label): Likewise.
18365 (gimple_cond_set_false_label): Likewise.
18366 (gimple_label_set_label): Likewise.
18367 (gimple_goto_set_dest): Likewise.
18368 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18369 (gimple_debug_bind_get_value): Likewise.
18370 (gimple_debug_bind_get_value_ptr): Likewise.
18371 (gimple_debug_bind_set_var): Likewise.
18372 (gimple_debug_bind_set_value): Likewise.
18373 (gimple_debug_bind_reset_value): Likewise.
18374 (gimple_debug_bind_has_value_p): Likewise.
18375 (gimple_return_retval_ptr): Remove gcc_assert.
18376 (gimple_return_retval): Likewise.
18377 (gimple_return_set_retval): Likewise.
18378 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18379 (safe_referenced_var_iterator): Remove.
18380 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18381 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18382 (fill_referenced_var_vec): Remove.
18383 (first_readonly_imm_use): Remove redundant gcc_assert.
18384 (phi_arg_index_from_use): Combine gcc_asserts.
18385 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18386 (first_imm_use_stmt): Remove redundant gcc_assert.
18387 * tree-cfg.c (verify_gimple_call): Verify function and chain
18388 operands. Verify arguments.
18389 (verify_types_in_gimple_stmt): Verify condition code and labels.
18391 2010-01-07 Richard Guenther <rguenther@suse.de>
18393 PR tree-optimization/42641
18394 * sese.c (rename_map_elt_info): Use the SSA name version, do
18397 2010-01-07 Jakub Jelinek <jakub@redhat.com>
18399 PR tree-optimization/42625
18400 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18401 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18403 2010-01-07 Duncan Sands <baldrick@free.fr>
18405 * Makefile.in (PLUGIN_HEADERS): Add version.h.
18407 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
18410 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18411 note itself is not function_invariant_p.
18413 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
18415 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18416 Do not add the DF_NOTE problem.
18417 * store-motion.c (execute_rtl_store_motion): Likewise.
18419 2010-01-07 Martin Jambor <mjambor@suse.cz>
18421 PR tree-optimization/42157
18422 * tree-sra.c (compare_access_positions): Stabilize sort if both
18423 accesses have integer types, return zero immediately if they are the
18426 2010-01-06 Richard Henderson <rth@redhat.com>
18428 PR middle-end/41883
18429 * haifa-sched.c (add_to_note_list): Merge into ...
18430 (concat_note_lists): ... here, and ...
18431 (unlink_other_notes, rm_other_notes): Merge into...
18432 (remove_notes): ... here. Create REG_SAVE_NOTEs for
18433 NOTE_INSN_EPILOGUE_BEG.
18435 2010-01-06 Richard Guenther <rguenther@suse.de>
18437 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18438 not inline regular functions into always-inline functions.
18440 2010-01-06 Nick Clifton <nickc@redhat.com>
18442 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18443 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18445 (OVERRIDE_OPTIONS): Delete.
18446 (OPTIMIZATION_OPTIONS): Define.
18447 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18448 * config/rx/rx.c (rx_handle_option): Issue an error message if
18449 -mcpu=rx200 and -fpu are used together.
18450 (rx_set_optimization_options): New function. Issue an error
18451 message if an optimization attribute attempts to reset the FPU/
18452 math optimization pairing.
18453 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18454 * config/rx/rx.opt: Set the default to 32-bit doubles.
18455 * config/rx/t-rx: Add multilibs for -nofpu option.
18456 * doc/invoke.texi: Update documentation of RX options.
18458 2010-01-06 Richard Guenther <rguenther@suse.de>
18460 * tree-ssa-pre.c (name_to_id): New global.
18461 (alloc_expression_id): Simplify SSA name handling.
18462 (lookup_expression_id): Likewise.
18463 (init_pre): Zero name_to_id.
18464 (fini_pre): Free it.
18466 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
18468 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18470 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
18473 * config/i386/sse.md (smaxv2di3): New.
18474 (umaxv2di3): Likewise.
18475 (sminv2di3): Likewise.
18476 (uminv2di3): Likewise.
18478 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
18481 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18482 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18483 (legitimize_tls_address): Likewise.
18484 (sparc_tls_referenced_p): Likewise.
18485 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18486 and adjust calls to legitimize_pic_address.
18487 (legitimate_constant_p) Use sparc_tls_referenced_p.
18488 (legitimate_pic_operand_p): Likewise.
18489 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18490 (sparc_tls_symbol_ref_1): Delete.
18491 (sparc_tls_referenced_p): Make static, recognize specific patterns.
18492 (legitimize_tls_address): Make static, handle CONST patterns.
18493 (legitimize_pic_address): Make static, remove unused parameter and
18494 adjust recursive calls.
18495 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18496 and adjust call to legitimize_pic_address.
18497 (sparc_output_mi_thunk): Likewise.
18499 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
18500 H.J. Lu <hongjiu.lu@intel.com>
18503 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18504 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18505 operands to make them signed.
18508 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18511 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18512 GTU to GT for V4SI and V2DI.
18514 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18515 (umin<mode>3): Removed.
18517 (uminv4si3): Likewise.
18519 2010-01-05 Martin Jambor <mjambor@suse.cz>
18521 PR tree-optimization/42462
18522 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18523 current_function_decl to helper functions and macros.
18525 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18528 * flags.h: Don't include real.h.
18529 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18530 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18531 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18532 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18533 * dominance.c: Update copyright.
18534 * gimple.c (walk_gimple_op): Remove inline.
18535 * tree-ssa-reassoc.c: Include real.h.
18536 * Makefile.in (FLAGS_H): Remove $(REAL_H).
18537 (tree-ssa-reassoc.o): Depend on $(REAL_H).
18539 2010-01-05 Nick Clifton <nickc@redhat.com>
18541 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18542 register to push into the stack frame when the accumulator has to
18543 be saved during interrupts.
18545 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
18547 * doc/invoke.texi: Remove the documentation about option
18548 -Wunreachable-code.
18549 * common.opt (Wunreachable-code): Preserved for backward
18551 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18552 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18553 the backward compatibility flag section.
18555 2010-01-05 Richard Guenther <rguenther@suse.de>
18557 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18559 2010-01-05 Jakub Jelinek <jakub@redhat.com>
18562 * cfgexpand.c (expand_one_var): Diagnose too large variables.
18564 PR tree-optimization/42508
18565 * tree-sra.c (convert_callers): Check for recursive call
18566 by comparing cgraph nodes instead of decls.
18567 (modify_function): Call ipa_modify_formal_parameters also
18568 on all same_body aliases.
18570 * cgraphunit.c (cgraph_materialize_all_clones): Compare
18571 cgraph nodes when checking for same_body aliases.
18573 2010-01-05 Richard Guenther <rguenther@suse.de>
18575 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18576 allocation and lookup.
18577 (get_or_alloc_expr_for_constant): Likewise.
18578 (phi_translate): Sink allocation.
18580 2010-01-04 Richard Guenther <rguenther@suse.de>
18582 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18583 a new entry only if needed.
18584 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18585 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18587 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18589 (phi_translate): Handle CONSTANTs early.
18591 2010-01-04 Martin Jambor <mjambor@suse.cz>
18593 PR tree-optimization/42398
18594 * tree-sra.c (struct access): Removed flag grp_different_types.
18595 (dump_access): Do not dump the removed flag.
18596 (sort_and_splice_var_accesses): Do not set the removed flag.
18597 (sra_modify_expr): Check for type compatibility directly.
18599 2010-01-04 Martin Jambor <mjambor@suse.cz>
18601 PR tree-optimization/42366
18602 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18603 edges with variable number of parameters.
18604 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18605 flag instead of asserting it.
18606 (ipa_read_node_info): Read uses_analysis_done flag.
18608 2010-01-04 Richard Guenther <rguenther@suse.de>
18610 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18611 iterative_hash_* as intended.
18612 (vn_reference_compute_hash): Likewise. Simplify hashing
18614 (vn_reference_lookup_2): Likewise.
18615 (vn_nary_op_compute_hash): Likewise.
18616 (vn_phi_compute_hash): Likewise.
18617 (expressions_equal_p): Remove strange code.
18618 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18619 (pre_expr_hash): Likewise. Simplify hashing SSA names.
18620 (bitmap_insert_into_set_1): Take value-id as parameter.
18621 (add_to_value): Pass it.
18622 (bitmap_insert_into_set): Likewise.
18623 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
18625 2010-01-04 Jakub Jelinek <jakub@redhat.com>
18628 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18629 (do_self_spec): For switches with SWITCH_IGNORE set set also
18630 SWITCH_IGNORE_PERMANENTLY.
18631 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18634 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
18636 * lto-streamer-out.c (output_unreferenced_globals): Output the full
18637 tree of an unreferenced global var.
18639 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18642 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18643 GTU to GT for V4SI and V2DI.
18645 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18646 (umin<mode>3): Removed.
18648 (uminv4si3): Likewise.
18650 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18653 * collect2.c (main): Turn on trace in collect2 if -v is passed
18656 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
18658 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
18659 description of expression operand.
18661 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
18663 * configure.ac: Add install-html to target_list for Make-hooks.
18664 * configure: Regenerate.
18665 * fortran/Make-lang.in (F95_HTMLFILES): New.
18666 (fortran.html): Use it.
18667 (fortran.install-html): New.
18668 * Makefile.in (install-html): Add lang.install-html.
18669 * java/Make-lang.in (JAVA_HTMLFILES): New.
18670 (java.html): Use it.
18671 (java.install-html): New.
18672 * objc/Make-lang.in (objc.install-html): New.
18673 * objcp/Make-lang.in (obj-c++.install-html): New.
18674 * cp/Make-lang.in (c++.install-html): New.
18675 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18676 * lto/Make-lang.in (lto.install-html): New.
18678 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18681 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18683 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
18685 PR rtl-optimization/41862
18686 * store-motion.c (store_killed_in_insn, compute_store_table,
18687 remove_reachable_equiv_notes, replace_store_insn,
18688 build_store_vectors): Ignore all DEBUG_INSNs.
18690 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18693 * common.opt: Add dumpdir.
18695 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18697 (option_map): Add --dumpdir.
18699 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18701 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18703 * opts.c (decode_options): Try dump_dir_name first if
18704 dump_base_name isn't an absolute path.
18705 (common_handle_option): Handle OPT_dumpdir.
18707 * toplev.c (dump_dir_name): New.
18708 (print_switch_values): Also ignore -dumpdir.
18710 * toplev.h (dump_dir_name): New.
18712 2010-01-03 Richard Guenther <rguenther@suse.de>
18714 PR tree-optimization/42589
18715 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18716 double-word expansion of bswap32.
18718 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
18720 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18721 with BLOCK_FOR_INSN.
18722 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18723 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18724 noce_process_if_block): Likewise.
18725 * gcse.c (compute_local_properties, insert_expr_in_table,
18726 insert_set_in_table, canon_list_insert, find_avail_set,
18727 pre_insert_copy_insn): Likewise.
18729 * basic-block.h (BLOCK_NUM): Move from here...
18730 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18732 2010-01-03 Richard Guenther <rguenther@suse.de>
18734 PR tree-optimization/42438
18735 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18736 contains_may_not_return_call flag.
18737 (BB_MAY_NOTRETURN): New.
18738 (valid_in_sets): Trapping nary operations are not valid
18739 in blocks that may not return.
18740 (insert_into_preds_of_block): Remove check for trapping expressions.
18741 (compute_avail): Compute also BB_MAY_NOTRETURN.
18743 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
18745 * doc/invoke.texi: Add 2010 to copyright years.
18747 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
18749 * config/sparc/sparc.c: Fix formatting nits.
18751 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
18752 Alexander Monakov <amonakov@ispras.ru>
18754 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18756 2010-01-02 Richard Guenther <rguenther@suse.de>
18758 PR middle-end/42577
18759 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18760 (simplify_switch_using_ranges): Mark to be removed edges
18763 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18765 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18767 * collect2.c (scan_libraries): Add missing argument in call to
18770 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
18773 * config/alpha/predicates.md (aligned_memory_operand): Return false
18775 (unaligned_memory_operand): Return true for CQImode.
18776 * config/alpha/alpha.c (get_aligned_mem): Assert that location
18777 doesn not cross aligned SImode word boundary.
18779 2010-01-02 Anatoly Sokolov <aesok@post.ru>
18781 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18783 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18784 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18786 2010-01-02 Richard Guenther <rguenther@suse.de>
18789 * toplev.c (compile_file): Emit LTO marker properly. Change
18790 it to __gnu_lto_v1.
18791 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18793 2010-01-01 Richard Guenther <rguenther@suse.de>
18796 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18798 2010-01-01 Richard Guenther <rguenther@suse.de>
18801 * c-decl.c (grokdeclarator): For zero-size arrays force
18802 structural equality checks as layout_type does.
18804 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18806 * builtins.c: Update copyright to 2010.
18808 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18811 * lto-streamer-out.c (produce_asm): Revert the last change.
18812 (copy_function): Likewise.
18814 * lto-streamer.c (lto_get_section_name): Skip any leading
18817 2010-01-01 Richard Guenther <rguenther@suse.de>
18819 PR middle-end/42559
18820 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18824 Copyright (C) 2010 Free Software Foundation, Inc.
18826 Copying and distribution of this file, with or without modification,
18827 are permitted in any medium without royalty provided the copyright
18828 notice and this notice are preserved.