0fddd4a2bd8b298ea188ed7e9214ef51312283f1
[gcc.git] / gcc / ChangeLog
1 2010-09-21 Anatoly Sokolov <aesok@post.ru>
2
3 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
4 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
5 Remove.
6 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make
7 static.
8 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9
10 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
11
12 PR objc/23710
13 * c-parser.c (c_parser_objc_method_definition): Check the return
14 value of objc_start_method_definition and if false is returned,
15 parse the method definition but emit no code.
16
17 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
18
19 PR objc/25965
20 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
21 call objc_get_interface_ivars ().
22 * c-family/c-common.h (objc_get_interface_ivars): New declaration.
23 * c-family/stub-objc.c (objc_get_interface_ivars): New stub.
24
25 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
26
27 PR target/45694
28 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
29 static chain-register is used for 64-bit.
30
31 2010-09-21 Richard Guenther <rguenther@suse.de>
32
33 * dwarf2out.c (is_cu_die): New function.
34 (add_pubtype): Use it.
35 (gen_subprogram_die): Likewise.
36 (gen_struct_or_union_type_die): Likewise.
37 (dwarf2out_finish): Likewise.
38 (comp_unit_die): Rename to ...
39 (single_comp_unit_die): ... this.
40 (comp_unit_die): New function lazily constructing and
41 returning single_comp_unit_die.
42 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
43 base_type_die, subrange_type_die, modified_type_die,
44 lower_bound_default, add_bound_info, add_prototyped_attribute,
45 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
46 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
47 force_decl_die, gen_namespace_die, dwarf2out_decl,
48 dwarf2out_start_source_file, dwarf2out_end_source_file,
49 prune_unused_types, dwarf2out_finish): Use it.
50 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
51 the global list of translation-unit decls.
52 (dwarf2out_init): Do not create single_comp_unit_die here.
53 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
54
55 2010-09-21 Richard Guenther <rguenther@suse.de>
56
57 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
58 for bool for C++.
59
60 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
61
62 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
63 (qhs_extenddi_cstr): Likewise.
64 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
65 them for the source operand.
66
67 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
68
69 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
70 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
71 (ix86_split_ashr): Ditto.
72 (ix86_split_lshr): Ditto.
73
74 2010-09-21 Richard Guenther <rguenther@suse.de>
75
76 PR tree-optimization/45580
77 * tree-ssa-propagate.c (substitute_and_fold): Always replace
78 regular uses.
79 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
80 virtuals fold the call into a regular indirect one.
81
82 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
83
84 PR rtl-optimization/42775
85 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
86 scheduling is enabled.
87
88 2010-09-20 Jakub Jelinek <jakub@redhat.com>
89
90 PR rtl-optimization/45728
91 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
92 gen_lowpart_common first and if that fails, force_reg first
93 before calling gen_lowpart.
94
95 PR middle-end/45678
96 * cfgexpand.c (expand_one_stack_var_at): Use
97 crtl->max_used_stack_slot_alignment as max_align, instead
98 of maximum of that and PREFERRED_STACK_BOUNDARY.
99 Don't call update_stack_alignment.
100
101 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
102
103 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
104 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
105 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
106 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
107 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
108 (build_nonstandard_integer_type): Likewise.
109 (build_range_type_1): New function, built from...
110 (build_range_type): ...this. Call build_range_type_1.
111 (build_nonshared_range_type): New function.
112 (build_array_type_1): New function, built from...
113 (build_array_type: ...this. Call build_array_type_1.
114 (build_nonshared_array_type): New function.
115 * tree.h (build_nonshared_range_type): Declare.
116 (build_nonshared_array_type): Likewise.
117
118 2010-09-20 Anatoly Sokolov <aesok@post.ru>
119
120 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
121 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
122 (arm_class_likely_spilled_p): New function.
123
124 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
125
126 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
127 indirect functions.
128 (ix86_split_ashl): Ditto.
129 (ix86_split_ashr): Ditto.
130 (ix86_split_lshr): Ditto.
131 (ix86_adjust_counter): Ditto.
132
133 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
134
135 * c-family/c-common.h (constant_string_class): Documented with
136 comment identical to the one already in c-common.c.
137
138 2010-09-20 Jakub Jelinek <jakub@redhat.com>
139
140 * dwarf2out.c (any_cfis_emitted): New static variable.
141 (add_fde_cfi): Set it.
142 (dwarf2out_frame_debug): Clear it before processing,
143 if it is set afterwards, flush any queued reg saves.
144
145 PR debug/45124
146 * dwarf2out.c (add_accessibility_attribute): Assume
147 DW_ACCESS_private as the default for dwarf_version > 2
148 and DW_TAG_class_type parent.
149 (gen_inheritance_die): Assume DW_ACCESS_public as the default
150 for dwarf_version > 2 and parent other than DW_TAG_class_type.
151
152 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
153
154 PR target/45726
155 * arm.md (arm_movt): Only enable on machines with MOVT.
156
157 2010-09-20 Jie Zhang <jie@codesourcery.com>
158
159 * config/arm/arm.c (arm_address_offset_is_imm): New.
160 (arm_early_store_addr_dep): New.
161 (arm_early_load_addr_dep): New.
162 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
163 (arm_early_load_addr_dep): Declare.
164 (arm_address_offset_is_imm): Declare.
165 * config/arm/cortex-m4.md: New file.
166 * config/arm/cortex-m4-fpu.md: New file.
167 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
168 (attr generic_sched): Exclude cortexm4.
169 (attr generic_vfp): Exclude cortexm4.
170
171 2010-09-20 Richard Guenther <rguenther@suse.de>
172
173 PR middle-end/45704
174 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
175
176 2010-09-20 Jan Hubicka <jh@suse.cz>
177
178 PR tree-optimize/45605
179 * cgraph.h (const_value_known_p): Declare.
180 (varpool_decide_const_value_known): Remove.
181 * tree-ssa-ccp.c (get_base_constructor): Use it.
182 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
183 * expr.c (string_constant): Likewise.
184 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
185 * ipa.c (ipa_discover_readonly_nonaddressable_var,
186 function_and_variable_visibility): Likewise.
187 * gimplify.c (gimplify_call_expr): Likewise.
188 * gimple-fold.c (get_symbol_constant_value): Likewise.
189 * varpool.c (varpool_decide_const_value_known): Replace by...
190 (const_value_known_p): ... this one; handle other kinds of DECLs
191 too and work for automatic vars.
192 (varpool_finalize_decl): Use const_value_known_p.
193
194 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
195
196 PR target/45726
197 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
198
199 2010-09-20 Richard Guenther <rguenther@suse.de>
200
201 PR tree-optimization/45705
202 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
203
204 2010-09-20 Jakub Jelinek <jakub@redhat.com>
205
206 PR rtl-optimization/45695
207 * combine.c (try_combine): When splitting a two set pattern,
208 make sure the pattern which will be put into i2 doesn't use REGs
209 or MEMs set by insns in between i2 and i3.
210
211 2010-09-19 Jan Hubicka <jh@suse.cz>
212
213 PR lto/44246
214 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
215 processing same node twice.
216
217 2010-09-19 Anatoly Sokolov <aesok@post.ru>
218
219 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
220 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
221 (bfin_class_likely_spilled_p): New function
222
223 2010-09-19 Ira Rosen <irar@il.ibm.com>
224
225 PR tree-optimization/45714
226 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
227 created in vectorizable_call instead of the original statement in
228 def stmt updates.
229
230 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
231
232 * config/i386/i386-protos.h (split_double_mode): New prototype.
233 (split_di, split_ti): Remove prototypes.
234 * config/i386/i386.c (split_double_mode): New function.
235 (split_di, split_ti): Remove.
236 (ix86_expand_branch): Use split_double_mode.
237 (ix86_split_to_parts): Ditto.
238 (ix86_split_ashl): Ditto.
239 (ix86_split_ashr): Ditto.
240 (ix86_split_lshr): Ditto.
241 (ix86_force_to_memory): Ditto.
242 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
243
244 2010-09-18 Jan Hubicka <jh@suse.cz>
245
246 PR tree-optimization/45453
247 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
248 virtual functions are reachable.
249 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
250 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
251 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
252 when modifying function.
253
254 2010-09-18 Jan Hubicka <jh@suse.cz>
255
256 PR tree-optimization/45605
257 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
258 * gimple-fold.c (static_object_in_other_unit_p): New function.
259 (canonicalize_constructor_val): Use it.
260 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
261 returning NULL.
262 (gimple_fold_obj_type_ref_known_binfo): Use
263 static_object_in_other_unit_p.
264
265 2010-09-18 Richard Guenther <rguenther@suse.de>
266
267 PR tree-optimization/45709
268 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
269 insertions until after all PHI nodes of the block are processed.
270
271 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
272
273 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
274
275 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
276
277 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
278
279 2010-09-18 Richard Guenther <rguenther@suse.de>
280
281 PR tree-optimization/45709
282 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
283
284 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
285
286 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
287 (dot_deps_stmt): Same.
288 * graphite-poly.c (dot_lst): Same.
289 * graphite-scop-detection.c (dot_all_scops): Same.
290 (dot_scop): Same.
291
292 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
293
294 Revert:
295 2009-12-16 Ben Elliston <bje@au.ibm.com>
296
297 * tree-data-ref.c (dot_rdg_1): Added back.
298 (dot_rdg): Same. Added "#if 0" around system call.
299
300 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
301 Richard Henderson <rth@redhat.com>
302
303 * config/i386/i386.c (initial_ix86_tune_features): Add
304 X86_TUNE_PAD_SHORT_FUNCTION.
305 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
306 (ix86_count_insn): New.
307 (ix86_pad_short_function): Likewise.
308 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
309
310 * config/i386/i386.h (ix86_tune_indices): Add
311 X86_TUNE_PAD_SHORT_FUNCTION.
312 (TARGET_PAD_SHORT_FUNCTION): New.
313
314 * config/i386/i386.md (UNSPEC_NOPS): New.
315 (nops): Likewise.
316
317 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
318
319 PR middle-end/45234
320 * calls.c (expand_call): Make sure that all variable sized
321 adjustments are multiple of preferred stack boundary after
322 stack alignment.
323
324 2010-09-17 DJ Delorie <dj@redhat.com>
325
326 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
327 passed an invalid value, print an error instead of ICEing.
328 (valid_psw_flag): New.
329 (rx_expand_builtin): Call it for setpsw/clrpsw.
330 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
331
332 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
333 (bitclr_in_memory): Likewise.
334 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
335
336 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
337
338 PR middle-end/45678
339 * cfgexpand.c (update_stack_alignment): New.
340 (get_decl_align_unit): Use it.
341 (expand_one_stack_var_at): Call update_stack_alignment.
342
343 2010-09-17 Richard Guenther <rguenther@suse.de>
344
345 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
346 Properly copy the read string.
347
348 2010-09-17 Joseph Myers <joseph@codesourcery.com>
349
350 * doc/options.texi (Variable): Document.
351 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
352 generate target_flags declarations explicitly. Don't define
353 VarExists variables for the driver.
354 * common.opt (target_flags): New Variable record.
355 (flag_dump_unnumbered, flag_dump_unnumbered_links,
356 flag_var_tracking, flag_var_tracking_assignments,
357 flag_var_tracking_assignments_toggle): Don't mark variables with
358 VarExists.
359 * config/i386/i386.c (ix86_isa_flags): Don't define here.
360 * config/i386/i386.opt (ix86_isa_flags): Define here.
361 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
362 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
363 VarExists.
364 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
365 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
366 Only define for generator programs.
367 * rtlanal.c (target_flags): Remove.
368 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
369 flag_var_tracking_assignments_toggle): Remove.
370
371 2010-09-17 Michael Matz <matz@suse.de>
372
373 PR tree-optimization/43432
374 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
375 Accept backwards consecutive accesses.
376 (vect_create_data_ref_ptr): If step is negative generate
377 decreasing IVs.
378 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
379 (perm_mask_for_reverse, reverse_vec_elements): New functions.
380 (vectorizable_load): Handle loads with negative steps when easily
381 possible.
382
383 2010-09-03 Jan Hubicka <jh@suse.cz>
384
385 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
386
387 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
388
389 * config/v850/v850.c (v850_function_value_regno_p): Make static.
390 Adjust comments. Declare.
391 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
392 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
393
394 2010-09-17 Richard Guenther <rguenther@suse.de>
395
396 * common.opt (combine): Remove.
397 * gcc.c (default_compilers): Remove specs testing combine.
398 The C compilers no longer can combine.
399 (option_map): Remove -combine.
400 (display_help): Remove -combine.
401 (driver_handle_option): Remove OPT_combine handling.
402 (compile_input_file_p): Remove.
403 (do_spec): Remove code concerning combine.
404 (main): Likewise.
405 * doc/invoke.texi: Remove traces of -combine.
406 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
407
408 2010-09-17 Richard Guenther <rguenther@suse.de>
409
410 PR middle-end/45678
411 * builtins.c (fold_builtin_memory_op): Always properly adjust
412 alignment of memory accesses.
413
414 2010-09-16 Jan Hubicka <jh@suse.cz>
415
416 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
417 processing clone.
418
419 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
420
421 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
422
423 * config/i386/i386.c (predict_jump): Add prototype.
424 (flag_opts): Add -m8bit-idiv.
425 (ix86_split_idivmod): New.
426
427 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
428 Add 2 splitters for SI/DI mode divide.
429 (divmod<mode>4_1): New pattern.
430 (udivmod<mode>4_1): Likewise.
431 (testdi_ccno_1): Likewise.
432
433 * config/i386/i386.opt (m8bit-idiv): New.
434
435 * doc/invoke.texi: Document -m8bit-idiv.
436
437 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
438
439 PR bootstrap/45680
440 * config/i386/i386.c (min_insn_size): Moved out of the
441 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
442
443 2010-09-16 Jan Hubicka <jh@suse.cz>
444
445 * lto-cgraph.c (lto_output_node): Fix handling of clones.
446 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
447 unreachable clones with reachable clones.
448 * tree-inline.c (copy_bb): Fix sanity checking when producing
449 unreachable clone.
450
451 2010-09-16 Anatoly Sokolov <aesok@post.ru>
452
453 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
454 (TARGET_MEMORY_MOVE_COST): Define.
455 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
456
457 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
458
459 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
460 maybe_tidy_empty_bb.
461
462 Revert:
463 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
464 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
465
466 2010-09-16 Joseph Myers <joseph@codesourcery.com>
467
468 * target.def (target_option.optimization): New hook.
469 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
470 TARGET_OPTION_OPTIMIZATION hook.
471 * doc/tm.texi: Regenerate.
472 * hooks.c (hook_void_int_int): New.
473 * hooks.h (hook_void_int_int): Declare.
474 * opts.c: Don't include tm_p.h.
475 (decode_options): Use targetm.target_option.optimization instead
476 of OPTIMIZATION_OPTIONS.
477 * system.h (OPTIMIZATION_OPTIONS): Poison.
478 * config/arm/arm-protos.h (arm_optimization_options): Remove.
479 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
480 (arm_optimization_options): Rename to arm_option_optimization.
481 Make static.
482 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
483 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
484 (cris_option_optimization): New.
485 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
486 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
487 (crx_option_optimization): New.
488 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
489 * config/frv/frv-protos.h (frv_optimization_options): Remove.
490 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
491 (frv_optimization_options): Rename to frv_option_optimization.
492 Make static.
493 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
494 * config/h8300/h8300.c (h8300_option_optimization): New.
495 (TARGET_OPTION_OPTIMIZATION): Define.
496 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
497 * config/i386/i386-protos.h (optimization_options): Remove.
498 * config/i386/i386.c (optimization_options): Rename to
499 ix86_option_optimization. Make static.
500 (TARGET_OPTION_OPTIMIZATION): Define.
501 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
502 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
503 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
504 (ia64_optimization_options): Rename to ia64_option_optimization.
505 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
506 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
507 commented-out definition.
508 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
509 instead of OPTIMIZATION_OPTIONS.
510 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
511 (m32r_option_optimization): New.
512 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
513 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
514 Remove.
515 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
516 (mcore_option_optimization): New.
517 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
518 * config/mep/mep-protos.h (mep_optimization_options): Remove.
519 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
520 (mep_optimization_options): Rename to mep_option_optimization.
521 Make static. Take unused level and size parameters.
522 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
523 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
524 (mmix_option_optimization): New.
525 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
526 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
527 (pdp11_option_optimization): New.
528 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
529 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
530 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
531 (optimization_options): Rename to rs6000_option_optimization.
532 Make static.
533 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
534 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
535 * config/rx/rx.c (rx_set_optimization_options): Rename to
536 rx_option_optimization. Make static. Take unused level and size
537 parameters.
538 (TARGET_OPTION_OPTIMIZATION): Define.
539 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
540 * config/s390/s390-protos.h (optimization_options): Remove.
541 * config/s390/s390.c (optimization_options): Rename to
542 s390_option_optimization. Make static. Don't mark size parameter
543 unused.
544 (TARGET_OPTION_OPTIMIZATION): Define.
545 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
546 * config/sh/sh-protos.h (sh_optimization_options): Remove.
547 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
548 (sh_optimization_options): Rename to sh_option_optimization. Make
549 static. Don't mark parameters unused.
550 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
551 * config/spu/spu-protos.h (spu_optimization_options): Remove.
552 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
553 (spu_optimization_options): Rename to spu_option_optimization.
554 Make static.
555 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
556 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
557 (v850_option_optimization): New.
558 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
559 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
560 (xtensa_option_optimization): New.
561 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
562
563 2010-09-16 Joseph Myers <joseph@codesourcery.com>
564
565 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
566 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
567 * doc/tm.texi: Regenerate.
568 * system.h (OVERRIDE_OPTIONS): Poison.
569 * target.def (override): Default to hook_void_void.
570 * targhooks.c (default_target_option_override): Remove.
571 * genmodes.c, machmode.def: Update comments mentioning
572 OVERRIDE_OPTIONS.
573 * config/alpha/alpha-modes.def: Update comment mentioning
574 alpha_override_options.
575 * config/alpha/alpha-protos.h (override_options): Remove.
576 * config/alpha/alpha.c (override_options): Rename to
577 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
578 (TARGET_OPTION_OVERRIDE): Define.
579 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
580 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
581 of OVERRIDE_OPTIONS.
582 * config/arc/arc-protos.h (arc_init): Remove.
583 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
584 (arc_init): Rename to arc_option_override. Make static.
585 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
586 (OVERRIDE_OPTIONS): Remove.
587 * config/arm/arm-protos.h (arm_override_options): Remove.
588 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
589 (arm_override_options): Rename to arm_option_override. Make
590 static. Call SUBTARGET_OVERRIDE_OPTIONS.
591 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
592 * config/arm/arm.md: Update comment referring to arm_override_options.
593 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
594 instead of OVERRIDE_OPTIONS.
595 * config/avr/avr-protos.h (avr_override_options): Remove.
596 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
597 (avr_override_options): Rename to avr_option_override. Make static.
598 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
599 * config/bfin/bfin-protos.h (override_options): Remove (twice).
600 * config/bfin/bfin.c (override_options): Rename to
601 bfin_option_override. Make static.
602 (TARGET_OPTION_OVERRIDE): Define.
603 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
604 * config/cris/cris-protos.h (cris_override_options): Remove.
605 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
606 (cris_override_options): Rename to cris_option_override. Make static.
607 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
608 * config/frv/frv-protos.h (frv_override_options): Remove.
609 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
610 (frv_override_options): Rename to frv_option_override. Make static.
611 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
612 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
613 * config/h8300/h8300.c (h8300_init_once): Rename to
614 h8300_option_override. Make static.
615 (TARGET_OPTION_OVERRIDE): Define.
616 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
617 * config/i386/i386-protos.h (override_options): Remove.
618 * config/i386/i386.c (override_options): Rename to
619 ix86_option_override_internal. Make static. Comments referring
620 to this function and callers changed.
621 (ix86_option_override): New.
622 (TARGET_OPTION_OVERRIDE): Define.
623 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
624 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
625 * config/ia64/ia64.c (ia64_file_start): Update comment referring
626 to ia64_override_options.
627 * config/iq2000/iq2000-protos.h (override_options): Remove.
628 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
629 (override_options): Rename to iq2000_option_override. Make static.
630 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
631 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
632 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
633 (lm32_override_options): Rename to lm32_option_override. Make static.
634 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
635 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
636 (m32r_option_override): New.
637 (m32r_init): Update comment.
638 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
639 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
640 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
641 (m68hc11_override_options): Rename to m68hc11_option_override.
642 Make static. Return void.
643 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
644 * config/m68k/m68k-protos.h (override_options): Remove.
645 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
646 (override_options): Rename to m68k_option_override. Make static.
647 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
648 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
649 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
650 (mcore_override_options): Rename to mcore_option_override. Make
651 static.
652 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
653 * config/mep/mep-protos.h (mep_override_options): Remove.
654 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
655 (mep_override_options): Rename to mep_option_override. Make static.
656 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
657 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
658 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
659 (mmix_override_options): Rename to mmix_option_override. Make static.
660 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
661 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
662 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
663 (mn10300_override_options): Rename to mn10300_option_override.
664 Make static.
665 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
666 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
667 * config/moxie/moxie.c (moxie_override_options): Rename to
668 moxie_option_override. Make static.
669 (TARGET_OPTION_OVERRIDE): Define.
670 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
671 * config/picochip/picochip-protos.h (picochip_override_options):
672 Remove. Update comment referring to picochip_override_options.
673 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
674 (picochip_override_options): Rename to picochip_option_override.
675 Make static. Update comment and definition of
676 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
677 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
678 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
679 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
680 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
681 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
682 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
683 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
684 instead of OVERRIDE_OPTIONS.
685 * config/rs6000/rs6000-modes.def: Update comment referring to
686 rs6000_override_options.
687 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
688 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
689 (rs6000_override_options): Rename to
690 rs6000_option_override_internal. Make static. Commented
691 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
692 (rs6000_option_override): New.
693 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
694 instead of OVERRIDE_OPTIONS.
695 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
696 * config/s390/s390-protos.h (override_options): Remove.
697 * config/s390/s390.c (override_options): Rename to
698 s390_option_override. Make static.
699 (TARGET_OPTION_OVERRIDE): Define.
700 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
701 * config/score/score-protos.h (score_override_options): Remove.
702 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
703 (score_override_options): Rename to score_option_override. Make
704 static.
705 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
706 Update comment referring to override_options.
707 * config/score/score3.c (score3_override_options): Rename to
708 score3_option_override.
709 * config/score/score3.h (score3_override_options): Rename to
710 score3_option_override.
711 * config/score/score7.c (score7_override_options): Rename to
712 score7_option_override.
713 * config/score/score7.h (score7_override_options): Rename to
714 score7_option_override.
715 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
716 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
717 (sparc_override_options): Rename to sparc_option_override. Make
718 static. Call SUBTARGET_OVERRIDE_OPTIONS.
719 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
720 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
721 instead of OVERRIDE_OPTIONS.
722 * config/spu/spu-protos.h (spu_override_options): Remove.
723 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
724 (spu_override_options): Rename to spu_option_override. Make
725 static.
726 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
727 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
728 OVERRIDE_OPTIONS.
729 * config/vax/vax-protos.h (override_options): Remove.
730 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
731 (override_options): Rename to vax_option_override. Make static.
732 Call SUBTARGET_OVERRIDE_OPTIONS.
733 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
734 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
735 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
736 * config/xtensa/xtensa-protos.h (override_options): Remove.
737 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
738 (override_options): Rename to xtensa_option_override. Make static.
739 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
740
741 2010-09-16 Richard Guenther <rguenther@suse.de>
742
743 PR tree-optimization/45623
744 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
745 (get_constraint_for_component_ref): If computing a constraint
746 for the rhs handle type punning through unions.
747 (get_constraint_for_address_of): Adjust.
748 (get_constraint_for_1): Likewise.
749 (get_constraint_for): Likewise.
750 (get_constraint_for_rhs): New function.
751 (do_structure_copy): Adjust.
752 (make_constraint_to): Likewise.
753 (handle_const_call): Likewise.
754 (find_func_aliases): Likewise.
755 (process_ipa_clobber): Likewise.
756 (create_variable_info_for): Likewise.
757
758 2010-09-16 Ira Rosen <irar@il.ibm.com>
759
760 * tree-vectorizer.c: Fix documentation.
761 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
762 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
763 is_pattern_stmt_p, is_loop_header_bb_p,
764 stmt_vinfo_set_inside_of_loop_cost,
765 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
766 known_alignment_for_access_p): Likewise.
767 * tree-vect-loop.c: Fix documentation.
768 (vect_get_cost): Start function name from new line.
769 * tree-vect-data-refs.c: Fix documentation.
770 * tree-vect_stmts.c: Likewise.
771 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
772 (vectorizable_store): Free vec_oprnds if allocated.
773 (vectorizable_condition): Initialize several variables to avoid
774 warnings.
775 * tree-vect-slp.c: Fix documentation.
776
777 2010-09-16 Richard Guenther <rguenther@suse.de>
778
779 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
780 is TS_TRANSLATION_UNIT_DECL.
781 (initialize_tree_contains_struct): Adjust.
782 (all_translation_units): New global vector.
783 (build_translation_unit_decl): New function.
784 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
785 (struct tree_translation_unit_decl): New.
786 (all_translation_units): Declare.
787 (union tree_node): Add translation_unit_decl member.
788 (build_translation_unit_decl): Declare.
789 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
790 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
791 New function.
792 (pack_value_fields): Call it.
793 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
794 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
795 (lto_output_tree_pointers): Call it.
796 * lto-streamer-in.c (lto_input_tree_ref): Handle references
797 to TRANSLATION_UNIT_DECL.
798 (unpack_ts_translation_unit_decl_value_fields): New function.
799 (unpack_value_fields): Call it.
800 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
801 (lto_input_tree_pointers): Call it.
802 * lto-streamer.c (check_handled_ts_structures): Adjust.
803 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
804 * c-decl.c (all_translation_units): Remove.
805 (pop_scope): Use build_translation_unit_decl.
806 (collect_all_refs): Adjust.
807 (for_each_global_decl): Likewise.
808 (c_write_global_declarations): Likewise.
809
810 2010-09-16 Jakub Jelinek <jakub@redhat.com>
811
812 PR bootstrap/45686
813 * fold-const.c (fold_checksum_tree): Change slot from const void **
814 to void **, use CONST_CAST_TREE to store into *slot.
815
816 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
817
818 * config/i386/i386.md: Remove unneeded empty conditions and
819 preparation statements from expanders.
820 * config/i386/mmx.md: Ditto.
821 * config/i386/sse.md: Ditto.
822
823 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
824
825 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
826
827 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
828
829 PR rtl-optimization/45593
830 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
831 insns that were in delay slots as stand-alone insns.
832
833 2010-09-15 Ian Lance Taylor <iant@google.com>
834
835 * incpath.c (remove_duplicates): If name is not a directory, issue
836 a warning rather than an error.
837
838 2010-09-15 Martin Jambor <mjambor@suse.cz>
839
840 PR middle-end/45644
841 * tree-sra.c (create_access): Check for bit-fields directly.
842
843 2010-09-15 Jakub Jelinek <jakub@redhat.com>
844
845 PR tree-optimization/45633
846 * tree-cfg.c (verify_gimple_assign_binary): Allow
847 MINUS_EXPR with lhs and rhs1 pointer vector and
848 rhs2 sizetype vector.
849 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
850 or vector pointer use TER to optimize pointer subtraction.
851
852 2010-09-15 Jie Zhang <jie@codesourcery.com>
853
854 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
855 fcmpd to fcmps.
856
857 2010-09-15 Ian Lance Taylor <iant@google.com>
858
859 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
860
861 2010-09-15 Ian Lance Taylor <iant@google.com>
862
863 * function.c (get_arg_pointer_save_area): Set
864 arg_pointer_save_area_init to true.
865
866 2010-09-15 Martin Jambor <mjambor@suse.cz>
867
868 * tree-sra.c (generate_subtree_copies): Updated comment.
869 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
870 obtained from the statement iterator instead.
871 (load_assign_lhs_subreplacements): Removed parameters lhs and
872 right_offset, which is obtained from top_racc instead. Parameter lacc
873 is now expected to be the root of the processed tree rather than root's
874 first child. Updated all callers.
875
876 2010-09-15 Joseph Myers <joseph@codesourcery.com>
877
878 * config/pdp11/pdp11.c (register_move_cost): Rename to
879 pdp11_register_move_cost.
880 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
881 pdp11_register_move_cost.
882 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
883 pdp11_register_move_cost instead of register_move_cost.
884
885 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
886
887 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
888 pattern for vmovn. Expansion in case of non
889 -mvectorize-with-neon-quad.
890 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
891 non- -mvectorize-with-neon-quad case.
892 (move_lo_quad_<mode>): New expansion to vmov into low part.
893 (move_hi_quad_<mode>): New expansion to vmov into high part.
894 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
895 (move_lo_quad_v4sf): Likewise.
896 (move_lo_quad_v8hi): Likewise.
897 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
898 low part.
899 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
900 high part.
901 * config/arm/iterators.md (ANY128): New mode iterator.
902 (V_narrow_pack): New mode attribute.
903 (V_HALF): Add attribute.
904 (V_DOUBLE): Add attribute.
905 (V_mode_nunits): Add attribute.
906
907 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
908
909 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
910 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
911
912 2010-09-15 Olivier Hainque <hainque@adacore.com>
913 Jose Ruiz <ruiz@adacore.com>
914
915 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
916 * config/alpha/osf5-unwind.h: New file.
917
918 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
919
920 PR bootstrap/45672
921 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
922 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
923 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
924
925 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
926
927 * c-lang.h (struct lang_type): Add variable_size GTY option.
928
929 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
930
931 PR bootstrap/45672
932 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
933
934 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
935
936 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
937 result isn't used in memory address.
938
939 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
940
941 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
942 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
943 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
944 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
945 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
946 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
947
948 * target.def: Add units_per_simd_word to vectorize.
949
950 * targhooks.c (default_units_per_simd_word): New.
951 * targhooks.h (default_units_per_simd_word): Likewise.
952 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
953 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
954 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
955 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
956 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
957 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
958 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
959 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
960
961 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
962 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
963
964 * tree-vect-stmts.c: Don't include "tm_p.h".
965 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
966 with targetm.vectorize.units_per_simd_word.
967
968 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
969
970 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
971
972 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
973 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
974
975 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
976 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
977
978 * doc/tm.texi: Regenerated.
979
980 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
981
982 * tree-vect-stmts.c: Include "tm_p.h".
983
984 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
985 out of RTX_CODE.
986
987 2010-09-14 Martin Jambor <mjambor@suse.cz>
988
989 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
990 location of generated statement. Changed all callers.
991 (build_ref_for_model): New parameter loc which used to set location of
992 all generated expressions. Changed all callers.
993 (generate_subtree_copies): Likewise.
994 (init_subtree_with_zero): Likewise.
995 (sra_modify_expr): Set locations of all generated statements and
996 expressions to the location the original statement.
997 (handle_unscalarized_data_in_subtree): Likewise.
998 (load_assign_lhs_subreplacements): Likewise.
999 (sra_modify_constructor_assign): Likewise.
1000 (sra_modify_assign): Likewise.
1001
1002 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
1003
1004 PR target/45277
1005 PR target/45363
1006 PR target/45407
1007 * doc/install.texi (sparc*-*-*): New section.
1008 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
1009
1010 2010-09-14 Jakub Jelinek <jakub@redhat.com>
1011
1012 PR middle-end/45567
1013 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
1014 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
1015 (expand_builtin): Adjust caller.
1016 (expand_builtin_unop): Only use subtarget if it has the right mode.
1017
1018 2010-09-14 Tristan Gingold <gingold@adacore.com>
1019
1020 * configure.ac (plugins): Fix typos.
1021 * configure: Regenerate.
1022
1023 2010-09-14 Jakub Jelinek <jakub@redhat.com>
1024
1025 PR debug/45660
1026 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
1027 gen_type_die for function/method return type.
1028
1029 2010-09-14 Ira Rosen <irar@il.ibm.com>
1030
1031 PR tree-optimization/45470
1032 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
1033 can throw an exception.
1034 * tree-vect-stmts.c (vectorizable_call): Likewise.
1035
1036 2010-09-14 DJ Delorie <dj@redhat.com>
1037
1038 PR target/44749
1039 * config/mep/mep-protos.h (mep_save_register_info,
1040 mep_reinit_regs, mep_init_regs): Declare.
1041
1042 * config/mep/mep.c: Move all target definitions to the end of the
1043 file to avoid the need for duplicate declarations.
1044 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
1045 (mep_reorg_erepeat): Remove unused variables.
1046 (mep_expand_builtin): Likewise.
1047
1048 * config/mep/mep-pragma.c: Don't include rtl.h.
1049 (INVALID_REGNUM): New.
1050 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
1051 functions.
1052 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
1053 Avoid enum/integer math.
1054
1055 2010-09-13 Joseph Myers <joseph@codesourcery.com>
1056
1057 PR target/44749
1058 * config/mep/t-mep (GTM_H): Add insn-constants.h.
1059 * config/mep/mep.c (mep_conditional_register_usage): Take no
1060 parameters.
1061 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
1062 prototype.
1063 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
1064 call to mep_conditional_register_usage.
1065
1066 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
1067
1068 PR debug/43937
1069 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
1070 the DECL as well.
1071
1072 2010-09-13 Jakub Jelinek <jakub@redhat.com>
1073
1074 PR rtl-optimization/45617
1075 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
1076 even if low N bits of X aren't known to be zero.
1077
1078 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1079
1080 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
1081
1082 * config/i386/i386.c (initial_ix86_tune_features): Add
1083 X86_TUNE_VECTORIZE_DOUBLE.
1084 (ix86_units_per_simd_word): New.
1085
1086 * config/i386/i386.h (ix86_tune_indices): Add
1087 X86_TUNE_VECTORIZE_DOUBLE.
1088 (TARGET_VECTORIZE_DOUBLE): New.
1089 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
1090
1091 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
1092
1093 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
1094 (new_temp_expr_table): Allocate call_cnt vector.
1095 (free_temp_expr_table): Free it.
1096 (process_replaceable): Add call_cnt parm and set in vector.
1097 (find_replaceable_in_bb): Skip replacement if def/use span a call.
1098 (debug_ter): Dump call_cnt value, remove stderr uses.
1099
1100 2010-09-13 Jan Hubicka <jh@suse.cz>
1101
1102 * tree.c (build_zero_cst): New.
1103 * tree.h (build_zero_cst): Declare.
1104 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
1105 (get_base_constructor): Break out from ...
1106 (fold_const_aggregate_ref): Here; handle empty constructors.
1107
1108 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
1109
1110 * config/arm/arm.md: (define_attr "conds"): Update comment.
1111 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
1112 conds attribute to clob.
1113 (arm_sync_compare_and_swapsi): Likewise.
1114 (arm_sync_compare_and_swap<mode>): Likewise.
1115 (arm_sync_lock_test_and_setsi): Likewise.
1116 (arm_sync_lock_test_and_set<mode>): Likewise.
1117 (arm_sync_new_<sync_optab>si): Likewise.
1118 (arm_sync_new_nandsi): Likewise.
1119 (arm_sync_new_<sync_optab><mode>): Likewise.
1120 (arm_sync_new_nand<mode>): Likewise.
1121 (arm_sync_old_<sync_optab>si): Likewise.
1122 (arm_sync_old_nandsi): Likewise.
1123 (arm_sync_old_<sync_optab><mode>): Likewise.
1124 (arm_sync_old_nand<mode>): Likewise.
1125
1126 2010-09-13 Olivier Hainque <hainque@adacore.com>
1127
1128 * fwprop.c (forward_propagate_and_simplify): Only attach a
1129 REG_EQUAL note to an insn if the destination is a register.
1130 * gcse.c (try_replace_reg): Likewise.
1131
1132 2010-09-13 Richard Guenther <rguenther@suse.de>
1133
1134 PR tree-optimization/45611
1135 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
1136 (copy_ref_info): Likewise.
1137
1138 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
1139
1140 PR debug/45604
1141 PR debug/45419
1142 PR debug/45408
1143 * tree-pretty-print.c (dump_generic_node): Disregard top-level
1144 types of MEM_REF pointer types to the same type.
1145
1146 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
1147
1148 PR rtl-optimization/41087
1149 * ifcvt.c (noce_get_condition): Don't allow conditions with
1150 side-effects.
1151
1152 2010-09-12 Anatoly Sokolov <aesok@post.ru>
1153
1154 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1155 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
1156 * config/frv/frv.c (frv_register_move_cost): Make static. Change
1157 arguments type to reg_class_t. Add mode argument.
1158 (frv_memory_move_cost): New.
1159 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
1160
1161 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
1162
1163 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
1164 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
1165
1166 2010-09-10 Jan Hubicka <jh@suse.cz>
1167
1168 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
1169
1170 2010-09-10 Richard Guenther <rguenther@suse.de>
1171
1172 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
1173 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
1174 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
1175 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
1176 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
1177
1178 2010-09-10 Richard Guenther <rguenther@suse.de>
1179
1180 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
1181 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
1182 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
1183 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
1184
1185 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
1186
1187 PR middle-end/45634
1188 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
1189 of string folding is of integral type.
1190
1191 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
1192
1193 * doc/invoke.texi (-x): Fix typo.
1194
1195 2010-09-10 Richard Guenther <rguenther@suse.de>
1196
1197 PR debug/44115
1198 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
1199 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
1200 Output DECL_DEBUG_EXPR.
1201 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1202 Input DECL_DEBUG_EXPR.
1203
1204 2010-09-10 Richard Guenther <rguenther@suse.de>
1205
1206 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
1207 (build_index_type): Implement in terms of build_range_type.
1208 (build_range_type): Do not allow NULL_TREE type, improve
1209 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
1210 if we didn't hash.
1211 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
1212 create a distinct copy of the type.
1213
1214 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
1215
1216 * configure: Regenerated.
1217 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
1218
1219 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1220
1221 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
1222 * config/arm/cortex-a9-neon.md: New and partially generated.
1223 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
1224
1225 2010-09-10 Richard Guenther <rguenther@suse.de>
1226
1227 * tree.h (build_index_2_type): Remove.
1228 * tree.c (build_index_2_type): Remove.
1229
1230 2010-09-10 Jakub Jelinek <jakub@redhat.com>
1231
1232 PR bootstrap/45630
1233 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
1234 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
1235 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
1236
1237 2010-09-10 Martin Jambor <mjambor@suse.cz>
1238
1239 PR tree-optimization/44972
1240 * tree-sra.c: Include toplev.h.
1241 (build_ref_for_offset): Entirely reimplemented.
1242 (build_ref_for_model): New function.
1243 (build_user_friendly_ref_for_offset): New function.
1244 (analyze_access_subtree): Removed build_ref_for_offset check.
1245 (propagate_subaccesses_across_link): Likewise.
1246 (create_artificial_child_access): Use
1247 build_user_friendly_ref_for_offset.
1248 (propagate_subaccesses_across_link): Likewise.
1249 (ref_expr_for_all_replacements_p): Removed.
1250 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
1251 (sra_modify_expr): Use build_ref_for_model.
1252 (load_assign_lhs_subreplacements): Likewise.
1253 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
1254 checks for return values of build_ref_for_offset.
1255 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
1256 build_ref_for_offset.
1257 * ipa-prop.h: Include gimple.h
1258 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
1259 (ipa_analyze_indirect_call_uses): Update comment.
1260 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
1261 (IPA_PROP_H): Likewise.
1262
1263 2010-09-10 Martin Jambor <mjambor@suse.cz>
1264
1265 PR tree-optimization/44972
1266 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
1267 calling build_ref_for_offset.
1268
1269 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1270
1271 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
1272 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
1273 * config/arm/arm-tune.md: Regenerate.
1274 * doc/invoke.texi (ARM Options): Document it.
1275
1276 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
1277
1278 * config/i386/i386.c: Include sched-int.h.
1279 (TARGET_SCHED_DISPATCH): Defined.
1280 (TARGET_SCHED_DISPATCH_DO): Defined.
1281 (DISPATCH_WINDOW_SIZE): Defined.
1282 (MAX_DISPATCH_WINDOWS): Defined.
1283 (MAX_INSN): Defined.
1284 (MAX_IMM): Defined.
1285 (MAX_IMM_SIZE): Defined.
1286 (MAX_IMM_32): Defined.
1287 (MAX_IMM_64): Defined.
1288 (MAX_LOAD): Defined.
1289 (MAX_STORE): Defined.
1290 (BIG): Defined.
1291 (dispatch_group): New.
1292 (num_allowable_groups): New.
1293 (group_name): New.
1294 (sched_insn_info_s): New.
1295 (dispatch_windows_s): New.
1296 (imm_info_s): New.
1297 (dispatch_window_list): New.
1298 (dispatch_window_list1): New.
1299 (get_mem_group): New.
1300 (is_cmp): New.
1301 (dispatch_violation): New.
1302 (is_branch): New.
1303 (is_prefetch): New.
1304 (init_window): New.
1305 (allocate_window): New.
1306 (init_dispatch_sched): New.
1307 (is_end_basic_block): New.
1308 (process_end_window): New.
1309 (allocate_next_window): New.
1310 (find_constant_1): New.
1311 (find_constant): New.
1312 (get_num_immediates): New.
1313 (has_immediate): New.
1314 (get_insn_path): New.
1315 (get_insn_group): New.
1316 (count_num_restricted): New.
1317 (fits_dispatch_window): New.
1318 (add_insn_window): New.
1319 (add_to_dispatch_window): New.
1320 (debug_dispatch_window_file): New.
1321 (debug_dispatch_window): New.
1322 (debug_insn_dispatch_info_file): New.
1323 (debug_ready_dispatch): New.
1324 (do_dispatch): New.
1325 (has_dispatch): New.
1326 * config/i386/i386.h (debug_ready_dispatch): Declared.
1327 (debug_dispatch_window): Declared.
1328 * config/i386/i386.opt (mdispatch-scheduler): New flag.
1329 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
1330 (TARGET_SCHED_DISPATCH_DO): New.
1331 * doc/tm.texi: Regererated.
1332 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
1333 ready_remove_first_dispatch
1334 (schedule_block): Call targetm.sched.dispatch and
1335 targetm.sched.dispatch_do.
1336 (sched_init): Call targetm.sched.dispatch and
1337 targetm.sched.dispatch_do.
1338 (ready_remove_first_dispatch): New.
1339 (number_in_ready): New.
1340 (get_ready_element): New.
1341 * hooks.c (hook_bool_rtx_int_false): New.
1342 (hook_void_rtx_int): New.
1343 * hooks.h (hook_bool_rtx_int_false): Declared.
1344 (hook_void_rtx_int): Declared.
1345 * sched-int.h (IS_DISPATCH_ON): Defined.
1346 (IS_CMP): Defined.
1347 (DISPATCH_VIOLATION): Defined.
1348 (FITS_DISPATCH_WINDOW): Defined.
1349 (DISPATCH_INIT): Defined.
1350 (ADD_TO_DISPATCH_WINDOW): Defined.
1351 (get_ready_element): Declared.
1352 (number_in_ready): Declared.
1353 * target.def (dispatch): Defined.
1354 (dispatch_do): Defined.
1355
1356 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
1357
1358 PR middle-end/45312
1359 * reload1.c (merge_assigned_reloads): Remove.
1360 (reload_as_needed): Don't call it.
1361
1362 2010-09-09 Anatoly Sokolov <aesok@post.ru>
1363
1364 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
1365 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1366 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1367
1368 2010-09-09 Matthias Klose <doko@ubuntu.com>
1369
1370 PR bootstrap/43847
1371 * configure.ac (--enable-plugin): Enhance for cross builds.
1372 * configure: Regenerate.
1373
1374 2010-09-09 Jan Hubicka <jh@suse.cz>
1375
1376 PR tree-optimization/45598
1377 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
1378 string folding is of integral type.
1379
1380 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1381
1382 * configure.ac (gnu_indirect_function): New test.
1383 * configure: Rebuilt.
1384 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
1385 * defaults.h (IFUNC_ASM_TYPE): Provide default.
1386
1387 * doc/extend.texi (Function Attributes): Document ifunc.
1388 * varasm.c (do_assemble_alias): Deal with ifuncs too.
1389
1390 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
1391
1392 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
1393 epilogue instruction move.
1394
1395 2010-09-09 Jan Hubicka <jh@suse.cz>
1396
1397 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
1398 command line to allow more partitions than input files.
1399
1400 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
1401
1402 PR middle-end/44554
1403 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
1404
1405 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
1406
1407 PR middle-end/40386
1408 * ira.c (pseudo_for_reload_consideration_p): Don't use
1409 flag_ira_share_spill_slots.
1410
1411 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1412
1413 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
1414 point zero operands that fit into a single GPR.
1415 (s390_preferred_reload_class): Ensure we only return general-purpose
1416 register classes.
1417 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
1418 floating-point zero operands into GPRs.
1419 ("*mov<mode>_64"): Likewise.
1420 ("mov<mode>"): Likewise using lhi.
1421
1422 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1423
1424 * config/s390/s390.c (s390_symref_operand_p): Return false for
1425 literal pool references.
1426 (s390_check_qrst_address): Update caller.
1427
1428 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
1429
1430 * config/i386/predicates.md (ext_register_operand): Check that
1431 SUBREG_REG is really a register before looking for REGNO.
1432 (reg_not_xmm0_operand): Handle SUBREGs correctly.
1433 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
1434
1435 2010-09-09 Jakub Jelinek <jakub@redhat.com>
1436
1437 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
1438 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
1439 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
1440 * print-rtl.c (print_rtx): Likewise.
1441 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
1442 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
1443 for ADDR_EXPR with non-addressable object.
1444 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
1445 (struct dw_val_struct): Add v.val_decl_ref.
1446 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
1447 Handle DW_OP_GNU_implicit_pointer.
1448 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
1449 (get_ref_die_offset_label): New function.
1450 (implicit_ptr_descriptor): New function.
1451 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
1452 (loc_descriptor): Likewise.
1453 (gen_variable_die): Put even definitions into decl_die_table.
1454 (resolve_addr_in_expr): Resolve still unresolved
1455 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
1456 return false.
1457 (dwarf2out_finish): Call output_location_lists after outputting
1458 .debug_info and .debug_abbrev instead of before.
1459
1460 2010-09-09 Roland McGrath <roland@redhat.com>
1461
1462 * dwarf2out.c (DWARF_REF_SIZE): Define.
1463 (size_of_loc_descr): Use it for DW_OP_call_ref.
1464
1465 2010-09-09 Alan Modra <amodra@gmail.com>
1466
1467 * doc/invoke.text: Reinstate mcmodel=medium.
1468 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1469 CMODEL_MEDIUM as default.
1470 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
1471 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
1472 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
1473 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
1474
1475 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1476
1477 PR target/45250
1478 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
1479 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
1480 (builtin_longjmp): Likewise.
1481 (allocate_stack): Use hard_frame_pointer_rtx instead of
1482 frame_pointer_rtx.
1483 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
1484 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
1485 (pa_can_eliminate): Likewise.
1486 (TARGET_INTERNAL_ARG_POINTER): Define.
1487 (TARGET_CAN_ELIMINATE): Define.
1488 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
1489 pointer.
1490 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
1491 (pa_internal_arg_pointer, pa_can_eliminate,
1492 pa_initial_elimination_offset): New.
1493 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
1494 (HARD_FRAME_POINTER_REGNUM): Set to register three.
1495 (INITIAL_FRAME_POINTER_OFFSET): Delete.
1496 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
1497 Define.
1498 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
1499 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
1500 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
1501 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
1502 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
1503 new soft frame pointer.
1504 * config/pa/pa64-regs.h: Likewise.
1505
1506 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
1507
1508 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
1509 numerical constant.
1510 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
1511
1512 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
1513
1514 PR debug/45531
1515 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
1516
1517 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
1518
1519 PR debug/45419
1520 PR debug/45408
1521 * tree-pretty-print.c (dump_generic_node): Disregard top-level
1522 qualifiers in otherwise equal MEM_REF pointer types.
1523 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
1524 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
1525
1526 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1527
1528 PR target/44392
1529 * config/arm/arm.md (bswapsi2): Handle condition correctly
1530 for armv6 and optimize_size.
1531
1532 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1533
1534 PR other/18555
1535 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
1536
1537 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
1538
1539 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
1540 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
1541 ix86_expand_strlen, legitimate_pic_address_disp_p,
1542 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
1543 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
1544 ix86_check_movabs, ix86_secondary_memory_needed): Change function
1545 prototype to bool.
1546 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
1547 return_in_memory_ms_64, ix86_check_movabs,
1548 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
1549 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
1550 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
1551 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
1552 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
1553 ix86_secondary_memory_needed): Change to bool. Return
1554 "true" and "false" values.
1555 * config/i386/i386.md: Return "true" and "false" values.
1556
1557 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1558
1559 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1560 run_expensive_tests.
1561
1562 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1563
1564 * toplev.c (output_stack_usage): Use lbasename instead of basename.
1565
1566 2010-09-08 Martin Jambor <mjambor@suse.cz>
1567
1568 PR other/45443
1569 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
1570 at -O3.
1571
1572 2010-09-08 Richard Guenther <rguenther@suse.de>
1573
1574 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
1575 (visit): Adjust.
1576 (iterative_hash_gimple_type): Likewise.
1577 (gimple_type_hash): Likewise.
1578 (gimple_register_type): Likewise.
1579 (print_gimple_types_stats): Likewise.
1580 (free_gimple_type_tables): Likewise.
1581
1582 2010-09-08 Michael Matz <matz@suse.de>
1583
1584 PR tree-optimization/43430
1585 * tree-vect-stmts.c (vectorizable_condition): Support multiple
1586 copies for conditional statements if it's not part of a reduction.
1587
1588 2010-09-08 Michael Matz <matz@suse.de>
1589
1590 PR tree-optimization/33244
1591 * tree-ssa-sink.c (statement_sink_location): Don't sink into
1592 empty loop latches.
1593
1594 2010-09-08 Richard Guenther <rguenther@suse.de>
1595
1596 PR tree-optimization/45578
1597 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
1598 Be more careful when transfering alignment information to
1599 the new induction variable.
1600 (copy_ref_info): Likewise.
1601
1602 2010-09-08 Richard Guenther <rguenther@suse.de>
1603
1604 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
1605 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
1606
1607 2010-09-08 Arnaud Charlet <charlet@adacore.com>
1608
1609 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
1610 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
1611
1612 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
1613
1614 PR doc/45587
1615 * doc/md.texi: Fixed modes on several standard pattern names.
1616
1617 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
1618
1619 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
1620 (ashl<mode>3): ...this.
1621 (loongson_psra<V_suffix>): Rename to...
1622 (ashr<mode>3): ...this.
1623 (loongson_psrl<V_suffix>): Rename to...
1624 (lshr<mode>3): ...this.
1625 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
1626 (CODE_FOR_loongson_psllw): Define.
1627 (CODE_FOR_loongson_psrlh): Define.
1628 (CODE_FOR_loongson_psrlw): Define.
1629 (CODE_FOR_loongson_psrah): Define.
1630 (CODE_FOR_loongson_psraw): Define.
1631
1632 2010-09-07 Richard Henderson <rth@redhat.com>
1633
1634 * tree-vect-data-refs.c: Include tm_p.h.
1635 * Makefile.in (tree-vect-data-refs.o): Update deps.
1636 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
1637 Move delarations outside #ifdef RTX_CODE.
1638
1639 2010-09-07 Richard Henderson <rth@redhat.com>
1640
1641 * final.c (rest_of_handle_final): Unconditionally do
1642 output_function_exception_table before assemble_end_function.
1643
1644 2010-09-07 Jan Hubicka <jh@suse.cz>
1645
1646 * tree-inline.c (tree_inlinable_function_p): Do not test
1647 DECL_REPLACEABLE_P.
1648 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
1649 update_callee_keys, cgraph_decide_inlining): Test function availability.
1650 * cif-code.def (OVERWRITABLE): New code.
1651
1652 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
1653 Jack Howarth <howarth@bromo.med.uc.edu>
1654
1655 PR target/36502
1656 PR target/42313
1657 PR target/44651
1658 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
1659 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
1660 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
1661 MAX macro.
1662
1663 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
1664
1665 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
1666 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
1667
1668 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
1669
1670 * config.gcc: Don't append t-android for Android targets.
1671
1672 * config/t-android: Removed.
1673
1674 2010-09-07 Richard Henderson <rth@redhat.com>
1675
1676 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
1677 * doc/tm.texi.in: Add doc marker.
1678 * doc/tm.texi: Rebuild.
1679 * except.c (switch_to_exception_section): Always build.
1680 (output_one_function_exception_table): Move section switch,
1681 personality output, and label output ...
1682 (output_function_exception_table): ... here. Use the new
1683 personality hook.
1684
1685 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
1686 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
1687 TARGET_ASM_INIT_SECTIONS): New.
1688 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
1689 make static.
1690 (TARGET_ASM_UNWIND_EMIT): Update to match.
1691 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
1692
1693 * config/arm/arm.c (arm_asm_emit_except_personality): New.
1694 (arm_asm_init_sections): New.
1695 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
1696
1697 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1698
1699 * config/arm/arm.md: Remove unused variable.
1700
1701 2010-09-07 Anatoly Sokolov <aesok@post.ru>
1702
1703 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1704 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
1705 (m32r_memory_move_cost): New function.
1706
1707 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
1708
1709 * config.gcc: Append t-android for Android targets.
1710
1711 * config/t-android: New.
1712
1713 2010-09-07 Richard Henderson <rth@redhat.com>
1714
1715 * target.def (unwind_emit_before_insn): New hook.
1716 * doc/tm.texi.in: Add @hook marker for it.
1717 * doc/tm.texi: Rebuild.
1718 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
1719
1720 2010-09-07 Martin Jambor <mjambor@suse.cz>
1721
1722 PR fortran/43665
1723 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
1724 are any type attributes.
1725
1726 2010-09-07 Jan Hubicka <jh@suse.cz>
1727
1728 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
1729 array_ref_low_bound in string access folding.
1730
1731 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
1732
1733 PR target/45206
1734 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
1735 eh_return fixup sequence.
1736
1737 2010-09-07 Jan Hubicka <jh@suse.cz>
1738
1739 * gimple-fold.c (maybe_fold_reference): Verify that operand is
1740 gimple_min_invariant.
1741
1742 2010-09-07 Richard Guenther <rguenther@suse.de>
1743
1744 PR middle-end/45569
1745 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
1746 nor CONSTRUCTOR can trap.
1747 * tree-complex.c (update_complex_assignment): Update EH info.
1748
1749 2010-09-07 Richard Guenther <rguenther@suse.de>
1750
1751 PR middle-end/45569
1752 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
1753 * passes.c (execute_function_todo): Do not verify anything if
1754 we saw errors.
1755
1756 2010-09-07 Richard Guenther <rguenther@suse.de>
1757
1758 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
1759
1760 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
1761
1762 PR target/43137
1763 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
1764 New define_mode_attrs.
1765 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
1766 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
1767 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
1768 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
1769 Remove pool_range attribute.
1770 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
1771 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
1772 pool_range and neg_pool_range attributes.
1773 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
1774 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
1775 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
1776
1777 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
1780 check glibc.
1781
1782 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
1783
1784 PR target/22152
1785 * config/i386/mmx.md (*mov<mode>_internal_rex64,
1786 *mov<mode>_internal_avx, *mov<mode>_internal,
1787 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
1788 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
1789
1790 2010-09-06 Mark Mitchell <mark@codesourcery.com>
1791
1792 * c-typeck.c (do_warn_double_promotion): Remove.
1793 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
1794 Objective-C++ too.
1795
1796 2010-09-06 Anatoly Sokolov <aesok@post.ru>
1797
1798 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
1799 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
1800 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
1801 argument type to reg_class_t. Change result type to bool.
1802 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1803
1804 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
1805
1806 PR libobjc/19850
1807 * gthr-posix.h (__gthread_objc_thread_detach): Use
1808 _objc_thread_attribs when detaching a thread.
1809 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
1810
1811 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
1812
1813 PR target/45524
1814 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
1815 * configure: Regenerated.
1816
1817 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1818
1819 * combine.c (try_combine): Set subst_low_luid to i0.
1820
1821 2010-09-06 Richard Guenther <rguenther@suse.de>
1822
1823 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
1824 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
1825 (build_aligned_type): Declare.
1826 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
1827 (check_aligned_type): New function.
1828 (build_aligned_type): Likewise.
1829 * expr.c (expand_assignment): Handle misaligned stores via
1830 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
1831 (expand_expr_real_1): Likewise.
1832 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
1833 * tree-vect-stmts.c (vectorizable_store): Do not build
1834 MISALIGNED_INDIRECT_REF but initialize alignment information.
1835 (vectorizable_load): Likewise.
1836 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
1837 handling.
1838 * cfgexpand.c (expand_debug_expr): Likewise.
1839 * dwarf2out.c (loc_list_from_tree): Likewise.
1840 * fold-const.c (maybe_lvalue_p): Likewise.
1841 (operand_equal_p): Likewise.
1842 (build_fold_addr_expr_with_type_loc): Likewise.
1843 * gimplify.c (gimplify_addr_expr): Likewise.
1844 (gimplify_expr): Likewise.
1845 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1846 (verify_gimple_assign_single): Likewise.
1847 * tree-dump.c (dequeue_and_dump): Likewise.
1848 (tree_could_trap_p): Likewise.
1849 * tree-predcom.c (ref_at_iteration): Likewise.
1850 * tree-pretty-print.c (dump_generic_node): Likewise.
1851 (op_code_prio): Likewise.
1852 (op_symbol_code): Likewise.
1853 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1854 * tree-ssa-loop-im.c (for_each_index): Likewise.
1855 (gen_lsm_tmp_name): Likewise.
1856 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1857 (find_interesting_uses_address): Likewise.
1858 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1859 * tree-ssa-operands.c (get_expr_operands): Likewise.
1860 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1861 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1862 (ao_ref_init_from_vn_reference): Likewise.
1863 * tree.c (staticp): Likewise.
1864 (build1_stat): Likewise.
1865 (reference_alias_ptr_type): Likewise.
1866 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1867 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
1868 MISALIGNED_INDIRECT_REF handling.
1869
1870 2010-09-06 Richard Guenther <rguenther@suse.de>
1871
1872 PR tree-optimization/45534
1873 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
1874 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
1875 on the target.
1876 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
1877 valid on the target.
1878
1879 2010-09-06 Andreas Schwab <schwab@redhat.com>
1880
1881 * configure.ac: Quote argument of AC_MSG_WARN.
1882 * configure: Regenerate.
1883
1884 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
1885
1886 * sel-sched.c (move_cond_jump): Correct arguments to
1887 maybe_tidy_empty_bb.
1888 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
1889
1890 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
1891
1892 PR rtl-optimization/44919
1893 * sel-sched.c (move_cond_jump): Remove assert, check that
1894 the several blocks case can only happen with mutually exclusive
1895 insns instead. Rewrite the movement code to support moving through
1896 several basic blocks.
1897
1898 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
1899
1900 * config/i386/i386.md (iptrsize): New mode attribute.
1901 (tp_seg): Ditto.
1902 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
1903 mode iterator.
1904 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
1905 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
1906 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
1907 (stack_tls_protect_set_<mode>): Ditto from
1908 stack_tls_protect_set_{si,di}. Use %@ to output segment register
1909 of thread base pointer load.
1910 (stack_tls_protect_test_<mode>): Ditto from
1911 stack_tls_protect_test_{si,di}. Use %@ to output segment register
1912 of thread base pointer load.
1913 (stack_protect_set): Rewrite using indirect functions.
1914 (stack_protect_test): Ditto.
1915 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
1916 (ix86_print_operand): Handle '@'.
1917
1918 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
1919
1920 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
1921 MINUS_EXPR.
1922
1923 2010-09-05 Mark Mitchell <mark@codesourcery.com>
1924
1925 * doc/invoke.texi: Document -Wdouble-promotion.
1926 * c-typeck.c (convert_arguments): Check for implicit conversions
1927 from float to double.
1928 (do_warn_double_promotion): New function.
1929 (build_conditional_expr): Use it.
1930 (build_binary_op): Likewise.
1931
1932 2010-09-05 Richard Guenther <rguenther@suse.de>
1933
1934 PR tree-optimization/45535
1935 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
1936 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
1937 dereferencing it.
1938 (indirect_refs_may_alias_p): Likewise.
1939
1940 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
1941
1942 * config/sh/sh.c (sh_option_override): Make static.
1943 Adjust comments. Declare.
1944 (sh_function_value_regno_p): Likewise.
1945 (sh_register_move_cost): Modify the arguments, make static.
1946 Adjust comments. Declare.
1947 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
1948 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1949 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
1950 REGISTER_MOVE_COST): Delete.
1951 * config/sh/sh-protos.h (sh_override_options): Delete.
1952 (sh_register_move_cost): Delete.
1953 (sh_function_value_regno_p): Delete.
1954
1955 2010-09-04 Anatoly Sokolov <aesok@post.ru>
1956
1957 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
1958 m32r_function_value_regno_p): New functions.
1959 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1960 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
1961 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
1962 FUNCTION_VALUE_REGNO_P): Remove.
1963
1964 2010-09-04 Jan Hubicka <jh@suse.cz>
1965
1966 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
1967 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
1968 fold_read_from_constant_string.
1969
1970 * gimple.h (canonicalize_constructor_val): Declare.
1971 * gimple-fold.c (canonicalize_constructor_val): New function.
1972 (get_symbol_constant_value):Use it.
1973 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1974
1975 2010-09-04 Jan Hubicka <jh@suse.cz>
1976
1977 * tree-switch-conversion.c (build_one_array): Set constructor to be
1978 static.
1979 * varpool.c (varpool_finalize_decl): Compute const_value_known.
1980
1981 2010-09-04 Richard Guenther <rguenther@suse.de>
1982
1983 PR bootstrap/45519
1984 * tree-flow.h (force_gimple_operand_1): Declare.
1985 (force_gimple_operand_gsi_1): Likewise.
1986 * gimplify.c (force_gimple_operand_1): New worker taking a
1987 gimple predicate for ...
1988 (force_gimple_operand): ... which now wraps it.
1989 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
1990 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
1991 last change.
1992 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
1993 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
1994 (create_mem_ref): Likewise.
1995
1996 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
1997
1998 * config/i386/predicates.md (sse_reg_operand): New predicate.
1999 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
2000 predicate for operand 1.
2001 (XFmode push splitter): Use fp_register_operand predicate
2002 for operand 1.
2003 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
2004 (SF-DF float_extend push splitter): Add reload_completed insn
2005 predicate.
2006 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
2007 MODEF mode macro. Add reload_completed insn predicate.
2008
2009 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
2010
2011 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
2012 (struct df_extract_ref): Remove.
2013 (union df_ref_d): Remove extract_ref member.
2014 (df_ref_create): Remove last three arguments.
2015 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
2016 * df-scan.c (df_ref_record): Remove last three arguments, do not
2017 pass them to df_ref_create_structure.
2018 (df_uses_record): Remove first and last three arguments. Replace
2019 first argument with DF_REF_REGULAR, adjust calls to remove the
2020 width, offset and mode. Always call recursively on the second
2021 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
2022 (df_ref_create_structure): Remove first argument.
2023 (struct df_scan_problem_data): Remove ref_extract_pool.
2024 (df_scan_free_internal): Do not free it.
2025 (df_scan_alloc): Do not allocate it.
2026 (df_ref_create): Remove last three arguments, do not pass them to
2027 df_ref_create_structure.
2028 (df_free_ref): Remove DF_REF_EXTRACT case.
2029 (df_notes_rescan): Adjust call to df_uses_record.
2030 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
2031 Remove DF_REF_EXTRACT case.
2032 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
2033 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
2034 and SUBREG definitions.
2035 (df_get_conditional_uses): Remove references to width/offset/mode,
2036 adjust call to df_ref_create_structure.
2037 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
2038 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
2039 calls to df_uses_record and df_ref_record.
2040 * fwprop.c (update_df): Remove references to width/offset/mode,
2041 adjust call to df_ref_create.
2042
2043 2010-09-03 Jan Hubicka <jh@suse.cz>
2044
2045 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
2046 (build_cdtor_fns): Update use of build_cdtor.
2047
2048 2010-09-03 Joseph Myers <joseph@codesourcery.com>
2049
2050 * doc/options.texi (SeparateAlias): Document.
2051 * opt-functions.awk (switch_flags): Handle SeparateAlias.
2052 * opth-gen.awk: Generate enumeration names for options marked
2053 SeparateAlias, but not for those marked Ignore.
2054 * opts-common.c (generate_canonical_option): Don't output separate
2055 argument for options marked CL_SEPARATE_ALIAS.
2056 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
2057 * opts.h (CL_SEPARATE_ALIAS): New.
2058 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2059 CL_COMMON): Adjust definitions.
2060 * config/i386/darwin.opt, config/mips/sde.opt: New.
2061 * common.opt (fdump-final-insns): New.
2062 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2063 i386/darwin.opt.
2064 (mips*-sde-elf*): Add mips/sde.opt.
2065 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
2066 -mno-data-in-code and -mcode-xonly here.
2067 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
2068 * gcc.c (option_map): Add "j" to --dump entry.
2069 (translate_options): Don't translate -d to -foutput-class-dir= here.
2070
2071 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
2072
2073 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
2074 DR_IS_WRITE.
2075 (compute_all_dependences): Same.
2076 (create_rdg_edge_for_ddr): Same.
2077 * tree-data-ref.h (DR_IS_WRITE): New.
2078 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
2079 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
2080 (write_memrefs_written_at_least_once): Same.
2081 * tree-predcom.c (suitable_component_p): Same.
2082 (determine_roots_comp): Same.
2083 (execute_load_motion): Same.
2084 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
2085 (vect_enhance_data_refs_alignment): Same.
2086 (vect_analyze_group_access): Same.
2087
2088 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
2089
2090 PR testsuite/42843
2091 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
2092 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
2093
2094 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
2095
2096 * dwarf2out.c (file scope): Remove #if0'd code.
2097 (gen_subprogram_die): Same.
2098
2099 2010-09-03 Jakub Jelinek <jakub@redhat.com>
2100
2101 PR middle-end/45484
2102 * dwarf2out.c (flush_queued_reg_saves): Rename to...
2103 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
2104 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
2105 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
2106 * config/i386/i386.c (output_set_got): Call it.
2107
2108 2010-09-03 Michael Matz <matz@suse.de>
2109
2110 PR middle-end/45415
2111 * tree-sra.c (sra_modify_assign): If we modify the statement,
2112 say so.
2113
2114 * tree-ssa.c (verify_ssa): Check number of operands and links
2115 per statement to agree.
2116
2117 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
2118 Iain Sandoe <iains@gcc.gnu.org>
2119
2120 PR target/45476
2121 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
2122 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
2123 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
2124
2125 2010-09-03 Richard Guenther <rguenther@suse.de>
2126
2127 * lto-streamer-out.c (output_function): Output function
2128 start and end loci.
2129 * lto-streamer-in.c (input_function): Input function start
2130 and end loci.
2131
2132 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2133
2134 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
2135 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
2136 * configure: Regenerate.
2137 * aclocal.m4: Regenerate.
2138
2139 2010-09-03 Jan Hubicka <jh@suse.cz>
2140
2141 PR lto/44812
2142 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
2143 on functions/variables in other partition.
2144
2145 2010-09-03 Jan Hubicka <jh@suse.cz>
2146
2147 * cgraph.h (struct varpool_node): Add const_value_known.
2148 (varpool_decide_const_value_known): Declare.
2149 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
2150 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
2151 (input_varpool_node): Restore const_value_known.
2152 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
2153 initializer folding.
2154 * ipa.c (ipa_discover_readonly_nonaddressable_var,
2155 function_and_variable_visibility): Compute const_value_known.
2156 * gimple-fold.c (get_symbol_constant_value): Use varpool for
2157 initializer folding.
2158 * varpool.c (varpool_decide_const_value_known): New function.
2159
2160 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
2161
2162 * config/i386/i386.md: Remove empty preparation statements
2163 from splitters.
2164
2165 2010-09-03 Jan Hubicka <jh@suse.cz>
2166
2167 * passes.c (rest_of_decl_compilation): Do not add local vars into
2168 varpool.
2169 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
2170 static or extern vars are in varpool.
2171 (varpool_finalize_decl): Sanity check that only static vars are
2172 finalized.
2173
2174 2010-09-03 Jakub Jelinek <jakub@redhat.com>
2175
2176 PR debug/45500
2177 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
2178 not just generic vectors with BLKmode.
2179
2180 2010-09-03 Richard Guenther <rguenther@suse.de>
2181
2182 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
2183 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
2184 * tree.h (TMR_SYMBOL): Remove.
2185 (TMR_BASE, TMR_OFFSET): Adjust.
2186 (TMR_INDEX2): New.
2187 * alias.c (ao_ref_from_mem): Use TMR_BASE.
2188 * builtins.c (get_object_alignment): Merge TMR_BASE and
2189 TMR_SYMBOL handling.
2190 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
2191 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
2192 handling. Also allow TARGET_MEM_REF as base address.
2193 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
2194 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
2195 base. Gimplify TMR_INDEX2.
2196 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
2197 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2198 (get_addr_base_and_unit_offset): Likewise.
2199 * tree-eh.c (tree_could_trap_p): Likewise.
2200 * tree-pretty-print.c (dump_generic_node): Likewise.
2201 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
2202 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
2203 base to index2.
2204 (get_address_description): Reconstruct addres description
2205 from merged TMR_BASE and TMR_INDEX2.
2206 (maybe_fold_tmr): Fold propagated addresses.
2207 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
2208 MEM_REF and TARGET_MEM_REF paths.
2209 (indirect_refs_may_alias_p): Likewise.
2210 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
2211 instead of TMR_SYMBOL.
2212 * tree-ssa-operands.c (get_tmr_operands): Simplify.
2213 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
2214 according to changes ...
2215 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
2216 Split TARGET_MEM_REF into two fields plus the base.
2217 * tree.c (mem_ref_offset): Simplify.
2218 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
2219 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
2220 Strip NOPs when folding MEM_REF addresses.
2221 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
2222 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
2223 (fold_gimple_assign): ... not here.
2224
2225 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
2226
2227 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
2228 * config/mips/mips.c (mips_shift_truncation_mask): New function.
2229 (TARGET_SHIFT_TRUNCATION_MASK): Define.
2230
2231 2010-09-02 Richard Henderson <rth@redhat.com>
2232
2233 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
2234 instead of readelf in the test.
2235 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
2236 in the .debug_frame section for coff targets.
2237 * configure: Rebuild.
2238
2239 2010-09-02 Anatoly Sokolov <aesok@post.ru>
2240
2241 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
2242 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
2243 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2244 (m32c_class_likely_spilled_p): Make static. Change argument type to
2245 reg_class_t. Change result type to bool.
2246
2247 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2248
2249 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
2250 to convert (double)(long) into a single FRIZ instruction or not
2251 when -ffast-math is used.
2252
2253 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
2254 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
2255 or FRIZ instruction if -ffast-math.
2256 * config/rs6000/rs6000.md (friz): Ditto.
2257
2258 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
2259
2260 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2261
2262 * opth-gen.awk (quote, comma): Remove unused variables.
2263
2264 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
2265
2266 * arm.c (arm_override_options): Correct fall-back code to use
2267 SUBTARGET_CPU_DEFAULT.
2268
2269 2010-09-02 Julian Brown <julian@codesourcery.com>
2270
2271 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
2272 unspecs.
2273 (vcond<mode>, vcondu<mode>): New expanders.
2274 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
2275 comparisons with zero.
2276 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
2277 * config/arm/constraints.md (Dz): New constraint.
2278
2279 2010-09-02 Anatoly Sokolov <aesok@post.ru>
2280
2281 * target.def (class_likely_spilled_p): New hook.
2282 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
2283 * doc/tm.texi: Regenerate.
2284 * targhooks.c (default_class_likely_spilled_p): New function.
2285 * targhooks.h (default_class_likely_spilled_p): Declare.
2286 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
2287 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
2288 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
2289 Use fixed_reg_set instead of fixed_regs.
2290 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
2291 * calls.c (avoid_likely_spilled_reg): Ditto.
2292 * ira-conflicts.c (ira_build_conflicts): Ditto.
2293 * ira.c (update_equiv_regs): Ditto.
2294 * mode-switching.c (create_pre_exit): Ditto.
2295 * regmove.c (find_matches): Ditto.
2296 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
2297 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
2298 (small_register_class_p): New inline function.
2299 (push_secondary_reload, find_reusable_reload, find_reloads): Use
2300 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
2301
2302 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
2303 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
2304 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2305
2306 2010-09-02 Richard Guenther <rguenther@suse.de>
2307
2308 PR tree-optimization/44937
2309 PR tree-optimization/45412
2310 * ipa-split.c (split_function): Properly remove PHI nodes.
2311
2312 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2313
2314 * opts.h (struct cl_option): Add warn_message field.
2315 (struct cl_decoded_option): Add warn_message field.
2316 * doc/options.texi (Ignore, Warn): Document.
2317 * opt-functions.awk (needs_state_p): Don't consider aliases or
2318 ignored options to need state saved.
2319 * optc-gen.awk: Handle Warn and Ignore.
2320 * opth-gen.awk: Output OPT_SPECIAL_ignore.
2321 * opts-common.c (decode_cmdline_option): Set warn_message field.
2322 Handle ignored options.
2323 (decode_cmdline_options_to_array, generate_option,
2324 generate_option_input_file): Set warn_message field.
2325 (read_cmdline_option): Generate warnings from warn_message field.
2326 Handle ignored options.
2327 * common.opt (Wunreachable-code, fargument-alias,
2328 fargument-noalias, fargument-noalias-global,
2329 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
2330 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
2331 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
2332 ftree-salias): Mark Ignore.
2333 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
2334 -mintel-syntax and -mno-intel-syntax here.
2335 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
2336 using Warn.
2337 * opts.c (common_handle_option): Don't handle options marked as
2338 ignored.
2339 (enable_warning_as_error): Handle ignored options.
2340
2341 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2342
2343 PR driver/44076
2344 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
2345 alias_target fields.
2346 * opt-functions.awk (opt_sanitized_name): Don't handle
2347 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
2348 * optc-gen.awk: Generate alias fields.
2349 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
2350 Don't generate such constants for aliases.
2351 * opts-common.c (generate_canonical_option): New.
2352 (decode_cmdline_option): Handle aliases. Use
2353 generate_canonical_option for known options instead of copying the
2354 input option text.
2355 * doc/options.texi (Alias): Document.
2356 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
2357 fstack-check, specs): Mark as aliases.
2358 * gcc.c (driver_handle_option): Canonicalize -L options to joined
2359 arguments.
2360 (driver_handle_option): Don't handle OPT_specs.
2361 * opts.c (common_handle_option): Don't handle options marked as
2362 aliases.
2363 (enable_warning_as_error): Handle aliases.
2364 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
2365 OPT_Wlarger_than_eq.
2366 * tree-optimize.c (tree_rest_of_compilation): Use
2367 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
2368
2369 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
2370
2371 * config/i386/i386.md (nonmemory_operand): New mode attribute.
2372 (push memory peephole2): Macroize peepholes using SWI mode iterator.
2373 (move immediate to memory peephole2): Macroize peepholes using
2374 SWI124 mode iterator.
2375 (non-pairable NOT peephole2): Macroize peepholes using SWI124
2376 mode iterator.
2377 (simple lea add peephole2): Macroize peepholes using SWI48
2378 mode iterator.
2379 (simple lea mult peephole2): Ditto.
2380 (imul by 3,5,9 to lea peephole2): Ditto.
2381 (mov $-1, reg peephole2): Macroize peepholes using SWI248
2382 mode iterator.
2383 (imul $32bit_imm,mem,reg peephole2): Ditto.
2384 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
2385
2386 2010-09-02 Ian Bolton <ian.bolton@arm.com>
2387
2388 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
2389
2390 2010-09-02 Olivier Hainque <hainque@adacore.com>
2391
2392 PR middle-end/44763
2393 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
2394 (allocno_priority_compare_func): Use it instead of a straight
2395 difference computation over priorities.
2396
2397 2010-09-02 Andi Kleen <ak@linux.intel.com>
2398
2399 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
2400
2401 2010-09-02 Ira Rosen <irar@il.ibm.com>
2402
2403 * tree-vectorizer.h (get_later_stmt): New function.
2404 (vect_analyze_data_ref_dependences): Add argument.
2405 * tree-vect-loop.c (vect_analyze_loop): Update call to
2406 vect_analyze_data_ref_dependences.
2407 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
2408 New function.
2409 (vect_analyze_data_ref_dependence): Add argument for basic block
2410 dependencies. Check dependencies in basic block vectorization.
2411 (vect_analyze_data_ref_dependences): Add argument and update call to
2412 vect_analyze_data_ref_dependences.
2413 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
2414 (vect_bb_vectorizable_with_dependencies): New.
2415 (vect_slp_analyze_bb): Check dependencies in basic block.
2416 (vect_schedule_slp_instance): Insert stores before the last store in
2417 SLP instance.
2418
2419 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
2420
2421 PR target/45476
2422 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
2423 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
2424
2425 2010-09-01 Jakub Jelinek <jakub@redhat.com>
2426
2427 PR middle-end/45458
2428 * bb-reorder.c (add_labels_and_missing_jumps): Treat
2429 bbs ending with throwing insns like blocks ending with a call.
2430 (fix_up_fall_thru_edges): Likewise.
2431
2432 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
2433
2434 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
2435 (m32c_function_arg_advance): Delete.
2436 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2437 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
2438 comments. Take a const_tree and a bool. Declare.
2439 (m32c_function_arg_advance): Likewise.
2440 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2441
2442 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
2443
2444 PR target/45476
2445 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
2446 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
2447 * config/i386/mingw32.h: ... here.
2448
2449 2010-09-01 Andi Kleen <ak@linux.intel.com>
2450
2451 PR lto/45475
2452 * lto-streamer-in.c (lto_input_ts_target_option): Add.
2453 (lto_input_tree_pointers): Call lto_input_ts_target_option.
2454 * lto-streamer-out (lto_output_ts_target_option): Add.
2455 (lto_output_tree_pointers): Call lto_output_ts_target_option.
2456
2457 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
2458
2459 PR/target 45452
2460 * config/i386/cygwin.h: Change order of specified import libraries.
2461 * config/i386/mingw32.h: Likewise.
2462 * config/i386/t-cygwin: Likewise.
2463 * config/i386/t-mingw32: Likewise.
2464 * config/i386/t-mingw-w32: Likewise.
2465 * config/i386/t-mingw-w64: Likewise.
2466
2467 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2468
2469 * config/arm/neon-schedgen.ml (core): New type.
2470 (allCores): List of supported cores.
2471 (availability_table): Add supported cores.
2472 (collate_bypasses): Accept core as a parameter.
2473 (worst_case_latencies_and_bypasses): Accept core as a parameter.
2474 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
2475 and coreStr to get tune attribute and prefix for functional units.
2476 (emit_bypasses): Accept core name and use it.
2477 (calculate_per_core_availability_table): New.
2478 (filter_core): New.
2479 (calculate_core_availability_table): New.
2480 (main): Use calculate_core_availablity_table.
2481 * config/arm/cortex-a8-neon.md: Update copyright year.
2482 Regenerated from ml file and merged in.
2483 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
2484 cortex_a8_neon_mrc.
2485
2486 2010-09-01 Ian Bolton <ian.bolton@arm.com>
2487
2488 * Makefile.in (tree-switch-conversion.o): Update dependencies.
2489
2490 2010-09-01 Richard Guenther <rguenther@suse.de>
2491
2492 * alias.c (ao_ref_from_mem): Adjust.
2493 * builtins.c (get_object_alignment): Likewise.
2494 * cfgexpand.c (expand_debug_expr): Likewise.
2495 * gimple.c (get_base_address): Likewise.
2496 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2497 (get_addr_base_and_unit_offset): Likewise. Fix for
2498 both TMR_SYMBOL and TMR_BASE being set.
2499 * tree-eh.c (tree_could_trap_p): Likewise.
2500 * gimplify.c (gimplify_expr): Do not attempt to gimplify
2501 TMR_SYMBOL. Always gimplify TMR_BASE.
2502 * tree-cfg.c (verify_types_in_gimple_reference): Verify
2503 TMR_BASE if there is a TMR_SYMBOL.
2504 * tree-pretty-print.c (dump_generic_node): Adjust.
2505 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
2506 (tree_mem_ref_addr): Likewise.
2507 (create_mem_ref_raw): Likewise.
2508 (move_fixed_address_to_symbol): Likewise.
2509 (create_mem_ref): Likewise.
2510 (dump_mem_address): Likewise.
2511 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
2512 Fix for both TMR_SYMBOL and TMR_BASE being set.
2513 (indirect_refs_may_alias_p): Likewise.
2514 * tree-ssa-operands.c (get_tmr_operands): Adjust.
2515 * tree.def (TARGET_MEM_REF): Adjust documentation.
2516
2517 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
2518
2519 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
2520 Rename from X86_TUNE_ADD_ESP_4.
2521 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
2522 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
2523 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
2524 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
2525 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
2526 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
2527 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
2528 * config/i386/i386.c (initial_ix86_tune_features)
2529 <X86_TUNE_SINGLE_POP>: Invert members.
2530 <X86_TUNE_DOUBLE_POP>: Ditto.
2531 <X86_TUNE_SINGLE_PUSH>: Ditto.
2532 <X86_TUNE_DOUBLE_PUSH>: Ditto.
2533 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
2534 No longer exported.
2535 (push peephole2 patterns): Macroize peepholes using P mode iterator.
2536 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
2537 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
2538 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
2539
2540 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
2541
2542 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
2543 a volatile LHS if the constructor has only one element.
2544
2545 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
2546
2547 PR bootstrap/45321
2548 * tree.c (stdarg_p): Make fntype parameter const.
2549 * tree.h (stdarg_p): Likewise.
2550 (function_args_iterator): Remove unused fntype field.
2551 (function_args_iter_init): Do not initialize fntype
2552 field. Make fntype parameter const.
2553
2554 2010-09-01 Richard Guenther <rguenther@suse.de>
2555
2556 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
2557 estimate.
2558 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
2559 (execute_vrp): Compute number of iteration estimates.
2560 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
2561 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
2562 * tree-data-ref.c (estimated_loop_iterations): Adjust.
2563 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2564 Infer loop bounds from undefined behavior based on a new parameter.
2565 (estimate_numbers_of_iterations): Likewise.
2566 (scev_probably_wraps_p): Adjust.
2567 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
2568
2569 2010-09-01 Nick Clifton <nickc@redhat.com>
2570
2571 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
2572 where appropriate.
2573 (xstormy16_legitimate_address_p): Use true and false instead of 1
2574 and 0.
2575 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
2576 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
2577 magic constant 2.
2578 (xstormy16_expand_call): Fix comment at start of function.
2579
2580 2010-09-01 Nick Clifton <nickc@redhat.com>
2581
2582 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
2583 when pushing accumulator register.
2584 (rx_get_stack_layout): Always save call clobbered registers inside
2585 interrupt handlers.
2586 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
2587
2588 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
2589
2590 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
2591 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
2592
2593 * libgcc-std.ver (GCC_4.6.0): Define version.
2594
2595 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
2596
2597 * tree-nested.c (convert_all_function_calls): Iterate until after the
2598 sum of static chains in the nest doesn't change.
2599
2600 2010-08-31 Anatoly Sokolov <aesok@post.ru>
2601
2602 * config/m32c/m32c.c (classes_intersect): Remove.
2603 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
2604 reg_classes_intersect_p instead of classes_intersect.
2605 (class_can_hold_mode): Change arguments type from enum reg_class to
2606 reg_class_t. Use reg_class_contents instead of class_contents.
2607 (m32c_register_move_cost): Make static. Change arguments type from
2608 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
2609 classes_intersect. Use reg_class_contents instead of class_contents.
2610 (m32c_memory_move_cost): Make static. Change arguments type from
2611 enum reg_class to reg_class_t.
2612 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2613 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2614 * config/m32c/m32c-protos.h (m32c_register_move_cost,
2615 m32c_memory_move_cost): Remove.
2616
2617 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
2618
2619 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
2620 (arm_function_arg): Delete.
2621 (arm_needs_doubleword_align): Take a const_tree.
2622 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2623 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
2624 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
2625 (arm_function_arg): Make static. Take a const_tree and a bool.
2626 (arm_function_arg_advance): Likewise.
2627 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2628
2629 2010-08-31 Andi Kleen <ak@linux.intel.com>
2630
2631 * common.opt (fwhopr=): Update for -fwhopr=jobserver
2632 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
2633 * lto-wrapper.c (run_gcc): Add jobserver mode.
2634 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
2635 argument.
2636
2637 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
2638
2639 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
2640 (popsi1): Ditto.
2641 (*popdi1_epilogue): Ditto.
2642 (*popsi1_epilogue): Ditto.
2643 (popsi, popdi peephole2 patterns): Update peepholes for changed
2644 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
2645
2646 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
2647 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
2648
2649 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
2650 (override_options): Do not initialize removed ix86_gen_pop1.
2651 (gen_pop): New static function.
2652 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
2653 (release_scratch_register_on_entry): Ditto.
2654 (ix86_restore_reg_using_pop): Ditto.
2655 (ix86_expand_epilogue): Ditto.
2656
2657 2010-08-31 Jakub Jelinek <jakub@redhat.com>
2658
2659 PR middle-end/45461
2660 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
2661
2662 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
2663
2664 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
2665 semicolons.
2666
2667 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2668
2669 * doc/extend.texi: Fix documentation of the return value of
2670 __builtin_choose_expr.
2671
2672 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
2673
2674 * config/v850/v850-protos.h (function_arg): Delete.
2675 * config/v850/v850.h (FUNCTION_ARG): Delete.
2676 (FUNCTION_ARG_ADVANCE): Move code to...
2677 * config/v850/v850.c (v850_function_arg_advance): ...here.
2678 (v850_function_arg): Make static. Take a const_tree and a bool.
2679 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2680
2681 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
2682
2683 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
2684 these...
2685 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
2686 ...and these...
2687 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
2688 ..to here..
2689 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
2690 ...and here.
2691 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2692
2693 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
2694
2695 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
2696 Delete.
2697 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2698 * config/rx/rx.c (rx_function_arg_size): Make static.
2699 (rx_function_arg): Likewise.
2700 (rx_function_arg_advance): New function.
2701 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2702
2703 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
2704
2705 * config/arm/arm.c (arm_override_options): Remove superfluous test.
2706 Fix indentation.
2707
2708 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
2709
2710 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
2711 (dwarf2out_decl) <CONST_DECL>: Likewise.
2712
2713 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
2714
2715 Stack usage support
2716 * common.opt (-fstack-usage): New option.
2717 * doc/invoke.texi (Debugging options): Document it.
2718 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
2719 allocate_dynamic_stack_space.
2720 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
2721 and propagate it to allocate_dynamic_stack_space.
2722 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
2723 * calls.c (initialize_argument_information): Pass TRUE as 4th
2724 argument to allocate_dynamic_stack_space.
2725 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
2726 to 1 when pushing a variable-sized argument onto the stack. Pass
2727 TRUE as 4th argument to allocate_dynamic_stack_space.
2728 Update current_function_pushed_stack_size.
2729 (emit_library_call_value_1): Likewise.
2730 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
2731 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
2732 attempt to find an upper bound. Remove redundant code for the
2733 SETJMP_VIA_SAVE_AREA case.
2734 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
2735 * function.h (struct stack_usage): New structure.
2736 (current_function_static_stack_size): New macro.
2737 (current_function_dynamic_stack_size): Likewise.
2738 (current_function_pushed_stack_size): Likewise.
2739 (current_function_dynamic_alloc_count): Likewise.
2740 (current_function_has_unbounded_dynamic_stack_size): Likewise.
2741 (current_function_allocates_dynamic_stack_space): Likewise.
2742 (struct function): Add new field 'su'.
2743 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
2744 add the value of the dynamic offset to the dynamic stack usage.
2745 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
2746 for variable-sized objects.
2747 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
2748 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
2749 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
2750 BUILT_IN_ALLOCA for variable-sized objects.
2751 * output.h (output_stack_usage): Declare.
2752 * toplev.c (stack_usage_file): New file pointer.
2753 (output_stack_usage): New function.
2754 (open_auxiliary_file): Likewise.
2755 (lang_dependent_init): Open file if flag_stack_usage is set.
2756 (finalize): Close file if stack_usage_file is not null.
2757 * tree.h (ALLOCA_FOR_VAR_P): New macro.
2758 * config/alpha/alpha.c (compute_frame_size): New function.
2759 (alpha_expand_prologue): Use it.
2760 (alpha_start_function): Likewise.
2761 (alpha_expand_epilogue): Likewise. Set stack usage info.
2762 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2763 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2764 * config/mips/mips.c (mips_expand_prologue): Likewise.
2765 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2766 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2767 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2768
2769 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
2770
2771 PR tree-optimization/45427
2772 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
2773 Handle the case that the exit is never taken correctly.
2774 (number_of_iterations_ne): Pass exit_must_be_taken to
2775 number_of_iterations_ne_max.
2776
2777 2010-08-30 Catherine Moore <clm@codesourcery.com>
2778
2779 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
2780 Infer -mdspr2 for the the 74K.
2781
2782 2010-08-30 Jakub Jelinek <jakub@redhat.com>
2783
2784 PR debug/45419
2785 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
2786
2787 PR middle-end/45423
2788 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
2789 and TRUTH_{AND,OR,XOR}_EXPR.
2790 * c-parser.c (c_parser_omp_atomic): Handle boolean
2791 {PRE,POST}_{INC,DEC}REMENT.
2792
2793 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
2794
2795 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
2796 (function_arg): Delete.
2797 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2798 (FUNCTION_INCOMING_ARG): Delete.
2799 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
2800 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
2801 and a bool.
2802 (function_arg): Rename to...
2803 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
2804 a bool.
2805 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
2806 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2807 (TARGET_FUNCTION_INCOMING_ARG): Define.
2808
2809 2010-08-30 Richard Guenther <rguenther@suse.de>
2810
2811 PR tree-optimization/21602
2812 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
2813 using points-to information.
2814
2815 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
2816
2817 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
2818
2819 2010-08-30 Richard Guenther <rguenther@suse.de>
2820
2821 PR tree-optimization/45449
2822 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
2823 variables.
2824
2825 2010-08-30 Joseph Myers <joseph@codesourcery.com>
2826
2827 * opts.h (CL_ERR_NEGATIVE): Define.
2828 * opts.c (unknown_option_callback): Don't postpone warnings for
2829 options marked with CL_ERR_NEGATIVE.
2830 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
2831 for negative versions of CL_REJECT_NEGATIVE options.
2832
2833 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
2834
2835 * config/i386/i386.md (zero_extendsidi2_1): Rename from
2836 zero_extendsidi2_32.
2837 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
2838 using SWI12 mode iterator.
2839 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
2840 to define_insn_and_split pattern.
2841 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
2842 using SWI24 mode iterator.
2843 (*zero_extendqi<mode>2_and): Macroize insn from
2844 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
2845 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
2846 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
2847 SWI24 mode iterator.
2848 (*zero_extendqi<mode>2_movzbl): Ditto from
2849 *zero_extendqi{hi,si}2_movzbl.
2850 (extendsidi2_1): Rename from extendsidi2_32.
2851 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
2852 SWI12 mode iterator.
2853
2854 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
2855
2856 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
2857 general purpose registers.
2858 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
2859 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
2860 with general purpose registers and memory operands. Add associated
2861 CCImode post-reload splitter.
2862 * config/ia64/div.md: Change BImode to CCImode throughout.
2863
2864 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
2865
2866 * config/ia64/ia64.md (cstorebi4): Fix thinko.
2867
2868 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
2869
2870 * config/picochip/picochip.c (reorder_var_tracking_notes): This
2871 function was dropping debug insns which caused PR45299.
2872
2873 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
2874
2875 * config/i386/sse.md (extsuffix): New code attribute.
2876 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
2877 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
2878 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
2879 and sse4_1_zero_extendv4qiv4si2.
2880 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
2881 and sse4_1_zero_extendv2qiv2di2.
2882 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
2883 and sse4_1_zero_extendv4hiv4si2.
2884 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
2885 and sse4_1_zero_extendv2hiv2di2.
2886 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
2887 and sse4_1_zero_extendv2siv2di2
2888
2889 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
2890 using any_extend code iterator.
2891 (*avx_<s>mulv8hi3_highpart): Macroize insn from
2892 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
2893 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
2894
2895 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
2896 gen_sse4_1_sign_extend* functions.
2897 (struct builtin_description bdesc_args): Ditto.
2898
2899 2010-08-27 Xinliang David Li <davidxl@google.com>
2900
2901 PR/45422
2902 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
2903 (iv_ca_set_no_cp): Update used inv expr count.
2904 (iv_ca_set_cp): Ditto.
2905 (iv_ca_new): Initialize new member.
2906 (iv_ca_free): Free memory.
2907
2908 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
2909
2910 * config/sh/sh-protos.h (sh_function_arg): Delete.
2911 (sh_function_arg_advance): Delete.
2912 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2913 (PASS_IN_REG_P): Eliminate cast.
2914 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
2915 const_tree and a bool.
2916 (sh_function_arg): Likewise.
2917 (sh_output_mi_thunk): Call sh_function_arg_advance) and
2918 sh_function_arg.
2919 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2920
2921 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
2922 Kaz Kojima <kkojima@gcc.gnu.org>
2923
2924 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
2925 when possible.
2926 (sh_expand_epilogue): Likewise.
2927 * config/sh/sh.md (movml_push_banked): New insn.
2928 (movml_pop_banked): Likewise.
2929
2930 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
2931
2932 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
2933 gen_regexp_oneof, gen_regexp_sequence): Use the string found
2934 in vector element 0 rather than the original string when there's
2935 only one element.
2936 (gen_regexp): Remove extra semicolon.
2937
2938 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
2939 thumb2_movsf_vfp): Set attribute "insn".
2940 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
2941 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
2942 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
2943 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
2944 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
2945 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
2946 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
2947 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
2948 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
2949 if_not_arith, if_arith_not, cond_move_not): Likewise.
2950
2951 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2952
2953 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
2954 New declaration.
2955 (rs6000_allocate_stack_temp): Ditto.
2956 (rs6000_expand_convert_si_to_sfdf): Ditto.
2957
2958 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
2959 line. Update the options set if power6 or power7 server/embedded
2960 type options are used. If we give a warning for no vsx under
2961 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
2962 (rs6000_allocate_stack_temp): New function to allocate a stack
2963 tempoary and adjust the address so it meets either REG+OFFSET or
2964 REG+REG addressing requirements.
2965 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
2966 that they can be used with the LFIWAX/LFIWZX instrucitons.
2967 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
2968 converting signed/unsigned SImode to either SFmode/DFmode.
2969
2970 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
2971 whether certain instructions can be generated.
2972 (TARGET_FCTIDZ): Ditto.
2973 (TARGET_STFIWX): Ditto.
2974 (TARGET_LFIWAX): Ditto.
2975 (TARGET_LFIWZX): Ditto.
2976 (TARGET_FCFIDS): Ditto.
2977 (TARGET_FCFIDU): Ditto.
2978 (TARGET_FCFIDUS): Ditto.
2979 (TARGET_FCTIDUZ): Ditto.
2980 (TARGET_FCTIWUZ): Ditto.
2981
2982 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
2983 (UNSPEC_FCTID): Ditto.
2984 (UNSPEC_LFIWAX): Ditto.
2985 (UNSPEC_LFIWZX): Ditto.
2986 (UNSPEC_FCTIWUZ): Ditto.
2987 (rreg): Use correct constraints.
2988 (SI_CONVERT_FP): New mode attribute for floating point conversion
2989 tests.
2990 (E500_CONVERT): Ditto.
2991 (lfiwax): New insns for converting from integer to floating point
2992 utilizing newer instructions. Attempt to optimize conversions
2993 that come from memory so that we don't load the value into a GPR,
2994 spill it to the stack and reload it into a FPR.
2995 (floatsi<mode>2_lfiwax): Ditto.
2996 (floatsi<mode>2_lfiwax_mem): Ditto.
2997 (floatsi<mode>2_lfiwax_mem2): Ditto.
2998 (lfiwzx): Ditto.
2999 (floatunssi<mode>2_lfiwzx): Ditto.
3000 (floatunssi<mode>2_lfiwzx_mem): Ditto.
3001 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
3002 (floatdidf2_mem): Ditto.
3003 (floatunsdidf2_fcfidu): Ditto.
3004 (floatunsdidf2_mem): Ditto.
3005 (floatunsdisf2): Ditto.
3006 (floatunsdisf2_fcfidus): Ditto.
3007 (floatunsdisf2_mem): Ditto.
3008 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
3009 Use FCFID on 32-bit hosts that support it.
3010 (floatsidf2_internal): Ditto.
3011 (floatunssisf2): Ditto.
3012 (floatunssidf2): Ditto.
3013 (floatunssidf2_internal): Ditto.
3014 (floatsisf2): Ditto.
3015 (floatdidf2): Ditto.
3016 (floatdidf2_fpr): Ditto.
3017 (floatunsdidf2): Ditto.
3018 (floatdisf2): Ditto.
3019 (floatdisf2_fcfids): Ditto.
3020 (floatdisf2_internal1): Ditto.
3021 (fixuns_truncsfsi2): Delete, merge into common pattern for both
3022 SF/DF. Add power7 support.
3023 (fix_truncsfsi2): Ditto.
3024 (fixuns_truncdfsi2): Ditto.
3025 (fixuns_truncdfdi2): Ditto.
3026 (fix_truncdfsi2): Ditto.
3027 (fix_truncdfsi2_internal): Ditto.
3028 (fix_truncdfsi2_internal_gfxopt): Ditto.
3029 (fix_truncdfsi2_mfpgpr): Ditto.
3030 (fctiwz): Ditto.
3031 (btruncdf2): Ditto.
3032 (btruncdf2_fpr): Ditto.
3033 (btructsf2): Ditto.
3034 (ceildf2): Ditto.
3035 (ceildf2_fpr): Ditto.
3036 (ceilsf2): Ditto.
3037 (floordf2): Ditto.
3038 (floordf2_fpr): Ditto.
3039 (floorsf2): Ditto.
3040 (rounddf2): Ditto.
3041 (rounddf2_fpr): Ditto.
3042 (roundsf2): Ditto.
3043 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
3044 (fix_trunc<mode>di2): Ditto.
3045 (fixuns_trunc<mode>si2): Ditto.
3046 (fixuns_trunc<mode>di2): Ditto.
3047 (fctiwz_<mode>): Ditto.
3048 (btrunc<mode>2): Ditto.
3049 (btrunc<mode>2_fpr): Ditto.
3050 (ceil<mode>2): Ditto.
3051 (ceil<mode>2_fpr): Ditto.
3052 (floor<mode>2): Ditto.
3053 (float<mode>2_fpr): Ditto.
3054 (round<mode>2): Ditto.
3055 (round<mode>2_fpr): Ditto.
3056 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
3057 (fixuns_trunc<mode>si2_stfiwx): Ditto.
3058 (fix_truncdfsi2_internal): Ditto.
3059 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
3060 converted value on stack, loaded into GPR, and then stored into
3061 the final destination.
3062 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
3063 FCTIDZ.
3064 (lrint<mode>di2): New insn, provide the lrint builtin functions.
3065 (ftruncdf2): Delete, unused.
3066 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
3067
3068 * config/rs6000/vsx.md (toplevel): Update copyright year.
3069 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
3070 (VSr3): Ditto.
3071
3072 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
3073 Jeremie Salvucci <jeremie.salvucci@free.fr>
3074
3075 * gengtype.c (output_type_enum): Test the right union member.
3076
3077 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
3078
3079 PR target/41484
3080 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
3081 operands for operand 1.
3082 (sse4_1_extendv4qiv4si2): Ditto.
3083 (sse4_1_extendv2qiv2di2): Ditto.
3084 (sse4_1_extendv4hiv4si2): Ditto.
3085 (sse4_1_extendv2hiv2di2): Ditto.
3086 (sse4_1_extendv2siv2di2): Ditto.
3087 (sse4_1_zero_extendv8qiv8hi2): Ditto.
3088 (sse4_1_zero_extendv4qiv4si2): Ditto.
3089 (sse4_1_zero_extendv2qiv2di2): Ditto.
3090 (sse4_1_zero_extendv4hiv4si2): Ditto.
3091 (sse4_1_zero_extendv2hiv2di2): Ditto.
3092 (sse4_1_zero_extendv2siv2di2): Ditto.
3093 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
3094 (*sse4_1_extendv4qiv4si2): Ditto.
3095 (*sse4_1_extendv2qiv2di2): Ditto.
3096 (*sse4_1_extendv4hiv4si2): Ditto.
3097 (*sse4_1_extendv2hiv2di2): Ditto.
3098 (*sse4_1_extendv2siv2di2): Ditto.
3099 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
3100 (*sse4_1_zero_extendv4qiv4si2): Ditto.
3101 (*sse4_1_zero_extendv2qiv2di2): Ditto.
3102 (*sse4_1_zero_extendv4hiv4si2): Ditto.
3103 (*sse4_1_zero_extendv2hiv2di2): Ditto.
3104 (*sse4_1_zero_extendv2siv2di2): Ditto.
3105
3106 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
3107
3108 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
3109 (mips_function_arg): Delete.
3110 (mips_function_arg_boundary): Take a const_tree.
3111 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
3112 (mips_arg_info): Likewise.
3113 (mips_setup_incoming_varargs): Call mips_function_arg_advance
3114 instead of FUNCTION_ARG_ADVANCE.
3115 (mips_function_arg_advance): Adjust prototype. Make static.
3116 (mips_function_arg): Likewise.
3117 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3118 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
3119
3120 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
3121
3122 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3123 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
3124 (function_arg): Delete.
3125 (function_arg_boundary): Take a const_tree.
3126 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
3127 (rs6000_spe_function_arg): Likewise.
3128 (rs6000_parm_start): Likewise.
3129 (rs6000_arg_size): Likewise.
3130 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
3131 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
3132 (rs6000_mixed_function_arg): Likewise.
3133 (function_arg): Rename to...
3134 (rs6000_function_arg): ...this.
3135 (function_arg_advance): Rename to...
3136 (rs6000_function_arg_advance_1): ...this
3137 (rs6000_function_arg_advance): New function. Call it.
3138 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
3139 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
3140 (rs6000_function_value): Likewise.
3141 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3142
3143 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3144
3145 * config/arm/arm.md (enabled): Test the value of arch_enabled
3146 rather than just using it.
3147
3148 2010-08-27 Olivier Hainque <hainque@adacore.com>
3149 Eric Botcazou <ebotcazou@adacore.com>
3150
3151 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
3152 cover all the possible offsets from this base.
3153 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
3154
3155 2010-08-26 Jakub Jelinek <jakub@redhat.com>
3156
3157 PR tree-optimization/44485
3158 * calls.c (flags_from_decl_or_type): For const or pure
3159 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
3160 together with ECF_CONST resp. ECF_PURE.
3161 * builtins.c (expand_builtin): Use flags_from_decl_or_type
3162 instead of querying flags directly.
3163 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
3164 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
3165
3166 2010-08-26 Richard Guenther <rguenther@suse.de>
3167
3168 PR tree-optimization/45255
3169 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
3170 and externals are also invariant.
3171
3172 2010-08-25 Jakub Jelinek <jakub@redhat.com>
3173
3174 PR rtl-optimization/44858
3175 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
3176 newi2pat, make sure they don't affect newpat.
3177
3178 PR rtl-optimization/45400
3179 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
3180 SUBREG_REG if both modes are of MODE_INT class.
3181
3182 2010-08-25 Julian Brown <julian@codesourcery.com>
3183
3184 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
3185 * config/arm/arm.md (generic_sched): No for Cortex-A5.
3186 (generic_vfp): Likewise.
3187 (cortex-a5.md): Include.
3188 * config/arm/cortex-a5.md: New.
3189
3190 2010-08-25 Richard Guenther <rguenther@suse.de>
3191
3192 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
3193 * gimple.c (gimple_get_alias_set): Remove special handling
3194 for pointers.
3195
3196 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
3197
3198 PR middle-end/45355
3199 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
3200 dead_or_set_p when computing i0_feeds_i2_n.
3201
3202 * combine.c (find_split_point): Undo canonicalization of multiply-add
3203 to (minus x (mult)) when it seems likely that this will increase the
3204 chances of a split.
3205
3206 2010-08-25 Richard Guenther <rguenther@suse.de>
3207
3208 PR lto/44562
3209 * lto-streamer.c (lto_record_common_node): Do not mess with
3210 TYPE_CANONICAL when not in lto.
3211 * gimple.c (gimple_register_type): Likewise.
3212
3213 2010-08-25 Richard Guenther <rguenther@suse.de>
3214
3215 PR tree-optimization/45316
3216 * tree-ssa-pre.c (eliminate): Properly clean EH info.
3217
3218 2010-08-25 Richard Guenther <rguenther@suse.de>
3219
3220 PR tree-optimization/45393
3221 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
3222 and clean EH info. Avoid SSA update.
3223 (execute_cse_sincos): Cleanup the CFG if it has changed.
3224
3225 2010-08-25 Richard Guenther <rguenther@suse.de>
3226
3227 PR middle-end/45379
3228 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
3229 TARGET_MEM_REF in alignment computation.
3230
3231 2010-08-25 Jakub Jelinek <jakub@redhat.com>
3232
3233 PR tree-optimization/45059
3234 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
3235 type conversions from newop{1,2}. Assert t is a comparison and
3236 newop{1,2} after the stripping are gimple vals.
3237
3238 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
3239
3240 * config/arm/iterators.md (VU, SE, V_widen_l): New.
3241 (V_unpack, US): New.
3242 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
3243 (vec_unpack<US>_lo_<mode>): Likewise.
3244 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
3245 (neon_vec_unpack<US>_lo_<mode>): Likewise.
3246 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
3247 (vec_widen_<US>mult_hi_<mode>): Likewise.
3248 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
3249 (neon_vec_<US>mult_hi_<mode>"): Likewise.
3250 (neon_unpack<US>_<mode>): Widening move intermediate step for
3251 vectorizing without -mvectorize-with-neon-quad.
3252 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
3253 for vectorizing without -mvectorize-with-neon-quad.
3254 * config/arm/predicates.md (vect_par_constant_high): Check for
3255 high-half lanes of a vector.
3256 (vect_par_constant_low): Check for low-half lanes of a vector.
3257
3258 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
3259
3260 * tree-if-conv.c (struct ifc_dr): New.
3261 (IFC_DR): New.
3262 (DR_WRITTEN_AT_LEAST_ONCE): New.
3263 (DR_RW_UNCONDITIONALLY): New.
3264 (memref_read_or_written_unconditionally): Use the cached values
3265 when possible.
3266 (write_memref_written_at_least_once): Same.
3267 (if_convertible_loop_p): Initialize and free DR->aux fields.
3268
3269 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
3270
3271 * gimple.c (gimple_could_trap_p_1): Not static anymore.
3272 Pass an extra bool parameter include_mem.
3273 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
3274 (gimple_assign_rhs_could_trap_p): Same.
3275 * gimple.h (gimple_could_trap_p_1): Declared.
3276 * tree-data-ref.h (same_data_refs_base_objects): New.
3277 (same_data_refs): New.
3278 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
3279 (write_memrefs_written_at_least_once): New.
3280 (ifcvt_memrefs_wont_trap): New.
3281 (operations_could_trap): New.
3282 (ifcvt_could_trap_p): New.
3283 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
3284 Gets a vector of data refs.
3285 (if_convertible_stmt_p): Same.
3286 (if_convertible_loop_p_1): New.
3287 (if_convertible_loop_p): Call if_convertible_loop_p_1.
3288
3289 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
3290
3291 * common.opt (ftree-loop-if-convert-stores): New flag.
3292 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
3293 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
3294 the created statement before GSI.
3295 (if_convertible_phi_p): Allow virtual phi nodes when
3296 flag_loop_if_convert_stores is set.
3297 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
3298 Do not handle types that do not match is_gimple_reg_type.
3299 Remove loop and bb parameters. Call gimple_could_trap_p instead of
3300 when flag_loop_if_convert_stores is set, as LHS can contain
3301 memory refs.
3302 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
3303 to if_convertible_gimple_assign_stmt_p.
3304 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
3305 (replace_phi_with_cond_gimple_assign_stmt): Renamed
3306 predicate_scalar_phi. Do not handle virtual phi nodes.
3307 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
3308 Call predicate_scalar_phi.
3309 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
3310 just after the labels for flag_loop_if_convert_stores, otherwise
3311 insert the predicate in the end of the BB.
3312 (predicate_mem_writes): New.
3313 (combine_blocks): Call predicate_all_scalar_phis. When
3314 flag_loop_if_convert_stores is set, call predicate_mem_writes.
3315 (tree_if_conversion): Call mark_sym_for_renaming when
3316 flag_loop_if_convert_stores is set.
3317 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
3318 flag_loop_if_convert_stores is set.
3319
3320 2010-08-24 Anatoly Sokolov <aesok@post.ru>
3321
3322 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
3323 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
3324 (pa_function_value): Make static.
3325 (override_options): Rename to...
3326 (pa_option_override): ...this. Make static.
3327 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
3328 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
3329 TARGET_OPTION_OVERRIDE): Define.
3330 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
3331 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
3332 Remove.
3333 * config/pa/pa-protos.h (override_options): Remove.
3334
3335 2010-08-24 Richard Guenther <rguenther@suse.de>
3336
3337 PR middle-end/45379
3338 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
3339 if addr->index is NULL or zero.
3340 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
3341 TARGET_MEM_REF more properly.
3342 (indirect_ref_may_alias_decl_p): Likewise.
3343 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
3344 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
3345
3346 2010-08-23 Anatoly Sokolov <aesok@post.ru>
3347
3348 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
3349 (m32c_override_options): Rename to...
3350 (m32c_option_override): ...this. Make static.
3351 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
3352 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
3353 Remove.
3354 * config/m32c/m32c-protos.h (m32c_override_options,
3355 m32c_function_value_regno_p): Remove.
3356
3357 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
3358
3359 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
3360 Fix a typo in a previous commit.
3361
3362 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
3363
3364 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
3365 Pre-initialize innerloop_iters to one.
3366
3367 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
3368
3369 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
3370 existing static function global.
3371
3372 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
3373 is changed to global.
3374
3375 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
3376 may_be_nonaddressable_p on base, and don't collect this reference
3377 if the address of the base could not be taken.
3378
3379 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3380
3381 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
3382 enable the compiler to autovectorize mathmetical functions for
3383 power7 using the Mathematical Acceleration Subsystem library.
3384
3385 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
3386 handle which vector math library we have.
3387 (rs6000_override_options): Add -mveclibabi=mass support.
3388 (rs6000_builtin_vectorized_libmass): New function to handle auto
3389 vectorizing math functions that are in the MASS library.
3390 (rs6000_builtin_vectorized_function): Call it.
3391
3392 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3393 -mveclibabi=mass.
3394
3395 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3396
3397 PR boehm-gc/34544
3398 * gthr-posix.h (__gthread_active_init): Delete.
3399 (__gthread_active_p): Do activity check here.
3400 Don't include errno.h on hppa-hpux. Update comment.
3401 * gthr-posix95.h (__gthread_active_init): Delete.
3402 (__gthread_active_p): Do activity check here.
3403 Don't include errno.h on hppa-hpux. Update comment.
3404 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
3405 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
3406 add -lpthread when -mt or -pthread is specified.
3407 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
3408 (LINK_GCC_C_SEQUENCE_SPEC): Define.
3409 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
3410 (stublib.c, pthread_default_stacksize_np-stub.o,
3411 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
3412 $(T)libgcc_stub.a): Add methods.
3413 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
3414 (stublib.c, pthread_default_stacksize_np-stub.o,
3415 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
3416 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3417 pthread_mutex_unlock): New stubs.
3418
3419 2010-08-22 Joseph Myers <joseph@codesourcery.com>
3420
3421 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
3422 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
3423 options.
3424 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
3425 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
3426 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
3427 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
3428 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
3429 "-l".
3430 * cppspec.c: Include opts.h.
3431 (lang_specific_driver): Use cl_decoded_option structures.
3432 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
3433 * doc/tm.texi: Regenerate.
3434 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
3435 (driver_handle_option): Allow driver options needing no special
3436 processing.
3437 (process_command): Decode options before call to
3438 lang_specific_driver. Pass decoded options to
3439 lang_specific_driver.
3440 * gcc.h (lang_specific_driver): Update prototype.
3441 * gccspec.c: Include opts.h.
3442 (lang_specific_driver): Use cl_decoded_option structures.
3443 * opts-common.c (option_ok_for_language, generate_option,
3444 generate_option_input_file): New.
3445 (decode_cmdline_option): Use option_ok_for_language.
3446 (decode_cmdline_options_to_array): Use generate_option_input_file.
3447 (handle_generated_option): Use generate_option.
3448 * opts.h (generate_option, generate_option_input_file): Declare.
3449
3450 2010-08-22 Anatoly Sokolov <aesok@post.ru>
3451
3452 * config/mips/mips.c (mips_override_options): Rename to...
3453 (mips_option_override): ...this. Make static.
3454 (TARGET_OPTION_OVERRIDE): Define.
3455 (mips_in_small_data_p): Update comment.
3456 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
3457 (FIXED_REGISTERS): Update comment.
3458 * config/mips/mips-protos.h (mips_override_options): Remove.
3459
3460 2010-08-21 Olivier Hainque <hainque@adacore.com>
3461
3462 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
3463
3464 2010-08-21 Olivier Hainque <hainque@adacore.com>
3465
3466 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
3467 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
3468
3469 2010-08-20 Jan Hubicka <jh@suse.cz>
3470
3471 * tree-pass.h (pass_ipa_cdtor_merge): New function.
3472 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
3473 heap allocated.
3474 (record_cdtor_fn): Move to ipa.c; do not test for
3475 have_ctors_dtors.
3476 (build_cdtor): Move to ipa.c; add code avoiding construction
3477 when target have ctors/dtors and there is only one ctor/dtor at given
3478 priority.
3479 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
3480 sort; reverse order of constructors.
3481 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
3482 (cgraph_finalize_function): Do not call record_cdtor_fn.
3483 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
3484 (cgraph_build_static_cdtor): Move to ipa.c.
3485 * ipa.c: Include target.h and tree-iterator.h.
3486 (cgraph_build_static_cdtor, static_ctors, static_dtors,
3487 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
3488 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
3489 pass_ipa_cdtor_merge): New.
3490 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
3491 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
3492 bounds access.
3493
3494 2010-08-20 Jan Hubicka <jh@suse.cz>
3495
3496 PR c++/45307
3497 PR c++/17736
3498 * cgraph.h (cgraph_only_called_directly_p,
3499 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
3500 static cdtors.
3501 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
3502 are not needed.
3503 (cgraph_finalize_function): Static cdtors are reachable.
3504 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
3505
3506 2010-08-20 Jan Hubicka <jh@suse.cz>
3507
3508 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
3509 flag_wpa.
3510 * lto-streamer-out.c (lto_output): Likewise.
3511 * passes.c (ipa_write_optimization_summaries): Initialize statement
3512 uids.
3513
3514 2010-08-20 Olivier Hainque <hainque@adacore.com>
3515
3516 * tree.h (alias_diag_flags): New enum.
3517 (alias_pair): Add an 'emitted_diags' field.
3518 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
3519 (assemble_alias): Initialize emitted_diags of new pairs.
3520
3521 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
3522
3523 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3524 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3525 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3526 (STACK_CHECK_PROTECT): Define.
3527 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
3528 (output_probe_stack_range): Likewise.
3529 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
3530 builtin stack checking is enabled.
3531 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
3532 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3533 (probe_stack_range): New insn.
3534
3535 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
3536
3537 PR target/45336
3538 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
3539 short first.
3540
3541 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
3542 char first.
3543
3544 2010-08-20 Jakub Jelinek <jakub@redhat.com>
3545
3546 PR target/45336
3547 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
3548 to cover zero extension into 64-bit register.
3549 (*sse2_pextrw): Likewise.
3550 (*sse4_1_pextrd_zext): New insn.
3551
3552 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
3553
3554 revert r163410, partially revert r163267.
3555 * config/rs6000/darwin.h (LIB_SPEC): Remove.
3556 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
3557 Darwin versions.
3558
3559 2010-08-20 Jakub Jelinek <jakub@redhat.com>
3560
3561 PR middle-end/44974
3562 * builtins.c (expand_builtin): Don't optimize away
3563 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
3564
3565 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
3566
3567 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
3568 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
3569 alternative 1 of operand 2.
3570
3571 2010-08-20 Jakub Jelinek <jakub@redhat.com>
3572 Paolo Bonzini <bonzini@gnu.org>
3573
3574 * simplify-rtx.c (simplify_unary_operation_1): Optimize
3575 (sign_extend (zero_extend (...)) and
3576 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
3577
3578 2010-08-20 Jakub Jelinek <jakub@redhat.com>
3579
3580 PR rtl-optimization/45353
3581 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
3582 after bb_note is a BARRIER.
3583
3584 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
3585
3586 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
3587 linking libgcc.a.
3588
3589 2010-08-20 Jakub Jelinek <jakub@redhat.com>
3590 Michael Matz <matz@suse.de>
3591
3592 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
3593
3594 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3595
3596 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
3597 (ggc_mark_roots): ...here.
3598
3599 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3600
3601 * vec.h (FOR_EACH_VEC_ELT): Define.
3602 * c-decl.c: Use it.
3603 * cfgloop.c: Likewise.
3604 * cfgloopmanip.c: Likewise.
3605 * cgraph.c: Likewise.
3606 * cgraphunit.c: Likewise.
3607 * combine.c: Likewise.
3608 * config/bfin/bfin.c: Likewise.
3609 * config/mips/mips.c: Likewise.
3610 * config/rs6000/rs6000.c: Likewise.
3611 * dbxout.c: Likewise.
3612 * df-scan.c: Likewise.
3613 * dominance.c: Likewise.
3614 * dse.c: Likewise.
3615 * dwarf2out.c: Likewise.
3616 * except.c: Likewise.
3617 * expr.c: Likewise.
3618 * function.c: Likewise.
3619 * gcse.c: Likewise.
3620 * genattr.c: Likewise.
3621 * ggc-common.c: Likewise.
3622 * gimplify.c: Likewise.
3623 * graphite-blocking.c: Likewise.
3624 * graphite-clast-to-gimple.c: Likewise.
3625 * graphite-dependences.c: Likewise.
3626 * graphite-interchange.c: Likewise.
3627 * graphite-poly.c: Likewise.
3628 * graphite-scop-detection.c: Likewise.
3629 * graphite-sese-to-poly.c: Likewise.
3630 * graphite.c: Likewise.
3631 * haifa-sched.c: Likewise.
3632 * ifcvt.c: Likewise.
3633 * implicit-zee.c: Likewise.
3634 * ipa-prop.c: Likewise.
3635 * ipa-struct-reorg.c: Likewise.
3636 * ipa.c: Likewise.
3637 * ira-build.c: Likewise.
3638 * ira-color.c: Likewise.
3639 * ira-emit.c: Likewise.
3640 * lambda-code.c: Likewise.
3641 * loop-invariant.c: Likewise.
3642 * loop-unroll.c: Likewise.
3643 * lower-subreg.c: Likewise.
3644 * lto-cgraph.c: Likewise.
3645 * lto-opts.c: Likewise.
3646 * lto-streamer-in.c: Likewise.
3647 * lto-streamer-out.c: Likewise.
3648 * lto-streamer.c: Likewise.
3649 * lto-symtab.c: Likewise.
3650 * matrix-reorg.c: Likewise.
3651 * opts.c: Likewise.
3652 * predict.c: Likewise.
3653 * print-tree.c: Likewise.
3654 * sdbout.c: Likewise.
3655 * sel-sched-dump.c: Likewise.
3656 * sel-sched-ir.c: Likewise.
3657 * sel-sched.c: Likewise.
3658 * sese.c: Likewise.
3659 * stor-layout.c: Likewise.
3660 * tree-cfg.c: Likewise.
3661 * tree-cfgcleanup.c: Likewise.
3662 * tree-chrec.c: Likewise.
3663 * tree-data-ref.c: Likewise.
3664 * tree-emutls.c: Likewise.
3665 * tree-inline.c: Likewise.
3666 * tree-into-ssa.c: Likewise.
3667 * tree-loop-distribution.c: Likewise.
3668 * tree-loop-linear.c: Likewise.
3669 * tree-mudflap.c: Likewise.
3670 * tree-outof-ssa.c: Likewise.
3671 * tree-parloops.c: Likewise.
3672 * tree-predcom.c: Likewise.
3673 * tree-pretty-print.c: Likewise.
3674 * tree-scalar-evolution.c: Likewise.
3675 * tree-ssa-live.c: Likewise.
3676 * tree-ssa-loop-im.c: Likewise.
3677 * tree-ssa-loop-ivcanon.c: Likewise.
3678 * tree-ssa-loop-ivopts.c: Likewise.
3679 * tree-ssa-loop-manip.c: Likewise.
3680 * tree-ssa-loop-niter.c: Likewise.
3681 * tree-ssa-loop-prefetch.c: Likewise.
3682 * tree-ssa-phiprop.c: Likewise.
3683 * tree-ssa-pre.c: Likewise.
3684 * tree-ssa-reassoc.c: Likewise.
3685 * tree-ssa-sccvn.c: Likewise.
3686 * tree-ssa-structalias.c: Likewise.
3687 * tree-ssa.c: Likewise.
3688 * tree-vect-data-refs.c: Likewise.
3689 * tree-vect-loop-manip.c: Likewise.
3690 * tree-vect-loop.c: Likewise.
3691 * tree-vect-patterns.c: Likewise.
3692 * tree-vect-slp.c: Likewise.
3693 * tree-vect-stmts.c: Likewise.
3694 * tree-vrp.c: Likewise.
3695 * tree.c: Likewise.
3696 * value-prof.c: Likewise.
3697 * var-tracking.c: Likewise.
3698 * varasm.c: Likewise.
3699 * vmsdbgout.c: Likewise.
3700
3701 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
3702 Richard Guenther <richard.guenther@gmail.com>
3703
3704 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
3705 copy the src value and return a copy.
3706 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
3707 (C++ Volatiles): Adjust to describe C++ semantics only.
3708
3709 2010-08-20 Joseph Myers <joseph@codesourcery.com>
3710
3711 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
3712 be zero or nonzero.
3713 * doc/tm.texi: Regenerate.
3714 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
3715 * df-scan.c (df_get_exit_block_use_set), reginfo.c
3716 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
3717 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
3718 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
3719 to 1.
3720
3721 2010-08-20 Olivier Hainque <hainque@adacore.com>
3722
3723 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
3724 an extra nop past a sibling call at the very end.
3725
3726 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
3727
3728 PR bootstrap/45350
3729 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
3730 a comment.
3731
3732 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
3733
3734 * target.def (function_arg, function_incoming_arg): Remove const
3735 qualifier on CUMULATIVE_ARGS parameter.
3736 * targhooks.h (default_function_arg, default_function_incoming_arg):
3737 Likewise.
3738 * targhooks.c (default_function_arg, default_function_incoming_arg):
3739 Likewise.
3740 * config/i386/i386.c (ix86_function_arg): Likewise.
3741
3742 2010-08-19 Jakub Jelinek <jakub@redhat.com>
3743
3744 PR target/45336
3745 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
3746 SIGN_EXTENDs or ZERO_EXTENDs.
3747
3748 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
3749
3750 PR target/42172
3751 * combine.c (combine_validate_cost): New arg I0. All callers changed.
3752 Take its cost into account if nonnull.
3753 (insn_a_feeds_b): New static function.
3754 (combine_instructions): Look for four-insn combinations.
3755 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
3756 them into account when computing all_adjacent and looking for other
3757 uses.
3758 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
3759 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
3760 (try_combine): New arg I0. Handle four-insn combinations.
3761 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
3762 like ELIM_I1.
3763
3764 2010-08-19 Jason Merrill <jason@redhat.com>
3765
3766 PR c++/45307
3767 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
3768 if ctor is empty.
3769 (gimplify_modify_expr_rhs): Adjust.
3770
3771 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
3772
3773 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
3774 bitmap_bit_p.
3775 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
3776 * dominance.c (iterate_fix_dominators): Likewise.
3777 * dse.c (set_usage_bits): Likewise.
3778 (set_position_unneeded, record_store): Likewise.
3779 * gimple-fold.c (get_maxval_strlen): Likewise.
3780 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
3781 * ipa-inline.c (update_caller_keys): Likewise.
3782 * ipa-split.c (verify_non_ssa_vars): Likewise.
3783 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
3784 (close_type_exposed_parameter, close_type_full_escape): Likewise.
3785 (close_addressof_down): Likewise.
3786 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
3787 (setup_allocno_left_conflicts_size): Likewise.
3788 (ira_reassign_conflict_allocnos): Likewise.
3789 (ira_reassign_pseudos): Likewise.
3790 * ira-emit.c (change_loop): Likewise.
3791 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
3792 * lto-streamer-out.c (write_symbol): Likewise.
3793 * predict.c (expr_expected_value_1): Likewise.
3794 * regstat.c (regstat_bb_compute_ri): Likewise.
3795 * sel-sched.c (create_block_for_bookkeeping): Likewise.
3796 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
3797 * stmt.c (expand_case): Likewise.
3798 * tree-eh.c (emit_eh_dispatch): Likewise.
3799 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
3800 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
3801 Likewise.
3802 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
3803 (rdg_build_components): Likewise.
3804 * tree-object-size.c (collect_object_sizes_for): Likewise.
3805 * tree-sra.c (convert_callers): Likewise.
3806 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
3807 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
3808 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
3809
3810 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
3811
3812 * config/i386/i386.md (*lea_1): Use P mode iterator.
3813 (lea add splitter): Also handle DImode operands.
3814 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
3815 predicate. Do not use ix86_lea_for_add_ok.
3816 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
3817 (lea ashift splitter): Also handle DImode operands.
3818 (DImode lea ashift splitter): Remove splitter.
3819
3820 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
3821
3822 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
3823 ix86_binary_operator_ok.
3824
3825 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
3826
3827 PR rtl-optimization/44691
3828 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
3829 is not a register.
3830
3831 2010-08-19 Ian Bolton <ian.bolton@arm.com>
3832
3833 PR target/45070
3834 * config/arm/arm.c (arm_output_epilogue): Ensure that return
3835 value of size 1-3 is handled correctly.
3836
3837 2010-08-19 Ian Bolton <ian.bolton@arm.com>
3838
3839 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
3840 type for the conditional has wide enough range.
3841
3842 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
3843
3844 PR target/45327
3845 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
3846 ix86_binary_operator_ok.
3847
3848 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
3849
3850 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
3851 <default>: Swap operands 1 and 2 for alternative 2 to use existing
3852 code to output insn mnemonic. Fix comment.
3853 (*addsi_1_zext): Add r-r-0 alternative 1.
3854 <TYPE_LEA>: Split insn to lea.
3855 <default>: Handle alternative 1.
3856 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
3857 multi-level if_then_else RTX to set "type" attribute.
3858 <default>: Handle alternative 2.
3859 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
3860 Use cond RTX instead of multi-level if_then_else RTX to set
3861 "type" attribute.
3862 <default>: Handle alternatives 2 and 4.
3863 (lea splitters): Update calls to ix86_lea_for_add_ok.
3864
3865 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
3866 argument.
3867 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
3868
3869 2010-08-18 Richard Guenther <rguenther@suse.de>
3870
3871 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
3872 use operand helpers.
3873
3874 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
3875
3876 PR middle-end/45292
3877 * optabs.c (expand_bool_compare_and_swap): Expand pending
3878 pops before trying the optab.
3879
3880 2010-08-18 Yao Qi <yao@codesourcery.com>
3881
3882 PR target/45094
3883 * config/arm/arm.c (output_move_double): Fix typo generating
3884 instructions ('ldr'->'str').
3885
3886 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3887
3888 PR rtl-optimization/42575
3889 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
3890 live ranges.
3891
3892 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
3893
3894 * config/arm/arm-protos.h (arm_expand_sync): New.
3895 (arm_output_memory_barrier, arm_output_sync_insn): New.
3896 (arm_sync_loop_insns): New.
3897 * config/arm/arm.c (FL_ARCH7): New.
3898 (FL_FOR_ARCH7): Include FL_ARCH7.
3899 (arm_arch7): New.
3900 (arm_print_operand): Support %C markup.
3901 (arm_legitimize_sync_memory): New.
3902 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
3903 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
3904 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
3905 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
3906 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
3907 (arm_process_output_sync_insn, arm_output_sync_insn): New.
3908 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
3909 * config/arm/arm.h (struct arm_sync_generator): New.
3910 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
3911 (TARGET_HAVE_MEMORY_BARRIER): New.
3912 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
3913 * config/arm/arm.md: Include sync.md.
3914 (UNSPEC_MEMORY_BARRIER): New.
3915 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
3916 (VUNSPEC_SYNC_OP):New.
3917 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
3918 (sync_result, sync_memory, sync_required_value): New attributes.
3919 (sync_new_value, sync_t1, sync_t2): Likewise.
3920 (sync_release_barrier, sync_op): Likewise.
3921 (length): Add logic to length attribute defintion to call
3922 arm_sync_loop_insns when appropriate.
3923 * config/arm/sync.md: New file.
3924
3925 2010-08-17 Jakub Jelinek <jakub@redhat.com>
3926
3927 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
3928 ENABLE_TREE_CHECKING.
3929 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
3930 and GCC >= 4.3.
3931
3932 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
3933
3934 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
3935 or optimizing for size, always avoid lea if possible.
3936
3937 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
3938
3939 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
3940
3941 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
3942 Dunmmy function with NULL return unless the target is
3943 OSX >= 10.6 (Darwin10).
3944
3945 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
3946
3947 * gcc.c (spec_function): Add remove-outfile.
3948 (remove_outfile_spec_function): New function.
3949 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
3950 * invoke.texi (replace-outfile): Document.
3951
3952 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
3953
3954 PR target/45296
3955 * reginfo.c (globalize_reg): Reject stack registers.
3956
3957 2010-08-17 Richard Guenther <rguenther@suse.de>
3958
3959 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
3960 list of conditional equivalences.
3961 (free_all_edge_infos): Adjust.
3962 (record_equivalences_from_incoming_edge): Likewise.
3963 (record_cond): Likewise.
3964 (build_and_record_new_cond): Likewise.
3965 (record_conditions): Likewise.
3966 (dom_opt_leave_block): Likewise.
3967
3968 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
3969
3970 * doc/invoke.texi (ms-extension): Add documentation.
3971
3972 2010-08-17 Richard Guenther <rguenther@suse.de>
3973
3974 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
3975
3976 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
3977
3978 PR c/40563
3979 * c-decl.c (diagnose_uninitialized_cst_member): New function.
3980 (finish_decl): Use it to issue a -Wc++-compat warning about
3981 uninitialized const field in struct or union.
3982
3983 (finish_struct): Use strip_array_types.
3984
3985 2010-08-17 Jakub Jelinek <jakub@redhat.com>
3986
3987 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
3988 functions.
3989 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
3990 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
3991 call block_nreverse here.
3992 (blocks_nreverse): Rename decl temporary to block.
3993
3994 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
3995
3996 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
3997 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
3998 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
3999 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
4000 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
4001 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
4002 thumb2_iorsi3): Delete.
4003 (orsi_notsi_si): No longer a named pattern.
4004 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
4005 * config/arm/predicates.md (shift_amount_operand): New.
4006 (mult_operator): New.
4007 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
4008 attr enabled): New.
4009 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
4010 arch matches t2.
4011 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
4012 (not_shiftsi_compare0): Likewise, renamed from
4013 arm_notsi_shiftsi_compare0.
4014 (not_shiftsi_compare0_scratch): Likweise, renamed from
4015 arm_notsi_shiftsi_compare0_scratch.
4016 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
4017 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
4018 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
4019 so that the register alternative is disabled when the shift_operator
4020 is MULT. Use "M" as the constraint for constants.
4021 (arith_shiftsi splitter): Enable for TARGET_32BIT.
4022 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
4023 constraint for constants.
4024 (arith_shiftsi_compare0_scratch): Likewise.
4025 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
4026 Handle Thumb2 alternative.
4027
4028 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4029
4030 * doc/options.texi (NoDriverArg): Document.
4031 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
4032 -MDX and -MMDX.
4033 * opt-functions.awk (switch_flags): Handle NoDriverArg.
4034 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
4035 marking for CL_NO_DRIVER_ARG options when in the driver.
4036 * opts.h (CL_NO_DRIVER_ARG): Define.
4037 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4038 CL_COMMON): Update values.
4039
4040 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4041
4042 * common.opt: Add driver options.
4043 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
4044 * doc/options.texi (Driver, RejectDriver): Document.
4045 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
4046 print_prog_name, print_multi_directory, print_sysroot,
4047 print_multi_os_directory, print_multi_lib,
4048 print_sysroot_headers_suffix, report_times, combine_flag,
4049 use_pipes, wrapper_string): Remove.
4050 (save_switch, driver_unknown_option_callback,
4051 driver_wrong_lang_callback, driver_post_handling_callback,
4052 driver_handle_option): New.
4053 (spec_lang, last_language_n_infiles): Make file-scope static
4054 instead of local to process_command.
4055 (process_command): Use decode_cmdline_options_to_array and
4056 read_cmdline_option for option processing. Compute have_c in
4057 prescan of decoded options.
4058 * opt-functions.awk (switch_flags): Handle Driver and
4059 RejectDriver.
4060 (var_type, var_type_struct): Handle Separate options as generating
4061 const char * variables.
4062 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
4063 CL_TARGET to be passed by caller if required.
4064 (decode_cmdline_options_to_array): Update comment.
4065 * opts.c (complain_wrong_lang): Handle options only valid for the
4066 driver.
4067 (decode_options): Update call to decode_cmdline_options_to_array.
4068 (print_filtered_help): Ignore driver-only options.
4069 (print_specific_help): Ignore CL_DRIVER.
4070 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
4071 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
4072 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
4073 Update values.
4074
4075 2010-08-16 Richard Guenther <rguenther@suse.de>
4076
4077 * tree-cfg.c (verify_types_in_gimple_reference): Verify
4078 TARGET_MEM_REF a bit.
4079 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
4080 (create_mem_ref_raw): Always create TMR_OFFSET, store the
4081 alias pointer type via it.
4082 (copy_mem_ref_info): Adjust.
4083 (maybe_fold_tmr): Likewise.
4084 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
4085 (reference_alias_ptr_type): Likewise.
4086 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
4087 adjust documentation of TMR_OFFSET operand.
4088 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
4089 use the alias pointer type.
4090 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
4091 initialize mem attrs but the TMR itself.
4092 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
4093 similar to MEM_REF.
4094 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
4095 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
4096 (unshare_and_remove_ssa_names): Likewise.
4097 (copy_ref_info): Adjust.
4098 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
4099 TARGET_MEM_REF case.
4100 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
4101 at TMR_ORIGINAL.
4102 * tree.h (TMR_ORIGINAL): Remove.
4103 * gimple.c (get_base_address): For TARGET_MEM_REF with a
4104 symbol return that.
4105 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
4106 with a symbol.
4107 (get_addr_base_and_unit_offset): Likewise.
4108 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
4109 TARGET_MEM_REFs.
4110 (indirect_ref_may_alias_decl_p): Likewise.
4111 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
4112
4113 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
4114
4115 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
4116 with GCC version 4.6, the default setting (when not optimizing
4117 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
4118 been changed to -fomit-frame-pointer.
4119
4120 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
4121
4122 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
4123 Darwin10. Do not link libgcc.a for Darwin >= 9.
4124
4125 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
4126
4127 * doc/invoke.texi (Warning Options): Fix terminology and markup
4128 in the description of how unknown warning options are handled.
4129
4130 2010-08-15 Ira Rosen <irar@il.ibm.com>
4131
4132 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
4133 in basic blocks.
4134 (vect_supportable_dr_alignment): Check alignment for basic blocks.
4135 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
4136 data references.
4137 (vect_bb_vectorization_profitable_p): New function.
4138 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
4139 check if it's worthwhile to vectorize the basic block.
4140
4141 2010-08-14 Anatoly Sokolov <aesok@post.ru>
4142
4143 * reload.h (register_move_cost, memory_move_secondary_cost,
4144 secondary_reload_class): Adjust prototype.
4145 * rtl.h (reg_class_subset_p): Adjust prototype.
4146 * reload.c (secondary_reload_class): Change arguments type from
4147 enum reg_class to reg_class_t. Change result type to reg_class_t.
4148 * reginfo.c (register_move_cost, reg_class_subset_p): Change
4149 arguments type from enum reg_class to reg_class_t.
4150 (memory_move_secondary_cost): Change arguments type from
4151 enum reg_class to reg_class_t. Change type of saved_flags to
4152 reg_class_t.
4153
4154 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4155 Remove macros.
4156 (mips_cost): Remove.
4157 (struct mips_rtx_cost_data): Moved to mips.c.
4158 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
4159 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
4160 (mips_cost): Make static.
4161 (mips_canonicalize_move_class): Change argument type to reg_class_t.
4162 Change result type to reg_class_t.
4163 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
4164 type from enum reg_class to reg_class_t.
4165 (mips_register_move_cost): Make static. Change arguments
4166 type from enum reg_class to reg_class_t.
4167 (mips_memory_move_cost): New function.
4168 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4169
4170 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
4171
4172 PR rtl-optimization/43358
4173 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
4174 of a single hard register, using simplify_subreg_regno to decide
4175 what that register should be.
4176
4177 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
4178
4179 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
4180 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
4181 (loongson_pmull<V_suffix>): Rename to...
4182 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
4183
4184 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
4185
4186 * configure.ac: Enable -fomit-frame-pointer on darwin
4187 which support dwarf2.
4188 * config/i386/i386.c (override_options): Same.
4189
4190 2010-08-13 Jie Zhang <jie@codesourcery.com>
4191
4192 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
4193
4194 2010-08-12 Joseph Myers <joseph@codesourcery.com>
4195
4196 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
4197 -MMD.
4198
4199 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
4200
4201 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
4202 up dot_prod pattern searching if a stmt is outside the loop.
4203
4204 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
4205 Uros Bizjak <ubizjak@gmail.com>
4206
4207 * config.gcc: Handle --enable-frame-pointer.
4208
4209 * configure.ac: Add --enable-frame-pointer.
4210 * configure: Regenerated.
4211
4212 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
4213 (override_options): If not configured with --enable-frame-pointer,
4214 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
4215 optimizing for size), -fasynchronous-unwind-tables and
4216 -maccumulate-outgoing-args by default.
4217
4218 2010-08-12 Jakub Jelinek <jakub@redhat.com>
4219
4220 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
4221
4222 PR middle-end/45262
4223 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
4224 -a overflows. Normalize the range.
4225
4226 2010-08-12 Richard Guenther <rguenther@suse.de>
4227
4228 PR tree-optimization/45232
4229 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
4230 for types with undefined overflow.
4231 (reassociate_bb): Allow re-associating of bit and min/max
4232 operations for types with undefined overflow.
4233 * tree-ssa-forwprop.c (associate_plusminus): New function.
4234 (tree_ssa_forward_propagate_single_use_vars): Call it.
4235
4236 2010-08-12 Richard Guenther <rguenther@suse.de>
4237
4238 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
4239 * tree-ssa-alias.c (get_ptr_info): Move ...
4240 * tree-ssanames.c (get_ptr_info): ... here. Initialize
4241 align and misalign fields conservatively.
4242 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
4243 derive alignment information.
4244 (evaluate_stmt): Derive alignment information from memory
4245 allocation functions.
4246 * tree.h (get_pointer_alignment): Make unsigned.
4247 * builtins.c (get_object_alignment): Use alignment information we
4248 have computed for pointers.
4249 (get_pointer_alignment): Likewise. Make conservative, return
4250 and unsigned value.
4251 (expand_builtin_strlen): Adjust.
4252 (expand_builtin_memcmp): Likewise.
4253 (expand_builtin_strcmp): Likewise.
4254 (expand_builtin_strncmp): Likewise.
4255 (get_builtin_sync_mem): Use at least mode alignment.
4256 (fold_builtin_memset): Adjust.
4257 (fold_builtin_memory_op): Likewise.
4258 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
4259 information also dump pointer alignment knowledge.
4260 (dump_gimple_stmt): Likewise.
4261
4262 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
4263
4264 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
4265 (EMPTY_FIELD_BOUNDARY): Remove.
4266 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
4267
4268 2010-08-12 Jakub Jelinek <jakub@redhat.com>
4269
4270 PR debug/45259
4271 * caller-save.c (save_call_clobbered_regs): Only swap notes with
4272 DEBUG_INSNs if n_regs_saved.
4273
4274 2010-08-12 Wei Guozhi <carrot@google.com>
4275
4276 PR target/44999
4277 * config/arm/arm.md (andsi3): Change to zero extension if possible.
4278 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
4279
4280 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
4281
4282 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
4283
4284 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
4285
4286 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4287
4288 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
4289 the case removed in the previous patch, when the only phi argument
4290 is defined in the same loop as the phi node itself. Handle it
4291 separately from the invariant case by both propagating it outside
4292 the region and replacing the phi node with an assign.
4293
4294 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4295
4296 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
4297 constant phi nodes with one argument are is_gimple_min_invariant
4298 and SSA_NAME_IS_DEFAULT_DEF.
4299
4300 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4301
4302 * graphite-cloog-util.c (oppose_constraint):
4303 Extend loop counter's value range (CLOOG_ORG).
4304 (cloog_matrix_to_ppl_constraint): Same.
4305 (new_Constraint_System_from_Cloog_matrix): Same.
4306 * graphite-cloog-compat.h (matrix_num_type): New.
4307
4308 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4309
4310 * graphite.c (graphite_initialize): Do not initialize
4311 CLooG and initialize the Parma Polyhedra Library
4312 manually when using CLOOG_ORG.
4313 (graphite_finalize): Do not finalize CLooG and finalize
4314 the Parma Polyhedra Library manually when using CLOOG_ORG.
4315 * graphite-cloog-compat.h (cloog_initialize): Hide function
4316 when using CLOOG_ORG.
4317 (cloog_finalize): Same.
4318
4319 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4320
4321 * graphite-clast-to-gimple.c (free_scattering): Change
4322 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
4323 (CLOOG_ORG).
4324 (build_cloog_prog): Same.
4325 * graphite-cloog-compat.h (cloog_domain): Removed.
4326 (cloog_scattering): New.
4327 (cloog_set_domain): Removed.
4328 (cloog_set_scattering): New.
4329 (cloog_next_domain): Removed.
4330 (cloog_next_scattering): New.
4331 (cloog_set_next_domain): Removed.
4332 (cloog_set_next_scattering): New.
4333 (CloogScatteringList): New.
4334 (CloogScattering): New.
4335 (cloog_scattering_free): New.
4336 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
4337 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
4338 New.
4339
4340 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4341
4342 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
4343 CloogState.
4344 (set_cloog_options): Same.
4345 (print_clast_stmt): Same.
4346 (scop_to_clast): Same.
4347 (print_generated_program): Same.
4348 (gloog): Same.
4349 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
4350 (scop_to_clast): Extend with CloogState.
4351 * graphite-cloog-util.c: Include graphite-cloog-compat.h
4352 (new_Cloog_Domain_from_ppl_Polyhedron):
4353 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
4354 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
4355 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4356 * graphite-cloog-util.h (build_cloog_prog): Same.
4357 * graphite-cloog-copat.h (build_cloog_prog): New.
4358 (CloogState): New.
4359 (cloog_state_malloc): New.
4360 (cloog_state_free): New.
4361 (cloog_loop_malloc): New.
4362 (cloog_options_malloc): New.
4363 (cloog_statement_alloc): New.
4364 (cloog_domain_from_cloog_matrix): New.
4365 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
4366 (new_Cloog_Domain_from_ppl_Polyhedron): New.
4367
4368 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4369
4370 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
4371 type of NAME now depends on used CLooG version.
4372 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
4373 (gcc_type_for_clast_expr): Same.
4374 (print_clast_stmt): Replace pprint with clast_pprint.
4375 * graphite-cloog-compat.h: Provide compatibility macros for
4376 CLooG Legacy.
4377 (clast_name_p): New.
4378 (clast_expr_term): New.
4379 (clast_expr_red): New.
4380 (clast_expr_bin): New.
4381 (clast_pprint): New.
4382
4383 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4384
4385 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
4386 compatible to newer CLooG releases (CLOOG_ORG).
4387 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
4388 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
4389 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
4390 (build_cloog_prog) : New.
4391 (cloog_program_extract_scalars): New.
4392 (cloog_program_scatter): New.
4393
4394 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4395
4396 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
4397 conditionally (CLOOG_ORG).
4398 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
4399 (cloog_statement_usr): New.
4400 (cloog_domain): Same.
4401 (cloog_set_domain): Same.
4402 (cloog_next_domain): Same.
4403 (cloog_set_next_domain): Same.
4404 (cloog_program_nb_scattdims): Same.
4405 (cloog_program_set_nb_scattdims): Same.
4406 (cloog_program_names): Same.
4407 (cloog_program_set_names): Same.
4408 (cloog_program_set_context): Same.
4409 (cloog_program_set_loop): Same.
4410 (cloog_program_blocklist): Same.
4411 (cloog_program_set_blocklist): Same.
4412 (cloog_program_scaldims): Same.
4413 (cloog_program_set_scaldims): Same.
4414 (cloog_names_nb_parameters): Same.
4415 (cloog_names_set_nb_parameters): Same.
4416 (cloog_names_parameters): Same.
4417 (cloog_names_set_parameters): Same.
4418 (cloog_names_set_nb_iterators): Same.
4419 (cloog_names_set_iterators): Same.
4420 (cloog_names_set_nb_scattering): Same.
4421 (cloog_names_set_scattering): Same.
4422 (cloog_statement_set_usr): Same.
4423 (cloog_loop_set_next): Same.
4424 (cloog_loop_set_domain): Same.
4425 (cloog_loop_set_block): Same.
4426 (cloog_block_list_next): Same.
4427 (cloog_block_list_set_next):
4428 (cloog_block_list_set_block): Same.
4429
4430 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4431
4432 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
4433 a bool.
4434 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
4435 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
4436 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
4437 when something has been changed.
4438 (rewrite_commutative_reductions_out_of_ssa): Same.
4439
4440 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4441
4442 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
4443 handle the case when def is in the sese region.
4444 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
4445 for invariant expressions.
4446 (rewrite_cross_bb_phi_deps): Removed.
4447 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
4448 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
4449 rewrite_cross_bb_phi_deps.
4450
4451 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4452
4453 * graphite-sese-to-poly.c
4454 (rewrite_commutative_reductions_out_of_ssa_loop): Call
4455 scev_analyzable_p only on is_gimple_reg
4456
4457 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4458
4459 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
4460 (rewrite_close_phi_out_of_ssa): Propagate constant values or
4461 parametric expressions outside the scop region.
4462 (rewrite_cross_bb_scalar_deps): Same.
4463 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
4464
4465 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4466
4467 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
4468 SSA_NAME_DEF_STMT only on SSA_NAMEs.
4469
4470 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4471
4472 * tree-scalar-evolution.c (instantiate_scev_name): Do not
4473 instantiate default definitions.
4474
4475 2010-08-11 Vladimir Kargov <kargov@gmail.com>
4476 Sebastian Pop <sebastian.pop@amd.com>
4477
4478 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
4479 (loop_exits_from_bb_p): New.
4480 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
4481 (loop_exits_from_bb_p): Declared.
4482 * graphite-scop-detection.c (scopdet_basic_block_info): Call
4483 loop_exits_to_bb_p.
4484
4485 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4486
4487 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
4488 extra parameter for the region. Call scev_analyzable_p.
4489 (rewrite_reductions_out_of_ssa): Update call to
4490 rewrite_close_phi_out_of_ssa.
4491 (rewrite_cross_bb_phi_deps): Same.
4492 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
4493 parameter for the region. Call scev_analyzable_p.
4494 (rewrite_commutative_reductions_out_of_ssa): Update call to
4495 rewrite_commutative_reductions_out_of_ssa_loop.
4496
4497 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4498
4499 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
4500
4501 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4502
4503 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
4504 SSA scalar phi nodes that can be scev_analyzable_p.
4505
4506 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4507
4508 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
4509 handle SSA_NAME_IS_DEFAULT_DEF.
4510
4511 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4512
4513 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
4514
4515 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4516
4517 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
4518 case non close-phi nodes with one argument.
4519
4520 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4521
4522 * sese.h (scev_analyzable_p): Scevs could be expressions without
4523 chrecs and still be scev_analyzable_p.
4524
4525 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4526
4527 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4528
4529 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4530
4531 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
4532 * cfgloop.h (struct loop): Remove single_iv field.
4533 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
4534 (scop_canonicalize_loops): Removed.
4535 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
4536 over all the loop phi nodes in loop->header.
4537 (build_poly_scop): Remove use of scop_canonicalize_loops.
4538
4539 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4540
4541 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
4542 handle GIMPLE_CALL.
4543
4544 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4545
4546 * tree-chrec.c (chrec_apply): Should only apply to the specified
4547 variable. Also handle multivariate chains of recurrences that
4548 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
4549
4550 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4551
4552 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
4553 (debug_clast_name_indexes_1): Removed.
4554 (debug_clast_name_indexes): Removed.
4555 (pbb_to_depth_to_oldiv): Removed.
4556 (build_iv_mapping): Replace the use of rename_map with iv_map.
4557 (translate_clast_user): Remove uses of rename_map. Allocate and
4558 free iv_map.
4559 (translate_clast_for_loop): Remove uses of rename_map.
4560 (translate_clast_for): Same.
4561 (translate_clast_guard): Same.
4562 (translate_clast): Same.
4563 (gloog): Same.
4564 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
4565 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
4566 * sese.c (set_rename): Now static.
4567 (rename_variables_in_stmt): Removed.
4568 (rename_uses): New.
4569 (is_parameter): Removed.
4570 (is_iv): Removed.
4571 (expand_scalar_variables_call): Removed.
4572 (expand_scalar_variables_ssa_name): Removed.
4573 (expand_scalar_variables_expr): Removed.
4574 (expand_scalar_variables_stmt): Removed.
4575 (expand_scalar_variables): Removed.
4576 (rename_variables): Removed.
4577 (remove_condition): Removed.
4578 (get_true_edge_from_guard_bb): Removed.
4579 (get_false_edge_from_guard_bb): Removed.
4580 (struct igp): Removed.
4581 (default_before_guard): Removed.
4582 (convert_for_phi_arg): Removed.
4583 (add_guard_exit_phis): Removed.
4584 (insert_guard_phis): Removed.
4585 (graphite_copy_stmts_from_block): Now also uses iv_map and a
4586 region. Do not copy conditions. Do not copy induction variables.
4587 Call rename_uses.
4588 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
4589 the translated statement. Use the iv_map for the induction
4590 variable renaming.
4591 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4592 (set_rename): Removed declaration.
4593 (scev_analyzable_p): ...here.
4594 * tree-chrec.c (chrec_apply_map): New.
4595 * tree-chrec.h (chrec_apply_map): Declared.
4596
4597 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4598
4599 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
4600 insert_loop_close_phis.
4601 * sese.c (name_defined_in_loop_p): Removed.
4602 (expr_defined_in_loop_p): Removed.
4603 (alive_after_loop): Removed.
4604 (close_phi_not_yet_inserted_p): Removed.
4605 (struct alep): Removed.
4606 (add_loop_exit_phis): Removed.
4607 (insert_loop_close_phis): Removed.
4608
4609 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4610
4611 * graphite-cloog-util.c
4612 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
4613 * graphite-poly.c
4614 (psct_scattering_dim_for_loop_depth): Same.
4615
4616 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4617
4618 * graphite-cloog-util.h: Added cloog.h.
4619 * graphite-blocking.c: Removed cloog.h.
4620 * graphite-dependences.c: Same.
4621 * graphite-interchange.c: Same.
4622 * graphite-poly.c: Same.
4623 * graphite-ppl.c: Same.
4624 * graphite-scop-detection.c: Same.
4625 * graphite-sese-to-poly.c:
4626 Removed cloog.h.
4627 Removed graphite-clast-to-gimple.h.
4628 (check_poly_representation): Removed (unused).
4629 * graphite-sese-to-poly.h
4630 (check_poly_representation): Removed (unused).
4631
4632 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4633
4634 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
4635 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
4636 (graphite-cloog-util.o): New.
4637 (graphite-ppl.o): Added graphite-cloog-util.h.
4638 * graphite-clast-to-gimple.c:
4639 Added graphite-cloog-util.h to include statements.
4640 * graphite-cloog-util.c: New.
4641 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
4642 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4643 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4644 (new_C_Polyhedron_from_Cloog_Matrix): Same.
4645 (insert_constraint_into_matrix): Same.
4646 (ppl_Constrain_System_number_of_constraints): Same.
4647 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
4648 (oppose_constraint): Same.
4649 (cloog_matrix_to_ppl_constraint): Same.
4650 (new_Constraint_System_from_Cloog_Matrix): Same.
4651 * graphite-cloog-util.h: New.
4652 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
4653 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4654 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4655 (new_C_Polyhedron_from_Cloog_Matrix): Same.
4656 (insert_constraint_into_matrix): Same.
4657 * graphite-ppl.c:
4658 Added graphite-cloog-util.h to include statements.
4659 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
4660 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4661 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4662 (new_C_Polyhedron_from_Cloog_Matrix): Same.
4663 (insert_constraint_into_matrix): Same.
4664 (ppl_Constrain_System_number_of_constraints): Same.
4665 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
4666 (oppose_constraint): Same.
4667 (cloog_matrix_to_ppl_constraint): Same.
4668 (new_Constraint_System_from_Cloog_Matrix): Same.
4669 * graphite-ppl.h:
4670 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
4671 graphite-cloog-util.h.
4672 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
4673 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4674 (new_C_Polyhedron_from_Cloog_Matrix): Same.
4675 (insert_constraint_into_matrix): Same.
4676
4677 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4678
4679 * graphite-clast-to-gimple.c
4680 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
4681 (precision_for_interval): Same.
4682 (gcc_type_for_interval): Same.
4683 (compute_type_for_level): Same.
4684 * graphite-interchange.c
4685 (lst_interchange_profitable_p): Same.
4686 * graphite-poly.c
4687 (psct_scattering_dim_for_loop_depth): Same.
4688 * graphite-ppl.c
4689 (ppl_max_for_le_pointset): Same.
4690 (ppl_min_for_le_pointset): Same.
4691
4692 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4693
4694 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
4695 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
4696
4697 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4698
4699 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
4700 rewrite_close_phi_out_of_ssa.
4701
4702 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4703
4704 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
4705
4706 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4707
4708 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
4709 rename_map.
4710 * sese.c (debug_rename_map): Same.
4711 (get_rename): Same.
4712 (set_rename): Same.
4713 (rename_variables_in_stmt): Same.
4714 (expand_scalar_variables_call): Same.
4715 (expand_scalar_variables_ssa_name): Same.
4716 (expand_scalar_variables_expr): Same.
4717 (expand_scalar_variables_stmt): Same.
4718 (expand_scalar_variables): Same.
4719 (rename_variables): Same.
4720 (graphite_copy_stmts_from_block): Same.
4721 (copy_bb_and_scalar_dependences): Same.
4722
4723 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4724
4725 * graphite-clast-to-gimple.c (copy_renames): Removed.
4726 (translate_clast_for): Do not call copy_renames.
4727 (translate_clast_guard): Same.
4728
4729 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4730
4731 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
4732 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
4733 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
4734 before rewrite_cross_bb_scalar_deps.
4735
4736 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4737
4738 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
4739 Early return in when flag_associative_math is not set.
4740
4741 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4742
4743 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
4744 of SSA copies on edges except for loop->latch.
4745
4746 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4747
4748 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
4749 Split out of rewrite_reductions_out_of_ssa.
4750 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
4751 Declared.
4752 * graphite.c (graphite_transform_loops): Call it.
4753
4754 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4755
4756 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
4757
4758 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
4759
4760 * dbgcnt.def (graphite_scop): New counter.
4761 * graphite.c: Include dbgcnt.h.
4762 (graphite_transform_loops): Use new counter to limit transformations.
4763 * Makefile.in (graphite.o): Depend on DBGCNT_H.
4764
4765 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4766
4767 * passes.c (init_optimization_passes): Add pass_graphite.
4768 Schedule a pass_copy_prop before pass_graphite_transforms.
4769 * timevar.def (TV_GRAPHITE): Declared.
4770 * tree-pass.h (pass_graphite): Declared.
4771 * tree-ssa-loop.c (pass_graphite): New.
4772
4773 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4774
4775 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
4776 Remove calls to rename_nb_iterations and rename_sese_parameters.
4777 * graphite-clast-to-gimple.h (gloog): Update declaration.
4778 * graphite.c (graphite_transform_loops): Update call to gloog.
4779 * sese.c (rename_variables_in_expr): Removed.
4780 (rename_nb_iterations): Removed.
4781 (rename_sese_parameters): Removed.
4782 * sese.h (rename_nb_iterations): Removed.
4783 (rename_sese_parameters): Removed.
4784
4785 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4786
4787 * graphite-clast-to-gimple.c (gloog): Remove call to
4788 sese_adjust_liveout_phis.
4789 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
4790 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
4791 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
4792 rewrite_phi_out_of_ssa.
4793 * sese.c (get_vdef_before_sese): Removed.
4794 (sese_adjust_vphi): Removed.
4795 (sese_adjust_liveout_phis): Removed.
4796 * sese.h (sese_adjust_liveout_phis): Removed.
4797
4798 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4799
4800 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
4801 argument for the place after which to insert the out of SSA copy.
4802 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
4803 (rewrite_phi_out_of_ssa): Same.
4804 (rewrite_cross_bb_scalar_deps): Same.
4805 (insert_copyout): Removed.
4806 (insert_copyin): Removed.
4807 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
4808 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
4809 insert_copyin.
4810
4811 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4812
4813 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
4814 (rewrite_reductions_out_of_ssa): Same.
4815 (rewrite_commutative_reductions_out_of_ssa): Same.
4816 (build_poly_scop): Do not call these functions.
4817 * graphite-sese-to-poly.h (build_poly_scop): Declared.
4818 (rewrite_reductions_out_of_ssa): Declared.
4819 (rewrite_commutative_reductions_out_of_ssa): Declared.
4820 * graphite.c (graphite_transform_loops): Call on every scop
4821 rewrite_commutative_reductions_out_of_ssa before calling
4822 rewrite_reductions_out_of_ssa and build_scop_bbs.
4823
4824 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4825
4826 * graphite-dependences.c (dot_deps): Make system call to dotty run
4827 in background.
4828 (dot_deps_stmt): Same.
4829 * graphite-poly.c (dot_lst): Same.
4830
4831 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
4832
4833 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
4834 phi_arg_in_outermost_loop.
4835 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
4836 (remove_invariant_phi): Same.
4837
4838 2010-08-11 Anatoly Sokolov <aesok@post.ru>
4839
4840 * target.def (output_addr_const_extra): New hook.
4841 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
4842 * doc/tm.texi: Regenerate.
4843 * targhooks.c (default_asm_output_addr_const_extra): New function.
4844 * targhooks.h (default_asm_output_addr_const_extra): Declare.
4845 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
4846 target hook.
4847
4848 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4849 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
4850 * config/i386/i386.h (output_addr_const_extra): Rename to...
4851 (i386_asm_output_addr_const_extra): ...this. Make static.
4852 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4853
4854 2010-08-11 Richard Henderson <rth@redhat.com>
4855
4856 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
4857
4858 2010-08-11 Nick Clifton <nickc@redhat.com>
4859
4860 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
4861 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
4862 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4863 stormy16-lib2-cmpsi.c.
4864
4865 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
4866 -O2.
4867
4868 2010-08-11 Joseph Myers <joseph@codesourcery.com>
4869
4870 * opts.h (struct cl_option_handler_func): Make handler take
4871 cl_decoded_option structure as parameter, not individual elements.
4872 (struct cl_option_handlers): Make callbacks take cl_decoded_option
4873 structure as parameter, not individual elements.
4874 (handle_option): Take cl_decoded_option structure as parameter,
4875 not individual elements.
4876 (handle_generated_option): Declare.
4877 * opts-common.c (handle_option): Take cl_decoded_option structure
4878 as parameter, not individual elements. Update calls to callback
4879 and handler functions.
4880 (handle_generated_option): New.
4881 (read_cmdline_option): Update calls to callback functions and
4882 handle_option.
4883 * opts.c (common_handle_option, complain_wrong_lang,
4884 unknown_option_callback, post_handling_callback,
4885 lang_handle_option, target_handle_option): Take cl_decoded_option
4886 structure as parameter, not individual elements.
4887 (lang_handle_option, target_handle_option, common_handle_option):
4888 Assert option has at most one argument.
4889 (enable_warning_as_error): Call handle_generated_option instead of
4890 handle_option. Do not pass -Werror argument as argument of
4891 generated option.
4892
4893 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4894
4895 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
4896 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
4897 (SUBWORD_BOOL_CAS): Likewise.
4898 (SUBWORD_SYNC_OP): Likewise.
4899 (SUBWORD_TEST_AND_SET): Likewise.
4900 (FETCH_AND_OP_WORD): Parenthesise INF_OP
4901 (SUBWORD_SYNC_OP): Likewise.
4902 (OP_AND_FETCH_WORD): Likewise.
4903
4904 2010-08-10 Xinliang David Li <davidxl@google.com>
4905
4906 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
4907 compute max/min offset in address.
4908
4909 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
4910
4911 * ira-live.c: Include sbitmap.h.
4912 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
4913 Compress live ranges even more.
4914
4915 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
4916
4917 * coverage.c (ctr_labels): Delete.
4918
4919 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
4920
4921 PR bootstrap/45177
4922 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
4923 test here from arm_gen_load_multiple_1.
4924 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
4925 multiple_operation_profitable_p.
4926
4927 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
4928
4929 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
4930 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
4931
4932 2010-08-10 Richard Henderson <rth@redhat.com>
4933
4934 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
4935 after saving registers. Assert that SSE registers are only saved
4936 with a sufficiently aligned frame.
4937 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
4938 remove stack_realign_fp handling.
4939 (ix86_expand_prologue): Save int registers before stack_realign_fp,
4940 and do not mark the stack alignment as frame related.
4941 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
4942
4943 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
4944 saves when re-aligning the stack.
4945
4946 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
4947
4948 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
4949 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
4950 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
4951
4952 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
4953
4954 * dwarf2out.c (struct die_struct): Move die_tag to the end.
4955
4956 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
4957
4958 * config/arm/iterators.md: New file.
4959 * config/arm/arm.md: Include iterators.md.
4960 (QHSI): Move to new file.
4961 (LTUGEU, cnb, optab, ior_xor): Likewise.
4962 * config/arm/iwmmxt.md (VMMX): Move to new file.
4963 (VSHFT, MMX_char): Likewise.
4964 * config/arm/neon.md (VD): Move to new file.
4965 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
4966 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
4967 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
4968 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
4969 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
4970 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
4971 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
4972 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
4973 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
4974 (Is_d_reg, V_mode_nunits): Likewise.
4975 * config/arm/vec-common.md (VALL): Move to new file.
4976 (VALLW, VINT, VINTW): Likewise.
4977
4978 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
4979
4980 PR middle-end/45182
4981 * combine.c (make_compound_operation): Don't try to convert
4982 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
4983
4984 2010-08-10 Richard Guenther <rguenther@suse.de>
4985
4986 * tree.h (get_object_alignment): Adjust prototype.
4987 * builtins.c (get_object_alignment): Return unsigned int,
4988 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
4989 and TARGET_MEM_REF properly.
4990 (get_pointer_alignment): Adjust.
4991 * emit-rtl.c (get_mem_align_offset): Adjust comment.
4992 (set_mem_attributes_minus_bitpos): Adjust.
4993 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
4994
4995 2010-08-10 Richard Guenther <rguenther@suse.de>
4996
4997 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
4998 (copy_prop_visit_assignment): Simplify.
4999 (copy_prop_visit_stmt): Also visit assignments from
5000 constants.
5001 (copy_prop_visit_phi_node): Use operand_equal_p.
5002
5003 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5004
5005 * ipa-split.c (find_split_points): Free stack.
5006
5007 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5008
5009 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
5010 * tree.c (tree_node_kind): Delete corresponding entries.
5011
5012 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
5013
5014 * alias.c (may_alias_p): Remove unused ret.
5015
5016 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
5017
5018 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
5019 alias_sets_conflict_p.
5020 (walk_mems_1): Moved from alias.c.
5021 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
5022 in alias.c.
5023 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
5024 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
5025 * alias.c (walk_mems_2): Moved to ddg.c.
5026 (walk_mems_1): Ditto.
5027 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
5028 to ddg.c.
5029 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
5030 disambiguation.
5031 *(may_alias_p): New function to check whether two memory expression
5032 may alias or not. Currently used in buidling inter-iteration memory
5033 dependence.
5034 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
5035 (insn_alias_sets_conflict_p): Removed
5036 *rtl.h (may_alias_p): New function prototype.
5037
5038 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5039
5040 * tree.c (nreverse): Assert that we don't have a BLOCK.
5041
5042 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5043
5044 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
5045 * config/arm/arm.c (arm_get_pcs_model): Likewise.
5046 * config/avr/avr.c (init_cumulative_args): Likewise.
5047 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5048 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5049 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
5050 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
5051 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
5052 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5053 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
5054 * dwarf2out.c (gen_subprogram_die): Likewise.
5055 * function.c (allocate_struct_function): Likewise.
5056 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
5057 (deserves_ellipsis): Delete.
5058
5059 2010-08-09 Richard Guenther <rguenther@suse.de>
5060
5061 * tree-ssa-copy.c (cached_last_copy_of): Remove.
5062 (valueize_val): New function.
5063 (get_last_copy_of): Remove.
5064 (set_copy_of_val): Simplify.
5065 (dump_copy_of): Likewise.
5066 (copy_prop_visit_cond_stmt): Use valueize_val.
5067 (copy_prop_visit_phi_node): Properly handle unvisited names.
5068 Drop code managing copy-of chains.
5069 (init_copy_prop): Adjust.
5070 (fini_copy_prop): Likewise.
5071 (execute_copy_prop): Remove obsolete comment.
5072
5073 2010-08-09 Richard Guenther <rguenther@suse.de>
5074
5075 PR middle-end/44632
5076 * function.c (gimplify_parameters): Do not clear addressable
5077 bit of the original parameter.
5078
5079 2010-08-09 Richard Guenther <rguenther@suse.de>
5080
5081 PR middle-end/45212
5082 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
5083 alignment from MEM_REF offset only if we took it from the
5084 base object.
5085
5086 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
5087
5088 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
5089
5090 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5091
5092 * c-tree.h (build_arg_info): Declare.
5093 * c-decl.c (build_arg_info): Define.
5094 (get_parm_info): Call it. Delete initialization code.
5095 * c-parser.c (c_parser_parms_declarator): Likewise.
5096 (c_parser_parms_list_declaractor): Likewise.
5097
5098 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5099
5100 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
5101 (struct c_arg_info): Change type of tags field.
5102 * c-decl.c (grokdeclarator): Update for changed type of tags field.
5103 (get_parm_info): Likewise.
5104 (store_parm_decls_newstyle): Likewise.
5105
5106 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5107
5108 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
5109 (branch_island_list): Delete.
5110 (branch_islands): Declare.
5111 (add_compiler_branch_island): Adjust for branch_islands instead of
5112 branch_island_list.
5113 (macho_branch_islands): Likewise.
5114 (no_previous_def): Likewise.
5115 (get_prev_label): Likewise.
5116
5117 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5118
5119 PR boehm-gc/34544
5120 * gthr-posix.h (__gthread_start): Delete.
5121 (__gthread_active_init): Use pthread_default_stacksize_np instead of
5122 pthread_create to determine if hpux pthreads are active.
5123 * gthr-posix95.h (__gthread_start): Delete.
5124 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
5125
5126 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
5127
5128 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
5129 _WIN64 not expanded.
5130
5131 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
5132 H.J. Lu <hongjiu.lu@intel.com>
5133
5134 PR target/45213
5135 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
5136 to output 32bit SFmode immediate as 8 byte sign extended value.
5137
5138 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
5139
5140 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
5141 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
5142 (SUBWORD_BOOL_CAS): Likewise.
5143 (SUBWORD_SYNC_OP): Likewise.
5144 (SUBWORD_TEST_AND_SET): Likewise.
5145 (FETCH_AND_OP_WORD): Parenthesise INF_OP
5146 (SUBWORD_SYNC_OP): Likewise.
5147 (OP_AND_FETCH_WORD): Likewise.
5148
5149 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5150
5151 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
5152 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
5153 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
5154 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
5155 generic part.
5156 (cortex_a9_sched_adjust_cost): New function.
5157 (xscale_sched_adjust_cost): New function.
5158 * config/arm/arm-protos.h (struct tune_params): New field
5159 sched_adjust_cost.
5160 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
5161
5162 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
5163
5164 PR target/44942
5165 * config/sparc/sparc.c (function_arg_advance): Always take into account
5166 the padding, if any.
5167
5168 2010-08-06 Richard Guenther <rguenther@suse.de>
5169
5170 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
5171 (dump_lattice_value): Dump it.
5172 (get_default_value): Adjust.
5173 (get_constant_value): Likewise.
5174 (set_value_varying): Likewise.
5175 (set_lattice_value): Make sure to not go up the lattice
5176 with bitwise constant values.
5177 (get_value_for_expr): Handle ADDR_EXPRs.
5178 (value_to_double_int): New function.
5179 (get_value_from_alignment): Likewise.
5180 (do_dbg_cnt): Adjust.
5181 (ccp_lattice_meet): Handle partially constant values.
5182 (bit_value_unop_1): New function.
5183 (bit_value_binop_1): Likewise.
5184 (bit_value_unop): Likewise.
5185 (bit_value_binop): Likewise.
5186 (evaluate_stmt): Track partially constant values if
5187 flag_tree_bit_ccp is set.
5188 (ccp_fold_stmt): Dump if we folded a predicate.
5189 (ccp_visit_stmt): Adjust.
5190 * common.opt (ftree-bit-ccp): New flag.
5191 * doc/invoke.texi (ftree-bit-ccp): Document.
5192 * opts.c (decode_options): Enable bit-CCP at -O1.
5193
5194 2010-08-06 Alan Modra <amodra@gmail.com>
5195
5196 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
5197 and -mrelocatable-lib description.
5198
5199 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
5200
5201 From Martin Thuresson <martint@google.com>
5202 * postreload.c (reload_cse_simplify_operands): Use
5203 SET_REGNO_RAW instead of SET_REGNO.
5204 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
5205 SET_REGNO.
5206 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
5207 instead of SET_REGNO.
5208 * rtl.h (SET_REGNO_RAW): New macro.
5209
5210 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
5211
5212 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
5213 computations. Fix formatting issues.
5214 (num_sign_bit_copies1): Likewise.
5215 (canonicalize_condition): Likewise.
5216
5217 2010-08-05 Richard Henderson <rth@redhat.com>
5218
5219 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
5220 (floor_log2): Use clz_hwi.
5221 (exact_log2): Use ctz_hwi.
5222 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
5223 * builtins.c (fold_builtin_bitop): Use them.
5224 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5225 * combine.c (get_pos_from_mask): Use ctz_hwi.
5226 * double-int.c (double_int_ctz): Likewise.
5227 * explow.c (force_reg): Likewise.
5228 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
5229
5230 2010-08-05 Richard Henderson <rth@redhat.com>
5231
5232 PR target/45189
5233 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
5234 the alignment constant is properly sign-extended.
5235
5236 2010-08-05 Richard Guenther <rguenther@suse.de>
5237
5238 * expr.c (store_expr): Use emit_block_move only if both
5239 source and target are MEMs. Use store_bit_field if only
5240 the target is a MEM.
5241
5242 2010-08-05 Richard Henderson <rth@redhat.com>
5243
5244 PR debug/45188
5245 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
5246 (INCOMING_RETURN_ADDR_RTX): Likewise.
5247 (dwarf2out_do_frame): Remove conditional compilation.
5248 (dwarf2out_frame_init): Likewise.
5249
5250 2010-08-05 Nicolas Setton <setton@adacore.com>
5251
5252 * gcov.c (flag_display_progress): New static variable.
5253 (main): Display progress info on standard output if requested.
5254 (options): Add -d/--display-progress.
5255 (print_usage): Print them.
5256 (process_args): Handle them.
5257 * doc/gcov.texi: Document them.
5258
5259 2010-08-05 Martin Jambor <mjambor@suse.cz>
5260
5261 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
5262 (ipcp_insert_stage): Redirect only edges not flagged with
5263 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
5264 discovered constants.
5265
5266 2010-08-05 Martin Jambor <mjambor@suse.cz>
5267
5268 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
5269 (struct ipa_param_descriptor): New fields types and
5270 cannot_devirtualize.
5271 (ipa_param_cannot_devirtualize_p): New function.
5272 (ipa_param_types_vec_empty): Likewise.
5273 (ipa_make_edge_direct_to_target): Declare.
5274 * ipa-cp.c: Fixed first stage driver name in initial comment,
5275 described devirtualization there too.
5276 (ipcp_analyze_node): Call ipa_analyze_params_uses.
5277 (ipcp_print_all_lattices): Print devirtualization info.
5278 (ipa_set_param_cannot_devirtualize): New function.
5279 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
5280 lattice to BOTTOM.
5281 (ipcp_init_stage): Merged into...
5282 (ipcp_generate_summary): ...its caller.
5283 (ipcp_change_tops_to_bottom): Also process type lists.
5284 (ipcp_add_param_type): New function.
5285 (ipcp_copy_types): Likewise.
5286 (ipcp_propagate_types): Likewise.
5287 (ipcp_propagate_stage): Also propagate types.
5288 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
5289 Also return true if propagated types require it.
5290 (ipcp_update_callgraph): Dump redirection info.
5291 (ipcp_process_devirtualization_opportunities): New function.
5292 (ipcp_const_param_count): Include known type information.
5293 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
5294 on new node. Fixed formatting.
5295 * ipa-prop.c (make_edge_direct_to_target): Renamed to
5296 ipa_make_edge_direct_to_target and changed all callers. Made
5297 externally visible.
5298 (ipa_node_duplication_hook): Duplicate types vector.
5299 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
5300 redirect outgoing calls for which we can't get a decl from the
5301 statement. Check that we can get a decl from the call statement.
5302 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
5303 ipa_analyze_params_uses only when ipa-cp is disabled.
5304 * tree-inline.c (get_indirect_callee_fndecl): Removed.
5305 (expand_call_inline): Do not call get_indirect_callee_fndecl.
5306 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
5307 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
5308
5309 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
5310
5311 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
5312 temporary. Emit move from temporary to accum, so REG_EQUAL note will
5313 be attached to this insn in correct mode.
5314
5315 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
5316
5317 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
5318 using REGNO of base_reg directly.
5319
5320 2010-08-05 Jie Zhang <jie@codesourcery.com>
5321
5322 PR tree-optimization/45144
5323 * tree-sra.c (type_consists_of_records_p): Return false
5324 if the record contains bit-field.
5325
5326 2010-08-04 Richard Henderson <rth@redhat.com>
5327
5328 * config/i386/i386.c (struct ix86_frame): Remove padding and
5329 to_allocate members.
5330 (ix86_compute_frame_layout): Don't store them.
5331 (ix86_can_use_return_insn_p): Use a more direct and more obviously
5332 correct condition for the position of the stack pointer.
5333 (ix86_expand_prologue): Compute remaining stack allocation based
5334 on the ultimate stack pointer offset.
5335 (ix86_expand_epilogue): Use more obvious expressions testing for
5336 the stack pointer already pointing to the saved registers.
5337
5338 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
5339 duplication deconstructing the frame pointer. Simplify
5340 deallocation of the local stack frame.
5341
5342 * reg-notes.def (CFA_EXPRESSION): New.
5343 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
5344 (dwarf2out_frame_debug_cfa_expression): New.
5345 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
5346
5347 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
5348 * config/i386/i386.c (ix86_expand_prologue): Set it.
5349 (ix86_expand_epilogue): Clear it.
5350 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
5351 context, add REG_CFA_EXPRESSION notes.
5352
5353 * config/i386/i386.h (struct machine_frame_state): Rename from
5354 machine_cfa_state. Add members tracking SP and FP regardless
5355 of the current CFA register.
5356 (ix86_cfa_state): Remove.
5357 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
5358 and sse_reg_save_offset members.
5359 (ix86_compute_frame_layout): Set them.
5360 (gen_push): Increment sp_offset too.
5361 (choose_baseaddr_len, choose_baseaddr): New.
5362 (ix86_emit_save_reg_using_mov): New.
5363 (ix86_emit_save_regs_using_mov): Use it.
5364 (ix86_emit_save_sse_regs_using_mov): Likewise.
5365 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
5366 compare vs the saved red_zone_offset.
5367 (pro_epilogue_adjust_stack): Adjust sp_offset.
5368 (ix86_adjust_stack_and_probe): Likewise.
5369 (ix86_expand_prologue): Set up, use, and validate the new
5370 frame_state_info members. Use gen_frame_mem.
5371 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
5372 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
5373 new frame_state_info members.
5374 (ix86_emit_leave): Likewise.
5375 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
5376 out-of-range stack pointer offsets here.
5377 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5378 (ix86_expand_epilogue): Use and validate the new frame_state_info
5379 members. Break up and simplify the logic selecting the
5380 restore_regs_via_mov code path. Ensure that there will be no
5381 out-of-range stack pointer offsets.
5382
5383 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
5384
5385 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
5386 argument name to reflect the expected tree; fix indentation.
5387 (ix86_asm_output_function_label): Output the entire 32-bit
5388 ms_hook here as bytes ...
5389 (ix86_expand_prologue): ... not here as insns. Attach the
5390 unwind info for the ms_hook to a blockage insn.
5391 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
5392 (ix86_ms_bitfield_layout_p): Fix indentation.
5393 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
5394
5395 * config/i386/i386.c (ix86_using_red_zone): New.
5396 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
5397 ix86_expand_prologue, ix86_force_to_memory): Use it.
5398
5399 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
5400 saving the int registers.
5401
5402 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
5403 and DWARF2_UNWIND_INFO conditional compilation.
5404
5405 2010-08-04 Richard Henderson <rth@redhat.com>
5406
5407 PR debug/45171
5408 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
5409 an is_naming_typedef_decl.
5410
5411 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
5412
5413 PR rtl-optimization/45162
5414 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
5415 * dce.c (word_dce_process_block): Likewise.
5416
5417 2010-08-04 Steve Ellcey <sje@cup.hp.com>
5418
5419 PR target/44583
5420 * config/ia64/constraints.md (Z): New.
5421 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
5422 (xfreg_or_signed_fp01_operand): New.
5423 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
5424 with fr_reg_or_signed_fp01_operand and constraint G with Z.
5425 (subsf3): Ditto.
5426 (*maddsf4): Ditto.
5427 (*msubsf4): Ditto.
5428 (adddf3): Ditto.
5429 (adddf3_trunc): Ditto.
5430 (subdf3): Ditto.
5431 (*subdf3_trunc): Ditto.
5432 (*madddf4): Ditto.
5433 (*madddf4_trunc): Ditto.
5434 (*msubdf4): Ditto.
5435 (*msubdf4_trunc): Ditto.
5436 (addxf3): Replace xfreg_or_fp01_operand with
5437 xfreg_or_signed_fp01_operand and constraint G with Z.
5438 (*addxf3_truncsf): Ditto.
5439 (*addxf3_truncdf): Ditto.
5440 (subxf3): Ditto.
5441 (*subxf3_truncsf): Ditto.
5442 (*subxf3_truncdf): Ditto.
5443 (*maddxf4): Ditto.
5444 (*maddxf4_truncsf): Ditto.
5445 (*maddxf4_truncdf): Ditto.
5446 (*msubxf4): Ditto.
5447 (*msubxf4_truncsf): Ditto.
5448 (*msubxf4_truncdf): Ditto.
5449
5450 2010-08-04 Richard Guenther <rguenther@suse.de>
5451
5452 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
5453 if either alias-set is zero.
5454
5455 2010-08-04 Richard Guenther <rguenther@suse.de>
5456
5457 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
5458 * tree-ssa-ccp.c: ... here.
5459 * tree-ssa-copy.c: ... and here.
5460 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
5461 value_range_t): Move ...
5462 * tree-vrp.c: ... here.
5463 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
5464 (substitute_and_fold): Adjust prototype.
5465 * tree-ssa-propagate.c (replace_uses_in): Adjust.
5466 (replace_phi_args_in): Likewise.
5467 (substitute_and_fold): Take callback to query lattice instead
5468 of pointer to lattice. Replace SSA name defs with lattice
5469 values first.
5470 * tree-ssa-ccp.c (ccp_finalize): Adjust.
5471 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
5472 (get_value): New function.
5473 (fini_copy_prop): Adjust.
5474 * tree-vrp.c (vrp_finalize): Adjust.
5475
5476 2010-08-04 Richard Guenther <rguenther@suse.de>
5477
5478 PR middle-end/45176
5479 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
5480 points-to set for original MEM_REF.
5481
5482 2010-08-04 Richard Guenther <rguenther@suse.de>
5483
5484 * tree-ssa-ccp.c (get_constant_value): New function.
5485 (get_rhs_assign_op_for_ccp): Remove.
5486 (valueize_op): New function.
5487 (ccp_fold): Use get_constant_value and valueize_op.
5488 (fold_const_aggregate_ref): Likewise.
5489 (ccp_fold_stmt): Likewise.
5490 (visit_assignment): Simplify.
5491
5492 2010-08-04 Richard Guenther <rguenther@suse.de>
5493
5494 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
5495 * double-int.h (double_int_ctz): Declare.
5496 * double-int.c (double_int_ctz): New function.
5497
5498 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
5499
5500 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
5501 Define.
5502 picochip_expand_movmemhi : Expand movmem pattern.
5503 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
5504 Declare.
5505 * config/picochip/picochip.md (movmemhi) : New pattern.
5506
5507 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
5508
5509 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
5510
5511 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
5512
5513 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
5514 NEG as operand of a MULT by merging it with the other operand.
5515 * combine.c (make_compound_operation): Use trunc_int_for_mode when
5516 generating a MULT with constant. Canonicalize PLUS and MINUS involving
5517 MULT.
5518 * config/arm/constraints.md (M): Examine only 32 bits of a
5519 HOST_WIDE_INT.
5520 * config/arm/predicates.md (power_of_two_operand): Likewise.
5521
5522 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5523
5524 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
5525 non-NOTE insns.
5526
5527 2010-08-03 Jan Hubicka <jh@suse.cz>
5528
5529 * ipa-split.c (struct split_point): Add split_part_set_retval.
5530 (find_retval): Forward declare.
5531 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
5532 (consider_split): Compute current->split_part_set_retval.
5533 (visit_bb): Do not look into return value.
5534 (split_function): Handle !split_part_set_retval
5535
5536 2010-08-03 Martin Jambor <mjambor@suse.cz>
5537
5538 * tree-sra.c (completely_scalarize_record): New parameter REF, create
5539 its own access->expr intead of using build_ref_for_offset.
5540
5541 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5542
5543 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
5544 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
5545 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
5546 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
5547 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
5548 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
5549 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
5550 DEFAULT_SWITCH_TAKES_ARG.
5551 * config/rx/rx.opt (-patch=): Remove option.
5552 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
5553 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
5554 * doc/invoke.texi (RX Options): Remove -patch=.
5555 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
5556 (option_map): Remove --profile-blocks, --quiet and --silent.
5557
5558 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
5559
5560 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
5561 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
5562 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
5563 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
5564 Update calls to ix86_expand_compare and ix86_expand_branch.
5565 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
5566 ix86_expand_compare.
5567 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
5568 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
5569 Make static.
5570 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
5571 and ix86_compare_op1. Update calls to ix86_expand_compare.
5572 (ix86_expand_int_movcc): Ditto.
5573 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
5574 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
5575 (ix86_expand_setcc): Ditto.
5576 (ix86_expand_compare): Remove prototype.
5577 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
5578 ix86_compare_op0 and ix86_compare_op1. Update calls
5579 to ix86_expand_branch to directly pass operands[1] and operands[2].
5580 (cbranchxf4): Ditto.
5581 (cbranch<MODEF:mode>4): Ditto.
5582 (cbranchcc4): Ditto.
5583 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
5584 Update calls to ix86_expand_setcc to directly pass operands[2] and
5585 operands[3].
5586 (cstorexf4): Ditto.
5587 (cstore<MODEF:mode>4): Ditto.
5588 (cstorecc4): Ditto.
5589
5590 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
5591
5592 PR target/45063
5593 * caller-save.c (save_call_clobbered_regs): Remove regs from
5594 hard_regs_saved when they are set.
5595
5596 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
5597
5598 PR target/41089
5599 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
5600 as volatile.
5601
5602 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
5603
5604 * common.opt (ftree-loop-distribute-patterns): New.
5605 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
5606 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
5607 at -O3.
5608 * tree-data-ref.c (stores_zero_from_loop): New.
5609 * tree-data-ref.h (stores_zero_from_loop): Declared.
5610 * tree-loop-distribution.c (tree_loop_distribution): Call
5611 stores_zero_from_loop.
5612 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
5613
5614 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
5615
5616 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
5617 into account.
5618
5619 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
5620 * config/arm/arm.c (thumb1_code): New variable.
5621 (arm_override_options): Set it.
5622 (thumb1_final_prescan_insn): Keep track of condition code status.
5623 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
5624 jumps that depend on them.
5625 * config/arm/arm.h (thumb1_code): Declare variable.
5626 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
5627 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
5628 thumb1_cc_mode.
5629 (CC_STATUS_INIT): New macro.
5630 * config/arm/constraints.md (Pd): New constraint.
5631 * config/arm/predicates.md (noov_comparison_operator): New predicate.
5632 * config/arm/arm.md (is_thumb1): New define_attr.
5633 (conds): Set default to "clob" when generating Thumb1 code.
5634 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
5635 code are set. Use two-operand assembly syntax.
5636 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
5637 pattern.
5638 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
5639 codes are set. Use two-operand assembly syntax.
5640 (zero_extendhisi splitter): Remove constraints.
5641 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
5642 thumb1_movsf_insn): Set conds attribute as appropriate.
5643 (cbranchsi4_insn): Use condition code status from struct
5644 machine_function to determine whether the comparison can be eliminated.
5645 Discourage the alternative using high registers.
5646 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
5647 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
5648 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
5649 subsi3_cbranch): Delete.
5650 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
5651 one subtract and one cbranch insn.
5652
5653 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
5654 thumb2_movdf_soft_insn): Delete patterns.
5655 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
5656 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
5657 (pool_range, neg_pool_range): Use them to define defaults.
5658 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
5659 and allow for TARGET_32BIT.
5660
5661 PR target/40457
5662 * config/arm/arm.h (arm_regs_in_sequence): Declare.
5663 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
5664 load_multiple_sequence, store_multiple_sequence): Delete
5665 declarations.
5666 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
5667 declarations.
5668 * config/arm/ldmstm.md: New file.
5669 * config/arm/arm.c (arm_regs_in_sequence): New array.
5670 (load_multiple_sequence): Now static. New args SAVED_ORDER,
5671 CHECK_REGS. All callers changed.
5672 If SAVED_ORDER is nonnull, copy the computed order into it.
5673 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
5674 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
5675 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
5676 If SAVED_ORDER is nonnull, copy the computed order into it.
5677 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
5678 like REGS. Handle Thumb mode.
5679 (arm_gen_load_multiple_1): New function, broken out of
5680 arm_gen_load_multiple.
5681 (arm_gen_store_multiple_1): New function, broken out of
5682 arm_gen_store_multiple.
5683 (arm_gen_multiple_op): New function, with code from
5684 arm_gen_load_multiple and arm_gen_store_multiple moved here.
5685 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
5686 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
5687 changed.
5688 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
5689 * config/arm/predicates.md (commutative_binary_operator): New.
5690 (load_multiple_operation, store_multiple_operation): Handle more
5691 variants of these patterns with different starting offsets. Handle
5692 Thumb-1.
5693 * config/arm/arm.md: Include "ldmstm.md".
5694 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
5695 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
5696 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
5697 peepholes): Delete.
5698 * config/arm/ldmstm.md: New file.
5699 * config/arm/arm-ldmstm.ml: New file.
5700
5701 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
5702 if statement which adds extra costs to frame-related expressions.
5703
5704 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5705
5706 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
5707
5708 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
5709
5710 PR target/45142
5711 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
5712 alternative 2.
5713 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
5714 split V4SI operands.
5715
5716 2010-08-01 Anatoly Sokolov <aesok@post.ru>
5717
5718 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5719 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
5720 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
5721 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
5722
5723 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
5724
5725 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
5726 LOCAL_INCLUDE_DIR.
5727
5728 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
5729
5730 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
5731 used in the call to optab_for_tree_code. Fix the second
5732 is_widening_mult_p call. Check that both unwidened operands
5733 have the same sign.
5734
5735 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
5736
5737 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
5738
5739 2010-07-31 Anatoly Sokolov <aesok@post.ru>
5740
5741 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5742
5743 2010-07-30 DJ Delorie <dj@redhat.com>
5744
5745 * config/rx/predicates.md (rx_constshift_operand): New.
5746 * config/rx/rx.md (zs_cond): New.
5747 (cbranchsi4): Remove mode.
5748 (*cbranchsi4_<code>): Likewise.
5749 (*tstbranchsi4_<code>): New.
5750 (*tstbranchsi4r_<code>): New.
5751 (*tstbranchsi4m_eq): New.
5752 (*tstbranchsi4m_ne): New.
5753 (cbranchsf4): Remove mode.
5754 (*cbranchsf4_<code>): Likewise.
5755
5756 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
5757
5758 * rtlanal.c (simplify_subreg_regno): Don't treat
5759 HARD_FRAME_POINTER_REGNUM specially.
5760
5761 2010-07-30 Joseph Myers <joseph@codesourcery.com>
5762
5763 * common.opt (-G): Don't define option here.
5764 * config/g.opt: New.
5765 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
5766 rs6000/powerpc and score targets.
5767 * opts.c (common_handle_option): Don't handle -G here.
5768 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
5769 * config/frv/frv.c (frv_handle_option): Handle -G.
5770 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
5771 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
5772 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
5773 * config/mips/mips.c (mips_handle_option): Handle -G.
5774 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
5775 * config/score/score.c (score_handle_option): Handle -G.
5776
5777 2010-07-30 Anatoly Sokolov <aesok@post.ru>
5778
5779 * config/mmix/mmix.c: Include basic-block.h.
5780
5781 2010-07-30 Jakub Jelinek <jakub@redhat.com>
5782
5783 PR debug/45055
5784 PR rtl-optimization/45137
5785 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
5786 prototypes.
5787 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
5788 New functions.
5789 * combine.c (next_nonnote_nondebug_insn): Removed.
5790 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
5791 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
5792 * sched-deps.c (sched_analyze_insn): Likewise.
5793 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
5794 * rtlanal.c (canonicalize_condition): Likewise.
5795 * postreload.c (reload_combine_recognize_pattern): Likewise.
5796 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
5797
5798 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
5799
5800 * config/i386/i386.md (int_cond): Remove code iterator.
5801 (fp_cond): Ditto.
5802 (cbranch<mode>4): Use ordered_comparison_operator predicate
5803 for operator0.
5804 (cstore<mode>4): Ditto for operator1.
5805 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
5806 (add<mode>cc): ditto.
5807
5808 2010-07-30 Richard Guenther <rguenther@suse.de>
5809
5810 PR middle-end/45141
5811 * expr.c (expand_expr_real_1): Check for not handled base address.
5812
5813 2010-07-30 Richard Guenther <rguenther@suse.de>
5814
5815 * ipa-prop.c (ipa_modify_formal_parameters): Use
5816 build_distinct_type_copy.
5817
5818 2010-07-30 Anthony Green <green@moxielogic.com>
5819
5820 * config/moxie/rtems.h: New file.
5821 * config.gcc: Add moxie-rtems support.
5822
5823 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
5824
5825 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
5826 df flags as in run_fast_df_dce.
5827
5828 2010-07-29 Jakub Jelinek <jakub@redhat.com>
5829
5830 Revert:
5831 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
5832
5833 * rtl.def (NOTE): Swap operands 4 and 5.
5834 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
5835 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
5836 Adjust accordingly.
5837 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
5838
5839 2010-07-29 Jakub Jelinek <jakub@redhat.com>
5840
5841 PR debug/45110
5842 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
5843 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
5844 (gen_subprogram_die): Likewise. Remove it when removing declaration's
5845 formal parameters.
5846 (gen_decl_die): Change return type to dw_die_ref, return what
5847 gen_formal_parameter_die returned.
5848
5849 2010-07-29 Martin Jambor <mjambor@suse.cz>
5850
5851 * dbgcnt.def (eipa_sra): New counter.
5852 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
5853
5854 2010-07-29 Xinliang David Li <davidxl@google.com>
5855
5856 PR bootstrap/45119
5857 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
5858 in revision 162652.
5859
5860 2010-07-29 Richard Guenther <rguenther@suse.de>
5861
5862 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
5863 (TV_TREE_STORE_CCP): Likewise.
5864 (TV_TREE_REDPHI): Likewise.
5865
5866 2010-07-29 Richard Guenther <rguenther@suse.de>
5867
5868 * double-int.h (double_int_and_not): New function.
5869 * combine.c (try_combine): Use it.
5870 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
5871
5872 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
5873
5874 PR rtl-optimization/42575
5875 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
5876 Argument AU removed. All callers changed. Ignore artificial refs.
5877 Use return value of df_word_lr_simulate_defs to decide whether an insn
5878 is necessary.
5879 (fast_dce): Rename arg to WORD_LEVEL.
5880 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
5881 static.
5882 (pass_fast_rtl_byte_dce): Delete.
5883 * dce.h (run_word_dce): Declare.
5884 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
5885 All callers changed. Simplify code to only deal with two-word regs.
5886 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
5887 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
5888 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
5889 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
5890 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
5891 (df_word_lr_mark_ref): Declare.
5892 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
5893 df_word_lr_simulate_uses): Declare or rename from byte variants.
5894 (df_byte_lr_simulate_artificial_refs_at_top,
5895 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
5896 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
5897 declarations.
5898 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
5899 (enum df_mm): Delete.
5900 * df-byte-scan.c: Delete file.
5901 * df-problems.c (df_word_lr_problem_data): Renamed from
5902 df_byte_lr_problem_data, all members deleted except for
5903 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
5904 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
5905 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
5906 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
5907 df_byte_lr_confluence_0): Delete functions.
5908 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
5909 callers changed.
5910 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
5911 Don't initialize members that were deleted, don't try to discover data
5912 about registers. Ignore hard regs.
5913 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
5914 (df_word_lr_mark_ref): New function.
5915 (df_word_lr_bb_local_compute): Renamed from
5916 df_byte_bb_lr_local_compute; all callers changed. Use
5917 df_word_lr_mark_ref. Assert that artificial refs don't include
5918 pseudos. Ignore hard registers.
5919 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
5920 Assert that exit block uses don't contain pseudos.
5921 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
5922 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
5923 callers changed. Ignore hard regs.
5924 (df_word_lr_transfer_function): Renamed from
5925 df_byte_lr_transfer_function; all callers changed.
5926 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
5927 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
5928 changed.
5929 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
5930 callers changed.
5931 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
5932 confluence operator 0 set to NULL.
5933 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
5934 callers changed.
5935 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
5936 Return bool, true if bitmap changed or insn otherwise necessary.
5937 All callers changed. Simplify using df_word_lr_mark_ref.
5938 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
5939 all callers changed. Simplify using df_word_lr_mark_ref.
5940 * lower-subreg.c: Include "dce.h"
5941 (decompose_multiword_subregs): Call run_word_dce if df available.
5942 * Makefile.in (lower-subreg.o): Adjust dependencies.
5943 (df-byte-scan.o): Delete.
5944 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
5945
5946 2010-07-29 Richard Guenther <rguenther@suse.de>
5947
5948 * tree.c (build_vector): Assert that the vector constant
5949 has enough elements.
5950 (build_vector_from_ctor): Pad with trailing zeros.
5951
5952 2010-07-29 Richard Guenther <rguenther@suse.de>
5953
5954 PR tree-optimization/45120
5955 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5956 Handle offset in DEREFs properly.
5957 (get_constraint_for_1): Handle MEM_REF offset properly.
5958
5959 2010-07-29 Richard Guenther <rguenther@suse.de>
5960
5961 PR middle-end/45034
5962 * convert.c (convert_to_integer): Always use an unsigned
5963 type for narrowed negate and bitwise not.
5964
5965 2010-07-29 Ira Rosen <irar@il.ibm.com>
5966
5967 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
5968 to outer loop when creating reduction epilogue for double reduction,
5969 and switch back to the inner loop when updating the phi nodes.
5970 Update uses of outer loop exit phi nodes in double reduction (instead
5971 of uses of reduction).
5972
5973 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
5974
5975 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
5976 popcount on power7 and parity on power6 systems.
5977 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
5978 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
5979 instructions.
5980
5981 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
5982 (UNSPEC_PARITY): Ditto.
5983 (SFDF): New iterator for SF/DF.
5984 (rreg2): New mode attribute for floating register constraint.
5985 (TARGET_FLOAT): New mode attribute for whether single/double float
5986 is supported.
5987 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
5988 pattern.
5989 (parity<mode>2_cmpb): New insn for parity on power6 and newer
5990 machines.
5991 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
5992 pattern. Add support for fcpsgn instruction added in power6.
5993 (copysignsf3): Delete.
5994 (copysigndf3): Delete.
5995 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
5996 instead of if_then_else in RTL to avoid problems with -0.
5997
5998 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
5999 of if_then_else to mirror scalar code.
6000 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
6001 rs6000.md.
6002
6003 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
6004 instead of if_then_else.
6005
6006 2010-07-28 Xinliang David Li <davidxl@google.com>
6007
6008 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
6009 (dump_cand): Dump var_before/after.
6010 (htab_inv_expr_eq): New function.
6011 (htab_inv_expr_hash): New function.
6012 (tree_ssa_iv_optimize_init): Support pseudo invariants.
6013 (add_candidate_1): consider base type precision.
6014 (set_use_iv_cost): New parameter.
6015 (adjust_setup_cost): Use profile information.
6016 (get_address_cost): Do not hard code width in computing address
6017 offset limits.
6018 (compare_aff_trees): New function.
6019 (get_loop_invariant_expr_id): New function.
6020 (get_computation_cost_at): New parameter and use profile information.
6021 (get_computation_cost): New parameter.
6022 (determine_use_iv_cost_generic): Pass new parameter.
6023 (determine_use_iv_cost_address): Ditto.
6024 (determine_use_iv_cost_condition): Ditto.
6025 (autoinc_possible_for_pair): Ditto.
6026 (determine_use_iv_costs): More dumps.
6027 (iv_ca_get_num_inv_exprs): New function.
6028 (iv_ca_recount_cost): Consider loop invariants in register pressure
6029 cost.
6030 (iv_ca_add_use): New parameter.
6031 (iv_ca_dump): Better dumping.
6032 (iv_ca_extend): New parameter.
6033 (try_add_cand_for): Attempt to get better partial solution.
6034 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
6035 (create_new-ivs): More dumps.
6036 (rewrite_use_compare): Ditto.
6037 (free_loop_data): More cleanup.
6038 (treee_ssa_iv_optimize_finalize): Ditto.
6039
6040 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
6041
6042 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
6043 * config/i386/i386.c (ix86_profile_before_prologue): New.
6044 (override_options): Add special handling for -mfentry.
6045 (ix86_function_regparm): Likewise.
6046 (ix86_function_sseregparm): Likewise.
6047 (ix86_frame_pointer_required): Likewise.
6048 (ix86_expand_prologue): Check for ms_hook_prologue.
6049 (x86_function_profiler): Adjust mcount output.
6050 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
6051 * config/i386/i386.opt (mfentry): New.
6052 * doc/invoke.texi (mfentry): Add documentation.
6053 * doc/tm.texi: Regenerated..
6054 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
6055 * final.c (final_start_function): Replace macro
6056 PROFILE_BEFORE_PROLOGUE by target hook.
6057 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6058 * target.def (profile_before_prologue): New hook.
6059 * targhooks.c (default_profile_before_prologue): New.
6060 * targhooks.h (default_profile_before_prologue): New.
6061
6062 2010-07-28 Jakub Jelinek <jakub@redhat.com>
6063
6064 PR debug/45105
6065 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
6066
6067 PR debug/45103
6068 * dwarf2out.c (dwarf2out_var_location): Always consider
6069 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
6070
6071 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
6072
6073 PR rtl-optimization/45107
6074 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
6075
6076 2010-07-28 Richard Guenther <rguenther@suse.de>
6077
6078 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
6079 (set_lattice_value): Do not query an old default value.
6080 (get_value_for_expr): New function. Properly canonicalize
6081 float values.
6082 (ccp_visit_phi_node): Use it.
6083
6084 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
6085
6086 * config/arm/arm.c (arm_pcs_default): Remove static.
6087 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
6088 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
6089 (arm_pcs_default): Declare.
6090
6091 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
6092
6093 * config/rs6000/rs6000.c (rs6000_override_options):
6094 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
6095 ... to darwin_rs6000_override_options.
6096 (rs6000_return_in_memory): Update preceding comment for darwin
6097 64 bit ABI. Use TARGET_MACHO inline.
6098 (rs6000_darwin64_struct_check_p): New.
6099 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
6100 (function_arg): Likewise.
6101 (rs6000_arg_partial_bytes): Likewise.
6102 (rs6000_function_value): Likewise.
6103
6104 2010-07-28 Andi Kleen <ak@linux.intel.com>
6105
6106 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
6107
6108 2010-07-28 Richard Guenther <rguenther@suse.de>
6109
6110 PR middle-end/44903
6111 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
6112 targets try harder to not generate unaligned accesses.
6113
6114 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
6115
6116 PR rtl-optimization/45101
6117 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
6118 for gcse-las.
6119
6120 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
6121
6122 PR tree-optimization/44885
6123 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
6124 with non-aliased component.
6125
6126 2010-07-28 Joseph Myers <joseph@codesourcery.com>
6127
6128 * config/darwin-driver.c (SWITCH_TAKES_ARG,
6129 WORD_SWITCH_TAKES_ARG): Remove.
6130 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
6131 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
6132 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
6133 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
6134 definitions from gcc.c.
6135 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
6136 defaults.h.
6137 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
6138 Move to defaults.h.
6139 * opts-common.c: Include tm.h.
6140 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
6141 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
6142 Handle more than one argument. Set canonical_option_num_elements.
6143 (decode_cmdline_options_to_array): Set
6144 canonical_option_num_elements and trailing elements of
6145 canonical_option.
6146 * opts.h (struct cl_decoded_option): Allow four elements in
6147 canonical_option. Add field canonical_option_num_elements.
6148 * Makefile.in (opts-common.o): Update dependencies.
6149
6150 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
6151
6152 PR middle-end/44790
6153 PR middle-end/44993
6154 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
6155 sure the base has address_mode before adding the offset.
6156
6157 2010-07-27 Xinliang David Li <davidxl@google.com>
6158
6159 * tree-flow.h (create_mem_ref): Add one new parameter.
6160 * tree-ssa-address.c (create_mem_ref): New parameter.
6161 (addr_to_parts): Ditto.
6162 (move_variant_to_index): New function.
6163 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
6164
6165 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
6166
6167 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
6168 4 and 5.
6169 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
6170 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
6171 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
6172 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
6173 CODE_LABELs and NOTEs.
6174 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
6175 * combine.c (try_combine): Likewise.
6176 * ira.c (setup_prohibited_mode_move_regs): Likewise.
6177 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
6178
6179 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6180
6181 * coretypes.h (struct cl_option_handlers): Declare.
6182 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
6183 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
6184 * langhooks-def.h (lhd_handle_option): Declare.
6185 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
6186 * langhooks.c (lhd_handle_option): New.
6187 * langhooks.h (struct lang_hooks): Update prototype and return
6188 value type of handle_option hook.
6189 * optc-gen.awk: Generate target_flags_explicit definition for the
6190 driver.
6191 * opts-common.c: Include diagnostic.h.
6192 (handle_option): Move from opts.c. Update prototype and return
6193 value type. Use handlers structure.
6194 (read_cmdline_option): Move from opts.c. Update prototype. Use
6195 handlers structure.
6196 (set_option): Move from opts.c.
6197 * opts.c (common_handle_option): Update prototype and return value
6198 type. Update calls to handle_option and enable_warning_as_error.
6199 (unknown_option_callback, post_handling_callback,
6200 lang_handle_option, target_handle_option): New.
6201 (handle_option, read_cmdline_option): Move to opts-common.c.
6202 (read_cmdline_options): Update prototype. Update call to
6203 read_cmdline_option.
6204 (decode_options): Initialize and use handlers structure.
6205 (set_option): Move to opts-common.c.
6206 (enable_warning_as_error): Update prototype. Update call to
6207 handle_option.
6208 * opts.h (struct cl_option_handler_func, struct
6209 cl_option_handlers): New.
6210 (handle_option, enable_warning_as_error): Update prototypes.
6211 (read_cmdline_option): Declare.
6212 * Makefile.in (opts-common.o): Update dependencies.
6213
6214 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6215
6216 * config/arm/arm.c (params.h): Include.
6217 (arm_override_options): Tune gcse-unrestricted-cost.
6218 * config/arm/t-arm (arm.o): Define dependencies.
6219
6220 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6221
6222 PR target/42495
6223 PR middle-end/42574
6224 * basic-block.h (get_dominated_to_depth): Declare.
6225 * dominance.c (get_dominated_to_depth): New function, use
6226 get_all_dominated_blocks as a base.
6227 (get_all_dominated_blocks): Use get_dominated_to_depth.
6228
6229 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
6230 (hoist_exprs): Remove.
6231 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
6232 (compute_code_hoist_vbeinout): Add debug print outs.
6233 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
6234
6235 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
6236 quadratic behavior.
6237 * params.h (MAX_HOIST_DEPTH): New macro.
6238 * doc/invoke.texi (max-hoist-depth): Document.
6239
6240 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6241
6242 PR rtl-optimization/40956
6243 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
6244 constants.
6245
6246 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6247
6248 PR target/42495
6249 PR middle-end/42574
6250 * config/arm/arm.c (legitimize_pic_address): Use
6251 gen_calculate_pic_address pattern to emit calculation of PIC address.
6252 (will_be_in_index_register): New function.
6253 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
6254 (thumb1_legitimate_address_p): Use it provided !strict_p.
6255 * config/arm/arm.md (calculate_pic_address): New expand and split.
6256
6257 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6258
6259 PR target/42495
6260 PR middle-end/42574
6261 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
6262 * config/arm/arm.md (define_split "J", define_split "K"): Make
6263 IRA/reload friendly.
6264
6265 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6266
6267 * gcse.c (insert_insn_end_basic_block): Update signature, remove
6268 unused checks.
6269 (pre_edge_insert, hoist_code): Update.
6270
6271 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6272
6273 PR target/42495
6274 PR middle-end/42574
6275 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
6276
6277 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6278
6279 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
6280
6281 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6282
6283 PR rtl-optimization/40956
6284 PR target/42495
6285 PR middle-end/42574
6286 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
6287 for hoisting.
6288 (hoist_code): Count occurences in current block too.
6289
6290 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6291
6292 * gcse.c (struct expr:max_distance): New field.
6293 (doing_code_hoisting_p): New static variable.
6294 (want_to_gcse_p): Change signature. Allow constrained hoisting of
6295 simple expressions, don't change behavior for PRE. Set max_distance.
6296 (insert_expr_in_table): Set new max_distance field.
6297 (hash_scan_set): Update.
6298 (hoist_expr_reaches_here_p): Stop search after max_distance
6299 instructions.
6300 (find_occr_in_bb): New static function. Use it in ...
6301 (hoist_code): Calculate sizes of basic block before any changes are
6302 done. Pass max_distance to hoist_expr_reaches_here_p.
6303 (one_code_hoisting_pass): Set doing_code_hoisting_p.
6304
6305 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
6306 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
6307 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
6308 macros.
6309 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
6310 Document.
6311
6312 2010-07-27 Jeff Law <law@redhat.com>
6313 Maxim Kuvyrkov <maxim@codesourcery.com>
6314
6315 * gcse.c (compute_transpout, transpout): Remove, move logic
6316 to prune_expressions.
6317 (compute_pre_data): Move pruning of trapping expressions ...
6318 (prune_expressions): ... here. New static function.
6319 (compute_code_hoist_data): Use it.
6320 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
6321
6322 2010-07-27 Xinliang David Li <davidxl@google.com>
6323
6324 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
6325 (rewrite_use_address): Adjust iv update position when needed.
6326
6327 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6328
6329 * dbgcnt.def (hoist_insn): New debug counter.
6330 * gcse.c (hoist_code): Use it.
6331
6332 2010-07-27 Xinliang David Li <davidxl@google.com>
6333
6334 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
6335 (niter_for_single_dom_exit): Passes additional parameter.
6336 (iv_period): Fix comments.
6337 (may_eliminate_iv): Handles multiple exit loops properly.
6338 (free_tree_niter_desc): New function.
6339 (free_loop_data): Frees up loop iteration descriptors.
6340
6341 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6342
6343 PR target/44542
6344 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
6345 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
6346 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
6347 (expand_one_var): Don't consider DECL_ALIGN for variables for
6348 which expand_one_stack_var_at has been already called.
6349
6350 PR testsuite/44701
6351 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
6352 constraints on IA-64.
6353
6354 2010-07-27 Jie Zhang <jie@codesourcery.com>
6355
6356 PR target/44290
6357 Revert:
6358 2010-07-23 Jie Zhang <jie@codesourcery.com>
6359
6360 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
6361 false if ! tree_versionable_function_p.
6362
6363 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6364
6365 * dwarf2out.c (add_data_member_location_attribute): Use
6366 add_AT_unsigned instead of add_AT_int if offset is non-negative.
6367
6368 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
6369
6370 * postreload.c (try_replace_in_use): New static function.
6371 (reload_combine_recognize_const_pattern): Use it here. Allow
6372 substituting into a final add insn, and substituting into a memory
6373 reference in an insn that sets the reg.
6374
6375 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6376
6377 * common.opt (o): Add MissingArgError.
6378 * doc/options.texi (MissingArgError): Document.
6379 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
6380 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
6381 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6382 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
6383 * langhooks.h (struct lang_hooks): Remove missing_argument.
6384 * optc-gen.awk: Handle MissingArgError and output new structure
6385 field initializers.
6386 * opts.c (read_cmdline_option): Use missing_argument_error field
6387 instead of missing_argument langhook.
6388 * opts.h (struct cl_option): Add missing_argument_error field.
6389 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
6390
6391 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
6392
6393 PR target/29090
6394 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
6395 Darwin64 ABI, for zero-sized objects.
6396
6397 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
6398
6399 PR target/35491
6400 PR target/29090
6401
6402 Merge from Apple local 4.2.1.
6403 2005-05-11 Stan Shebs <shebs@apple.com>
6404 Fix 64-bit varargs for Darwin (Radar 4028089).
6405 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
6406 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6407 Add argument, add case for 8-byte register half-filled with a float.
6408 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
6409 single-precision floats specially.
6410
6411 2010-07-27 Ira Rosen <irar@il.ibm.com>
6412
6413 PR tree-optimization/44152
6414 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
6415 complex numbers for further check.
6416 (vect_supported_load_permutation_p): Check nodes with
6417 complex numbers.
6418
6419 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6420
6421 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
6422 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
6423 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
6424 (LANG_HOOKS_INITIALIZER): Add new hooks.
6425 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
6426 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
6427 and complain_wrong_lang_p. Update init_options prototype.
6428 * c-objc-common.c (c_initialize_diagnostics): First call
6429 c_common_initialize_diagnostics.
6430 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
6431 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
6432 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
6433 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
6434 (hook_uint_void_0): New.
6435 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
6436 (hook_uint_void_0): New.
6437 * opts-common.c (decode_cmdline_option,
6438 decode_cmdline_options_to_array): Also fill in canonical_option field.
6439 * opts.c (complain_wrong_lang): Use langhook to determine whether
6440 to complain instead of special-casing LTO.
6441 (decode_options): Separate lang_mask determination with
6442 option_lang_mask hook from call of init_options hook.
6443 * opts.h (struct cl_decoded_option): Add canonical_option.
6444
6445 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6446
6447 PR tree-optimization/45083
6448 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
6449
6450 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
6451
6452 * postreload.c (reload_combine_recognize_const_pattern): Move test
6453 for limiting the insn movement to the right scope.
6454
6455 PR rtl-optimization/45051
6456 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
6457 than reg_mentioned_p.
6458
6459 2010-07-26 Richard Henderson <rth@redhat.com>
6460
6461 PR target/44132
6462 * tree-emutls.c: New file.
6463 * Makefile.in (OBJS-common): Add it.
6464 * tree-pass.h (pass_ipa_lower_emutls): Declare.
6465 * passes.c (init_optimization_passes): Add it.
6466
6467 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
6468 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
6469 * expr.c (emutls_var_address): Delete.
6470 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
6471 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
6472 (emutls_finish): Delete.
6473 * toplev.c (compile_file): Don't call it.
6474 * tree.h (emutls_decl): Delete.
6475 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
6476 (emutls_finish, emutls_finalize_control_var): Delete.
6477 (emutls_object_type): Move to tree-emutls.c.
6478 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
6479 default_emutls_var_fields, get_emutls_object_type,
6480 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
6481 default_emutls_var_init): Likewise.
6482 (get_variable_section): Don't special case emutls.
6483 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
6484 default_elf_select_section, default_unique_section,
6485 default_encode_section_info): Likewise.
6486 * varpool.c (decide_is_variable_needed): Likewise.
6487 * gimple-iterator.c (update_call_edge_frequencies): New
6488 (gsi_insert_on_edge_immediate): Use it.
6489 (gsi_insert_seq_on_edge_immediate): Likewise.
6490 (gsi_commit_one_edge_insert): Likewise.
6491
6492 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
6493 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
6494 (x86_64_elf_unique_section): Likewise.
6495
6496 2010-07-26 Jan Hubicka <jh@suse.cz>
6497
6498 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
6499 GTY((skip)).
6500
6501 2010-07-26 Anatoly Sokolov <aesok@post.ru>
6502
6503 * target.def (output_source_filename): New hook.
6504 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
6505 * doc/tm.texi: Regenerate.
6506 * toplev.c (output_file_directive) Remove function.
6507 * toplev.h (output_file_directive) Remove.
6508 * output.h (default_asm_output_source_filename,
6509 output_file_directive): Declare.
6510 * varasm.h (default_asm_output_source_filename,
6511 output_file_directive): New functions.
6512
6513 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
6514 * config/mips/mips-protos.h (mips_output_filename): Remove.
6515 * config/mips/mips.c (mips_output_filename): Make Static.
6516 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
6517
6518 2010-07-26 Richard Guenther <rguenther@suse.de>
6519
6520 PR tree-optimization/43784
6521 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
6522 if the destination is used by the call.
6523
6524 2010-07-26 Richard Guenther <rguenther@suse.de>
6525
6526 PR middle-end/45073
6527 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
6528 SSA updating on being in SSA form.
6529
6530 2010-07-26 Richard Guenther <rguenther@suse.de>
6531
6532 PR middle-end/45056
6533 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
6534
6535 2010-07-26 Richard Guenther <rguenther@suse.de>
6536
6537 PR tree-optimization/45071
6538 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
6539 adjust op->opcode.
6540
6541 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
6542
6543 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
6544 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
6545 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
6546 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
6547 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
6548 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
6549 save_r31, return_r31, save_interrupt, return_interrupt,
6550 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
6551 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
6552 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
6553 new ABI requirements.
6554 (save_r6_r9, L_callt_save_r6_r9): Remove.
6555 * config/v850/predicates.md (even_reg_operand, disp23_operand,
6556 const_float_1_operand const_float_0_operand): New Predicates.
6557 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
6558 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
6559 * config/v850/t-v850: Update multilibs for new target variants.
6560 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
6561 * config/v850/t-v850e: Likewise.
6562 * config/v850/v850.c (v850_issue_rate): New.
6563 (v850_strict_argument_naming): New.
6564 (function_arg): Modify to generate a different ABI.
6565 (print_operand): Update case 'z' to support float modes.
6566 (output_move_single): Modify to generate appropriate and better
6567 assembly.
6568 (v850_float_z_comparison_operator, v850_select_cc_mode,
6569 v850_float_nz_comparison_operator, v850_gen_float_compare,
6570 v850_gen_compare): New functions to support comparison of float values.
6571 (ep_memory_offset): Add support for V850E2 targets.
6572 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
6573 (INTERRUPT_REGPARM_NUM): Remove.
6574 (compute_register_save_size): Add extra case to save/restore long call.
6575 (use_prolog_function): New function to support prologue.
6576 (expand_prologue): Add support for V850E2 targets and modified
6577 as per the current ABI requirements.
6578 (expand_epilogue): Likewise.
6579 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
6580 (construct_save_jarl): Likewise.
6581 (construct_dispose_instruction): Update as per the current ABI
6582 requirements.
6583 (construct_prepare_instruction): Likewise.
6584 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
6585 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
6586 (CPP_SPEC): Updated to support v850e2 targets.
6587 (STRICT_ALIGNMENT): Modified.
6588 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
6589 (FIXED_REGISTERS): Likewise.
6590 (CALL_USED_REGISTERS): Likewise.
6591 (CONDITIONAL_REGISTER_USAGE): Updated.
6592 (HARD_REGNO_MODE_OK): Updated.
6593 (reg_class): Updated to add even registers.
6594 (REG_CLASS_NAMES): Likewise.
6595 (REG_CLASS_CONTENTS): Likewise.
6596 (REGNO_REG_CLASS): Updated for CC registers.
6597 (REG_CLASS_FROM_LETTER): Added support for even registers.
6598 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
6599 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
6600 ARG_POINTER_REGNUM): Updated.
6601 (FUNCTION_ARG_ADVANCE): Define.
6602 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
6603 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
6604 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
6605 (GO_IF_LEGITIMATE_ADDRESS): Updated.
6606 (SELECT_CC_MODE): Define.
6607 (REGISTER_NAMES): Updated to add psw and fcc registers.
6608 (ADDITIONAL_REGISTER_NAMES): Updated.
6609 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
6610 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
6611 * config/v850/v850.md (define_constants): Define new constants.
6612 (type): Update store,bit1,macc,div,fpu and single attributes.
6613 (cpu): New attribute.
6614 (cc): Add set_z attribute.
6615 (unsign23byte_load, sign23byte_load, unsign23hword_load,
6616 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
6617 23word_store): New instructions for 23-bit displacement load and store.
6618 (movqi_internal, movhi_internal): Update the attributes.
6619 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
6620 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
6621 the attributes.
6622 (v850_tst1): Modified using CC_REGNUM.
6623 (tstsi): Remove.
6624 (cmpsi): Modified as define_expand from define_insn.
6625 (cmpsi_insn, cmpsf, cmpdf): New instructions.
6626 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
6627 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
6628 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
6629 one_cmplsi2): Clobber the CC_REGNUM register.
6630 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
6631 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
6632 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
6633 (setf_insn, set_z_insn, set_nz_insn): New instructions for
6634 v850e2v3 target.
6635 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
6636 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
6637 targets.
6638 (sasf_1, sasf_2): Remove.
6639 (sasf): New instruction.
6640 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
6641 targets. CC_REGNUM register is clobbered and attributes are
6642 updated.
6643 (branch_z_normal, branch_z_invert, branch_nz_normal,
6644 branch_nz_invert): New branch related instructions.
6645 (jump): Updated the attributes.
6646 (switch): Update to support new targets. CC_REGNUM register is
6647 clobbered and attributes are updated.
6648 (call_internal_short, call_internal_long, call_value_internal_short,
6649 call_value_internal_long): Updated the attributes.
6650 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
6651 clobbered and attributes are updated.
6652 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
6653 Update to support new targets. CC_REGNUM register is clobbered.
6654 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
6655 instructions.
6656 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
6657 are updated.
6658 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
6659 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
6660 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
6661 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
6662 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
6663 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
6664 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
6665 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
6666 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
6667 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
6668 point instructions defined for V850e2v3 target.
6669 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
6670 Add support for V850E2 targets and CC_REGNUM register is clobbered.
6671 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
6672 support for new targets.
6673 * config/v850/v850-modes.def: New file.
6674 * config/v850/v850.opt(mstrict-align): Remove.
6675 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
6676 mv850e2v3): New command line options for V850.
6677 * config.gcc: Update the newly added files.
6678 * doc/invoke.texi: Update the newly added command line options for
6679 V850 target.
6680
6681 2010-07-26 Richard Guenther <rguenther@suse.de>
6682
6683 PR tree-optimization/45052
6684 * ipa-pure-const.c (check_stmt): Check volatileness.
6685
6686 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
6687
6688 PR target/44707
6689 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
6690 * config/sparc/sparc.c: Include reload.h.
6691 (legitimize_tls_address): Rename into...
6692 (sparc_legitimize_tls_address): ...this.
6693 (legitimize_pic_address): Rename into...
6694 (sparc_legitimize_pic_address): ...this.
6695 (sparc_expand_move): Adjust to above renaming.
6696 (sparc_tls_referenced_p): Likewise.
6697 (sparc_legitimize_tls_address): Likewise.
6698 (sparc_legitimize_pic_address): Likewise.
6699 (sparc_legitimize_address): Likewise.
6700 (sparc_output_mi_thunk): Likewise.
6701 (sparc_legitimize_reload_address): New global function. Recognize
6702 (lo_sum (high ...) ...) patterns generated by earlier passes.
6703 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
6704
6705 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
6706
6707 PR target/44484
6708 * config/sparc/predicates.md (memory_reg_operand): Delete.
6709 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
6710 (*sync_compare_and_swap): Encode the address form in the pattern.
6711 (*sync_compare_and_swapdi_v8plus): Likewise.
6712
6713 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
6714
6715 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
6716 Streamline paragraph on compatibility with the system compiler.
6717
6718 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
6719
6720 PR middle-end/45035
6721 * alias.c (true_dependence_1): Fix thinko in merge of old
6722 true_dependence and canon_true_dependence.
6723
6724 2010-07-23 Jan Hubicka <jh@suse.cz>
6725
6726 * lto-streamer-out.c (write_symbol): Fix visibilities of external
6727 references.
6728
6729 2010-07-23 Le-Chun Wu <lcwu@google.com>
6730
6731 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
6732 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
6733 and an unnecessary assignment.
6734 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
6735 self-assign warning.
6736 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
6737 unnecessary self-init.
6738
6739 2010-07-23 Richard Guenther <rguenther@suse.de>
6740
6741 PR lto/43071
6742 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
6743 for -flto and -fwhopr.
6744
6745 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
6746
6747 PR target/41943
6748 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
6749 (stmp-int-hdrs): Prefix/postfix headers by include_next.
6750 * config.gcc (user_headers_inc_next_pre): New.
6751 (user_headers_inc_next_post): Likewise.
6752 (*-w64-mingw*): Use for float.h post-fixing, and for
6753 stddef.h/stdarg.h pre-fixing by include_next.
6754 * configure.ac (user_headers_inc_next_post): New.
6755 (user_headers_inc_next_pre): New.
6756 * configure: Regenerated.
6757
6758 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6759
6760 * configure.ac: Don't disable TLS on Solaris 8/9 by default
6761 Set tga_func for Solaris 2/x86 resp. SPARC.
6762 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
6763 (LIB_THREAD_LDFLAGS_SPEC): Define.
6764 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
6765 * configure: Regenerate.
6766 * config.in: Regenerate.
6767 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
6768 -pthread, -threads, LIB_TLS_SPEC with -pthread.
6769 * doc/install.texi (Specific, *-*-solaris2*): Document use of
6770 alternate thread libraries on Solaris 8.
6771 Document TLS patch requirements.
6772 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
6773 Document tls.
6774
6775 PR target/18788
6776 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
6777 -shared.
6778
6779 2010-07-23 Jakub Jelinek <jakub@redhat.com>
6780
6781 * tree.h (struct tree_base): Add nameless_flag bitfield.
6782 (TYPE_NAMELESS, DECL_NAMELESS): Define.
6783 * omp-low.c (create_omp_child_function, scan_omp_parallel,
6784 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
6785 DECL_ARTIFICIAL where needed.
6786 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
6787 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
6788 has DECL_NAMELESS set.
6789
6790 2010-07-23 Martin Jambor <mjambor@suse.cz>
6791
6792 PR tree-optimization/44915
6793 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
6794 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
6795 (analyze_function): Likewise.
6796
6797 2010-07-23 Martin Jambor <mjambor@suse.cz>
6798
6799 PR tree-optimization/44914
6800 * tree-sra.c (sra_modify_function_body): Return true if CFG was
6801 changed, add purging dead eh edges.
6802 (ipa_sra_modify_function_body): Return true if CFG was changed,
6803 simplify purging dead eh edges.
6804 (modify_function): Return true if CFG was changed.
6805 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
6806 was changed.
6807 (ipa_early_sra): Likewise.
6808
6809 2010-07-23 Jie Zhang <jie@codesourcery.com>
6810
6811 PR target/44290
6812 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
6813 if "naked".
6814 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
6815 false if ! tree_versionable_function_p.
6816
6817 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
6818
6819 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
6820 * ipa-pure-const.c (special_builtlin_state): Remove
6821 BUILT_IN_ARGS_INFO case.
6822 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6823 * builtins.c (expand_builtin): Likewise.
6824 (expand_builtin_args_info): Remove.
6825 * doc/tm.texi (__builtin_args_info): Remove.
6826 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
6827 * doc/tm.text.in: Likewise.
6828
6829 2010-07-23 Richard Guenther <rguenther@suse.de>
6830
6831 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
6832 (lto_symtab_merge_decls_2): Likewise.
6833 * tree-ssa.c (useless_type_conversion_p): Likewise.
6834 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6835 * gimple.c (gtc_visited2, gtc_ob2): Remove.
6836 (struct type_pair_d): Make same_p an array indexed by mode.
6837 Update comment.
6838 (lookup_type_pair): Update initialization.
6839 (struct sccs): Adjust same_p type.
6840 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
6841 Adjust.
6842 (print_gimple_types_stats): Likewise.
6843 * gimple.h (enum gtc_mode): New.
6844 (gimple_types_compatible_p): Adjust prototype.
6845
6846 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
6847
6848 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
6849 again after processing insn.
6850
6851 2010-07-23 Jie Zhang <jie@codesourcery.com>
6852
6853 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
6854 proper words when !tree_versionable_function_p.
6855
6856 2010-07-23 Richard Guenther <rguenther@suse.de>
6857
6858 PR tree-optimization/45037
6859 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
6860
6861 2010-07-23 Jie Zhang <jie@codesourcery.com>
6862
6863 * doc/extend.texi: Remove IP2K from the description of naked attribute.
6864 Add MCORE instead.
6865
6866 2010-07-10 Andi Kleen <ak@linux.intel.com>
6867
6868 PR lto/44992
6869 * lto-opts.c (lto_write_options): Add NULL file_data argument to
6870 lto_get_section_name.
6871 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6872 * lto-streamer-out.c (produce_asm): Likewise.
6873 (copy_function): Likewise.
6874 (produce_symtab): Likewise.
6875 (produce_asm_for_decls): Likewise.
6876 * lto-streamer.c (lto_get_section_name): Add file_data argument.
6877 Rewrite to add random postfix to LTO sections.
6878 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
6879 (lto_get_section_name): Add file_data argument to prototype.
6880
6881 2010-07-10 Andi Kleen <ak@linux.intel.com>
6882
6883 * lto-section-in.c (lto_section_name): Synchronize names
6884 with lto_get_section_name.
6885
6886 2010-07-10 Andi Kleen <ak@linux.intel.com>
6887
6888 * lto-opts.c (lto_read_file_options): Check for missing section.
6889
6890 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
6891
6892 * ira.c (check_allocation): Correctly handle the case where an allocno
6893 with two objects was allocated to a single reg.
6894
6895 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
6896
6897 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
6898 (is_widening_mult_p): Likewise.
6899 (convert_to_widen): Use them.
6900 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
6901 well as integer ones.
6902
6903 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
6904
6905 * alias.c (true_dependence_1): New function, merged version of
6906 true_dependence and canon_true_dependence.
6907 (true_dependence): Simplify.
6908 (canon_true_dependence): Simplify.
6909
6910 2010-07-22 Richard Henderson <rth@redhat.com>
6911
6912 PR target/45027
6913 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
6914 of V4SFmode for the SSE saves; increase stack alignment if needed.
6915 (ix86_gimplify_va_arg): Don't increase stack alignment here.
6916
6917 2010-07-22 Jakub Jelinek <jakub@redhat.com>
6918
6919 PR bootstrap/45028
6920 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
6921 call cprop_find_used_regs again via note_uses.
6922
6923 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
6924
6925 * alias.c (get_alias_set): Fix formatting issues.
6926
6927 2010-07-22 Steve Ellcey <sje@cup.hp.com>
6928
6929 PR middle-end/44878
6930 * stmt.c (expand_value_return): Call promote_function_mode with
6931 a for_return argument of 2 when returning by reference.
6932
6933 2010-07-22 Dodji Seketeli <dodji@redhat.com>
6934
6935 PR debug/45024
6936 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
6937 unit DIE if we can find the scope DIE.
6938
6939 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
6940
6941 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
6942 changed. Initialize OBJECT_SUBWORD.
6943 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
6944 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
6945 all callers changed.
6946 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
6947 (finish_allocno): Likewise.
6948 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
6949 (remove_low_level_allocnos): Likewise.
6950 (update_bad_spill_attribute): Likewise.
6951 (setup_min_max_allocno_live_range_point): Likewise.
6952 (sort_conflict_id_map): Likewise.
6953 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
6954 (ior_hard_reg_conflicts): New function.
6955 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
6956 (compress_conflict_vecs): Iterate over objects, not allocnos.
6957 (ira_add_live_range_to_object): New function.
6958 (object_range_compare_func): Renamed from allocno_range_compare_func.
6959 All callers changed.
6960 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
6961 subobjects, widen the min/max range of the lowest-order object to
6962 potentially include all other such low-order objects.
6963 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
6964 (check_allocation): Likewise. Use more fine-grained tests for register
6965 conflicts.
6966 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
6967 allocno subobjects.
6968 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
6969 choices about which bits to set in each set. Don't use
6970 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
6971 using the multiple sets we computed.
6972 (push_allocno_to_stack): Iterate over allocno subobjects.
6973 (all_conflicting_hard_regs_coalesced): New static function.
6974 (setup_allocno_available_regs_num): Use it.
6975 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
6976 subobjects.
6977 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
6978 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6979 by ALLOCNO_NUM_OBJECTS.
6980 (calculate_spill_cost): Likewise.
6981 (color_pass): Express if statement in a more normal way.
6982 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
6983 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
6984 (setup_slot_coalesced_allocno_live_ranges): Likewise.
6985 (allocno_reload_assign): Likewise.
6986 (ira_reassign_pseudos): Likewise.
6987 (fast_allocation): Likewise.
6988 * ira-conflicts.c (build_conflict_bit_table): Likewise.
6989 (print_allocno_conflicts): Likewise.
6990 (ira_build_conflicts): Likewise.
6991 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
6992 callers changed. Test subword 0 of each allocno for conflicts.
6993 (build_object_conflicts): Renamed from build_allocno_conflicts. All
6994 callers changed. Iterate over allocno subobjects.
6995 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
6996 * ira-int.h (struct ira_allocno): New member: num_objects.
6997 Rename object to objects and change it into an array.
6998 (ALLOCNO_OBJECT): Add new argument N.
6999 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
7000 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
7001 (ior_hard_reg_conflicts): Declare.
7002 (ira_add_live_range_to_object): Declare.
7003 (ira_allocno_object_iterator): New.
7004 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
7005 (FOR_EACH_ALLOCNO_OBJECT): New macro.
7006 * ira-lives.c (objects_live): Renamed from allocnos_live; all
7007 uses changed.
7008 (allocnos_processed): New sparseset.
7009 (make_object_born): Renamed from make_allocno_born; take an
7010 ira_object_t argument. All callers changed.
7011 (make_object_dead): Renamed from make_allocno_dead; take an
7012 ira_object_t argument. All callers changed.
7013 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
7014 All callers changed.
7015 (mark_pseudo_regno_live): Iterate over allocno subobjects.
7016 (mark_pseudo_regno_dead): Likewise.
7017 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
7018 functions.
7019 (mark_ref_live): Detect subword accesses and call
7020 mark_pseudo_regno_subword_live as appropriate.
7021 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
7022 (process_bb_nodes_live): Deal with object-related updates first; set
7023 and test bits in allocnos_processed to avoid computing allocno
7024 statistics more than once.
7025 (create_start_finish_chains): Iterate over objects, not allocnos.
7026 (print_object_live_ranges): New function.
7027 (print_allocno_live_ranges): Use it.
7028 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
7029 and objects_live.
7030
7031 2010-07-22 Richard Guenther <rguenther@suse.de>
7032
7033 PR lto/42451
7034 * gimple.c (gtc_next_dfs_num): New global.
7035 (struct sccs): Make value a union, add integer same_p member.
7036 (gtc_visit): New function.
7037 (gimple_types_compatible_p_1): New function, split out from ...
7038 (gimple_types_compatible_p): ... here. Start a DFS walk here.
7039 (iterative_hash_gimple_type): Adjust for sccs change.
7040
7041 2010-07-22 Martin Jambor <mjambor@suse.cz>
7042
7043 PR tree-optimization/44891
7044 * tree-sra.c: Include gimple-pretty-print.h.
7045 (replace_uses_with_default_def_ssa_name): Renamed to
7046 get_repl_default_def_ssa_name, return the new SSA name instead of
7047 replacing the old one.
7048 (sra_modify_assign): Dump a message when removing a load, if the LHS
7049 is an SSA_NAME, do not do any propagation, just set the RHS to a
7050 default definition SSA NAME, type convert if necessary.
7051 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
7052
7053 2010-07-22 Richard Guenther <rguenther@suse.de>
7054
7055 PR tree-optimization/45017
7056 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
7057 TYPE_PRECISION of integral types in addition to size.
7058
7059 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
7060
7061 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
7062 when no C library is specified.
7063
7064 2010-07-22 Martin Jambor <mjambor@suse.cz>
7065
7066 * ipa-prop.h (struct ipa_node_params): Updated comment.
7067 (struct ipa_edge_args): Likewise.
7068 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
7069
7070 2010-07-22 Martin Jambor <mjambor@suse.cz>
7071
7072 * cgraphunit.c (verify_edge_count_and_frequency): New function.
7073 (verify_cgraph_node): Verify frequencies of indirect edges.
7074 * tree-inline.c (tree_function_versioning): Update frequencies of
7075 indirect edges.
7076
7077 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7078
7079 PR target/43698
7080 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
7081 Set *arm_rev to be predicable.
7082
7083 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
7084
7085 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
7086 (LINK_COMMAND_SPEC_A): New.
7087 (DSYMUTIL): New.
7088 (DSYMUTIL_SPEC): New.
7089 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
7090 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
7091
7092 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
7093
7094 * calls.c (load_register_parameters): Move check for zero
7095 sized items so that only the call to
7096 mem_overlaps_already_clobbered_arg_p () is protected.
7097
7098 2010-07-22 Jan Hubicka <jh@suse.cz>
7099
7100 * ipa-pure-const.c (varying_state): Break out from ...
7101 (get_function_state): ... here; always return varying_state
7102 when state would be NULL otherwise.
7103 (remove_node_data): Do not free varying state.
7104
7105 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
7106
7107 PR bootstrap/44970
7108 PR middle-end/45009
7109 * postreload.c: Include "target.h".
7110 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
7111 into account.
7112 (fixup_debug_insns): Don't copy the rtx.
7113 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
7114 Don't copy when replacing. Call fixup_debug_insns in the case where
7115 we merged one add with another.
7116 (reload_combine_recognize_pattern): Fail if there aren't any uses.
7117 Try harder to determine whether we're picking a valid index register.
7118 Don't set store_ruid for an insn we're going to scan in the
7119 next iteration.
7120 (reload_combine): Remove unused code.
7121 (reload_combine_note_use): When updating use information for
7122 an old insn, ignore a use that occurs after store_ruid.
7123 * Makefile.in (postreload.o): Update dependencies.
7124
7125 * function.c (record_hard_reg_sets): Restrict the previous change
7126 to cases where the incoming nominal mode is the same as the
7127 incoming promoted mode and everything happens in MODE_INT.
7128
7129 2010-07-21 Jakub Jelinek <jakub@redhat.com>
7130
7131 PR debug/45015
7132 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
7133 ASM_OPERANDS_OUTPUT_IDX.
7134 (adjust_insn): For inline asm with multiple sets ensure first
7135 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
7136 the insn.
7137
7138 2010-07-21 Richard Henderson <rth@redhat.com>
7139
7140 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
7141 comparison for avoiding xmm register saves. Emit the xmm register
7142 saves explicitly.
7143 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
7144 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
7145 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
7146 Remove patterns and the associated splitters.
7147
7148 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
7149
7150 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
7151 and imagine parts of a complex, so that they can have the same
7152 base and fall into the same group.
7153
7154 2010-07-21 Richard Guenther <rguenther@suse.de>
7155
7156 PR lto/45018
7157 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
7158 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
7159 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
7160
7161 2010-07-21 Martin Jambor <mjambor@suse.cz>
7162
7163 PR tree-optimization/44900
7164 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
7165 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
7166
7167 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
7168
7169 PR middle-end/44738
7170 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
7171
7172 2010-07-21 Richard Guenther <rguenther@suse.de>
7173
7174 PR middle-end/45013
7175 * tree-ssa.c (useless_type_conversion_p): Dispatch to
7176 gimple_types_compatible_p only when in lto.
7177 * gimple.c (gimple_types_compatible_p): Use canonical types
7178 to speed up comparison.
7179
7180 2010-07-21 Richard Guenther <rguenther@suse.de>
7181
7182 * tree-flow.h (referenced_var): Move define ...
7183 * tree-flow-inline.h (referenced_var): ... here as an inline
7184 function. Assert here ...
7185 * tree-dfa.c (referenced_var_lookup): ... instead of here.
7186 * tree-ssa.c (maybe_optimize_var): Check if the variable
7187 is in referenced vars.
7188 (execute_update_addresses_taken): Remove old broken check.
7189 * gimple-pretty-print.c (pp_points_to_solution): Use
7190 referenced_var_lookup.
7191 * tree-into-ssa.c (dump_decl_set): Likewise.
7192
7193 2010-07-21 Jakub Jelinek <jakub@redhat.com>
7194
7195 PR debug/45003
7196 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
7197 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
7198 ZERO_EXTEND here.
7199
7200 2010-07-20 Richard Henderson <rth@redhat.com>
7201
7202 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
7203
7204 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
7205
7206 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
7207 computing the sum of the stack pointer and a large constant.
7208 * config/arm/constraints.md (M): Remove superfluous parentheses.
7209 (Pc): New constraint.
7210
7211 2010-07-20 Jakub Jelinek <jakub@redhat.com>
7212
7213 PR debug/45006
7214 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
7215 operand's type if exp is tcc_unary class tree.
7216
7217 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
7218
7219 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
7220 Reverse sense of if_then_else condition.
7221
7222 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
7223
7224 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
7225 * config/rs6000/rs6000.c (rs6000_override_options): Set
7226 rs6000_block_move_inline_limit appropriately.
7227 (expand_block_move): Use rs6000_block_move_inline_limit.
7228 * doc/invoke.texi (mblock-move-inline-limit): Document.
7229
7230 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
7231
7232 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
7233 FROM and TO. All callers changed. Don't look for tracked uses,
7234 just scan the RTL for DEBUG_INSNs and substitute.
7235 (reload_combine_recognize_pattern): Call fixup_debug_insns.
7236 (reload_combine): Ignore DEBUG_INSNs.
7237
7238 2010-07-20 Jakub Jelinek <jakub@redhat.com>
7239
7240 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
7241 depth to 8 from 5.
7242
7243 PR debug/45003
7244 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
7245 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
7246 instead of the result's type.
7247
7248 2010-07-20 Richard Guenther <rguenther@suse.de>
7249
7250 PR tree-optimization/44977
7251 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
7252 SSA form.
7253
7254 2010-07-20 Richard Guenther <rguenther@suse.de>
7255
7256 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
7257 (lto_symtab_merge_decls_2): Likewise.
7258 * gimple.h (gimple_types_compatible_p): Declare.
7259 * gimple.c (gimple_queue_type_fixup): Remove.
7260 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
7261 (gimple_compatible_complete_and_incomplete_type_p): New function.
7262 (gimple_types_compatible_p): Adjust.
7263 (gimple_register_type): Remove type fixup code.
7264 (print_gimple_types_stats): Adjust.
7265 (free_gimple_type_tables): Likewise.
7266 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
7267 * tree-ssa.c (useless_type_conversion_p): Likewise.
7268
7269 2010-07-20 Richard Guenther <rguenther@suse.de>
7270
7271 PR middle-end/44971
7272 PR middle-end/44988
7273 * tree-ssa.c (maybe_optimize_var): New function split out from ...
7274 (execute_update_addresses_taken): ... here.
7275 (non_rewritable_mem_ref_base): Likewise.
7276 (execute_update_addresses_taken): Do not iterate over all referenced
7277 vars but just all local decls and parms.
7278 Properly check call and asm arguments and rewrite call arguments.
7279
7280 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
7281
7282 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
7283 to top level.
7284 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
7285 definitions ...
7286 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
7287 New macro.
7288 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
7289
7290 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7291
7292 * gengtype.c (start_root_entry): New function, split out from
7293 write_root. Check whether V is null and raise an error if so.
7294 (write_field_root): Check for V being null. Don't raise an error here;
7295 set V to null instead.
7296 (write_root): Update comment above function. Use start_root_entry.
7297
7298 2010-07-19 Xinliang David Li <davidxl@google.com>
7299
7300 PR testsuite/44932
7301 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
7302 def edges.
7303 (find_uninit_use): Add dump.
7304 (is_use_properly_guarded): Ditto.
7305 (warn_uninitialized_phi): Ditto.
7306 (execute_late_warn_uninitialized): Ditto.
7307
7308 2010-07-19 Richard Guenther <rguenther@suse.de>
7309
7310 PR middle-end/44941
7311 * expr.c (emit_block_move_hints): Move zero size check first.
7312 Move asserts to more useful places.
7313 * calls.c (load_register_parameters): Check for zero size.
7314
7315 2010-07-19 Richard Henderson <rth@redhat.com>
7316
7317 * tree-optimize.c (execute_all_early_local_passes): New. Change
7318 cgraph_state here ...
7319 (execute_early_local_optimizations): ... not here. Remove.
7320 (pass_early_local_passes, pass_all_early_optimizations): Update.
7321
7322 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
7323
7324 * postreload.c (reload_combine_closest_single_use): Ignore the
7325 number of uses for DEBUG_INSNs.
7326 (fixup_debug_insns): New static function.
7327 (reload_combine_recognize_const_pattern): Use it. Don't let the
7328 main loop be affected by DEBUG_INSNs.
7329 Really disallow moving adds past a jump insn.
7330 (reload_combine_recognize_pattern): Don't update use_ruid here.
7331 (reload_combine_note_use): Do it here.
7332 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
7333
7334 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
7335
7336 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
7337 of a loop.
7338 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
7339
7340 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
7341
7342 * config/i386/darwin.h: Define darwin_emit_branch_islands.
7343 (TARGET_MACHO_BRANCH_ISLANDS): New.
7344 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
7345 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
7346 default value.
7347 * config/i386/i386.c (output_pic_addr_const): Do not emit
7348 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
7349 (x86_output_mi_thunk): Adjust symbol creation.
7350 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
7351 Remove out of date comment.
7352 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
7353 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
7354 (DARWIN_GENERATE_ISLANDS): Ditto.
7355 (output_call): Do not emit branch islands unless
7356 darwin_emit_branch_islands is set.
7357 * config/darwin.c: Declare darwin_emit_branch_islands.
7358 (machopic_indirect_data_reference): Do not emit unless
7359 darwin_emit_branch_islands is set.
7360 (darwin_override_options): Set darwin_emit_branch_islands
7361 where it is needed.
7362 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
7363
7364 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7365
7366 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7367 sse_runtime, sse2_runtime.
7368
7369 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
7370
7371 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
7372 low half of a single-register SCmode return value before ORing
7373 it with the high half.
7374 * config/mips/mips16.S (MERGE_GPRf): Likewise.
7375
7376 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7377
7378 PR target/44805
7379 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
7380 on all targets.
7381
7382 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
7383
7384 PR target/42235
7385 * postreload.c (reload_cse_move2add): Return bool, true if anything.
7386 changed. All callers changed.
7387 (move2add_use_add2_insn): Likewise.
7388 (move2add_use_add3_insn): Likewise.
7389 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
7390 reload_combine.
7391 (RELOAD_COMBINE_MAX_USES): Bump to 16.
7392 (last_jump_ruid): New static variable.
7393 (struct reg_use): New members CONTAINING_MEM and RUID.
7394 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
7395 (reload_combine_split_one_ruid, reload_combine_split_ruids,
7396 reload_combine_purge_insn_uses, reload_combine_closest_single_use
7397 reload_combine_purge_reg_uses_after_ruid,
7398 reload_combine_recognize_const_pattern): New static functions.
7399 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
7400 is true for our reg and that we have available index regs.
7401 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
7402 callers changed. Use them to initialize fields in struct reg_use.
7403 (reload_combine): Initialize last_jump_ruid. Be careful when to
7404 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
7405 Call reload_combine_recognize_const_pattern.
7406 (reload_combine_note_store): Update REAL_STORE_RUID field.
7407
7408 2010-07-16 Jason Merrill <jason@redhat.com>
7409
7410 * Makefile.in (opts-common.o): Depend on options.h.
7411
7412 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
7413
7414 * tree.c (build_common_builtin_nodes): Use build_function_type_list
7415 instead of build_function_type.
7416 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
7417 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
7418
7419 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
7420
7421 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
7422 do all the work.
7423 (rs6000_emit_int_cmove): Use function pointers for insn generation.
7424 Don't force values into registers unnecessarily.
7425 (output_isel): Assert that we're not given conditions we can't handle.
7426 Delete corresponding code.
7427 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
7428 scc_comparison_operator constraint. Permit 0 for the consequent
7429 operand. Permit any GPR for the alternative operand.
7430 (isel_unsigned_<mode>): Likewise.
7431
7432 2010-07-16 Jakub Jelinek <jakub@redhat.com>
7433
7434 PR target/44942
7435 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
7436 argument to const_tree.
7437 * config/i386/i386.c (function_arg_advance): If padding needs to be
7438 inserted before argument, increment cum->words by number of padding
7439 words as well.
7440 (contains_aligned_value_p): Change argument to const_tree.
7441 (ix86_function_arg_boundary): Change second argument to const_tree.
7442
7443 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
7444
7445 PR target/42235
7446 * function.c (record_hard_reg_sets): New static function.
7447 (assign_parm_setup_reg): If an optab for extending exists and the
7448 generated code clobbbers no hard regs, emit the insn directly and
7449 create a REG_EQUIV note.
7450
7451 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7452
7453 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
7454 TREE_CHAIN.
7455 * c-typeck.c (push_init_level): Likewise.
7456 (process_init_element): Likewise.
7457
7458 2010-07-15 Anatoly Sokolov <aesok@post.ru>
7459
7460 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
7461 (integer_three_node): Add.
7462 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
7463 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
7464 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
7465 of call build_int_cst.
7466 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
7467 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
7468 (find_interesting_uses_address): Ditto.
7469 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
7470 * tree-eh.c (lower_eh_constructs_2): Ditto.
7471 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
7472 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
7473 * expmed.c (expand_divmod): Ditto.
7474 * tree-mudflap.c (mx_register_decls): Ditto.
7475 * varasm.c (array_size_for_constructor): Ditto.
7476 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
7477 * c-parser.c (c_parser_postfix_expression): Ditto.
7478
7479 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
7480
7481 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
7482 New static variables.
7483 (reload_combine_recognize_pattern): New static function, broken out
7484 of reload_combine.
7485 (reload_combine): Use it. Only initialize first_index_reg and
7486 last_index_reg once.
7487
7488 2010-07-15 Richard Henderson <rth@redhat.com>
7489
7490 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
7491 when done.
7492
7493 2010-07-15 Jan Hubicka <jh@suse.cz>
7494
7495 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
7496 comdats for broken gold.
7497 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
7498
7499 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7500
7501 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
7502
7503 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
7504
7505 * tree.h (DECL_CHAIN): Define.
7506 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
7507 * c-decl.c: Likewise.
7508 * c-parser.c: Likewise.
7509 * c-typeck.c: Likewise.
7510 * cfgexpand.c: Likewise.
7511 * cgraph.c: Likewise.
7512 * cgraphunit.c: Likewise.
7513 * combine.c: Likewise.
7514 * config/alpha/alpha.c: Likewise.
7515 * config/arm/arm.c: Likewise.
7516 * config/frv/frv.c: Likewise.
7517 * config/i386/i386.c: Likewise.
7518 * config/i386/winnt-cxx.c: Likewise.
7519 * config/ia64/ia64.c: Likewise.
7520 * config/iq2000/iq2000.c: Likewise.
7521 * config/mep/mep.c: Likewise.
7522 * config/mips/mips.c: Likewise.
7523 * config/pa/som.h: Likewise.
7524 * config/rs6000/rs6000.c: Likewise.
7525 * config/s390/s390.c: Likewise.
7526 * config/sh/sh.c: Likewise.
7527 * config/sh/symbian-cxx.c: Likewise.
7528 * config/sparc/sparc.c: Likewise.
7529 * config/spu/spu.c: Likewise.
7530 * config/stormy16/stormy16.c: Likewise.
7531 * config/vxworks.c: Likewise.
7532 * config/xtensa/xtensa.c: Likewise.
7533 * coverage.c: Likewise.
7534 * dbxout.c: Likewise.
7535 * dwarf2out.c: Likewise.
7536 * emit-rtl.c: Likewise.
7537 * expr.c: Likewise.
7538 * function.c: Likewise.
7539 * gimple-low.c: Likewise.
7540 * gimple-pretty-print.c: Likewise.
7541 * gimplify.c: Likewise.
7542 * integrate.c: Likewise.
7543 * ipa-inline.c: Likewise.
7544 * ipa-prop.c: Likewise.
7545 * ipa-split.c: Likewise.
7546 * ipa-struct-reorg.c: Likewise.
7547 * ipa-type-escape.c: Likewise.
7548 * langhooks.c: Likewise.
7549 * lto-cgraph.c: Likewise.
7550 * omp-low.c: Likewise.
7551 * stor-layout.c: Likewise.
7552 * tree-cfg.c: Likewise.
7553 * tree-complex.c: Likewise.
7554 * tree-dfa.c: Likewise.
7555 * tree-dump.c: Likewise.
7556 * tree-inline.c: Likewise.
7557 * tree-mudflap.c: Likewise.
7558 * tree-nested.c: Likewise.
7559 * tree-object-size.c: Likewise.
7560 * tree-pretty-print.c: Likewise.
7561 * tree-sra.c: Likewise.
7562 * tree-ssa-live.c: Likewise.
7563 * tree-ssa-loop-niter.c: Likewise.
7564 * tree-ssa-math-opts.c: Likewise.
7565 * tree-ssa-reassoc.c: Likewise.
7566 * tree-ssa-sccvn.c: Likewise.
7567 * tree-ssa-structalias.c: Likewise.
7568 * tree-tailcall.c: Likewise.
7569 * tree-vrp.c: Likewise.
7570 * tree.c: Likewise.
7571 * var-tracking.c: Likewise.
7572 * varasm.c: Likewise.
7573
7574 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7575
7576 PR target/44877
7577 * config/spu/spu.c (spu_expand_builtin_1): Allow references
7578 (as well as pointers) as argument to mask_for_load builtins.
7579
7580 2010-07-15 Richard Guenther <rguenther@suse.de>
7581
7582 PR tree-optimization/44946
7583 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
7584 with accessing only padding properly.
7585
7586 2010-07-15 Jan Hubicka <jh@suse.cz>
7587
7588 * ipa.c (function_and_variable_visibility): Variables marked as used
7589 should not be localized.
7590
7591 2010-07-15 Jan Hubicka <jh@suse.cz>
7592
7593 * cgraph.c: Include lto-streamer.h
7594 (change_decl_assembler_name): Work when assembler name hash is at place.
7595 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
7596 be sure to rename it to avoid name clash.
7597 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
7598 Localize hidden symbols only when locally defined.
7599
7600 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
7601
7602 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
7603
7604 2010-07-15 Magnus Granberg <zorry@gentoo.org>
7605 Kevin F. Quinn <kevquinn@gentoo.org>
7606
7607 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
7608 * common.opt: Add -Wtrampolines.
7609 * doc/invoke.texi: Add -Wtrampolines.
7610
7611 2010-07-15 Jie Zhang <jie@codesourcery.com>
7612
7613 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
7614 cortex_a8_issue_ls.
7615
7616 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
7617
7618 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
7619 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
7620
7621 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7622
7623 * config/spu/spu.c (reg_names): Remove prototype.
7624 (call_used_regs): Likewise.
7625
7626 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
7627
7628 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
7629 "unused" with attribute "used".
7630 (__JCR_END__): Likewise.
7631 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
7632 "used" attribute.
7633 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
7634
7635 2010-07-14 Richard Guenther <rguenther@suse.de>
7636
7637 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
7638 (maybe_fixup_decls): Likewise.
7639 (input_gimple_stmt): Do not fixup anything.
7640 * lto-streamer-out.c (output_gimple_stmt): Make sure all
7641 non-automatic variable uses are wrapped inside a MEM_REF.
7642
7643 2010-07-14 Richard Henderson <rth@redhat.com>
7644
7645 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
7646 for functions.
7647 * varasm.c (assemble_variable): Remove early exit for functions;
7648 assert that we're given a variable.
7649
7650 2010-07-14 Jie Zhang <jie@codesourcery.com>
7651
7652 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
7653 cortex_a8_default when neon_type is not none.
7654
7655 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
7656
7657 * lower-subreg.c (subreg_context): New static bitmap.
7658 (decompose_multiword_subregs): Allocate and free it.
7659 (find_decomposable_subregs): Set a bit in it for a register that
7660 occurs in a subreg that changes mode but not size.
7661 (can_decompose_p): Test it instead of non_decomposable_context.
7662
7663 2010-07-14 Richard Guenther <rguenther@suse.de>
7664
7665 PR tree-optimization/44824
7666 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
7667 is_gimple_mem_ref_addr.
7668 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
7669 non-decl_address_invariant_p addresses.
7670
7671 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
7672
7673 * reload.c (find_reloads): Revert code to penalize small register
7674 classes that was brought in with the IRA merge.
7675
7676 2010-07-14 Richard Guenther <rguenther@suse.de>
7677
7678 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
7679 as base of ARRAY_REFs.
7680
7681 2010-07-14 Richard Guenther <rguenther@suse.de>
7682
7683 PR middle-end/44930
7684 * tree-pretty-print.c (do_niy): Do not print a newline.
7685
7686 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
7687
7688 * ira-int.h (struct ira_object): New.
7689 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
7690 (struct ira_allocno): Remove members min, max,
7691 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
7692 conflict_allocnos_num and conflict_vec_p. Add new member object.
7693 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
7694 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
7695 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
7696 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
7697 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
7698 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
7699 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
7700 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
7701 an ira_object_t rather than ira_allocno_t. All uses changed.
7702 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
7703 contains a vector of ira_object_t; all uses changed.
7704 (ira_objects_num): Declare variable.
7705 (ira_create_allocno_object): Declare function.
7706 (ira_conflict_vector_profitable_p): Adjust prototype.
7707 (ira_allocate_conflict_vec): Renamed from
7708 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
7709 (ira_allocate_object_conflicts): Renamed from
7710 ira_allocate_allocno_conflicts; first arg now ira_object_t.
7711 (struct ira_object_iterator): New.
7712 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
7713 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
7714 to conflict_vec_p. All uses changed.
7715 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
7716 Changed to take into account that conflicts are now tracked for
7717 objects.
7718 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
7719 Args changed to accept ira_object_t. All uses changed.
7720 (allocnos_conflict_p): New static function.
7721 (collected_conflict_objects): Renamed from collected_allocno_objects;
7722 now a vector of ira_object_t. All uses changed.
7723 (build_conflict_bit_table): Changed to take into account that
7724 conflicts are now tracked for objects.
7725 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
7726 (print_allocno_conflicts, ira_build_conflicts): Likewise.
7727 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
7728 setup_allocno_left_conflicts_size, allocno_reload_assign,
7729 fast_allocation): Likewise.
7730 * ira-lives.c (make_hard_regno_born, make_allocno_born)
7731 process_single_reg_class_operands, process_bb_node_lives): Likewise.
7732 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
7733 Likewise.
7734 * ira-build.c (ira_objects_num): New variable.
7735 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
7736 contains a vector of ira_object_t; all uses changed.
7737 (ira_object_id_map_vec): Corresponding change.
7738 (object_pool): New static variable.
7739 (initiate_allocnos): Initialize it.
7740 (finish_allocnos): Free it.
7741 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
7742 New functions.
7743 (ira_create_allocno): Don't set members that were removed.
7744 (ira_set_allocno_cover_class): Don't change conflict hard regs.
7745 (merge_hard_reg_conflicts): Changed to take into account that
7746 conflicts are now tracked for objects.
7747 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
7748 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
7749 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
7750 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
7751 setup_min_max_conflict_allocno_ids, ): Likewise.
7752 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
7753 to ira_object_t; all callers changed.
7754 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
7755 to ira_object_t, all callers changed.
7756 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
7757 to ira_object_t, all callers changed.
7758 (conflict_check, curr_conflict_check_tick): Renamed from
7759 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
7760 changed.
7761 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
7762 arg changed to ira_object_t, all callers changed.
7763 (create_cap_allocno): Call ira_create_allocno_object.
7764 (finish_allocno): Free the corresponding object.
7765 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
7766 callers changed. Adjusted for dealing with objects.
7767 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
7768 dealing with objects.
7769 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
7770
7771 * ira-int.h (struct live_range): Rename allocno member to object
7772 and change type to ira_object_t.
7773 (struct ira_object): New member live_ranges.
7774 (struct ira_allocno): Remove member live_ranges.
7775 (ALLOCNO_LIVE_RANGES): Remove.
7776 (OBJECT_LIVE_RANGES): New macro.
7777 (ira_create_live_range, ira_copy_live_range_list,
7778 ira_merge_live_range_list, ira_live_ranges_intersect_p,
7779 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
7780 * ira-build.c (ira_create_object): Initialize live ranges here.
7781 (ira_create_allocno): Not here.
7782 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
7783 changed to ira_object_t, all callers changed.
7784 (copy_live_range): Rename from copy_allocno_live_range, all callers
7785 changed.
7786 (ira_copy_live_range_list): Rename from
7787 ira_copy_allocno_live_range_list, all callers changed.
7788 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
7789 all callers changed.
7790 (ira_live_ranges_intersect_p): Rename from
7791 ira_allocno_live_ranges_intersect_p, all callers changed.
7792 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
7793 callers changed.
7794 (ira_finish_live_range_list): Rename from
7795 ira_finish_allocno_live_range_list, all callers changed.
7796 (change_object_in_range_list): Rename from change_allocno_in_range_list,
7797 last arg changed to ira_object_t, all callers changed.
7798 (finish_allocno): Changed to expect live ranges in the allocno's object.
7799 (move_allocno_live_ranges, copy_allocno_live_ranges,
7800 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
7801 ira_flattening, ira_build): Likewise.
7802 * ira-color.c (allocnos_have_intersected_live_ranges_p,
7803 slot_coalesced_allocno_live_ranges_intersect,
7804 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
7805 * ira-conflicts.c (build_conflict_bit_table): Likewise.
7806 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
7807 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
7808 make_allocno_dead, create_start_finish_chains,
7809 remove_some_program_points_and_update_live_ranges,
7810 ira_debug_live_range_list): Likewise.
7811
7812 * ira-int.h (ira_object_conflict_iterator): Rename from
7813 ira_allocno_conflict_iterator.
7814 (ira_object_conflict_iter_init): Rename from
7815 ira_allocno_conflict_iter_init, second arg changed to
7816 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
7817 FOR_EACH_ALLOCNO_CONFLICT.
7818 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
7819 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
7820 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
7821 * ira-conflicts.c (print_allocno_conflicts): Likewise.
7822
7823 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
7824
7825 PR other/44874
7826 * tree-dump.c (dump_options): Add enumerate_locals entry.
7827 Add TDF_NOID exclusion to all entry.
7828 * tree-dump.h (dump_enumerated_decls): Declare.
7829 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
7830 Don't display type uid.
7831 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
7832 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
7833 * tree-ssa-live.c: Include gimple.h.
7834 (numbered_tree_d): New struct.
7835 (numbered_tree): New typedef.
7836 (DEF_VEC_O (numbered_tree): New.
7837 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
7838 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
7839 (dump_enumerated_decls): Likewise.
7840 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
7841 debug info and flag_dump_final_insns, call dump_enumerated_decls.
7842 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
7843 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
7844
7845 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
7846
7847 * expmed.h (MAX_BITS_PER_WORD): Move to...
7848 * defaults.h (MAX_BITS_PER_WORD): ...here.
7849
7850 2010-07-13 DJ Delorie <dj@redhat.com>
7851
7852 * config/h8300/h8300.c (h8300_init_once): Default to
7853 -fstrict_volatile_bitfields.
7854
7855 * config/sh/sh.c (sh_override_options): Default to
7856 -fstrict_volatile_bitfields.
7857
7858 * config/rx/rx.c (rx_option_override): New.
7859
7860 * config/m32c/m32c.c (m32c_override_options): Default to
7861 -fstrict_volatile_bitfields.
7862
7863 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
7864
7865 * tree.h (build_function_call_expr): Delete.
7866 (build_call_expr_loc_array): New function.
7867 (build_call_expr_loc_vec): New function.
7868 * tree-flow.h (struct omp_region): Change type of ws_args field
7869 to a VEC.
7870 * builtins.c (build_function_call_expr): Delete.
7871 (build_call_expr_loc_array): New function.
7872 (build_call_expr_loc): Call it. Use XALLOCAVEC.
7873 (build_call_expr): Likewise.
7874 (build_call_expr_loc_vec): New function.
7875 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
7876 build_function_call_expr.
7877 * expr.c (emutls_var_address): Likewise.
7878 * varasm.c (emutls_common_1): Likewise.
7879 * omp-low.c (expand_omp_atomic_mutex): Likewise.
7880 (expand_omp_taskreg): Adjust for new type of region->ws_args.
7881 (get_ws_args_for): Return a VEC instead of a tree.
7882 (expand_parallel_call): Call build_call_expr_loc_vec instead of
7883 build_function_call_expr.
7884 * stor-layout.c (self_referential_size): Likewise.
7885
7886 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7887
7888 PR testsuite/44701
7889 * recog.c (constrain_operands): Allow side-effects in memory
7890 operands if either < or > constraint is used, rather than if
7891 both < and > is used.
7892
7893 2010-07-13 Richard Guenther <rguenther@suse.de>
7894
7895 PR middle-end/44911
7896 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
7897 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
7898 without name.
7899
7900 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
7901
7902 PR target/44761
7903 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
7904 to variable emited.
7905 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
7906 * config/sh/sh.md (symGOT_load): Likewise.
7907 (symDTPOFF2reg): Likewise.
7908 (symTPOFF2reg): Likewise.
7909
7910 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7911
7912 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
7913 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
7914
7915 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7916
7917 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
7918 explanation.
7919 Find ucontext_t * on Solaris 11.
7920 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
7921 Handle new Solaris 11 __sighndlr patterns.
7922
7923 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7924
7925 PR debug/44901
7926 * vec.h (VEC_block_remove): Fix comment.
7927 * tree-ssa-live.c (remove_unused_locals): Don't use
7928 VEC_unordered_remove on local_decls, instead replace a single
7929 vector element in each iteration if at least one element had
7930 to be removed and VEC_truncate at the end.
7931 * omp-low.c (expand_omp_taskreg): Likewise.
7932
7933 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7934
7935 * c-decl.c (finish_function): Fix typo in comment.
7936
7937 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
7938
7939 PR bootstrap/44921
7940 * postreload.c (move2add_use_add3_insn): Silence gcc warning
7941 on min_regno.
7942
7943 2010-07-12 Jakub Jelinek <jakub@redhat.com>
7944
7945 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
7946 (simplify_stmt_using_ranges): Use it.
7947
7948 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7949
7950 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
7951 member. Do not mark as GTY(()).
7952 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
7953 (spu_builtin_decls): New static variable.
7954 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
7955 (spu_init_builtins): Likewise.
7956 (spu_builtin_mul_widen_even): Likewise.
7957 (spu_builtin_mul_widen_odd): Likewise.
7958 (spu_builtin_mask_for_load): Likewise.
7959 (spu_builtin_vec_perm): Likewise.
7960 * config/spu/spu-c.c: Include "target.h".
7961 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
7962 of using spu_builtins[].fndecl.
7963
7964 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
7965
7966 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
7967 imply -minterlink-mips16.
7968
7969 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
7970
7971 * config/mips/mips.h (mips16_globals): Declare.
7972 (SWITCHABLE_TARGET): Define.
7973 * config/mips/mips.c: Include target-globals.h.
7974 (mips16_globals): New variable.
7975 (mips_set_mips16_mode): Use save_target_globals and
7976 restore_target_globals instead of target_reinit.
7977
7978 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
7979
7980 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
7981 to say that the function can be called more than once.
7982 * target-globals.c (save_target_globals): Call init_reg_sets.
7983
7984 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
7985
7986 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
7987 * bb-reorder.h: New file.
7988 * bb-reorder.c (default_target_bb_reorder): New variable.
7989 (this_target_bb_reorder): New conditional variable.
7990 (uncond_jump_length): Redefine as a macro.
7991 * target-globals.h (this_target_bb_reorder): Declare.
7992 (target_globals): Add a bb_reorder field.
7993 (restore_target_globals): Copy the bb_reorder field to
7994 this_target_bb-reorder.
7995 * target-globals.c: Include bb-reorder.h.
7996 (default_target_globals): Initialize the bb_reorder field.
7997 (save_target_globals): Likewise.
7998
7999 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8000
8001 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
8002 * gcse.h: New file.
8003 * gcse.c: Include gcse.h.
8004 (default_target_gcse): New variable.
8005 (this_target_gcse): New conditional variable.
8006 (can_copy): Redefine as a macro.
8007 (can_copy_init_p): New macro.
8008 (can_copy_p): Remove can_copy_init_p.
8009 * target-globals.h (this_target_gcse): Declare.
8010 (target_globals): Add a gcse field.
8011 (restore_target_globals): Copy the gcse field to this_target_gcse.
8012 * target-globals.c: Include gcse.h.
8013 (default_target_globals): Initialize the gcse field.
8014 (save_target_globals): Likewise.
8015
8016 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8017
8018 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
8019 and x_ira_prohibited_mode_move_regs_initialized_p.
8020 (ira_prohibited_mode_move_regs): Redefine as a macro.
8021 * ira.c (ira_prohibited_mode_move_regs): Delete.
8022 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
8023
8024 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8025
8026 * reload.h (target_reload): Add x_cached_reg_save_code and
8027 x_cached_reg_restore_code.
8028 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
8029 Redefine as macros.
8030
8031 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8032
8033 * Makefile.in (target-globals.o): Depend on builtins.h.
8034 * builtins.h: New file.
8035 * builtins.c: Include builtins.h.
8036 (default_target_builtins): New variable.
8037 (this_target_builtins): New conditional variable.
8038 (apply_args_mode, apply_result_mode): Redefine as macros.
8039 * target-globals.h (this_target_builtins): Declare.
8040 (target_globals): Add a builtins field.
8041 (restore_target_globals): Copy the builtins field to
8042 this_target_builtins.
8043 * target-globals.c: Include builtins.h.
8044 (default_target_globals): Initialize the builtins field.
8045 (save_target_globals): Likewise.
8046
8047 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8048
8049 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
8050 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
8051 from expmed.c.
8052 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
8053 (alg_hash, alg_hash_used_p): New macros.
8054 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
8055 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
8056 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
8057
8058 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8059
8060 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
8061 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
8062 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
8063 (this_op_costs, costs_classes): Redefine as macros.
8064 (record_reg_classes): Don't take op_costs as a parameter.
8065 (record_operand_costs): Likewise. Update calls to record_reg_classes.
8066 (scan_one_insn): Update call to record_operand_costs.
8067
8068 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8069
8070 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
8071 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
8072 (target_ira_int): New structure.
8073 (default_target_ira_int): Declare.
8074 (this_target_ira_int): Declare as a variable or define as a macro.
8075 (ira_reg_mode_hard_regset, ira_register_move_cost)
8076 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
8077 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
8078 (prohibited_class_mode_regs, ira_important_classes_num)
8079 (ira_important_classes, ira_reg_class_intersect)
8080 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
8081 (ira_reg_class_union): Redefine as macros.
8082 * ira.h (target_ira): New structure.
8083 (default_target_ira): Declare.
8084 (this_target_ira): Declare as a variable or define as a macro.
8085 (ira_available_class_regs, ira_hard_regno_cover_class)
8086 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
8087 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
8088 (ira_class_hard_regs_num): Redefine as macros.
8089 * ira.c (default_target_ira, default_target_ira_int): New variables.
8090 (this_target_ira, this_target_ira_int): New conditional variables.
8091 (ira_reg_mode_hard_regset, ira_memory_move_cost)
8092 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
8093 (ira_class_subset_p): Delete.
8094 (no_unit_alloc_regs): Redefine as a macro.
8095 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
8096 (ira_class_hard_regs_num, ira_class_hard_reg_index)
8097 (ira_available_class_regs): Delete.
8098 (alloc_reg_class_subclasses): Redefine as a macro.
8099 (ira_reg_class_cover_size, ira_reg_class_cover)
8100 (ira_important_classes_num, ira_important_classes)
8101 (ira_important_class_nums, ira_class_translate): Delete.
8102 (cover_class_order): Document the variable's lifetime.
8103 (reorder_important_classes): Don't set ira_important_class_nums.
8104 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
8105 (ira_reg_class_super_classes, ira_reg_class_union)
8106 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
8107 Delete.
8108 (setup_reg_class_nregs): Don't set ira_max_regs.
8109 (prohibited_class_mode_regs): Delete.
8110 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
8111 (target_globals): Add ira and ira_int fields.
8112 (restore_target_globals): Copy the ira field to this_target_ira
8113 and the ira_int field to this_target_ira_int.
8114 * target-globals.c: Include ira-int.h.
8115 (default_target_globals): Initialize the ira and ira_int fields.
8116 (save_target_globals): Likewise.
8117
8118 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8119
8120 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
8121 * cfgloop.h (target_cfgloop): New structure.
8122 (default_target_cfgloop): Declare.
8123 (this_target_cfgloop): Declare as a variable or define as a macro.
8124 (target_avail_regs, target_clobbered_regs, target_res_regs)
8125 (target_reg_cost, target_spill_cost): Redefine as macros.
8126 * cfgloopanal.c (default_target_cfgloop): New variable.
8127 (this_target_cfgloop): New conditional variable.
8128 (target_avail_regs, target_clobbered_regs, target_res_regs)
8129 (target_reg_cost, target_spill_cost): Delete.
8130 * target-globals.h (this_target_cfgloop): Declare.
8131 (target_globals): Add a cfgloop field.
8132 (restore_target_globals): Copy the cfgloop field to
8133 this_target_cfgloop.
8134 * target-globals.c: Include cfgloop.h.
8135 (default_target_globals): Initialize the cfgloop field.
8136 (save_target_globals): Likewise.
8137
8138 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8139
8140 * regs.h (target_regs): Add x_direct_load, x_direct_store and
8141 x_float_extend_from_mem.
8142 (direct_load, direct_store, float_extend_from_mem): New macros.
8143 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
8144
8145 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8146
8147 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
8148 (target-globals.o): Depend on $(LIBFUNCS_H).
8149 * libfuncs.h: Include hashtab.h.
8150 (libfunc_entry): Moved from optabs.c.
8151 (target_libfuncs): New structure.
8152 (default_target_libfuncs): Declare.
8153 (this_target_libfuncs): Declare as a variable or define as a macro.
8154 (libfunc_table): Redefine as a macro.
8155 * optabs.c (default_target_libfuncs): New variable.
8156 (this_target_libfuncs): New conditional variable.
8157 (libfunc_table): Delete.
8158 (libfunc_entry): Moved to optabs.h.
8159 (libfunc_hash): Redefine as a macro.
8160 (hash_libfunc, eq_libfunc): Fix comments.
8161 (init_optabs): Use libfunc_hash to detect cases where the function
8162 has already been called. Clear the hash table instead of
8163 recreating it.
8164 * target-globals.h (this_target_libfuncs): Declare.
8165 (target_globals): Add a libfuncs field.
8166 (restore_target_globals): Copy the libfuncs field to
8167 this_target_libfuncs.
8168 * target-globals.c: Include libfuncs.h.
8169 (default_target_globals): Initialize the libfuncs field.
8170 (save_target_globals): Likewise.
8171
8172 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8173
8174 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
8175 in all dependency lists.
8176
8177 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8178
8179 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
8180 * optabs.h (target_optabs): New structure.
8181 (default_target_optabs): Declare.
8182 (this_target_optabs): Declare as a variable or define as a macro.
8183 (optab_table, convert_optab_table, direct_optab_table): Redefine
8184 as macros.
8185 * optabs.c (default_target_optabs): New variable.
8186 (this_target_optabs): New conditional variable.
8187 (optab_table, convert_optab_table, direct_optab_table): Delete.
8188 * target-globals.h (this_target_optabs): Declare.
8189 (target_globals): Add a optabs field.
8190 (restore_target_globals): Copy the optabs field to
8191 this_target_optabs.
8192 * target-globals.c: Include expr.h and optabs.h.
8193 (default_target_globals): Initialize the optabs field.
8194 (save_target_globals): Likewise.
8195
8196 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8197
8198 * flags.h (target_flagstate): Add x_flag_excess_precision.
8199 (flag_excess_precision): Redefine as a macro.
8200 * toplev.c (flag_excess_precision): Delete.
8201
8202 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8203
8204 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
8205 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
8206 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
8207 (no_caller_save_reg_set): Redefine as a macro.
8208 * reload.h (target_reload): Add x_caller_save_initialized_p and
8209 x_regno_save_mode.
8210 (caller_save_initialized_p): Redefine as a macro.
8211 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
8212 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
8213 (regno_save_mode): Redefine as a macro.
8214
8215 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8216
8217 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
8218 * expmed.h: New file.
8219 * expmed.c (default_target_costs): New variable.
8220 (this_target_costs): New conditional variable.
8221 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
8222 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
8223 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
8224 * target-globals.h (this_target_expmed): Declare.
8225 (target_globals): Add a expmed field.
8226 (restore_target_globals): Copy the expmed field to
8227 this_target_expmed.
8228 * target-globals.c: Include expmed.h.
8229 (default_target_globals): Initialize the expmed field.
8230 (save_target_globals): Likewise.
8231
8232 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8233
8234 * Makefile.in (target-globals.o): Depend on reload.h.
8235 * reload.h (target_reload): New structure.
8236 (default_target_reload): Declare.
8237 (this_target_reload): Declare as a variable or define as a macro.
8238 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
8239 * reload1.c (default_target_reload): New variable
8240 (this_target_reload): New conditional variable.
8241 (indirect_symref_ok, double_reg_address_ok): Delete.
8242 (spill_indirect_levels): Redefine as a macro.
8243 * target-globals.h (this_target_reload): Declare.
8244 (target_globals): Add a reload field.
8245 (restore_target_globals): Copy the reload field to
8246 this_target_reload.
8247 * target-globals.c: Include hard-reg-set.h.
8248 (default_target_globals): Initialize the reload field.
8249 (save_target_globals): Likewise.
8250
8251 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8252
8253 * rtl.h (target_rtl): Add x_static_reg_base_value.
8254 * alias.c (static_reg_base_value): Redefine as a macro.
8255
8256 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8257
8258 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
8259 (GTFILES): Remove reginfo.c.
8260 * rtl.h (target_rtl): Add x_top_of_stack.
8261 (top_of_stack): New macro.
8262 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
8263 (top_of_stack): Delete.
8264
8265 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8266
8267 * regs.h (target_regs): Add x_hard_regs_of_mode,
8268 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
8269 x_may_move_out_cost and x_last_mode_for_init_move_cost.
8270 (have_regs_of_mode, contains_reg_of_mode, move_cost)
8271 (may_move_in_cost, may_move_out_cost): Redefine as macros.
8272 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
8273 (may_move_in_cost, may_move_out_cost): Delete.
8274 (last_mode_for_init_move_cost): Redefine as a macro.
8275
8276 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8277
8278 * hard-reg-set.h (target_hard_regs): New structure.
8279 (default_target_hard_regs): Declare.
8280 (this_target_hard_regs): Declare as a variable or define as a macro.
8281 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
8282 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
8283 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
8284 (reg_class_size, reg_class_subclasses, reg_class_subunion)
8285 (reg_class_superunion, reg_names): Redefine as macros.
8286 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
8287 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
8288 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
8289 (reg_class_contents, reg_class_size, reg_class_subclasses)
8290 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
8291 (default_target_hard_regs): New variable
8292 (this_target_hard_regs, initial_call_really_used_regs)
8293 (initial_reg_alloc_order): New conditional variables.
8294 (initial_reg_names): New variable.
8295 (init_reg_sets): Assert that initial_call_really_used_regs,
8296 initial_reg_alloc_order and initial_reg_names
8297 are all the same size as their variable counterparts. Use them to
8298 initialize those counterparts.
8299 * target-globals.h (this_target_hard_regs): Declare.
8300 (target_globals): Add a hard_regs field.
8301 (restore_target_globals): Copy the hard_regs field to
8302 this_target_hard_regs.
8303 * target-globals.c: Include hard-reg-set.h.
8304 (default_target_globals): Initialize the hard_regs field.
8305 (save_target_globals): Likewise.
8306
8307 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8308
8309 * Makefile.in (target-globals.o): Depend on $(RTL_H).
8310 * rtl.h (target_rtl): New structure.
8311 (default_target_rtl): Declare.
8312 (this_target_rtl): Declare as a variable or define as a macro.
8313 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
8314 Redefine as macros.
8315 * emit-rtl.c (default_target_rtl): New variable.
8316 (this_target_rtl): New conditional variable.
8317 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
8318 (return_address_pointer_rtx): Delete.
8319 (initial_regno_reg_rtx): New macro.
8320 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
8321 (init_emit_regs): Likewise.
8322 * target-globals.h (this_target_rtl): Declare.
8323 (target_globals): Add a rtl field.
8324 (restore_target_globals): Copy the rtl field to this_target_rtl.
8325 * target-globals.c: Include rtl.h.
8326 (default_target_globals): Initialize the rtl field.
8327 (save_target_globals): Likewise.
8328
8329 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8330
8331 * Makefile.in (target-globals.o): Depend on $(REGS_H).
8332 * regs.h (target_reg_modes): New structure.
8333 (default_target_reg_modes): Declare.
8334 (this_target_reg_modes): Declare as a variable or define as a macro.
8335 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
8336 * reginfo.c (default_target_reg_modes): New variable.
8337 (this_target_reg_modes): New conditional variable.
8338 (hard_regno_nregs, reg_raw_mode): Delete.
8339 * target-globals.h (this_target_regs): Declare.
8340 (target_globals): Add a regs field.
8341 (restore_target_globals): Copy the regs field to this_target_regs.
8342 * target-globals.c: Include regs.h.
8343 (default_target_globals): Initialize the regs field.
8344 (save_target_globals): Likewise.
8345
8346 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8347
8348 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
8349 * doc/tm.texi: Regenerate.
8350 * Makefile.in (OBJS-common): Add target-globals.o.
8351 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
8352 and target-globals.h.
8353 (target-globals.o): New rule.
8354 (GTFILES): Include $(srcdir)/target-globals.h.
8355 * defaults.h (SWITCHABLE_TARGET): Define.
8356 * gengtype.c (open_base_files): Add target-globals.h to the
8357 list of includes.
8358 * target-globals.h: New file.
8359 * target-globals.c: Likewise.
8360
8361 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
8362 * flags.h (target_flag_state): New structure.
8363 (default_target_flag_state): Declare.
8364 (this_target_flag_state): Declare as a variable or define as a macro.
8365 (align_loops_log): Redefine as a macro.
8366 (align_loops_max_skip, align_jumps_log): Likewise.
8367 (align_jumps_max_skip, align_labels_log): Likewise.
8368 (align_labels_max_skip, align_functions_log): Likewise.
8369 * toplev.c (default_target_flag_state): New variable.
8370 (this_target_flag_state): New conditional variable.
8371 (align_loops_log): Delete.
8372 (align_loops_max_skip, align_jumps_log): Likewise.
8373 (align_jumps_max_skip, align_labels_log): Likewise.
8374 (align_labels_max_skip, align_functions_log): Likewise.
8375 * target-globals.h (this_target_flag_state): Declare.
8376 (target_globals): Add a flag_state field.
8377 (restore_target_globals): Copy the flag_state field to
8378 this_target_flag_state.
8379 * target-globals.c: Include flags.h.
8380 (default_target_globals): Initialize the flag_state field.
8381 (save_target_globals): Likewise.
8382
8383 2010-07-12 Jie Zhang <jie@codesourcery.com>
8384
8385 * postreload.c (reg_symbol_ref[]): New.
8386 (move2add_use_add2_insn): New.
8387 (move2add_use_add3_insn): New.
8388 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
8389 (move2add_note_store): Likewise.
8390
8391 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
8392
8393 PR rtl-optimization/44752
8394 * genautomata.c (main): Don't emit an empty file even if there
8395 is no automaton.
8396
8397 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8398
8399 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
8400 ix86_solaris_return_in_memory.
8401 * config/i386-protos.h: Reflect this.
8402 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
8403 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
8404 Move ...
8405 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
8406
8407 2010-07-12 Jie Zhang <jie@codesourcery.com>
8408
8409 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
8410 align the stack when it's going to be saved.
8411
8412 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8413
8414 PR pch/14940
8415 * config/host-solaris.c (mmap_fixed): New function.
8416 (sol_gt_pch_get_address): Use it.
8417 (sol_gt_pch_use_address): Likewise.
8418
8419 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8420
8421 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8422 pentiumpro on Solaris 8 and 9/x86.
8423 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
8424 Document SSE/SSE2 support.
8425 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
8426
8427 2010-07-12 Andi Kleen <ak@linux.intel.com>
8428
8429 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
8430 instead of gcc_assert to print better error message for multiple
8431 prevailing defs.
8432
8433 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
8434
8435 * config/i386/i386.c (ix86_asm_output_function_label): Change format
8436 string placeholder from 0x%x to %#x.
8437 (ix86_code_end): Use putc to output '\n'.
8438 (ix86_print_operand) <case ';'>: Use putc to output ';'.
8439
8440 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
8441
8442 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
8443 in directive -export.
8444
8445 2010-07-10 Anatoly Sokolov <aesok@post.ru>
8446
8447 * reginfo.h (reg_classes_intersect_p): Change arguments type to
8448 reg_class_t.
8449 * rtl.h (reg_classes_intersect_p): Adjust prototype.
8450
8451 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8452 Remove macros.
8453 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
8454 rs6000_memory_move_cost): Remove
8455 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
8456 TARGET_MEMORY_MOVE_COST): Define.
8457 (rs6000_register_move_cost): Make static. Change arguments type from
8458 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
8459 (rs6000_memory_move_cost): Make static. Change arguments type from
8460 'enum reg_class' to reg_class_t.
8461
8462 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
8463
8464 PR middle-end/42505
8465 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
8466 lookup code into....
8467 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
8468 new functions.
8469 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
8470 * cfgloopanal.c (target_clobbered_regs): Define.
8471 (init_set_costs): Initialize target_clobbered_regs.
8472 (estimate_reg_pressure_cost): Add call_p argument. When true,
8473 adjust the number of available registers to exclude the
8474 call-clobbered registers.
8475 * cfgloop.h (target_clobbered_regs): Declare.
8476 (estimate_reg_pressure_cost): Adjust declaration.
8477 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
8478 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
8479 (determine_set_costs): Dump target_clobbered_regs.
8480 (loop_body_includes_call): New function.
8481 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
8482 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
8483 call_p flag through.
8484 (best_gain_for_invariant): Likewise.
8485 (find_invariants_to_move): Likewise.
8486 (move_single_loop_invariants): Likewise, using already-computed
8487 has_call field.
8488
8489 2010-07-10 Richard Guenther <rguenther@suse.de>
8490 Joern Rennecke <joern.rennecke@embecosm.com>
8491
8492 PR debug/44832
8493 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
8494 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
8495 unless they have DECL_IGNORED_P set.
8496
8497 2010-07-10 Richard Guenther <rguenther@suse.de>
8498
8499 PR lto/44889
8500 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
8501 helper function.
8502 (gimple_types_compatible_p): Similar to pointed-to
8503 types allow and merge a mix of complete and incomplete aggregate.
8504 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
8505 (iterative_hash_gimple_type): Adjust for that.
8506
8507 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
8508
8509 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
8510
8511 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
8512
8513 PR objc/44140
8514 * config/darwin.c (output_objc_section_asm_op): Save and restore
8515 section when outputting ObjC section list.
8516
8517 2010-07-09 Jan Hubicka <jh@suse.cz>
8518
8519 * lto-streamer-out.c (produce_symtab): Do not write alias
8520 cgraph/varpool nodes.
8521
8522 2010-07-09 Jan Hubicka <jh@suse.cz>
8523
8524 * tree-inline.c (declare_return_variable): Fix ICE while
8525 inlining DECL_BY_VALUE function not in SSA form
8526
8527 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
8528
8529 PR tree-optimization/44576
8530 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
8531 New. Pull out from is_loop_prefetching_profitable to implement
8532 the trip count to ahead ratio heuristic.
8533 (mem_ref_count_reasonable_p): New. Pull out from
8534 is_loop_prefetching_profitable to implement the instruction to
8535 memory reference ratio heuristic. Also consider not reasonable if
8536 the memory reference count is above a threshold (to avoid
8537 explosive compilation time.
8538 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
8539 is_loop_prefetching_profitable to implement the instruction to
8540 prefetch ratio heuristic.
8541 (is_loop_prefetching_profitable): Removed.
8542 (loop_prefetch_arrays): Distribute the cost analysis across the
8543 function to allow early exit of the prefetch analysis.
8544 is_loop_prefetching_profitable is splitted into three functions,
8545 with each one called as early as possible.
8546 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
8547 number of memory references in a loop is considered too many.
8548
8549 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
8550
8551 * reload.c (find_reloads): Don't clear badop if we have a winreg
8552 alternative, but not win, and the class only has fixed regs.
8553 * hard-reg-set.h (class_only_fixed_regs): Declare.
8554 * reginfo.c (class_only_fixed_regs): New array.
8555 (init_reg_sets_1): Initialize it.
8556 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
8557 discourage alternatives using the stack pointer.
8558
8559 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
8560
8561 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
8562
8563 * config/arm/arm.md (cbranchqi4): Fix array size.
8564 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
8565 calculating length.
8566
8567 2010-07-09 Richard Guenther <rguenther@suse.de>
8568
8569 * gimple.c (struct type_fixup_s): New struct and VEC type.
8570 (gimple_register_type_fixups): New static global.
8571 (gimple_queue_type_fixup): New function.
8572 (gimple_types_compatible_p): Queue type fixups instead of
8573 applying them here.
8574 (gimple_register_type): Apply queued fixups for the
8575 canonical type. Empty the type fixup queue.
8576
8577 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
8578
8579 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
8580 * configure: Regenerate.
8581 * config.in: Ditto.
8582
8583 2010-07-09 Jakub Jelinek <jakub@redhat.com>
8584 Denys Vlasenko <dvlasenk@redhat.com>
8585 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8586
8587 PR tree-optimization/28632
8588 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
8589 (extract_range_from_binary_expr): Further optimize
8590 BIT_AND_EXPR and BIT_IOR_EXPR.
8591
8592 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
8593
8594 * tree-if-conv.c (fold_or_predicates): New.
8595 (add_to_predicate_list): Call it.
8596
8597 2010-07-09 Richard Guenther <rguenther@suse.de>
8598
8599 PR middle-end/44890
8600 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
8601 if base is a pointer.
8602 * tree-cfg.c (verify_expr): Update MEM_REF checking.
8603
8604 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8605
8606 PR target/44877
8607 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
8608 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
8609 builtin mask for load/store builtins.
8610
8611 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
8612
8613 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
8614 for "lock addl".
8615 * configure: Regenerate.
8616 * config/i386/i386.c (ix86_print_operand) <case ';'>:
8617 Remove TARGET_MACHO.
8618
8619 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
8620
8621 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
8622 default ISA flags.
8623 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
8624
8625 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
8626
8627 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
8628
8629 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
8630
8631 * config/picochip/picochip.md (commsTestPort): Emit more
8632 efficient sequence for tstport instruction.
8633
8634 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
8635
8636 * config/i386/i386.c (ix86_veclib_handler): Make static.
8637
8638 2010-07-09 Richard Guenther <rguenther@suse.de>
8639
8640 PR tree-optimization/44852
8641 * tree-ssa-alias.c: Include toplev.h for exact_log2.
8642 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
8643 in MEM_REF.
8644 (indirect_refs_may_alias_p): Likewise.
8645 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
8646
8647 2010-07-09 Richard Guenther <rguenther@suse.de>
8648
8649 PR tree-optimization/44882
8650 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
8651 sets do conflict.
8652 (vectorizable_load): Likewise.
8653
8654 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
8655
8656 PR target/40657
8657 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
8658 All callers changed.
8659 Handle the case when we're called for the epilogue.
8660 (thumb_unexpanded_epilogue): Use it.
8661 (thumb1_expand_epilogue): Likewise.
8662
8663 2010-07-09 Jakub Jelinek <jakub@redhat.com>
8664
8665 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
8666 both ranges are range_int_cst_p with non-negative minimum,
8667 try harder to derive smaller range.
8668
8669 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8670
8671 * genrecog.c: Include diagnostic-core.h before toplev.h.
8672 * genoutput.c: Likewise.
8673 * genextract.c: Likewise.
8674 * genautomata.c: Likewise.
8675 * genemit.c: Likewise.
8676 * genpeep.c: Likewise.
8677 * genattrtab.c: Likewise.
8678 * genconditions.c: Likewise.
8679 * genpreds.c: Likewise.
8680
8681 2010-07-08 Andi Kleen <ak@linux.intel.com>
8682
8683 * lto-section-in.c (lto_section_name): Add missing comma.
8684
8685 2010-07-08 Anatoly Sokolov <aesok@post.ru>
8686
8687 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
8688 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
8689 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
8690 (ia64_override_options): Rename to...
8691 (ia64_option_override): ... this one. Make static.
8692
8693 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
8694
8695 PR middle-end/44843
8696 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
8697 pointed-to type of the offset in a MEM_REF to compute the alignment.
8698
8699 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
8700
8701 * final.c (final_scan_insn): Replace
8702 TARGET_UNWIND_INFO macro check by unwind_emit
8703 hook NULL check.
8704 * targhooks.c (default_unwind_emit): Removed.
8705 * targhooks.h (default_unwind_emit): Likewise.
8706 * target.def (unwind_emit): Set default value to NULL.
8707
8708 * config/i386/i386-protos.h (ix86_asm_output_function_label):
8709 New prototype.
8710 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
8711 for NULL fntype argument and allow 64-bit targets.
8712 (ix86_asm_output_function_label): New function.
8713 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
8714 (ix86_handle_fndecl_attribute): Likewise.
8715 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
8716 * doc/doc/tm.texi: Regenerated.
8717 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
8718 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
8719 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
8720 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
8721 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
8722 * config/elfos.h: Likewise.
8723 * config/i386/cygming.h: Likewise.
8724 * config/netbsd-aout.h: Likewise.
8725 * config/openbsd.h: Likewise.
8726 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
8727 by ix86_asm_output_function_label function call.
8728 * varasm.c (assemble_start_function): Use
8729 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
8730
8731 2010-07-08 Jan Hubicka <jh@suse.cz>
8732
8733 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
8734 New function.
8735 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
8736 Declare.
8737 * ipa-cp.c (ipcp_estimate_growth): Use it.
8738 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
8739 Likewise.
8740
8741 2010-07-08 Jan Hubicka <jh@suse.cz>
8742
8743 * tree-inline.c (declare_return_variable): Allocate annotation for new
8744 temporary.
8745
8746 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
8747
8748 PR tree-optimization/44710
8749 * tree-if-conv.c (parse_predicate): New.
8750 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
8751 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
8752
8753 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
8754
8755 * common.opt (ftree-loop-if-convert): New flag.
8756 * doc/invoke.texi (ftree-loop-if-convert): Documented.
8757 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
8758 when flag_tree_loop_if_convert is set.
8759
8760 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
8761
8762 * config/i386/i386.c: Use short syntax for function calls
8763 through function pointers.
8764 * config/i386/i386.md: Ditto.
8765
8766 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
8767
8768 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
8769
8770 2010-07-08 Richard Guenther <rguenther@suse.de>
8771
8772 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
8773 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
8774
8775 2010-07-08 Jakub Jelinek <jakub@redhat.com>
8776
8777 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
8778 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
8779 (loc_list_from_tree): Likewise.
8780 (output_loc_operands): Handle outputting DW_OP_const[48]u
8781 with loc->dtprel set.
8782 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
8783
8784 2010-07-08 Jan Hubicka <jh@suse.cz>
8785
8786 * ipa.c: Include pointer-set.h
8787 (cgraph_externally_visible_p): New attribute ALIASED;
8788 when in LTO, hidden symbols are local unless they are aliased.
8789 (function_and_variable_visibility): Compute aliased nodes;
8790 handle LTO and hidden symbol on functions and vars.
8791 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
8792 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
8793
8794 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
8795
8796 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8797 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8798 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8799 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8800 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8801 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
8802 (ix86_gen_probe_stack_range): Likewise.
8803 (override_options): Set them.
8804 (ix86_target_stack_probe): New function.
8805 (ix86_compute_frame_layout): Force use of push instructions to
8806 save registers if stack checking with probes is enabled.
8807 (get_scratch_register_on_entry): New function.
8808 (release_scratch_register_on_entry): Likewise.
8809 (ix86_adjust_stack_and_probe): Likewise.
8810 (output_adjust_stack_and_probe): Likewise.
8811 (ix86_emit_probe_stack_range): Likewise.
8812 (output_probe_stack_range): Likewise.
8813 (ix86_expand_prologue): Emit stack checking code if static built-in
8814 stack checking is enabled.
8815 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
8816 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
8817 (output_adjust_stack_and_probe): Likewise.
8818 (output_probe_stack_range): Likewise.
8819 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8820 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
8821 TARGET_STACK_PROBE.
8822 (allocate_stack_worker_64): Likewise.
8823 (allocate_stack): Likewise.
8824 (adjust_stack_and_probe): New insn.
8825 (probe_stack_range): Likewise.
8826
8827 2010-07-08 Richard Guenther <rguenther@suse.de>
8828
8829 PR tree-optimization/44831
8830 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
8831 a MEM_REF preserving TBAA info of the original dereference.
8832 Dereference the original pointer if the address is not invariant.
8833 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
8834 at least one invariant address that we are going to dereference.
8835
8836 2010-07-08 Richard Guenther <rguenther@suse.de>
8837
8838 PR tree-optimization/44861
8839 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
8840 information when building MEM_REFs.
8841 (vectorizable_load): Likewise.
8842 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
8843
8844 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
8845
8846 * config/sol2-c.c: Do not include diagnostic-core.h.
8847
8848 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8849
8850 PR bootstrap/44768
8851 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
8852 with respect to current_function_decl. Pass decl of the function.
8853 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
8854 * ipa-inline.c (compute_inline_parameters): Pass decl to
8855 estimated_stack_frame_size.
8856
8857 2010-07-08 Richard Guenther <rguenther@suse.de>
8858
8859 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8860 New function.
8861 (valueize_refs): Call it.
8862
8863 2010-07-08 Richard Guenther <rguenther@suse.de>
8864
8865 PR rtl-optimization/44838
8866 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
8867 SSA form do not use pointer equivalence.
8868
8869 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
8870
8871 * dwarf2out.c (AT_linkage_name): Delete.
8872 (add_linkage_attr): New function.
8873 (add_linkage_name): Call it to emit the linkage attribute.
8874 (dwarf2out_finish): Likewise.
8875 (move_linkage_attr): Explicitly accept both attribute variants.
8876
8877 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8878
8879 * toplev.h: Do not include diagnostic-core.h.
8880 Include diagnostic-core.h in every file that includes toplev.h.
8881 * c-tree.h: Do not include toplev.h.
8882 * pretty-print.h: Update comment.
8883 * Makefile.in: Update dependencies.
8884 * alias.c: Include diagnostic-core.h in every file that includes
8885 toplev.h.
8886 * attribs.c: Likewise.
8887 * auto-inc-dec.c: Likewise.
8888 * bb-reorder.c: Likewise.
8889 * bt-load.c: Likewise.
8890 * caller-save.c: Likewise.
8891 * calls.c: Likewise.
8892 * cfg.c: Likewise.
8893 * cfganal.c: Likewise.
8894 * cfgbuild.c: Likewise.
8895 * cfgcleanup.c: Likewise.
8896 * cfghooks.c: Likewise.
8897 * cfgloop.c: Likewise.
8898 * combine.c: Likewise.
8899 * config/alpha/alpha.c: Likewise.
8900 * config/arc/arc.c: Likewise.
8901 * config/arm/arm.c: Likewise.
8902 * config/arm/pe.c: Likewise.
8903 * config/avr/avr.c: Likewise.
8904 * config/bfin/bfin.c: Likewise.
8905 * config/cris/cris.c: Likewise.
8906 * config/crx/crx.c: Likewise.
8907 * config/darwin-c.c: Likewise.
8908 * config/darwin.c: Likewise.
8909 * config/fr30/fr30.c: Likewise.
8910 * config/frv/frv.c: Likewise.
8911 * config/h8300/h8300.c: Likewise.
8912 * config/host-darwin.c: Likewise.
8913 * config/i386/i386.c: Likewise.
8914 * config/i386/netware.c: Likewise.
8915 * config/i386/nwld.c: Likewise.
8916 * config/i386/winnt-cxx.c: Likewise.
8917 * config/i386/winnt-stubs.c: Likewise.
8918 * config/i386/winnt.c: Likewise.
8919 * config/ia64/ia64-c.c: Likewise.
8920 * config/ia64/ia64.c: Likewise.
8921 * config/iq2000/iq2000.c: Likewise.
8922 * config/lm32/lm32.c: Likewise.
8923 * config/m32c/m32c-pragma.c: Likewise.
8924 * config/m32c/m32c.c: Likewise.
8925 * config/m32r/m32r.c: Likewise.
8926 * config/m68hc11/m68hc11.c: Likewise.
8927 * config/m68k/m68k.c: Likewise.
8928 * config/mcore/mcore.c: Likewise.
8929 * config/mep/mep-pragma.c: Likewise.
8930 * config/mep/mep.c: Likewise.
8931 * config/mmix/mmix.c: Likewise.
8932 * config/mn10300/mn10300.c: Likewise.
8933 * config/moxie/moxie.c: Likewise.
8934 * config/pa/pa.c: Likewise.
8935 * config/pdp11/pdp11.c: Likewise.
8936 * config/picochip/picochip.c: Likewise.
8937 * config/rs6000/rs6000-c.c: Likewise.
8938 * config/rs6000/rs6000.c: Likewise.
8939 * config/rx/rx.c: Likewise.
8940 * config/s390/s390.c: Likewise.
8941 * config/score/score.c: Likewise.
8942 * config/score/score3.c: Likewise.
8943 * config/score/score7.c: Likewise.
8944 * config/sh/sh.c: Likewise.
8945 * config/sh/symbian-base.c: Likewise.
8946 * config/sh/symbian-c.c: Likewise.
8947 * config/sh/symbian-cxx.c: Likewise.
8948 * config/sol2-c.c: Likewise.
8949 * config/sol2.c: Likewise.
8950 * config/sparc/sparc.c: Likewise.
8951 * config/spu/spu.c: Likewise.
8952 * config/stormy16/stormy16.c: Likewise.
8953 * config/v850/v850-c.c: Likewise.
8954 * config/v850/v850.c: Likewise.
8955 * config/vax/vax.c: Likewise.
8956 * config/vxworks.c: Likewise.
8957 * config/xtensa/xtensa.c: Likewise.
8958 * convert.c: Likewise.
8959 * cse.c: Likewise.
8960 * cselib.c: Likewise.
8961 * dbgcnt.c: Likewise.
8962 * dbxout.c: Likewise.
8963 * ddg.c: Likewise.
8964 * dominance.c: Likewise.
8965 * emit-rtl.c: Likewise.
8966 * explow.c: Likewise.
8967 * expmed.c: Likewise.
8968 * fixed-value.c: Likewise.
8969 * fold-const.c: Likewise.
8970 * fwprop.c: Likewise.
8971 * gcse.c: Likewise.
8972 * ggc-common.c: Likewise.
8973 * ggc-page.c: Likewise.
8974 * ggc-zone.c: Likewise.
8975 * gimple-low.c: Likewise.
8976 * gimplify.c: Likewise.
8977 * graph.c: Likewise.
8978 * haifa-sched.c: Likewise.
8979 * ifcvt.c: Likewise.
8980 * implicit-zee.c: Likewise.
8981 * integrate.c: Likewise.
8982 * ira-build.c: Likewise.
8983 * ira-color.c: Likewise.
8984 * ira-conflicts.c: Likewise.
8985 * ira-costs.c: Likewise.
8986 * ira-lives.c: Likewise.
8987 * ira.c: Likewise.
8988 * lists.c: Likewise.
8989 * loop-doloop.c: Likewise.
8990 * loop-iv.c: Likewise.
8991 * lto-opts.c: Likewise.
8992 * lto-symtab.c: Likewise.
8993 * main.c: Likewise.
8994 * modulo-sched.c: Likewise.
8995 * optabs.c: Likewise.
8996 * params.c: Likewise.
8997 * plugin.c: Likewise.
8998 * postreload-gcse.c: Likewise.
8999 * postreload.c: Likewise.
9000 * predict.c: Likewise.
9001 * profile.c: Likewise.
9002 * real.c: Likewise.
9003 * regcprop.c: Likewise.
9004 * reginfo.c: Likewise.
9005 * regmove.c: Likewise.
9006 * reorg.c: Likewise.
9007 * resource.c: Likewise.
9008 * rtl.c: Likewise.
9009 * rtlanal.c: Likewise.
9010 * sched-deps.c: Likewise.
9011 * sched-ebb.c: Likewise.
9012 * sched-rgn.c: Likewise.
9013 * sdbout.c: Likewise.
9014 * sel-sched-dump.c: Likewise.
9015 * sel-sched-ir.c: Likewise.
9016 * simplify-rtx.c: Likewise.
9017 * stmt.c: Likewise.
9018 * stor-layout.c: Likewise.
9019 * store-motion.c: Likewise.
9020 * targhooks.c: Likewise.
9021 * tree-cfg.c: Likewise.
9022 * tree-cfgcleanup.c: Likewise.
9023 * tree-dump.c: Likewise.
9024 * tree-eh.c: Likewise.
9025 * tree-inline.c: Likewise.
9026 * tree-nomudflap.c: Likewise.
9027 * tree-object-size.c: Likewise.
9028 * tree-optimize.c: Likewise.
9029 * tree-outof-ssa.c: Likewise.
9030 * tree-phinodes.c: Likewise.
9031 * tree-profile.c: Likewise.
9032 * tree-ssa-ccp.c: Likewise.
9033 * tree-ssa-coalesce.c: Likewise.
9034 * tree-ssa-live.c: Likewise.
9035 * tree-ssa-loop-niter.c: Likewise.
9036 * tree-ssa-loop-prefetch.c: Likewise.
9037 * tree-ssa-loop.c: Likewise.
9038 * tree-ssa-structalias.c: Likewise.
9039 * tree-ssa-uninit.c: Likewise.
9040 * tree-ssa.c: Likewise.
9041 * tree-vect-data-refs.c: Likewise.
9042 * tree-vect-loop-manip.c: Likewise.
9043 * tree-vect-loop.c: Likewise.
9044 * tree-vect-patterns.c: Likewise.
9045 * tree-vect-stmts.c: Likewise.
9046 * tree-vrp.c: Likewise.
9047 * varasm.c: Likewise.
9048 * vec.c: Likewise.
9049 * web.c: Likewise.
9050 * xcoffout.c: Likewise.
9051
9052 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
9053
9054 * gengtype.c (write_field_root): New function.
9055 (write_root): Use it.
9056
9057 2010-07-07 Wei Guozhi <carrot@google.com>
9058
9059 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
9060 of lowest bits to lshift/compare): Add a missing line.
9061
9062 2010-07-07 Wei Guozhi <carrot@google.com>
9063
9064 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
9065 of lowest bits to lshift/compare): New.
9066
9067 2010-07-07 Tom Tromey <tromey@redhat.com>
9068
9069 * doc/tm.texi: Update.
9070 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
9071 Add @hook.
9072 * target.def (want_debug_pub_sections): New hook.
9073 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
9074 * dwarf2out.c (add_pubname_string): Check
9075 targetm.want_debug_pub_sections.
9076 (add_pubname): Likewise.
9077 (add_pubtype): Likewise.
9078
9079 2010-07-07 Jie Zhang <jie@codesourcery.com>
9080
9081 * genautomata.c (output_automata_list_min_issue_delay_code):
9082 Correctly decompress min_issue_delay.
9083
9084 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
9085
9086 PR rtl-optimization/44404
9087 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
9088 possible, use reg_overlap_mentioned_p instead.
9089
9090 2010-07-07 Duncan Sands <baldrick@free.fr>
9091
9092 PR middle-end/41355
9093 * tree.c (build_function_type_skip_args): Copy the original type using
9094 build_distinct_type_copy rather than copy_node.
9095
9096 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
9097
9098 PR target/44850
9099 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
9100 revision 161876.
9101 (ix86_expand_prologue): Likewise.
9102 (ix86_handle_fndecl_attribute): Likewise.
9103 (ix86_asm_declare_function_name): Likewise.
9104 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9105 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9106 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
9107 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
9108 * doc/extend.texi: Likewise.
9109
9110 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
9111
9112 PR target/44844
9113 * config/i386/i386.md (rdrand<mode>): Changed to expand to
9114 retry if the carry flag isn't valid.
9115 (rdrand<mode>_1): New.
9116
9117 2010-07-07 Richard Guenther <rguenther@suse.de>
9118
9119 PR middle-end/44790
9120 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
9121 for expanding the constant offset for MEM_REFs.
9122
9123 2010-07-07 Richard Guenther <rguenther@suse.de>
9124
9125 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
9126 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
9127 * gimple.h (is_gimple_operand): Remove.
9128 * gimple.c (is_gimple_operand): Likewise.
9129 (walk_gimple_op): Fix wi->val_only setting for calls.
9130 * tree-cfg.c (verify_gimple_call): Fix argument validation.
9131 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
9132 invalid gimple calls.
9133
9134 2010-07-06 Jan Hubicka <jh@suse.cz>
9135
9136 * lto-cgraph.c (output_cgraph): Add missing declaration.
9137
9138 2010-07-06 Jan Hubicka <jh@suse.cz>
9139
9140 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
9141 partition.
9142
9143 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
9144
9145 * doc/gimple.texi (GIMPLE_DEBUG): Document.
9146 * doc/rtl.texi (Debug Information): New node.
9147 (NOTE_INSN_VAR_LOCATION): Document.
9148 (debug_insn): Likewise.
9149 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
9150
9151 2010-07-07 Jan Hubicka <jh@suse.cz>
9152
9153 With parts by Richard Guenther.
9154
9155 PR middle-end/44813
9156 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
9157 for functions passed by reference.
9158 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
9159 in memory when passed by reference.
9160 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
9161 beggining.
9162 * ipa-split.c (split_function): Cleanup way return value is passed;
9163 handle SSA DECL_BY_REFERENCE retvals.
9164 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
9165 DECL_BY_REFERENCE is set.
9166 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
9167 find_what_p_points_to): Handle RESULT_DECL.
9168 * tree-inline.c (declare_return_variable): Get new entry_block argument;
9169 when passing by reference ensure that RESULT_DECL is gimple_val.
9170 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
9171 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
9172
9173 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
9174
9175 PR rtl-optimization/44787
9176 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
9177 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
9178
9179 2010-07-06 Jan Hubicka <jh@suse.cz>
9180
9181 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
9182 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
9183 with body can prevail.
9184 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
9185 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
9186 * cgraph.c (cgraph_get_node_or_alias): New function.
9187 * cgraph.h (cgraph_get_node_or_alias): Declare.
9188
9189 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
9190
9191 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
9192 support.
9193 (ix86_expand_prologue): Likewise.
9194 (ix86_handle_fndecl_attribute): Likewise.
9195 (ix86_asm_declare_function_name): New function for
9196 ASM_DECLARE_FUNCTION_NAME.
9197 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
9198 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
9199 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
9200 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
9201 * doc/extend.texi: Adjust documentation about ms_hook_prologue
9202 attribute.
9203
9204 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
9205
9206 * config/i386/i386.md (immediate_operand): New mode attribute.
9207
9208 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
9209 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
9210 using P mode iterator.
9211 (pro_epilogue_adjust_stack_di_2): Rename from
9212 pro_epilogue_adjust_stack_rex64_2.
9213
9214 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
9215
9216 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
9217
9218 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
9219 through gen_mov_insv_1 function pointer.
9220 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
9221 gen_truncxf<mode>2 through gen_truncxf function pointer.
9222 (remainder<mode>3): Ditto.
9223 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
9224 (allocate_stack): Call gen_allocate_stack_worker_64 or
9225 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
9226 function pointer.
9227 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
9228 function pointer.
9229
9230 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
9231
9232 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
9233 operand constraint instead of <r><i>m.
9234
9235 2010-07-06 Richard Guenther <rguenther@suse.de>
9236
9237 PR middle-end/44828
9238 * convert.c (convert_to_integer): Watch out for overflowing
9239 MULT_EXPR as well.
9240
9241 2010-07-05 Jan Hubicka <jh@suse.cz>
9242
9243 * lto-streamer.c (write_symbol_vec): Rename to ...
9244 (write_symbol) ... this one; write only symbol given and when
9245 present in cache. Sanity check that what is defined is present
9246 in cgraph/varpool with body/finalized decl.
9247 (write_symbols_of_kind): Remove.
9248 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
9249 pairs to produce symtab.
9250 (produce_asm_for_decls): Update call of produce_symtab; don't do so
9251 when doing WPA streaming.
9252
9253 2010-07-05 Jan Hubicka <jh@suse.cz>
9254
9255 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
9256 function is still available to fold into.
9257
9258 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
9259
9260 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
9261 * function.h (struct_function): Change type of local_decls field
9262 to a VEC.
9263 (add_local_decl): New function.
9264 (FOR_EACH_LOCAL_DECL): New macro.
9265 * cfgexpand.c (init_vars_expansion): Adjust for new type of
9266 cfun->local_decls.
9267 (estimated_stack_frame_size): Likewise.
9268 (expand_used_vars): Likewise.
9269 * cgraphbuild.c (build_cgraph_edges): Likewise.
9270 * function.c (instantiate_decls_1): Likewise.
9271 * ipa-struct-reorg.c (build_data_structure): Likewise.
9272 * ipa-type-escape.c (analyze_function): Likewise.
9273 * lto-streamer-in.c (input_function): Likewise.
9274 * lto-streamer-out.c (output_function): Likewise.
9275 * tree-ssa-live.c (remove_unused_locals): Likewise.
9276 * tree.c (free_lang_data_in_decl): Likewise.
9277 (find_decls_types_in_node): Likewise.
9278 * omp-low.c (remove_exit_barrier): Likewise.
9279 (expand_omp_taskreg): Likewise.
9280 (list2chain): Rename to...
9281 (vec2chain): ...this. Adjust.
9282 * cgraphunit.c (assemble_thunk): Call add_local_decl.
9283 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
9284 * gimple-low.c (record_vars_into): Likewise.
9285 * tree-inline.c (remap_decls): Likewise.
9286 (declare_return_variable): Likewise.
9287 (declare_inline_vars): Likewise.
9288 (copy_forbidden): Adjust for new type of cfun->local_decls.
9289 (add_local_variables): New function.
9290 (expand_call_inline): Call it.
9291 (tree_function_versioning): Likewise.
9292
9293 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
9294
9295 AVX Programming Reference (June, 2010)
9296 * config/i386/cpuid.h (bit_F16C): New.
9297 (bit_RDRND): Likewise.
9298 (bit_FSGSBASE): Likewise.
9299
9300 * config/i386/i386-builtin-types.def: Add
9301 "DEF_FUNCTION_TYPE (UINT16)", function types for
9302 float16 <-> float conversions and
9303 "DEF_FUNCTION_TYPE (VOID, UINT64)".
9304
9305 * config/i386/i386-c.c (ix86_target_macros_internal): Support
9306 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
9307 OPTION_MASK_ISA_F16C.
9308
9309 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
9310 (OPTION_MASK_ISA_RDRND_SET): Likewise.
9311 (OPTION_MASK_ISA_F16C_SET): Likewise.
9312 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
9313 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
9314 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
9315 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
9316 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
9317 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
9318 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
9319 (override_options): Handle them.
9320 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
9321 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
9322 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
9323 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
9324 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
9325 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
9326 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
9327 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
9328 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
9329 (bdesc_args): Likewise.
9330 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
9331 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
9332 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
9333 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
9334 Handle non-memory store.
9335
9336 * config/i386/i386.h (TARGET_FSGSBASE): New.
9337 (TARGET_RDRND): Likewise.
9338 (TARGET_F12C): Likewise.
9339
9340 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
9341 (UNSPEC_VCVTPS2PH): Likewise.
9342 (UNSPECV_RDFSBASE): Likewise.
9343 (UNSPECV_RDGSBASE): Likewise.
9344 (UNSPECV_WRFSBASE): Likewise.
9345 (UNSPECV_WRGSBASE): Likewise.
9346 (UNSPECV_RDRAND): Likewise.
9347 (rdfsbase<mode>): Likewise.
9348 (rdgsbase<mode>): Likewise.
9349 (wrfsbase<mode>): Likewise.
9350 (wrgsbase<mode>): Likewise.
9351 (rdrand<mode>): Likewise.
9352
9353 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
9354
9355 * config/i386/immintrin.h (_rdrand_u16): New.
9356 (_rdrand_u32): Likewise.
9357 (_readfsbase_u32): Likewise.
9358 (_readfsbase_u64): Likewise.
9359 (_readgsbase_u32): Likewise.
9360 (_readgsbase_u64): Likewise.
9361 (_writefsbase_u32): Likewise.
9362 (_writefsbase_u64): Likewise.
9363 (_writegsbase_u32): Likewise.
9364 (_writegsbase_u64): Likewise.
9365 (_rdrand_u64): Likewise.
9366 (_cvtsh_ss): Likewise.
9367 (_mm_cvtph_ps): Likewise.
9368 (_mm256_cvtph_ps): Likewise.
9369 (_cvtss_sh): Likewise.
9370 (_mm_cvtps_ph): Likewise.
9371 (_mm256_cvtps_ph): Likewise.
9372
9373 * config/i386/sse.md (vcvtph2ps): New.
9374 (*vcvtph2ps_load): Likewise.
9375 (vcvtph2ps256): Likewise.
9376 (vcvtps2ph): Likewise.
9377 (*vcvtps2ph): Likewise.
9378 (*vcvtps2ph_store): Likewise.
9379 (vcvtps2ph256): Likewise.
9380
9381 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
9382
9383 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
9384
9385 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
9386
9387 PR bootstrap/44512
9388 * genenums.c (main): Output include of insn-constants.h
9389 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
9390
9391 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
9392
9393 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
9394 (override_options): Initialize it.
9395 (ix86_expand_prologue): Use it.
9396
9397 2010-07-05 Jakub Jelinek <jakub@redhat.com>
9398
9399 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
9400
9401 2010-07-05 Anatoly Sokolov <aesok@post.ru>
9402
9403 * double-int.h (fit_double_type): Remove declaration.
9404 * double-int.c (fit_double_type): Remove function.
9405 * tree.h (int_fits_type_p): Adjust prototype.
9406 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
9407 instead of fit_double_type.
9408 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
9409 instead of fit_double_type and build_int_cst_wide.
9410 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
9411 instead of fit_double_type and build_int_cst_wide.
9412 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
9413 of fit_double_type.
9414
9415 2010-07-05 Jan Hubicka <jh@suse.cz>
9416
9417 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
9418 in_other_partition.
9419 * lto-cgraph.c (referenced_from_other_partition_p,
9420 reachable_from_other_partition_p): Use in_other_partition flags.
9421 (output_node, output_varpool_node): COMDAT nodes always have private
9422 copies and thus are never used from other partition.
9423
9424 2010-07-05 Anatoly Sokolov <aesok@post.ru>
9425
9426 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
9427 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
9428 * config/ia64/ia64.c Include reload.h.
9429 (ia64_memory_move_cost): New function.
9430 (TARGET_MEMORY_MOVE_COST): Define.
9431 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
9432 memory_move_cost.
9433
9434 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
9435
9436 PR middle-end/42505
9437 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
9438 comments about cost model.
9439 (try_add_cand_for): Add second strategy for choosing initial set
9440 based on original IVs, controlled by ORIGINALP argument.
9441 (get_initial_solution): Add ORIGINALP argument.
9442 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
9443 (find_optimal_iv_set): Try two different strategies for choosing
9444 the IV set, and return the one with lower cost.
9445
9446 2010-07-05 Richard Guenther <rguenther@suse.de>
9447
9448 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
9449
9450 2010-07-05 Richard Guenther <rguenther@suse.de>
9451
9452 * tree.c (reference_alias_ptr_type): New function.
9453 * tree.h (reference_alias_ptr_type): Declare.
9454 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
9455 allow non-TARGET_MEM_REF new refs.
9456 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
9457 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
9458 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
9459 (create_mem_ref): Get alias pointer type. Adjust calls to
9460 create_mem_ref_raw.
9461 (maybe_fold_tmr): Likewise.
9462 * tree-flow.h (create_mem_ref): Adjust prototype.
9463
9464 2010-07-05 Jakub Jelinek <jakub@redhat.com>
9465
9466 PR c++/44808
9467 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
9468 *from_p is VAR_DECL.
9469
9470 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
9471
9472 * tree.h (build_call_list): Remove.
9473 * tree.c (build_call_list): Remove.
9474
9475 2010-07-05 Richard Guenther <rguenther@suse.de>
9476
9477 * double-int.h (double_int_sub): Declare.
9478 * double-int.c (double_int_sub): New function.
9479 * dwarf2out.c (field_byte_offset): Use it.
9480 * fixed-value.c (do_fixed_add): Likewise.
9481 (do_fixed_multiply): Likewise.
9482 (do_fixed_divide): Likewise.
9483 * tree-predcom.c (add_ref_to_chain): Likewise.
9484 (determine_roots_comp): Likewise.
9485 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
9486
9487 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
9488
9489 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
9490 implementations.
9491
9492 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
9493
9494 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
9495 * arm-modes.def (CC_NOTB): Don't define.
9496 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
9497 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
9498 (LTUGEU): New code_iterator.
9499 (cnb, optab): New corresponding code_attrs.
9500 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
9501 to canonical form. Operands 1 and 2 are commutative. Parametrize
9502 using LTUGEU.
9503 (addsi3_carryin_shift_<optab>): Likewise.
9504 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
9505 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
9506 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
9507 (subsi3_compare): Renamed from subsi3_compare0_c.
9508 Change CC_NOTB to CC.
9509 (arm_subsi3_insn): Allow constants for operand 0.
9510 (compare_scc peephole for eq case): New.
9511 (compare_scc splitters): Change CC_NOTB to CC.
9512
9513 2010-07-05 Richard Guenther <rguenther@suse.de>
9514
9515 * tree-ssa-loop-im.c (for_each_index): Do not handle
9516 ALIGN_INDIRECT_REF.
9517 (gen_lsm_tmp_name): Likewise.
9518 * tree-dump.c (dequeue_and_dump): Likewise.
9519 * tree-pretty-print.c (dump_generic_node): Likewise.
9520 (op_code_prio): Likewise.
9521 (op_symbol_code): Likewise.
9522 * tree.c (staticp): Likewise.
9523 (build1_stat): Likewise.
9524 * tree.h (INDIRECT_REF_P): Likewise.
9525 * fold-const.c (maybe_lvalue_p): Likewise.
9526 (operand_equal_p): Likewise.
9527 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9528 (ao_ref_init_from_vn_reference): Likewise.
9529 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
9530 (find_interesting_uses_address): Likewise.
9531 * dwarf2out.c (loc_list_from_tree): Likewise.
9532 * gimplify.c (gimplify_expr): Likewise.
9533 * tree-eh.c (tree_could_trap_p): Likewise.
9534 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9535 * cfgexpand.c (expand_debug_expr): Likewise.
9536 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9537 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
9538 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
9539 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
9540 * tree-ssa-operands.c (get_expr_operands): Likewise.
9541 * expr.c (safe_from_p): Likewise.
9542 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
9543 * tree-vect-data-refs.c (vect_setup_realignment): Build
9544 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
9545 * tree-vect-stmts.c (vectorizable_load): Likewise.
9546 * tree.def (ALIGN_INDIRECT_REF): Remove.
9547
9548 2010-07-05 Richard Guenther <rguenther@suse.de>
9549
9550 PR tree-optimization/44784
9551 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
9552 for inserted stmts.
9553 (find_or_generate_expression): Fix SCCVN insertion check.
9554
9555 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
9556
9557 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
9558 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
9559 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
9560 directives.
9561
9562 2010-07-05 Ira Rosen <irar@il.ibm.com>
9563
9564 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
9565 statements that are not vectorized.
9566 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
9567 in INSIDE_COST.
9568
9569 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
9570
9571 PR bootstrap/44820
9572 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
9573
9574 2010-07-05 Richard Guenther <rguenther@suse.de>
9575
9576 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
9577 RESULT_DECLs properly.
9578
9579 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
9580
9581 PR rtl-optimization/44695
9582 * config/i386/i386.md (extract_code): Removed.
9583 (<u>divmodqi4): Likewise.
9584 (divmodqi4): New.
9585 (udivmodqi4): Likewise.
9586 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
9587 (udivmodhiqi3): Likewise.
9588
9589 2010-07-04 Jan Hubicka <jh@suse.cz>
9590
9591 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
9592
9593 2010-07-04 Jan Hubicka <jh@suse.cz>
9594
9595 * cgraphunit.c (init_cgraph): Only initialize dump file if it
9596 is not already initialized.
9597
9598 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
9599
9600 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
9601 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
9602 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
9603 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
9604 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
9605 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
9606 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
9607 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
9608 (sync_new_nand_optab): Redefine as macros.
9609 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
9610 Delete.
9611 (direct_optab_index): New enum.
9612 (direct_optab_d): New structure.
9613 (direct_optab): New typedef.
9614 (direct_optab_table): Declare.
9615 (direct_optab_handler, set_direct_optab_handler): New functions.
9616 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
9617 (sync_lock_release_optab): New macros.
9618 * optabs.c (direct_optab_table): New variable.
9619 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
9620 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
9621 cmpstr_optab and cmpstrn_optab.
9622 (emit_conditional_move): Likewise for movcc_optab.
9623 (can_conditionally_move_p): Likewise for movcc_gen_code.
9624 (init_insn_codes): Clear direct_optab_table.
9625 (init_optabs): Don't initialize the new "direct optabs" here.
9626 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
9627 vcond_gen_code.
9628 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
9629 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
9630 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
9631 (expand_sync_operation): Likewise other sync_*_optabs.
9632 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
9633 to sync_compare_and_swap_optab.
9634 (expand_sync_lock_test_and_set): Use direct_optab_handler for
9635 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
9636 to the names of both.
9637 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
9638 cmpstr_optab and cmpstrn_optab.
9639 (expand_builtin_lock_release): Likewise sync_lock_release.
9640 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
9641 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
9642 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
9643 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
9644 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
9645 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
9646 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
9647 (sync_lock_test_and_set, sync_lock_release): Delete.
9648 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
9649 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
9650 * genopinit.c (optabs): Use set_direct_optab_handler for the new
9651 macro optabs.
9652 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
9653 the "optab" local variable. Use direct_optab_handler for optab and
9654 sync_compare_and_swap_optab.
9655 * reload1.c (reload_in_optab, reload_out_optab): Delete.
9656 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
9657 reload_in_optab and reload_out_optab.
9658 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
9659 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
9660 * config/pa/pa.c (pa_secondary_reload): Likewise.
9661 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
9662 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
9663 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
9664 (VMSupportsCS8_builtin): Likewise.
9665
9666 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
9667
9668 * optabs.h (optab_handlers): Change type of insn_code to int.
9669 (optab_handler, set_optab_handler, convert_optab_handler)
9670 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
9671 CODE_FOR_nothing".
9672 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
9673 (init_insn_codes): Zero both the above arrays.
9674 (init_optabs): Never call init_insn_codes first time around.
9675
9676 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
9677
9678 * optabs.h (optab_handler, convert_optab_handler): Turn into
9679 inline functions that return an insn code.
9680 (set_optab_handler, set_convert_optab_handler): New functions.
9681 * builtins.c: Replace optab_handler(X)->insn_code with
9682 optab_handler or set_optab_handler thoughout. Likewise
9683 convert_optab_handler(X)->insn_code with convert_optab_handler
9684 and set_convert_optab_handler.
9685 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
9686 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
9687 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
9688 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
9689 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
9690 config/spu/spu.c: Likewise.
9691
9692 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
9693
9694 PR target/44531
9695 * config.gcc (sh*-*-*): Use regular expressions instead of
9696 the 'i' modifier for sed substitutions.
9697
9698 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
9699
9700 * gimple.c (gimple_body): Comments added.
9701
9702 2010-07-04 Richard Guenther <rguenther@suse.de>
9703
9704 PR middle-end/44809
9705 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
9706 of an INDIRECT_REF.
9707
9708 2010-07-04 Richard Guenther <rguenther@suse.de>
9709
9710 PR tree-optimization/44479
9711 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
9712 extra SSA name copy statements which preserves points-to
9713 information.
9714 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9715 Copy points-to information for all pointers. Properly handle
9716 MEM_REFs.
9717 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
9718 copy statements.
9719 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
9720 dependency.
9721
9722 2010-07-04 Richard Guenther <rguenther@suse.de>
9723
9724 PR middle-end/44785
9725 * tree-inline.c (initialize_inlined_parameters): Do not
9726 re-use pointer-map slot over remap_type call.
9727
9728 2010-07-04 Richard Guenther <rguenther@suse.de>
9729
9730 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
9731
9732 2010-07-04 Richard Guenther <rguenther@suse.de>
9733
9734 PR tree-optimization/44656
9735 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
9736 again after value-replacing in the defintions lhs.
9737
9738 2010-07-04 Ira Rosen <irar@il.ibm.com>
9739 Revital Eres <eres@il.ibm.com>
9740
9741 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
9742 Document new arguments.
9743 * doc/tm.texi: Regenerate.
9744 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
9745 Handle unaligned store.
9746 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
9747 * target.def (builtin_vectorization_cost): Add new arguments.
9748 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
9749 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
9750 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
9751 (vect_vfa_segment_size): Fix indentation.
9752 * tree-vectorizer.h (struct _vect_peel_info): New.
9753 (struct _vect_peel_extended_info): New.
9754 (struct _loop_vec_info): Add new field for peeling hash table and a
9755 macro for its access.
9756 (VECT_MAX_COST): Define.
9757 (vect_get_load_cost): Declare.
9758 (vect_get_store_cost, vect_get_known_peeling_cost,
9759 vect_get_single_scalar_iteraion_cost): Likewise.
9760 (vect_supportable_dr_alignment): Add new argument.
9761 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
9762 field.
9763 (destroy_loop_vec_info): Free peeling hash table.
9764 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
9765 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
9766 vect_analyze_slp. Fix indentation.
9767 (vect_get_single_scalar_iteraion_cost): New function.
9768 (vect_get_known_peeling_cost): Likewise.
9769 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
9770 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
9771 statement. Move outside cost calculation inside unknown peeling case.
9772 Call vect_get_known_peeling_cost for known amount of peeling.
9773 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
9774 reference to the print message of forced alignment.
9775 (vect_verify_datarefs_alignment): Update call to
9776 vect_supportable_dr_alignment.
9777 (vect_get_data_access_cost): New function.
9778 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
9779 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
9780 vect_peeling_hash_choose_best_peeling): Likewise.
9781 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
9782 to store all the accesses in the loop and find best possible access to
9783 align using peeling for known alignment case. For unknown alignment
9784 check if stores are preferred or if peeling is worthy.
9785 (vect_find_same_alignment_drs): Analyze pairs of loads too.
9786 (vect_supportable_dr_alignment): Add new argument and check aligned
9787 accesses according to it.
9788 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
9789 (cost_for_stmt): Call vect_get_stmt_cost.
9790 (vect_model_simple_cost): Likewise.
9791 (vect_model_store_cost): Call vect_get_stmt_cost. Call
9792 vect_get_store_cost to calculate the cost of the statement.
9793 (vect_get_store_cost): New function.
9794 (vect_model_load_cost): Call vect_get_stmt_cost. Call
9795 vect_get_load_cost to calculate the cost of the statement.
9796 (vect_get_load_cost): New function.
9797 (vectorizable_store): Update call to vect_supportable_dr_alignment.
9798 (vectorizable_load): Likewise.
9799 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
9800 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
9801 arguments. Handle unaligned store.
9802 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
9803 (rs6000_builtin_support_vector_misalignment): Return true for word and
9804 double word alignments for VSX.
9805 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
9806 vect_supportable_dr_alignment and builtin_vectorization_cost.
9807
9808 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9809
9810 PR target/44597
9811 * config/pa/predicates.md (prefetch_cc_operand): Remove.
9812 (prefetch_nocc_operand): Likewise.
9813 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
9814 (prefetch_20): New insn.
9815 (prefetch_cc): Remove.
9816 (prefetch_nocc): Likewise.
9817
9818 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
9819
9820 * expr.c (vector_mode_valid_p): Move to c-common.c.
9821 * expr.h (vector_mode_valid_p): Do not declare here.
9822 * system.h: Poison GCC_EXPR_H in front-ends.
9823 * Makefile.in: Update dependencies.
9824
9825 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9826
9827 PR target/44705
9828 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
9829
9830 2010-07-03 Jan Hubicka <jh@suse.cz>
9831
9832 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
9833 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
9834 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
9835 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
9836 Likewise.
9837
9838 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
9839 Update timevars.V
9840 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
9841 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
9842 TV_IPA_LTO_DECL_OUT): New.
9843 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
9844
9845 2010-07-03 Jan Hubicka <jh@suse.cz>
9846
9847 * ipa-inline.c (update_edge_key): Break out from ...
9848 update_callers_keys): ... here;
9849 (update_callee_keys): Update only the edges from caller to callee.
9850 (update_all_calle_keys): Do what update_calle_keys did.
9851 (decide_inlining_of_small_functions): Avoid recomputing of all
9852 callees when badness increase.
9853
9854 2010-07-03 Jie Zhang <jie@codesourcery.com>
9855
9856 * config/arm/arm.c (arm_attr_length_move_neon): New.
9857 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
9858 * config/arm/neon.md (define_mode_attr V_slen): Remove.
9859 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
9860 to compute length attribute.
9861
9862 2010-07-03 Jie Zhang <jie@codesourcery.com>
9863
9864 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
9865 as predicate for operand 1 and remove its constraint.
9866 * config/arm/predicates.md (vfp_register_operand): New.
9867 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
9868 (*push_fp_multi): Likewise.
9869
9870 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
9871
9872 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
9873
9874 2010-07-03 Jan Hubicka <jh@suse.cz>
9875
9876 * config/i386/i386.c (override_options): Revert accidental commit.
9877
9878 2010-07-02 Le-Chun Wu <lcwu@google.com>
9879
9880 PR c++/44128
9881 * doc/invoke.texi: Update documentation of -Wshadow.
9882
9883 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
9884 Julian Brown <julian@codesourcery.com>
9885 Sandra Loosemore <sandra@codesourcery.com>
9886
9887 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
9888 comparisons. Adjust to take both operands.
9889 (arm_select_cc_mode): Handle DImode comparisons.
9890 (arm_gen_compare_reg): Generate a scratch register for DImode
9891 comparisons which require one. Use xor for Thumb equality checks.
9892 (arm_const_double_by_immediates): New.
9893 (arm_print_operand): Allow 'Q' and 'R' for constants.
9894 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
9895 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
9896 arm_canonicalize_comparison.
9897 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
9898 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9899 prototype.
9900 (arm_const_double_by_immediates): Declare.
9901 * config/arm/constraints.md (Di): New constraint.
9902 * config/arm/predicates.md (arm_immediate_di_operand)
9903 (arm_di_operand, cmpdi_operand): New.
9904 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
9905 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
9906 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
9907 (cstoredi4): Handle non-Cirrus also.
9908
9909 2010-07-02 Julian Brown <julian@codesourcery.com>
9910 Sandra Loosemore <sandra@codesourcery.com>
9911
9912 PR target/43703
9913 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
9914 (smax<mode>3): Disable for NEON float modes when
9915 flag_unsafe_math_optimizations is false.
9916 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
9917 (*mul<mode>3_neon)
9918 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
9919 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
9920 for NEON float modes when flag_unsafe_math_optimizations is false.
9921 (quad_halves_<code>v4sf): Only enable if
9922 flag_unsafe_math_optimizations is true.
9923 * doc/invoke.texi (ARM Options): Add note about floating point
9924 vectorization requiring -funsafe-math-optimizations.
9925
9926 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
9927 Julian Brown <julian@codesourcery.com>
9928
9929 * config/arm/neon.md (UNSPEC_VABA): Delete.
9930 (UNSPEC_VABAL): Delete.
9931 (UNSPEC_VABS): Delete.
9932 (UNSPEC_VMUL_N): Delete.
9933 (adddi3_neon): New.
9934 (subdi3_neon): New.
9935 (mul<mode>3add<mode>_neon): Make the pattern named.
9936 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
9937 (neon_vadd<mode>): Replace with define_expand, and move the remaining
9938 unspec parts...
9939 (neon_vadd<mode>_unspec): ...to this.
9940 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
9941 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
9942 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
9943 (neon_vaba<mode>): Rewrite in terms of vabd.
9944 (neon_vabal<mode>): Rewrite in terms of vabdl.
9945 (neon_vabs<mode>): Rewrite without unspec.
9946 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
9947 (*arm_subdi3): Likewise.
9948 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
9949 No_op attribute to disable assembly output checks.
9950 * config/arm/arm_neon.h: Regenerated.
9951 * doc/arm-neon-intrinsics.texi: Regenerated.
9952
9953 2010-07-02 Jan Hubicka <jh@suse.cz>
9954
9955 * ipa-split.c (split_function): For aggregate values, set the return
9956 slot optimization bit. When passing DECL_BY_REFERENCE, produce
9957 *<retval> = fncall.part ().
9958 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
9959
9960 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
9961
9962 * config/arm/neon.md (UNSPEC_VAND): Delete.
9963 (UNSPEC_VBIC): Delete.
9964 (UNSPEC_VCLZ): Delete.
9965 (UNSPEC_VCNT): Delete.
9966 (UNSPEC_VEOR): Delete.
9967 (UNSPEC_VORN): Delete.
9968 (UNSPEC_VORR): Delete.
9969 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
9970 core registers too.
9971 (anddi3_neon): Likewise.
9972 (orndi3_neon): Likewise.
9973 (bicdi3_neon): Likewise.
9974 (xordi3_neon): Likewise.
9975 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
9976 rid of unspec and handle unused operand.
9977 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
9978 * config/arm/predicates.md (imm_for_neon_logic_operand):
9979 Require TARGET_NEON.
9980 (imm_for_neon_inv_logic_operand): Likewise.
9981 * config/arm/arm.md (define_split for logical_binary_operator):
9982 Disable for NEON registers.
9983 (anddi3): Add new define_expand, and rename the insn. Disable
9984 this insn for NEON, where anddi3_neon now applies.
9985 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
9986 (iordi3): As for anddi3.
9987 (xordi3): Likewise.
9988 * config/arm/neon.ml (Vand): Split DImode variants and mark them
9989 as No_op to disable testing for exact instruction match.
9990 (Vorr): Likewise.
9991 (Veor): Likewise.
9992 (Vbic): Likewise.
9993 (Vorn): Likewise.
9994 * config/arm/arm_neon.h: Regenerated.
9995 * doc/arm-neon-intrinsics.texi: Regenerated.
9996
9997 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
9998
9999 * expr.h (emit_stack_probe): Declare.
10000 * explow.c (emit_stack_probe): Make global.
10001 (anti_adjust_stack_and_probe): Fix comments.
10002 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10003 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10004 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10005 * config/sparc/sparc.c: Include except.h.
10006 (sparc_emit_probe_stack_range): New function.
10007 (output_probe_stack_range): Likewise.
10008 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
10009 built-in stack checking is enabled.
10010 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
10011 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10012 (probe_stack_range): New insn.
10013
10014 2010-07-02 Richard Guenther <rguenther@suse.de>
10015
10016 PR target/43958
10017 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
10018 for argument alignment.
10019
10020 2010-07-02 Jan Hubicka <jh@suse.cz>
10021
10022 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
10023 walk backwards from entry_bb to check only those basic block of header
10024 that might lead to execution of split part.
10025 (consider_split) ... here.
10026 (find_return_bb): Allow assignment in return BB.
10027 (find_retval): New.
10028 (split_function): Fix name of cloned function; take care of updating
10029 return value in return_bb containing move.
10030
10031 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
10032
10033 PR target/44771
10034 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
10035 used variable insn.
10036
10037 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
10038
10039 * implicit-zee.c (combine_reaching_defs): Fix long lines.
10040 (is_set_with_extension_DI): Delete.
10041 (struct zero_extend_info): New structure.
10042 (add_removable_zero_extend): New function.
10043 (find_removable_zero_extends): Use note_stores to find SETs.
10044 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
10045
10046 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
10047
10048 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
10049 is_miss_rate_acceptable. Pull total_positions computation
10050 out of the loops. Early return if miss_positions exceeds
10051 the acceptable threshold.
10052 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
10053 is_miss_rate_acceptable after renaming of compute_miss_rate.
10054
10055 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
10056
10057 PR middle-end/44576
10058 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
10059 of 1000) for miss rate if the address diference is greater than or
10060 equal to the cache line size (the two reference will never hit the
10061 same cache line).
10062
10063 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
10064
10065 PR target/42835
10066 * config/arm/arm-modes.def (CC_NOTB): New mode.
10067 * config/arm/arm.c (get_arm_condition_code): Handle it.
10068 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
10069 * config/arm/arm.md (subsi3_compare0_c): New pattern.
10070 (compare_scc): Now a define_and_split. Add a number of extra
10071 splitters before it.
10072
10073 PR target/42172
10074 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
10075 and ZERO_EXTEND.
10076 (arm_rtx_costs_1): Likewise.
10077 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
10078 * config/arm/arm.md (is_arch6): New attribute.
10079 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
10080 extendqisi2): Tighten the code somewhat, avoiding invalid
10081 RTL to occur in the expander patterns.
10082 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
10083 (thumb1_zero_extendhisi2_v6): Delete.
10084 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
10085 (thumb1_extendhisi2_v6): Delete.
10086 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
10087 (thumb1_extendqisi2_v6): Delete.
10088 (zero_extendhisi2 for register input splitter): New.
10089 (zero_extendqisi2 for register input splitter): New.
10090 (thumb1_extendhisi2 for register input splitter): New.
10091 (extendhisi2 for register input splitter): New.
10092 (extendqisi2 for register input splitter): New.
10093 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
10094 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
10095 and add support for a register alternative requiring a split.
10096 (thumb1_zero_extendqisi2): Likewise.
10097 (arm_zero_extendqisi2): Likewise.
10098 (arm_extendhisi2): Likewise.
10099 (arm_extendqisi2): Likewise.
10100
10101 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
10102
10103 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
10104 instead of an unspec.
10105 (neon_expand_vector_init): Likewise.
10106 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
10107 (UNSPEC_VDUP_LANE): Delete.
10108 (UNSPEC VDUP_N): Delete.
10109 (UNSPEC_VGET_HIGH): Delete.
10110 (UNSPEC_VGET_LANE): Delete.
10111 (UNSPEC_VGET_LOW): Delete.
10112 (UNSPEC_VMVN): Delete.
10113 (UNSPEC_VSET_LANE): Delete.
10114 (V_double_vector_mode): New.
10115 (vec_set<mode>_internal): Make code emitted match that for the
10116 corresponding intrinsics.
10117 (vec_setv2di_internal): Likewise.
10118 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
10119 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
10120 (neon_vset_lane<mode>): Combine double and quad patterns and
10121 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
10122 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
10123 (neon_vdup_n<mode>): Rewrite RTL without unspec.
10124 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
10125 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
10126 with neon_vdup_lanev2di, adjusting the pattern from the latter
10127 to be predicable for consistency.
10128 (neon_vdup_lane<mode>_internal): New.
10129 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
10130 to avoid using an unspec.
10131 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
10132 (neon_vdup_lanev2di): Turn into a define_expand.
10133 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
10134 (neon_vget_high<mode>): Replace with....
10135 (neon_vget_highv16qi): New pattern using canonical RTL.
10136 (neon_vget_highv8hi): Likewise.
10137 (neon_vget_highv4si): Likewise.
10138 (neon_vget_highv4sf): Likewise.
10139 (neon_vget_highv2di): Likewise.
10140 (neon_vget_low<mode>): Replace with....
10141 (neon_vget_lowv16qi): New pattern using canonical RTL.
10142 (neon_vget_lowv8hi): Likewise.
10143 (neon_vget_lowv4si): Likewise.
10144 (neon_vget_lowv4sf): Likewise.
10145 (neon_vget_lowv2di): Likewise.
10146
10147 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
10148 test for this emitting vmov.
10149 (Vset_lane): Likewise.
10150 (Vdup_n): Likewise.
10151 (Vmov_n): Likewise.
10152
10153 * doc/arm-neon-intrinsics.texi: Regenerated.
10154
10155 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
10156
10157 * config/arm/neon.md (vec_extractv2di): Correct error in register
10158 numbering to reconcile with neon_vget_lanev2di.
10159
10160 2010-07-02 Richard Guenther <rguenther@suse.de>
10161
10162 * tree-ssa-structalias.c (pt_solution_set_var): New function.
10163 * tree-ssa-alias.h (pt_solution_set_var): Declare.
10164 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
10165 points-to information.
10166
10167 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
10168
10169 * config/s390/s390.c (override_options): Adopt prefetching
10170 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
10171
10172 2010-07-02 Jan Hubicka <jh@suse.cz>
10173
10174 * df-problems.c (df_kill_notes): Do not collect dead notes.
10175 (df_set_note): Just call add_reg_note.
10176 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
10177 df_create_unused_note): Do not deal with lists of old notes.
10178 (df_note_bb_compute): Likewise.
10179
10180 2010-07-02 Richard Guenther <rguenther@suse.de>
10181
10182 * tree-ssa-structalias.c (find_func_aliases): Handle
10183 pointer alignment via BIT_AND_EXPR.
10184 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
10185
10186 2010-07-02 Richard Guenther <rguenther@suse.de>
10187
10188 * tree-data-ref.c (initialize_data_dependence_relation): Handle
10189 mismatching number of dimensions properly.
10190
10191 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10192
10193 PR target/44707
10194 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
10195 (lo_sum (high ...) ...) patterns generated by earlier passes.
10196
10197 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10198
10199 * doc/install.texi (Prerequisites): Document Perl requirement on
10200 Solaris 2.
10201 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
10202
10203 2010-07-02 Richard Guenther <rguenther@suse.de>
10204
10205 PR middle-end/44777
10206 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
10207
10208 2010-07-02 Jan Hubicka <jh@suse.cz>
10209
10210 PR middle-end/44706
10211 * predict.c (predict_paths_for_bb): Handle case when control dependence
10212 BB has only abnormal edges.
10213
10214 2010-07-02 Richard Guenther <rguenther@suse.de>
10215
10216 PR tree-optimization/44748
10217 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
10218 the embedded conversion in MEM_REFs.
10219
10220 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
10221
10222 * reload.c: Include toplev.h.
10223 * recog.c: Likewise.
10224 * Makefile.in: Adjust dependencies.
10225
10226 2010-07-01 Jakub Jelinek <jakub@redhat.com>
10227
10228 PR debug/44694
10229 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
10230 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
10231
10232 2010-07-01 Richard Guenther <rguenther@suse.de>
10233
10234 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
10235 types for offsets.
10236
10237 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
10238
10239 PR target/44732
10240 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
10241 Fix argument types.
10242
10243 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
10244
10245 PR target/44727
10246 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
10247 Make sure operand 0 dies.
10248
10249 2010-07-01 Richard Guenther <rguenther@suse.de>
10250
10251 PR middle-end/42834
10252 PR middle-end/44468
10253 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
10254 * doc/generic.texi (References to storage): Document MEM_REF.
10255 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
10256 (print_call_name): Likewise.
10257 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
10258 (build_simple_mem_ref_loc): New function.
10259 (mem_ref_offset): Likewise.
10260 * tree.h (build_simple_mem_ref_loc): Declare.
10261 (build_simple_mem_ref): Define.
10262 (mem_ref_offset): Declare.
10263 * fold-const.c: Include tree-flow.h.
10264 (operand_equal_p): Handle MEM_REF.
10265 (build_fold_addr_expr_with_type_loc): Likewise.
10266 (fold_comparison): Likewise.
10267 (fold_unary_loc): Fold
10268 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
10269 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
10270 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
10271 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
10272 (ptr_deref_may_alias_ref_p_1): Likewise.
10273 (ao_ref_base_alias_set): Properly differentiate base object for
10274 offset and TBAA.
10275 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
10276 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
10277 (indirect_refs_may_alias_p): Likewise.
10278 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
10279 chasing code.
10280 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
10281 (call_may_clobber_ref_p_1): Likewise.
10282 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
10283 * expr.c (expand_assignment): Handle MEM_REF.
10284 (store_expr): Handle MEM_REFs from STRING_CSTs.
10285 (store_field): If expanding a MEM_REF of a non-addressable
10286 decl use bitfield operations.
10287 (get_inner_reference): Handle MEM_REF.
10288 (expand_expr_addr_expr_1): Likewise.
10289 (expand_expr_real_1): Likewise.
10290 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
10291 * alias.c (ao_ref_from_mem): Handle MEM_REF.
10292 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
10293 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
10294 (dr_analyze_indices): Likewise.
10295 (dr_analyze_alias): Likewise.
10296 (object_address_invariant_in_loop_p): Likewise.
10297 * gimplify.c (mark_addressable): Handle MEM_REF.
10298 (gimplify_cond_expr): Build MEM_REFs.
10299 (gimplify_modify_expr_to_memcpy): Likewise.
10300 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
10301 (gimple_fold_indirect_ref): Adjust.
10302 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
10303 * tree.def (MEM_REF): New tree code.
10304 * tree-dfa.c: Include toplev.h.
10305 (get_ref_base_and_extent): Handle MEM_REF.
10306 (get_addr_base_and_unit_offset): New function.
10307 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
10308 * gimple-fold.c (may_propagate_address_into_dereference): Handle
10309 MEM_REF.
10310 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
10311 accesses if the array has just one dimension. Remove always true
10312 parameter. Do not require type compatibility here.
10313 (maybe_fold_offset_to_component_ref): Remove.
10314 (maybe_fold_stmt_indirect): Remove.
10315 (maybe_fold_reference): Remove INDIRECT_REF handling.
10316 Fold back to non-MEM_REF.
10317 (maybe_fold_offset_to_address): Simplify. Deal with type
10318 mismatches here.
10319 (maybe_fold_reference): Likewise.
10320 (maybe_fold_stmt_addition): Likewise. Also handle
10321 &ARRAY + I in addition to &ARRAY[0] + I.
10322 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
10323 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
10324 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
10325 * tree-ssa.c (useless_type_conversion_p): Make most pointer
10326 conversions useless.
10327 (warn_uninitialized_var): Handle MEM_REF.
10328 (maybe_rewrite_mem_ref_base): New function.
10329 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
10330 to SSA form.
10331 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
10332 INDIRECT_REF handling.
10333 (copy_tree_body_r): Handle MEM_REF.
10334 * gimple.c (is_gimple_addressable): Adjust.
10335 (is_gimple_address): Likewise.
10336 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
10337 invariant base are invariant.
10338 (is_gimple_min_lval): Adjust.
10339 (is_gimple_mem_ref_addr): New function.
10340 (get_base_address): Handle MEM_REF.
10341 (count_ptr_derefs): Likewise.
10342 (get_base_loadstore): Likewise.
10343 * gimple.h (is_gimple_mem_ref_addr): Declare.
10344 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
10345 * tree-cfg.c (verify_address): New function, split out from ...
10346 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
10347 the address operand of MEM_REFs. Verify MEM_REFs. Reject
10348 INDIRECT_REFs.
10349 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
10350 INDIRECT_REF. Allow conversions.
10351 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
10352 a register does not change its size.
10353 (verify_types_in_gimple_reference): Verify MEM_REF.
10354 (verify_gimple_assign_single): Disallow INDIRECT_REF.
10355 Handle MEM_REF.
10356 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
10357 New.
10358 (mark_address_taken): Handle MEM_REF.
10359 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
10360 (get_asm_expr_operands): Pass opf_not_non_addressable.
10361 (get_expr_operands): Handle opf_[not_]non_addressable.
10362 Handle MEM_REF. Remove INDIRECT_REF handling.
10363 * tree-vrp.c (check_array_ref): Handle MEM_REF.
10364 (search_for_addr_array): Likewise.
10365 (check_array_bounds): Likewise.
10366 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
10367 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
10368 (ref_always_accessed_p): Likewise.
10369 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
10370 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
10371 Handle MEM_REF.
10372 * cgraphbuild.c (mark_load): Properly check for NULL result
10373 from get_base_address.
10374 (mark_store): Likewise.
10375 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
10376 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
10377 handling for MEM_REF.
10378 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
10379 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
10380 * builtins.c (stabilize_va_list_loc): Use the function ABI
10381 valist type if we couldn't canonicalize the argument type.
10382 Always dereference with the canonical va-list type.
10383 (maybe_emit_free_warning): Handle MEM_REF.
10384 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
10385 memmove to memcpy.
10386 * builtins.c (fold_builtin_memory_op): Use ref-all types
10387 for all memcpy foldings.
10388 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
10389 (build_outer_var_ref): Likewise.
10390 (scan_omp_1_op): Likewise.
10391 (lower_rec_input_clauses): Likewise.
10392 (lower_lastprivate_clauses): Likewise.
10393 (lower_reduction_clauses): Likewise.
10394 (lower_copyprivate_clauses): Likewise.
10395 (expand_omp_atomic_pipeline): Likewise.
10396 (expand_omp_atomic_mutex): Likewise.
10397 (create_task_copyfn): Likewise.
10398 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
10399 Remove old union trick. Initialize constant offsets.
10400 (ao_ref_init_from_vn_reference): Likewise. Do not handle
10401 INDIRECT_REF. Init base_alias_set properly.
10402 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
10403 (vn_reference_fold_indirect): Adjust for MEM_REFs.
10404 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
10405 for ARRAY_REFs.
10406 (may_insert): Remove.
10407 (visit_reference_op_load): Do not test may_insert.
10408 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
10409 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
10410 a field to store the constant offset this op applies.
10411 (run_scc_vn): Adjust prototype.
10412 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
10413 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
10414 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
10415 bother about volatile qualifiers on pointers.
10416 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
10417 * tree-ssa-loop-ivopts.c
10418 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
10419 (strip_offset_1): Likewise.
10420 (find_interesting_uses_address): Replace INDIRECT_REF handling with
10421 MEM_REF handling.
10422 (get_computation_cost_at): Likewise.
10423 * ipa-pure-const.c (check_op): Handle MEM_REF.
10424 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
10425 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
10426 and constants.
10427 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
10428 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
10429 (eliminate_local_variables_1): Likewise.
10430 (create_call_for_reduction_1): Likewise.
10431 (create_loads_for_reductions): Likewise.
10432 (create_loads_and_stores_for_name): Likewise.
10433 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
10434 (ssa_accessed_in_tree): Handle MEM_REF.
10435 (ssa_accessed_in_assign_rhs): Likewise.
10436 (update_type_size): Likewise.
10437 (analyze_accesses_for_call_stmt): Likewise.
10438 (analyze_accesses_for_assign_stmt): Likewise.
10439 (transform_access_sites): Likewise.
10440 (transform_allocation_sites): Likewise.
10441 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
10442 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10443 not handle INDIRECT_REF.
10444 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
10445 (cond_store_replacement): Likewise.
10446 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
10447 MEM_REF, no not handle INDIRECT_REFs.
10448 (insert_into_preds_of_block): Properly initialize avail.
10449 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
10450 for ARRAY_REFs. Properly handle reference lookups that
10451 require a bit re-interpretation.
10452 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
10453 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
10454 (build_ref_for_offset_1): Remove.
10455 (build_ref_for_offset): Build MEM_REFs.
10456 (gate_intra_sra): Disable for now.
10457 (sra_ipa_modify_expr): Handle MEM_REF.
10458 (ipa_early_sra_gate): Disable for now.
10459 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
10460 MEM_REF handling.
10461 (disqualify_base_of_expr): Likewise.
10462 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
10463 MEM_REF handling.
10464 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
10465 Use mem_ref_offset. Remove bogus folding.
10466 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
10467 (make_fancy_name_1): Add support for MEM_REF.
10468 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
10469 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
10470 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
10471 (compute_complex_ancestor_jump_func): Likewise.
10472 (ipa_analyze_virtual_call_uses): Likewise.
10473 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
10474 INDIRECT_REF folding with more generalized MEM_REF folding.
10475 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
10476 (forward_propagate_addr_into_variable_array_index): Also handle
10477 &ARRAY + I in addition to &ARRAY[0] + I.
10478 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
10479 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
10480 creates assignments with overlap.
10481 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
10482 (get_frame_field): Likewise.
10483 (get_nonlocal_debug_decl): Likewise.
10484 (convert_nonlocal_reference_op): Likewise.
10485 (struct nesting_info): Add mem_refs pointer-set.
10486 (create_nesting_tree): Allocate it.
10487 (convert_local_reference_op): Insert to be folded mem-refs.
10488 (fold_mem_refs): New function.
10489 (finalize_nesting_tree_1): Perform defered folding of mem-refs
10490 (free_nesting_tree): Free the pointer-set.
10491 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
10492 (vectorizable_load): Likewise.
10493 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
10494 (propagate_with_phi): Likewise.
10495 * tree-object-size.c (addr_object_size): Handle MEM_REFs
10496 instead of INDIRECT_REFs.
10497 (compute_object_offset): Handle MEM_REF.
10498 (plus_stmt_object_size): Handle MEM_REF.
10499 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
10500 for &MEM_REF.
10501 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
10502 (symbol_marked_for_renaming): Likewise.
10503 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
10504 (fold-const.o): Add $(TREE_FLOW_H).
10505 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
10506 (find_func_clobbers): Likewise.
10507 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
10508 (decompose_access): Likewise.
10509 (replace_field_acc): Likewise.
10510 (replace_field_access_stmt): Likewise.
10511 (insert_new_var_in_stmt): Likewise.
10512 (get_stmt_accesses): Likewise.
10513 (reorg_structs_drive): Disable.
10514 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
10515 (ix86_canonical_va_list_type): Likewise.
10516
10517 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
10518
10519 PR other/44566
10520 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
10521 * target.def (struct gcc_target): Replace enum reg_class with
10522 reg_class_t in hook argument / return types.
10523 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
10524 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
10525 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
10526 * targhooks.h (default_branch_target_register_class): Likewise.
10527 (default_ira_cover_classes, default_secondary_reload): Likewise.
10528 (default_memory_move_cost, default_register_move_cost): Likewise.
10529 * targhooks.c (default_branch_target_register_class): Likewise.
10530 (default_ira_cover_classes, default_secondary_reload): Likewise.
10531 (default_memory_move_cost, default_register_move_cost): Likewise.
10532 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
10533 * bt-load.c (branch_target_load_optimize): Likewise.
10534 * ira.c (setup_cover_and_important_classes): Likewise.
10535 * ira-costs.c (copy_cost): Likewise.
10536 * reload1.c (emit_input_reload_insns): Likewise.
10537 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
10538 * config/frv/frv.c (frv_secondary_reload): Likewise.
10539 * config/s390/s390.c (s390_secondary_reload): Likewise.
10540 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
10541 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
10542 (ix86_register_move_cost): Likewise.
10543 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
10544 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
10545 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
10546 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
10547 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
10548 (rs6000_ira_cover_classes): Likewise.
10549 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
10550 * config/picochip/picochip-protos.h (picochip_secondary_reload):
10551 Likewise.
10552 * config/pa/pa.c (pa_secondary_reload): Likewise.
10553 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
10554 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
10555 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
10556 * doc/tm.texi: Regenerate.
10557
10558 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
10559
10560 PR bootstrrap/44726
10561 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
10562 use.
10563 (build_alias_set_optimal_p): Likewise.
10564 (build_base_obj_set_for_drs): Likewise.
10565
10566 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
10567
10568 * target.def: Remove comment about licensing problems of function
10569 declarations.
10570
10571 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
10572 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
10573 * doc/tm.texi: Regenerate.
10574
10575 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
10576 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
10577
10578 * target.def (enum_va_list_p): Use DEFHOOK.
10579 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
10580 Rename ptype to ptree.
10581 * doc/tm.texi: Regenerate.
10582
10583 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
10584 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
10585 * doc/tm.texi: Regenerate.
10586
10587 * target.def (memory_move_cost): Use DEFHOOK.
10588 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
10589 Rename regclass AKA class to rclass.
10590 * doc/tm.texi: Regenerate.
10591
10592 * target.def (pragma_parse): Use DEFHOOK.
10593 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
10594 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
10595 * doc/tm.texi: Regenerate.
10596
10597 * target.def (pass_by_reference): Use DEFHOOK.
10598 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
10599 * doc/tm.texi: Regenerate.
10600
10601 * target.def (resolve_overloaded_builtin): Rename params to arglist.
10602 Use DEFHOOK.
10603 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
10604 * doc/tm.texi: Regenerate.
10605
10606 * target.def (return_pops_args): Use DEFHOOK.
10607 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
10608 Rename stack-size to size.
10609 * doc/tm.texi: Regenerate.
10610
10611 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
10612 last-sched_cycle to last_clock, cur_cycle to clock.
10613 * doc/tm.texi.in: Use @hook.
10614 * doc/tm.texi: Regenerate.
10615
10616 * target.def (print_operand, print_operand_address): Update comment.
10617 (print_operand_punct_valid_p): Likewise.
10618
10619 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10620
10621 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
10622 to rtl.h.
10623 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
10624 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
10625 * rtl-error.h: New.
10626 * regrename.c: Do not include toplev.h. Include rtl-error.h.
10627 * rtl-error.c: Likewise.
10628 * reload.c: Likewise.
10629 * recog.c: Likewise.
10630 * sel-sched.c: Likewise.
10631 * function.c: Likewise.
10632 * reg-stack.c: Likewise.
10633 * cfgrtl.c: Likewise.
10634 * reload1.c: Likewise.
10635 * final.c: Include rtl-error.
10636 * Makefile.in: Adjust dependencies.
10637
10638 2010-06-30 Jan Hubicka <jh@suse.cz>
10639
10640 PR middle-end/PR44706
10641 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
10642 to return the value.
10643
10644 2010-06-30 Michael Matz <matz@suse.de>
10645
10646 PR bootstrap/44699
10647 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
10648 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
10649 a gimple reg, attach the original VDEF to the last store in the
10650 sequence.
10651
10652 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
10653
10654 PR other/44034
10655 * config/darwin.c (darwin_override_options): Use renamed
10656 targetm.asm_out.emit_unwind_label.
10657
10658 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
10659
10660 PR tree-optimization/39799
10661 * tree-inline.c (remap_ssa_name): Initialize variable only if
10662 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
10663
10664 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
10665
10666 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
10667
10668 2010-06-30 Richard Guenther <rguenther@suse.de>
10669
10670 PR target/44722
10671 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
10672 against oscillation with reverse peephole2.
10673
10674 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
10675
10676 PR target/44721
10677 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
10678 Fix last commit.
10679
10680 2010-06-30 Nick Clifton <nickc@redhat.com>
10681
10682 * config/rx/rx-modes.def: New file.
10683 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
10684 (CC_REGNUM): Define.
10685 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
10686 register.
10687 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
10688 (SELECT_CC_MODE): Define.
10689 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
10690 (reg:CC CC_REG) instead of (cc0).
10691 (attr "cc"): Delete.
10692 (cbranchsi4): Do not split compare and branch here. Instead move
10693 it to...
10694 (cbranchsi4_<code>): ... here. New patterns.
10695 (cmpsi): Call rx-compare_redundant to find out if it is necessary
10696 to emit the compare instruction.
10697 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
10698 cc_status flags.
10699 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
10700 FIRST_PSEUDO_REGNUM.
10701 (rx_expand_prologue, rx_expand_epilogue): Likewise.
10702 (rx_notice_update_cc): Delete.
10703 (rx_cc_modes_compatible): New function.
10704 (flags_needed_for_conditional): New function.
10705 (flags_from_mode): New function.
10706 (rx_compare_redundant): New function - scans backwards through
10707 insn list to find out if condition flags are already set correctly.
10708 (TARGET_CC_MODES_COMPATIBLE): Define.
10709 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
10710
10711 * config/rx/rx.h (BRANCH_COST): Define.
10712 (REGISTER_MOVE_COST): Define.
10713 * config/rx/predicates (rx_source_operand): Allow all constant types.
10714 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
10715 (tstsi4): New pattern.
10716 * config/rx/rx.c (rx_memory_move_cost): Define.
10717 (TARGET_MEMORY_MOVE_COST): Define.
10718
10719 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
10720
10721 * tree.h (block_may_fallthru): Declare here.
10722 * tree-flow.h (block_may_fallthru): Do not declare here.
10723 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
10724 bitmap.h
10725 * Makefile.in (c-typeck.o): Update dependencies.
10726
10727 2010-06-30 Jakub Jelinek <jakub@redhat.com>
10728
10729 PR debug/44694
10730 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
10731 * cselib.c (cfa_base_preserved_regno): New static variable.
10732 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
10733 of REGNO (cfa_base_preserved_val->locs->loc).
10734 (cselib_preserve_cfa_base_value): Add regno argument, set
10735 cfa_base_preserved_regno to it.
10736 (cselib_invalidate_regno): Allow removal of registers other than
10737 cfa_base_preserved_regno from cfa_base_preserved_val.
10738 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
10739 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
10740 of MEM addresses, if not on LHS.
10741 (reverse_op): Don't add reverse ops for cfa_base_rtx.
10742 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
10743
10744 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
10745
10746 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
10747 static variables.
10748 (peep2_buf_position): New static function.
10749 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
10750 peephole2_optimize): Use it.
10751 (peep2_attempt, peep2_update_life): New static functions, broken out
10752 of peephole2_optimize.
10753 (peep2_fill_buffer): New static function.
10754 (peephole2_optimize): Change the main loop to try to fill the buffer
10755 with the maximum number of insns before matching them against
10756 peepholes. Use a forward scan. Remove special case for targets with
10757 conditional execution.
10758 * genrecog.c (change_state): Delete dead code.
10759 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
10760 Rewrite so as not to expect the second insn to have had a peephole
10761 applied yet.
10762
10763 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
10764
10765 * genhooks.c (emit_findices): Cast field precision to int.
10766 (emit_documentation): Likewise.
10767
10768 2010-06-29 Jakub Jelinek <jakub@redhat.com>
10769
10770 PR tree-optimization/43801
10771 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
10772 if old_decl was DECL_ONE_ONLY.
10773
10774 PR debug/44668
10775 * dwarf2out.c (add_accessibility_attribute): New function.
10776 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
10777 instead of adding DW_AT_accessibility manually.
10778 (gen_enumeration_type_die, gen_struct_or_union_type_die,
10779 gen_typedef_die): Use it.
10780
10781 2010-06-29 Douglas B Rupp <rupp@gnat.com>
10782
10783 * vmsdbgout.c (full_name): Just output the file name if not native.
10784
10785 2010-06-29 Douglas B Rupp <rupp@gnat.com>
10786
10787 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
10788 (funcnam_table): New static table.
10789 (funcnum_table): New static table.
10790 (write_rtnbeg): Write value saved in funcnum_table.
10791 (write_rtnend): Write value saved in funcnum_table.
10792 (vmsdbgout_begin_function): Save current function info in
10793 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
10794 (vmsdbgout_finish): Iterate over funcnum_table.
10795
10796 2010-06-29 Douglas B Rupp <rupp@gnat.com>
10797
10798 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
10799 (vmsdbgout_type_decl): Declare
10800 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
10801 (FUNC_EPILOGUE_LABEL): New macro
10802 (vmsdbgout_begin_epilogue): New function.
10803 (vmsdbgout_type_decl): New function.
10804
10805 2010-06-29 Douglas B Rupp <rupp@gnat.com>
10806
10807 * vmsdbg.h: Update copyright.
10808
10809 2010-06-29 Douglas B Rupp <rupp@gnat.com>
10810
10811 * vmsdbg.h (DST_K_TBG): New DST constant.
10812 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
10813 (write_modbeg): Cast module_language to avoid warning.
10814 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
10815
10816 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
10817
10818 PR other/44034
10819 * target.def, doc/tm.texi.in, genhooks.c: New files.
10820 * target.h: Instead of defining individual hook members,
10821 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
10822 include target.def.
10823 * target-def.h: Instead of defining individual hook initializers,
10824 include target-hooks-def.h.
10825 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
10826 targetm.live_on_entry -> targetm.extra_live_on_entry
10827 targetm.sched.md_finish ->targetm.sched.finish
10828 targetm.sched.md_init -> targetm.sched.init
10829 targetm.sched.md_init_global -> targetm.sched.init_global
10830 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
10831 targetm.asm_out.except_table_label ->
10832 targetm.asm_out.emit_except_table_label
10833 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
10834 targetm.target_help -> targetm.help
10835 targetm.vectorize.builtin_support_vector_misalignment ->
10836 targetm.vectorize.support_vector_misalignment
10837 targetm.file_start_app_off -> targetm.asm_file_start_app_off
10838 targetm.file_start_file_directive ->
10839 targetm.asm_file_start_file_directive
10840 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
10841 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
10842 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
10843 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
10844 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
10845 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
10846 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
10847 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
10848 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
10849 * Makefile.in (TARGET_H): Depend on target.def.
10850 (TARGET_DEF_H): Depend on target-hooks-def.h.
10851 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
10852 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
10853 * doc/tm.texi: Regenerate.
10854
10855 * Makefile.in (s-tm-texi): Remove stray tab / rule.
10856
10857 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
10858 (targetm.sched.init): Likewise.
10859
10860 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
10861
10862 PR bootstrap/44713
10863 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
10864 (function_arg_advance_32): Const-ify TYPE parameter.
10865 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
10866 (ix86_function_arg_advance): Change type of NAMED to bool.
10867 (function_arg_32): Const-ify CUM and TYPE parameters.
10868 (function_arg_64): Likewise. Change type of NAMED to bool.
10869 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
10870 to bool.
10871 (ix86_function_arg): Change type of NAMED to bool.
10872 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
10873 last argument as a bool.
10874
10875 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
10876
10877 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
10878 (OVERRIDE_OPTIONS): Add note of obsolescence.
10879 Replace references with references to TARGET_OPTION_OVERRIDE.
10880 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
10881 the macro).
10882 * targhooks.c (default_target_option_override): New function.
10883 * targhooks.h (default_target_option_override): Declare.
10884 * target.h (struct gcc_target): Add override member to
10885 target_option member.
10886 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
10887 targetm.target_option.override call.
10888 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
10889 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
10890
10891 2010-06-29 Jan Hubicka <jh@suse.cz>
10892
10893 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
10894
10895 2010-06-29 Jan Hubicka <jh@suse.cz>
10896
10897 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
10898 unreachable.
10899 (rebuild_frequencies): New function.
10900 * predict.h (rebuild_frequencies): Declare.
10901 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
10902 entry block and edge reaching new_entry.
10903 (tree_function_versioning): When doing partial cloning, rebuild
10904 frequencies when done.
10905 * passes.c (execute_function_todo): Use rebild_frequencies.
10906
10907 2010-06-29 Richard Guenther <rguenther@suse.de>
10908
10909 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
10910 * tree-flow.h (enum noalias_state): Remove.
10911 (struct var_ann_d): Remove noalias_state member.
10912
10913 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
10914
10915 PR target/43902
10916 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
10917 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
10918 (maddhidi4): Likewise.
10919
10920 Revert parts of the change for PR25130.
10921 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10922 MEM_ALIAS_SET.
10923
10924 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
10925
10926 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
10927 targetm.calls.function_incoming_arg, and
10928 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
10929 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
10930 * target.h (struct gcc_target): Add function_arg_advance,
10931 function_arg, and function_incoming_arg fields.
10932 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
10933 (TARGET_FUNCTION_INCOMING_ARG): Define.
10934 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
10935 and TARGET_FUNCTION_INCOMING_ARG.
10936 * targhooks.h (default_function_arg_advance): Declare.
10937 (default_function_arg, default_function_incoming_arg): Declare.
10938 * targhooks.c (default_function_arg_advance): New function.
10939 (default_function_arg, default_function_incoming_arg): New function.
10940 * config/i386/i386.c (function_arg_advance): Rename to...
10941 (ix86_function_arg_advance): ...this. Make static.
10942 (function_arg): Rename to...
10943 (ix86_function_arg): ...this. Make static.
10944 (TARGET_FUNCTION_ARG_ADVANCE): Define.
10945 (TARGET_FUNCTION_ARG): Define.
10946 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
10947 (FUNCTION_ARG): Delete.
10948 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
10949 (function_arg): Delete prototype.
10950
10951 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
10952
10953 * reginfo.c (init_reg_sets_1): Adjust comments.
10954 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
10955 * calls.c (prepare_call_address): Likewise.
10956 (emit_call_1): Use targetm.calls.return_pops_args.
10957 (expand_call): Likewise.
10958 * function.c (assign_parms): Likewise.
10959 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
10960 * target.h (struct gcc_target) [struct calls]: Add
10961 return_pops_args field.
10962 * targhooks.h (default_return_pops_args): Declare.
10963 * targhooks.c (default_return_pops_args): Define.
10964 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
10965 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
10966 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
10967 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
10968 documentation.
10969 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
10970 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
10971 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
10972 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
10973 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
10974 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
10975 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
10976 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
10977 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
10978 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
10979 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
10980 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
10981 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
10982 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
10983 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
10984 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
10985 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
10986 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
10987 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
10988 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
10989 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
10990 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
10991 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
10992 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
10993 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
10994 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
10995 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
10996 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
10997 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
10998 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
10999 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
11000 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
11001 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
11002 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
11003 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
11004 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
11005 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
11006 * config/i386/i386.c (ix86_return_pops_args): Make static.
11007 Constify arguments.
11008 (TARGET_RETURN_POPS_ARGS): Define.
11009 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
11010 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
11011 (TARGET_RETURN_POPS_ARGS): Define.
11012 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
11013 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
11014 (TARGET_RETURN_POPS_ARGS): Define.
11015
11016 2010-06-29 Richard Guenther <rguenther@suse.de>
11017
11018 PR middle-end/44667
11019 * tree-inline.c (initialize_inlined_parameters): Make sure
11020 to remap the inlined parameter variable substitutions types.
11021
11022 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
11023
11024 PR rtl-optimization/44659
11025 * combine.c (make_compound_operation) <SUBREG>: Do not return the
11026 result of force_to_mode if it partially re-expanded the compound.
11027
11028 2010-06-28 Jan Hubicka <jh@suse.cz>
11029
11030 PR middle-end/44671
11031 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
11032 RESULT_DECL.
11033
11034 2010-06-28 Anatoly Sokolov <aesok@post.ru>
11035
11036 * double-int.h (force_fit_type_double): Remove declaration.
11037 * double-int.c (force_fit_type_double): Move to tree.c.
11038 * tree.h (force_fit_type_double): Declare.
11039 * tree.h (force_fit_type_double): Moved from double-int.c. Use
11040 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
11041 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
11042 * convert.c (convert_to_pointer): Adjust call to
11043 force_fit_type_double.
11044 * tree-vrp.c (extract_range_from_assert,
11045 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
11046 * fold-const.c: Update comment.
11047 (int_const_binop, fold_convert_const_int_from_int,
11048 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
11049 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
11050 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
11051 round_up_loc): Adjust call to force_fit_type_double.
11052
11053 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11054
11055 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
11056
11057 2010-06-28 Martin Jambor <mjambor@suse.cz>
11058
11059 * tree-sra.c (convert_callers): New parameter, change fndecls of
11060 recursive calls.
11061 (modify_function): Pass the old decl to convert_callers.
11062
11063 2010-06-28 Martin Jambor <mjambor@suse.cz>
11064
11065 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
11066 ipa_check_create_node_params and ipa_initialize_node_params with
11067 checking asserts they are not necessary.
11068
11069 2010-06-28 Jan Hubicka <jh@suse.cz>
11070
11071 PR tree-optimization/44687
11072 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
11073
11074 2010-06-28 Martin Jambor <mjambor@suse.cz>
11075
11076 PR c++/44535
11077 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
11078 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
11079 instead of BINFO_BASE_BINFO.
11080
11081 2010-06-28 Michael Matz <matz@suse.de>
11082
11083 PR middle-end/44592
11084 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
11085 proper VDEF chain for intermediate stores in the sequence.
11086
11087 2010-06-28 Jan Hubicka <jh@suse.cz>
11088
11089 PR tree-optimization/44357
11090 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
11091 uninlinable functions.
11092
11093 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11094
11095 * config.gcc (powerpc*-*-*): Handle titan.
11096 * config/rs6000/rs6000.c (titan_cost): New costs.
11097 (rs6000_override_options): Add "titan" to processor_target_table.
11098 Add Titan to branch alignment logic.
11099 Correctly set rs6000_cost for titan.
11100 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
11101 * config/rs6000/titan.md: New file.
11102 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
11103
11104 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
11105
11106 * tree-browser.c (TB_history_stack): Convert to a VEC.
11107 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
11108 (TB_history_prev): Likewise.
11109
11110 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
11111
11112 * vec.h (vec_heap_free): Add parentheses around free.
11113
11114 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
11115
11116 * system.h: Poison GCC_EXCEPT_H for front-end files.
11117
11118 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
11119 langhook.
11120 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
11121 Define to NULL by default.
11122 * except.h: Define GCC_EXCEPT_H.
11123 (doing_eh): Remove prototype.
11124 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
11125 (lang_protect_cleanup_actions): Remove.
11126 * except.c (lang_protect_cleanup_actions): Remove.
11127 (doing_eh): Remove.
11128 (gen_eh_region): Don't check doing_eh here.
11129 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
11130 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
11131 instead of lang_protect_cleanup_actions.
11132 * omp-low.c (maybe_catch_exception): Likewise.
11133 * Makefile.in: Update dependencies.
11134
11135 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
11136
11137 * cgraph.h (struct varpool_node): new used_from_object_file flag.
11138 (struct cgraph_local_info): new used_from_object_file flag.
11139 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
11140 (cgraph_clone_node): initialize used_from_object_file.
11141 (cgraph_create_virtual_clone): initialize used_from_object_file.
11142 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
11143 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
11144 when compiling with -fwhole-program.
11145 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
11146 internal resolver.
11147 * ipa.c (function_and_variable_visibility): Set externally_visible
11148 flag of varpool_node if used_from_object_file flag is set.
11149 (cgraph_externally_visible_p): check used_from_object_file flag.
11150 * doc/invoke.texi (-fwhole-program option): Change description of
11151 externally_visible attribute accordingly.
11152 * doc/extend.texi (externally_visible): Ditto.
11153
11154 2010-06-27 Jan Hubicka <jh@suse.cz>
11155
11156 * params.def (max-inline-insns-auto): Default to 40.
11157 * doc/invoke.texi (max-inline-insns-auto): Document the change.
11158
11159 2010-06-27 Jan Hubicka <jh@suse.cz>
11160
11161 PR middle-end/44671
11162 PR middle-end/44686
11163 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
11164 signature change.
11165 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
11166 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
11167
11168 2010-06-27 Anatoly Sokolov <aesok@post.ru>
11169
11170 * target.h (struct gcc_target): Add register_move_cost field.
11171 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
11172 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
11173 * targhooks.c (default_register_move_cost): New function.
11174 * targhooks.h (default_register_move_cost): Declare function.
11175 * defaults.h (REGISTER_MOVE_COST): Delete.
11176 * ira-int.h (ira_register_move_cost): Update comment.
11177 * ira.c (ira_register_move_cost): Update comment.
11178 * reload.h (register_move_cost): Declare.
11179 * reginfo.c (register_move_cost): New function.
11180 (move_cost): Update comment.
11181 (init_move_cost, memory_move_secondary_cost): Replace
11182 REGISTER_MOVE_COST with register_move_cost.
11183 * postreload.c (reload_cse_simplify_set): (Ditto.).
11184 * reload.c (find_valid_class, find_reloads): (Ditto.).
11185 * reload1.c (choose_reload_regs): (Ditto.).
11186 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
11187 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
11188 * doc/md.texi (can_create_pseudo_p): Update documentation.
11189
11190 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
11191 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
11192 * config/i386/i386.h (ix86_memory_move_cost): Make static.
11193 (TARGET_MEMORY_MOVE_COST): Define.
11194
11195 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
11196 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
11197 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
11198 (TARGET_MEMORY_MOVE_COST): Define.
11199
11200 2010-06-27 Richard Guenther <rguenther@suse.de>
11201
11202 PR tree-optimization/44683
11203 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
11204 false edge from the inverted condition.
11205
11206 2010-06-27 Richard Guenther <rguenther@suse.de>
11207
11208 PR middle-end/44684
11209 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
11210 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
11211 for register LHS. Or non-store assignments.
11212
11213 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
11214
11215 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
11216 (sparc_emit_set_const64): Likewise. Remove disabled code.
11217 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
11218 (sparc_emit_set_const64): Likewise.
11219
11220 2010-06-26 Catherine Moore <clm@codesourcery.com>
11221
11222 * config/mips/mips.md (alu_type): New attribute.
11223 (type): Infer type from alu_type.
11224 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
11225 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
11226 *subsi3_extended, negsi2, negdi2, *low<mode>,
11227 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
11228 xor<mode>3, *nor<mode>3,
11229 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
11230 *zero_extendhi_truncqi): Set alu_type instead of type.
11231
11232 2010-06-26 Douglas B Rupp <rupp@gnat.com>
11233
11234 * config/alpha/alpha.c (alpha_need_linkage): Adjust
11235 splay_tree_new_ggc call.
11236 (alpha_use_linkage): Likewise.
11237
11238 2010-06-26 Joseph Myers <joseph@codesourcery.com>
11239
11240 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
11241 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
11242 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
11243 (static_specs): Remove switches_need_spaces.
11244 (process_command, do_self_spec): Hardcode handling "-o" instead of
11245 checking switches_need_spaces.
11246 * system.h (SWITCHES_NEED_SPACES): Poison.
11247
11248 2010-06-26 Richard Guenther <rguenther@suse.de>
11249
11250 PR tree-optimization/44393
11251 * tree-loop-distribution.c (generate_loops_for_partition): Fix
11252 stmt removal and VOP renaming.
11253 (generate_memset_zero): Remove redundant stmt updating.
11254 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
11255 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
11256
11257 2010-06-26 Jan Hubicka <jh@suse.cz>
11258
11259 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
11260 edges comming from header are equivalent.
11261 (visit_bb): Handle PHIs correctly.
11262 * tree-inline.c (copy_phis_for_bb): Be able to copy
11263 PHI from entry edge.
11264 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
11265
11266 2010-06-26 Richard Guenther <rguenther@suse.de>
11267
11268 PR middle-end/44674
11269 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
11270 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
11271
11272 2010-06-26 Joseph Myers <joseph@codesourcery.com>
11273
11274 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
11275 add_infile, alloc_switch): New.
11276 (process_command): Remove variable lang_n_infiles. Process
11277 options in a single pass. Use new functions for allocating
11278 infiles and switches arrays. Properly skip operands of
11279 -Xpreprocessor and -Xassembler.
11280
11281 2010-06-26 Jan Hubicka <jh@suse.cz>
11282
11283 PR middle-end/44671
11284 * cgraphunit.c (cgraph_function_versioning): Remove wrong
11285 cgraph_make_decl_local call; fix typo copying RTL data.
11286
11287 2010-06-25 DJ Delorie <dj@redhat.com>
11288
11289 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
11290 (m32c_output_aligned_common): Likewise.
11291 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
11292 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11293 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
11294 (m32c_register_pragmas): Register it.
11295 * config/m32c/m32c.c (m32c_get_pragma_address): New.
11296 (m32c_insert_attributes): Set #pragma address decls volatile.
11297 (pragma_entry_eq): New.
11298 (pragma_entry_hash): New.
11299 (m32c_note_pragma_address): New.
11300 (m32c_get_pragma_address): New.
11301 (m32c_output_aligned_common): New.
11302 * doc/extend.texi: Document the new pragma.
11303
11304 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
11305 also.
11306 * config/m32c/predicates.md (m32c_any_operand): Check the code
11307 instead of memory_operand so as to allow matching volatile MEMs.
11308 (m32c_nonimmediate_operand): Likewise.
11309 (mra_operand): Allow volatiles.
11310
11311 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
11312
11313 PR debug/44610
11314 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
11315 address if the offset is unknown.
11316
11317 2010-06-25 Douglas B Rupp <rupp@gnat.com>
11318
11319 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
11320 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
11321 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
11322 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
11323 to ia64_start_function. Invoke it.
11324 * config/ia64/ia64.c (ia64_start_function): Call new function
11325 dwarf2out_vms_debug_main_pointer.
11326
11327 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
11328
11329 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
11330 statements computing the true predicate.
11331
11332 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
11333
11334 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
11335 to boolean_true_node.
11336 (reset_bb_predicate): New.
11337 (predicate_bbs): Call reset_bb_predicate.
11338
11339 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
11340
11341 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
11342 (tree_if_conversion): Returns true when something has been changed.
11343 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
11344 changed something.
11345
11346 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
11347
11348 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
11349 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
11350 * tree-if-conv.c: Include dbgcnt.h.
11351 (tree_if_conversion): Use if_conversion_tree to count the number of
11352 if-convertible loops.
11353
11354 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
11355
11356 * common.opt (fprefetch-loop-arrays): Re-define
11357 -fprefetch-loop-arrays as a tri-state option with the initial
11358 value of -1.
11359 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
11360 pass only when flag_prefetch_loop_arrays > 0.
11361 * toplev.c (process_options): Note that, with tri-states,
11362 flag_prefetch_loop_arrays>0 means prefetching is enabled.
11363 * config/i386/i386.c (override_options): Enable prefetching at -O3
11364 for a set of CPUs that sw prefetching is helpful.
11365 (software_prefetching_beneficial_p): New. Return TRUE if software
11366 prefetching is beneficial for the given CPU.
11367
11368 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
11369
11370 PR rtl-optimization/44326
11371 * implicit-zee.c (find_removable_zero_extends): Replace
11372 INSN_P with NONDEBUG_INSN_P.
11373
11374 2010-06-25 Martin Jambor <mjambor@suse.cz>
11375
11376 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
11377 (struct ipa_node_params): Removed the modification_analysis_done flag.
11378 (ipa_is_param_modified): Removed.
11379 (ipa_analyze_node): Declare.
11380 (ipa_compute_jump_functions): Remove declaration.
11381 (ipa_count_arguments): Likewise.
11382 (ipa_detect_param_modifications): Likewise.
11383 (ipa_analyze_params_uses): Likewise.
11384 * ipa-prop.c (struct param_analysis_info): New type.
11385 (visit_store_addr_for_mod_analysis): Removed.
11386 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
11387 moved down in the file.
11388 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
11389 (ipa_count_arguments): Made static.
11390 (mark_modified): New function.
11391 (is_parm_modified_before_call): New function.
11392 (compute_pass_through_member_ptrs): New parameter parms_info, call
11393 is_parm_modified_before_call instead of ipa_is_param_modified.
11394 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
11395 it to compute_pass_through_member_ptrs.
11396 (ipa_compute_jump_functions): New parameter parms_info, pass it to
11397 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
11398 on the callee if it is analyzed. Made static.
11399 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
11400 is_parm_modified_before_call instead of ipa_is_param_modified.
11401 (ipa_analyze_call_uses): New parameter parms_info, pass it to
11402 ipa_analyze_indirect_call_uses.
11403 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
11404 ipa_analyze_call_uses.
11405 (ipa_analyze_params_uses): New parameter parms_info, pass it to
11406 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
11407 (ipa_analyze_node): New function.
11408 (ipa_print_node_params): Do not dump the modified flag.
11409 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
11410 it. Do not stream the modified parameter flag.
11411 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
11412 it. Do not stream the modified parameter flag.
11413 * ipa-cp.c (ipcp_analyze_node): Removed.
11414 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
11415 with only a call to ipa_analyze_node.
11416 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
11417 node with only a call to ipa_analyze_node.
11418
11419 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11420
11421 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
11422
11423 2010-06-25 Jan Hubicka <jh@suse.cz>
11424
11425 * tree-pass.h (pass_split_functions): Declare.
11426 * opts.c (decode_options): Enable function splitting at -O2
11427 * timevar.def (TV_IPA_FNSPLIT): New macro.
11428 * ipa-split.c: New file.
11429 * common.opt (-fpartial-inlining): New flag.
11430 * Makefile.in (ipa-split.o): New object file.
11431 * passes.c (init_optimization_passes): Add ipa-split.
11432 * params.def (partial-inlining-entry-probability): New parameters.
11433 * doc/invoke.texi (-fpartial-inlining): New.
11434
11435 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
11436
11437 PR 44665
11438 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
11439 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
11440 (gimplify_expr): Likewise.
11441
11442 2010-06-25 Martin Jambor <mjambor@suse.cz>
11443
11444 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
11445 statements instead of bailing out on them.
11446 (ipa_analyze_indirect_call_uses): Do not require that loads from the
11447 parameter are in the same BB as the condition. Update comments.
11448
11449 2010-06-25 Jakub Jelinek <jakub@redhat.com>
11450
11451 PR middle-end/43866
11452 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
11453 true or always false, return NULL_TREE.
11454 (tree_unswitch_single_loop): Optimize conditions even when reaching
11455 max-unswitch-level parameter. If num > 0, optimize first all conditions
11456 using entry checks, then do still reachable block discovery and consider
11457 only conditions in still reachable basic blocks in the loop.
11458
11459 PR tree-optimization/44539
11460 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
11461 the call doesn't have LHS, but has VDEF.
11462
11463 2010-06-25 Joseph Myers <joseph@codesourcery.com>
11464
11465 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
11466 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
11467 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
11468 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
11469 * system.h (MODIFY_TARGET_NAME): Poison.
11470
11471 2010-06-25 Alan Modra <amodra@gmail.com>
11472
11473 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
11474 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
11475 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11476 CMODEL_LARGE as default.
11477 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
11478 (offsettable_ok_by_alignment): Delete.
11479 (rs6000_emit_move): Remove mcmodel=medium optimization.
11480
11481 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
11482
11483 With large parts from Jim Wilson:
11484 PR target/43902
11485 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
11486 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
11487 * optabs.c (optab_for_tree_code): Likewise.
11488 (expand_widen_pattern_expr): Likewise.
11489 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
11490 out of execute_optimize_widening_mul.
11491 (convert_plusminus_to_widen): New function.
11492 (execute_optimize_widening_mul): Use the two new functions.
11493 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
11494 Remove code to generate widening multiply-accumulate. Add support
11495 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
11496 * gimple-pretty-print.c (dump_ternary_rhs): New function.
11497 (dump_gimple_assign): Call it when appropriate.
11498 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
11499 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
11500 (expand_gimple_stmt_1): Likewise.
11501 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
11502 WIDEN_MULT_MINUS_EXPR.
11503 * tree-ssa-operands.c (get_expr_operands): Likewise.
11504 * tree-inline.c (estimate_operator_cost): Likewise.
11505 * gimple.c (extract_ops_from_tree_1): Renamed from
11506 extract_ops_from_tree. Add new arg for a third operand; fill it.
11507 (gimple_build_assign_stat): Support operations with three operands.
11508 (gimple_build_assign_with_ops_stat): Likewise.
11509 (gimple_assign_set_rhs_from_tree): Likewise.
11510 (gimple_assign_set_rhs_with_ops_1): Renamed from
11511 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
11512 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
11513 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
11514 WIDEN_MULT_MINUS_EXPR.
11515 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
11516 (extract_ops_from_tree_1): Adjust declaration.
11517 (gimple_assign_set_rhs_with_ops_1): Likewise.
11518 (gimple_build_assign_with_ops): Pass NULL for last operand.
11519 (gimple_build_assign_with_ops3): New macro.
11520 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
11521 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
11522 functions.
11523 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
11524 (verify_gimple_assign): Call it.
11525 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
11526 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
11527 functions for dealing with three-operand statements.
11528 * tree.c (commutative_ternary_tree_code): New function.
11529 * tree.h (commutative_ternary_tree_code): Declare it.
11530 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
11531 ternary statements.
11532 (gimple_assign_nonzero_warnv_p): Likewise.
11533 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
11534 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
11535 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
11536 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
11537 (struct hashtable_expr): New member ternary in the union.
11538 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
11539 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
11540 (iterative_hash_hashable_expr): Likewise.
11541 (print_expr_hash_elt): Handle EXPR_TERNARY.
11542 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
11543 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
11544 statements. Handle GIMPLE_TERNARY_RHS.
11545
11546 2010-06-25 Jan Hubicka <jh@suse.cz>
11547
11548 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
11549
11550 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
11551
11552 PR c/44517
11553 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
11554 parameters are not good.
11555 (c_parser_parameter_declaration): Error unknown type name if the type
11556 name can't start declaration specifiers.
11557
11558 2010-06-25 Joseph Myers <joseph@codesourcery.com>
11559
11560 * gcc.c (translate_options): Don't mention +e in comment.
11561 (process_command): Don't handle +e specially.
11562
11563 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
11564
11565 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
11566
11567 * ira-build.c (merge_hard_reg_conflicts): New function.
11568 (create_cap_allocno, copy_info_to_removed_store_destinations,
11569 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
11570 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
11571 (remove_unnecessary_allocnos, remove_low_level_allocnos)
11572 copy_nifo_to_removed_store_destination): Use them.
11573 * ira-lives.c (make_hard_regno_born): New function, split out of
11574 make_regno_born.
11575 (make_allocno_born): Likewise.
11576 (make_hard_regno_dead): New function, split out of make_regno_dead.
11577 (make_allocno_dead): Likewise.
11578 (inc_register_pressure): New function, split out of set_allocno_live.
11579 (dec_register_pressure): New function, split out of clear_allocno_live.
11580 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
11581 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
11582 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
11583 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
11584 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
11585 mark_pseudo_regno_live.
11586 (process_bb_node_lives): Use mark_pseudo_regno_live,
11587 make_hard_regno_born and make_allocno_dead.
11588 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
11589 set_allocno_live, clear_allocno_live): Delete functions.
11590
11591 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
11592 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
11593 functions.
11594 (ira_flattening): Use ira_parent_allocno.
11595 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
11596 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
11597
11598 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
11599 statement.
11600
11601 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
11602 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
11603 minmax_set_iter_cond, minmax_set_iter_next,
11604 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
11605 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
11606 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
11607 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
11608 uses changed.
11609
11610 * ira-int.h (struct live_range, live_range_t): Renamed from struct
11611 ira_allocno_live_range and allocno_live_range_t; all uses changed.
11612 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
11613 All uses changed.
11614
11615 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
11616
11617 * thumb2.md (thumb2_tlobits_cbranch): Delete.
11618 (peephole2 to convert zero_extract/compare of single bit to
11619 lshift/compare): New.
11620
11621 2010-06-24 Anatoly Sokolov <aesok@post.ru>
11622
11623 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
11624 recursive call and call to 'int_const_binop'.
11625 (build_range_check, fold_cond_expr_with_comparison, unextend,
11626 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
11627 multiple_of_p): Adjust call to const_binop.
11628
11629 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
11630
11631 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
11632 determine size of XFmode operand.
11633 (XFmode extended DFmode push splitter): Ditto.
11634 (XFmode extended SFmode push splitter): Ditto.
11635
11636 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
11637
11638 PR target/44588
11639 * config/i386/i386.md (extract_code): New.
11640 (<u>divmodqi4): Likewise.
11641 (divmodhiqi3): Likewise.
11642 (udivmodhiqi3): Likewise.
11643 (<u>divqi3): Remvoved.
11644
11645 2010-06-24 Jakub Jelinek <jakub@redhat.com>
11646
11647 PR middle-end/44492
11648 * recog.h (struct recog_data): Add is_asm field.
11649 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
11650 present in constraints of inline-asm operand and memory operand
11651 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
11652 (extract_insn): Initialize recog_data.is_asm.
11653 * doc/md.texi (Constraints): Document operand side-effect rules.
11654
11655 2010-06-24 Andi Kleen <ak@linux.intel.com>
11656
11657 * c-parser.c (c_parser_conditional_expression): Call
11658 warn_for_omitted_condop.
11659 * doc/invoke.texi: Document omitted condop warning.
11660
11661 2010-06-24 Nick Clifton<nickc@redhat.com>
11662
11663 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
11664 insn in the sequence is a jump insn before setting its label.
11665
11666 2010-06-24 Alan Modra <amodra@gmail.com>
11667
11668 * collect2.c (main): Match exactly --version and --help.
11669
11670 2010-06-24 DJ Delorie <dj@redhat.com>
11671
11672 * config/m32c/m32c-pragma.c: Don't include rtl.h.
11673
11674 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
11675
11676 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
11677 using X87MODEF mode iterator.
11678 (pushsf splitter): Macroize splitter using P mode iterator.
11679 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
11680 mode iterator.
11681
11682 (*movxf_internal): Rename from *movxf_integer.
11683 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
11684 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
11685 (*movdf_internal): Rename from *movdf_integer.
11686 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
11687 (*movsf_internal): Rename from *movdf_1.
11688
11689 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
11690
11691 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
11692 (const_gimple_seq_node): Removed typedefs.
11693
11694 * gimple.h (gimple_seq_node_d, gimple_seq_node)
11695 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
11696
11697 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
11698
11699 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
11700 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
11701 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
11702 and CODE_FOR_vec_extract_lo_v4df.
11703
11704 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
11705 Changed to define_insn_and_split.
11706 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
11707 (vec_extract_lo_v16hi): Likewise.
11708 (vec_extract_lo_v32qi): Likewise.
11709 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
11710 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
11711
11712 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
11713
11714 PR target/44640
11715 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
11716 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
11717 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
11718 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
11719 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
11720
11721 PR target/44640
11722 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
11723
11724 PR other/44644
11725 * df-core.c (struct df): Rename to df_d.
11726 * df.h (struct df): Likewise.
11727 * dse.h (struct df): Remove forward declaration.
11728 * recog.h (struct insn_data): Rename to:
11729 (struct_insn_data_d). Adjusted all users.
11730
11731 2010-06-23 Arnaud Charlet <charlet@adacore.com
11732
11733 PR ada/22220
11734 * doc/install.texi: Update requirements to build GNAT.
11735
11736 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
11737
11738 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
11739 enum type.
11740 (m68k_sched_attr_opx_type): Remove unreachable return.
11741 (m68k_sched_attr_opy_type): Likewise.
11742 (m68k_sched_attr_size): Likewise.
11743 (sched_get_opxy_mem_type): Likewise.
11744 (m68k_sched_attr_op_mem): Likewise.
11745
11746 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
11747
11748 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
11749 new statement and adjust VDEF only if necessary. Remove superfluous
11750 call to maybe_clean_or_replace_eh_stmt.
11751 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
11752 copy the flags.
11753 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
11754 * tree-inline.c (copy_bb): ...and not there.
11755
11756 2010-06-22 Cary Coutant <ccoutant@google.com>
11757
11758 * dwarf2out.c (is_nested_in_subprogram): New function.
11759 (should_move_die_to_comdat): Use it.
11760 (copy_ancestor_tree): Don't mark DIEs here.
11761 (copy_decls_walk): Start walk from root of newly-added tree;
11762 mark DIEs here instead.
11763
11764 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
11765
11766 * config/i386/i386.md (unit): Also check sseishft1.
11767
11768 2010-06-22 Jan Hubicka <jh@suse.cz>
11769
11770 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
11771 enabled.
11772
11773 2010-06-22 Jan Hubicka <jh@suse.cz>
11774
11775 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
11776 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
11777 Return true if something changed.
11778 * df.h (df_confluence_function_n): Return bool.
11779 * df-core.c (df_worklist_propagate_forward,
11780 df_worklist_propagate_backward): Track changes and ages.
11781 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
11782 track ages.
11783 * dse.c (dse_confluence_n): Return always true.
11784
11785 2010-06-22 Jan Hubicka <jh@suse.cz>
11786
11787 * bitmap.c (bitmap_clear_bit): Micro optimize.
11788
11789 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
11790
11791 * config/i386/i386.md (SWI1248x): New mode iterator.
11792 (SWI48x): Ditto.
11793 (SWI12): Ditto.
11794 (SWI24): Ditto.
11795
11796 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
11797 SWI1248x mode iterator.
11798 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
11799 using SWI124 mode iterator.
11800 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
11801 mode iterator.
11802 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
11803 *pushdi2_prologue_rex64 using P mode iterator.
11804 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
11805 using SWI48 mode iterator.
11806 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
11807 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
11808 using SWI1248x mode iterator.
11809 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
11810 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
11811 SWI48 mode iterator.
11812 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
11813 iterator.
11814 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
11815 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
11816 SWI12 mode iterator.
11817 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
11818 SWI12 mode iterator.
11819 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
11820 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
11821 SWI24 mode iterator.
11822 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
11823 SWI48 mode iterator.
11824 (mov<mode>_insn_1): New expander.
11825 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
11826 using SWI48x mode iterator.
11827
11828 (*movoi_internal_avx): Rename from *movoi_internal.
11829 (*movti_internal_rex64): Rename from *movti_rex64.
11830 (*movti_internal_sse): Rename from *movti_sse.
11831 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
11832 (*movdi_internal): Rename from *movdi_2.
11833 (*movsi_internal): Rename from *movsi_1.
11834 (*movhi_internal): Rename from *movhi_1.
11835 (*movqi_internal): Rename from *movqi_1.
11836
11837 (insv): Update the call to gen_movsi_insv_1 for rename.
11838 * config/i386/i386.c (promote_duplicated_reg): Ditto.
11839
11840 2010-06-22 Jan Hubicka <jh@suse.cz>
11841
11842 * passes.c (execute_function_todo): Move call of statistics_fini_pass
11843 to ...
11844 (execute_todo) ... this one.
11845
11846 2010-06-22 Alan Modra <amodra@gmail.com>
11847
11848 PR target/44364
11849 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11850 * caller-save.c (insert_restore, insert_save): Use non-validate
11851 form of adjust_address.
11852
11853 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11854
11855 PR target/39690
11856 * config/pa/pa.c (override_options): Disable
11857 -freorder-blocks-and-partition.
11858
11859 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
11860
11861 PR target/44615
11862 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
11863
11864 * config/i386/i386.md (type): Add sseishft1
11865
11866 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
11867 (ppro_insn_load): Likewise.
11868 (ppro_insn_store): Likewise.
11869 (ppro_insn_both): Likewise.
11870
11871 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
11872 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
11873 for type.
11874 (*vec_extractv2di_1_avx): Likewise.
11875 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
11876 type. Remove atom_unit.
11877 (*vec_extractv2di_1_sse2): Likewise.
11878
11879 2010-06-21 DJ Delorie <dj@redhat.com>
11880
11881 * diagnostic.h (diagnostic_classification_change_t): New.
11882 (diagnostic_context): Add history and push/pop list.
11883 (diagnostic_push_diagnostics): Declare.
11884 (diagnostic_pop_diagnostics): Declare.
11885 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
11886 from pragmas in a history chain instead of the global table.
11887 (diagnostic_push_diagnostics): New.
11888 (diagnostic_pop_diagnostics): New.
11889 (diagnostic_report_diagnostic): Scan history chain to find state
11890 of diagnostics as of the diagnostic location.
11891 * opts.c (set_option): Pass UNKNOWN_LOCATION to
11892 diagnostic_classify_diagnostic.
11893 (enable_warning_as_error): Likewise.
11894 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
11895 use in the history chain.
11896 * doc/extend.texi: Document pragma GCC diagnostic changes.
11897
11898 2010-06-21 Jakub Jelinek <jakub@redhat.com>
11899
11900 * dwarf2out.c (add_linkage_name): New function. Don't add
11901 anything to DW_TAG_member DIEs.
11902 (add_name_and_src_coords_attributes): Use it.
11903 (gen_variable_die): Call it for C++ static data members if
11904 specification is DW_TAG_member.
11905
11906 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
11907 C++ char16_t and char32_t.
11908
11909 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
11910 * genattrtab.c: Include vecprim.h.
11911 (cached_attrs, cached_attr_count, attrs_seen_once,
11912 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
11913 attrs_cached_after): New variables.
11914 (find_attrs_to_cache): New function.
11915 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
11916 (write_test_expr): Add attrs_cached argument, return it too,
11917 attempt to cache non-const attributes used more than once in
11918 a single case handling.
11919 (write_attr_get): Use find_attrs_to_cache, for caching candidates
11920 emit cached_* variables. Adjust write_attr_set callers.
11921 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
11922 to find attributes that should be cached in this block. Adjust
11923 write_test_expr callers.
11924 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
11925 callers.
11926 (make_automaton_attrs): Adjust write_test_expr caller.
11927
11928 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
11929 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
11930 (make_automaton_attrs): If find_tune_attr returns non-NULL,
11931 write separate internal_dfa_insn_code_* and insn_default_latency_*
11932 functions for each attribute's value and emit init_sched_attrs
11933 function and function pointers.
11934 * genattr.c (const_attrs, reservations): New variables.
11935 (gen_attr): Add const attributes to const_attrs vector.
11936 (check_tune_attr, find_tune_attr): New functions.
11937 (main): Add reservations to reservations vector. If find_tune_attr
11938 returns true, add prototype for init_sched_attrs and make
11939 internal_dfa_insn_code and insn_default_latency function pointers,
11940 otherwise define init_sched_attrs as dummy macro.
11941 * cfgexpand.c: Include insn-attr.h.
11942 (gimple_expand_cfg): Call init_sched_attrs.
11943
11944 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
11945
11946 PR target/44575
11947 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
11948 va_arg from a set of register save slots into a temporary,
11949 if the container is bigger than type size, do the copying
11950 using smaller mode or using memcpy.
11951
11952 PR bootstrap/44426
11953 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
11954 prototype.
11955 (sel_print_to_dot): Remove macro.
11956 (sel_print): Likewise. New prototype.
11957 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
11958 (sel_print): New function.
11959
11960 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11961
11962 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
11963 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
11964
11965 2010-06-21 Nick Clifton <nickc@redhat.com>
11966
11967 * config/rx/rx.h (PTRDIFF_TYPE): Define.
11968 (SMALL_REGISTER_CLASS): Define (to zero).
11969 (PRINT_OPERAND): Delete.
11970 (PRINT_OPERAND_ADDRESS): Delete.
11971 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
11972 (rx_print_operand_address): Delete prototype.
11973 * config/rx/rx.c (rx_print_operand): Make static.
11974 Allow %H and %L to handle CONST_DOUBLEs.
11975 (rx_print_operand_address): Make static.
11976 (rx_gen_move_template): Rename local variable 'template' to
11977 out_template.
11978 (rx_function_arg): Do not pass unknown sized objects in registers.
11979 (TARGET_PRINT_OPERAND): Define.
11980 (TARGET_PRINT_OPERAND_ADDRESS): Define.
11981
11982 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11983
11984 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
11985
11986 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
11987
11988 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
11989 stack-alignment for simple leaf-functions.
11990
11991 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
11992
11993 * doc/install.texi: Document bootstrap-lto.
11994
11995 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
11996
11997 PR debug/44248
11998 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
11999 (input_function): Drop them here, if VTA is disabled.
12000
12001 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
12002
12003 PR target/44546
12004 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
12005 New predicate.
12006 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
12007 ix86_swapped_fp_comparsion_operator instead of
12008 ix86_fp_comparison_operator.
12009
12010 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
12011 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
12012 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
12013 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
12014 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
12015 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
12016
12017 2010-06-20 Joseph Myers <joseph@codesourcery.com>
12018
12019 PR other/32998
12020 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
12021 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
12022 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
12023 (decode_cmdline_option): Update for this return value. Set
12024 orig_option_with_args_text field. Set arg field for unknown
12025 options. Make static.
12026 (decode_cmdline_options_to_array): New.
12027 (prune_options): Update handling of find_opt return value.
12028 * opts.c (read_cmdline_option): Take decoded option. Return void.
12029 (read_cmdline_options): Take decoded options.
12030 (decode_options): Add parameters for decoded options. Use
12031 decode_cmdline_options_to_array. Use decoded options for -O
12032 scan. Use integral_argument for -O parameters. Update call to
12033 read_cmdline_options.
12034 (enable_warning_as_error): Update handling of find_opt return value.
12035 * opts.h: Update comment on unknown options.
12036 (struct cl_decoded_option): Update comments on opt_index and arg.
12037 Add orig_option_with_args_text.
12038 (decode_cmdline_option): Remove.
12039 (decode_cmdline_options_to_array): Declare.
12040 (decode_options): Update prototype.
12041 * toplev.c (save_argv): Remove.
12042 (save_decoded_options, save_decoded_options_count): New.
12043 (read_integral_parameter): Remove.
12044 (print_switch_values): Use decoded options.
12045 (toplev_main): Don't set save_argv. Update call to decode_options.
12046 * toplev.h (read_integral_parameter): Remove.
12047 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
12048
12049 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
12050
12051 PR target/44072
12052 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
12053 immediate.
12054 * constraints.md (Pw, Px): New constraints.
12055 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
12056
12057 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
12058
12059 * config/i386/sse.md (fma4modesuffixf4): Removed.
12060 (ssemodesuffixf2s): Likewise.
12061 (ssemodesuffixf4): Likewise.
12062 (ssemodesuffixf2c): Likewise.
12063 (ssescalarmodesuffix2s): Likewise.
12064 (avxmodesuffixf2c): Likewise.
12065 (ssemodesuffix): New.
12066 (ssescalarmodesuffix): Likewise.
12067 Update patterns with ssemodesuffix and ssescalarmodesuffix.
12068
12069 2010-06-19 Philip Herron <herron.philip@googlemail.com>
12070
12071 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
12072
12073 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
12074
12075 * stor-layout.c (debug_rli): Remove unused local variables.
12076
12077 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
12078
12079 PR rtl-optimization/40900
12080 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
12081 original expression for later reuse.
12082 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
12083 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
12084
12085 2010-06-18 Anatoly Sokolov <aesok@post.ru>
12086
12087 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
12088 double_int_fits_in_uhwi_p): Implement as static inline.
12089 (double_int_xor): New inline function.
12090 (double_int_lrotate, double_int_rrotate, double_int_max,
12091 double_int_umax, double_int_smax, double_int_min, double_int_umin,
12092 double_int_smin): Declare.
12093 (lrotate_double, rrotate_double): Remove declaration.
12094 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
12095 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
12096 (double_int_lrotate, double_int_rrotate, double_int_max,
12097 double_int_umax, double_int_smax, double_int_min, double_int_umin,
12098 double_int_smin): New function.
12099 * fold-const.c (int_const_binop): Clean up, use double_int_*
12100 functions.
12101 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
12102 double_int_* and immed_double_int_const functions.
12103
12104 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
12105
12106 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
12107 * function.c (types_used_by_cur_var_decl): Likewise.
12108 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
12109
12110 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
12111
12112 * tree.h (record_layout_info): Change type of pending_statics field
12113 to a VEC.
12114 * stor-layout.c (start_record_layout): Store NULL into
12115 pending_statics.
12116 (debug_rli): Call debug_vec_tree instead of debug_tree.
12117 (place_field): Likewise.
12118 (finish_record_layout): Likewise.
12119
12120 2010-06-18 Alan Modra <amodra@gmail.com>
12121
12122 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
12123
12124 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12125
12126 PR target/43740
12127 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
12128 for SET source operand from SET destination operand.
12129
12130 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
12131
12132 PR rtl-optimization/39871
12133 * reload1.c (init_eliminable_invariants): For flag_pic, disable
12134 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
12135 (function_invariant_p): Rule out a plus of frame or arg pointer with
12136 a SYMBOL_REF.
12137 * ira.c (find_reg_equiv_invariant_const): Likewise.
12138
12139 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
12140
12141 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
12142 print_operand_address and puts to output the operand for CONST.
12143
12144 2010-06-17 Jakub Jelinek <jakub@redhat.com>
12145
12146 PR debug/44572
12147 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
12148 hook.
12149
12150 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
12151
12152 * v850-protos.h (print_operand): Delete.
12153 (print_operand_address): Delete.
12154 * v850.h (PRINT_OPERAND): Delete.
12155 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12156 (PRINT_OPERAND_ADDRESS): Delete.
12157 * v850.c (print_operand_address): Rename to...
12158 (v850_print_operand_address): ...this. Make static. Call
12159 v850_print_operand.
12160 (print_operand): Rename to...
12161 (v850_print_operand): ...this. Make static. Call
12162 v850_print_operand_address.
12163 (v850_print_operand_punct_valid_p): New function.
12164 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12165 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12166
12167 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
12168
12169 * config/sh/sh-protos.h (print_operand): Delete.
12170 (print_operand_address): Delete.
12171 * config/sh/sh.h (PRINT_OPERAND): Delete.
12172 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12173 (PRINT_OPERAND_ADDRESS): Delete.
12174 * config/sh/sh.c (sh_print_operand_address): Make static.
12175 (sh_print_operand): Make static. Call sh_print_operand_address
12176 and sh_print_operand.
12177 (sh_print_operand_punct_valid_p): New function.
12178 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12179 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12180
12181 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
12182
12183 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
12184 (mcore_print_operand_address): Delete.
12185 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
12186 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12187 (PRINT_OPERAND_ADDRESS): Delete.
12188 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
12189 (mcore_print_operand): Make static.
12190 (mcore_print_operand_punct_valid_p): New function.
12191 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
12192 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12193
12194 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
12195
12196 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
12197 (print_operand_address): Delete.
12198 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
12199 (PRINT_OPERAND_ADDRESS): Delete.
12200 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
12201 static.
12202 (m68hc11_print_operand): Make static.
12203 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12204
12205 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
12206
12207 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
12208 (m32r_print_operand_address): Delete.
12209 * config/m32r/m32r.h (m32r_punct_chars): Delete.
12210 (PRINT_OPERAND): Delete.
12211 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12212 (PRINT_OPERAND_ADDRESS): Delete.
12213 * config/m32r/m32r.c (m32r_punct_chars): Make static.
12214 (m32r_print_operand_address): Make static.
12215 (m32r_print_operand): Make static.
12216 (m32r_print_operand_punct_valid_p): New function.
12217 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
12218 (TARGET_PRINT_OPERAND_ADDRESS): Define.
12219
12220 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
12221
12222 * config/iq2000/iq2000-protos.h (print_operand): Delete.
12223 (print_operand_address): Delete.
12224 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
12225 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12226 (PRINT_OPERAND_ADDRESS): Delete.
12227 (iq2000_print_operand_punct): Delete.
12228 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
12229 (iq2000_print_operand_address): Make static.
12230 (iq2000_print_operand): Make static.
12231 (iq2000_print_operand_punct_valid_p): New function.
12232 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
12233 (TARGET_PRINT_OPERAND_ADDRESS): Define.
12234
12235 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
12236
12237 * config/frv/frv-protos.h (frv_print_operand): Delete.
12238 (frv_print_operand_address): Delete.
12239 * config/frv/frv.h (PRINT_OPERAND): Delete.
12240 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12241 (PRINT_OPERAND_ADDRESS): Delete.
12242 * config/frv/frv.c (frv_print_operand_address): Make static.
12243 (frv_print_operand): Make static.
12244 (frv_print_operand_punct_valid_p): New function.
12245 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
12246 (TARGET_PRINT_OPERAND_ADDRESS): Define.
12247
12248 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
12249
12250 * tree.h (vec_member): Declare.
12251 * tree.c (vec_member): Define.
12252
12253 2010-06-17 Richard Guenther <rguenther@suse.de>
12254
12255 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
12256 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
12257
12258 2010-06-17 Richard Guenther <rguenther@suse.de>
12259
12260 * tree-inline.c (declare_return_variable): Remove bogus code.
12261
12262 2010-06-17 Richard Guenther <rguenther@suse.de>
12263
12264 * gimplify.c (gimplify_bind_expr): Always promote complex
12265 and vector variables to registers if possible.
12266
12267 2010-06-17 Richard Guenther <rguenther@suse.de>
12268
12269 * expr.c (get_inner_reference): Use double_int for bit_offset
12270 calculation.
12271
12272 2010-06-16 DJ Delorie <dj@redhat.com>
12273
12274 * common.opt (-fstrict-volatile-bitfields): new.
12275 * doc/invoke.texi: Document it.
12276 * fold-const.c (optimize_bit_field_compare): For volatile
12277 bitfields, use the field's type to determine the mode, not the
12278 field's size.
12279 * expr.c (expand_assignment): Likewise.
12280 (get_inner_reference): Likewise.
12281 (expand_expr_real_1): Likewise.
12282 * expmed.c (store_fixed_bit_field): Likewise.
12283 (extract_bit_field_1): Likewise.
12284 (extract_fixed_bit_field): Likewise.
12285
12286 2010-06-16 Richard Guenther <rguenther@suse.de>
12287
12288 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
12289
12290 2010-06-16 Douglas B Rupp <rupp@gnat.com>
12291
12292 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
12293 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
12294 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
12295 * debug.c: Likewise.
12296 * sdbout.c: Likewise.
12297 * vmsdbgout.c: Likewise.
12298 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
12299 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
12300 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
12301 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
12302 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
12303 * dwarf2out.c (dw_fde_struct): New fields
12304 dw_fde_vms_{end,begin}_prologue.
12305 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
12306 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
12307 (dwarf2out_vms_end_prologue): New function.
12308 (dwarf2out_vms_begin_epilogue): New function.
12309 (dw_val_struct): New value dw_val_class_vms_delta.
12310 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
12311 begin_epilogue for VMS.
12312 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
12313 new static functions.
12314 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
12315 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
12316 static functions.
12317 (print_die): New case dw_val_class_vms_delta.
12318 (attr_checksum): Likewise.
12319 (same_dw_val_p: Likewise.
12320 (size_of_die): Likewise.
12321 (value_format): Likewise.
12322 (output_die): Likewise.
12323 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
12324 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
12325 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
12326 dwarf2out_cfi_begin_epilogue
12327 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
12328
12329 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
12330
12331 * config/cris/cris-protos.h (cris_print_operand): Delete.
12332 (cris_print_operand_address): Delete.
12333 * config/cris/cris.h (PRINT_OPERAND): Delete.
12334 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12335 (PRINT_OPERAND_ADDRESS): Delete.
12336 * config/cris/cris.c (cris_print_operand_address): Make static.
12337 (cris_print_operand): Make static.
12338 (cris_print_operand_punct_valid_p): New function.
12339 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
12340 (TARGET_PRINT_OPERAND_ADDRESS): Define.
12341
12342 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
12343
12344 * config/arm/arm-protos.h (arm_print_operand): Delete.
12345 (arm_print_operand_address): Delete.
12346 * config/arm/arm.h (PRINT_OPERAND): Delete.
12347 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12348 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
12349 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
12350 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
12351 (arm_print_operand): Make static.
12352 (arm_print_operand_punct_valid_p): New function.
12353 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
12354 (TARGET_PRINT_OPERAND_ADDRESS): Define.
12355
12356 2010-06-16 Nick Clifton <nickc@redhat.com>
12357
12358 * config/rx/constraints.md (NEGint4): New constraint.
12359 * config/rx/rx.md (attr cc): Add set_zsc.
12360 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
12361 initialised.
12362 (cmpsf): Likewise.
12363 (call_internal): Clobber the cc0 register.
12364 (call_value_internal): Likewise.
12365 (cstoresi4): Likewise.
12366 (movsieq): Likewise.
12367 (movsine): Likewise.
12368 (addsi3): Add alternative to handle small negative constants.
12369 (sunsi3): Likewise.
12370 (addsi3): Do not set the O bit in the cc0 register.
12371 (adddi3): Likewise.
12372 (subsi3): Likewise.
12373 (subdi3): Likewise.
12374 (andsi3): Reorder alternatives to prefer shorter forms.
12375 (mulsi3): Likewise.
12376 (iorsi3): Likewise.
12377 (negsi2): Note that the cc0 flags are set.
12378 (rotlsi3): Note that only the Z and S bits are set in cc0.
12379 (lshrsi3): Likewise.
12380 (ashlsi3): Likewise.
12381 (subsf3): Use %Q for the MEM operand.
12382 (fix_truncsfsi2): Likewise.
12383 (floatsisf2): Likewise.
12384 (bitset): Remove early clobber from destination.
12385 (bitset_in_memory): Likewise.
12386 (lrintsf2): Clobber the cc0 register.
12387 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
12388 (rx_print_operand): Handle %N.
12389
12390 2010-06-16 Jan Hubicka <jh@suse.cz>
12391
12392 * df-core.c (df_compact_blocks): Free problem_temps vector.
12393
12394 2010-06-16 Martin Jambor <mjambor@suse.cz>
12395
12396 PR tree-optimization/43905
12397 * tree-sra.c: Include tree-inline.h.
12398 (create_abstract_origin): Removed.
12399 (modify_function): Version the call graph node instead of creating
12400 abstract origins and dealing with same_body aliases.
12401 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
12402 function is versionable.
12403 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
12404
12405 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
12406
12407 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
12408 (CHOOSE_DYNAMIC_LINKER): Update.
12409
12410 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
12411
12412 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
12413 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
12414 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
12415 *prefetch_3dnow_rex.
12416
12417 2010-06-15 Anatoly Sokolov <aesok@post.ru>
12418
12419 * target.h (struct asm_out):Add declare_constant_name field.
12420 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
12421 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
12422 * output.h (default_asm_declare_constant_name): Declare.
12423 (assemble_label): Update prototype.
12424 * varasm.c (assemble_constant_contents): Use
12425 targetm.asm_out.declare_constant_name target hook.
12426 (assemble_label): Add 'file' argument.
12427 (default_asm_declare_constant_name): New function.
12428 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
12429 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
12430 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
12431
12432 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
12433 * config/darwin.c (darwin_asm_declare_constant_name): New function.
12434 (machopic_output_indirection): Update assemble_label argument list.
12435 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
12436 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
12437
12438 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
12439
12440 PR middle-end/44391
12441 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
12442 size_one_node for pointer types. Do not call gmp_cst_to_tree.
12443
12444 2010-06-15 Richard Guenther <rguenther@suse.de>
12445
12446 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
12447
12448 2010-06-15 Paul Brook <paul@codesourcery.com>
12449
12450 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
12451 hard-float ABI.
12452
12453 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
12454
12455 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
12456 don't get a vector type for output.
12457
12458 2010-06-15 Jakub Jelinek <jakub@redhat.com>
12459
12460 PR fortran/44536
12461 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
12462 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
12463 (LANG_HOOKS_DECLS): Add it.
12464 * gimplify.c (omp_notice_variable): Call
12465 lang_hooks.decls.omp_report_decl.
12466
12467 2010-06-15 Martin Jambor <mjambor@suse.cz>
12468
12469 PR lto/44464
12470 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
12471 on the newly dead SSA name.
12472
12473 2010-06-15 Alan Modra <amodra@gmail.com>
12474
12475 * doc/invoke.texi: Add mcmodel to powerpc options.
12476 * configure.ac: Add HAVE_LD_LARGE_TOC test.
12477 * configure: Regenerate.
12478 * config.in: Regenerate.
12479 * config/rs6000/linux64.opt (mcmodel): New.
12480 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
12481 (TARGET_CMODEL, SET_CMODEL): Define.
12482 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
12483 select CMODEL_MEDIUM default.
12484 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
12485 (TARGET_CMODEL): Define default.
12486 * config/rs6000/rs6000.c (cmodel): New variable.
12487 (rs6000_explicit_options): Add cmodel field.
12488 (rs6000_handle_option): Handle -mcmodel.
12489 (create_TOC_reference): Add largetoc_reg param. Generate high,
12490 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
12491 (rs6000_delegitimize_address): Recognise new toc reference rtl
12492 and minimal-toc rtl.
12493 (rs6000_legitimize_reload_address): Handle new toc references.
12494 (print_operand_address): Handle legitimate_constant_pool_address_p
12495 match before lo_sum.
12496 (rs6000_eliminate_indexed_memrefs): Tidy.
12497 (rs6000_emit_move): Tweak threshold for inlining constants.
12498 Keep rs6000_emit_allocate_stack large stack frame offsets
12499 loaded into r0 inline.
12500 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
12501 (tocrel_base, tocrel_offset): New variables.
12502 (toc_relative_expr_p): Set them here.
12503 (print_operand_address): Skip over any offset on constant pool address.
12504 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
12505 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
12506 (offsettable_ok_by_alignment): New function.
12507 (rs6000_emit_move): Address suitably aligned local symbol_refs
12508 relative to the toc pointer for -mcmodel=medium.
12509 (legitimate_constant_pool_address_p): Make param const_rtx. Add
12510 strict param. Allow lo_sum version of addressing. Verify reg
12511 used for -mminimal-toc and -mcmodel != small. Update all callers.
12512 * config/rs6000/constraints.md: Update for above change.
12513 * config/rs6000/predicates.md: Likewise.
12514 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
12515 code.
12516 (tls_gd): Split for -mcmodel=medium/large.
12517 (tls_gd_high, tls_gd_low): New.
12518 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
12519 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
12520 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
12521 (largetoc_high, largetoc_low): New.
12522 (cmptf_internal2): Add clobber.
12523 * config/rs6000/rs6000-protos.h: Update.
12524
12525 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
12526
12527 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
12528 true if no prefetch is going to be generated for a given group.
12529 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
12530 estimate the prefetch_count.
12531 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
12532 prefetch count by considering the unroll_factor and prefetch_mod
12533 for is_loop_prefetching_profitable.
12534
12535 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
12536
12537 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
12538 anything if the argument is not a MEM.
12539
12540 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
12541
12542 PR debug/43650
12543 PR debug/44181
12544 PR debug/44247
12545 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
12546 debug stmts.
12547 (canonicalize_loop_ivs): Likewise.
12548
12549 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
12550
12551 PR debug/43656
12552 * haifa-sched.c (setup_insn_reg_pressure_info,
12553 update_register_pressure): Reject debug insns.
12554 (ready_sort): Don't setup reg pressure for debug insns.
12555 (schedule_insn): Don't update reg pressure for debug insns.
12556
12557 2010-06-14 Richard Guenther <rguenther@suse.de>
12558
12559 * lto-streamer.c (cached_bp): Remove.
12560 (bitpack_delete): Likewise.
12561 (bitpack_create): Likewise.
12562 (bp_get_next_word): Likewise.
12563 (bp_pack_value, bp_unpack_value): Move ...
12564 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
12565 Re-implement.
12566 (struct bitpack_d): Likewise.
12567 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
12568 New inline functions.
12569 * lto-streamer-out.c (lto_output_bitpack): Remove.
12570 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
12571 (pack_value_fields): Adjust.
12572 (lto_write_tree): Likewise.
12573 (output_gimple_stmt): Likewise.
12574 (output_function): Likewise.
12575 * lto-streamer-in.c (input_gimple_stmt): Adjust.
12576 (input_function): Likewise.
12577 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
12578 (lto_input_bitpack): Remove.
12579 (lto_materialize_tree): Adjust.
12580 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
12581 * lto-cgraph.c (lto_output_edge): Adjust.
12582 (lto_output_node): Likewise.
12583 (lto_output_varpool_node): Likewise.
12584 (lto_output_ref): Likewise.
12585 (input_node): Likewise.
12586 (input_varpool_node): Likewise.
12587 (input_ref): Likewise.
12588 (input_edge): Likewise.
12589 (output_node_opt_summary): Likewise.
12590 (input_node_opt_summary): Likewise.
12591 * ipa-pure-const.c (pure_const_write_summary): Likewise.
12592 (pure_const_read_summary): Likewise.
12593 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
12594 (ipa_read_indirect_edge_info): Likewise.
12595 (ipa_write_node_info): Likewise.
12596 (ipa_read_node_info): Likewise.
12597
12598 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
12599
12600 PR target/44534
12601 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
12602 (vec_extract_lo_v16hi): Likewise.
12603 (vec_extract_lo_v32qi): Likewise.
12604
12605 2010-06-14 Jakub Jelinek <jakub@redhat.com>
12606
12607 PR bootstrap/44426
12608 * tree.h (build_call_expr): Don't define as vararg macro, instead
12609 add a prototype.
12610 * builtins.c (build_call_nofold): Remove.
12611 (expand_builtin_int_roundingfn, expand_builtin_pow,
12612 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
12613 expand_builtin_memset_args, expand_builtin_strcmp,
12614 expand_builtin_strncmp, expand_builtin_memory_chk): Use
12615 build_call_nofold_loc instead of build_call_nofold.
12616 (build_call_expr): New function.
12617
12618 PR tree-optimization/44508
12619 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
12620 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
12621 don't eliminate trivially dead stmts.
12622 * tree-vrp.c (vrp_finalize): Pass false as last argument
12623 to substitute_and_fold.
12624 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
12625 to substitute_and_fold.
12626 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12627
12628 PR bootstrap/44509
12629 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
12630
12631 2010-06-14 Ira Rosen <irar@il.ibm.com>
12632
12633 PR tree-optimization/44507
12634 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
12635 to build initial vector for BIT_AND_EXPR.
12636 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
12637
12638 2010-06-14 Jakub Jelinek <jakub@redhat.com>
12639
12640 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
12641 adjust z10prop set_attr.
12642
12643 2010-06-13 Jan Hubicka <jh@suse.cz>
12644
12645 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
12646 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
12647 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
12648 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
12649 datastructure checks into checking asserts.
12650 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
12651 * tree-ssa-sccvn.c (VN_INFO): Likewise.
12652 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
12653 df_ref_create_structure): Likewise.
12654 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
12655 pool_free): Use gcc_checking_assert.
12656 * alias.c (get_alias_set): Likewise.
12657 * var-tracking.c (variable_htab_free, shared_hash_copy,
12658 canonicalize_values_mark, variable_merge_over_cur): Likewise.
12659 * lto-streamer.c (bp_unpack_value): Likewise.
12660
12661 2010-06-13 Richard Guenther <rguenther@suse.de>
12662
12663 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
12664 Do not stream but initialize TYPE_CANONICAL to NULL.
12665 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
12666 * gimple.c (gimple_types_compatible_p): Disregard
12667 TYPE_STRUCTURAL_EQUALITY_P.
12668 (gimple_register_type): Use TYPE_CANONICAL as cache.
12669 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
12670 before registering common types.
12671 * config/i386/i386.c (ix86_function_arg_boundary): Do not
12672 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
12673 * tree.h (TYPE_CANONICAL): Clarify documentation.
12674
12675 2010-06-13 Anatoly Sokolov <aesok@post.ru>
12676
12677 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12678 LIBCALL_VALUE): Remove macros.
12679 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
12680 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12681 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12682 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
12683 (ia64_function_value): Make static. Handle receiving the function
12684 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
12685
12686 2010-06-12 Jan Hubicka <jh@suse.cz>
12687
12688 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
12689 at correct place.
12690
12691 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
12692
12693 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
12694
12695 2010-06-12 Jan Hubicka <jh@suse.cz>
12696
12697 * df-core.c (df_clear_bb_info): New function.
12698 (df_set_blocks): bb_info is always allocated.
12699 (df_get_bb_info): Use block_info_elt_size.
12700 (df_set_bb_info): Likewise.
12701 (df_compact_blocks): Update for new block_info.
12702 (grow_bb_info): New function.
12703 * df-problems.c (df_grow_bb_info): Move to df-core.c
12704 (df_rd_set_bb_info): Remove.
12705 (df_rd_free_bb_info): Do not free block pool.
12706 (df_rd_alloc): Do not create pool, use check for
12707 obstack presence instead of NULL pointer for new blocks.
12708 (df_rd_free): DO not free alloc pool; clear block_info.
12709 (problem_RD): Add size of block info structure.
12710 (df_lr_set_bb_info): Remove.
12711 (df_lr_free_bb_info): Do not free block pool.
12712 (df_lr_alloc): Do not create pool, use check for
12713 obstack presence instead of NULL pointer for new blocks.
12714 (df_lr_free): DO not free alloc pool; clear block_info.
12715 (problem_LR): Add size of block info structure.
12716 (df_live_set_bb_info): Remove.
12717 (df_live_free_bb_info): Do not free block pool.
12718 (df_live_alloc): Do not create pool, use check for
12719 obstack presence instead of NULL pointer for new blocks.
12720 (df_live_free): DO not free alloc pool; clear block_info.
12721 (problem_LIVE): Add size of block info structure.
12722 (problem_CHAIN): Add size of block info structure.
12723 (df_byte_lr_set_bb_info): Remove.
12724 (df_byte_lr_free_bb_info): Do not free block pool.
12725 (df_byte_lr_alloc): Do not create pool, use check for
12726 obstack presence instead of NULL pointer for new blocks.
12727 (df_byte_lr_free): DO not free alloc pool; clear block_info.
12728 (problem_BYTE_LR): Add size of block info structure.
12729 (problem_NOTE): Add size of block info structure.
12730 (df_byte_MD_set_bb_info): Remove.
12731 (df_byte_MD_free_bb_info): Do not free block pool.
12732 (df_byte_MD_alloc): Do not create pool, use check for
12733 obstack presence instead of NULL pointer for new blocks.
12734 (df_byte_MD_free): DO not free alloc pool; clear block_info.
12735 (problem_BD): Add size of block info structure.
12736 * df-scan.c (df_scan_free_internal): Free block pool.
12737 (df_scan_set_bb_info): Remove.
12738 (df_scan_free_bb_info): Check for artificial_defs instead
12739 of bb_info being non-NULL.
12740 (df_scan_alloc): DO not create df_scan_block pool.
12741 (problem_SCAN): Set size of block info.
12742 (df_bb_refs_record): Do not allocate bb_info.
12743 * df.h (df_problem): Add block_info_elt_size.
12744 (struct dataflow): Change block_info to void *.
12745 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
12746 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
12747 in-line structures.
12748
12749 2010-06-12 Jan Hubicka <jh@suse.cz>
12750
12751 PR tree-optimize/44485
12752 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
12753 containing use of return value of noreturn function.
12754
12755 2010-06-12 Anatoly Sokolov <aesok@post.ru>
12756
12757 * targhooks.c (default_function_value): Don't use
12758 FUNCTION_OUTGOING_VALUE.
12759 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
12760 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
12761
12762 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
12763
12764 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
12765 Add crtfastmath.o to extra_parts.
12766 * config/mips/crtfastmath.c: New.
12767 * config/mips/linux.h (ENDFILE_SPEC): New.
12768
12769 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
12770
12771 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
12772 old_type in parameter.
12773 (gcc_type_for_value): Update call to gcc_type_for_interval.
12774 (compute_type_for_level_1): Renamed compute_type_for_level.
12775 Update call to gcc_type_for_interval.
12776
12777 2010-06-11 Joseph Myers <joseph@codesourcery.com>
12778
12779 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
12780 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
12781
12782 2010-06-11 Joseph Myers <joseph@codesourcery.com>
12783
12784 * opts-common.c: Include options.h.
12785 (integral_argument): Move from opts.c.
12786 (decode_cmdline_option): New. Based on read_cmdline_option.
12787 * opts.c (integral_argument): Move to opts-common.c.
12788 (read_cmdline_option): Move most contents to
12789 decode_cmdline_option. Use %qs in diagnostics.
12790 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
12791 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
12792 decode_cmdline_option): New.
12793
12794 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
12795
12796 PR target/44481
12797 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
12798 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
12799 (partiysi2_cmp): Ditto.
12800 (*partiyhi2_cmp): Ditto.
12801 (*parityqi2_cmp): Remove.
12802
12803 2010-06-11 Jan Hubicka <jh@suse.cz>
12804
12805 * bitmap.h (bmp_iter_next_bit): New.
12806 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
12807
12808 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
12809 Eric Botcazou <ebotcazou@adacore.com>
12810
12811 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
12812 computed cost.
12813
12814 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
12815
12816 * config/i386/i386.md (unspec): New define_c_enum.
12817 (unspecv): Ditto.
12818
12819 2010-06-10 Jakub Jelinek <jakub@redhat.com>
12820
12821 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
12822
12823 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
12824
12825 PR middle-end/44483
12826 * tree-if-conv.c (bb_predicate_s): New struct.
12827 (bb_predicate_p): New.
12828 (bb_has_predicate): New.
12829 (bb_predicate): New.
12830 (set_bb_predicate): New.
12831 (bb_predicate_gimplified_stmts): New.
12832 (set_bb_predicate_gimplified_stmts): New.
12833 (add_bb_predicate_gimplified_stmts): New.
12834 (init_bb_predicate): New.
12835 (free_bb_predicate): New.
12836 (is_predicated): Use bb_predicate.
12837 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
12838 (predicate_bbs): Same. Gimplify the condition of the basic blocks
12839 before processing their successors.
12840 (clean_predicate_lists): Removed.
12841 (find_phi_replacement_condition): Use bb_predicate.
12842 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
12843 computations.
12844 (insert_gimplified_predicates): New.
12845 (combine_blocks): Call insert_gimplified_predicates.
12846 (tree_if_conversion): Call free_bb_predicate instead of
12847 clean_predicate_lists.
12848
12849 2010-10-11 Paul Brook <paul@codesourcery.com>
12850
12851 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
12852 * config/arm/arm.c (all_architectures): Change v7e-m default to
12853 cortexm4.
12854 * config/arm/arm-cores.def: Add cortex-m4.
12855 * config/arm/arm-tune.md: Regenerate.
12856
12857 2010-06-11 Jan Hubicka <jh@suse.cz>
12858
12859 * ipa-pure-const.c (special_builtlin_state): New function.
12860 (check_call): Use it instead of special casign BUILT_IN_RETURN.
12861 (propagate_pure_const): Use it.
12862
12863 2010-06-11 Jan Hubicka <jh@suse.cz>
12864
12865 * df-problems.c (df_live_scratch): Convert to bitmap_head.
12866 (df_live_alloc): Initialize df_live_scratch when initializing
12867 problem_data.
12868 (df_live_transfer_function): Update uses of df_live_scratch.
12869 (df_live_free): Free problem_data; clear df_live_scratch before
12870 releasing the obstack.
12871 (df_md_free): Free problem data.
12872
12873 2010-06-11 Jan Hubicka <jh@suse.cz>
12874
12875 * doc/invoke.texi (Wsuggest-attribute): Document.
12876 (Wmissing-noreturn): Remove.
12877 * ipa-pure-const.c (warn_function_noreturn): New function.
12878 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
12879 warn_missing_noreturn.
12880 * common.opt (Wsuggest-attribute=noreturn): New.
12881 * tree-flow.h (warn_function_noreturn): Declare.
12882 * tree-cfg.c (execute_warn_function_noreturn): Use
12883 warn_function_noreturn.
12884 (gate_warn_function_noreturn): New.
12885 (pass_warn_function_noreturn): Update.
12886
12887 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12888
12889 * c-typeck.c (handle_warn_cast_qual): Add loc
12890 parameter. Improve warning message.
12891 (build_c_cast): Pass location to handle_warn_cast_qual.
12892
12893 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
12894
12895 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
12896 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
12897 insn mnemonic.
12898 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
12899
12900 2010-06-10 Dodji Seketeli <dodji@redhat.com>
12901
12902 Fix bootstap on mips
12903 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
12904 be naming typedefs.
12905
12906 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
12907
12908 * system.h (helper_const_non_const_cast): New inline for
12909 gcc version <= 4.0.
12910 (CONST_CAST2): For gcc version <= 4.0 use
12911 new helper to do const/non-const casting.
12912
12913 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
12914
12915 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
12916 * Makefile.in (OBJS-common): Include insn-enums.o.
12917 (insn-enums.o): New rule.
12918 (simple_generated_c): Add insn-enums.c.
12919 (build/genenums.o): New rule.
12920 (genprogmd): Add "enums".
12921 * genconstants.c (print_enum_type): Declare a C string array
12922 for each enum.
12923 * genenums.c: New file.
12924 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
12925 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
12926 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
12927
12928 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
12929
12930 * doc/md.texi (define_enum_attr): Document.
12931 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
12932 * read-md.h (lookup_enum_type): Declare.
12933 * read-md.c (lookup_enum_type): New function.
12934 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
12935 * genattrtab.c (attr_desc): Add an enum_name field.
12936 (evaluate_eq_attr): Take the associated attribute as argument.
12937 Get the enum prefix from the enum_name field, if defined.
12938 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
12939 (simplify_test_exp): Pass attr to evaluate_eq_attr.
12940 (add_attr_value): New function, split out from...
12941 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
12942 (write_test_expr): Pass attr to evaluate_eq_attr.
12943 (write_attr_get): Use the enum_name as the enum tag, if defined.
12944 (write_attr_valueq): Use the enum_name as a prefix, if defined.
12945 (find_attr): Initialize enum_name.
12946 (main): Handle DEFINE_ENUM_ATTR.
12947 * gensupport.c (process_rtx): Likewise.
12948 * config/mips/mips.h (mips_tune_attr): Delete.
12949 * config/mips/mips.md (cpu): Use define_attr_enum.
12950
12951 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
12952
12953 * doc/md.texi (define_c_enum, define_enum): Document.
12954 * read-md.h (md_constant): Add a parent_enum field.
12955 (enum_value, enum_type): New structures.
12956 (upcase_string, traverse_enum_types): Declare.
12957 * read-md.c (enum_types): New variable.
12958 (upcase_string, add_constant): New functions.
12959 (handle_constants): Don't create the hash table here.
12960 Use add_constant.
12961 (traverse_md_constants): Don't check for a null md_constants.
12962 (decimal_string, handle_enum, traverse_enum_types): New functions.
12963 (read_md_files): Initialize md_constants and md_enums.
12964 * genconstants.c (print_md_constant): Ignore info argument.
12965 Only print constants that belong to no enum.
12966 (print_enum_type): New function.
12967 (main): Don't pass stdout to print_md_constant. Call print_enum_type
12968 for each defined enum type.
12969 * config/mips/mips.md (processor): New define_enum.
12970 (unspec): New define_c_enum.
12971 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
12972 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
12973 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
12974 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
12975 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
12976 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
12977 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
12978 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
12979 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
12980 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
12981 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
12982 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
12983 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
12984 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
12985 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
12986 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
12987 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
12988 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
12989 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
12990 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
12991 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
12992 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
12993 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
12994 (UNSPEC_RDDSP): Move to mips-dsp.md.
12995 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
12996 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
12997 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
12998 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
12999 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
13000 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
13001 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
13002 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
13003 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
13004 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
13005 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
13006 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
13007 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
13008 Moved to mips-dspr2.md.
13009 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
13010 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
13011 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
13012 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
13013 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
13014 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
13015 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
13016 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
13017 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
13018 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
13019 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
13020 UNSPEC_LOONGSON_PSADBH)
13021 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
13022 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
13023 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
13024 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
13025 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
13026 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
13027 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
13028 (cpu): Update comment.
13029 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
13030 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
13031 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
13032 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
13033 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
13034 UNSPEC_LOONGSON_PCMPEQ)
13035 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
13036 UNSPEC_LOONGSON_PINSR_0)
13037 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
13038 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
13039 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
13040 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
13041 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
13042 UNSPEC_LOONGSON_PSADBH)
13043 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
13044 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
13045 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
13046 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
13047 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
13048 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
13049 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
13050 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
13051 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
13052 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
13053 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
13054 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
13055 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
13056 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
13057 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
13058 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
13059 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
13060 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
13061 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
13062 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
13063 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
13064 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
13065 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
13066 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
13067 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
13068 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
13069 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
13070 (UNSPEC_RDDSP): Moved from mips.md.
13071 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
13072 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
13073 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
13074 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
13075 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
13076 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
13077 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
13078 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
13079 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
13080 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
13081 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
13082 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
13083 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
13084 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
13085 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
13086 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
13087 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
13088 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
13089 (UNSPEC_SCC): Moved from mips.md.
13090 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
13091 "processor_type" to "processor".
13092 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
13093 * config/mips/mips.h (processor_type): Delete.
13094 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
13095 "processor_type" to "processor".
13096
13097 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13098
13099 * configure.ac (tm_include_list): Add insn-constants.h.
13100 * configure: Regenerate.
13101 * Makefile.in (GTM_H): Move insn-constants.h here from...
13102 (TM_H): ...here.
13103 * mkconfig.sh: Remove special handling for insn-constants.h.
13104
13105 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13106
13107 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
13108 (BUILD_MD): ...this new variable.
13109 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
13110 that include the old contents of simple_generated_h and
13111 simple_generated_c.
13112 (simple_generated_h, simple_generated_c): Include them. Add
13113 insn-constants.h.
13114 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
13115 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
13116 Remove these dependencies from the main rule and include
13117 insn-conditions.md in the command line only if it appears
13118 in the dependency list.
13119 (insn-constants.h, s-constants): Delete.
13120 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
13121 or gensupport.h.
13122 (build/genmddeps.o): Likewise.
13123 (genprogrtl): New variable that contains everything from genprogmd
13124 except mddeps and constants.
13125 (genprogmd): Redefine in terms of genprogrtl. Make these programs
13126 depend on $(BUILD_MD)
13127 (genprog): New variable. Make these programs depend on
13128 $(BUILD_ERRORS).
13129 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
13130 (main): Use read_md_files instead of init_rtx_reader_args.
13131 * genconstants.c: As for genmddeps.c.
13132 * read-md.h (read_skip_construct): Declare.
13133 * read-md.c (read_skip_construct): New function.
13134 (handle_file): Allow a null handle_directive, skipping the
13135 construct if so.
13136 (parse_include): Update the comment accordingly.
13137
13138 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13139
13140 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
13141 * genmddeps.c: Include read-md.h.
13142 (main): Call init_rtx_reader_args instead of init_md_reader_args.
13143 * genattr.c (main): Likewise.
13144 * genattrtab.c (main): Likewise.
13145 * genautomata.c (main): Likewise.
13146 * gencodes.c (main): Likewise.
13147 * genconditions.c (main): Likewise.
13148 * genconfig.c (main): Likewise.
13149 * genconstants.c (main): Likewise.
13150 * genemit.c (main): Likewise.
13151 * genextract.c (main): Likewise.
13152 * genflags.c (main): Likewise.
13153 * genopinit.c (main): Likewise.
13154 * genoutput.c (main): Likewise.
13155 * genpeep.c (main): Likewise.
13156 * genrecog.c (main): Likewise.
13157 * genpreds.c (main): Likewise.
13158 * gensupport.h (in_fname): Move to read-md.h.
13159 (init_md_reader_args_cb): Rename to...
13160 (init_rtx_reader_args_cb): ...this and return a bool.
13161 (init_md_reader_args): Rename to...
13162 (init_rtx_reader_args): ...this and return a bool.
13163 (include_callback): Move to read-md.h.
13164 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
13165 (file_name_list, first_dir_md_include): Move to read-md.c
13166 (first_bracket_include): Delete unused variable.
13167 (last_dir_md_include): Move to read-md.c.
13168 (process_include): Delete, moving code to read-md.c:handle_include.
13169 (process_rtx): Don't handle INCLUDE.
13170 (save_string): Delete.
13171 (rtx_handle_directive): New function.
13172 (init_md_reader_args_cb): Rename to...
13173 (init_rtx_reader_args_cb): ...this and return a boolean success value.
13174 Use read_md_args.
13175 (init_md_reader_args): Rename to...
13176 (init_rtx_reader_args): ...this and return a boolean success value.
13177 * rtl.def (INCLUDE): Delete.
13178 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
13179 argument.
13180 * read-rtl.c (read_conditions): Don't gobble ')' here.
13181 (read_mapping): Likewise.
13182 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
13183 Handle top-level non-rtx constructs here rather than in read_rtx_1.
13184 Store the whole queue in *X. Remove call to init_md_reader.
13185 (read_rtx_1): Rename to...
13186 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
13187 Don't handle top-level non-rtx constructs here. Don't handle (nil)
13188 here.
13189 (read_nested_rtx): New function. Handle (nil) here rather than
13190 in read_rtx_code.
13191 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
13192 gobble ')' here.
13193 * read-md.h (directive_handler_t): New type.
13194 (in_fname, include_callback): Moved from read-md.h.
13195 (read_constants, init_md_reader): Delete.
13196 (read_md_files): Declare.
13197 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
13198 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
13199 from gensupport.c.
13200 (read_constants): Rename to...
13201 (handle_constants): ...this. Don't gobble ')' here.
13202 (handle_include, handle_file, handle_toplevel_file)
13203 (parse_include): New functions, mostly taken from gensupport.c.
13204 (init_md_reader): Subsume into...
13205 (read_md_files): ...this new function.
13206
13207 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13208
13209 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
13210 (unread_char): Decrement read_md_lineno after putting back '\n'.
13211 * read-md.c (fatal_with_file_and_line): Push back any characters
13212 that we decide not to add to the context.
13213 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
13214 fatal_expected_char in cases where '/' ends a line (for example).
13215 (read_name): Don't increment read_md_lineno here.
13216 (read_escape): Likewise.
13217 (read_quoted_string): Likewise.
13218 (read_braced_string): Likewise.
13219
13220 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13221
13222 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
13223 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
13224 * genconstants.c: Include read-md.h.
13225 * read-rtl.c (md_constants): Move to read-md.c.
13226 (md_name): Move to read-md.h.
13227 (initialize_iterators): Use leading_string_hash instead of def_hash
13228 and leading_string_eq_p instead of def_name_eq_p.
13229 (read_name): Move to read-md.c.
13230 (def_hash, def_name_eq_p): Delete.
13231 (read_constants, traverse_md_constants): Move to read-md.c.
13232 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
13233 * read-md.h: Include hashtab.h.
13234 (md_name): Moved from read-rtl.c.
13235 (md_constant): Moved from read-md.h.
13236 (leading_string_hash, leading_string_eq_p, read_name)
13237 (read_constants, traverse_md_constants): Declare.
13238 * read-md.c (md_constants): Moved from read-rtl.c.
13239 (leading_string_hash, leading_string_eq_p): New functions.
13240 (read_name, read_constants, traverse_md_constants): Moved from
13241 read-rtl.c.
13242
13243 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13244
13245 * read-rtl.c (md_name): New structure.
13246 (read_name): Take an md_name instead of a buffer pointer.
13247 Use the "string" field instead of strcpy when expanding constants.
13248 (read_constants): Remove the tmp_char argument. Update the calls
13249 to read_name, using two local name buffers instead of the tmp_char
13250 argument. Merge the constant-creation code.
13251 (read_conditions): Remove the tmp_char argument. Update the calls
13252 to read_name, using a local name buffer instead of the tmp_char
13253 argument.
13254 (read_mapping): Replace tmp_char variable with a local name buffer.
13255 Update the calls to read_name.
13256 (read_rtx_1): Likewise. Update the calls to read_constants and
13257 read_conditions.
13258
13259 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13260
13261 * Makefile.in (build/read-md.o): Depend on errors.h.
13262 * read-md.h (error_with_line): Declare.
13263 * read-md.c: Include errors.h.
13264 (message_with_line_1): New function, extracted from...
13265 (message_with_line): ...here.
13266 (error_with_line): New function.
13267 * genattrtab.c: If a call to message_with_line is followed by
13268 "have_error = 1;", replace both statements with a call to
13269 error_with_line.
13270 * genoutput.c: Likewise.
13271 * genpreds.c: Likewise.
13272 * genrecog.c: If a call to message_with_line is followed by
13273 "error_count++;", replace both statements with a call to
13274 error_with_line.
13275 (errorcount): Delete.
13276 (main): Don't check it.
13277 * gensupport.c: If a call to message_with_line is followed by
13278 "errors = 1;", replace both statements with a call to error_with_line.
13279 (errors): Delete.
13280 (process_define_cond_exec): Check have_error instead of errors.
13281 (init_md_reader_args_cb): Likewise. Don't set errors.
13282
13283 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13284
13285 * read-md.h (read_md_file): Declare.
13286 (read_char, unread_char): New functions.
13287 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
13288 (read_quoted_string, read_string): Remove FILE * argument.
13289 * read-md.c (read_md_file): New variable.
13290 (read_md_filename, read_md_lineno): Update comments and remove
13291 unnecessary initialization.
13292 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
13293 (read_escape, read_quoted_string, read_braced_string, read_string):
13294 Remove FILE * argument. Update calls accordingly, using read_char
13295 and unread_char instead of getc and ungetc.
13296 * rtl.h (read_rtx): Remove FILE * argument.
13297 * read-rtl.c (iterator_group): Remove FILE * argument from
13298 "find_builtin".
13299 (iterator_traverse_data): Remove "infile" field.
13300 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
13301 (add_mapping, read_name, read_constants, read_conditions)
13302 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
13303 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
13304 Remove file arguments from all calls, using read_char and unread_char
13305 instead of getc and ungetc.
13306 * gensupport.c (process_include): Preserve read_md_file around
13307 the include. Set read_md_file to the handle of the included file.
13308 Update call to read_rtx.
13309 (init_md_reader_args_cb): Set read_md_file to the handle of the file
13310 and remove local FILE *. Update calls to read_rtx.
13311
13312 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13313
13314 * read-md.h (read_rtx_lineno): Rename to...
13315 (read_md_lineno): ...this.
13316 (read_rtx_filename): Rename to...
13317 (read_md_filename): ...this.
13318 (copy_rtx_ptr_loc): Rename to...
13319 (copy_md_ptr_loc): ...this.
13320 (print_rtx_ptr_loc): Rename to...
13321 (print_md_ptr_loc): ...this.
13322 * read-md.c: Likewise. Update references after renaming.
13323 (string_obstack): Replace RTL with MD in comment.
13324 (set_rtx_ptr_loc): Rename to...
13325 (set_md_ptr_loc): ...this.
13326 (get_rtx_ptr_loc): Rename to...
13327 (get_md_ptr_loc): ...this.
13328 * genconditions.c: Update references after renaming.
13329 * genemit.c: Likewise.
13330 * genoutput.c: Likewise.
13331 * genpreds.c: Likewise.
13332 * gensupport.c: Likewise.
13333 * read-rtl.c: Likewise.
13334
13335 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
13336
13337 * Makefile.in (READ_MD_H): New variable.
13338 (BUILD_RTL): Add build/read-md.o.
13339 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
13340 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
13341 (build/genattrtab.o, build/genconditions.o build/genemit.o)
13342 (build/genextract.o, build/genflags.o, build/genoutput.o)
13343 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
13344 (build/read-md.o): New rule.
13345 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
13346 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
13347 * coretypes.h: ...here.
13348 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
13349 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
13350 * genattr.c: Include read-md.h.
13351 * genattrtab.c: Likewise.
13352 * genconditions.c: Likewise.
13353 * genemit.c: Likewise.
13354 * genextract.c: Likewise.
13355 * genflags.c: Likewise.
13356 * genoutput.c: Likewise.
13357 * genpreds.c: Likewise.
13358 * genrecog.c: Likewise.
13359 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
13360 (join_c_conditions, print_c_condition, read_rtx_filename)
13361 (read_rtx_lineno): Move to read-md.h.
13362 * read-rtl.c: Include read-md.h.
13363 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
13364 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
13365 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
13366 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
13367 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
13368 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
13369 (read_braced_string, read_string): Move to read-md.c.
13370 (read_rtx): Move some initialization to init_md_reader and call
13371 init_md_reader here.
13372 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
13373 Move to read-md.h.
13374 * gensupport.c: Include read-md.h.
13375 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
13376 * read-md.h, read-md.c: New files.
13377
13378 2010-06-10 Anatoly Sokolov <aesok@post.ru>
13379
13380 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13381 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13382 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
13383 * config/moxie/moxie.c (moxie_function_value): Make static.
13384 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
13385 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13386
13387 2010-06-10 Martin Jambor <mjambor@suse.cz>
13388
13389 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
13390 * dbgcnt.def (tree_sra): New counter.
13391 * tree-sra.c: Include dbgcnt.h.
13392 (gate_intra_sra): Check tree_sra debug counter.
13393
13394 2010-06-10 Martin Jambor <mjambor@suse.cz>
13395
13396 PR tree-optimization/44258
13397 * tree-sra.c (build_access_subtree): Return false iff there is a
13398 partial overlap.
13399 (build_access_trees): Likewise.
13400 (analyze_all_variable_accesses): Disqualify candidates if
13401 build_access_trees returns true for them.
13402
13403 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
13404
13405 PR debug/41371
13406 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
13407 tail-recurse into canonical node. Fast-forward over
13408 non-canonical VALUEs.
13409
13410 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
13411
13412 PR boostrap/44470
13413 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
13414 (*addsi_1_zext) <TYPE_LEA>: Likewise.
13415 (add lea splitter): Likewise.
13416 (add_zext lea splitter): Likewise.
13417
13418 2010-06-10 Joseph Myers <joseph@codesourcery.com>
13419
13420 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
13421
13422 2010-06-10 Jan Hubicka <jh@suse.cz>
13423
13424 * df-problems.c (df_live_problem_data): Add live_bitmaps.
13425 (df_live_alloc): Initialize problem data and live_osbtacks.
13426 (df_live_finalize): Remove obstack, problem data; do not
13427 clear all bitmaps.
13428 (df_live_top_dump, df_live_bottom_dump): Do not dump old
13429 data when not allocated.
13430 (df_live_verify_solution_start): Do not allocate problem data.
13431 (df_live_verify_solution_end): Check if out is allocated.
13432 (struct df_md_problem_data): New structure.
13433 (df_md_alloc): Allocate problem data.
13434 (df_md_free): Free problem data; do not clear bitmaps.
13435
13436 2010-06-10 Jan Beulich <jbeulich@novell.com>
13437
13438 PR bootstrap/37304
13439 * configure.ac: Replace $() with ${} when intending to expand
13440 variables rather than invoking commands.
13441 * configure: Re-generate.
13442
13443 2010-06-10 Jan Hubicka <jh@suse.cz>
13444
13445 PR rtl-optimization/44460
13446 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
13447 TYPE_NEEDS_CONSTRUCTING sanity check.
13448
13449 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
13450
13451 * doc/include/fdl.texi: Move to GFDL version 1.3.
13452
13453 * doc/cpp.texi: Move to GFDL version 1.3.
13454 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
13455 * doc/gccint.texi: Move to GFDL version 1.3.
13456 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
13457 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
13458 * doc/invoke.texi: Move to GFDL version 1.3.
13459
13460 2010-06-09 Jan Hubicka <jh@suse.cz>
13461
13462 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
13463 Break out from ...
13464 (propagate) ... here; swap the order.
13465
13466 2010-06-09 Jan Hubicka <jh@suse.cz>
13467
13468 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
13469 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
13470 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
13471 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
13472
13473 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
13474
13475 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
13476 Do not the gather memory reference in the outer loop if the step
13477 is not a constant.
13478
13479 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
13480
13481 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
13482 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
13483 8 to 4. Minor change of the related comments.
13484
13485 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
13486
13487 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
13488 the scev analysis when the variable is not used outside the loop
13489 in a close phi node: call compute_overall_effect_of_inner_loop.
13490
13491 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
13492
13493 * graphite-sese-to-poly.c (single_pred_cond): Renamed
13494 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
13495 (build_sese_conditions_before): Renamed call to single_pred_cond.
13496 (build_sese_conditions_after): Same.
13497
13498 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
13499
13500 * graphite-poly.h: Fix comments and indentation.
13501 * graphite-sese-to-poly.c: Same.
13502 (build_sese_conditions_before): Compute stmt and gbb only when needed.
13503 * tree-chrec.c: Fix comments and indentation.
13504 (tree-ssa-loop-niter.c): Same.
13505
13506 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
13507
13508 PR rtl-optimization/42461
13509 * dce.c (deletable_insn_p): Return true for const or pure calls again.
13510 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
13511
13512 2010-06-09 Jan Hubicka <jh@suse.cz>
13513
13514 * bitmap.c (bitmap_and): Walk array forward.
13515 (bitmap_and_compl_into): Likewise.
13516 (bitmap_xor): Likewise.
13517 (bitmap_xor_into): Likewise.
13518 (bitmap_equal_p): Likewise.
13519 (bitmap_intersect_p): Likewise.
13520 (bitmap_intersect_compl_p): Likewise.
13521 (bitmap_ior_and_into): Likewise.
13522 (bitmap_elt_copy): Likewise.
13523 (bitmap_and_compl): Likewise.
13524 (bitmap_elt_ior): Likewise.
13525
13526 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
13527
13528 * opts-common.c (prune_options): Ensure replacement argv array
13529 is correctly terminated by a NULL entry.
13530
13531 2010-06-09 Jan Hubicka <jh@suse.cz>
13532
13533 * cgraph.h (varpool_first_static_initializer,
13534 varpool_next_static_initializer): Make checking only when
13535 checking enabled.
13536 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
13537 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
13538 gcc_assert to gcc_checking_assert.
13539 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
13540 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
13541 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
13542 op_iter_init_phiuse, op_iter_init_phidef,
13543 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
13544 gcc_checking_assert.
13545 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
13546 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
13547 partition_is_global, live_on_entry, live_on_exit,
13548 live_merge_and_clear): Likewise.
13549 * system.h (gcc_checking_assert): New macro.
13550 * gimple.h (set_bb_seq): Use gcc_checking_assert.
13551
13552 2010-06-09 Jason Merrill <jason@redhat.com>
13553
13554 * Makefile.in (TAGS): Collect tags info from c-family.
13555
13556 2010-06-09 Jan Hubicka <jh@suse.cz>
13557
13558 * gimple.h (gcc_gimple_checking_assert): New macro.
13559 (gimple_set_def_ops, gimple_set_use_ops,
13560 gimple_set_vuse, gimple_set_vdef,
13561 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
13562 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
13563 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
13564 gimple_asm_output_op, gimple_asm_output_op_ptr,
13565 gimple_asm_set_output_op, gimple_asm_clobber_op,
13566 gimple_asm_set_clobber_op, gimple_asm_label_op,
13567 gimple_asm_set_label_op, gimple_try_set_kind,
13568 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
13569 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
13570 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
13571 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
13572 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
13573 gimple_omp_for_set_initial, gimple_omp_for_final,
13574 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
13575 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
13576 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
13577 conditional with ENABLE_GIMPLE_CHECKING.
13578 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
13579
13580 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
13581
13582 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
13583 (get_computation_cost_at): Use it.
13584 (determine_use_iv_cost_condition): Likewise.
13585 (determine_iv_cost): Likewise.
13586
13587 2010-06-09 Richard Guenther <rguenther@suse.de>
13588
13589 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
13590 replace constants.
13591
13592 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
13593
13594 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
13595
13596 2010-06-09 Martin Jambor <mjambor@suse.cz>
13597
13598 PR tree-optimization/44423
13599 * tree-sra.c (dump_access): Dump also grp_assignment_read.
13600 (analyze_access_subtree): Pass negative allow_replacements to children
13601 if the current type is scalar.
13602
13603 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
13604
13605 PR testsuite/42843
13606 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
13607 * doc/plugins.texi (Plugin license check): Update information
13608 on type of plugin_is_GPL_compatible.
13609 * Makefile.in (PLUGINCC): Define as $(COMPILER).
13610 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
13611
13612 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
13613
13614 * config/arm/arm.c (thumb2_reorg): New function.
13615 (arm_reorg): Call it.
13616 * config/arm/thumb2.md (define_peephole2 for flag clobbering
13617 arithmetic operations): Delete.
13618
13619 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
13620
13621 PR target/44067
13622 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
13623 e500v2 target.
13624
13625 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
13626
13627 PR plugins/44459
13628 * gcc-plugin.h: Encapsulate all declarations in extern "C".
13629
13630 2010-06-08 Jan Hubicka <jh@suse.cz>
13631
13632 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
13633 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
13634
13635 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
13636
13637 PR tree-optimization/39874
13638 PR middle-end/28685
13639 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
13640 Declare.
13641 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
13642 same_bool_result_p): New.
13643 (and_var_with_comparison, and_var_with_comparison_1,
13644 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
13645 (or_var_with_comparison, or_var_with_comparison_1,
13646 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
13647 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
13648 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
13649 of combine_comparisons.
13650 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
13651
13652 2010-06-08 Anatoly Sokolov <aesok@post.ru>
13653
13654 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13655 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13656 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
13657 pdp11_function_value_regno_p): New functions.
13658 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13659 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13660
13661 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
13662
13663 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
13664 Thumb-2 in the MINUS case.
13665
13666 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13667
13668 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
13669
13670 * doc/gty.texi (GTY Options): Document typed GC allocation and
13671 variable_size GTY option.
13672
13673 * ggc-internal.h: New.
13674
13675 * ggc.h: Update copyright year.
13676 (digit_string): Move to stringpool.c.
13677 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
13678 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
13679 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
13680 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
13681 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
13682 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
13683 (ggc_force_collect, ggc_get_size, ggc_statistics)
13684 (ggc_print_common_statistics): Move to ggc-internal.h.
13685 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
13686 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
13687 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
13688 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
13689 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
13690 (ggc_alloc_zone_pass_stat): Remove.
13691 (ggc_internal_alloc_stat, ggc_internal_alloc)
13692 (ggc_internal_cleared_alloc_stat): New.
13693 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
13694 (ggc_internal_vec_alloc_stat)
13695 (ggc_internal_cleared_vec_alloc_stat)
13696 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
13697 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
13698 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
13699 (ggc_cleared_alloc_ptr_array_two_args): New.
13700 (htab_create_ggc, splay_tree_new_ggc): Redefine.
13701 (ggc_splay_alloc): Change the type of the first argument to
13702 enum gt_types_enum.
13703 (ggc_alloc_string): Make macro.
13704 (ggc_alloc_string_stat): New.
13705 (ggc_strdup): Redefine.
13706 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
13707 (ggc_alloc_rtvec_sized): New.
13708 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
13709 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
13710 (ggc_internal_cleared_alloc_zone_stat)
13711 (ggc_internal_zone_alloc_stat)
13712 (ggc_internal_zone_cleared_alloc_stat)
13713 (ggc_internal_zone_vec_alloc_stat)
13714 (ggc_alloc_zone_rtx_def_stat)
13715 (ggc_alloc_zone_tree_node_stat)
13716 (ggc_alloc_zone_cleared_tree_node_stat)
13717 (ggc_alloc_cleared_gimple_statement_d_stat): New.
13718
13719 * ggc-common.c: Include ggc-internal.h.
13720 (ggc_internal_cleared_alloc_stat): Rename from
13721 ggc_alloc_cleared_stat.
13722 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
13723 (ggc_calloc): Remove.
13724 (ggc_cleared_alloc_htab_ignore_args): New.
13725 (ggc_cleared_alloc_ptr_array_two_args): New.
13726 (ggc_splay_alloc): Add obj_type parameter.
13727 (init_ggc_heuristics): Formatting fixes.
13728
13729 * ggc-none.c: Update copyright year.
13730 (ggc_alloc_stat): Rename to ggc_alloc_stat.
13731 (ggc_alloc_cleared_stat): Rename to
13732 ggc_internal_cleared_alloc_stat.
13733 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
13734
13735 * ggc-page.c: Update copyright year. Include ggc-internal.h.
13736 Remove references to ggc_alloc in comments.
13737 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
13738 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
13739 (new_ggc_zone, destroy_ggc_zone): Remove.
13740 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
13741
13742 * ggc-zone.c: Include ggc-internal.h. Remove references to
13743 ggc_alloc in comments.
13744 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
13745 (ggc_internal_alloc_zone_pass_stat): New.
13746 (ggc_internal_cleared_alloc_zone_stat): New.
13747 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
13748 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
13749 (new_ggc_zone, destroy_ggc_zone): Remove.
13750
13751 * stringpool.c: Update copyright year. Include ggc-internal.h
13752 (digit_vector): Make static.
13753 (digit_string): Moved from ggc.h.
13754 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
13755 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
13756
13757 * Makefile.in (GGC_INTERNAL_H): New.
13758 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
13759 $(GGC_INTERNAL_H) to dependencies.
13760
13761 * gentype.c: Update copyright year.
13762 (walk_type): Accept variable_size GTY option.
13763 (USED_BY_TYPED_GC_P): New macro.
13764 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
13765 whitespace at the end of strings.
13766 (get_type_specifier, variable_size_p): New functions.
13767 (alloc_quantity, alloc_zone): New enums.
13768 (write_typed_alloc_def): New function.
13769 (write_typed_struct_alloc_def): Likewise.
13770 (write_typed_typed_typedef_alloc_def): Likewise.
13771 (write_typed_alloc_defns): Likewise.
13772 (output_typename, write_splay_tree_allocator_def): Likewise.
13773 (write_splay_tree_allocators): Likewise.
13774 (main): Call write_typed_alloc_defns and
13775 write_splay_tree_allocators.
13776
13777 * lto-streamer.h (lto_file_decl_data_ptr): New.
13778
13779 * passes.c (order): Define using cgraph_node_ptr.
13780
13781 * strinpool.c (struct string_pool_data): Declare nested_ptr using
13782 ht_identifier_ptr.
13783
13784 * gimple.h (union gimple_statement_d): Likewise.
13785
13786 * rtl.h (struct rtx_def): Likewise.
13787 (struct rtvec_def): Likewise.
13788
13789 * tree.h (union tree_node): Likewise.
13790
13791 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
13792
13793 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
13794
13795 * tree-scalar-evolution.c (scev_initialize): Likewise.
13796
13797 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
13798
13799 * dwarf2asm.c (dw2_force_const_mem): Likewise.
13800
13801 * omp-low.c (lower_omp_critical): Likewise.
13802
13803 * bitmap.h (struct bitmap_head_def): Update comment to not
13804 reference ggc_alloc.
13805
13806 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
13807
13808 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
13809
13810 * ipa-prop.c (duplicate_ggc_array): Rename to
13811 duplicate_ipa_jump_func_array. Use typed GC allocation.
13812 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
13813
13814 * gimple.c (gimple_alloc_stat): Use
13815 ggc_alloc_cleared_gimple_statement_d_stat.
13816
13817 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
13818
13819 * tree.c (make_node_stat): Use
13820 ggc_alloc_zone_cleared_tree_node_stat.
13821 (make_tree_vec_stat): Likewise.
13822 (build_vl_exp_stat): Likewise.
13823 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
13824 (make_tree_binfo_stat): Likewise.
13825 (tree_cons_stat): Likewise.
13826
13827 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
13828 (shallow_copy_rtx_stat): Likewise.
13829 (make_node_stat): Likewise.
13830
13831 * lto-symtab.c: Fix comment.
13832
13833 * tree-cfg.c (create_bb): Update comment to not reference
13834 ggc_alloc_cleared.
13835 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
13836
13837 * varpool.c (varpool_node): Use typed GC allocation.
13838 (varpool_extra_name_alias): Likewise.
13839
13840 * varasm.c (emutls_decl): Likewise.
13841 (get_unnamed_section): Likewise.
13842 (get_noswitch_section): Likewise.
13843 (get_section): Likewise.
13844 (get_block_for_section): Likewise.
13845 (build_constant_desc): Likewise.
13846 (create_constant_pool): Likewise.
13847 (force_const_mem): Likewise.
13848
13849 * tree.c (build_vl_exp_stat): Likewise.
13850 (build_real): Likewise.
13851 (build_string): Likewise.
13852 (decl_debug_expr_insert): Likewise.
13853 (decl_value_expr_insert): Likewise.
13854 (type_hash_add): Likewise.
13855 (build_omp_clause): Likewise.
13856
13857 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
13858
13859 * tree-ssa.c (init_tree_ssa): Likewise.
13860
13861 * tree-ssa-structalias.c (heapvar_insert): Likewise.
13862
13863 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
13864
13865 * tree-ssa-loop-niter.c (record_estimate): Likewise.
13866
13867 * tree-ssa-alias.c (get_ptr_info): Likewise.
13868
13869 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
13870
13871 * tree-phinodes.c (allocate_phi_node): Likewise.
13872
13873 * tree-iterator.c (tsi_link_before): Likewise.
13874 (tsi_link_after): Likewise.
13875
13876 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
13877
13878 * tree-dfa.c (create_var_ann): Likewise.
13879
13880 * tree-cfg.c (create_bb): Likewise.
13881
13882 * toplev.c (alloc_for_identifier_to_locale): Likewise.
13883 (general_init): Likewise.
13884
13885 * stringpool.c (stringpool_ggc_alloc): Likewise.
13886 (gt_pch_save_stringpool): Likewise.
13887
13888 * sese.c (if_region_set_false_region): Likewise.
13889
13890 * passes.c (do_per_function_toporder): Likewise.
13891
13892 * optabs.c (set_optab_libfunc): Likewise.
13893 (set_conv_libfunc): Likewise.
13894
13895 * lto-symtab.c (lto_symtab_register_decl): Likewise.
13896
13897 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
13898 (input_eh_region): Likewise.
13899 (input_eh_lp): Likewise.
13900 (make_new_block): Likewise.
13901 (unpack_ts_real_cst_value_fields): Likewise.
13902
13903 * lto-section-in.c (lto_new_in_decl_state): Likewise.
13904
13905 * lto-cgraph.c (input_node_opt_summary): Likewise.
13906
13907 * loop-init.c (loop_optimizer_init): Likewise.
13908
13909 * lambda.h (lambda_vector_new): Likewise.
13910
13911 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
13912
13913 * ira.c (update_equiv_regs): Likewise.
13914
13915 * ipa.c (cgraph_node_set_new): Likewise.
13916 (cgraph_node_set_add): Likewise.
13917 (varpool_node_set_new): Likewise.
13918 (varpool_node_set_add): Likewise.
13919
13920 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
13921 (duplicate_ipa_jump_func_array): Likewise.
13922 (ipa_read_node_info): Likewise.
13923
13924 * ipa-cp.c (ipcp_create_replace_map): Likewise.
13925
13926 * integrate.c (get_hard_reg_initial_val): Likewise.
13927
13928 * gimple.c (gimple_alloc_stat): Likewise.
13929 (gimple_build_omp_for): Likewise.
13930 (gimple_seq_alloc): Likewise.
13931 (gimple_copy): Likewise.
13932
13933 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
13934 (gsi_insert_after_without_update): Likewise.
13935
13936 * function.c (add_frame_space): Likewise.
13937 (insert_temp_slot_address): Likewise.
13938 (assign_stack_temp_for_type): Likewise.
13939 (allocate_struct_function): Likewise.
13940 (types_used_by_var_decl_insert): Likewise.
13941
13942 * except.c (init_eh_for_function): Likewise.
13943 (gen_eh_region): Likewise.
13944 (gen_eh_region_catch): Likewise.
13945 (gen_eh_landing_pad): Likewise.
13946 (add_call_site): Likewise.
13947
13948 * emit-rtl.c (get_mem_attrs): Likewise.
13949 (get_reg_attrs): Likewise.
13950 (start_sequence): Likewise.
13951 (init_emit): Likewise.
13952
13953 * dwarf2out.c (new_cfi): Likewise.
13954 (queue_reg_save): Likewise.
13955 (dwarf2out_frame_init): Likewise.
13956 (new_loc_descr): Likewise.
13957 (find_AT_string): Likewise.
13958 (new_die): Likewise.
13959 (add_var_loc_to_decl): Likewise.
13960 (clone_die): Likewise.
13961 (clone_as_declaration): Likewise.
13962 (break_out_comdat_types): Likewise.
13963 (new_loc_list): Likewise.
13964 (loc_descriptor): Likewise.
13965 (add_loc_descr_to_each): Likewise.
13966 (add_const_value_attribute): Likewise.
13967 (tree_add_const_value_attribute): Likewise.
13968 (add_comp_dir_attribute): Likewise.
13969 (add_name_and_src_coords_attributes): Likewise.
13970 (lookup_filename): Likewise.
13971 (store_vcall_insn): Likewise.
13972 (dwarf2out_init): Likewise.
13973
13974 * dbxout.c (dbxout_init): Likewise.
13975
13976 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
13977
13978 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
13979
13980 * config/score/score7.c (score7_output_external): Likewise.
13981
13982 * config/score/score3.c (score3_output_external): Likewise.
13983
13984 * config/s390/s390.c (s390_init_machine_status): Likewise.
13985
13986 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
13987 (rs6000_init_machine_status): Likewise.
13988 (output_toc): Likewise.
13989
13990 * config/pa/pa.c (pa_init_machine_status): Likewise.
13991 (get_deferred_plabel): Likewise.
13992
13993 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
13994
13995 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
13996
13997 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
13998
13999 * config/mep/mep.c (mep_init_machine_status): Likewise.
14000 (mep_note_pragma_flag): Likewise.
14001
14002 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
14003
14004 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
14005
14006 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
14007
14008 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
14009 (i386_pe_maybe_record_exported_symbol): Likewise.
14010
14011 * config/i386/i386.c (get_dllimport_decl): Likewise.
14012 (ix86_init_machine_status): Likewise.
14013 (assign_386_stack_local): Likewise.
14014
14015 * config/frv/frv.c (frv_init_machine_status): Likewise.
14016
14017 * config/darwin.c (machopic_indirection_name): Likewise.
14018
14019 * config/cris/cris.c (cris_init_machine_status): Likewise.
14020
14021 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
14022
14023 * config/avr/avr.c (avr_init_machine_status): Likewise.
14024
14025 * config/arm/arm.c (arm_init_machine_status): Likewise.
14026
14027 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
14028 (alpha_need_linkage): Likewise.
14029 (alpha_use_linkage): Likewise.
14030
14031 * cgraph.c (cgraph_allocate_node): Likewise.
14032 (cgraph_create_edge_1): Likewise.
14033 (cgraph_create_indirect_edge): Likewise.
14034 (cgraph_add_asm_node): Likewise.
14035
14036 * cfgrtl.c (init_rtl_bb_info): Likewise.
14037
14038 * cfgloop.c (alloc_loop): Likewise.
14039 (rescan_loop_exit): Likewise.
14040
14041 * cfg.c (init_flow): Likewise.
14042 (alloc_block): Likewise.
14043 (unchecked_make_edge): Likewise.
14044
14045 * c-parser.c (c_parse_init): Likewise.
14046 (c_parse_file): Likewise.
14047
14048 * c-decl.c (bind): Likewise.
14049 (record_inline_static): Likewise.
14050 (push_scope): Likewise.
14051 (make_label): Likewise.
14052 (lookup_label_for_goto): Likewise.
14053 (finish_struct): Likewise.
14054 (finish_enum): Likewise.
14055 (c_push_function_context): Likewise.
14056
14057 * bitmap.c (bitmap_element_allocate): Likewise.
14058 (bitmap_gc_alloc_stat): Likewise.
14059
14060 * alias.c (record_alias_subset): Likewise.
14061 (init_alias_analysis): Likewise.
14062
14063 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
14064
14065 * fold-const.c (fold_comparison): Remove redundant parenthesis.
14066 * tree-inline.c (expand_call_inline): Pass translated return value of
14067 cgraph_inline_failed_string to diagnostic function.
14068
14069 2010-06-08 Andrew Pinski <pinskia@gmail.com>
14070 Shujing Zhao <pearly.zhao@oracle.com>
14071
14072 PR c/37724
14073 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
14074 implicit bad conversions is initialization.
14075 (error_init): Use gmsgid instead of msgid for argument name and change
14076 the call for error.
14077 (pedwarn_init): Use gmsgid instead of msgid for argument name and
14078 change the call for pedwarn.
14079 (warning_init): Use gmsgid instead of msgid for argument name and
14080 change the call for warning.
14081
14082 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
14083
14084 * config/mips/mips-protos.h (mips_print_operand): Delete.
14085 (mips_print_operand_address): Delete.
14086 * config/mips/mips.h (mips_print_operand_punct): Delete.
14087 (PRINT_OPERAND): Delete.
14088 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14089 (PRINT_OPERAND_ADDRESS): Delete.
14090 * config/mips/mips.c (mips_print_operand_punct): Make static.
14091 (mips_print_operand_address): Make static.
14092 (mips_print_operand): Make static. Call
14093 mips_print_operand_punct_valid_p.
14094 (mips_print_operand_punct_valid_p): New function.
14095 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14096 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14097
14098 2010-06-07 Jan Hubicka <jh@suse.cz>
14099
14100 PR middle-end/44454
14101 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
14102 are allocated.
14103
14104 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
14105
14106 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
14107 name of RECORD.
14108
14109 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14110
14111 * doc/sourcebuild.texi (Effective-Target Keywords, Other
14112 attributes): Document gas.
14113
14114 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
14115
14116 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
14117 <TYPE_LEA>: Split instruction.
14118 <default>: Remove alternative 2 handling.
14119 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
14120 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
14121 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
14122
14123 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
14124 (ashift_zext lea splitter): Use DImode for multiplication.
14125
14126 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
14127 to generate addition.
14128
14129 2010-06-07 Joseph Myers <joseph@codesourcery.com>
14130
14131 * common.opt (fira-verbose): Use Var.
14132 (fpcc-struct-return): Use Init instead of VarExists.
14133 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
14134 toplev.c.
14135 * flags.h (flag_signed_char, flag_short_enums,
14136 flag_pcc_struct_return, flag_ira_verbose,
14137 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
14138 * toplev.c (flag_detailed_statistics, flag_signed_char,
14139 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
14140 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
14141 * toplev.h (flag_crossjumping, flag_if_conversion,
14142 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
14143 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
14144 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
14145 flag_cprop_registers, time_report, flag_ira_loop_pressure,
14146 flag_ira_coalesce, flag_ira_move_spills,
14147 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
14148
14149 2010-06-07 Jan Hubicka <jh@suse.cz>
14150
14151 * df-core.c (df_analyze_problem): Do verification after allocation.
14152
14153 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
14154 (df_lr_alloc): Initialize problem data; move bitmaps to
14155 lr_bitmaps obstack.
14156 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
14157 (df_lr_verify_solution_start): Do not initialize problem data;
14158 allocate bitmaps in lr_bitmaps.
14159 (df_lr_verify_solution_end): Do not free problem data.
14160
14161 2010-06-07 Jan Hubicka <jh@suse.cz>
14162
14163 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
14164 if caller is noreturn.
14165 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
14166 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
14167 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
14168 * ipa-pure-const.c (check_decl): Add IPA parameter.
14169 (state_from_flags): New function.
14170 (better_state, worse_state): New functions.
14171 (check_call): When in IPA mode, do not care about callees.
14172 (check_load, check_store): Update.
14173 (check_ipa_load, check_ipa_store): New.
14174 (check_stmt): When in IPA mode, use IPA checkers.
14175 (analyze_function): Use state_from_flags.
14176 (propagate): Check indirect edges and references.
14177
14178 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
14179
14180 PR rtl-optimization/44404
14181 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
14182 of count_occurrences to see if it's safe to modify mem_insn.
14183
14184 2010-06-07 Richard Guenther <rguenther@suse.de>
14185
14186 * gimplify.c (gimplify_cleanup_point_expr): For empty body
14187 and EH-only cleanup drop the cleanup instead of inserting it
14188 unconditionally.
14189
14190 2010-06-07 Ira Rosen <irar@il.ibm.com>
14191
14192 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
14193 documentation.
14194 * targhooks.c (default_builtin_vectorization_cost): New function.
14195 * targhooks.h (default_builtin_vectorization_cost): Declare.
14196 * target.h (enum vect_cost_for_stmt): Define.
14197 (builtin_vectorization_cost): Change argument and comment.
14198 * tree-vectorizer.h: Remove cost model macros.
14199 * tree-vect-loop.c: Include target.h.
14200 (vect_get_cost): New function.
14201 (vect_estimate_min_profitable_iters): Replace cost model macros with
14202 calls to vect_get_cost.
14203 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
14204 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
14205 default implementation.
14206 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
14207 calls to target hook builtin_vectorization_cost.
14208 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
14209 Likewise.
14210 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
14211 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
14212 implementation to return costs.
14213 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
14214 * config/spu/spu.h: Remove vectorizer cost model macros.
14215 * config/i386/i386.h: Likewise.
14216 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
14217 a call to target hook builtin_vectorization_cost.
14218
14219 2010-06-06 Sriraman Tallam <tmsriram@google.com>
14220
14221 PR target/44319
14222 * config/i386/i386.c (override_options): Turn zee pass on for level 2
14223 and above and defer till target is known.
14224 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
14225 turn off otherwise.
14226
14227 2010-05-25 Jan Hubicka <jh@suse.cz>
14228
14229 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
14230 (df_compact_blocks): Likewise.
14231 * df.h (struct df): Turn hardware_regs_used,
14232 regular_block_artificial_uses, eh_block_artificial_uses,
14233 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
14234 bitmap_head.
14235 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
14236 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
14237 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
14238 df_scan_blocks, df_insn_delete, df_insn_rescan,
14239 df_insn_rescan_debug_internal, df_insn_rescan_all,
14240 df_process_deferred_rescans, df_process_deferred_rescans,
14241 df_notes_rescan, df_get_call_refs, df_get_call_refs,
14242 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
14243 df_record_entry_block_defs, df_record_exit_block_uses,
14244 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
14245 df_scan_verify): Update.
14246
14247 2010-05-25 Dodji Seketeli <dodji@redhat.com>
14248
14249 PR c++/44188
14250 * c-common.c (is_typedef_decl): Move this definition ...
14251 * tree.c (is_typedef_decl): ... here.
14252 (typdef_variant_p): Move definition here from cp/tree.c.
14253 * c-common.h (is_typedef_decl): Move this declaration ...
14254 * tree.h (is_typedef_decl): ... here.
14255 (typedef_variant_p): Move declaration here from cp/cp-tree.h
14256 * dwarf2out.c (is_naming_typedef_decl): New function.
14257 (gen_tagged_type_die): Split out of ...
14258 (gen_type_die_with_usage): ... this function. When an anonymous
14259 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
14260 is emitted for the typedef.
14261 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
14262 anonymous tagged types.
14263
14264 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
14265
14266 PR c/20000
14267 * c-decl.c (grokdeclarator): Delete warning.
14268
14269 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
14270
14271 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
14272 newly built CALL_EXPR.
14273 * tree-profile.c (tree_profiling): Don't profile functions produced
14274 for built-in stuff.
14275
14276 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
14277
14278 PR bootstrap/44427
14279 PR bootstrap/44428
14280 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
14281 endianness-independent.
14282
14283 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
14284
14285 * c-common.c: Move to c-family/.
14286 * c-common.def: Likewise.
14287 * c-common.h: Likewise.
14288 * c-cppbuiltin.c: Likewise.
14289 * c-dump.c: Likewise.
14290 * c-format.c: Likewise.
14291 * c-format.h : Likewise.
14292 * c-gimplify.c: Likewise.
14293 * c-lex.c: Likewise.
14294 * c-omp.c: Likewise.
14295 * c.opt: Likewise.
14296 * c-opts.c: Likewise.
14297 * c-pch.c: Likewise.
14298 * c-ppoutput.c: Likewise.
14299 * c-pragma.c: Likewise.
14300 * c-pragma.h: Likewise.
14301 * c-pretty-print.c: Likewise.
14302 * c-pretty-print.h: Likewise.
14303 * c-semantics.c: Likewise.
14304 * stub-objc.c: Likewise.
14305
14306 * gengtype.c (get_file_langdir): Special-case files in c-family/.
14307 (get_output_file_with_visibility): Fix name for c-common.h.
14308 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
14309
14310 * c-tree.h: Update include path for moved files.
14311 * c-lang.c: Likewise.
14312 * c-lang.h: Likewise.
14313 * c-parser.c: Likewise.
14314 * c-convert.c: Likewise.
14315 * c-decl.c: Likewise.
14316 * c-objc-common.c: Likewise.
14317 * configure.ac: Make sure c-family/ exists in the build directory.
14318 * configure: Regenerate.
14319 * Makefile.in: Update paths for moved files. Regroup files per
14320 location and update dependencies. Move generated_files down after
14321 ALL_GTFILES_H.
14322
14323 * config/spu/spu-c.c: Update paths for moved files.
14324 * config/mep/mep-pragma.c: Likewise.
14325 * config/darwin-c.c: Likewise.
14326 * config/i386/msformat-c.c: Likewise.
14327 * config/i386/i386-c.c: Likewise.
14328 * config/avr/avr-c.c: Likewise.
14329 * config/sol2-c.c: Likewise.
14330 * config/ia64/ia64-c.c: Likewise.
14331 * config/rs6000/rs6000-c.c: Likewise.
14332 * config/arm/arm.c: Likewise.
14333 * config/arm/arm-c.c: Likewise.
14334 * config/h8300/h8300.c: Likewise.
14335 * config/v850/v850-c.c: Likewise.
14336
14337 * config/t-darwin: Fix dependencies for moved files.
14338 * config/t-sol2: Fix dependencies for moved files.
14339 * config/mep/t-mep: Fix dependencies for moved files.
14340 * config/ia64/t-ia64: Fix dependencies for moved files.
14341 * config/rs6000/t-rs6000: Fix dependencies for moved files.
14342 * config/v850/t-v850: Fix dependencies for moved files.
14343 * config/v850/t-v850e: Fix dependencies for moved files.
14344
14345 * config/m32c/m32c-pragma.c
14346
14347 * po/exgettext: Look in c-family/ also.
14348
14349 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
14350
14351 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
14352 (mark_control_dependent_edges_necessary): Call it instead of marking
14353 the last statement manually.
14354 (propagate_necessity): Likewise.
14355
14356 2010-06-05 Jan Hubicka <jh@suse.cz>
14357
14358 * basic-block.h (compute_dominance_frontiers): Updated.
14359 (compute_idf): Likewise.
14360
14361 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
14362 for dominance frontiers.
14363 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
14364 (insert_updated_phi_nodes_for): Likewise.
14365 (update_ssa): Likewise.
14366 * cfganal.c (compute_dominance_frontiers_1): Likewise.
14367 (compute_dominance_frontiers): Likewise.
14368 (compute_idf): Likewise.
14369 * df-problems.c (df_md_local_compute): Likewise.
14370
14371 2010-06-05 Anatoly Sokolov <aesok@post.ru>
14372
14373 * target.h (struct gcc_target): Add memory_move_cost field.
14374 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
14375 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
14376 * targhooks.c (default_memory_move_cost): New function.
14377 * targhooks.h (default_memory_move_cost): Declare function.
14378 * reload.h (memory_move_cost): Declare.
14379 (memory_move_secondary_cost): Change type of 'in' argument to bool.
14380 * reginfo.c (memory_move_cost): New function.
14381 (memory_move_secondary_cost): Change type of 'in' argument to bool.
14382 * ira.h (ira_memory_move_cost): Update comment.
14383 * ira.c (ira_memory_move_cost): Update comment.
14384 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
14385 with memory_move_cost.
14386 * postreload.c (reload_cse_simplify_set): (Ditto.).
14387 * reload1.c (choose_reload_regs): (Ditto.).
14388 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
14389 (MEMORY_MOVE_COST): Revise documentation.
14390
14391 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
14392 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
14393 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
14394 type of 'in' argument to bool.
14395 (TARGET_MEMORY_MOVE_COST): Define.
14396
14397 2010-06-05 Jan Hubicka <jh@suse.cz>
14398
14399 * ipa-pure-const.c (propagate): Fix typo in handling of functions
14400 that cannot return. Be more careful when merging the results with
14401 previously known ones.
14402
14403 2010-06-05 Matthias Klose <doko@ubuntu.com>
14404
14405 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
14406 function to add the -iplugindir option.
14407 (find_plugindir_spec_function): Add new declaration and function.
14408 (static_spec_func): Use it for "find-plugindir".
14409
14410 2010-06-05 Jakub Jelinek <jakub@redhat.com>
14411
14412 PR c++/44361
14413 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
14414 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
14415 statement expression.
14416
14417 2010-06-05 Jan Hubicka <jh@suse.cz>
14418
14419 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
14420 (df_rd_problem_data): Convert sparse_invalidated_by_call,
14421 dense_invalidated_by_call to bitmap head.
14422 (df_rd_alloc, df_rd_bb_local_compute_process_def,
14423 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
14424 df_rd_start_dump, df_lr_verify_transfer_functions,
14425 df_live_verify_transfer_functions, df_chain_create_bb,
14426 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
14427 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
14428 df_simulate_one_insn_forwards, df_md_alloc,
14429 df_md_bb_local_compute_process_def,
14430 df_md_bb_local_compute_process_def, df_md_local_compute,
14431 df_md_transfer_function df_md_free): Update.
14432
14433 2010-06-05 Joseph Myers <joseph@codesourcery.com>
14434
14435 PR c/44322
14436 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
14437 target type for ADDR_EXPR; require no changes to qualifiers except
14438 for function types.
14439 * c-tree.h (c_build_type_variant): Remove.
14440
14441 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
14442
14443 * genautomata.c (get_excl_set): Do work per element, not per char.
14444 (check_presence_pattern_sets): Similar.
14445 (check_absence_pattern_sets): Similar.
14446
14447 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
14448
14449 * genautomata.c (curr_state_pass_num): Delete.
14450 (min_issue_delay_pass_states): Delete.
14451 (min_issue_delay): Delete.
14452 (initiate_min_issue_delay_pass_states): Delete.
14453 (output_min_issue_delay_table): Compute min_issue_delay_vect
14454 using a breadth-first search variant.
14455 (output_tables): Don't call initiate_min_issue_delay_pass_states.
14456
14457 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
14458
14459 PR boostrap/44421
14460 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
14461 (df_byte_lr_bb_local_compute): Likewise.
14462
14463 2010-06-03 Jason Merrill <jason@redhat.com>
14464
14465 Implement noexcept operator (5.3.7)
14466 * c-common.c (c_common_reswords): Add noexcept.
14467 * c-common.h (enum rid): Add RID_NOEXCEPT.
14468
14469 2010-06-04 Joseph Myers <joseph@codesourcery.com>
14470
14471 * config/darwin-driver.c (darwin_default_min_version): Use
14472 GCC-specific formats in diagnostics.
14473 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
14474 diagnostics.
14475 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
14476 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
14477 eval_spec_function, handle_braces, process_brace_body, main,
14478 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
14479 getenv_spec_function, compare_version_strings,
14480 version_compare_spec_function): Use GCC-specific formats in
14481 diagnostics.
14482
14483 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
14484
14485 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
14486 that operand 0 and operand 1 are equal.
14487 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
14488 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
14489 and operand 1 are equal.
14490 <default>: Ditto. Remove ??? comment.
14491 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
14492 and operand 1 are equal.
14493 <default>: Ditto. Remove ??? comment.
14494 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
14495 are equal.
14496 (*add<mode>_4) <default>: Ditto.
14497 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
14498
14499 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
14500
14501 * config/i386/i386-protos.h (ix86_print_operand): Declare.
14502 * config/i386/i386.c (ix86_print_operand): Make non-static.
14503 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
14504 * output.h (output_operand): Declare.
14505 * final.c (output_operand): Make non-static.
14506
14507 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
14508
14509 PR rtl-optimization/44013
14510 * sched-deps.c (add_dependence_list_and_free): Don't free lists
14511 when processing debug insns.
14512
14513 PR debug/41371
14514 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
14515 recursing. Check that recursion is bounded. Rename inner var
14516 to avoid hiding incoming argument.
14517
14518 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
14519
14520 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
14521 operands[2] == 255.
14522 (*addqi_3): Ditto.
14523 (*addqi_4): Ditto.
14524 (*addqi_5): Ditto.
14525 (*addqi_ext_1_rex64): Ditto.
14526 (*addqi_ext_1): Ditto.
14527
14528 (*addqi_4): Check for incdec_operand in QImode.
14529
14530 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
14531 using SWI mode iterator.
14532 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
14533 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
14534 mode iterator.
14535 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
14536 using SWI mode iterator.
14537
14538 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
14539
14540 PR c/25880
14541 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
14542 * c-format.c (gcc_diag_flag_specs): Add hash.
14543 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
14544 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
14545 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
14546 pp_c_cv_qualifiers. Handle qualifiers spelling here.
14547 (pp_c_type_qualifier_list): Call the function above.
14548 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
14549 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
14550 (WARN_FOR_QUALIFIERS): New macro.
14551 (convert_for_assignment): Use it.
14552
14553 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
14554
14555 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
14556
14557 2010-06-04 Jan Hubicka <jh@suse.cz>
14558
14559 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
14560 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
14561 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
14562 DF_BYTE_LR_OUT): Update for embedded bitmaps.
14563 * fwprop.c (single_def_use_enter_block): Likewise.
14564 * ddg.c (create_ddg_dep_from_intra_loop_link,
14565 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
14566 * loop-iv.c (latch_dominating_def): Likewise.
14567 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
14568 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
14569 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
14570 df_rd_transfer_function, df_rd_top_dump,
14571 df_rd_bottom_dump): Update.
14572 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
14573 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
14574 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
14575 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
14576 df_lr_verify_solution_start, df_lr_verify_solution_end,
14577 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
14578 df_live_free_bb_info, df_live_alloc, df_live_reset,
14579 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
14580 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
14581 df_live_verify_solution_start, df_live_verify_solution_end,
14582 df_live_verify_transfer_functions, df_chain_create_bb,
14583 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
14584 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
14585 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
14586 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
14587 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
14588 df_byte_lr_transfer_function, df_byte_lr_top_dump,
14589 df_byte_lr_bottom_dump, df_create_unused_note,
14590 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
14591 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
14592 df_md_transfer_function, df_md_init, df_md_confluence_0,
14593 df_md_confluence_n,
14594 df_md_top_dump, df_md_bottom_dump): Update.
14595 (struct df_lr_problem_data): Embedd bitmap headers.
14596
14597 2010-06-04 Jan Hubicka <jh@suse.cz>
14598
14599 * dce.c (dce_process_block): Do not re-scan already marked
14600 instructions.
14601
14602 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
14603
14604 PR rtl-optimization/39871
14605 PR rtl-optimization/40615
14606 PR rtl-optimization/42500
14607 PR rtl-optimization/42502
14608 * ira.c (init_reg_equiv_memory_loc: New function.
14609 (ira): Call it twice.
14610 * reload.h (calculate_elim_costs_all_insns): Declare.
14611 * ira-costs.c: Include "reload.h".
14612 (regno_equiv_gains): New static variable.
14613 (init_costs): Allocate it.
14614 (finish_costs): Free it.
14615 (ira_costs): Call calculate_elim_costs_all_insns.
14616 (find_costs_and_classes): Take estimated elimination costs
14617 into account.
14618 (ira_adjust_equiv_reg_cost): New function.
14619 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
14620 * reload1.c (init_eliminable_invariants, free_reg_equiv,
14621 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
14622 (elim_bb): New static variable.
14623 (reload): Move code out of here into init_eliminable_invariants and
14624 free_reg_equiv. Call them.
14625 (calculate_elim_costs_all_insns): New function.
14626 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
14627 all callers changed. If FOR_COSTS is true, don't call alter_reg,
14628 but call note_reg_elim_costly if we turned a valid memory address
14629 into an invalid one.
14630 * Makefile.in (ira-costs.o): Depend on reload.h.
14631
14632 2010-06-04 Julian Brown <julian@codesourcery.com>
14633
14634 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
14635 for pool ranges.
14636
14637 2010-06-04 Richard Guenther <rguenther@suse.de>
14638
14639 PR lto/41584
14640 * cgraph.h (struct varpool_node): Add lto_file_data field.
14641 * lto-cgraph.c (input_varpool_node): Initialize it.
14642
14643 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
14644
14645 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
14646 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
14647 predicate in "type" attribute calculation.
14648 (*addsi_1_zext): Ditto.
14649 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
14650 (*addsi_2_zext): Ditto.
14651 (*add<mode>_3): Ditto.
14652 (*addsi_3_zext): Ditto.
14653 (*add<mode>_5): Ditto.
14654
14655 2010-06-03 Jan Hubicka <jh@suse.cz>
14656
14657 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
14658 of bitmap_bit_p.
14659 * cfganal.c (compute_dominance_frontiers_1): Likewise.
14660
14661 2010-06-03 Jan Hubicka <jh@suse.cz>
14662
14663 * df-problems.c (df_create_unused_note, df_note_bb_compute):
14664 micro-optimize the checks when to add new note.
14665
14666 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
14667
14668 * final.c (output_asm_insn): Call
14669 targetm.asm_out.print_operand_punct_valid_p. Update comments.
14670 (output_operand): Call targetm.asm_out.print_operand. Update comments.
14671 (output_address): Call targetm.asm_out.print_operand_address.
14672 Update comments.
14673 * target.h (struct gcc_target): Add print_operand,
14674 print_operand_address, and print_operand_punct_valid_p fields.
14675 * targhooks.h (default_print_operand): Declare.
14676 (default_print_operand_address): Declare.
14677 (default_print_operand_punct_valid_p): Declare.
14678 * targhooks.c (default_print_operand): Define.
14679 (default_print_operand_address): Define.
14680 (default_print_operand_punct_valid_p): Define.
14681 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
14682 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
14683 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
14684 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
14685 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
14686 * vmsdbgout.c (addr_const_to_string): Update comment.
14687 * config/i386/i386.c (print_operand): Rename to...
14688 (ix86_print_operand): ...this. Make static.
14689 (print_operand_address): Rename to...
14690 (ix86_print_operand_address): ...this. Make static. Call
14691 ix86_print_operand instead of PRINT_OPERAND.
14692 (ix86_print_operand_punct_valid_p): New function.
14693 (TARGET_PRINT_OPERAND): Define.
14694 (TARGET_PRINT_OPERAND_ADDRESS): Define.
14695 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14696 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
14697 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14698 (PRINT_OPERAND): Delete.
14699 (PRINT_OPERAND_ADDRESS): Delete.
14700 * config/i386/i386-protos.h (print_operand): Delete prototype.
14701 (print_operand_address): Delete prototype.
14702
14703 2010-06-03 Richard Guenther <rguenther@suse.de>
14704
14705 PR tree-optimization/44403
14706 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
14707 Preserve pointer qualifiers.
14708 (vect_create_data_ref_ptr): Likewise.
14709
14710 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
14711
14712 PR c++/44294
14713 * defaults.h (MAX_FIXED_MODE_SIZE): New.
14714
14715 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
14716
14717 2010-06-03 Jakub Jelinek <jakub@redhat.com>
14718
14719 PR debug/44375
14720 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
14721 return false if merging the bbs would lead to goto_locus
14722 location being lost from the IL.
14723
14724 2010-06-03 Jan Hubicka <jh@suse.cz>
14725 Jakub Jelinek <jakub@redhat.com>
14726
14727 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
14728 set->regs[i] is NULL or has just one entry.
14729
14730 2010-06-03 Jan Hubicka <jh@suse.cz>
14731
14732 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
14733 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
14734
14735 2010-06-03 Paul Brook <paul@codesourcery.com>
14736
14737 * config/arm/arm.c (FL_TUNE): Define.
14738 (arm_default_cpu, arm_cpu_select): Remove.
14739 (all_cores): Populate core field.
14740 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
14741 (arm_find_cpu): New function.
14742 (arm_handle_option): Lookup cpu/architecture names.
14743 (arm_override_options): Cleanup mcpu/march/mtune handling.
14744 (arm_file_start): Ditto.
14745
14746 2010-06-03 Alan Modra <amodra@gmail.com>
14747
14748 PR target/44169
14749 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
14750 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
14751 rtx to gen_load_toc_v4_PIC_1b. Tidy.
14752 (rs6000_emit_load_toc_table): Likewise.
14753
14754 2010-06-02 Jan Hubicka <jh@suse.cz>
14755
14756 * passes.c (init_optimization_passes): Put ipa reference
14757 after ipa pure-const.
14758
14759 2010-06-02 Jan Hubicka <jh@suse.cz>
14760
14761 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
14762 calls_read_all and calls_write_all.
14763 (get_reference_optimization_summary): Fix formatting.
14764 (is_proper_for_analysis): Check that decl is not readonly.
14765 (propagate_bits): Check CONST/PURE/noreturn flags.
14766 (ipa_init): Move all_module_statics to optimization_summary_obstack.
14767 (analyze_function): Ignore indirect edges.
14768 (copy_global_bitmap): For all module statics, do nothing.
14769 (generate_summary): Do not print calls_read_all/calls_write_all.
14770 (read_write_all_from_decl): Take node as argument; check
14771 cgraph_node_cannot_return.
14772 (propagate): Reorganize read_all/write_all computation;
14773 check indirect edges; check ecf flags; use all_module_statics
14774 in the results; do not free all_module_statics.
14775 (stream_out_bitmap): Handle all_module_statics.
14776 (ipa_reference_write_optimization_summary): Likewise; use
14777 varpool/cgraph encoders to get boundaries.
14778 (ipa_reference_read_optimization_summary): Read in all_module_statics;
14779 use it when possible.
14780
14781 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14782
14783 PR target/44218
14784 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
14785 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
14786
14787 * doc/extend.texi (powerpc builtins): Document vec_recip,
14788 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
14789
14790 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
14791 (rs6000_emit_swrsqrt): Ditto.
14792 (rs6000_emit_swdivsf): Delete.
14793 (rs6000_emit_swdivdf): Ditto.
14794 (rs6000_emit_swrsqrtsf): Ditto.
14795
14796 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
14797 describe the reciprocal estimate support for each type.
14798 (recip_options): Map -mrecip=<opt> into option bits.
14799 (gen_2arg_fn_t): New typedef for binary rtx gen function.
14800 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
14801 reciprocal estimate instructions.
14802 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
14803 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
14804 Set up rs6000_recip_bits based on the -mrecip* options. Print the
14805 cost information if -mdebug=cost or -mdebug=reg.
14806 (rs6000_override_options): Set -mrecip-precision for power6, and
14807 power7 machines. If -mvsx or -mdfp, enable various options that
14808 came in previous instruction set ISAs, unless the option was
14809 explicitly disabled by the command line option. Parse
14810 -mrecip=<opt> options.
14811 (rs6000_builtin_vectorized_function): Add support for vectorizing
14812 the reciprocal estimate builtins and expansions.
14813 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
14814 (bdesc_2arg): Add reciprocal estimate builtins.
14815 (bdesc_1arg): Add reciprocal square root estimate builtins.
14816 (rs6000_expand_builtin): Rewrite to use a switch statement,
14817 instead of multiple if/then/elses. Add reciprocal estimate builtins.
14818 (rs6000_init_builtins): Create declarations for reciprocal
14819 estimate builtins.
14820 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
14821 sized, prefer traditional floating point registers, if integer
14822 vector types, prefer altivec registers. Don't actually look at
14823 the memory address any more.
14824 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
14825 builtins.
14826 (rs6000_load_constant_and_splat): New helper function to load up
14827 the constant for reciprocal estimate instructions.
14828 (rs6000_emit_madd): New helper function for generating
14829 multiply/add type instructions, based on the current switches.
14830 (rs6000_emit_msub): Ditto.
14831 (rs6000_emit_mnsub): Ditto.
14832 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
14833 replace a divide with a reciprocal estimate and fixup, adding
14834 support for machines with high precision and vectors.
14835 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
14836 low precision machines.
14837 (rs6000_emit_swdiv): New common function to be called to replace a
14838 division with reciprocal estimate and fixup.
14839 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
14840 for double and vector types. Add support for high precision machines.
14841
14842 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
14843 the reciprocal estimate instructions can be generated.
14844 (TARGET_FRE): Ditto.
14845 (TARGET_FRSQRTES): Ditto.
14846 (TARGET_FRSQRTE): Ditto.
14847 (RS6000_RECIP_*): New macros for reciprocal estimate support.
14848
14849 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
14850 square root estimate on vectors.
14851 (re<mode>2): New insn for reciprocal division estimate on vectors.
14852
14853 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
14854 New builtin.
14855 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
14856 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
14857 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
14858 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
14859 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
14860 (RS6000_BUILTIN_RSQRT): Ditto.
14861 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
14862 floating point builtin.
14863
14864 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14865 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
14866 __RECIP_PRECISION__ based on the command line switches.
14867 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
14868
14869 * config/rs6000/rs6000.opt (-mrecip): Document add support for
14870 replacing division instructions with reciprocal estimate and fixup.
14871 (-mrecip=<opt>): New option.
14872 (-mrecip-precision): Ditto.
14873
14874 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
14875 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
14876 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
14877 precision scalar.
14878
14879 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
14880 (UNSPEC_VREFP): Ditto.
14881 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
14882 conterparts with regard to support of -mno-fused-madd and -ffast-math.
14883 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
14884 reciprocal estimate instructions to be generated.
14885 (altivec_vrefp): Ditto.
14886
14887 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
14888 estimate support.
14889 (rreg): New mode attribute for reciprocal estimate support.
14890 (recip<mode>3): New insn for division using reciprocal estimate
14891 and fixup builtins.
14892 (divide define_split): New define_split to convert floating point
14893 division to use reciprocal estimate if the user used the
14894 appropriate options and the split is run when we can add new
14895 pseudo registers for the fixup.
14896 (rsqrt<mode>2): New insn for reciprocal square root support.
14897 (recipsf3): Move into recip<mode>3.
14898 (recipdf3): Ditto.
14899 (fres): Use TARGET_FRES.
14900 (rsqrtsf2): Move into rsqrt<mode>2.
14901 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
14902 (copysignsf3): Add support for VSX.
14903 (fred): Use TARGET_FRE.
14904 (fred_fpr): Ditto.
14905 (rsqrtdf_internal1): New function for frsqrte instruciton.
14906
14907 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
14908 (vec_rsqrt): Ditto.
14909
14910 2010-06-03 Richard Guenther <rguenther@suse.de>
14911
14912 PR middle-end/44291
14913 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
14914 (set_user_assembler_libfunc): Likewise.
14915
14916 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
14917
14918 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
14919 defaults.h.
14920 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
14921 to defaults.h
14922 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
14923 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
14924 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
14925 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
14926 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
14927 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
14928 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
14929 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
14930 * defaults.h: Updated for above mentioned changes.
14931
14932 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
14933
14934 * c-common.c: Remove header include of tm_p.h.
14935 * Makefile.in (c-common.o): Remove TM_P_H dependency.
14936
14937 2010-06-02 Jakub Jelinek <jakub@redhat.com>
14938
14939 * tree.h (struct tree_decl_map): New type.
14940 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
14941 (tree_decl_map_hash): New prototype.
14942 (debug_expr_for_decl, value_expr_for_decl): Change into
14943 tree_decl_map hashtab from tree_map.
14944 (init_ttree): Adjust initialization.
14945 (tree_decl_map_hash): New function.
14946 (decl_debug_expr_lookup, decl_debug_expr_insert,
14947 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
14948
14949 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14950
14951 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
14952 linker emulations.
14953 * configure: Regenerate.
14954 * config.in: Regenerate.
14955
14956 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
14957 (X86_64_EMULATION): Define.
14958 (TARGET_LD_EMULATION): Use them.
14959
14960 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
14961 (SPARC64_EMULATION): Define.
14962 (LINK_ARCH_SPEC): Use them.
14963
14964 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
14965
14966 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
14967 smallest_mode_for_size for computing the precision types of new
14968 graphite IVs. Do not call lang_hooks.types.type_for_size.
14969
14970 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
14971
14972 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
14973 information.
14974 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
14975
14976 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
14977
14978 PR middle-end/44363
14979 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
14980 return false instead.
14981
14982 2010-06-02 Jan Hubicka <jh@suse.cz>
14983
14984 PR middle-end/44295
14985 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
14986 create new cgraph node to check callee.
14987
14988 2010-06-02 Richard Guenther <rguenther@suse.de>
14989
14990 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
14991
14992 2010-06-02 Richard Guenther <rguenther@suse.de>
14993
14994 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
14995 (lto_wrapper_cleanup): ... this. Do not exit.
14996 (fatal): Adjust. Exit here.
14997 (fatal_perror): Likewise.
14998 (fatal_signal): New function.
14999 (main): Set up signal handlers to cleanup temporary files.
15000 * Makefile.in (lto-wrapper.o): Adjust dependencies.
15001
15002 2010-06-02 Richard Guenther <rguenther@suse.de>
15003
15004 PR tree-optimization/44377
15005 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
15006
15007 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15008
15009 * config/s390/2097.md (z10_fhex): Remove insn reservation.
15010 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
15011 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
15012 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
15013 instruction.
15014 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
15015
15016 2010-06-02 Jan Hubicka <jh@suse.cz>
15017
15018 * bitmap.c (bitmap_descriptor): Add search_iter.
15019 (bitmap_find_bit): Increment it.
15020 (print_statistics): Print it.
15021
15022 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
15023
15024 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
15025 instead of gimple_build_call_vec. Delete unnecessary local variable.
15026
15027 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
15028
15029 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
15030 change from yesterday.
15031
15032 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
15033
15034 * c-ada-spec.c: Clean up redundant includes.
15035
15036 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
15037
15038 * gimplify.c: Do not include except.h and optabs.h.
15039 (gimplify_body): Do not initialize RTL profiling.
15040 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
15041 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
15042 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
15043 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
15044 langhooks.h.
15045
15046 * tree-pretty-print.h: Include pretty-print.h.
15047 * gimple-pretty-print.h: Include pretty-print.h.
15048
15049 * tree-pretty-print.c: Do not include diagnostic.h.
15050 * tree-vrp.c: Likewise.
15051 * tree-tailcall.c: Likewise
15052 * tree-scalar-evolution.c: Likewise
15053 * tree-ssa-dse.c: Likewise
15054 * tree-chrec.c: Likewise
15055 * tree-ssa-sccvn.c: Likewise
15056 * tree-ssa-copyrename.c: Likewise
15057 * tree-nomudflap.c: Likewise
15058 * tree-call-cdce.c: Likewise
15059 * tree-stdarg.c: Likewise
15060 * tree-ssa-math-opts.c: Likewise
15061 * tree-nrv.c: Likewise
15062 * tree-ssa-sink.c: Likewise
15063 * tree-browser.c: Likewise
15064 * tree-ssa-loop-ivcanon.c: Likewise
15065 * tree-ssa-loop.c: Likewise
15066 * tree-parloops.c: Likewise
15067 * tree-ssa-address.c: Likewise
15068 * tree-ssa-ifcombine.c: Likewise
15069 * tree-if-conv.c: Likewise
15070 * tree-data-ref.c: Likewise
15071 * tree-affine.c: Likewise
15072 * tree-ssa-phiopt.c: Likewise
15073 * tree-ssa-coalesce.c: Likewise
15074 * tree-ssa-pre.c: Likewise
15075 * tree-ssa-live.c: Likewise
15076 * tree-predcom.c: Likewise
15077 * tree-ssa-forwprop.c: Likewise
15078 * tree-ssa-dce.c: Likewise
15079 * tree-ssa-ter.c: Likewise
15080 * tree-ssa-loop-prefetch.c: Likewise
15081 * tree-optimize.c: Likewise
15082 * tree-ssa-phiprop.c: Likewise
15083 * tree-object-size.c: Likewise
15084 * tree-outof-ssa.c: Likewise
15085 * tree-ssa-structalias.c: Likewise
15086 * tree-switch-conversion.c: Likewise
15087 * tree-ssa-reassoc.c: Likewise
15088 * tree-ssa-operands.c: Likewise
15089 * tree-vectorizer.c: Likewise
15090 * tree-vect-data-refs.c: Likewise
15091 * tree-vect-generic.c: Likewise
15092 * tree-vect-stmts.c: Likewise
15093 * tree-vect-patterns.c: Likewise
15094 * tree-vect-slp.c: Likewise
15095 * tree-vect-loop.c: Likewise
15096 * tree-ssa-loop-ivopts.c: Likewise
15097 * tree-ssa-loop-im.c: Likewise
15098 * tree-ssa-loop-niter.c: Likewise
15099 * tree-ssa-loop-unswitch.c: Likewise
15100 * tree-ssa-loop-manip.c: Likewise
15101 * tree-ssa-loop-ch.c: Likewise
15102 * tree-dump.c: Likewise
15103 * tree-complex.c: Likewise
15104
15105 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
15106 * tree-ssa-uninit.c: Likewise
15107 * tree-ssa-threadupdate.c: Likewise
15108 * tree-ssa-uncprop.c: Likewise
15109 * tree-ssa-ccp.c: Likewise
15110 * tree-ssa-dom.c: Likewise
15111 * tree-ssa-propagate.c: Likewise
15112 * tree-ssa-alias.c: Likewise
15113 * tree-dfa.c: Likewise
15114 * tree-cfgcleanup.c: Likewise
15115 * tree-sra.c: Likewise
15116 * tree-ssa-copy.c: Likewise
15117 * tree-ssa.c: Likewise
15118 * tree-profile.c: Likewise
15119 * tree-cfg.c: Likewise
15120 * tree-ssa-threadedge.c: Likewise
15121 * tree-vect-loop-manip.c: Likewise
15122
15123 * tree-inline.c: Do not include diagnostic.h and expr.h.
15124 Include rtl.h.
15125 (copy_decl_for_dup_finish): Do not use NULL_RTX.
15126
15127 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
15128 * tree-loop-distribution.c: Likewise.
15129
15130 2010-06-01 Jan Hubicka <jh@suse.cz>
15131
15132 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
15133
15134 2010-06-01 Jan Hubicka <jh@suse.cz>
15135
15136 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
15137 remove return value.
15138 (split_bbs_on_noreturn_calls) .... here.
15139 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
15140 * tree-flow.h (fixup_noreturn_call): New.
15141
15142 2010-06-01 Jan Hubicka <jh@suse.cz>
15143
15144 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
15145
15146 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
15147
15148 * tree.h (build_nt_call_list): Delete.
15149 * tree.c (build_nt_call_list): Delete.
15150
15151 2010-06-01 Jan Hubicka <jh@suse.cz>
15152
15153 * fwprop.c: Make emit-rtl.h include last.
15154 * rtlanal.c: Include emit-rtl.h.
15155 * genautomata.c: Output emit-rtl include into insn-automata.c
15156 * df-scan.c: Include emit-rtl.h.
15157 * haifa-sched.c: Indlude emit-rtl.h.
15158 * mode-switching.c: Indlude emit-rtl.h.
15159 * graph.c: Indlude emit-rtl.h.
15160 * sel-sched.c: Include emit-rtl.h.
15161 * sel-sched-ir.c: Include emit-rtl.h.
15162 * ira-build.c: Include emit-rtl.h.
15163 * emit-rtl.c (first_insn, last_insn): Remove defines.
15164 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
15165 Move to emit-rtl.h.
15166 (set_new_first_and_last_insn, get_last_insn_anywhere,
15167 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
15168 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
15169 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
15170 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
15171 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
15172 Use accessor functions.
15173 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
15174 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
15175 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
15176 mem_expr_equal_p): Move here from rtl.h.
15177 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
15178 Move here from emit-rtl.c; make inline.
15179 * cfglayout.h: Include emit-rtl.h.
15180 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
15181 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
15182 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
15183 mem_expr_equal_p, get_insns, set_first-insn,
15184 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
15185 * reg-stack.c: Include emit-rtl.h.
15186 * dce.c: Likewise.
15187
15188 2010-06-01 Jan Hubicka <jh@suse.cz>
15189
15190 * cgraph.h (tree_function_versioning): Update prototype.
15191 (cgraph_function_versioning): Update prototype.
15192 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
15193 bitmap.
15194 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
15195 (cgraph_materialize_clone, save_inline_function_body): Update use of
15196 tree_function_versioning.
15197 * tree-inline.c (copy_bb): Look for previous copied block to link
15198 after; fix debug output.
15199 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
15200 (copy_body): Likewise.
15201 (expand_call_inline): Update use of copy_body.
15202 (tree_function_versioning): Update use of copy body; accept
15203 blocks_to_copy and new_entry.
15204
15205 2010-06-01 Jan Hubicka <jh@suse.cz>
15206
15207 * gegenrtl.c: Remove unnecesary prototypes.
15208 (gendecl): Remove.
15209 (gendef): Produce static inline.
15210 (gencode): Remove.
15211 (main): Do not decode parameters; generate header only.
15212 * Makefile.in (genrtl.c): Remove.
15213
15214 2010-06-01 Jan Hubicka <jh@suse.cz>
15215
15216 * tree-switch-conversion.c (build_one_array): Make it readonly.
15217
15218 2010-06-01 Richard Guenther <rguenther@suse.de>
15219
15220 * optabs.c (init_optabs): Guard all accesses to reinit.
15221 * ipa-pure-const.c (propagate): Fix another typo.
15222 * opts.c (common_handle_option): Split assignment to bool.
15223 * c-opts.c (c_common_handle_option): Likewise.
15224
15225 2010-06-01 Arnaud Charlet <charlet@adacore.com>
15226 Matthew Gingell <gingell@adacore.com>
15227
15228 * doc/invoke.texi: Mention -fdump-ada-spec.
15229 * tree-dump.c (dump_files): Add ada-spec.
15230 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
15231 * tree-pass.h (tree_dump_index): Add TDI_ada.
15232 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
15233 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
15234 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
15235 * c-decl.c: Include c-ada-spec.h.
15236 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
15237 functions.
15238 (c_write_global_declarations): Add handling of -fdump-ada-spec.
15239 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
15240 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
15241 * c-ada-spec.h, c-ada-spec.c: New files.
15242
15243 2010-06-01 Richard Guenther <rguenther@suse.de>
15244
15245 PR lto/43853
15246 * ipa-pure-const.c (get_function_state): Hand back varying state
15247 if we do not have one.
15248 (has_function_state): New function.
15249 (duplicate_node_data): Adjust.
15250 (remove_node_data): Likewise.
15251 (pure_const_write_summary): Likewise.
15252 (propagate): Likewise. Fix typo.
15253
15254 2010-06-01 Jan Hubicka <jh@suse.cz>
15255
15256 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
15257 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
15258 (execute_all_ipa_transforms): Do not play with the states.
15259
15260 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
15261
15262 * config/arm/t-linux-androideabi: New.
15263 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
15264
15265 2010-06-01 Jan Hubicka <jh@suse.cz>
15266
15267 * tree-inline.c (estimate_num_insns): For stdarg functions look
15268 into call statement to count cost of argument passing.
15269
15270 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
15271
15272 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
15273 argument for fprintf.
15274 (ix86_output_addr_diff_elt): Likewise.
15275 (x86_function_profiler): Likewise.
15276 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
15277 (LPREFIX): Likewise.
15278 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
15279
15280 2010-05-31 Jakub Jelinek <jakub@redhat.com>
15281
15282 PR target/44338
15283 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
15284 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
15285 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
15286 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
15287 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
15288 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
15289 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
15290 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
15291 TARGET_FUSED_MADD.
15292
15293 2010-05-31 Jan Hubicka <jh@suse.cz>
15294
15295 * tree.h (tree_range_check_failed): Declare noreturn.
15296
15297 2010-05-31 Jan Hubicka <jh@suse.cz>
15298
15299 * gimple.c (gimple_call_builtin_p): New function.
15300 * gimple.h (gimple_call_builtin_p): Declare.
15301 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
15302 to exit.
15303 (execute_warn_function_return): BUILT_IN_RETURN is return.
15304 (split_critical_edges): Return edges are not critical.
15305 (is_ctrl_altering_stmt): Builtin_in_return is altering.
15306 (gimple_verify_flow_info): Handle built_in_return.
15307 (execute_warn_function_return): Handle built_in_return.
15308 * ipa-pure-const.c (check_call): Ignore builtin_return.
15309
15310 2010-05-31 Jakub Jelinek <jakub@redhat.com>
15311
15312 PR middle-end/44337
15313 * expr.c (expand_assignment): Don't store anything for out-of-bounds
15314 array accesses with non-MEM.
15315
15316 PR tree-optimization/44182
15317 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
15318 newly needs to end a bb is followed by debug stmts, instead return
15319 true from the function at the end.
15320 (maybe_move_debug_stmts_to_successors): New function.
15321 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
15322
15323 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
15324
15325 PR target/44161
15326 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
15327
15328 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
15329
15330 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
15331 for nested functions in non-optimized compilation.
15332
15333 2010-05-31 Richard Guenther <rguenther@suse.de>
15334
15335 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
15336
15337 2010-05-30 Jan Hubicka <jh@suse.cz>
15338
15339 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
15340
15341 2010-05-30 Richard Guenther <rguenther@suse.de>
15342
15343 PR lto/42975
15344 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
15345 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
15346 no longer needed.
15347
15348 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
15349
15350 * config/darwin.c (output_objc_section_asm_op): Add comment.
15351 (name_needs_quotes): Add '_' to list of valid comment chars.
15352 (machopic_output_function_base_name): Remove unneeded quotes.
15353 (darwin_encode_section_info): Adjust asm whitespace.
15354 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
15355 (ASM_OUTPUT_LOCAL): Ditto.
15356 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
15357 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
15358 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
15359
15360 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
15361
15362 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
15363 RS6000_OUTPUT_BASENAME unconditionally.
15364 (rs6000_output_function_epilogue): Likewise.
15365
15366 2010-05-30 Jan Hubicka <jh@suse.cz>
15367
15368 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
15369 nodes.
15370
15371 2010-05-30 Richard Guenther <rguenther@suse.de>
15372
15373 * tree-cfg.c (verify_gimple_assign_single): Implement
15374 verification for COND_EXPR rhs.
15375
15376 2010-05-30 Jan Hubicka <jh@suse.cz>
15377
15378 * cgraph.h (cgraph_dump_file): Declare.
15379 * cgraphunit.c (cgraph_dump_file): Export.
15380 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
15381
15382 2010-05-30 Jan Hubicka <jh@suse.cz>
15383
15384 * dwarf2out.c (reference_to_unused,
15385 premark_types_used_by_global_vars_helper): Avoid creation of new
15386 varpool nodes.
15387
15388 2010-05-30 Jan Hubicka <jh@suse.cz>
15389
15390 * cgraph.h (cgraph_node_cannot_return,
15391 cgraph_edge_cannot_lead_to_return): New functions.
15392 * cgraph.c (cgraph_node_cannot_return,
15393 cgraph_edge_cannot_lead_to_return): Use them.
15394 * ipa-pure-const.c (pure_const_names): New static var.
15395 (check_call): Handle calls not leading to return.
15396 (pure_const_read_summary): Dump info read.
15397 (propagate): Dump info about propagation process; ignore side effects
15398 of functions not leading to exit; fix handling of pure functions.
15399
15400 2010-05-30 Jan Hubicka <jh@suse.cz>
15401
15402 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
15403 for tail call epilogues.
15404
15405 2010-05-30 Jan Hubicka <jh@suse.cz>
15406
15407 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
15408 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
15409 dump files.
15410
15411 2010-05-29 Jan Hubicka <jh@suse.cz>
15412
15413 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
15414 node; remove references in node we no longer keep in cgrpah but need
15415 body of.
15416
15417 2010-05-29 Jan Hubicka <jh@suse.cz>
15418
15419 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
15420
15421 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15422
15423 PR target/44165
15424 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
15425
15426 2010-05-29 Jan Hubicka <jh@suse.cz>
15427
15428 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
15429 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
15430 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
15431 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
15432 debug_names_replaced_by, debug_update_ssa): Likewise.
15433 * sbitmap.c (debug_sbitmap): Likewise.
15434 * genrecog.c (debug_decision, debug_decision_list): Likewise.
15435 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
15436 debug_tree_chain): Likewise.
15437 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
15438 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
15439 * optabs.c (debug_optab_libfuncs): Likewise.
15440 (verify_loop_closed_ssa): Likewise.
15441 * value-prof.c (verify_histograms): Likewise.
15442 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
15443 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
15444 * cfghooks.c (verify_flow_info): Likewise.
15445 * fold-const.c (debug_fold_checksum): Likewise.
15446 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
15447 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
15448 Likewise.
15449 * omega.c (debug_omega_problem): Likewise.
15450 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
15451 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
15452 * dominance.c (verify_dominators, debug_dominance_info,
15453 debug_dominance_tree): Likewise.
15454 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
15455 * df_regno_debug, df_ref_debug,
15456 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
15457 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
15458 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
15459 * sel-sched.c (debug_state): Likewise.
15460 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
15461 Likewise.
15462 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
15463 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
15464 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
15465 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
15466 Likewise.
15467 * c-pretty-print.c (debug_c_tree): Likewise.
15468 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
15469 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
15470 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
15471 * ebitmap.c (debug_ebitmap): Likewise.
15472 * function.c (debug_find_var_in_block_tree): Likewise.
15473 * print-rtl.c (debug_rtx): Likewise.
15474 (debug_rtx_count): Likewise.
15475 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
15476 * stor-layout.c (debug_rli): Likewise.
15477 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
15478 * tree-data-ref.c (debug_data_references,
15479 debug_data_dependence_relations, debug_data_reference,
15480 debug_data_dependence_relation, debug_rdg_vertex,
15481 debug_rdg_component, debug_rdg): Likewise.
15482 * tree-affine.c (debug_aff): Likewise.
15483 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
15484 Likewise.
15485 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
15486 * emit-rtl.c (verify_rtl_sharing): Likewise.
15487 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
15488 debug_value_expressions): Likewise.
15489 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
15490 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
15491 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
15492 * cfglayout.c (verify_insn_chain): Likewise.
15493 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
15494 debug_clast_stmt, debug_generated_program): Likewise.
15495 * ggc-page.c (debug_print_page_list): Likewise.
15496 * tree-ssa-ter.c (debug_ter): Likewise.
15497 * graphite-dependences.c (debug_pddr): Likewise.
15498 * sched-deps.c (debug_ds): Likewise.
15499 * tree-ssa.c (verify_ssa): Likewise.
15500 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
15501 debug_scattering_functions, debug_iteration_domains, debug_pdr,
15502 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
15503 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
15504 * tree-inline.c (debug_find_tree): Likewise.
15505 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
15506 debug_ppl_powerset_matrix): Likewise.
15507 * var-tracking.c (debug_dv): Likewise.
15508 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
15509 * cfgloop.c (verify_loop_structure): Likewise.
15510 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
15511 * c-common.c (verify_sequence_points): Likewise.
15512 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
15513 debug_candidates, debug_rgn_dependencies): Likewise.
15514 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
15515 * debug_constraint_graph, debug_solution_for_var,
15516 debug_sa_points_to_info): Likewise.
15517 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
15518 Likewie.
15519 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
15520 debug_loops, debug_loop, debug_loop_num): Likewise.
15521 * passes.c (debug_pass): Likewise.
15522 (dump_properties): Likewise; add cfglayout property.
15523 (debug_properties): Likewise.
15524 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
15525 * varpool.c (debug_varpool): Likewise.
15526 * regcprop.c (debug_value_data): Likewise.
15527 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
15528 debug_immediate_uses_for): Likewise.
15529
15530 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
15531
15532 PR bootstrap/44315
15533 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
15534 Filter out insn-flags.h.
15535
15536 2010-05-29 Jan Hubicka <jh@suse.cz>
15537
15538 * cgraph.h (struct varpool_node_set_def,
15539 struct cgraph_node_set_def): Remove unused AUX pointer.
15540 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
15541 VEC_empty macro.
15542
15543 2010-05-29 Jan Hubicka <jh@suse.cz>
15544
15545 PR middle-end/44324
15546 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
15547
15548 2010-05-29 Richard Guenther <rguenther@suse.de>
15549
15550 * lto-streamer.c (cached_bp): New global variable.
15551 (bitpack_create): Return the cached bitpack, if available.
15552 (bitpack_delete): Clear and cache the bitpack, if appropriate.
15553 (bp_pack_value): Remove redundant asserts.
15554
15555 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
15556
15557 PR middle-end/44306
15558 * tree-if-conv.c (is_true_predicate): New.
15559 (is_predicated): Use is_true_predicate.
15560 (add_to_predicate_list): Same. Do not use unshare_expr.
15561 (add_to_dst_predicate_list): Same.
15562
15563 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
15564
15565 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
15566 field on edges.
15567 (predicate_bbs): Same.
15568 (clean_predicate_lists): Same.
15569 (find_phi_replacement_condition): Do not AND the predicate from
15570 edge->aux.
15571
15572 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
15573
15574 PR bootstrap/44315
15575 * Makefile.in (build/gencondmd.o): Add a missing `\'.
15576
15577 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15578
15579 PR target/44261
15580 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
15581 (negdf2): Adjust expander pattern and use negdf2_slow.
15582 (negsf2): Likewise.
15583
15584 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
15585
15586 * basic-block.h (struct control_flow_graph): Move last_label_uid field
15587 up.
15588 * df.h (struct df_base_ref): Move regno field up.
15589 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
15590 * expr.h (struct separate_ops): Move location field up.
15591 * optabs.h (struct optab_d): Move libcall_basename field down.
15592 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
15593 * config/i386/i386.h (struct machine_function): Convert call_abi field
15594 into a bitfield. Move cfa field to the end of the structure.
15595
15596 2010-05-29 Jan Hubicka <jh@suse.cz>
15597
15598 * varpool.c (varpool_get_node): Fix lookup.
15599
15600 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
15601
15602 * config/spu/spu-protos.h: Do not include rtl.h. Protect
15603 RTL specific prototypes with #ifdef RTX_CODE.
15604 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
15605 * config/spu/t-spu-elf: Fix dependencies.
15606
15607 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
15608
15609 2010-05-29 Mike Stump <mikestump@comcast.net>
15610
15611 PR bootstrap/44315
15612 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
15613 TM_H when building to avoid dependency loops.
15614
15615 2010-05-29 Jan Hubicka <jh@suse.cz>
15616
15617 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
15618 refs and body; not the whole node for masters of materialized clones.
15619
15620 2010-05-29 Mike Stump <mikestump@comcast.net>
15621
15622 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
15623
15624 2010-05-29 Jan Hubicka <jh@suse.cz>
15625
15626 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
15627 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
15628 use of clone_function_name.
15629 * cgraph.h (cgraph_create_virtual_clone,
15630 cgraph_function_versioning): update prototypes.
15631 (clone_function_name): Declare.
15632 * ipa-cp.c (ipcp_insert_stage): Update call of
15633 cgraph_create_virtual_clone.
15634 * omp-low.c (create_omp_child_function_name): Use
15635 cgraph_create_virtual_clone.
15636 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
15637 (cgraph_function_versioning): Take SUFFIX argument; produce new name
15638 and make decl local.
15639
15640 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
15641
15642 * vec.h: Include statistics.h
15643 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
15644 with VEC_H.
15645
15646 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
15647
15648 * c-lex.c: Do not include c-tree.h.
15649 * c-pretty-print.c: Likewise.
15650 * c-opts.c: Likewise.
15651 * c-gimplify.c: Likewise.
15652 * c-common.c: Likewise.
15653 * c-dump.c: Likewise. Include c-common.h.
15654
15655 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
15656
15657 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
15658 before including diagnostic-core.h.
15659 (c_cpp_error): New prototype moved from c-tree.h.
15660 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
15661 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
15662 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
15663 (c_cpp_error): Prototype moved to c-common.h.
15664 * Makefile.in: Update dependency for C_COMMON_H.
15665
15666 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
15667
15668 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
15669 * c-common.c (c_register_addr_space): Remove here.
15670 * c-decl.c (c_register_addr_space): Re-add here.
15671
15672 2010-05-28 Mike Stump <mikestump@comcast.net>
15673
15674 * config/darwin-c.c: Remove c-tree.h include.
15675
15676 2010-05-28 Joseph Myers <joseph@codesourcery.com>
15677
15678 * gcc.c: Include diagnostic.h.
15679 (error_count): Remove. All users changed to use errorcount.
15680 (programname): Remove. All users changed to use progname.
15681 (fancy_abort, internal_error, fatal_error, error, warning, inform,
15682 fnotice): Remove.
15683 (execute): Don't include "Internal error" and bug reporting
15684 information in argument of internal_error call.
15685 (process_command): Don't increment error_count after calling
15686 perror_with_name.
15687 (input_filename): Rename to gcc_input_filename. All users
15688 changed.
15689 (main): Call diagnostic_initialize. Register delete_temp_files
15690 with atexit. Use seen_error to test for errors.
15691 * gcc.h: Include diagnostic-core.h.
15692 (fatal_error, error, warning): Remove.
15693 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
15694 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
15695 (gcc.o): Update dependencies.
15696
15697 2010-05-28 Jeff Law <law@redhat.com>
15698
15699 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
15700 functions.
15701 * ira.h (ira_bad_reload_regno): Declare
15702 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
15703
15704 * ira-color.c (update_curr_costs): Free updated hard reg costs.
15705 (ira_reassign_conflict_allocnos): Remove bogus asserts.
15706 (allocno_reload_assign): Likewise.
15707
15708 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
15709
15710 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
15711 build1_stat.
15712
15713 2010-05-28 Richard Guenther <rguenther@suse.de>
15714
15715 PR lto/44312
15716 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
15717 Stream fixed-point constants mode.
15718 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
15719 and TYPE_PRECISION.
15720 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
15721 Stream fixed-point constants mode.
15722 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
15723 and TYPE_PRECISION.
15724
15725 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
15726
15727 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
15728 only place it was called from.
15729 (number_of_latch_executions): Do not return chrec_dont_know when the
15730 may_be_zero is a runtime condition: instead, return a COND_EXPR
15731 including the may_be_zero condition.
15732 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
15733 of nb_iterations.
15734 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
15735 COND_EXPRs.
15736
15737 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
15738
15739 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
15740 generate COND_EXPRs for degenerate_phi_result.
15741
15742 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
15743
15744 PR middle-end/44293
15745 * tree-if-conv.c (if_convertible_loop_p): Check the
15746 if-convertibility of phi nodes in non predicated BBs.
15747
15748 2010-05-28 Joseph Myers <joseph@codesourcery.com>
15749
15750 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
15751
15752 2010-05-28 Joseph Myers <joseph@codesourcery.com>
15753
15754 PR driver/15303
15755 * gcc.c (inform, warning, inform): New functions.
15756 (fatal_ice): Rename to internal_error; change cmsgid parameter to
15757 gmsgid. All callers changed.
15758 (notice): Rename to fnotice; add parameter fp. All callers changed.
15759 (fatal_error): Rename to fatal_signal. All users changed.
15760 (fatal): Rename to fatal_error; change cmsgid parameter to
15761 gmsgid. All callers changed.
15762 (process_command): Use warning instead of error for warnings.
15763 (end_going_arg): Don't use _() around argument of error.
15764 (do_spec_1): Use inform for message from %n specs. Use warning
15765 instead of error for warnings.
15766 (main): Use inform for comparison messages. Use warning for
15767 message about unused linker input.
15768 (error): Increment error_count. Print "error: ".
15769 * gcc.h (fatal): Change to fatal_error.
15770 (warning): Declare.
15771 * config/darwin-driver.c (darwin_default_min_version): Use warning
15772 instead of fprintf for warnings.
15773 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
15774
15775 2010-05-28 Julian Brown <julian@codesourcery.com>
15776
15777 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
15778 (*thumb2_addsi3_compare0_scratch): New.
15779 * config/arm/constraints.md (Pv): New.
15780 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
15781 for ARM mode only.
15782 (*addsi3_compare0_scratch): Likewise.
15783
15784 2010-05-28 Jan Hubicka <jh@suse.cz>
15785
15786 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
15787 check.
15788 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
15789 only on local statics.
15790
15791 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
15792
15793 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
15794
15795 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
15796
15797 PR bootstrap/44314
15798 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
15799 (OPTION_GLIBC): Define.
15800
15801 2010-05-28 Jakub Jelinek <jakub@redhat.com>
15802
15803 PR debug/41048
15804 * dwarf2out.c (double_int_type_size_in_bits): New function.
15805 (round_up_to_align): Change first argument and return value to
15806 double_int.
15807 (field_byte_offset): Work internally on double_ints.
15808
15809 PR target/43636
15810 * builtins.c (expand_movstr): Use a temporary pseudo instead
15811 of target even when target is not NULL and not const0_rtx, but
15812 fails movstr predicate.
15813 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
15814
15815 2010-05-28 Joseph Myers <joseph@codesourcery.com>
15816
15817 * final.c (rest_of_clean_state): Use %m in errors instead of
15818 strerror (errno).
15819 * gengtype.c (read_input_list, close_output_files): Use xstrerror
15820 instead of strerror.
15821 * toplev.c (process_options): Use %m in errors instead of strerror
15822 (errno).
15823 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
15824 (errno).
15825
15826 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
15827
15828 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
15829 (ix86_canonical_va_list_type): Make static. Add declaration.
15830 (ix86_enum_va_list): Make static. Reindent.
15831 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
15832 (ix86_canonical_va_list_type): Ditto.
15833 (ix86_enum_va_list): Ditto.
15834
15835 2010-05-28 Richard Guenther <rguenther@suse.de>
15836
15837 * lto-wrapper.c (run_gcc): With -save-temps generate a
15838 user-visible ltrans filename. Fixup ltrans unit numbering.
15839
15840 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
15841
15842 * c-common.c (c_common_nodes_and_builtins): Replace use
15843 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
15844 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
15845 to ix86_enum_va_list.
15846 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
15847 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
15848 (TARGET_ENUM_VA_LIST_P): Add hook description.
15849 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
15850 * target.h (gcc_target): Add enum_va_list hook.
15851
15852 PR bootstrap/44299
15853 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
15854 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
15855 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
15856
15857 2010-05-28 Alan Modra <amodra@gmail.com>
15858
15859 PR target/44266
15860 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15861 emit_library_call machinery to set up __tls_get_addr calls.
15862
15863 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15864
15865 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
15866
15867 2010-05-28 Dodji Seketeli <dodji@redhat.com>
15868
15869 Revert fix for PR c++/44188
15870 * c-common.c (is_typedef_decl): Revert the moving of this
15871 definition ...
15872 * tree.c (is_typedef_decl): ... here.
15873 (typdef_variant_p): Revert the moving of this definition
15874 here from cp/tree.c.
15875 * c-common.h (is_typedef_decl): Revert the moving of this
15876 declaration ...
15877 * tree.h (is_typedef_decl): ... here.
15878 (typedef_variant_p): Revert the moving of this declaration here
15879 from cp/cp-tree.h
15880 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
15881 (gen_tagged_type_die): Revert the splitting out of ...
15882 (gen_type_die_with_usage): ... this function. Revert the anonymous
15883 tagged type handling.
15884 (gen_typedef_die): Revert emitting DW_TAG_typedef for
15885 typedefs naming anonymous tagged types.
15886
15887 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
15888
15889 * config/rs6000/rs6000-modes.def (PSImode): Delete.
15890
15891 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
15892
15893 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
15894 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
15895 throughout.
15896 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
15897 "xer" to "ca".
15898 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
15899 XER_REGS to CA_REGS throughout.
15900 * config/rs6000/rs6000.h: Same.
15901 (ADDITIONAL_REGISTER_NAMES): Add "xer".
15902 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
15903 that mode_iterator "P" is the size for arithmetic carries as well.
15904 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
15905
15906 2010-05-28 Jakub Jelinek <jakub@redhat.com>
15907
15908 PR bootstrap/44255
15909 * combine.c (struct rtx_subst_pair): Define unconditionally.
15910 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
15911 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
15912 Call make_compound_operation on pair->to.
15913 (propagate_for_debug): Don't call make_compound_operation here.
15914 Always use simplify_replace_fn_rtx.
15915
15916 2010-05-27 Sterling Augustine <sterling@tensilica.com>
15917
15918 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
15919 * config/xtensa/xtensa.c (override_options): Check
15920 TARGET_FORCE_NO_PIC and set flag_pic.
15921 * config/xtensa/xtensa.opt: Document -mforce-no-pic
15922
15923 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
15924
15925 PR bootstrap/44299
15926 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
15927 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
15928
15929 2010-05-27 Joseph Myers <joseph@codesourcery.com>
15930
15931 * diagnostic-core.h: New. Contents moved from diagnostic.h and
15932 toplev.h.
15933 * diagnostic.c: Don't include toplev.h.
15934 (progname): Define. Moved from toplev.c.
15935 (seen_error): New function.
15936 * diagnostic.h: Include diagnostic-core.h.
15937 (diagnostic_t, emit_diagnostic): Don't declare here.
15938 * toplev.c (progname): Move to toplev.c.
15939 (emit_debug_global_declarations, compile_file, finalize,
15940 do_compile, toplev_main): Use seen_error.
15941 * toplev.h: Include diagnostic-core.h.
15942 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
15943 internal_error, warning, warning_at, error, error_n, error_at,
15944 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
15945 verbatim, fnotice, progname): Move to diagnostic-core.h.
15946 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
15947 (expand_builtin_expect): Use seen_error.
15948 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
15949 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
15950 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
15951 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
15952 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
15953 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
15954 errorcount for errors.
15955 * c-opts.c (c_common_finish): Use seen_error.
15956 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
15957 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
15958 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
15959 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
15960 (get_coverage_counts): Use seen_error.
15961 * dwarf2out.c (dwarf2out_finish): Use seen_error.
15962 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
15963 gimplify_body): Use seen_error.
15964 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
15965 * ipa-pure-const.c (gate_pure_const): Use seen_error.
15966 * ipa-reference.c (gate_reference): Use seen_error.
15967 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
15968 * lambda-code.c: Include diagnostic-core.h instead of
15969 diagnostic.h.
15970 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
15971 * lto-compress.c: Include diagnostic-core.h instead of
15972 diagnostic.h.
15973 * lto-section-in.c: Include diagnostic-core.h instead of
15974 diagnostic.h.
15975 * lto-streamer-out.c: Include diagnostic-core.h instead of
15976 diagnostic.h.
15977 * lto-streamer.c: Include diagnostic-core.h instead of
15978 diagnostic.h.
15979 (gate_lto_out): Use seen_error.
15980 * matrix-reorg.c: Include diagnostic-core.h instead of
15981 diagnostic.h.
15982 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
15983 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
15984 (gate_expand_omp, lower_omp_1): Use seen_error.
15985 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
15986 (rest_of_decl_compilation, rest_of_type_compilation,
15987 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
15988 * tree-cfg.c (label_to_block_fn): Use seen_error.
15989 * tree-inline.c (optimize_inline_calls): Use seen_error.
15990 * tree-mudflap.c (mudflap_finish_file): Use
15991 seen_error.
15992 * tree-optimize.c (gate_all_optimizations,
15993 gate_all_early_local_passes, gate_all_early_optimizations): Use
15994 seen_error.
15995 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
15996 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
15997 (varpool_remove_unreferenced_decls,
15998 varpool_assemble_pending_decls): Use seen_error.
15999 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
16000 (TOPLEV_H, DIAGNOSTIC_H): Update.
16001 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
16002 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
16003 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
16004 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
16005 coverage.o, lambda-code.o): Update dependencies.
16006
16007 2010-05-25 Dodji Seketeli <dodji@redhat.com>
16008
16009 PR c++/44188
16010 * c-common.c (is_typedef_decl): Move this definition ...
16011 * tree.c (is_typedef_decl): ... here.
16012 (typdef_variant_p): Move definition here from cp/tree.c.
16013 * c-common.h (is_typedef_decl): Move this declaration ...
16014 * tree.h (is_typedef_decl): ... here.
16015 (typedef_variant_p): Move declaration here from cp/cp-tree.h
16016 * dwarf2out.c (is_naming_typedef_decl): New function.
16017 (gen_tagged_type_die): Split out of ...
16018 (gen_type_die_with_usage): ... this function. When an anonymous
16019 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
16020 is emitted for the typedef.
16021 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
16022 anonymous tagged types.
16023
16024 2010-05-27 Jason Merrill <jason@redhat.com>
16025
16026 * print-tree.c (debug_vec_tree): New fn.
16027 (print_vec_tree): New fn.
16028 * tree.h: Declare them.
16029 * gdbinit.in (pvt): New command.
16030
16031 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
16032
16033 * gdbinit.in (pdd): New command.
16034
16035 2010-05-27 Jan Hubicka <jh@suse.cz>
16036
16037 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
16038 (update_caller_keys): Return early if there are no callers;
16039 only update fibheap when decresing the key.
16040 (update_callee_keys): Avoid recursion.
16041 (decide_inlining_of_small_functions): When badness does not match;
16042 re-insert into fibheap.
16043
16044 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
16045
16046 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
16047 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
16048 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
16049 (ALL_HOST_OBJS): Now a union of the above two.
16050 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
16051 all files in ALL_HOST_FRONTEND_OBJS.
16052 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
16053
16054 * c-common.c: Pretend to be a backend file by undefining
16055 IN_GCC_FRONTEND (still need rtl.h here).
16056
16057 2010-05-27 Jan Hubicka <jh@suse.cz>
16058
16059 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
16060 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
16061
16062 2010-05-27 Jan Hubicka <jh@suse.cz>
16063
16064 * sched-ebb.c: Rename struct deps to struct deps_desc.
16065 * ddg.c: Likewise.
16066 * sel-sched-ir.c: Likewise.
16067 * sched-deps.c: Likewise.
16068 * sched-int.h: Likewise.
16069 * sched-rgn.c: Likewise.
16070
16071 2010-05-27 Jon Beniston <jon@beniston.com>
16072
16073 PR 43726
16074 * config/lm32/lm32.h: Remove definition of
16075 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
16076
16077 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
16078
16079 PR lto/44230
16080 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
16081
16082 2010-05-27 Richard Guenther <rguenther@suse.de>
16083
16084 PR tree-optimization/44284
16085 * tree-vect-stmts.c (vectorizable_assignment): Handle
16086 sign-changing conversions as simple copy.
16087
16088 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16089
16090 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
16091 Bionic C library.
16092 (__gthread_active_p): Check for pthread_create if compiling against
16093 Bionic C library.
16094
16095 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16096
16097 Support compilation for Android platform. Reimplement -mandroid.
16098
16099 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
16100 (*android*): Set ANDROID_DEFAULT.
16101 (arm*-*-linux*): Include linux-android.h.
16102 (arm*-*-eabi*): Don't include previous -mandroid implementation.
16103 * config/arm/eabi.h: Remove, move Android-specific parts ...
16104 * config/linux-android.h: ... here. New file.
16105 * config/arm/eabi.opt: Rename to ...
16106 * config/linux-android.opt: ... this.
16107 (mandroid): Allow -mno-android option. Initialize based on
16108 ANDROID_DEFAULT.
16109 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
16110 Move logic to corresponding LINUX_TARGET_* macros.
16111 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
16112 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
16113 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
16114 Android definitions.
16115 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
16116 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
16117 Document.
16118
16119 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16120
16121 Add support for Bionic C library
16122
16123 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
16124 macro.
16125 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
16126 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
16127
16128 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
16129 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
16130 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
16131 to support multiple C libraries. Handle Bionic.
16132 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
16133 (BIONIC_DYNAMIC_LINKER64): Define.
16134 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
16135 Update.
16136 (TARGET_HAS_SINCOS): Enable for Bionic.
16137
16138 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
16139 the last option specified on command line take effect.
16140 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
16141 (mbionic): New.
16142 (mglibc, muclibc): Update.
16143
16144 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
16145 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
16146 DEFAULT_LIBC.
16147
16148 * doc/invoke.texi (-mglibc, -muclibc): Update.
16149 (-mbionic): Document.
16150
16151 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16152
16153 * c-common.h (c_register_addr_space): Add prototype.
16154 (ADDR_SPACE_KEYWORD): Remove.
16155 * c-common.c (c_register_addr_space): New function.
16156 (c_addr_space_name): Reimplement.
16157 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
16158
16159 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
16160 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
16161
16162 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
16163 Remove TARGET_ADDR_SPACE_KEYWORDS.
16164
16165 2010-05-27 Joseph Myers <joseph@codesourcery.com>
16166
16167 * input.c: New file.
16168 * input.h (main_input_filename): Move declaration to toplev.h.
16169 * toplev.c (input_location, line_table): Move to input.c
16170 * toplev.h (main_input_filename): Move declaration from input.h.
16171 * tree.c (expand_location): Move to input.c.
16172 * Makefile.in (OBJS-common): Add input.o.
16173 (input.o): Add dependencies.
16174
16175 2010-05-27 Richard Guenther <rguenther@suse.de>
16176
16177 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
16178 for non-existant files.
16179 (fork_execute): Mark args_name file as deleted.
16180
16181 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
16182
16183 PR bootstrp/44287
16184 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
16185 (narrow_signed_type): Likewise.
16186
16187 2010-05-26 Jan Hubicka <jh@suse.cz>
16188
16189 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
16190 edge only when checking is enabled; check using former_clone_of;
16191 check inline clones too.
16192 (cgraph_materialize_clone): Record former_clone_of pointer.
16193 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
16194 combining redirections; dump args_to_skip bitmap
16195 (cgraph_materialize_all_clones): Do no redirection here.
16196 * ipa-inline.c (inline_transform): Do redirection here.
16197 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
16198 cheking only).
16199
16200 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
16201
16202 * config/avr/avr-c.c: Do not include regs.h.
16203 Include cpplib.h for cpp_define and tree.h for c-common.h.
16204 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
16205 * config/avr/t-avr: Fix dependencies for avr-c.o.
16206
16207 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
16208
16209 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
16210 string instead of SYMBOL_REF rtx.
16211 * rtl.h (set_stack_check_libfunc): Move prototype from here...
16212 * libfuncs.h: ...to here. Adjust for explow.c change.
16213
16214 2010-05-26 Joseph Myers <joseph@codesourcery.com>
16215
16216 * pretty-print.c: Don't include ggc.h.
16217 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
16218 (identifier_to_locale): Use them for allocation.
16219 * pretty-print.h (identifier_to_locale_alloc,
16220 identifier_to_locale_free): Declare.
16221 * toplev.c (alloc_for_identifier_to_locale): New.
16222 (general_init): Set identifier_to_locale_alloc and
16223 identifier_to_locale_free.
16224 * Makefile.in (pretty-print.o): Update dependencies.
16225
16226 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
16227
16228 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
16229 pointer types if they have different alignment or mode.
16230
16231 2010-05-26 Anatoly Sokolov <aesok@post.ru>
16232
16233 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
16234 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16235 * config/sparc/sparc-protos.h (function_value): Remove declaration.
16236 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
16237 sparc_function_value_regno_p): New functions.
16238 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16239 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16240 (function_value): Rename to...
16241 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
16242 argument to 'outgoing'.
16243 (function_arg_record_value, function_arg_union_value,
16244 function_arg_vector_value): Update comment.
16245
16246 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
16247
16248 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
16249 (fde_needed_for_eh_p): New predicate.
16250 (output_call_frame_info): Use it throughout to decide whether FDEs
16251 are needed for EH purpose.
16252 (dwarf2out_begin_prologue): Reorder assignments.
16253
16254 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
16255
16256 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
16257 special case loop->header.
16258 (is_predicated): New.
16259 (if_convertible_loop_p): Call it.
16260
16261 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
16262
16263 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
16264 iterator in parameter. Do not generate code during the analysis.
16265 (tree_if_convert_cond_stmt): Removed.
16266 (tree_if_convert_stmt): Removed.
16267 (predicate_bbs): New.
16268 (if_convertible_loop_p): Call predicate_bbs.
16269 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
16270 now contains all the analysis part.
16271
16272 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
16273
16274 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
16275 statements in the analysis part.
16276 (tree_if_convert_stmt): Update comment.
16277 (remove_conditions_and_labels): New.
16278 (combine_blocks): Call remove_conditions_and_labels.
16279 (tree_if_conversion): Update comment.
16280
16281 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
16282
16283 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
16284 than 2 predecessors or more than 2 successors.
16285
16286 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
16287
16288 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
16289 of loops in which the data dependence analysis fails.
16290
16291 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
16292
16293 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
16294 CDI_POST_DOMINATORS.
16295 (tree_if_conversion): Same.
16296
16297 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
16298
16299 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
16300
16301 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
16302
16303 * tree-if-conv.c: Update copyright years. Fix comments.
16304 Fix indentation.
16305
16306 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
16307
16308 * builtin-types.def (BT_INT128): New primitive type.
16309 (BT_UINT128): Likewise.
16310 * c-common.c (c_common_r): Add __int128 keyword.
16311 (c_common_type_for_size): Handle __int128.
16312 (c_common_type_for_mode): Likewise.
16313 (c_common_signed_or_unsigned_type): Likewise.
16314 (c_common_nodes_and_builtins): Add builtin type
16315 if target supports 128-bit integer scalar.
16316 * c-common.h (enum rid): Add RID_INT128.
16317 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
16318 if target supports 128-bit integer scalar.
16319 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
16320 (finish_declspecs): Likewise.
16321 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
16322 (c_token_starts_declspecs): Likewise.
16323 (c_parser_declspecs): Likewise.
16324 (c_parser_attributes): Likewise.
16325 (c_parser_objc_selector): Likewise.
16326 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
16327 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
16328 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
16329 * tree.c (make_or_reuse_type): Likewise.
16330 (make_unsigned_type): Likewise.
16331 (build_common_tree_nodes_2): Likewise.
16332 * tree.h (enum integer_type_kind): Add itk_int128 and
16333 itk_unsigned_int128.
16334 (int128_integer_type_node): New define.
16335 (int128_unsigned_type_node): New define.
16336 * doc/extend.texi: Add documentation about __int128 type.
16337
16338 2010-05-26 Richard Guenther <rguenther@suse.de>
16339
16340 * tree-ssa-sccvn.c (copy_nary): Adjust.
16341 (copy_phis): Rename to ...
16342 (copy_phi): ... this. Adjust.
16343 (copy_references): Rename to ...
16344 (copy_reference): ... this. Adjust.
16345 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
16346 result into the valid table.
16347
16348 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
16349
16350 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
16351 insn-config.h, insn-codes.h, recog.h, and optabs.h.
16352
16353 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16354
16355 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
16356
16357 2010-05-26 Richard Guenther <rguenther@suse.de>
16358
16359 * opts.c (common_handle_option): Handle OPT_Ofast.
16360
16361 2010-05-26 Joseph Myers <joseph@codesourcery.com>
16362
16363 * diagnostic.c: Don't include opts.h.
16364 (permissive_error_option): Define.
16365 (diagnostic_initialize): Take n_opts parameter. Allocate memory
16366 for classify_diagnostic. Don't use memset for
16367 classify_diagnostic. Initialize new and recently added fields.
16368 (diagnostic_classify_diagnostic): Use context->n_opts instead of
16369 N_OPTS.
16370 (diagnostic_report_diagnostic): Pass context parameter to
16371 diagnostic_report_warnings_p. Use option_enabled and option_name
16372 hooks from context.
16373 (emit_diagnostic): Use permissive_error_option.
16374 (permerror): Likewise.
16375 * diagnostic.h: Don't include options.h.
16376 (struct diagnostic_context): Add n_opts, opt_permissive,
16377 inhibit_warnings, warn_system_headers, option_enabled and
16378 option_name fields. Change classify_diagnostic to a pointer.
16379 * opts-diagnostic.h: New file.
16380 * opts.c: Include opts-diagnostic.h.
16381 (common_handle_option): Set global_dc fields for -Wfatal-errors,
16382 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
16383 (option_name): New function.
16384 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
16385 (c_common_handle_option): Set global_dc->permissive for
16386 -fpermissive.
16387 * c-common.c (c_cpp_error): Save and restore
16388 global_dc->warn_system_headers, not variable warn_system_headers.
16389 * toplev.c: Include opts-diagnostic.h.
16390 (general_init): Update call to diagnostic_initialize. Set
16391 global_dc->show_column, global_dc->option_enabled and
16392 global_dc->option_name.
16393 (process_options): Don't set global_dc fields here.
16394 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
16395 (diagnostic.o, opts.o, toplev.o): Update dependencies.
16396
16397 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
16398
16399 * config/picochip/picochip.md (movsi): Split a movsi from a
16400 const after reload.
16401
16402 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16403
16404 * ggc-zone.c: Update copyright year.
16405 (poison_region): Mark memory for Valgrind as undefined before
16406 memset () call and inaccessible afterwards.
16407 (ggc_pch_total_size): Change type of i to int.
16408
16409 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16410
16411 * ggc-common.c (ggc_free_overhead): Allow empty slot.
16412
16413 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
16414
16415 * ggc-common.c: Update copyright year.
16416 (ggc_rlimit_bound): Remove prototype. Compile only if
16417 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
16418 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
16419 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
16420 (ggc_min_heapsize_heuristic): Likewise.
16421
16422 2010-05-26 Richard Guenther <rguenther@suse.de>
16423
16424 PR rtl-optimization/44164
16425 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
16426 no-common access-path disambiguation.
16427 (indirect_ref_may_alias_decl_p): Adjust.
16428 (indirect_refs_may_alias_p): Likewise.
16429 (refs_may_alias_p_1): Likewise.
16430
16431 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
16432
16433 * c-typeck.c: Do not include expr.h.
16434
16435 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
16436
16437 * rtl.h (decl_default_tls_model): Move prototype from here...
16438 * output.h: ...to here.
16439 * c-decl.c: Do not include rtl.h.
16440 * c-pragma.c: Likewise.
16441 * c-parser.c: Likewise.
16442 * c-gimplify.c: Likewise. And also not hard-reg-set.
16443 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
16444 FIXME note for it. Add a FIXME note for expr.h.
16445 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
16446 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
16447 defined.
16448
16449 2010-05-26 Jakub Jelinek <jakub@redhat.com>
16450
16451 PR target/44199
16452 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
16453 or total_size is larger than red zone size for non-V4 ABI, emit a
16454 stack_tie resp. frame_tie insn before stack pointer restore.
16455 * config/rs6000/rs6000.md (frame_tie): New insn.
16456
16457 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
16458
16459 * function.h (struct function): Add can_throw_non_call_exceptions bit.
16460 * lto-streamer-in.c (input_function): Stream it in.
16461 * lto-streamer-out.c (output_function): Stream it out.
16462 * function.c (allocate_struct_function): Set it.
16463 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
16464 for flag_non_call_exceptions.
16465 * cfgbuild.c (control_flow_insn_p): Likewise.
16466 (make_edges): Likewise.
16467 * cfgexpand.c (expand_stack_alignment): Likewise.
16468 * combine.c (distribute_notes): Likewise.
16469 * cse.c (cse_extended_basic_block): Likewise.
16470 * except.c (insn_could_throw_p): Likewise.
16471 * gcse.c (simple_mem): Likewise.
16472 * ipa-pure-const.c (check_call): Likewise.
16473 (check_stmt ): Likewise.
16474 * lower-subreg.c (lower-subreg.c): Likewise.
16475 * optabs.c (emit_libcall_block): Likewise.
16476 (prepare_cmp_insn): Likewise.
16477 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
16478 * postreload.c (rest_of_handle_postreload): Likewise.
16479 * reload1.c (reload_as_needed): Likewise.
16480 (emit_input_reload_insns): Likewise.
16481 (emit_output_reload_insns): Likewise.
16482 (fixup_abnormal_edges): Likewise.
16483 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
16484 * store-motion.c (find_moveable_store): Likewise.
16485 * tree-eh.c (stmt_could_throw_p): Likewise.
16486 (tree_could_throw_p): Likewise.
16487 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16488 * config/arm/arm.c (arm_expand_prologue): Likewise.
16489 (thumb1_expand_prologue): Likewise.
16490 * config/rx/rx.md (cbranchsf4): Likewise.
16491 (cmpsf): Likewise.
16492 * config/s390/s390.c (s390_emit_prologue): Likewise.
16493 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
16494 (inline_forbidden_into_p): New predicate.
16495 (expand_call_inline): Use it to forbid inlining.
16496 (tree_can_inline_p): Likewise.
16497
16498 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
16499
16500 * config/i386/i386-c.c: Do not include rtl.h.
16501 * config/i386/t-i386: Update dependencies.
16502
16503 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
16504
16505 * attribs.c: Do not include rtl.h.
16506 * Makefile.in: Update dependencies.
16507
16508 2010-05-25 Anatoly Sokolov <aesok@post.ru>
16509
16510 * double-int.h (double_int_and): New.
16511 * combine.c (try_combine): Clean up, use double_int_* and
16512 immed_double_int_const functions.
16513
16514 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16515
16516 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
16517 stderr to /dev/null instead of grep -q.
16518 * configure: Regenerate.
16519
16520 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
16521
16522 * Makefile.in (EXCEPT_H): Fix typo.
16523
16524 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
16525
16526 * ira-build.c (update_conflict_hard_reg_costs): New.
16527 (ira_build): Call update_conflict_hard_reg_costs.
16528
16529 2010-05-25 Jakub Jelinek <jakub@redhat.com>
16530
16531 PR debug/41371
16532 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
16533 ENABLE_CHECKING.
16534 (intersect_loc_chains): Walk the s2var's loc_chain together
16535 with s1node chain as long as the locations are equal, don't
16536 call find_loc_in_1pdv in that case.
16537
16538 PR debug/42801
16539 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
16540 (copy_bind_expr): ... instead of here.
16541 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
16542 if the block hasn't been remapped.
16543 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
16544 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
16545
16546 2010-05-25 Richard Guenther <rguenther@suse.de>
16547
16548 PR middle-end/44069
16549 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
16550 out-of-bounds array accesses.
16551
16552 2010-05-25 Richard Guenther <rguenther@suse.de>
16553
16554 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
16555 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
16556 (run_gcc): Re-organize to make cleanup easier.
16557
16558 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16559
16560 * config/s390/s390.c (optimization_options): Fix and move the
16561 flag_prefetch_loop_arrays override ...
16562 (override_options): ... here.
16563
16564 2010-05-25 Joseph Myers <joseph@codesourcery.com>
16565
16566 * diagnostic.c: Don't include plugin.h.
16567 (diagnostic_report_diagnostic): Don't handle plugins specially
16568 here. Pass context to internal_error callback.
16569 * diagnostic.h (struct diagnostic_context): Add context parameter
16570 to internal_error callback.
16571 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
16572 * plugin.h (struct diagnostic_context): Declare.
16573 (warn_if_plugins, plugins_internal_error_function): Declare.
16574 * toplev.c (general_init): Set global_dc->internal_error.
16575 * Makefile.in (diagnostic.o): Update dependencies.
16576
16577 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
16578
16579 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
16580 * config/rs6000/t-darwin64: New.
16581 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
16582 build crt2.
16583
16584 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
16585
16586 PR 44203
16587 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
16588 match the original (and intended) behaviour before r159557. This
16589 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
16590 in two ways.
16591
16592 2010-05-25 Richard Guenther <rguenther@suse.de>
16593
16594 * doc/invoke.texi: Document -Ofast.
16595 * target.h (struct gcc_target): Add handle_ofast.
16596 * target-def.h (TARGET_HANDLE_OFAST): Add.
16597 (TARGET_INITIALIZER): Adjust.
16598 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
16599 * common.opt (Ofast): Add.
16600
16601 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
16602
16603 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
16604 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
16605
16606 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
16607
16608 PR target/43610
16609 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
16610 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
16611 false_rtx. Use false_rtx to compute the correct *ptest for reversed
16612 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
16613
16614 2010-05-25 Jakub Jelinek <jakub@redhat.com>
16615
16616 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
16617 DW_OP_minus with negated offset instead of DW_OP_plus.
16618 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
16619
16620 2010-05-25 Wei Guozhi <carrot@google.com>
16621
16622 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
16623 tst instruction and a new alternative.
16624 * config/arm/constraints.md (Pu): New constraint.
16625
16626 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
16627
16628 * function.c (assign_stack_local_1): Initialize variable
16629 to avoid warning when bootstrapping at -O3.
16630
16631 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
16632
16633 * configure.ac (all_lang_makefiles): Remove everything related to it.
16634 * configure: Regenerate.
16635 * Makefile.in: Fix reference to ada Make-lang.in.
16636 Remove support for LANG_MAKEFILES.
16637
16638 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
16639 Sandra Loosemore <sandra@codesourcery.com>
16640
16641 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
16642 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
16643 description. Add arm_neon_fp16_ok.
16644 (Add Options): Add arm_neon and arm_neon_fp16.
16645
16646 2010-05-24 Joseph Myers <joseph@codesourcery.com>
16647
16648 * diagnostic.c: Don't include flags.h.
16649 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
16650 context parameters. Check flags in the context passed as a parameter.
16651 (diagnostic_build_prefix): Add context parameter. Check
16652 show_column flag in context.
16653 (diagnostic_action_after_output): Check fatal_errors flag in context.
16654 (diagnostic_report_current_module): Check show_column flag in context.
16655 (default_diagnostic_starter): Update call to
16656 diagnostic_build_prefix.
16657 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
16658 (emit_diagnostic): Pass context to permissive_error_kind.
16659 (permerror): Pass context to permissive_error_kind.
16660 * diagnostic.h (struct diagnostic_context): Add show_column,
16661 pedantic_errors, permissive and fatal_errors fields.
16662 (diagnostic_build_prefix): Update prototype.
16663 * langhooks.c
16664 * toplev.c (process_options): Set flags in global_dc from
16665 flag_show_column, flag_pedantic_errors, flag_permissive,
16666 flag_fatal_errors.
16667 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
16668 to diagnostic_build_prefix.
16669 * Makefile.in (diagnostic.o): Update dependencies.
16670
16671 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
16672
16673 * config/i386/ia32intrin.h (__crc32q): Define only if
16674 __SSE4_2__ is defined.
16675
16676 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
16677
16678 PR target/44132
16679 PR middle-end/43602
16680 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
16681 DECL_VISIBILITY_SPECIFIED.
16682 (emutls_decl): Set DECL_PRESERVE_P and copy
16683 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
16684 (emutls_finalize_control_var): New callback.
16685 (emutls_finish): Finalize emutls control variables.
16686 * toplev.c (compile_file): Move the call to emutls_finish ()
16687 before varpool_assemble_pending_decls ().
16688
16689 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
16690
16691 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
16692 added to the preprocessor condition.
16693
16694 2010-05-24 Paul Brook <paul@codesourcery.com>
16695
16696 * gengtype-lex.l: Add HARD_REG_SET.
16697 * expr.c (expand_expr_real_1): Record writes to hard registers.
16698 * function.c (rtl_data): Add asm_clobbers.
16699 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
16700 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
16701 Use crtl->asm_clobbers.
16702
16703 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16704
16705 * doc/makefile.texi (Makefile): Mention stages 'profile'
16706 and 'feedback' for profiledbootstrap.
16707
16708 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
16709
16710 PR target/44245
16711 * config/i386/i386.c (def_builtin): Properly check
16712 OPTION_MASK_ISA_64BIT.
16713
16714 2010-05-23 Joseph Myers <joseph@codesourcery.com>
16715
16716 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
16717 typedefs with different but compatible types. Allow duplicate
16718 typedefs with the same type except for pedantic non-C1X, but give
16719 warning for variably modified types.
16720 * c-typeck.c (tagged_types_tu_compatible_p,
16721 function_types_compatible_p, type_lists_compatible_p,
16722 comptypes_internal): Add parameter different_types_p; set
16723 *different_types_p for different but compatible types. All
16724 callers changed.
16725 (comptypes_check_different_types): New.
16726 * c-tree.h (comptypes_check_different_types): Declare.
16727
16728 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
16729
16730 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
16731 * jump.c: Include basic-block.h.
16732 * profile.c: Likewise.
16733 * tree-profile.c: Likewise.
16734 * coverage.c: Likewise.
16735 * basic-block.h (optimize_function_for_size_p): Move to function.h.
16736 (optimize_function_for_speed_p): Likewise.
16737 * function.h (optimize_function_for_size_p,
16738 optimize_function_for_speed_p): Moved here from basic-block.h.
16739 * Makefile.in: Update dependencies.
16740
16741 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16742
16743 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
16744 before calling make; allow override through $MAKE.
16745 * doc/invoke.texi (Optimize Options): Document override.
16746
16747 2010-05-23 Anatoly Sokolov <aesok@post.ru>
16748
16749 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
16750 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16751 (rs6000_mode_dependent_address_ptr): Make static.
16752 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16753 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
16754 Remove.
16755
16756 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
16757
16758 PR target/43869
16759 * config/i386/i386.c: Make sure that the correct regparm is passed.
16760
16761 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
16762
16763 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
16764 * sbitmap.c: ...to here to internalize sbitmap element access.
16765 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
16766 Explain why basic-block.h is included.
16767 * function.h: Include tm.h for CUMULATIVE_ARGS.
16768 * Makefile.in: Update dependencies.
16769
16770 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
16771
16772 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
16773 New core types.
16774 * sbitmap.h (struct sbitmap_def): Do not typedef here.
16775 * sbitmap.c: Include sbitmap.h.
16776 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
16777 hard-reg-set.h. Split everything related to regsets out from here...
16778 * regset.h: ...to here. New file.
16779 * df.h: Include regset.h and sbitmap.h.
16780 * tree-flow.h: Likewise.
16781 * cfgloop.h: Likewise.
16782 * except.h: Do not include sbitmap.h. Include hashtab.h.
16783 * cgraph.h: Include vec.h and function.h.
16784 * reload.h (struct insn_chain): Change types of live_throughout
16785 and dead_or_set from regset_head to bitmap_head.
16786 (compute_use_by_pseudos): Be defined also if regset.h is not included.
16787 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
16788 spilled_regs from regset_head to bitmap_head to avoid dependency
16789 in regset.h.
16790 * sel-sched-ir.h: Include regset.h.
16791 * reload.c: Include df.h before reload.h.
16792 * caller-save.c: Likewise.
16793 * reload1.c: Likewise.
16794 * ira.c: Likewise.
16795 (mark_elimination): Update type of r to bitmap, consistent with
16796 DF_LR_IN.
16797 * dominance.c: Include bitmap.h.
16798 * modulo-sched.c: Include df.h.
16799 * cfganal.c: Include bitmap.h and sbitmap.h.
16800 * cfgbuild.c: Include sbitmap.h.
16801 * lcm.c: Include sbitmap.h.
16802 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
16803 * domwalk.c: Include sbitmap.h, exclude ggc.h.
16804 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
16805 * cselib.c: Include bitmap.h.
16806 * tree-optimize.c: Include regset.h.
16807 * stmt.c: Include bitmap.h.
16808 * Makefile.in: Update dependencies.
16809
16810 2010-05-22 Jan Hubicka <jh@suse.cz>
16811
16812 * cgraph.h (struct varpool_node): Add same_comdat_group.
16813 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
16814 pointer.
16815 (output_varpool): Update call of lto_output_varpool_node.
16816 (input_varpool): Read same_comdat_group pointer.
16817 (input_varpool_1): Fixup same_comdat_group pointer.
16818 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
16819 group is needed, all are.
16820 * varpool.c (varpool_remove_node): Remove node from same comdat group
16821 linklist too.
16822 (varpool_analyze_pending_decls): Walk same comdat groups.
16823
16824 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
16825
16826 * rtl.h (union rtunion_def): Remove rt_bit member.
16827 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
16828 * print-rtl (print_rtx): Do not print the member.
16829 * gengtype.c (adjust_field_rtx_def): Do not handle it.
16830 * gengenrtl.c (type_from_format): Likewise.
16831 (accessor_from_format): Likewise.
16832
16833 2010-05-22 Joseph Myers <joseph@codesourcery.com>
16834
16835 * dbgcnt.c: Include toplev.h instead of errors.h.
16836 * ira-emit.c: Don't include errors.h.
16837 * ira.c: Include toplev.h instead of errors.h.
16838 * lto-compress.c: Include toplev.h instead of errors.h.
16839 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
16840 ira.o, dbgcnt.o): Update dependencies.
16841
16842 2010-05-22 Richard Guenther <rguenther@suse.de>
16843
16844 * gimple.c (gimple_types_compatible_p): Check type qualifications
16845 before merging pointer to complete and pointer to incomplete type.
16846 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
16847 we use our own resolution algorithm. The gold linker plugin
16848 doesn't do the job we want it to do here.
16849
16850 2010-05-22 Anatoly Sokolov <aesok@post.ru>
16851
16852 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16853 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16854 (sparc_mode_dependent_address_p): New function.
16855
16856 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
16857
16858 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
16859
16860 * timevar.c: Do not include any core headers.
16861 (timevar_print): De-i18n-ize.
16862 (print_time): Likewise.
16863 * timevar.h (timevar_push, timevar_pop): Make inline functions.
16864
16865 2010-05-21 Joseph Myers <joseph@codesourcery.com>
16866
16867 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
16868 langhooks-def.h.
16869 (diagnostic_initialize): Initialize x_data not last_function.
16870 (diagnostic_report_current_function): Move to tree-diagnostic.c.
16871 (default_diagnostic_starter): Call
16872 diagnostic_report_current_module not
16873 diagnostic_report_current_function.
16874 (diagnostic_report_diagnostic): Initialize x_data not
16875 abstract_origin.
16876 (verbatim): Likewise.
16877 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
16878 x_data.
16879 (struct diagnostic_context): Change last_function to x_data.
16880 (diagnostic_auxiliary_data): Replace with
16881 diagnostic_context_auxiliary_data and
16882 diagnostic_info_auxiliary_data.
16883 (diagnostic_last_function_changed, diagnostic_set_last_function,
16884 diagnostic_report_current_function): Move to tree-diagnostic.h.
16885 (print_declaration, dump_generic_node, print_generic_stmt,
16886 print_generic_stmt_indented, print_generic_expr,
16887 print_generic_decl, debug_c_tree, dump_omp_clauses,
16888 print_call_name, debug_generic_expr, debug_generic_stmt,
16889 debug_tree_chain, default_tree_printer): Move to
16890 tree-pretty-print.h.
16891 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
16892 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
16893 gimple-pretty-print.h.
16894 * pretty-print.c: Don't include tree.h
16895 (pp_base_format): Don't handle %K here.
16896 (pp_base_tree_identifier): Move to tree-pretty-print.c.
16897 * pretty-print.h (text_info): Change abstract_origin to x_data.
16898 (pp_tree_identifier, pp_unsupported_tree,
16899 pp_base_tree_identifier): Move to tree-pretty-print.h.
16900 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
16901 tree-pretty-print.h: New files.
16902 * tree-pretty-print.c: Include tree-pretty-print.h.
16903 (percent_K_format): New. Moved from pretty-print.c.
16904 (pp_base_tree_identifier): Move from pretty-print.c.
16905 * c-objc-common.c: Include tree-pretty-print.h.
16906 (c_tree_printer): Handle %K here.
16907 * langhooks.c: Include tree-diagnostic.h.
16908 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
16909 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
16910 (default_tree_printer): Handle %K using percent_K_format.
16911 (general_init): Use default_tree_diagnostic_starter.
16912 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
16913 (free_lang_data): Use default_tree_diagnostic_starter.
16914 * c-pretty-print.c: Include tree-pretty-print.h.
16915 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16916 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16917 * dwarf2out.c: Include tree-pretty-print.h.
16918 * except.c: Include tree-pretty-print.h.
16919 * gimple-pretty-print.c: Include tree-pretty-print.h and
16920 gimple-pretty-print.h.
16921 * gimplify.c: Include tree-pretty-print.h.
16922 * graphite-poly.c: Include tree-pretty-print.h and
16923 gimple-pretty-print.h.
16924 * ipa-cp.c: Include tree-pretty-print.h.
16925 * ipa-inline.c: Include gimple-pretty-print.h.
16926 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16927 * ipa-pure-const.c: Include gimple-pretty-print.h.
16928 * ipa-struct-reorg.c: Include tree-pretty-print.h and
16929 gimple-pretty-print.h.
16930 * ipa-type-escape.c: Include tree-pretty-print.h.
16931 * print-rtl.c: Include tree-pretty-print.h.
16932 * print-tree.c: Include gimple-pretty-print.h.
16933 * sese.c: Include tree-pretty-print.h.
16934 * tree-affine.c: Include tree-pretty-print.h.
16935 * tree-browser.c: Include tree-pretty-print.h.
16936 * tree-call-cdce.c: Include gimple-pretty-print.h.
16937 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16938 * tree-chrec.c: Include tree-pretty-print.h.
16939 * tree-data-ref.c: Include tree-pretty-print.h and
16940 gimple-pretty-print.h.
16941 * tree-dfa.c: Include tree-pretty-print.h.
16942 * tree-if-conv.c: Include tree-pretty-print.h and
16943 gimple-pretty-print.h.
16944 * tree-inline.c: Include tree-pretty-print.h.
16945 * tree-into-ssa.c: Include tree-pretty-print.h and
16946 gimple-pretty-print.h.
16947 * tree-nrv.c: Include tree-pretty-print.h.
16948 * tree-object-size.c: Include tree-pretty-print.h and
16949 gimple-pretty-print.h.
16950 * tree-outof-ssa.c: Include tree-pretty-print.h and
16951 gimple-pretty-print.h.
16952 * tree-parloops.c: Include tree-pretty-print.h and
16953 gimple-pretty-print.h.
16954 * tree-predcom.c: Include tree-pretty-print.h and
16955 gimple-pretty-print.h.
16956 * tree-scalar-evolution.c: Include tree-pretty-print.h and
16957 gimple-pretty-print.h.
16958 * tree-sra.c: Include tree-pretty-print.h.
16959 * tree-ssa-address.c: Include tree-pretty-print.h.
16960 * tree-ssa-alias.c: Include tree-pretty-print.h.
16961 * tree-ssa-ccp.c: Include tree-pretty-print.h and
16962 gimple-pretty-print.h.
16963 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
16964 * tree-ssa-copy.c: Include tree-pretty-print.h and
16965 gimple-pretty-print.h.
16966 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
16967 * tree-ssa-dce.c: Include tree-pretty-print.h and
16968 gimple-pretty-print.h.
16969 * tree-ssa-dom.c: Include tree-pretty-print.h and
16970 gimple-pretty-print.h.
16971 * tree-ssa-dse.c: Include gimple-pretty-print.h.
16972 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
16973 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
16974 * tree-ssa-live.c: Include tree-pretty-print.h and
16975 gimple-pretty-print.h.
16976 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
16977 gimple-pretty-print.h.
16978 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
16979 gimple-pretty-print.h.
16980 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
16981 gimple-pretty-print.h.
16982 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
16983 gimple-pretty-print.h.
16984 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
16985 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
16986 * tree-ssa-operands.c: Include tree-pretty-print.h and
16987 gimple-pretty-print.h.
16988 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
16989 gimple-pretty-print.h.
16990 * tree-ssa-pre.c: Include tree-pretty-print.h and
16991 gimple-pretty-print.h.
16992 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
16993 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
16994 gimple-pretty-print.h.
16995 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
16996 gimple-pretty-print.h.
16997 * tree-ssa-sink.c: Include gimple-pretty-print.h.
16998 * tree-ssa-ter.c: Include tree-pretty-print.h and
16999 gimple-pretty-print.h.
17000 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
17001 * tree-ssa.c: Include tree-pretty-print.h and
17002 gimple-pretty-print.h.
17003 * tree-stdarg.c: Include gimple-pretty-print.h.
17004 * tree-switch-conversion.c: Include gimple-pretty-print.h.
17005 * tree-tailcall.c: Include tree-pretty-print.h and
17006 gimple-pretty-print.h.
17007 * tree-vect-data-refs.c: Include tree-pretty-print.h and
17008 gimple-pretty-print.h.
17009 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
17010 gimple-pretty-print.h.
17011 * tree-vect-loop.c: Include tree-pretty-print.h and
17012 gimple-pretty-print.h.
17013 * tree-vect-patterns.c: Include gimple-pretty-print.h.
17014 * tree-vect-slp.c: Include tree-pretty-print.h and
17015 gimple-pretty-print.h.
17016 * tree-vect-stmts.c: Include tree-pretty-print.h and
17017 gimple-pretty-print.h.
17018 * tree-vectorizer.c: Include tree-pretty-print.h.
17019 * tree-vrp.c: Include tree-pretty-print.h and
17020 gimple-pretty-print.h.
17021 * value-prof.c: Include tree-pretty-print.h and
17022 gimple-pretty-print.h.
17023 * var-tracking.c: Include tree-pretty-print.h.
17024 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
17025 (tree-diagnostic.o): New dependencies.
17026 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
17027 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
17028 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
17029 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
17030 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
17031 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
17032 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
17033 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
17034 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
17035 tree-ssa-address.o, tree-ssa-loop-niter.o,
17036 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
17037 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
17038 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
17039 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
17040 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
17041 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
17042 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
17043 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
17044 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
17045 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
17046 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
17047 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
17048 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
17049 tree-switch-conversion.o, var-tracking.o, value-prof.o,
17050 cfgexpand.o, pretty-print.o): Update dependencies.
17051
17052 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
17053
17054 * tree-ssa-structalias.c: Remove tm_p.h from include.
17055
17056 2010-05-21 Jeff Law <law@redhat.com>
17057
17058 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
17059
17060 2010-05-21 Jason Merrill <jason@redhat.com>
17061
17062 * tree-eh.c (cleanup_is_dead_in): New.
17063 (lower_try_finally): Don't generate a dead cleanup region.
17064 (lower_cleanup): Likewise.
17065
17066 2010-05-21 Jakub Jelinek <jakub@redhat.com>
17067
17068 PR debug/44223
17069 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
17070 unchain each use from the cyclic next_regno_use chain first.
17071
17072 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
17073
17074 * real: Do not include gmp.h, mpfr.h, and mpc.h.
17075 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
17076 (real_value_negate, real_value_abs): New prototypes.
17077 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
17078 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
17079 new include file for interface between MPFR and REAL_VALUE_TYPE.
17080 * real.c: Include realmpfr.h.
17081 (real_arithmetic2): Remove legacy function.
17082 (real_value_negate): New.
17083 (real_value_abs): New.
17084 (mfpr_from_real, real_from_mpfr): Move from here...
17085 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
17086 * builtins.c: Include realmpfr.h.
17087 * fold-const.c: Include realmpfr.h.
17088 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
17089 (fold_negate_const): Likewise.
17090 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
17091 * toplev.c: Include realmpfr.h.
17092 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
17093 and real_value_negate.
17094 * fixed-value.c (check_real_for_fixed_mode): Likewise.
17095 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
17096 (vfp3_const_double_index): Likewise.
17097 (arm_print_operand): Likewise.
17098 * Makefile.in: Update dependencies.
17099
17100 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17101
17102 * config/s390/s390.c (override_options): Increase the default
17103 of max-completely-peel-times.
17104
17105 2010-05-21 Julian Brown <julian@codesourcery.com>
17106 Mark Mitchell <mark@codesourcery.com>
17107
17108 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
17109 sibling calls for Thumb-1.
17110 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
17111 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
17112 Thumb-2.
17113 (*call_insn, *call_value_insn): Don't use for Thumb-2.
17114 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
17115 for Thumb-2.
17116 (return): New expander.
17117 (*arm_return): New name for ARM return insn.
17118 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
17119
17120 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
17121
17122 * config.gcc (sparc64-*-rtems*): New target.
17123
17124 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
17125
17126 * tree.c (build_function_decl_skip_args): Fix grammar.
17127 (build_function_type_list_1): Fix typos, adjust formatting.
17128
17129 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
17130
17131 * tree.h: Include real.h and fixed-value.h as basic datatypes.
17132 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
17133 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
17134 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
17135 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
17136 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
17137 tree-pretty-print.c, tree-loop-distribution.c,
17138 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
17139 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
17140 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
17141 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
17142 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
17143 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
17144 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
17145 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
17146 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
17147 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
17148 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
17149 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
17150 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
17151 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
17152 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
17153 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
17154 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
17155 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
17156 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
17157 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
17158 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
17159 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
17160 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
17161 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
17162 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
17163 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
17164 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
17165 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
17166 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
17167 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
17168 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
17169 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
17170 config/score/score7.c, config/score/score.c, config/arm/arm.c,
17171 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
17172 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
17173 config/bfin/bfin.c: Clean up redundant includes.
17174 * Makefile.in: Update accordingly.
17175
17176 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
17177
17178 PR middle-end/44204
17179 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
17180 statement has no arguments.
17181
17182 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
17183
17184 PR/44139
17185 * varasm.c (emutls_decl): Merge attributes to new decl.
17186
17187 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
17188
17189 PR middle-end/44101
17190 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
17191 around the uniquized constructor if its type requires a conversion.
17192
17193 2010-05-21 Jakub Jelinek <jakub@redhat.com>
17194
17195 PR debug/44205
17196 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
17197 at -O0 goto_locus of any of the incoming edges differs from
17198 goto_locus of outgoing edge, or gimple_location of any of the
17199 labels differs.
17200
17201 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
17202
17203 * ira.c (ira_non_ordered_class_hard_regs): Define.
17204 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
17205 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
17206 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
17207 cost of unaligned hard regs when allocating multi-reg pseudos.
17208
17209 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
17210
17211 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
17212 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
17213 for TARGET_NO_FLOAT.
17214 * config/mips/mips.c (mips_file_start): Expand conditional expression
17215 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
17216 (mips_override_options): Move -mno-float override -msoft-float and
17217 -mhard-float.
17218 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
17219 Condition(TARGET_SUPPORTS_NO_FLOAT).
17220 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
17221 __mips_no_float here.
17222 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
17223 (TARGET_SUPPORTS_NO_FLOAT): Define.
17224 * config/mips/sdemtk.opt: Delete.
17225
17226 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
17227
17228 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
17229
17230 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
17231
17232 PR target/43733
17233 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
17234 * configure: Regenerate.
17235 * config.in: Regenerate.
17236 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
17237 instead of sahf only for 64bit targets.
17238
17239 2010-05-20 Jakub Jelinek <jakub@redhat.com>
17240
17241 PR debug/44178
17242 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
17243 setup_ref_regs for DEBUG_INSNs.
17244
17245 2010-05-20 Jan Hubicka <jh@suse.cz>
17246
17247 PR middle-end/44197
17248 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
17249
17250 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
17251
17252 PR bootstrap/43870
17253 * df-scan.c (df_ref_compare): Stabilize sort.
17254
17255 2010-05-20 Jakub Jelinek <jakub@redhat.com>
17256
17257 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
17258 argument. Don't use DW_OP_piece if offset is non-zero,
17259 put offset into second DW_OP_bit_piece argument.
17260 (dw_sra_loc_expr): Adjust callers. For memory expressions
17261 compute offset.
17262
17263 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
17264
17265 PR target/44202
17266 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
17267 settings for 16-bit-constant "addo" alternative.
17268
17269 2010-05-19 James E. Wilson <wilson@codesourcery.com>
17270
17271 * config/mips/mips-dsp.md (add<DSPV:mode>3,
17272 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
17273
17274 PR target/43764
17275 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
17276 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
17277 Use it.
17278
17279 2010-05-19 Joseph Myers <joseph@codesourcery.com>
17280
17281 * diagnostic.c (FLOAT, FFS): Don't undefine.
17282 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
17283 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
17284 include ordering.
17285
17286 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
17287
17288 * combine.c (propagate_for_debug): Call make_compound_operation
17289 on the source value.
17290 (try_combine): When implementing a split chosen by find_split_point,
17291 either copy i2src or set it to null. Assert that i2src is not null
17292 before substituting into CALL_INSN_FUNCTION_USAGE.
17293
17294 2010-05-19 Anatoly Sokolov <aesok@post.ru>
17295
17296 * double-int.h (double_int_ior): New function.
17297 * tree.h (build_int_cst_wide_type): Remove.
17298 * tree.c (build_int_cst_wide_type): Remove.
17299 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
17300 of build_int_cst_wide_type.
17301 * stor-layout.c (set_sizetype): (Ditto.).
17302 * dojump.c (do_jump): Use build_int_cstu instead of
17303 build_int_cst_wide_type.
17304
17305 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
17306
17307 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
17308 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
17309 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
17310 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
17311 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
17312 propagate the 'data' argument to copy_tree_r.
17313 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
17314 Propagate 'data' argument to walk_tree.
17315 (copy_if_shared): New function.
17316 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
17317 (unmark_visited): New function.
17318 (unshare_body): Call copy_if_shared instead of doing it manually.
17319 (unvisit_body): Call unmark_visited instead of doing it manually.
17320
17321 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
17322
17323 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
17324 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
17325 * hooks.c: Likewise.
17326 * target-def.h (TARGET_FOLD_BUILTIN): Define to
17327 hook_tree_tree_int_treep_bool_null.
17328 * target.h (struct gcc_target): Update signature of fold_builtin
17329 field.
17330 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
17331 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
17332 instead of the call expression.
17333 (fold_builtin_call_array): Pass n and argarray directly.
17334 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
17335 consing a list.
17336 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
17337 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
17338 `i' and use it in place of `arity'.
17339 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
17340 Dereference `args' directly.
17341 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
17342
17343 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17344
17345 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17346 3dnow, sse3, sse2.
17347 (Directives): Document optional dg-require-effective-target
17348 selector.
17349
17350 2010-05-19 Richard Guenther <rguenther@suse.de>
17351
17352 PR lto/44196
17353 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
17354
17355 2010-05-19 Richard Guenther <rguenther@suse.de>
17356
17357 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
17358 * common.opt (fwhopr=): New.
17359 * opts.c (common_handle_option): Handle OPT_fwhopr.
17360 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
17361 * collect2.c (main): Match -fwhopr*.
17362 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
17363 Execute ltrans stage in parallel when jobs is bigger than 1.
17364
17365 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17366
17367 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
17368 pentiumpro on Solaris 8/x86 with Sun as.
17369 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
17370 hidden alias bug.
17371 (gcc_cv_as_ix86_quad): Check for .quad directive.
17372 * configure: Regenerate.
17373 * config.in: Regenerate.
17374 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
17375
17376 2010-05-19 Martin Jambor <mjambor@suse.cz>
17377
17378 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
17379 also for indirect edges. Actual printing moved...
17380 (ipa_print_node_jump_functions_for_edge): ...here.
17381 (ipa_compute_jump_functions): Renamed to
17382 ipa_compute_jump_functions_for_edge and made static.
17383 (ipa_compute_jump_functions): New function.
17384 (make_edge_direct_to_target): Check if the number of arguments on
17385 the newly direct edge is the same as the number of parametrs of
17386 the callee.
17387 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
17388 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
17389 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
17390 analysis functions unconditionally, call the new
17391 ipa_analyze_params_uses on the node instead of every edge.
17392
17393 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
17394
17395 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
17396 to tree.
17397 (dump_mem_ref): Adopt debug code to handle a tree as step. This
17398 also checks for a constant int vs. non-constant but
17399 loop-invariant steps.
17400 (find_or_create_group): Change the sort algorithm to only consider
17401 steps that are constant ints.
17402 (idx_analyze_ref): Adopt code to handle a tree instead of a
17403 HOST_WIDE_INT for step.
17404 (gather_memory_references_ref): Handle tree instead of int and be
17405 prepared to see a NULL_TREE.
17406 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
17407 prefetches if the step cannot be calculated at compile time.
17408 (issue_prefetch_ref): Issue prefetches for non-constant but
17409 loop-invariant steps.
17410
17411 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
17412
17413 Revert:
17414 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
17415
17416 * tree.h (build_call_list): Remove.
17417 * tree.c (build_call_list): Remove.
17418
17419 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
17420
17421 * tree.h (build_call_list): Remove.
17422 * tree.c (build_call_list): Remove.
17423
17424 2010-05-18 Jan Hubicka <jh@suse.cz>
17425
17426 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
17427
17428 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
17429
17430 PR rtl-optimization/43332
17431 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
17432
17433 2010-05-18 Anatoly Sokolov <aesok@post.ru>
17434
17435 * tree.h (build_int_cstu): Implement as static inline.
17436 * tree.c (build_int_cstu): Remove function.
17437 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
17438 sign extended.
17439
17440 2010-05-18 Richard Guenther <rguenther@suse.de>
17441
17442 PR lto/44143
17443 * lto-wrapper.c (verbose): New variable. Initialize from -v.
17444 (debug): Initialize from -save-temps.
17445 (collect_execute): Print command-line when verbose.
17446 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
17447 for ltrans invocation. Produce -dumpbase flag again.
17448 (process_args): Remove.
17449 (main): Simplify.
17450 * collect2.c (maybe_run_lto_and_relink): Only pass object
17451 files to lto-wrapper.
17452 * gcc.c (LINK_COMMAND_SPEC): Likewise.
17453
17454 2010-05-18 Jan Hubicka <jh@suse.cz>
17455
17456 * opts.c (decode_options): Do not disable whopr at ipa_cp.
17457 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
17458
17459 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
17460
17461 PR lto/44184
17462 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
17463 in a GIMPLE_ASM.
17464 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
17465 in a GIMPLE_ASM.
17466
17467 2010-05-18 Jakub Jelinek <jakub@redhat.com>
17468
17469 PR debug/41371
17470 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
17471 rtx_equal_p inline.
17472
17473 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
17474
17475 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
17476 lto-macho as lto_binary_reader.
17477
17478 * darwin.c (darwin_asm_named_section): Do not add assembler comment
17479 after .section directive; just print it before the directive instead.
17480
17481 2010-05-17 Jan Hubicka <jh@suse.cz>
17482
17483 * cgraph.c (cgraph_create_virtual_clone): Only check
17484 versionable_function_p when not in wpa and checking is enabled.
17485 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
17486 there are no more functions to materialize.
17487
17488 2010-05-17 Jan Hubicka <jh@suse.cz>
17489
17490 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
17491 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
17492 New functions.
17493 (output_cgraph): Call output_cgraph_opt_summary.
17494 (input_cgrpah): Call input_cgraph_opt_summary.
17495 (output_cgraph_opt_summary_p, output_node_opt_summary,
17496 input_node_opt_summary, input_cgraph_opt_section): New functions.
17497 * lto-section-in.c (lto_section_name): Add cgraphopt.
17498 * tree-inline.c (tree_function_versioning): Handle parm_num.
17499 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
17500 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
17501
17502 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
17503
17504 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
17505 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
17506 the insn to prefetch ratio heuristic to loops with known trip count.
17507
17508 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
17509
17510 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
17511 (schedule_prefetches): Do not generate a prefetch if the unroll factor
17512 is far from what is required by the prefetch.
17513
17514 2010-05-17 Jan Hubicka <jh@suse.cz>
17515
17516 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
17517 (ipcp_estimate_growth): Likewise.
17518 (ipcp_const_param_count): Likewise.
17519 (ipcp_insert_stage): Likewise.
17520 * ipa-prop.c (visit_load_for_mod_analysis): New function.
17521 (visit_store_addr_for_mod_analysis): Set used flag.
17522 (ipa_detect_param_modifications): Set used flag for SSE params;
17523 update use of walk_stmt_load_store_addr_ops.
17524 (ipa_print_node_params): Print used flag.
17525 (ipa_write_node_info): Stream used flag.
17526 (ipa_read_node_info): Likewise.
17527 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
17528 (ipa_is_param_used): New function.
17529 (lto_ipa_fixup_call_notes): Remove unused declaration.
17530
17531 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17532
17533 PR target/44074
17534 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
17535 * configure: Regenerate.
17536 * config.in: Regenerate.
17537 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
17538 !HAVE_AS_IX86_REP_LOCK_PREFIX.
17539 Don't emit whitespace.
17540 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
17541 (*rep_movsi): Likewise.
17542 (*rep_movsi_rex64): Likewise.
17543 (*rep_movqi): Likewise.
17544 (*rep_movqi_rex64): Likewise.
17545 (*rep_stosdi_rex64): Likewise.
17546 (*rep_stossi): Likewise.
17547 (*rep_stossi_rex64): Likewise.
17548 (*rep_stosqi): Likewise.
17549 (*rep_stosqi_rex64): Likewise.
17550 (*cmpstrnqi_nz_1): Use {%;} after repz.
17551 (*cmpstrnqi_nz_rex_1): Likewise.
17552 (*cmpstrnqi_1): Likewise.
17553 (*cmpstrnqi_rex_1): Likewise.
17554 (*strlenqi_1): Use {%;} after repnz.
17555 (*strlenqi_rex_1): Likewise.
17556 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
17557 (*sync_compare_and_swap<mode>): Likewise.
17558 (sync_double_compare_and_swap<mode>): Likewise.
17559 (*sync_double_compare_and_swapdi_pic): Likewise.
17560 (sync_old_add<mode>): Likewise.
17561 (sync_add<mode>): Likewise.
17562 (sync_sub<mode>): Likewise.
17563 (sync_<code><mode>): Likewise.
17564
17565 2010-05-17 Martin Jambor <mjambor@suse.cz>
17566
17567 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
17568 otr_token and polymorphic.
17569 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
17570 (cgraph_clone_edge): Copy the above fields.
17571 * tree.c (get_binfo_at_offset): New function.
17572 * tree.h (get_binfo_at_offset): Declare.
17573 * ipa-prop.h (enum jump_func_type): Added known_type jump function
17574 type, reordered items, updated comments.
17575 (union jump_func_value): Added base_type field, reordered fields.
17576 (enum ipa_lattice_type): Moved down in the file.
17577 (struct ipa_param_descriptor): New field polymorphic.
17578 (ipa_is_param_polymorphic): New function.
17579 * ipa-prop.c: Include gimple.h and gimple-fold.h.
17580 (ipa_print_node_jump_functions): Print known type jump functions.
17581 (compute_complex_pass_through): Renamed to...
17582 (compute_complex_assign_jump_func): this.
17583 (compute_complex_ancestor_jump_func): New function.
17584 (compute_known_type_jump_func): Likewise.
17585 (compute_scalar_jump_functions): Create known type and complex ancestor
17586 jump functions.
17587 (ipa_note_param_call): New parameter polymorphic, set the corresponding
17588 flag in the call note accordingly.
17589 (ipa_analyze_call_uses): Renamed to...
17590 (ipa_analyze_indirect_call_uses): this. New parameter target, define
17591 variable var only in the block where it is used.
17592 (ipa_analyze_virtual_call_uses): New function.
17593 (ipa_analyze_call_uses): Likewise.
17594 (combine_known_type_and_ancestor_jfs): Likewise.
17595 (update_jump_functions_after_inlining): Implemented handling of a
17596 number of new jump function types combination.
17597 (print_edge_addition_message): Removed.
17598 (make_edge_direct_to_target): New function.
17599 (try_make_edge_direct_simple_call): Likewise.
17600 (try_make_edge_direct_virtual_call): Likewise.
17601 (update_call_notes_after_inlining): Renamed to...
17602 (update_indirect_edges_after_inlining): this. Moved edge creation for
17603 indirect calls to try_make_edge_direct_simple_call, also calls
17604 try_make_edge_direct_virtual_call for virtual calls.
17605 (ipa_print_node_params): Changed the header message.
17606 (ipa_write_jump_function): Stream also known type jump functions.
17607 (ipa_read_jump_function): Likewise.
17608 (ipa_write_indirect_edge_info): Stream new fields in
17609 cgraph_indirect_call_info.
17610 (ipa_read_indirect_edge_info): Likewise.
17611 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
17612 GIMPLE_FOLD_H.
17613
17614 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17615
17616 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
17617
17618 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
17619
17620 * tree.h (CALL_EXPR_ARGS): Delete.
17621 (call_expr_arglist): Delete.
17622 * tree.c (call_expr_arglist): Delete.
17623 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
17624 targetm.fold_builtin.
17625 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
17626 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
17627 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
17628 arglist parameter. Use CALL_EXPR_ARG.
17629 (picochip_expand_builtin_3op): Likewise.
17630 (picochip_expand_builtin_2opvoid): Likewise.
17631 (picochip_expand_array_get): Likewise.
17632 (picochip_expand_array_put): Likewise.
17633 (picochip_expand_array_testport): Likewise.
17634 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
17635 rather than arglist.
17636 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
17637 CALL_EXPR_ARGS.
17638 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
17639 than TREE_VALUE and TREE_CHAIN.
17640 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17641 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
17642 the arglist.
17643
17644 2010-05-17 Jakub Jelinek <jakub@redhat.com>
17645
17646 PR bootstrap/42347
17647 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
17648 to have no fallthru edge.
17649
17650 PR middle-end/44102
17651 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
17652 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
17653 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
17654 add BARRIER after previous bb if needed.
17655
17656 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
17657
17658 * tree.c (build_function_type_list_1): Remove bogus assert condition.
17659
17660 2010-05-17 Alan Modra <amodra@gmail.com>
17661
17662 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
17663 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
17664 with copy_reg rtx param.
17665 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
17666 Correct cases where code for ABI_V4 did not initialise the reg
17667 used to access frame. Also leave frame_reg_rtx as sp for large
17668 frames that save no regs.
17669
17670 2010-05-17 Martin Jambor <mjambor@suse.cz>
17671
17672 PR middle-end/44133
17673 * tree-sra.c (create_access_replacement): New parameter rename, mark
17674 the replaement for renaming only when it is true.
17675 (get_access_replacement): Pass true in the rename parameter of
17676 create_access_replacement.
17677 (get_unrenamed_access_replacement): New function.
17678 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
17679 replacement declaration from it.
17680
17681 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
17682
17683 * function.c (try_fit_stack_local, add_frame_space): New static
17684 functions.
17685 (assign_stack_local_1): Use them. Look for opportunities to use
17686 space previously wasted on alignment.
17687 * function.h (struct frame_space): New.
17688 (struct rtl_data): Add FRAME_SPACE_LIST member.
17689 * reload1.c (something_was_spilled): New static variable.
17690 (alter_reg): Set it.
17691 (reload): Test it in addition to testing if the frame size changed.
17692
17693 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
17694
17695 * config/s390/s390.c: Define sane prefetch settings and activate
17696 flag_prefetch_loop_arrays on -O3.
17697 * config/s390/s390.h: Declare that read can use write prefetch.
17698
17699 2010-05-17 Jakub Jelinek <jakub@redhat.com>
17700
17701 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
17702 build.
17703
17704 2010-05-16 Jan Hubicka <jh@suse.cz>
17705
17706 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
17707 function body; do not check stdarg field of struct function.
17708
17709 2010-05-16 Jan Hubicka <jh@suse.cz>
17710
17711 * cgraph.c (dump_cgraph_node): Dump versionable flag.
17712 * cgraph.h (cgraph_local_info): Add versionable flag.
17713 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
17714 (ipcp_versionable_function_p): Use it.
17715 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17716 versionable flag.
17717
17718 2010-05-16 Jan Hubicka <jh@suse.cz>
17719
17720 * cgraph.c (cgraph_clone_node): Take decl argument and insert
17721 clone into hash when it is different from orig.
17722 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
17723 * cgraph.h (cgraph_clone_node): Update prototype.
17724 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
17725 (lto_cgraph_encoder_delete): Delete body map.
17726 (lto_cgraph_encoder_size): Move to header.
17727 (lto_cgraph_encoder_encode_body_p,
17728 lto_set_cgraph_encoder_encode_body): New.
17729 (lto_output_node): Do not take written_decls argument; output clone_of
17730 pointer.
17731 (add_node_to): Add include_body_argument; call
17732 lto_set_cgraph_encoder_encode_body on master of the clone.
17733 (add_references): Update use of add_node_to.
17734 (compute_ltrans_boundary): Likewise.
17735 (output_cgraph): Do not create written_decls bitmap.
17736 (input_node): Take nodes argument; stream in clone_of correctly.
17737 (input_cgraph_1): Update use of input_node.
17738 * lto-streamer-out.c (lto_output): Use encoder info to decide
17739 what bodies to output.
17740 * ipa-inline.c (cgraph_clone_inlined_nodes,
17741 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
17742 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
17743 (lto_cgraph_encoder_size): Define here.
17744 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
17745 Declare.
17746
17747 2010-05-16 Richard Guenther <rguenther@suse.de>
17748
17749 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
17750 -fipa-type-escape.
17751 * ipa-type-escape.c (gate_type_escape_vars): Run when
17752 -fipa-struct-reorg runs.
17753 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
17754 * common.opt (fipa-type-escape): Remove.
17755
17756 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
17757
17758 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
17759 (decode_options): Likewise.
17760 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
17761
17762 2010-05-16 Jan Hubicka <jh@suse.cz>
17763
17764 * ipa.c (function_and_variable_visibility): Also bring local all
17765 aliases.
17766
17767 2010-05-16 Richard Guenther <rguenther@suse.de>
17768
17769 * alias.c (nonoverlapping_memrefs_p): Remove use of
17770 IPA type-escape information.
17771
17772 2010-05-16 Joseph Myers <joseph@codesourcery.com>
17773
17774 * c-common.c (c_common_reswords): Add _Static_assert for C.
17775 * c-parser.c (c_token_starts_declaration,
17776 c_parser_next_token_starts_declaration,
17777 c_parser_static_assert_declaration_no_semi,
17778 c_parser_static_assert_declaration): New.
17779 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
17780 Handle static assertions if static_assert_ok.
17781 (c_parser_external_declaration, c_parser_declaration_or_fndef,
17782 c_parser_compound_statement_nostart, c_parser_label,
17783 c_parser_for_statement, c_parser_objc_methodprotolist,
17784 c_parser_omp_for_loop): All callers of
17785 c_parser_declaration_or_fndef changed.
17786 (c_parser_struct_declaration): Handle static assertions.
17787 (c_parser_compound_statement_nostart): Use
17788 c_parser_next_token_starts_declaration and
17789 c_token_starts_declaration to detect start of declarations.
17790 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
17791 Likewise.
17792
17793 2010-05-16 Anatoly Sokolov <aesok@post.ru>
17794
17795 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17796 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17797 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17798 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17799 (mmix_function_outgoing_value): Rename to...
17800 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
17801 (mmix_function_value_regno_p): Make static.
17802 (mmix_libcall_value): New function.
17803 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
17804 mmix_function_value_regno_p): Remove declaration.
17805
17806 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
17807
17808 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
17809 BUILT_IN_ALLOCA if stack checking is enabled.
17810
17811 2010-05-16 Richard Guenther <rguenther@suse.de>
17812
17813 * var-tracking.c (vars_copy_1): Inline ...
17814 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
17815 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
17816 (variable_merge_over_cur): Adjust. Merge asserts.
17817 (variable_merge_over_src): Likewise.
17818 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
17819 (variable_post_merge_new_vals): Merge asserts.
17820 (variable_post_merge_perm_vals): Likewise.
17821 (find_mem_expr_in_1pdv): Likewise.
17822 (dataflow_set_different_value): Remove.
17823 (onepart_variable_different_p): Merge asserts.
17824 (variable_different_p): Likewise.
17825 (dataflow_set_different_1): Inline ...
17826 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
17827 (emit_notes_for_differences_1): Merge asserts.
17828
17829 2010-05-16 Richard Guenther <rguenther@suse.de>
17830
17831 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
17832 * optabs.c (libfunc_decl_hash): Likewise.
17833 * varasm.c (emutls_decl): Likewise.
17834
17835 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
17836
17837 * c-decl.c: Don't include gimple.h.
17838 (merge_decls): Do not copy gimple_body.
17839
17840 2010-05-15 Jason Merrill <jason@redhat.com>
17841
17842 * c.opt: Add -fnothrow-opt.
17843
17844 2010-05-15 Jan Hubicka <jh@suse.cz>
17845
17846 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
17847 analyzed.
17848 * passes.c (ipa_write_summaries): Write all analyzed nodes.
17849
17850 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
17851
17852 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
17853 * Makefile.in: Add it.
17854 Fix all other Makefile dependencies for changes below.
17855 * tree.h: Include it instead of defining VEC primitives here.
17856 * gimple.h: Likewise.
17857 * rtl.h: Likewise.
17858 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
17859 * except.h: Include vecir.h, break dependence on tree.h.
17860
17861 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
17862 Move from here...
17863 * tree-iterator.c: ...to here.
17864 * tree-iterator.h: Fix file introduction comment. Add extern markers.
17865
17866 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
17867 tm_p.h.
17868 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
17869 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
17870 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
17871 tree-mudflap.h, and target.h.
17872 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
17873 predict.h, tree-inline.h, gimple.h, and langhooks.h.
17874 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
17875 Add FIXME for why gimple.h is still included (should be unnecessary
17876 since GCC 4.5 gimplification unit-at-a-time).
17877 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
17878 * c-pragma.c: Add FIXME for why function.h needs to be included just
17879 for cfun, at front-end level.
17880 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
17881 Do not include ggc.h, but include vecprim.h for VEC(char).
17882 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
17883 Explain why target.h is included.
17884 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
17885 Explain why gimple.h is included.
17886 * c-ppoutput.c: Do not include tm.h.
17887 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
17888 * c-parses.c: Explain why rtl.h is included, and that this (and only
17889 this) is also why tm.h must be included.
17890 Do not include except.h.
17891 * c-lang.c: Do not include ggc.h.
17892
17893 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
17894
17895 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
17896
17897 2010-05-15 Joseph Myers <joseph@codesourcery.com>
17898
17899 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
17900 unions by default if those structs and unions have no tags. Do
17901 not condition anonymous struct and unions handling on flag_iso.
17902 Allow anonymous structs and unions for C1X.
17903 (finish_struct): Do not diagnose lack of named fields when
17904 anonymous structs and unions present for C1X. Accept flexible
17905 array members in structure with anonymous structs or unions but no
17906 directly named fields.
17907 * doc/extend.texi (Unnamed Fields): Update.
17908
17909 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
17910
17911 * gimple.h (compare_field_offset): Rename into...
17912 (gimple_compare_field_offset): ...this.
17913 * gimple.c (compare_field_offset): Rename into...
17914 (gimple_compare_field_offset): ...this. Compare the full access if
17915 the offset is self-referential.
17916 (gimple_types_compatible_p): Adjust for above renaming.
17917 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
17918 DECL_NONADDRESSABLE_P flag of fields before merging them.
17919
17920 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
17921
17922 * tree.h (ctor_to_list): Delete.
17923 * tree.c (ctor_to_list): Delete.
17924
17925 2010-05-15 Jan Hubicka <jh@suse.cz>
17926
17927 * ipa-reference.c: Include toplev.h
17928 (is_proper_for_analysis): Only add to all_module_statics
17929 if it is allocated.
17930 (write_node_summary_p, stream_out_bitmap,
17931 ipa_reference_write_optimization_summary,
17932 ipa_reference_read_optimization_summary): New.
17933 (struct ipa_opt_pass_d pass_ipa_reference): Add
17934 optimization summary streaming.
17935 * lto-cgraph.c (referenced_from_this_partition_p,
17936 reachable_from_this_partition_p): New functions.
17937 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
17938 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
17939 * opts.c (decode_options): Enable ipa_reference.
17940 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
17941 * lto-streamer.h (referenced_from_this_partition_p,
17942 reachable_from_this_partition_p): Declare.
17943
17944 2010-05-15 Richard Guenther <rguenther@suse.de>
17945
17946 PR tree-optimization/44038
17947 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
17948 taking the address of a V_C_E of a constant.
17949
17950 2010-05-14 Jan Hubicka <jh@suse.cz>
17951
17952 * tree.h (memory_identifier_string): Remove.
17953 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
17954 (ipa_reference_global_vars_info_d): Remove statics_not_read and
17955 statics_not_written.
17956 (ipa_reference_optimization_summary_d): New structure.
17957 (ipa_reference_optimization_summary_t): New type and vector.
17958 (ipa_reference_vars_info_d): Embedd structures instead of using
17959 pointers.
17960 (reference_vars_to_consider): Remove out of GGC space.
17961 (module_statics_escape): Remove.
17962 (global_info_obstack): Rename to ...
17963 (optimization_summary_obstack): ... this one.
17964 (initialization_status_t): Remove.
17965 (memory_identifier_string): Remove.
17966 (get_reference_vars_info): Fix indenting.
17967 (set_reference_vars_info): Likewise.
17968 (get_reference_optimization_summary): New.
17969 (set_reference_optimization_summary): New.
17970 (get_global_reference_vars_info): Remove.
17971 (ipa_reference_get_read_global): Remove.
17972 (ipa_reference_get_written_global): Remove.
17973 (ipa_reference_get_not_read_global): Update.
17974 (ipa_reference_get_not_written_global): Update.
17975 (is_proper_for_analysis): Outlaw addressable.
17976 (propagate_bits): Update for new datastructures.
17977 (analyze_variable): Remove.
17978 (init_function_info): Update for new datastructures.
17979 (clean_function_local_data): Remove.
17980 (clean_function): Remove.
17981 (copy_global_bitmap): Use optimizations_summary_obstack.
17982 (duplicate_node_data): Duplicate optimization summary only.
17983 (remove_node_data): Remove optimization summary only.
17984 (generate_summary): Do not analyze variables; do not compute
17985 module_statics_escape; do not prune solutions by it.
17986 (read_write_all_from_decl): Fix typos in comments.
17987 (propagate): Doscover readonly and nonaddressable first;
17988 update for new datastructures; share global bitmaps.
17989 * ipa-reference.h (ipa_reference_get_read_global,
17990 ipa_reference_get_written_global): Remove.
17991 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
17992 * Makefile.in: Remove ipa-refereference from GT files.
17993
17994 2010-05-14 Jakub Jelinek <jakub@redhat.com>
17995
17996 PR debug/44112
17997 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
17998 for all SYMBOL_REF_DECLs.
17999
18000 2010-05-14 Jan Hubicka <jh@suse.cz>
18001
18002 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
18003 (varpool_all_refs_explicit_p): New inline function.
18004 * ipa-reference.c: Update comment.
18005 (module_statics_written): Remove.
18006 (get_static_decl): Remove.
18007 (ipa_init): Do not initialize module_statics_written.
18008 (analyze_function): Likewise.
18009 (generate_summary): Likewise; do not compute module_statics_readonly
18010 and do not update variable flags.
18011 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
18012 * ipa.c: Inlucde flags.h
18013 (cgraph_local_node_p): New.
18014 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
18015 promote functions to local.
18016 (ipa_discover_readonly_nonaddressable_vars): New function.
18017 (function_and_variable_visibility): Use cgraph_local_node_p.
18018 * varpool.c (varpool_finalize_decl): Set force_output for
18019 DECL_PRESERVE_P vars.
18020
18021 2010-05-14 Jan Hubicka <jh@suse.cz>
18022
18023 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
18024
18025 2010-05-14 Richard Guenther <rguenther@suse.de>
18026
18027 PR tree-optimization/44119
18028 * tree-ssa-pre.c (eliminate): Properly mark replacement of
18029 a PHI node necessary.
18030
18031 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
18032
18033 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
18034
18035 2010-05-14 Jason Merrill <jason@redhat.com>
18036
18037 PR c++/44127
18038 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
18039 (gimple_call_set_nothrow): New.
18040 * gimple.c (gimple_build_call_from_tree): Call it.
18041 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
18042
18043 PR c++/44127
18044 * gimplify.c (gimplify_seq_add_stmt): No longer static.
18045 * gimple.h: Declare it.
18046 * gimple.c (gimple_build_eh_filter): No ops.
18047
18048 2010-05-14 Jan Hubicka <jh@suse.cz>
18049
18050 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
18051 nodes already in queue.
18052 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
18053 re-enqueueing node.
18054
18055 2010-05-14 Jakub Jelinek <jakub@redhat.com>
18056
18057 PR debug/44136
18058 * cfgexpand.c (expand_debug_expr): If non-memory op0
18059 has BLKmode, return NULL.
18060
18061 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
18062
18063 * config.gcc: Add support for --with-cpu option for bdver1.
18064 * config/i386/i386.h (TARGET_BDVER1): New macro.
18065 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
18066 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
18067 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
18068 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
18069 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
18070 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
18071 (processor_type): Add PROCESSOR_BDVER1.
18072 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
18073 processor_type in config/i386/i386.h.
18074 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
18075 movaps <reg, reg> instead of movapd <reg, reg> when replacing
18076 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
18077 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
18078 to emit packed xor instead of packed double/packed integer
18079 xor for SSE and AVX when moving a zero value.
18080 * config/i386/sse.md: Add check for
18081 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
18082 movapd/movdqa for SSE and AVX.
18083 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
18084 single logical operations i.e and, or and xor instead of packed double
18085 logical operations for SSE and AVX.
18086 * config/i386/i386-c.c (ix86_target_macros_internal):
18087 Add PROCESSOR_BDVER1.
18088 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
18089 (has_fma4, has_xop): New.
18090 * config/i386/i386.c (bdver1_cost): New variable.
18091 (m_BDVER1): New macro.
18092 (m_AMD_MULTIPLE): Add m_BDVER1.
18093 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
18094 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
18095 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
18096 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
18097 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
18098 x86_tune_sse_partial_reg_dependency,
18099 x86_tune_sse_unaligned_load_optimal,
18100 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
18101 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
18102 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
18103 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
18104 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
18105 Enable/disable for bdver1.
18106 (processor_target_table): Add bdver1_cost.
18107 (cpu_names): Add bdver1.
18108 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
18109 processor_alias_table.
18110 (ix86_expand_vector_move_misalign): Change.
18111 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
18112 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
18113 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
18114 of movupd/movdqu for SSE and AVX.
18115 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
18116 (ix86_tune_adjust_cost): Add code for bdver1.
18117 (standard_sse_constant_opcode): Add check for
18118 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
18119 of packed double xor for SSE and AVX.
18120
18121 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
18122
18123 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
18124 result to unsigned.
18125
18126 2010-05-14 Tristan Gingold <gingold@adacore.com>
18127
18128 * toplev.c (default_debug_hooks): Remove this variable.
18129 (process_options): Remove assignments to default_debug_hooks.
18130
18131 2010-05-14 Martin Jambor <mjambor@suse.cz>
18132
18133 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
18134 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
18135 * langhooks.h (struct lang_hooks_for_decls): Removed field
18136 fold_obj_type_ref.
18137 * tree.c (free_lang_data): Remove assignment to
18138 lang_hooks.fold_obj_type_ref.
18139 * tree.def (OBJ_TYPE_REF): Update comment.
18140
18141 2010-05-14 Richard Guenther <rguenther@suse.de>
18142
18143 PR tree-optimization/44124
18144 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
18145
18146 2010-05-14 Alan Modra <amodra@gmail.com>
18147
18148 PR target/44075
18149 * config/rs6000/rs6000.c (struct machine_function): Reorder
18150 fields for better packing. Add lr_save_state.
18151 (rs6000_ra_ever_killed): Return lr_save_state if set.
18152 (rs6000_emit_eh_reg_restore): Set lr_save_state.
18153
18154 2010-05-13 Jan Hubicka <jh@suse.cz>
18155
18156 * varpool.c (decide_is_variable_needed): Drop code checking
18157 TREE_SYMBOL_REFERENCED.
18158
18159 2010-05-13 Jan Hubicka <jh@suse.cz>
18160
18161 * final.c (output_addr_const): Do not call mark_decl_referenced.
18162 * cgraphunit.c (process_function_and_variable_attributes): Use
18163 mark_needed_node dirrectly.
18164 (assemble_thunk): Do not call mark_decl_referenced.
18165
18166 2010-05-13 Anatoly Sokolov <aesok@post.ru>
18167
18168 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
18169
18170 2010-05-13 Jeff Law <law@redhat.com>
18171
18172 * ira-conflicts.c (print_allocno_conflicts): New function broken out
18173 from...
18174 (print_conflicts): Call print_allocno_conflicts.
18175
18176 2010-05-13 Jakub Jelinek <jakub@redhat.com>
18177
18178 PR debug/44104
18179 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
18180 if it is NULL.
18181
18182 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
18183
18184 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
18185 t-mingw-w64 or t-mingw-w32 for multilib configuration.
18186 * config/i386/t-mingw-w32: New.
18187 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
18188
18189 2010-05-13 Martin Jambor <mjambor@suse.cz>
18190
18191 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
18192 gimple-fold.c).
18193 * gimple-fold.c (get_base_binfo_for_type): New function.
18194 (gimple_get_relevant_ref_binfo): Likewise.
18195 (gimple_fold_obj_type_ref_known_binfo): Likewise.
18196 (gimple_fold_obj_type_ref): Likewise.
18197 (fold_gimple_call): Simplify condition for folding virtual calls
18198 and call gimple_fold_obj_type_ref.
18199 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
18200 (gimple_fold_obj_type_ref_known_binfo): Likewise.
18201
18202 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
18203
18204 * config/rs6000/rs6000-protos.h
18205 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
18206 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
18207 (rs6000_debug_mode_dependent_address)
18208 (rs6000_mode_dependent_address_ptr): Likewise.
18209
18210 2010-05-13 Jakub Jelinek <jakub@redhat.com>
18211
18212 PR debug/43983
18213 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
18214 by SRA.
18215 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
18216 * tree-sra.c (create_access_replacement): Call unshare_expr before
18217 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
18218 * dwarf2out.c: Include tree-flow.h.
18219 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
18220 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
18221 Handle DW_OP_bit_piece.
18222 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
18223 construct_piece_list, adjust_piece_list): New functions.
18224 (add_var_loc_to_decl): Handle SRA optimized variables.
18225 Adjust for var_loc_note to loc field renaming.
18226 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
18227 in VAR_LOCATION note.
18228 (new_loc_descr_op_bit_piece): New function.
18229 (dw_sra_loc_expr): New function.
18230 (dw_loc_list): Use it. Don't handle the last range after the
18231 loop, handle it inside of the loop. Adjust for var_loc_note
18232 to loc field renaming.
18233 (add_location_or_const_value_attribute): Only special case
18234 single entry loc lists if loc is NOTE_P. Adjust for
18235 var_loc_note to loc field renaming.
18236 (dwarf2out_var_location): Don't set newloc->var_loc_note
18237 and newloc->next here.
18238
18239 2010-05-12 Jan Hubicka <jh@suse.cz>
18240
18241 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
18242 flag.
18243 * cgraph.h (cgraph_only_called_directly_p,
18244 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
18245 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
18246 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
18247 (assemble
18248 * ipa.c (cgraph_remove_unreachable_nodes): Use
18249 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
18250 flags.
18251 * tree-inline.c (copy_bb): Check address_taken flag.
18252 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
18253 externally_visible flag.
18254
18255 2010-05-12 Jason Merrill <jason@redhat.com>
18256
18257 PR bootstrap/44048
18258 PR target/44099
18259 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
18260 * sdbout.c (plain_type_1): Likewise.
18261 * dwarf2out.c (is_base_type): Likewise.
18262 (gen_type_die_with_usage): Likewise. Generate
18263 DW_TAG_unspecified_type for any LANG_TYPE.
18264
18265 2010-05-12 Jan Hubicka <jh@suse.cz>
18266
18267 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
18268 indrect edges too.
18269 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
18270 (cgraph_clone_edge): Update.
18271 (cgraph_node_remove_callees): Remove indirect calls too.
18272 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
18273 (cgraph_create_indirect_edge): Update prototype.
18274 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
18275 is_proper_for_analysis.
18276 (add_new_function, visited_nodes, function_insertion_hook_holder,
18277 get_local_reference_vars_info, mark_address_taken, mark_address,
18278 mark_load, mark_store, check_asm_memory_clobber, check_call,
18279 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
18280 (ipa_init): Do not initialize visited_nodes;
18281 function_insertion_hook_holder.
18282 (analyze_variable): Rewrite.
18283 (analyze_function): Rewrite.
18284 (copy_local_bitmap): Remove.
18285 (duplicate_node_dat): Do not duplicate local info.
18286 (generate_summary): Simplify to only walk cgraph.
18287 (write_node_summary_p, ipa_reference_write_summary,
18288 ipa_reference_read_summary): Remove.
18289 (propagate): Do not remove function insertion;
18290 generate summary.
18291 (pass_ipa_reference): NULLify summary handling fields.
18292 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
18293 (input_edge): Input ecf_flags.
18294 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
18295 (update_indirect_edges_after_inlining): Ignore edges with unknown
18296 param.
18297
18298 2010-05-12 Sriraman Tallam <tmsriram@google.com>
18299
18300 * implicit-zee.c: New file.
18301 * tree-pass.h (pass_implicit_zee): Declare.
18302 * passes.c (init_optimization_passes): Add zee pass.
18303 * common.opt (fzee): New flag.
18304 * timevar.def (TV_ZEE): Define.
18305 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
18306 and beyond.
18307 * Makefile.in (implicit-zee.o): Add new build file.
18308
18309 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
18310 Nathan Froyd <froydnj@codesourcery.com>
18311
18312 * c-common.c (sync_resolve_params): Remove write-only variable.
18313
18314 2010-05-12 Anatoly Sokolov <aesok@post.ru>
18315
18316 * target.h (struct gcc_target): Add mode_dependent_address_p field.
18317 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
18318 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
18319 * targhooks.c (default_mode_dependent_address_p): New function.
18320 * targhooks.h (default_mode_dependent_address_p): Declare function.
18321 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
18322 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
18323 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
18324 target hook. Change return type to bool.
18325 * recog.h (mode_dependent_address_p): Change return type to bool.
18326
18327 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
18328 Nathan Froyd <froydnj@codesourcery.com>
18329
18330 * tree-mudflap.c (build_function_type_0, build_function_type_1,
18331 build_function_type_2, build_function_type_3): Remove.
18332 (mudflap_init): Use build_function_type_list.
18333
18334 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
18335 Nathan Froyd <froydnj@codesourcery.com>
18336
18337 * coverage.c (build_fn_info_value): Call build_constructor instead of
18338 build_constructor_from_list.
18339 (build_ctr_info_value): Likewise.
18340 (build_gcov_info): Likewise.
18341
18342 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
18343
18344 * tree.c (build_constructor): Compute TREE_CONSTANT for the
18345 resultant constructor.
18346 (build_constructor_single): Don't set TREE_CONSTANT.
18347 (build_constructor_from_list): Don't compute TREE_CONSTANT.
18348
18349 2010-05-12 Jan Hubicka <jh@suse.cz>
18350
18351 * cgraph.h (struct varpool_node): Add aux.
18352 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
18353 * varpool.c (varpool_remove_node): Do not remove initializer.
18354 (varpool_reset_queue): Export.
18355 (varpool_finalize_decl): Volatile vars are forced to be output.
18356 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
18357 replaced decl.
18358 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
18359 process_references, varpool_can_remove_if_no_refs): New functions.
18360 (cgraph_remove_unreachable_nodes): Handle variables too.
18361
18362 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
18363
18364 PR target/44088
18365 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
18366
18367 2010-05-12 Jakub Jelinek <jakub@redhat.com>
18368
18369 PR middle-end/44085
18370 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
18371 change value of ORT_TASK.
18372 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
18373 (omp_notice_threadprivate_variable): New function.
18374 (omp_notice_variable): Call it for threadprivate variables.
18375 If enclosing ctx is a task, print enclosing task rather than
18376 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
18377 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
18378 if task has untied clause.
18379
18380 PR debug/42278
18381 * dwarf2out.c (base_type_die): Don't add name attribute here.
18382 (modified_type_die): Instead of sizetype use
18383 its underlying original type. If a DW_TAG_base_type doesn't
18384 have name added, add __unknown__.
18385 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
18386 always call force_type_die instead.
18387
18388 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18389
18390 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
18391 for __stack_chk_guard.
18392
18393 2010-05-11 Jakub Jelinek <jakub@redhat.com>
18394
18395 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
18396 don't call start_source_file debug hook here...
18397 (finish_options): ... but here, after outputting predefined and
18398 command line defines and undefs.
18399
18400 PR middle-end/44071
18401 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
18402 no fallthru edge.
18403 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
18404 optimizing away empty bb with no successors, move over its
18405 footer chain to fallthru predecessor.
18406 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
18407 (rtl_split_edge): For asm goto call patch_jump_insn even if
18408 splitting fallthru edge.
18409
18410 PR c++/44059
18411 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
18412 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
18413 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
18414 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
18415 on DW.ref.* decls.
18416
18417 PR c++/44062
18418 * c-parser.c (c_parser_expression): Mark LHS of a comma
18419 expression as read if it is a decl, handled component or
18420 COMPOUND_EXPR with that on the RHS.
18421 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
18422 if it is a decl or handled component.
18423
18424 2010-05-11 Jan Hubicka <jh@suse.cz>
18425
18426 * lto-symtab.c (lto_symtab_free): New function.
18427 * lto-streamer.h (lto_symtab_free): Declare.
18428
18429 2010-05-11 Jan Hubicka <jh@suse.cz>
18430
18431 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
18432 that if function is needed it is reachable.
18433 (lto_output_node): See if it the function is reachable or referenced.
18434 (output_cgraph): Update call of lto_output_node.
18435 * lto-streamer.h (reachable_from_other_partition_p): Declare.
18436
18437 2010-05-11 Jan Hubicka <jh@suse.cz>
18438
18439 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
18440 Mark as used.
18441
18442 2010-05-11 Jan Hubicka <jh@suse.cz>
18443
18444 PR tree-optimize/44063
18445 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
18446 queue.
18447 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
18448 limits.
18449 (estimate_function_body_sizes): Compute sizes even when disregarding.
18450
18451 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
18452
18453 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
18454
18455 2010-05-11 Jan Hubicka <jh@suse.cz>
18456
18457 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
18458 into every boundary.
18459
18460 2010-05-11 Jan Hubicka <jh@suse.cz>
18461
18462 * matrix-reorg.c (matrix_reorg): Rebuild edges.
18463
18464 2010-05-11 Jan Hubicka <jh@suse.cz>
18465
18466 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
18467 lto_streamer_cache_delete): Put nodes into heap.
18468 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
18469 heap.
18470
18471 2010-05-11 Jan Hubicka <jh@suse.cz>
18472
18473 * cgraphbuild.c (cgraph_rebuild_references): New.
18474 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
18475 out extern inlines.
18476 * cgraph.h (cgraph_rebuild_references): Declare.
18477 * tree-inline.c (tree_function_versioning): Use it.
18478 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
18479
18480 2010-05-11 Jan Hubicka <jh@suse.cz>
18481
18482 * cgraph.c: Include ipa-utils.h
18483 (cgraph_create_virtual_clone): Update references.
18484 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
18485
18486 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
18487
18488 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
18489 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
18490 cache size.
18491
18492 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
18493
18494 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
18495
18496 2010-05-11 Jakub Jelinek <jakub@redhat.com>
18497
18498 * gcc.c (execute): For -### don't quote arguments that
18499 contain just alphanumerics and _/-. characters.
18500 * doc/invoke.texi: Document that change for -###.
18501
18502 PR debug/44023
18503 * df-problems.c (struct dead_debug): Add to_rescan field.
18504 (dead_debug_init): Clear to_rescan field.
18505 (dead_debug_finish): Rescan all debug insns in to_rescan
18506 bitmap and free the bitmap.
18507 (dead_debug_insert_before): Instead of rescanning debug insns
18508 immediately queue their rescanning until dead_debug_finish.
18509 (df_note_bb_compute): After dead_debug_add do continue instead
18510 of break.
18511
18512 2010-05-10 Jakub Jelinek <jakub@redhat.com>
18513
18514 PR debug/44028
18515 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
18516 clear also INSN_REG_USE_LIST.
18517
18518 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18519
18520 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
18521
18522 2010-05-10 Jan Hubicka <jh@suse.cz>
18523
18524 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
18525 commited change.
18526
18527 2010-05-10 Jan Hubicka <jh@suse.cz>
18528
18529 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
18530 Allocate encoders.
18531 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
18532 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
18533 (lto_streamer_cache_create): Init alloc pool.
18534 (lto_streamer_cache_delete): Free alloc pool.
18535 * lto-streamer.h: Include alloc pool.
18536 (lto_streamer_cache_d): Use alloc pool.
18537 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
18538
18539 2010-05-10 Jan Hubicka <jh@suse.cz>
18540
18541 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
18542 * cgraphbuild.c: Include except.h
18543 (record_type_list, record_eh_tables): New function.
18544 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
18545
18546 2010-05-10 Jan Hubicka <jh@suse.cz>
18547
18548 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
18549 __frame_dummy_init_array_entry, force_to_data): Attribute as used
18550 rather than unused.
18551
18552 2010-05-10 Michael Matz <matz@suse.de>
18553
18554 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
18555 (can_reassociate_p): Use FLOAT_TYPE_P.
18556 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
18557 (vect_force_simple_reduction): ... this.
18558 * tree-parloops.c (gather_scalar_reductions): Use
18559 vect_force_simple_reduction.
18560 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
18561 vect_is_simple_reduction, add modify argument, if true rewrite
18562 "a-b" into "a+(-b)".
18563 (vect_is_simple_reduction, vect_force_simple_reduction): New
18564 functions.
18565 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
18566
18567 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
18568 Vladimir Makarov <vmakarov@redhat.com>
18569
18570 PR rtl-optimization/44012
18571 * ira-build.c (remove_unnecessary_allocnos): Nullify
18572 regno_allocno_map of the removed allocno.
18573
18574 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18575
18576 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
18577 to /dev/null.
18578 * configure: Regenerate.
18579
18580 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18581
18582 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
18583 unused.
18584 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
18585 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
18586 support in Sun ld.
18587 * configure: Regenerate.
18588
18589 2010-05-10 Richard Guenther <rguenther@suse.de>
18590
18591 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
18592 marked if the entry identifier is marked.
18593
18594 2010-05-10 Richard Guenther <rguenther@suse.de>
18595
18596 * c-common.c (struct c_common_attributes): Add fnspec attribute.
18597 (handle_fnspec_attribute): New function.
18598 * gimple.h (gimple_call_return_flags): Declare.
18599 (gimple_call_arg_flags): Likewise.
18600 * gimple.c (gimple_call_arg_flags): New function.
18601 (gimple_call_return_flags): Likewise.
18602 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
18603 New argument flags.
18604 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
18605 return value flags.
18606 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
18607 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
18608 main work to ...
18609 (make_heapvar_for): ... this new function.
18610 (handle_rhs_call): Handle fnspec attribute argument specifiers.
18611 (handle_lhs_call): Likewise.
18612 (find_func_aliases): Adjust.
18613
18614 2010-05-10 Richard Guenther <rguenther@suse.de>
18615
18616 PR tree-optimization/44050
18617 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
18618
18619 2010-05-10 Wei Guozhi <carrot@google.com>
18620
18621 PR target/42879
18622 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
18623
18624 2010-05-09 Joseph Myers <joseph@codesourcery.com>
18625
18626 PR c/10676
18627 * c-typeck.c (lookup_field): Take a type directly. Update
18628 recursive calls.
18629 (build_component_ref): Update call to lookup_field.
18630 (set_init_label): Use lookup_field to find initialized field.
18631 Handle returned list of fields like a sequence of designators.
18632
18633 2010-05-09 Richard Guenther <rguenther@suse.de>
18634
18635 PR middle-end/44024
18636 * fold-const.c (tree_single_nonzero_warnv_p): Properly
18637 handle &FUNCTION_DECL.
18638
18639 2010-05-09 Joseph Myers <joseph@codesourcery.com>
18640
18641 PR c/4784
18642 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
18643 structures and unions recursively.
18644 (detect_field_duplicates): Move duplicate detection with a hash to
18645 detect_field_duplicates_hash. Always use a hash if anonymous
18646 structures or unions are present.
18647 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
18648 give errors.
18649
18650 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
18651
18652 PR target/44046
18653 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
18654 detect Atom, Core 2 and Core i7.
18655
18656 2010-05-09 Richard Guenther <rguenther@suse.de>
18657
18658 * gcc.c (store_arg): Handle temporary file deletion for
18659 joined arguments.
18660
18661 2010-05-09 Richard Guenther <rguenther@suse.de>
18662
18663 PR middle-end/44043
18664 * ipa-inline.c (estimate_function_body_sizes): Return after
18665 disregarding inline limits.
18666
18667 2010-05-09 Richard Guenther <rguenther@suse.de>
18668
18669 * gcc.c (store_arg): Revert last change.
18670
18671 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
18672
18673 PR middle-end/28685
18674 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
18675 (optimize_ops_list): Call it.
18676
18677 2010-05-08 Richard Guenther <rguenther@suse.de>
18678
18679 PR tree-optimization/44030
18680 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
18681 NECESSARY flag if we propagate from a inserted expression.
18682
18683 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
18684
18685 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
18686 domain types as equal if they are both PLACEHOLDER_EXPRs.
18687
18688 2010-05-08 Richard Guenther <rguenther@suse.de>
18689
18690 * lto-wrapper.c (run_gcc): Remove linker output from
18691 command line for LTRANS invocation.
18692
18693 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
18694
18695 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18696 lto-macho as lto_binary_reader.
18697 * target.h (struct gcc_target): New hooks lto_start and lto_end.
18698 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
18699 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
18700 in lto_start and lto_end calls.
18701 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
18702 magic numbers.
18703 (scan_prog_file): Update is_elf_or_coff call.
18704 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
18705
18706 * collect2.c (main): Fix enum comparison.
18707
18708 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
18709 Add prototypes.
18710 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
18711 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
18712 and TARGET_ASM_LTO_END.
18713 * darwin.c: Include obstack.h and lto-streamer.h.
18714 (lto_section_names_offset, lto_section_names_obstack,
18715 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
18716 global variables.
18717 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
18718 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
18719 to a temporary file.
18720 (darwin_asm_lto_end): New function. Restore asm_out_file.
18721 (darwin_asm_named_section): For LTO sections, replace the name with
18722 the offset of the section name in a string table, and build this
18723 table.
18724 (darwin_file_start): Initialize global vars for LTO support.
18725 (darwin_file_end): If output to asm_out_file was redirected, append it
18726 to the proper asm_out_file here. Add the section names section.
18727
18728 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
18729
18730 * c-pragma.c (pending_weak_d, pending_weak): New.
18731 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
18732 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
18733 handle_pragma_weak): Update the uses of pending_weaks.
18734
18735 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18736
18737 PR documentation/44016
18738 * doc/standards.texi (Standards): Link to unversioned
18739 cxx0x_status.html page.
18740
18741 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
18742
18743 PR target/43708
18744 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
18745 in addition to TREE_USED, to avoid "set but unused" warnings.
18746
18747 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
18748
18749 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
18750 (is_loop_prefetching_profitable): Do not insert prefetches
18751 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
18752 times the prefetch ahead distance.
18753
18754 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
18755
18756 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
18757 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
18758 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
18759 the unroll_factor.
18760
18761 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
18762
18763 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
18764 a diagnostic info when the insn-to-mem ratio is too small.
18765
18766 2010-05-07 Richard Guenther <rguenther@suse.de>
18767
18768 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
18769 the linker plugin.
18770 (store_arg): Queue temp_filename for deletion instead of
18771 the whole argument.
18772
18773 2010-05-07 Richard Guenther <rguenther@suse.de>
18774
18775 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
18776 (run_gcc): Handle LTRANS phase invocation.
18777 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
18778
18779 2010-05-07 Jakub Jelinek <jakub@redhat.com>
18780
18781 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
18782 this is also meaningful on PARM_DECLs and RESULT_DECLs.
18783
18784 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18785
18786 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
18787
18788 2010-05-07 Richard Guenther <rguenther@suse.de>
18789
18790 PR tree-optimization/44020
18791 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
18792 code when PRE is not yet initialized.
18793
18794 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18795
18796 * config/mips/dbxmdebug.h: Remove.
18797 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
18798
18799 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
18800
18801 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
18802 with null pointer and also warn about ordered comparison of zero with
18803 pointer if -Wextra.
18804
18805 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
18806
18807 * graphite-blocking.c
18808 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
18809 * graphite-clast-to-gimple.c
18810 (clast_to_gcc_expression): Same.
18811 (precision_for_value): Same.
18812 (precision_for_interval): Same.
18813 (gcc_type_for_interval): Same.
18814 (graphite_create_new_guard): Same.
18815 (compute_bounds_for_level): Same.
18816 (graphite_create_new_loop_guard): Same.
18817 * graphite-interchange.c
18818 (build_linearized_memory_access): Same.
18819 (pdr_stride_in_loop): Same.
18820 (memory_strides_in_loop_1): Same.
18821 (memory_strides_in_loop): Same.
18822 (extend_scattering): Same.
18823 (psct_scattering_dim_for_loop_depth): Same.
18824 (pbb_number_of_iterations): Same.
18825 * graphite-poly.h
18826 (debug_iteration_domains): Same.
18827 * graphite-ppl.c
18828 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
18829 (ppl_set_inhomogeneous_gmp): Same.
18830 (ppl_strip_loop): Same.
18831 (ppl_lexico_compare_linear_expressions): Same.
18832 (ppl_read_polyhedron_matrix): Same.
18833 (ppl_max_for_le_pointset): Same.
18834 * graphite-ppl.h
18835 (ppl_read_polyhedron_matrix): Same.
18836 (tree_int_to_gmp): Same.
18837 (gmp_cst_to_tree): Same.
18838 (ppl_set_inhomogeneous): Same.
18839 (ppl_set_inhomogeneous_tree): Same.
18840 (ppl_set_coef): Same.
18841 (ppl_set_coef_tree): Same.
18842 * graphite-sese-to-poly.c
18843 (build_pbb_scattering_polyhedrons): Same.
18844 (build_scop_scattering): Same.
18845 (scan_tree_for_params_right_scev): Same.
18846 (scan_tree_for_params): Same.
18847 (find_params_in_bb): Same.
18848 (find_scop_parameters): Same.
18849 (add_upper_bounds_from_estimated_nit): Same.
18850 (build_loop_iteration_domains): Same.
18851 (add_condition_to_domain): Same.
18852 (pdr_add_memory_accesses): Same.
18853
18854 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
18855
18856 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
18857 CLooG's value_* macros to their respective mpz_* counterparts.
18858 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
18859 (graphite_create_new_loop_guard): Same.
18860 * graphite-interchange.c (build_linearized_memory_access): Same.
18861 (pdr_stride_in_loop): Same.
18862 (memory_strides_in_loop_1): Same.
18863 (1st_interchange_profitable_p): Same.
18864 * graphite-poly.c (extend_scattering): Same.
18865 (psct_scattering_dim_for_loop_depth): Same.
18866 (pbb_number_of_iterations): Same.
18867 (pbb_number_of_iterations_at_time): Same.
18868 * graphite-poly.h (new_1st_loop): Same.
18869 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
18870 (oppose_constraint): Same.
18871 (insert_constraint_into_matrix): Same.
18872 (ppl_set_inhomogeneous_gmp): Same.
18873 (ppl_set_coef_gmp): Same.
18874 (ppl_strip_loop): Same.
18875 (ppl_lexico_compare_linear_expressions): Same.
18876 (ppl_max_for_le_pointset): Same.
18877 (ppl_min_for_le_pointset): Same.
18878 (ppl_build_realtion): Same.
18879 * graphite-ppl.h (gmp_cst_to_tree): Same.
18880 (ppl_set_inhomogeneous): Same.
18881 (ppl_set_inhomogeneous_tree): Same.
18882 (ppl_set_coef): Same.
18883 (ppl_set_coef_tree): Same.
18884 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
18885 (build_scop_scattering): Same.
18886 (add_value_to_dim): Same.
18887 (scan_tree_for_params_right_scev): Same.
18888 (scan_tree_for_params_int): Same.
18889 (scan_tree_for_params): Same.
18890 (find_params_in_bb): Same.
18891 (find_scop_parameters): Same.
18892 (add_upper_bounds_from_estimated_nit): Same.
18893 (build_loop_iteration_domains): Same.
18894 (create_linear_expr_from_tree): Same.
18895 (add_condition_to_domain): Same.
18896 (pdr_add_memory_accesses): Same.
18897
18898 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
18899 Jason Merrill <jason@redhat.com>
18900
18901 * c-common.c (c_common_reswords): Add nullptr.
18902 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
18903 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
18904 (gen_type_die_with_usage): Likewise.
18905 * dbxout.c (dbxout_type): Likewise.
18906 * sdbout.c (plain_type_1): Likewise.
18907
18908 2010-05-06 Jason Merrill <jason@redhat.com>
18909
18910 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
18911 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
18912 ret appropriately.
18913 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
18914
18915 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
18916 stripping WITH_SIZE_EXPR.
18917 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
18918 change.
18919
18920 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18921
18922 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
18923 list of obsolete configurations.
18924 Disabled check for obsolete configurations.
18925 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
18926 Removed support for previous versions.
18927 * config/mips/iris.h: Removed.
18928 * config/mips/iris5.h: Removed.
18929 * config/mips/iris6.h: Merged old iris.h contents.
18930 (TARGET_IRIX): Removed.
18931 (DRIVER_SELF_SPECS): Removed mabi=32.
18932 (IDENT_ASM_OP): Removed undef.
18933 (STARTFILE_SPEC): Removed mabi=32.
18934 (ENDFILE_SPEC): Likewise.
18935 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
18936 (MACHINE_TYPE): Update for IRIX 6.5.
18937 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
18938 TARGET_IRIX by TARGET_IRIX6.
18939 (mips_file_start): Likewise.
18940 (mips_output_external): Remove IRIX 5/6 O32 support.
18941 (mips_output_function_prologue): Likewise.
18942 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
18943 TARGET_IRIX6.
18944 (TARGET_CPU_CPP_BUILTINS): Likewise.
18945 (TARGET_IRIX): Removed.
18946 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
18947 (MULTILIB_DIRNAMES): Removed 32.
18948 (MULTILIB_OSDIRNAMES): Removed ../lib.
18949 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
18950 (Specific, mips-sgi-irix5): Document removal.
18951 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
18952 Remove references to older IRIX 6 releases and the O32 ABI.
18953
18954 2010-05-06 Jakub Jelinek <jakub@redhat.com>
18955
18956 PR bootstrap/43994
18957 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
18958 instead of DF_REF_REAL_REG.
18959
18960 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
18961
18962 PR target/43888
18963 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
18964 handling to still return true for x64 targets.
18965
18966 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
18967
18968 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
18969
18970 2010-05-06 Jan Hubicka <jh@suse.cz>
18971
18972 PR tree-optimization/43791
18973 * ipa-inline.c (update_caller_keys): Remove bogus
18974 disregard_inline_limits check.
18975
18976 2010-05-06 Michael Matz <matz@suse.de>
18977
18978 PR tree-optimization/43984
18979 * tree-ssa-pre.c (inserted_phi_names): Remove.
18980 (inserted_exprs): Change to bitmap.
18981 (create_expression_by_pieces): Set bits, don't append to vector.
18982 (insert_into_preds_of_block): Don't handle inserted_phi_names.
18983 (eliminate): Don't look at inserted_phi_names, remove deleted
18984 insns from inserted_exprs.
18985 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
18986 (init_pre, fini_pre): Allocate and free bitmaps.
18987 (execute_pre): Insert insns on edges before elimination.
18988
18989 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
18990
18991 * tree.c (initializer_zerop): Handle STRING_CST.
18992
18993 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
18994
18995 PR 40989
18996 * doc/invoke.texi (Wimplicit): Document as C only.
18997 * opts.c (common_handle_option): Add argument kind.
18998 (handle_option): Rename as read_cmdline_option. Factor out code to...
18999 (handle_option): ... here. New.
19000 (handle_options): Rename as read_cmdline_options.
19001 (decode_options): Update call.
19002 (set_option): Use option index instead of option pointer. Classify
19003 diagnostics correctly.
19004 (enable_warning_as_error): Call handle_option.
19005 * opts.h (set_option): Update declaration.
19006 (handle_option): Declare.
19007 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
19008 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
19009 * c-opts.c (set_Wimplicit): Delete.
19010 (c_family_lang_mask): New static constant.
19011 (c_common_handle_option): Add argument kind. Use handle_option
19012 instead of set_Wimplicit.
19013 (c_common_post_options): warn_implicit and warn_implicit_int
19014 are disabled by default.
19015 * c-common.c (warn_implicit): Do not define here.
19016 * c-common.h (warn_implicit): Do not declare here.
19017 (c_common_handle_option): Update declaration.
19018 * lto-opts.c (lto_reissue_options): Update call to set_option.
19019
19020 2010-05-06 Richard Guenther <rguenther@suse.de>
19021
19022 PR tree-optimization/43571
19023 * domwalk.c (walk_dominator_tree): Walk the dominator
19024 sons in more optimal order.
19025
19026 2010-05-06 Richard Guenther <rguenther@suse.de>
19027
19028 PR tree-optimization/43934
19029 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
19030 (stmt_cost): Likewise.
19031 (extract_true_false_args_from_phi): New helper.
19032 (determine_max_movement): For PHI nodes verify we can hoist them
19033 and compute their cost.
19034 (determine_invariantness_stmt): Handle PHI nodes.
19035 (move_computations_stmt): Likewise. Hoist PHI nodes in
19036 if-converted form using COND_EXPRs.
19037 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
19038 (tree_ssa_lim): Likewise.
19039 * tree-flow.h (tree_ssa_lim): Adjust prototype.
19040 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
19041
19042 2010-05-06 Richard Guenther <rguenther@suse.de>
19043
19044 PR tree-optimization/43987
19045 * tree-ssa-structalias.c (could_have_pointers): For possibly
19046 address-taken variables force pointers to be recorded.
19047 (create_variable_info_for_1): Likewise.
19048 (push_fields_onto_fieldstack): Pass in wheter all fields
19049 must have pointers.
19050 (find_func_aliases): Query types instead of vars whether
19051 they contain pointers where appropriate.
19052
19053 2010-05-06 Jan Hubicka <jh@suse.cz>
19054
19055 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
19056 (record_reference, mark_address, mark_load, mark_store): Record
19057 references.
19058 (record_references_in_initializer): Update call of record_references.
19059 (rebuild_cgraph_edges): Remove all references before rebuiding.
19060 * cgraph.c (cgraph_create_node): Clear ref list.
19061 (cgraph_remove_node): Remove references.
19062 (dump_cgraph_node): Dump references.
19063 (cgraph_clone_node): Clone references.
19064 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
19065 (struct cgraph_node, varpool_node): Add ref_lst.
19066 * ipa-ref.c: New file.
19067 * ipa-ref.h: New file.
19068 * ipa-ref-inline.h: New file.
19069 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
19070 (referenced_from_other_partition_p): New function.
19071 (lto_output_varpool_node): Take set arugment; call
19072 referenced_from_other_partition.
19073 (lto_output_ref): New.
19074 (add_references): New.
19075 (output_refs): New.
19076 (output_cgraph): Compute boundary based on references; output refs.
19077 (output_varpool): Accept cgraph_node_set argument.
19078 (input_ref): New.
19079 (input_refs): New.
19080 (input_cgraph): Call input_refs.
19081 * lto-section-in.c (lto_section_name): Add refs.
19082 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
19083 (ipa-ref.o): New file.
19084 * varpool.c (varpool_node): Clear ipa ref list.
19085 (varpool_remove_node): Remove references.
19086 (dump_varpool_node): Dump references.
19087 (varpool_assemble_decl): Only compile finalized ones.
19088 (varpool_extra_name_alias): Initialize ref list.
19089 * lto-streamer.c (lto-get_section_name): Add .refs section.
19090 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
19091 (referenced_from_other_partition_p): Declared.
19092
19093 2010-05-06 Ira Rosen <irar@il.ibm.com>
19094
19095 PR tree-optimization/43901
19096 * tree-vect-stmts.c (vectorizable_call): Assert that vector
19097 type is not NULL if it's transformation phase, and return
19098 FALSE if it's analysis.
19099 (vectorizable_conversion, vectorizable_operation,
19100 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
19101
19102 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
19103
19104 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
19105 Delete.
19106 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
19107 New define.
19108 * config/mips/mips-protos.h
19109 (mips_small_register_classes_for_mode_p): Delete prototype.
19110
19111 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
19112
19113 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
19114 * config/arm/arm.c (multiple_operation_profitable_p,
19115 compute_offset_order): New static functions.
19116 (load_multiple_sequence, store_multiple_sequence): Use them.
19117 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
19118 memory offsets, not register numbers.
19119 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
19120
19121 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
19122
19123 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
19124 (get_pending_sizes, put_pending_size, put_pending_sizes):
19125 Update the uses of pending_sizes.
19126 * c-decl.c (store_parm_decls): Likewise.
19127 * c-tree.h (struct c_arg_info): Likewise.
19128 * tree.h: Update the prototype for get_pending_sizes and
19129 put_pending_sizes.
19130
19131 2010-05-05 Jason Merrill <jason@redhat.com>
19132
19133 PR debug/43370
19134 * c-common.c (handle_aligned_attribute): Respect
19135 ATTR_FLAG_TYPE_IN_PLACE.
19136
19137 PR testsuite/43758
19138 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
19139 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
19140 (TARGET_INITIALIZER): Use it.
19141 * c-common.c (attribute_takes_identifier_p): Call it.
19142 * c-common.h: Update prototype.
19143 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
19144 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
19145
19146 2010-05-05 Jakub Jelinek <jakub@redhat.com>
19147
19148 PR debug/43950
19149 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
19150 DW_ID_down_case for Fortran compilation units.
19151
19152 2010-05-05 Jan Hubicka <jh@suse.cz>
19153
19154 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
19155 handle aliases.
19156
19157 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
19158
19159 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
19160 a variable-sized RESULT_DECL.
19161
19162 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
19163
19164 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
19165
19166 2010-05-05 Jason Merrill <jason@redhat.com>
19167
19168 PR c++/43787
19169 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
19170 returns GS_OK.
19171 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
19172
19173 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
19174 Jakub Jelinek <jakub@redhat.com>
19175
19176 PR debug/43478
19177 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
19178 (dead_debug_init, dead_debug_finish): New functions.
19179 (dead_debug_add, dead_debug_insert_before): Likewise.
19180 (df_note_bb_compute): Initialize a dead_debug object, add dead
19181 debug uses to it, insert debug bind insns before death insns,
19182 reset debug insns that refer to pending uses at the end.
19183 * rtl.h (make_debug_expr_from_rtl): New prototype.
19184 * varasm.c (make_debug_expr_from_rtl): New function.
19185
19186 2010-05-05 Jan Hubicka <jh@suse.cz>
19187
19188 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
19189 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
19190 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
19191 lto_varpool_encoder_deref, lto_varpool_encoder_size,
19192 lto_varpool_encoder_encode_initializer_p,
19193 lto_set_varpool_encoder_encode_initializer): New functions.
19194 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
19195 call output_varpool.
19196 (input_varpool_node): Do not always set analyzed.
19197 (input_cgraph_1): Return vector of cgraph nodes.
19198 (input_varpool_1): Return vector of varpools.
19199 (input_cgraph): Free the vectors.
19200 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19201 output only initializers needed.
19202 (lto_output): Only call output_cgraph.
19203 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
19204 * lto-section-out.c (lto_new_out_decl_state): Initialize
19205 state->varpool_node_encoder.
19206 * lto-streamer.h (lto_varpool_encoder_d): New.
19207 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
19208 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
19209 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
19210 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
19211 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
19212 Declare.
19213 (output_varpool, input_varpool): Remove declarations.
19214
19215 2010-05-05 Jan Hubicka <jh@suse.cz>
19216
19217 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
19218 with body can prevail.
19219
19220 2010-05-05 Jan Hubicka <jh@suse.cz>
19221
19222 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
19223 size.
19224
19225 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
19226
19227 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
19228
19229 * gengtype.h (erro_at_line): Constify pos argument.
19230
19231 * gengtype.c: Include hashtab.h.
19232 (enum gc_used): Document GC_MAYBE_POINTED_TO.
19233 (error_at_line): Constify pos argument.
19234 (do_typedef): Initialize p->opt field.
19235 (get_file_gtfilename): Fix comment typo.
19236 (struct walk_type_data): Constify line field.
19237 (get_output_file_for_structure): New function.
19238 (write_local_func_for_structure): Constify orig_s argument.
19239 Use get_output_file_for_structure.
19240 (write_func_for_structure): Use get_output_file_for_structure.
19241 (INDENT): New define.
19242 (dump_pair, dump_type, dump_type_list, dump_typekind)
19243 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
19244 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
19245 functions.
19246 (seen_types): New variable.
19247 (main): New variable do_dump. Process "-d" command line option.
19248 Call dump_everything if dump requested.
19249
19250 2010-05-05 Jakub Jelinek <jakub@redhat.com>
19251
19252 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
19253 in a temporary instead of invoking the macro multiple times.
19254 (track_expr_p): Likewise.
19255
19256 2010-05-04 Neil Vachharajani <nvachhar@google.com>
19257
19258 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
19259 per new semantics.
19260 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
19261 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
19262 conditions for printing notes.
19263 * common.opt (-Wcoverage-mismatch): Allow negative, default to
19264 true, update documentation.
19265 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
19266
19267 2010-05-04 Jakub Jelinek <jakub@redhat.com>
19268
19269 PR c/43981
19270 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
19271 on dimen.
19272
19273 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
19274
19275 PR target/43799
19276 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
19277 (*sse_prologue_save_insn1): Likewise.
19278 (SSE prologue save splitter): Likewise.
19279
19280 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
19281
19282 * tree.c (free_lang_data_in_one_sizepos): New inline function.
19283 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
19284 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
19285 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
19286 all decls. Call it on DECL_FIELD_OFFSET of fields.
19287 (find_decls_types_r): Follow DECL_VALUE_EXPR.
19288 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
19289
19290 2010-05-04 Martin Jambor <mjambor@suse.cz>
19291
19292 * tree-sra.c (build_access_from_expr_1): The first parameter type
19293 changed to simple tree.
19294 (build_access_from_expr): Likewise, gsi parameter was eliminated.
19295 (scan_assign_result): Renamed to assignment_mod_result, enum elements
19296 renamed as well.
19297 (build_accesses_from_assign): Removed all parameters except for a
19298 simple gimple statement. Now returns a simple bool.
19299 (scan_function): All non-analysis parts moved to separate functions
19300 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
19301 parameters and updated both callers.
19302 (sra_modify_expr): Removed parameter data.
19303 (sra_modify_function_body): New function.
19304 (perform_intra_sra): Call sra_modify_function_body to modify the
19305 function body.
19306 (replace_removed_params_ssa_names): Parameter data changed into
19307 adjustments vector.
19308 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
19309 changed the parameter dont_convert to convert with the opposite
19310 meaning.
19311 (sra_ipa_modify_assign): Parameter data changed into adjustments
19312 vector, return value changed to bool.
19313 (ipa_sra_modify_function_body): New function.
19314 (sra_ipa_reset_debug_stmts): Updated a comment.
19315 (modify_function): Use ipa_sra_modify_function_body to modify function
19316 body.
19317
19318 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
19319
19320 PR middle-end/43671
19321 * alias.c (true_dependence): Handle the same VALUE in x and mem.
19322 (canon_true_dependence): Likewise.
19323 (write_dependence_p): Likewise.
19324
19325 2010-05-04 Jan Hubicka <jh@suse.cz>
19326
19327 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
19328 * cgraphbuild.c: Include ipa-utils.h
19329 (record_reference_ctx): New struct.
19330 (record_reference): Simplify to work on initializers; not statements.
19331 (mark_address, mark_load, mark_store): New.
19332 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
19333 walk PHI nodes too.
19334 (record_references_in_initializer): Update use of record_reference.
19335 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
19336 walk PHI nodes too.
19337
19338 2010-05-04 Jan Hubicka <jh@suse.cz>
19339
19340 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
19341 node will be removed anyway.
19342 (lto_varpool_replace_node): Allow also unanalyzed nodes;
19343 relink aliases of node into prevailing node.
19344 * varpool.c (varpool_remove_node): Remove aliases properly;
19345 when removing node, remove all its aliases too; remove DECL_INITIAL
19346 of removed node; ggc_free the varpool node.
19347
19348 2010-05-04 Richard Guenther <rguenther@suse.de>
19349
19350 PR tree-optimization/43879
19351 * tree-ssa-structalias.c (alias_get_name): Use
19352 DECL_ASSEMBLER_NAME if available.
19353 (create_function_info_for): Return the varinfo node.
19354 (ipa_pta_execute): Associate same-body aliases and extra names
19355 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
19356
19357 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
19358
19359 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
19360
19361 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
19362
19363 PR bootstrap/43964
19364 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
19365 only if HONOR_REG_ALLOC_ORDER is not defined.
19366
19367 2010-05-04 Richard Guenther <rguenther@suse.de>
19368
19369 PR tree-optimization/43949
19370 * tree-vrp.c (extract_range_from_binary_expr): Only handle
19371 TRUNC_MOD_EXPR.
19372
19373 2010-04-26 Jason Merrill <jason@redhat.com>
19374
19375 * c.opt (-fstrict-enums): New.
19376 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
19377
19378 2010-05-03 David Ung <davidu@mips.com>
19379 James E. Wilson <wilson@codesourcery.com>
19380
19381 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
19382 emit the trap instruction before the divide for TUNE_74K.
19383
19384 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
19385
19386 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
19387 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
19388 based on the above, for new target hook.
19389
19390 * hooks.c (hook_bool_mode_true): New generic hook.
19391 * hooks.h (hook_bool_mode_true): Add prototype.
19392
19393 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
19394 target hook.
19395 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
19396 target hook, set to hook_bool_mode_false.
19397 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
19398 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
19399 with targetm.small_register_classes_for_mode_p.
19400 (find_reusable_reload): Likewise.
19401 (combine_reloads): Likewise.
19402 * reload1.c (reload_as_needed): Likewise.
19403 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
19404 * ifcvt.c (noce_process_if_block, check_cond_move_block,
19405 dead_or_predicable): Likewise.
19406 * regmove.c (optimize_reg_copy_1): Likewise.
19407 * calls.c (prepare_call_address): Likewise.
19408 (precompute_register_parameters): Likewise.
19409
19410 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
19411 hook definition.
19412 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
19413 implementation of the hook that considers all register classes
19414 small except for SH64.
19415 (sh_override_options): Use the new hook.
19416 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
19417 Add prototype.
19418
19419 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
19420 hook definition.
19421 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
19422 implementation of the hook that considers all register classes
19423 small for THUMB1.
19424 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
19425 Add prototype.
19426
19427 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
19428 hook definition.
19429 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
19430 implementation of the hook that considers all register classes
19431 small for MIPS16.
19432 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
19433 Add prototype.
19434
19435 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
19436 hook definition.
19437 * config/m32c/m32c.h: Likewise.
19438 * config/pdp11/pdp11.h: Likewise.
19439 * config/avr/avr.h: Likewise.
19440 * config/xtensa/xtensa.h: Likewise.
19441 * config/m68hc11/m68hc11.h: Likewise.
19442 * config/mn10300/mn10300.h: Likewise.
19443 * config/mcore/mcore.h: Likewise.
19444 * config/h8300/h8300.h: Likewise.
19445 * config/bfin/bfin.h: Likewise.
19446
19447 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
19448 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
19449
19450 2010-05-03 Anatoly Sokolov <aesok@post.ru>
19451
19452 * double-int.h (tree_to_double_int): Remove macro.
19453 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
19454 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
19455 (tree_to_double_int): New function.
19456 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
19457 Move ...
19458 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
19459
19460 2010-05-03 Richard Guenther <rguenther@suse.de>
19461
19462 PR tree-optimization/43971
19463 * tree-ssa-structalias.c (get_constraint_for_1): Fix
19464 constraints in the !flag_delete_null_pointer_checks case.
19465
19466 2010-05-03 Jakub Jelinek <jakub@redhat.com>
19467
19468 PR debug/43972
19469 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
19470 result mode matches original rtl mode.
19471
19472 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
19473
19474 PR target/43888
19475 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
19476
19477 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
19478
19479 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
19480 when processing flag options.
19481
19482 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
19483
19484 * gcov-iov.c (main): Change format string placeholder
19485 from %#08x to 0x%08x.
19486 * genchecksum.c (dosum): Change format string placeholder
19487 from %#02x to 0x%02x.
19488
19489 2010-05-02 Richard Guenther <rguenther@suse.de>
19490
19491 PR tree-optimization/43879
19492 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
19493
19494 2010-05-02 Bruno Haible <bruno@clisp.org>
19495
19496 * doc/extend.texi (Function Attributes): Fix a typo.
19497
19498 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
19499
19500 Revert:
19501 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
19502 placeholder from 0x%x to %#x.
19503 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
19504 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
19505 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
19506 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
19507 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
19508 * config/i386/i386.c (ix86_target_string): Ditto.
19509 * config/i386/i386.c (output_pic_addr_const): Ditto.
19510 (print_operand): Ditto.
19511
19512 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
19513
19514 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
19515 placeholder from 0x%x to %#x.
19516 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
19517 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
19518 (ASM_OUTPUT_DEBUG_DATA): Ditto.
19519 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
19520 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
19521 * optc-gen.awk: Ditto.
19522 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
19523 (HOST_WIDE_INT_PRINT_HEX): Ditto.
19524 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
19525 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
19526
19527 2010-05-01 Anatoly Sokolov <aesok@post.ru>
19528
19529 * target.h (struct calls): Add function_value_regno_p field.
19530 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
19531 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
19532 * targhooks.c (default_function_value_regno_p): New function.
19533 * targhooks.h (default_function_value_regno_p): Declare function.
19534 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
19535 * builtins.c. (apply_result_size): (Ditto.).
19536 * combine.c. (likely_spilled_retval_p): (Ditto.).
19537 * mode-switching.c. Include 'target.h'.
19538 (create_pre_exit): Use function_value_regno_p hook.
19539 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
19540 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
19541 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
19542
19543 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
19544 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
19545 (ix86_function_value_regno_p): Declare as static, change argument
19546 type to const unsigned int.
19547 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
19548
19549 2010-05-01 Richard Guenther <rguenther@suse.de>
19550
19551 PR tree-optimization/43949
19552 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
19553 types.
19554 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
19555
19556 2010-05-01 Anatoly Sokolov <aesok@post.ru>
19557
19558 * rtl.h (CONST_DOUBLE_P): Define.
19559 (rtx_to_double_int): Declare.
19560 * emit-rtl.c (rtx_to_double_int): New function.
19561 * dwarf2out.c (insert_double): New function.
19562 (loc_descriptor, add_const_value_attribute): Clean up, use
19563 rtx_to_double_int and insert_double functions.
19564
19565 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
19566
19567 * doc/extend.texi (Inline): Add missing return keyword to examples.
19568 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
19569 "command-line".
19570
19571 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
19572
19573 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
19574 the variable part of the offset as well. Use highest_pow2_factor for
19575 all alignment checks.
19576
19577 2010-04-30 Richard Guenther <rguenther@suse.de>
19578
19579 PR tree-optimization/43879
19580 * tree-ssa-structalias.c (type_could_have_pointers): Functions
19581 can have pointers.
19582
19583 2010-04-30 Jan Hubicka <jh@suse.cz>
19584
19585 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
19586 varpool.
19587 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
19588
19589 2010-04-30 Jan Hubicka <jh@suse.cz>
19590
19591 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
19592 New.
19593 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
19594 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
19595 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
19596 cgraph_node_set_needs_ltrans_p): Remove.
19597
19598 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
19599
19600 * sdbout.c: Include vec.h, do not include varray.h.
19601 (deferred_global_decls, sdbout_global_decl,
19602 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
19603 * toplev.c: Do not include varray.h.
19604 (dump_memory_report): Do not dump VARRAY statistics.
19605 * gengtype.c (open_base_file): Ignore varray.h.
19606 * Makefile.in: Update for abovementioned changes.
19607 Remove all traces of varray.c and varray.h.
19608 * varray.c: Remove file.
19609 * varray.h: Remove file.
19610
19611 2010-04-30 Jan Hubicka <jh@suse.cz>
19612
19613 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
19614 references.
19615
19616 2010-04-30 Jan Hubicka <jh@suse.cz>
19617
19618 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
19619 needed.
19620
19621 2010-04-30 Richard Guenther <rguenther@suse.de>
19622
19623 * tree-ssa-structalias.c (get_constraint_for_1): Generate
19624 constraints for CONSTRUCTOR.
19625
19626 2010-04-30 Richard Guenther <rguenther@suse.de>
19627
19628 PR lto/43946
19629 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
19630 first after all lowering passes.
19631
19632 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
19633
19634 * toplev.c: Include varray.h for statistics dumping.
19635 * tree.h: Do not declare varray_head_tag.
19636 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
19637 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
19638 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
19639 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
19640 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
19641 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
19642 c-common.c, c-common.h, reg-stack.c, basic-block.h,
19643 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
19644 include varray.h.
19645 * Makefile.in: Update for abovementioned changes.
19646
19647 2010-04-30 Jakub Jelinek <jakub@redhat.com>
19648
19649 PR debug/43942
19650 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
19651
19652 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
19653
19654 * config/picochip/picochip.c (picochip_legitimize_address): Define.
19655 Use this function to do machine-specific conversion.
19656 (picochip_legitimize_reload_address): Likewise.
19657 (picochip_legitimate_address_p): Check valid base register only if
19658 strict.
19659 (picochip_check_conditional_copy): Check for modw only if opnd is
19660 register.
19661 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
19662 to call the function in c.
19663 * config/picochip/picochip-protos.h
19664 (picochip_legitimize_reload_address): Define.
19665 * config/picochip/picochip.md (supported_compare1): Define.
19666
19667 2010-04-30 Jan Hubicka <jh@suse.cz>
19668
19669 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
19670 (cgraph_global_info): Remove inlined.
19671 (LTO_cgraph_tag_names): Remove.
19672 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
19673 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
19674 simplify cgraph tags and document.
19675 (lto_output_node): Use only LTO_cgraph_unavail_node and
19676 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
19677 for_functions_valid, global info, process and output flags.
19678 (input_overwrite_node): Initialize estimated stack size and
19679 estimated growth. Do not read flags we no longer store.
19680 (input_node): Likewise do not read info no longer stored.
19681 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
19682 flag.
19683
19684 2010-04-30 Richard Guenther <rguenther@suse.de>
19685
19686 PR tree-optimization/43879
19687 * tree-ssa-structalias.c (get_constraint_for_1): Properly
19688 handle non-zero initializers.
19689
19690 2010-04-30 Richard Guenther <rguenther@suse.de>
19691
19692 * builtins.c (fold_builtin_1): Delete free (0).
19693
19694 2010-04-29 Jan Hubicka <jh@suse.cz>
19695
19696 * gengtype.c (open_base_files): Add lto-streamer.h
19697 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
19698 (pass_ipa_cp): GGC collect.
19699 * toplev. (compile_file): Do not output symbols.
19700 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
19701 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
19702 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
19703 * lto-section-in.c: Include ggc.h
19704 (lto_new_in_decl_state): Alloc in GGC.
19705 (lto_delete_in_decl_state): Likewise.
19706 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
19707 Collect.
19708
19709 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
19710
19711 PR target/42895
19712 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
19713 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
19714 (HONOR_REG_ALLOC_ORDER): Describe new macro.
19715 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
19716 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
19717 account only if HONOR_REG_ALLOC_ORDER is not defined.
19718 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
19719 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
19720
19721 2010-04-29 Jon Grant <04@jguk.org>
19722
19723 * collect2.c (vflag): Change type from int to bool.
19724 (debug): Likewise.
19725 (helpflag): New global bool.
19726 (main): Set vflag and debug with boolean, not integer truth values.
19727 Accept new "--help" option and output usage text if found.
19728 * collect2.h (vflag): Update prototype.
19729 (debug): Likewise.
19730
19731 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
19732
19733 PR bootstrap/43936
19734 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
19735
19736 2010-04-29 Richard Guenther <rguenther@suse.de>
19737
19738 PR bootstrap/43935
19739 * plugin.h (invoke_plugin_callbacks): Annotate arguments
19740 with ATTRIBUTE_UNUSED.
19741
19742 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
19743
19744 PR target/43921
19745 * config/i386/i386.c (get_some_local_dynamic_name): Replace
19746 INSN_P with NONDEBUG_INSN_P.
19747 (distance_non_agu_define): Likewise.
19748 (distance_agu_use): Likewise.
19749
19750 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
19751
19752 From Dominique d'Humieres <dominiq@lps.ens.fr>
19753 PR bootstrap/43858
19754 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
19755 test_set.
19756
19757 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
19758
19759 * plugin.h (invoke_plugin_callbacks): New inline function.
19760 * plugin.c (flag_plugin_added): New global flag.
19761 (add_new_plugin): Initialize above flag.
19762 (invoke_plugin_callbacks): Rename to ...
19763 (invoke_plugin_callbacks_full): ... this.
19764
19765 2010-04-28 Jan Hubicka <jh@suse.cz>
19766
19767 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
19768 (lto_varpool_replace_node): New.
19769 (lto_symtab_resolve_symbols): Resolve varpool nodes.
19770 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
19771 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
19772 * cgraph.h (varpool_node_ptr): New type.
19773 (varpool_node_ptr): New vector.
19774 (varpool_node_set_def): New structure.
19775 (varpool_node_set): New type.
19776 (varpool_node_set): New vector.
19777 (varpool_node_set_element_def): New structure.
19778 (varpool_node_set_element, const_varpool_node_set_element): New types.
19779 (varpool_node_set_iterator): New type.
19780 (varpool_node): Add prev pointers, add used_from_other_partition,
19781 in_other_partition.
19782 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
19783 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
19784 varpool_get_node, varpool_remove_node): Declare.
19785 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
19786 varpool_node_set_size): New inlines.
19787 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
19788 * tree-pass.h (varpool_node_set_def): Forward declare.
19789 (ipa_opt_pass_d): Summary writting takes vnode sets too.
19790 (ipa_write_optimization_summaries): Update prototype.
19791 * ipa-cp.c (ipcp_write_summary): Update.
19792 * ipa-reference.c (ipa_reference_write_summary): Update.
19793 * lto-cgraph.c (lto_output_varpool_node): New static function.
19794 (output_varpool): New function.
19795 (input_varpool_node): New static function.
19796 (input_varpool_1): New function.
19797 (input_cgraph): Input varpool.
19798 * ipa-pure-const.c (pure_const_write_summary): Update.
19799 * lto-streamer-out.c (lto_output): Update, output varpool too.
19800 (write_global_stream): Kill WPA hack.
19801 (produce_asm_for_decls): Update.
19802 (output_alias_pair_p): Handle variables.
19803 (output_unreferenced_globals): Output only needed partition of varpool.
19804 * ipa-inline.c (inline_write_summary): Update.
19805 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
19806 cgraph.
19807 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
19808 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
19809 varpool_node_set_new, varpool_node_set_add,
19810 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
19811 debug_varpool_node_set): New functions.
19812 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
19813 (execute_one_pass): Process new decls too.
19814 (ipa_write_summaries_2): Pass around vsets.
19815 (ipa_write_summaries_1): Likewise.
19816 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
19817 to add.
19818 (ipa_write_optimization_summaries_1): Pass around vsets.
19819 (ipa_write_optimization_summaries): Likewise.
19820 * varpool.c (varpool_get_node): New.
19821 (varpool_node): Update doubly linked lists.
19822 (varpool_remove_node): New.
19823 (dump_varpool_node): More dumping.
19824 (varpool_enqueue_needed_node): Update doubly linked lists.
19825 (decide_is_variable_needed): Kill ltrans hack.
19826 (varpool_finalize_decl): Kill lto hack.
19827 (varpool_assemble_decl): Skip decls in other partitions.
19828 (varpool_assemble_pending_decls): Update doubly linkes lists.
19829 (varpool_empty_needed_queue): Likewise.
19830 (varpool_extra_name_alias): Likewise.
19831 * lto-streamer.c (lto_get_section_name): Add vars section.
19832 * lto-streamer.h (lto_section_type): Update.
19833 (output_varpool, input_varpool): Declare.
19834
19835 2010-04-28 Mike Stump <mikestump@comcast.net>
19836
19837 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
19838
19839 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
19840
19841 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
19842 record or union type with RECORD_OR_UNION_TYPE_P predicate.
19843 (lto_input_ts_type_tree_pointers): Likewise.
19844 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
19845 (lto_output_ts_type_tree_pointers): Likewise.
19846
19847 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
19848
19849 Uniquization of constants at the Tree level
19850 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
19851 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
19852 bit to the end.
19853 (tree_output_constant_def): Declare.
19854 * gimplify.c (gimplify_init_constructor): When using block copy, first
19855 uniquize the constant constructor on the RHS.
19856 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
19857 DECL_IN_CONSTANT_POOL flag.
19858 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
19859 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
19860 constant pool.
19861 (assemble_variable): Deal with symbols belonging to the tree constant
19862 pool.
19863 (get_constant_section): Add ALIGN parameter and simplify.
19864 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
19865 (assemble_constant_contents): Use the expression of the VAR_DECL.
19866 (output_constant_def_contents): Use the alignment of the VAR_DECL.
19867 (tree_output_constant_def): New global function.
19868 (mark_constant): Use the expression of the VAR_DECL.
19869 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
19870 its expression.
19871 (output_object_block): Likewise and assemble the expression.
19872
19873 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
19874
19875 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
19876 hash_tree, eq_tree): New tree hash table.
19877 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
19878 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
19879 lto_orig_address_remove): Reimplement.
19880
19881 2010-04-28 Xinliang David Li <davidxl@google.com>
19882
19883 PR c/42643
19884 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
19885 (compute_uninit_opnds_pos): New function.
19886 (is_non_loop_exit_postdominating): New function.
19887 (compute_control_dep_chain): New function.
19888 (find_pdom): New function.
19889 (convert_control_dep_chain_into_preds): New function.
19890 (find_predicates): New function.
19891 (find_control_equiv_block): New function.
19892 (collect_phi_def_edges): New function.
19893 (find_def_preds): New function.
19894 (find_dom): New function.
19895 (dump_predicates): New function.
19896 (get_cmp_code): New function.
19897 (is_value_included_in): New function.
19898 (find_matching_predicate_in_rest_chains): New function.
19899 (use_pred_not_overlap_with_undef_path_pred): New function.
19900 (is_use_properly_guarded): New function.
19901 (normalize_cond_1): New function.
19902 (is_and_or_or): New function.
19903 (normalize_cond): New function.
19904 (is_gcond_subset_of): New function.
19905 (is_subset_of_any): New function.
19906 (is_or_set_subset_of): New function.
19907 (is_and_set_subset_of): New function.
19908 (is_norm_cond_subset_of): New function.
19909 (is_pred_expr_subset_of): New function.
19910 (is_pred_chain_subset_of): New function.
19911 (is_included_in): New function.
19912 (is_superset_of): New function.
19913 (find_uninit_use): New function.
19914 (warn_uninitialized_phi): New function.
19915 (compute_possibly_undefined_names): New function.
19916 (ssa_undefined_value_p): New function.
19917 (execute_late_warn_uninitialized): New function.
19918 * tree-ssa.c (ssa_undefined_value_p): Removed.
19919 (warn_uninit): Changed to extern.
19920 (warn_uninitialized_phi): Removed.
19921 (warn_uninitialized_vars): Changed to extern.
19922 (execute_late_warn_uninitialized): Removed
19923 * tree-flow.h: Add new prototypes.
19924 * timevar.def: Add new time variable.
19925 * Makefile.in: Add new build file.
19926
19927 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
19928
19929 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
19930 type if available.
19931
19932 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19933
19934 PR target/22224
19935 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
19936
19937 2010-04-28 Martin Jambor <mjambor@suse.cz>
19938
19939 * cgraph.h (struct cgraph_node): New field indirect_calls.
19940 (struct cgraph_indirect_call_info): New type.
19941 (struct cgraph_edge): Removed field indirect_call. New fields
19942 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
19943 (cgraph_create_indirect_edge): Declare.
19944 (cgraph_make_edge_direct): Likewise.
19945 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
19946 * ipa-prop.h (struct ipa_param_call_note): Removed.
19947 (struct ipa_node_params): Removed field param_calls.
19948 (ipa_create_all_structures_for_iinln): Declare.
19949 * cgraph.c: Described indirect edges and uids in initial comment.
19950 (cgraph_add_edge_to_call_site_hash): New function.
19951 (cgraph_edge): Search also among the indirect edges, use
19952 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
19953 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
19954 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
19955 site hash.
19956 (initialize_inline_failed): Assign a reason to indirect edges.
19957 (cgraph_create_edge_1): New function.
19958 (cgraph_create_edge): Moved some functionality to
19959 cgraph_create_edge_1.
19960 (cgraph_create_indirect_edge): New function.
19961 (cgraph_edge_remove_callee): Add an assert checking for
19962 non-indirectness.
19963 (cgraph_edge_remove_caller): Special-case indirect edges.
19964 (cgraph_remove_edge): Likewise.
19965 (cgraph_set_edge_callee): New function.
19966 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
19967 (cgraph_make_edge_direct): New function.
19968 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
19969 the declaration of the call statement matches.
19970 (cgraph_node_remove_callees): Special-case indirect edges.
19971 (cgraph_clone_edge): Likewise.
19972 (cgraph_clone_node): Clone also the indirect edges.
19973 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
19974 indirect_call, dump count of indirect_calls edges.
19975 * ipa-prop.c (iinlining_processed_edges): New variable.
19976 (ipa_note_param_call): Create indirect edges instead of
19977 creating notes. New parameter node.
19978 (ipa_analyze_call_uses): New parameter node, pass it on to
19979 ipa_note_param_call.
19980 (ipa_analyze_stmt_uses): Likewise.
19981 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
19982 (print_edge_addition_message): Work on edges rather than on notes.
19983 (update_call_notes_after_inlining): Likewise, renamed to
19984 update_indirect_edges_after_inlining.
19985 (ipa_create_all_structures_for_iinln): New function.
19986 (ipa_free_node_params_substructures): Do not free notes.
19987 (ipa_edge_duplication_hook): Propagate bits within
19988 iinlining_processed_edges bitmap.
19989 (ipa_node_duplication_hook): Do not duplicate notes.
19990 (free_all_ipa_structures_after_ipa_cp): Renamed to
19991 ipa_free_all_structures_after_ipa_cp.
19992 (free_all_ipa_structures_after_iinln): Renamed to
19993 ipa_free_all_structures_after_iinln.
19994 (ipa_write_param_call_note): Removed.
19995 (ipa_read_param_call_note): Removed.
19996 (ipa_write_indirect_edge_info): New function.
19997 (ipa_read_indirect_edge_info): Likewise.
19998 (ipa_write_node_info): Do not stream notes, do stream information
19999 in indirect edges.
20000 (ipa_read_node_info): Likewise.
20001 (lto_ipa_fixup_call_notes): Removed.
20002 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
20003 * ipa-inline.c (pass_ipa_inline): Likewise.
20004 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
20005 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
20006 * tree-inline.c (copy_bb): Removed an unnecessary double check for
20007 is_gimple_call.
20008 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
20009 edges.
20010 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
20011 (output_cgraph): Stream also indirect edges.
20012 (lto_output_edge): Added capability to stream indirect edges.
20013 (input_edge): Likewise.
20014 (input_cgraph_1): Likewise.
20015 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
20016 of indirect edges.
20017
20018 2010-04-28 Richard Guenther <rguenther@suse.de>
20019
20020 PR tree-optimization/43879
20021 PR tree-optimization/43909
20022 * tree-ssa-structalias.c (struct variable_info): Add
20023 only_restrict_pointers flag.
20024 (new_var_info): Initialize it. Increment stats.total_vars here.
20025 (create_function_info_for): Do not increment stats.total_vars here.
20026 (get_function_part_constraint): Fix build with C++.
20027 (insert_into_field_list): Remove.
20028 (push_fields_onto_fieldstack): Properly merge fields.
20029 (create_variable_info_for): Split and simplify.
20030 (create_variable_info_for_1): New piece.
20031 (intra_create_variable_infos): Properly make restrict constraints
20032 from parameters.
20033
20034 2010-04-28 Richard Guenther <rguenther@suse.de>
20035
20036 PR c++/43880
20037 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
20038
20039 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
20040 Jan Hubicka <hubicka@ucw.cz>
20041
20042 * doc/invoke.texi (-Wsuggest-attribute=const,
20043 -Wsuggest-attribute=pure): Document.
20044 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
20045 (function_always_visible_to_compiler_p,
20046 suggest_attribute, warn_function_pure, warn_function_const):
20047 New functions.
20048 (check_call): Improve debug info.
20049 (analyze_function): Do not check availability.
20050 (add_new_function): Check availability.
20051 (propagate): Output warnings.
20052 (skip_function_for_local_pure_const): New function.
20053 (local_pure_const): Use it; output warnings.
20054 * common.opt (Wsuggest-attribute=const,
20055 Wsuggest-attribute=pure): New.
20056
20057 2010-04-27 Jakub Jelinek <jakub@redhat.com>
20058
20059 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
20060 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
20061 or DW_CFA_def_cfa_offset{,_sf}.
20062
20063 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
20064
20065 * tree.h: Fix truncated long macros.
20066
20067 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
20068
20069 * collect2.c (TARGET_64BIT): Redefine to target's default.
20070 * tlink.c: Likewise.
20071 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
20072 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
20073 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
20074 for underscoring __USER_LABEL_PREFIX__.
20075 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
20076 (SUB_LINK_ENTRY32): New.
20077 (SUB_LINK_ENTRY64): New.
20078 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
20079 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
20080 (SUB_LINK_ENTRY64): New.
20081 (SUB_LINK_ENTRY): New.
20082 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
20083 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
20084 x64 target is choosen.
20085 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
20086 * configure: Regenerated.
20087 * configure.ac (leading-mingw64-underscores): Option added.
20088
20089 2010-04-27 Jan Hubicka <jh@suse.cz>
20090
20091 * doc/invoke.texi (-fipa-profile): Document.
20092 * opts.c (decode_options): Enable ipa-profile at -O1.
20093 * timevar.def (TV_IPA_PROFILE): Define.
20094 * common.opt (fipa-profile): Add.
20095 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
20096 flag for clones.
20097 (cgraph_propagate_frequency): Handle only local ones.
20098 * tree-pass.h (pass_ipa_profile): Declare.
20099 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
20100 (pass_ipa_profile): Use TV_IPA_PROFILE.
20101 * ipa.c (ipa_profile): New function.
20102 (gate_ipa_profile): Likewise.
20103 (pass_ipa_profile): New global variable.
20104 * passes.c (pass_ipa_profile): New.
20105
20106 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
20107
20108 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
20109
20110 2010-04-27 Martin Jambor <mjambor@suse.cz>
20111
20112 PR middle-end/43812
20113 * ipa.c (dissolve_same_comdat_group_list): New function.
20114 (function_and_variable_visibility): Call
20115 dissolve_same_comdat_group_list when comdat group contains external or
20116 newly local nodes.
20117 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
20118 lists are circular and that they contain only DECL_ONE_ONLY nodes.
20119
20120 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
20121
20122 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
20123 (const_hash_1) <VECTOR_CST>: New case.
20124 (compare_constant) <VECTOR_CST>: Likewise.
20125 <ADDR_EXPR>: Deal with LABEL_REFs.
20126 (copy_constant) <VECTOR_CST>: New case.
20127
20128 2010-04-27 Jan Hubicka <jh@suse.cz>
20129
20130 * cgraph.c (cgraph_propagate_frequency): New function.
20131 * cgraph.h (cgraph_propagate_frequency): Declare.
20132 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
20133 cgraph_propagate_frequency.
20134
20135 2010-04-27 Jakub Jelinek <jakub@redhat.com>
20136
20137 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
20138
20139 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
20140
20141 PR target/40657
20142 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
20143 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
20144 here to determine which regs to push and how much stack to reserve.
20145
20146 2010-04-27 Jie Zhang <jie@codesourcery.com>
20147
20148 * doc/gimple.texi (gimple_statement_with_ops): Remove
20149 addresses_taken field.
20150 (gimple_statement_with_memory_ops): Likewise.
20151
20152 2010-04-27 Jan Hubicka <jh@suse.cz>
20153
20154 * tree-inline.c (eni_inlining_weights): Remove.
20155 (estimate_num_insns): Special case more builtins.
20156
20157 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
20158
20159 PR c/32207
20160 * c-typeck.c (build_binary_op): Move forward check for comparison
20161 pointer with null pointer constant and adjust the diagnostic message.
20162
20163 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
20164
20165 PR lto/42776
20166 * configure.ac (gcc_cv_as_section_has_align): Set if installed
20167 binutils supports extended .section directive needed by LTO, or
20168 warn if older binutils found.
20169 (LTO_BINARY_READER): New AC_SUBST'd variable.
20170 (LTO_USE_LIBELF): Likewise.
20171 * config.gcc (lto_binary_reader): New target-specific configure
20172 variable.
20173 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
20174 (LTO_USE_LIBELF): Likewise.
20175 * configure: Regenerate.
20176
20177 * collect2.c (is_elf): Rename from this ...
20178 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
20179 object files in addition to ELF-formatted ones.
20180 (scan_prog_file): Caller updated. Also allow for LTO info marker
20181 symbol to be prefixed or not by an extra underscore.
20182
20183 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
20184 * config/i386/winnt.c: Also #include lto-streamer.h
20185 (i386_pe_asm_named_section): Specify 1-byte section alignment for
20186 LTO named sections.
20187 (i386_pe_asm_output_aligned_decl_common): Add comment.
20188 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
20189
20190 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
20191
20192 PR target/43889
20193 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
20194 Add missing earlyclobber for second alternative.
20195
20196 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
20197
20198 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
20199 bits for artificial defs at the top of the block.
20200 * fwprop.c (single_def_use_enter_block): Don't call it.
20201
20202 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
20203
20204 PR 43715
20205 * configure.ac: Use "$gcc_cv_nm -g" on darwin
20206 instead of "$gcc_cv_objdump -T".
20207 Use "-undefined dynamic_lookup" on darwin.
20208 * configure: Regenerate.
20209
20210 2010-04-26 Jakub Jelinek <jakub@redhat.com>
20211
20212 PR c/43893
20213 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
20214
20215 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
20216
20217 * c-parser.c (struct c_token): Move location field up.
20218 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
20219 (struct c_declspecs): Convert typespec_word, storage_class, and
20220 default_int_p into bitfields.
20221 (struct c_declarator): Move loc field up.
20222
20223 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
20224
20225 * cfgloop.h (struct loop): Move can_be_parallel field up.
20226 * ipa-prop.h (struct ip_node_params): Move bitfields up.
20227 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
20228 down.
20229 (struct iv_cand): Convert pos field into a bitfield.
20230 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
20231 field up.
20232 (struct _stmt_vec_info): Shuffle fields for better packing.
20233
20234 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
20235
20236 * varasm.c (IN_NAMED_SECTION): Remove guard.
20237 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
20238 (IN_NAMED_SECTION_P): ...this.
20239 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
20240 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
20241
20242 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
20243
20244 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
20245 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
20246 of shadowing it. Fix comments.
20247
20248 2010-04-26 Jan Hubicka <jh@suse.cz>
20249
20250 * cgraph.c (cgraph_create_node): Set node frequency to normal.
20251 (cgraph_clone_node): Copy function frequency.
20252 * cgraph.h (node_frequency): New enum
20253 (struct cgraph_node): Add.
20254 * final.c (rest_of_clean_state): Update.
20255 * lto-cgraph.c (lto_output_node): Output node frequency.
20256 (input_overwrite_node): Input node frequency.
20257 * tre-ssa-loop-ivopts (computation_cost): Update.
20258 * lto-streamer-out.c (output_function): Do not output function
20259 frequency.
20260 * predict.c (maybe_hot_frequency_p): Update and handle functions
20261 executed once.
20262 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
20263 attribute lookup.
20264 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
20265 (compute_function_frequency): Set noreturn functions to be executed
20266 once.
20267 (choose_function_section): Update.
20268 * lto-streamer-in.c (input_function): Do not input function frequency.
20269 * function.c (allocate_struct_function): Do not initialize function
20270 frequency.
20271 * function.h (function_frequency): Remove.
20272 (struct function): Remove function frequency.
20273 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
20274 (try_update): Update.
20275 * tree-inline.c (initialize_cfun): Do not update function frequency.
20276 * passes.c (pass_init_dump_file): Update.
20277 * i386.c (ix86_compute_frame_layout): Update.
20278 (ix86_pad_returns): Update.
20279
20280 2010-04-26 Jie Zhang <jie@codesourcery.com>
20281
20282 PR tree-optimization/43833
20283 * tree-vrp.c (range_int_cst_p): New.
20284 (range_int_cst_singleton_p): New.
20285 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
20286 when both operands are constants. Use range_int_cst_p in
20287 BIT_IOR_EXPR case.
20288
20289 2010-04-26 Jan Hubicka <jh@suse.cz>
20290
20291 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
20292
20293 2010-04-26 Richard Guenther <rguenther@suse.de>
20294
20295 PR lto/43080
20296 * gimple.c (gimple_decl_printable_name): Deal gracefully
20297 with a NULL DECL_NAME.
20298
20299 2010-04-26 Richard Guenther <rguenther@suse.de>
20300
20301 PR lto/42425
20302 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
20303 if emitting debug information and it is either a function
20304 or a namespace decl.
20305
20306 2010-04-26 Ira Rosen <irar@il.ibm.com>
20307
20308 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
20309 determine if the statement is vectorizable, and a macro to access it.
20310 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20311 Skip statements that can't be vectorized. If the analysis fails,
20312 mark the statement as unvectorizable if vectorizing basic block.
20313 (vect_compute_data_refs_alignment): Likewise.
20314 (vect_verify_datarefs_alignment): Skip statements marked as
20315 unvectorizable. Add print.
20316 (vect_analyze_group_access): Skip statements that can't be
20317 vectorized. If the analysis fails, mark the statement as
20318 unvectorizable if vectorizing basic block.
20319 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
20320 * tree-vect-stmts.c (vectorizable_store): Fix the number of
20321 generated stmts for SLP.
20322 (new_stmt_vec_info): Initialize the new field.
20323 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
20324 statements marked as unvectorizable.
20325
20326 2010-04-25 Joseph Myers <joseph@codesourcery.com>
20327
20328 * c-common.c (flag_isoc1x): New.
20329 (flag_isoc99): Update comment.
20330 * c-common.h (flag_isoc1x): New.
20331 (flag_isoc99): Update comment.
20332 * c-cppbuiltin.c (builtin_define_float_constants): Also define
20333 __<type>_DECIMAL_DIG__.
20334 * c-opts.c (set_std_c1x): New.
20335 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
20336 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
20337 * c.opt (-std=c1x, -std=gnu1x): New options.
20338 * doc/cpp.texi: Mention -std=c1x.
20339 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
20340 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
20341 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
20342 * doc/standards.texi: Mention C1X.
20343 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
20344 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
20345 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
20346 Define for C1X.
20347
20348 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
20349
20350 * config/i386/gmon-sol2.c (_mcleanup): Change format string
20351 placeholder from 0x%x to %#x.
20352 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
20353 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
20354 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
20355 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
20356 * config/i386/i386.c (ix86_target_string): Ditto.
20357 (output_pic_addr_const): Ditto.
20358 (print_operand): Ditto.
20359
20360 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
20361
20362 * combine.c (find_split_point): Add third argument. Use it
20363 to find nested multiply-accumulate instructions. Adjust calls.
20364 (try_combine): Adjust call to find_split_point.
20365
20366 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
20367
20368 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
20369
20370 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
20371
20372 PR tree-optimization/41442
20373 * fold-const.c (merge_truthop_with_opposite_arm): New function.
20374 (fold_binary_loc): Call it.
20375
20376 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
20377
20378 * toplev.c (general_init): Set default for fdiagnostics-show-option.
20379 * opts.c (common_handle_option): Allow disabling it.
20380 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
20381
20382 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
20383
20384 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
20385 between modes if both types are integral.
20386
20387 2010-04-23 Richard Guenther <rguenther@suse.de>
20388
20389 PR tree-optimization/43572
20390 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
20391
20392 2010-04-23 Richard Guenther <rguenther@suse.de>
20393
20394 PR lto/43455
20395 * tree-inline.c (tree_can_inline_p): Also check compatibility
20396 of return types.
20397
20398 2010-04-23 Martin Jambor <mjambor@suse.cz>
20399
20400 PR tree-optimization/43846
20401 * tree-sra.c (struct access): New flag grp_assignment_read.
20402 (build_accesses_from_assign): Set grp_assignment_read.
20403 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
20404 (enum mark_read_status): New type.
20405 (analyze_access_subtree): Propagate grp_assignment_read, create
20406 accesses also if both direct_read and root->grp_assignment_read.
20407
20408 2010-04-23 Martin Jambor <mjambor@suse.cz>
20409
20410 PR middle-end/43835
20411 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
20412 function does not have type attributes.
20413
20414 2010-04-23 Richard Guenther <rguenther@suse.de>
20415
20416 PR lto/42653
20417 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
20418 of FUNCTION_DECLs.
20419
20420 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20421
20422 * sese.h (create_if_region_on_edge): Remove.
20423
20424 * sese.c (create_if_region_on_edge): Make static.
20425
20426 * tree-inline.c: Do not include ggc.h.
20427
20428 * expr.c: Do not include ggc.h.
20429
20430 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
20431 dependencies.
20432
20433 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
20434
20435 PR target/43744
20436 * config/sh/sh.c (find_barrier): Don't emit a constant pool
20437 in the middle of insns for casesi_worker_2.
20438
20439 2010-04-22 David Edelsohn <edelsohn@gnu.org>
20440
20441 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
20442
20443 2010-04-22 Ira Rosen <irar@il.ibm.com>
20444
20445 PR tree-optimization/43842
20446 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
20447 loop unrolling in update of exit phis. Fix comment.
20448 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
20449 least two reduction statements in the loop before starting SLP
20450 analysis.
20451
20452 2010-04-22 Nick Clifton <nickc@redhat.com>
20453
20454 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
20455
20456 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
20457
20458 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
20459 to simplify a + ~a.
20460
20461 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20462
20463 * tree-parloops.c (loop_parallel_p): New argument
20464 parloop_obstack. Pass it down.
20465 (parallelize_loops): New variable parloop_obstack. Initialize it,
20466 pass it down, free it.
20467
20468 * tree-loop-linear.c (linear_transform_loops): Pass down
20469 lambda_obstack.
20470
20471 * tree-data-ref.h (lambda_compute_access_matrices): New argument
20472 of type struct obstack *.
20473
20474 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
20475 scratch_obstack. Initialize it, pass down, free it.
20476
20477 * lambda.h (lambda_loop_new): Remove.
20478 (lambda_matrix_new, lambda_matrix_inverse)
20479 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
20480 argument of type struct obstack *.
20481
20482 * lambda-trans.c (lambda_trans_matrix_new): New argument
20483 lambda_obstack. Pass it down, use obstack allocation for ret.
20484 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
20485 it down.
20486
20487 * lambda-mat.c (lambda_matrix_get_column)
20488 (lambda_matrix_project_to_null): Remove.
20489 (lambda_matrix_new): New argument lambda_obstack. Use obstack
20490 allocation for mat.
20491 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
20492 lambda_obstack.
20493
20494 * lambda-code.c (lambda_loop_new): New function.
20495 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
20496 (lambda_compute_auxillary_space, lambda_compute_target_space)
20497 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
20498 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
20499 (build_access_matrix): New argument lambda_obstack. Use obstack
20500 allocation for am.
20501 (lambda_compute_step_signs, lambda_compute_access_matrices): New
20502 argument lambda_obstack. Pass it down.
20503
20504 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
20505
20506 * optabs.h (expand_widening_mult): Declare.
20507
20508 2010-04-22 Richard Guenther <rguenther@suse.de>
20509
20510 PR tree-optimization/43845
20511 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
20512 lookup the CALL_EXPR function and arguments.
20513
20514 2010-04-22 Nick Clifton <nickc@redhat.com>
20515
20516 * config/stormy16/stormy16.c
20517 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
20518 * config/stormy16/stormy16.h: Tidy up formatting.
20519 (DONT_USE_BUILTIN_SETJMP): Remove definition.
20520 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
20521 (ineqbranchsi): Delete pattern.
20522 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
20523 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
20524 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
20525 stormy16-lib2-ucmpsi2.c.
20526
20527 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
20528
20529 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
20530 df_simulate_find_noclobber_defs as appropriate. Keep track of an
20531 extra set merge_set_noclobber, and use it to relax the final test
20532 slightly.
20533 * df.h (df_simulate_find_noclobber_defs): Declare.
20534 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
20535 conditional defs.
20536 (df_simulate_find_noclobber_defs): New function.
20537
20538 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
20539
20540 * config/i386/i386.md: Use {} around multi-line preparation statements.
20541
20542 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20543
20544 * c-tree.h (push_init_level, pop_init_level, set_init_index)
20545 (process_init_element): New argument of type struct obstack *.
20546
20547 * c-typeck.c (push_init_level, pop_init_level, set_designator)
20548 (set_init_index, set_init_label, set_nonincremental_init)
20549 (set_nonincremental_init_from_string, find_init_member)
20550 (output_init_element, output_pending_init_elements)
20551 (process_init_element): New argument braced_init_obstack. Pass it
20552 down.
20553 (push_range_stack, add_pending_init): New argument
20554 braced_init_obstack. Use obstack allocation.
20555
20556 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
20557 braced_init_obstack. Pass it down.
20558 (c_parser_braced_init): New variables ret, braced_init_obstack.
20559 Initialize obstack, pass it down and finally free it.
20560
20561 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
20562
20563 PR middle-end/29274
20564 * tree-pass.h (pass_optimize_widening_mul): Declare.
20565 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
20566 gate_optimize_widening_mul): New static functions.
20567 (pass_optimize_widening_mul): New.
20568 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
20569 <case MULT_EXPR>: Remove support for widening multiplies.
20570 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
20571 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
20572 simplify_gen_unary rather than directly building extensions.
20573 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
20574 WIDEN_MULT_EXPR.
20575 * expmed.c (expand_widening_mult): New function.
20576 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
20577
20578 2010-04-21 Jan Hubicka <jh@suse.cz>
20579
20580 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
20581 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
20582 * lto-wpa-fixup.c: Remove.
20583 * Makefile.in (lto-wpa-fixup.o): Remove.
20584 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
20585 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
20586 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
20587
20588 2010-04-21 Jan Hubicka <jh@suse.cz>
20589
20590 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
20591 add write_optimization_summary, read_optimization_summary.
20592 (ipa_write_summaries_of_cgraph_node_set): Remove.
20593 (ipa_write_optimization_summaries): Declare.
20594 (ipa_read_optimization_summaries): Declare.
20595 * ipa-cp.c (pass_ipa_cp): Update.
20596 * ipa-reference.c (pass_ipa_reference): Update.
20597 * ipa-pure-const.c (pass_ipa_pure_const): Update.
20598 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
20599 Update.
20600 * ipa-inline.c (pass_ipa_inline): Update.
20601 * ipa.c (pass_ipa_whole_program): Update.
20602 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
20603 * passes.c (ipa_write_summaries_1): Do not test wpa.
20604 (ipa_write_optimization_summaries_1): New.
20605 (ipa_write_optimization_summaries): New.
20606 (ipa_read_summaries): Do not test ltrans.
20607 (ipa_read_optimization_summaries_1): New.
20608 (ipa_read_optimization_summaries): New.
20609
20610 2010-04-21 Jan Hubicka <jh@suse.cz>
20611
20612 * lto-cgraph.c (lto_output_node): Do not output comdat groups
20613 for boundary nodes.
20614 (output_cgraph): Do not arrange comdat groups for boundary nodes.
20615
20616 2010-04-21 Jakub Jelinek <jakub@redhat.com>
20617
20618 PR debug/40040
20619 * dwarf2out.c (add_name_and_src_coords_attributes): Add
20620 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
20621
20622 2010-04-21 Jan Hubicka <jh@suse.cz>
20623
20624 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
20625
20626 2010-04-21 Jan Hubicka <jh@suse.cz>
20627
20628 * varpool.c (decide_is_variable_needed): Variable is always needed
20629 during ltrans.
20630
20631 2010-04-21 Jan Hubicka <jh@suse.cz>
20632
20633 * opts.c (decode_options): Enable pure-const pass for whopr.
20634
20635 2010-04-21 Jan Hubicka <jh@suse.cz>
20636
20637 * cgraph.c (dump_cgraph_node): Dump also assembler name.
20638 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
20639 at WPA dumping.
20640 (cgraph_decide_inlining): Do not expect callee to be removed in all
20641 cases.
20642
20643 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
20644
20645 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
20646
20647 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
20648
20649 * config/i386/i386.md (x86_shrd): Add athlon_decode and
20650 amdfam10_decode attributes.
20651
20652 2010-04-21 Jakub Jelinek <jakub@redhat.com>
20653
20654 PR middle-end/43570
20655 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
20656 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
20657 (lower_copyprivate_clauses): Use private var in outer
20658 context instead of original var. Make sure the types
20659 are correct for VLAs.
20660
20661 2010-04-21 Richard Guenther <rguenther@suse.de>
20662
20663 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
20664 to non-pointer objects.
20665
20666 2010-04-21 Jakub Jelinek <jakub@redhat.com>
20667
20668 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
20669 last chain entry if it starts with the still current label.
20670 (add_location_or_const_value_attribute): Check that
20671 loc_list->first->next is NULL instead of comparing ->first with ->last.
20672 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
20673 to add_var_loc_to_decl.
20674
20675 * dwarf2out.c (output_call_frame_info): For dw_cie_version
20676 >= 4 add also address size and segment size fields into CIE header.
20677
20678 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
20679 long as address size is the same as sizeof (void *) and
20680 segment size is 0.
20681 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
20682 address size or segment size is unexpected, return DW_EH_PE_omit.
20683 (classify_object_over_fdes): If get_cie_encoding returned
20684 DW_EH_PE_omit, return -1.
20685 (init_object): If classify_object_over_fdes returned -1,
20686 pretend there were no FDEs at all.
20687
20688 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
20689
20690 * config/i386/i386.md (bswap<mode>2): Macroize expander from
20691 bswap{si,di}2 using SWI48 mode iterator.
20692 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
20693 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
20694 set modrm attribute of bswap insn to 0 and remove length attribute.
20695 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
20696 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
20697 set mode attribute to <MODE> and remove length attribute.
20698
20699 2010-04-20 James E. Wilson <wilson@codesourcery.com>
20700
20701 PR rtl-optimization/43520
20702 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
20703 zero available registers.
20704
20705 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20706
20707 * builtins.c (fold_builtin_cproj): Fold more cases.
20708
20709 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20710
20711 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
20712 (fold_builtin_1): Fold builtin cproj.
20713 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
20714 Use ATTR_CONST_NOTHROW_LIST.
20715
20716 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
20717
20718 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
20719 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
20720 ffsi2_no_cmove for !TARGET_CMOVE.
20721 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
20722 (ffssi2): Remove expander.
20723 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
20724 mode iterator.
20725 (ctz<mode>2): Ditto from ctz{si,di}2.
20726 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
20727 mode iterator.
20728 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
20729 mode iterator.
20730
20731 2010-04-20 Jakub Jelinek <jakub@redhat.com>
20732
20733 * dwarf2out.c (AT_linkage_name): Define.
20734 (clone_as_declaration): Handle DW_AT_linkage_name.
20735 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
20736 of DW_AT_MIPS_linkage_name.
20737 (move_linkage_attr): Likewise.
20738 (dwarf2out_finish): Likewise.
20739
20740 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
20741
20742 PR middle-end/41952
20743 * fold-const.c (fold_comparison): New folding rule.
20744
20745 2010-04-20 Anatoly Sokolov <aesok@post.ru>
20746
20747 * double-int.h (double_int_setbit): Declare.
20748 * double-int.c (double_int_setbit): New function.
20749 * rtl.h (immed_double_int_const): Declare.
20750 * emit-rtl.c (immed_double_int_const): New function.
20751 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
20752 and immed_double_int_const functions.
20753 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
20754 expand_copysign_bit): (Ditto.).
20755 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
20756 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
20757 * dojump.c (prefer_and_bit_test): (Ditto.).
20758 * expr.c (convert_modes, reduce_to_bit_field_precision,
20759 const_vector_from_tree): (Ditto.).
20760 * expmed.c (mask_rtx, lshift_value): (Ditto.).
20761
20762 2010-04-20 Jan Hubicka <jh@suse.cz>
20763
20764 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
20765 (dump_cgraph_node): Dump new flags.
20766 * cgraph.h (struct cgraph_node): Add flags
20767 reachable_from_other_partition and in_other_partition.
20768 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
20769 other partition can not be removed.
20770 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
20771 the other partition must be output; silence sanity checking on
20772 leaking functions bodies from other paritition.
20773 * lto-cgraph.c (reachable_from_other_partition_p): New function.
20774 (lto_output_node): Output new flags; do not sanity check that inline
20775 clones are output; drop lto_forced_extern_inline_p code; do not mock
20776 visibility flags at partition boundaries.
20777 (add_node_to): New function.
20778 (output_cgraph): Use it to sort functions so masters appear before
20779 clones.
20780 (input_overwrite_node): Input new flags.
20781 * passes.c (ipa_write_summaries): Do not call
20782 lto_new_extern_inline_states.
20783 * lto-section-out.c (forced_extern_inline,
20784 lto_new_extern_inline_states lto_delete_extern_inline_states,
20785 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
20786 * lto-streamer.h (lto_new_extern_inline_states,
20787 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
20788 lto_forced_extern_inline_p): Kill.
20789
20790 2010-04-20 Richard Guenther <rguenther@suse.de>
20791
20792 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
20793 from vars that can have pointers.
20794 (process_constraint): Dump useless constraints.
20795
20796 2010-04-20 Richard Guenther <rguenther@suse.de>
20797
20798 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
20799 (dump_sa_points_to_info): Remove asserts.
20800 (init_base_vars): nothing_id isn't an escape point nor does it
20801 have pointers.
20802
20803 2010-04-20 Jakub Jelinek <jakub@redhat.com>
20804
20805 * tree.h (TYPE_REF_IS_RVALUE): Define.
20806 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
20807 should_move_die_to_comdat, prune_unused_types_walk): Handle
20808 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
20809 (modified_type_die, gen_reference_type_die): Emit
20810 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
20811 if TYPE_REF_IS_RVALUE and -gdwarf-4.
20812
20813 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20814
20815 PR target/43635
20816 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
20817 calls for -fpic -m31 if they have been sibcall optimized.
20818
20819 2010-04-19 James E. Wilson <wilson@codesourcery.com>
20820
20821 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
20822 ar.lc fixed and call-used.
20823
20824 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
20825
20826 2010-04-19 Jan Hubicka <jh@suse.cz>
20827
20828 * opts.c (decode_options): Disable whpr incompatible passes.
20829 * lto/lto.c (lto_1_to_1_map): Skip clones.
20830 (read_cgraph_and_symbols): Do not mark everything as needed.
20831 (do_whole_program_analysis): Do map only after optimizing;
20832 set proper cgraph_state; use passmanager.
20833
20834 2010-04-19 DJ Delorie <dj@redhat.com>
20835
20836 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
20837 POINTER_PLUS_EXPR and fix them.
20838
20839 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
20840
20841 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
20842 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
20843 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
20844 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
20845 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
20846 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
20847 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
20848 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
20849 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
20850 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
20851 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
20852
20853 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
20854
20855 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
20856 (check_cond_move_block): Likewise.
20857 (cond_move_process_if_block): Likewise.
20858 (noce_find_if_block): Improve formatting.
20859 (find_if_header): Pass 0 to memset and tweak conditions.
20860 (cond_exec_find_if_block): Fix long lines and tweak conditions.
20861
20862 2010-04-19 Jakub Jelinek <jakub@redhat.com>
20863
20864 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
20865 for -gdwarf-4.
20866
20867 PR middle-end/43337
20868 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
20869 with non-local decl doesn't need chain.
20870
20871 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
20872
20873 * ira-color.c (allocno_reload_assign): Avoid accumulating
20874 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
20875
20876 2010-04-19 Martin Jambor <mjambor@suse.cz>
20877
20878 * gimple.h (create_tmp_reg): Declare.
20879 * gimplify.c (create_tmp_reg): New function.
20880 (gimplify_return_expr): Use create_tmp_reg.
20881 (gimplify_omp_atomic): Likewise.
20882 (gimple_regimplify_operands): Likewise.
20883 * tree-dfa.c (make_rename_temp): Likewise.
20884 * tree-predcom.c (predcom_tmp_var): Likewise.
20885 (reassociate_to_the_same_stmt): Likewise.
20886 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
20887 (get_replaced_param_substitute): Likewise.
20888 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
20889 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
20890 * tree-ssa-pre.c (get_representative_for): Likewise.
20891 (create_expression_by_pieces): Likewise.
20892 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
20893 (create_tailcall_accumulator): Likewise.
20894
20895 2010-04-19 Martin Jambor <mjambor@suse.cz>
20896
20897 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
20898 new_stmt.
20899 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
20900
20901 2010-04-19 Richard Guenther <rguenther@suse.de>
20902
20903 PR tree-optimization/43796
20904 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
20905 from SCEV in the lattice.
20906 (vrp_visit_phi_node): Dump change.
20907
20908 2010-04-19 Richard Guenther <rguenther@suse.de>
20909
20910 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
20911 * configure: Re-generated.
20912
20913 2010-04-19 Richard Guenther <rguenther@suse.de>
20914
20915 PR tree-optimization/43783
20916 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
20917 constant ARRAY_REF operands two and three if possible.
20918
20919 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
20920
20921 PR target/43766
20922 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
20923
20924 2010-04-19 Jie Zhang <jie@codesourcery.com>
20925
20926 PR target/43662
20927 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
20928
20929 2010-04-19 Ira Rosen <irar@il.ibm.com>
20930
20931 PR tree-optimization/37027
20932 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
20933 and macro to access it.
20934 (vectorizable_reduction): Add argument.
20935 (vect_get_slp_defs): Likewise.
20936 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
20937 statements for possible use in SLP.
20938 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
20939 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
20940 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
20941 add new argument.
20942 (vectorizable_reduction): Likewise.
20943 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
20944 vect_get_slp_defs.
20945 (vectorizable_type_demotion, vectorizable_type_promotion,
20946 vectorizable_store): Likewise.
20947 (vect_analyze_stmt): Update call to vectorizable_reduction.
20948 (vect_transform_stmt): Likewise.
20949 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
20950 (vect_build_slp_tree): Fix indentation. Check that there are no loads
20951 from different interleaving chains in same node.
20952 (vect_slp_rearrange_stmts): New function.
20953 (vect_supported_load_permutation_p): Allow load permutations for
20954 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
20955 inside SLP nodes if necessary.
20956 (vect_analyze_slp_instance): Handle reductions.
20957 (vect_analyze_slp): Try to build SLP instances originating from groups
20958 of reductions.
20959 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
20960 (vect_get_constant_vectors): Create initial vectors for reductions
20961 according to reduction code. Add new argument.
20962 (vect_get_slp_defs): Add new argument, pass it to
20963 vect_get_constant_vectors.
20964 (vect_schedule_slp_instance): Remove SLP tree root statements.
20965
20966 2010-04-19 Jakub Jelinek <jakub@redhat.com>
20967
20968 * tree.h (ENUM_IS_SCOPED): Define.
20969 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
20970 for ENUM_IS_SCOPED enums.
20971
20972 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
20973
20974 * fold-const.c (fold_comparison): Use ssizetype.
20975 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
20976 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
20977 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
20978 * tree-object-size.c (compute_object_sizes): Use size_type_node.
20979
20980 * tree.h (initialize_sizetypes): Remove parameter.
20981 (build_common_tree_nodes): Remove second parameter.
20982 * stor-layout.c (initialize_sizetypes): Remove parameter.
20983 Always create an unsigned type.
20984 (set_sizetype): Assert that the passed type is unsigned and simplify.
20985 * tree.c (build_common_tree_nodes): Remove second parameter.
20986 Adjust call to initialize_sizetypes.
20987 * c-decl.c (c_init_decl_processing): Remove second argument in call to
20988 build_common_tree_nodes.
20989
20990 2010-04-18 Matthias Klose <doko@ubuntu.com>
20991
20992 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
20993
20994 2010-04-18 Ira Rosen <irar@il.ibm.com>
20995
20996 PR tree-optimization/43771
20997 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
20998 load permutation doesn't have gaps.
20999
21000 2010-04-18 Jan Hubicka <jh@suse.cz>
21001
21002 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
21003 (sse_prologue_save_insn expander): Use new pattern.
21004 (sse_prologue_save_insn1): New pattern and splitter.
21005 (sse_prologue_save_insn): Update to deal also with 64bit aligned
21006 blocks.
21007 * i386.c (setup_incoming_varargs_64): Do not compute jump
21008 destination here.
21009 (ix86_gimplify_va_arg): Update alignment needed.
21010 (ix86_local_alignment): Do not align all local arrays to 128bit.
21011
21012 2010-04-17 Jan Hubicka <jh@suse.cz>
21013
21014 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
21015
21016 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
21017
21018 * arm.md (negdi2): Remove redundant code to force values into a
21019 register.
21020
21021 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
21022
21023 * arm/bpabi.S: Add EABI alignment attributes to objects.
21024 * arm/bpabi-v6m.S: Likewise.
21025 * arm/crti.asm: Likewise.
21026 * arm/crtn.asm: Likewise.
21027 * arm/lib1funcs.asm: Likewise.
21028 * arm/libunwind.S: Likewise.
21029
21030 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
21031
21032 * arm-protos.h (tune_params): New structure.
21033 * arm.c (current_tune): New variable.
21034 (arm_constant_limit): Delete.
21035 (struct processors): Add pointer to the tune parameters.
21036 (arm_slowmul_tune): New tuning option.
21037 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
21038 (all_cores): Adjust to pick up the tuning model.
21039 (arm_constant_limit): New function.
21040 (arm_override_options): Select the appropriate tuning model. Delete
21041 initialization of arm_const_limit.
21042 (arm_split_constant): Use the new constant-limit model.
21043 (arm_rtx_costs): Pick up the current tuning model.
21044 * arm.md (is_strongarm, is_xscale): Delete.
21045 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
21046 for Xscale variant architectures.
21047 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
21048
21049 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21050
21051 * config/arm/arm.c (arm_gen_constant): Remove unused variable
21052 can_shift.
21053 (arm_rtx_costs_1): Remove unused variable extra_cost.
21054 (arm_unwind_emit_set): Use variable offset.
21055 (thumb1_output_casesi): Remove unused variable flags.
21056
21057 2010-04-16 Jeff Law <law@redhat.com>
21058
21059 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
21060 needing assignment rather than doing a two-phase assignment. Remove
21061 unused variable 'm'.
21062
21063 2010-04-16 Jakub Jelinek <jakub@redhat.com>
21064
21065 PR bootstrap/43767
21066 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
21067
21068 2010-04-16 Doug Kwan <dougkwan@google.com>
21069
21070 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
21071 (next_operand_entry_id): New static variable.
21072 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
21073 (add_to_ops_vec): Assigned unique ID to operand entry.
21074 (struct oecount_s): New field ID.
21075 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
21076 (undistribute_ops_list): Assign unique IDs to oecounts.
21077 (init_reassoc): reset next_operand_entry_id.
21078
21079 2010-04-16 Doug Kwan <dougkwan@google.com>
21080
21081 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
21082 missing left parenthesis.
21083
21084 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
21085
21086 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
21087 *btdi_rex64 using SWI48 mode iterator.
21088 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
21089 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
21090 *jcc_btdi_mask_rex64.
21091
21092 2010-04-16 Anatoly Sokolov <aesok@post.ru>
21093
21094 * double-int.h (tree_to_double_int): Convert to macro.
21095 * double-int.c (tree_to_double_int): Remove.
21096
21097 2010-04-16 Jakub Jelinek <jakub@redhat.com>
21098
21099 PR debug/43762
21100 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
21101 with want_address 2 and in case a single element list might be
21102 possible, call it again with want_address 0.
21103
21104 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21105
21106 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
21107 case 'W' print operands for HI mode.
21108 * config/h8300/h8300.h (Y0, Y2) : New constraints.
21109 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
21110 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
21111 * config/h8300/predicate.md (bit_register_indirect_operand): New.
21112
21113 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
21114
21115 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
21116 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
21117 #xx:3 and #xx:4 mode.
21118
21119 * config/h8300/h8300.md (inverted load with HImode dest): Add
21120 support for H8300SX.
21121
21122 * config/h8300/predicate.md (bit_operand): Allow immediate values that
21123 satisfy 'U' constraint.
21124
21125 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21126
21127 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
21128 * configure: Regenerate.
21129 * config.in: Regenerate.
21130 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
21131 works.
21132
21133 2010-04-16 Richard Guenther <rguenther@suse.de>
21134
21135 * tree.h (struct tree_decl_minimal): Move pt_uid ...
21136 (struct tree_decl_common): ... here.
21137 (DECL_PT_UID): Adjust.
21138 (SET_DECL_PT_UID): Likewise.
21139 (DECL_PT_UID_SET_P): Likewise.
21140
21141 2010-04-16 Richard Guenther <rguenther@suse.de>
21142
21143 PR tree-optimization/43572
21144 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
21145 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
21146 * tree-flow.h (is_call_clobbered): Remove.
21147 * tree-flow-inline.h (is_call_clobbered): Likewise.
21148 * tree-dfa.c (dump_variable): Do not dump call clobber state.
21149 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
21150 (execute_return_slot_opt): Adjust.
21151 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
21152 check for call clobbered vars here.
21153 (find_tail_calls): Move tailcall verification to the
21154 proper place.
21155
21156 2010-04-16 Diego Novillo <dnovillo@google.com>
21157
21158 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
21159
21160 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
21161
21162 PR target/40603
21163 * config/arm/arm.md (cbranchqi4): New pattern.
21164 * config/arm/predicates.md (const0_operand,
21165 cbranchqi4_comparison_operator): New predicates.
21166
21167 2010-04-16 Richard Guenther <rguenther@suse.de>
21168
21169 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
21170 (dump_gimple_stmt): Likewise.
21171
21172 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
21173
21174 * recog.h (struct recog_data): New field is_operator.
21175 (struct insn_operand_data): New field is_operator.
21176 * recog.c (extract_insn): Set recog_data.is_operator.
21177 * genoutput.c (output_operand_data): Emit code to set the
21178 is_operator field.
21179 * reload.c (find_reloads): Use it rather than testing for an
21180 empty constraint string.
21181
21182 PR target/41514
21183 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
21184 If the previous insn is a cbranchsi4_insn with the same arguments,
21185 omit the compare instruction.
21186
21187 * config/arm/arm.md (addsi3_cbranch): If destination is a high
21188 register, inputs must be low registers and we need a low register
21189 scratch. Handle alternative 2 like alternative 3.
21190
21191 2010-04-16 Jakub Jelinek <jakub@redhat.com>
21192
21193 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
21194 don't call get_addr on both. If one expression is a VALUE and
21195 the other a REG, check VALUE's locs if the REG isn't among them.
21196
21197 2010-04-16 Christian Bruel <christian.bruel@st.com>
21198
21199 * config/sh/sh.h (sh_frame_pointer_required): New function.
21200 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
21201 (flag_omit_frame_pointer) Set.
21202 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
21203 (rounded_frame_size): Adjust size with outgoing_args_size.
21204 (sh_set_return_address): Must return from stack pointer.
21205 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
21206 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
21207 (ACCUMULATE_OUTGOING_ARGS): Define.
21208 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
21209 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
21210
21211 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
21212
21213 PR target/43471
21214 * config/sh/sh.c (sh_legitimize_reload_address): Use
21215 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
21216 Remove a unneeded check for offset_base.
21217
21218 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
21219
21220 * configure: Regenerated.
21221
21222 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21223
21224 * config/s390/s390.c (s390_call_save_register_used): Switch back
21225 to HARD_REGNO_NREGS.
21226
21227 2010-04-15 Richard Guenther <rguenther@suse.de>
21228
21229 * alias.c (alias_set_subset_of): Handle alias-set zero
21230 child properly.
21231
21232 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
21233 Julian Brown <julian@codesourcery.com>
21234
21235 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
21236 alternatives according to use of high and low regs.
21237 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
21238 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
21239 optimizing for size on Thumb-2.
21240
21241 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
21242
21243 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
21244
21245 2010-04-15 Richard Guenther <rguenther@suse.de>
21246
21247 * tree-ssa-structalias.c (struct variable_info): Add
21248 is_fn_info flag.
21249 (new_var_info): Initialize it.
21250 (dump_constraints): Support printing last added constraints.
21251 (debug_constraints): Adjust.
21252 (dump_constraint_graph): Likewise.
21253 (make_heapvar_for): Check for NULL cfun.
21254 (get_function_part_constraint): New function.
21255 (get_fi_for_callee): Likewise.
21256 (find_func_aliases): Properly implement IPA PTA constraints.
21257 (process_ipa_clobber): New function.
21258 (find_func_clobbers): Likewise.
21259 (insert_into_field_list_sorted): Remove.
21260 (create_function_info_for): Properly allocate vars for IPA mode.
21261 Do not use insert_into_field_list_sorted.
21262 (create_variable_info_for): Properly generate constraints for
21263 global vars in IPA mode.
21264 (dump_solution_for_var): Always dump the solution.
21265 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
21266 (find_what_var_points_to): Adjust.
21267 (pt_solution_set): Change.
21268 (pt_solution_ior_into): New function.
21269 (pt_solution_empty_p): Export.
21270 (pt_solution_includes_global): Adjust.
21271 (pt_solution_includes_1): Likewise.
21272 (pt_solutions_intersect_1): Likewise.
21273 (dump_sa_points_to_info): Check some invariants.
21274 (solve_constraints): Move constraint dumping ...
21275 (compute_points_to_sets): ... here.
21276 (ipa_pta_execute): ... and here.
21277 (compute_may_aliases): Do not re-compute points-to info
21278 locally if IPA info is available.
21279 (ipa_escaped_pt): New global var.
21280 (ipa_pta_execute): Properly implement IPA PTA.
21281 * tree-into-ssa.c (dump_decl_set): Support dumping
21282 decls not in referenced-vars.
21283 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
21284 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
21285 (dump_points_to_solution): Likewise.
21286 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
21287 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
21288 (remap_gimple_stmt): Reset call clobber/use information if necessary.
21289 (copy_decl_to_var): Copy DECL_PT_UID.
21290 (copy_result_decl_to_var): Likewise.
21291 * tree.c (make_node_stat): Initialize DECL_PT_UID.
21292 (copy_node_stat): Copy it.
21293 * tree.h (DECL_PT_UID): New macro.
21294 (SET_DECL_PT_UID): Likewise.
21295 (DECL_PT_UID_SET_P): Likewise.
21296 (struct tree_decl_minimal): Add pt_uid member.
21297 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
21298 (pt_solution_empty_p): Declare.
21299 (pt_solution_set): Adjust.
21300 (ipa_escaped_pt): Declare.
21301 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
21302 * gimple-pretty-print.c (pp_points_to_solution): New function.
21303 (dump_gimple_call): Dump call clobber/use information.
21304 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
21305 * tree-pass.h (TDF_ALIAS): New dump option.
21306 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
21307 * doc/invoke.texi (-fipa-pta): Update documentation.
21308
21309 2010-04-15 Richard Guenther <rguenther@suse.de>
21310
21311 * Makefile.in (OBJS-common): Add gimple-fold.o.
21312 (gimple-fold.o): New rule.
21313 * tree.h (maybe_fold_offset_to_reference,
21314 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
21315 prototypes ...
21316 * gimple.h: ... here.
21317 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
21318 may_propagate_address_into_dereference): Move prototypes ...
21319 * gimple.h: ... here.
21320 * tree-ssa-ccp.c (get_symbol_constant_value,
21321 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
21322 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
21323 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
21324 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
21325 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
21326 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
21327 gimplify_and_update_call_from_tree): Move ...
21328 * gimple-fold.c: ... here. New file.
21329 (ccp_fold_builtin): Rename to ...
21330 (gimple_fold_builtin): ... this.
21331 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
21332
21333 2010-04-15 Richard Guenther <rguenther@suse.de>
21334
21335 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
21336 fit_double_type, force_fit_type_double, add_double_with_sign,
21337 neg_double, mul_double_with_sign, lshift_double, rshift_double,
21338 lrotate_double, rrotate_double, div_and_round_double): Move ...
21339 * double-int.c: ... here.
21340 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
21341 add_double, neg_double, mul_double_with_sign, mul_double,
21342 lshift_double, rshift_double, lrotate_double, rrotate_double,
21343 div_and_round_double): Move prototypes ...
21344 * double-int.h: ... here.
21345
21346 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
21347
21348 PR target/43742
21349 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
21350 matching constraints to ensure inputs match the output.
21351
21352 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
21353
21354 PR target/43742
21355 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
21356 in an input-only operand.
21357
21358 2010-04-15 Anatoly Sokolov <aesok@post.ru>
21359
21360 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
21361 (double_int_not, double_int_lshift, double_int_rshift): Declare.
21362 (double_int_negative_p): Convert to static inline function.
21363 * double-int.c (double_int_lshift, double_int_lshift): New functions.
21364 (double_int_negative_p): Remove.
21365 * tree.h (lshift_double, rshift_double):
21366 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
21367 * fold-const.c (fold_convert_const_int_from_real,
21368 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
21369 (lshift_double): Change type of arith argument to bool.
21370 (rshift_double): Change type of arith argument to bool. Correct
21371 comment.
21372 * expmed.c (mask_rtx, lshift_value): (Ditto.).
21373
21374 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
21375
21376 PR target/21803
21377 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
21378 at the start and end of the then/else blocks, and omit them from the
21379 conversion.
21380 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
21381 argument; all callers changed. Pass zero to old_insns_match_p instead.
21382 (flow_find_head_matching_sequence): New function.
21383 (old_insns_match_p): Check REG_EH_REGION notes for calls.
21384 * basic-block.h (flow_find_cross_jump,
21385 flow_find_head_matching_sequence): Declare functions.
21386
21387 2010-04-14 Jason Merrill <jason@redhat.com>
21388
21389 PR c++/36625
21390 * c-common.c (attribute_takes_identifier_p): New fn.
21391 * c-common.h: Declare it.
21392
21393 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
21394
21395 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
21396 splitter condition.
21397 (*udivmod<mode>4): Ditto.
21398
21399 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
21400
21401 * config/i386/i386.md (maxmin_int): Rename code attribute from
21402 maxminiprefix and update all users.
21403 (maxmin_float): Ditto from maxminfprefix.
21404 (logic): Ditto from logicprefix.
21405 (absneg_mnemonic): Ditto from absnegprefix.
21406 * config/i386/mmx.md: Update all users of maxminiprefix,
21407 maxminfprefix and logicprefix for rename.
21408 * config/i386/sse.md: Ditto.
21409 * config/i386/sync.md (sync_<code><mode>): Update for
21410 logicprefix rename.
21411
21412 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
21413
21414 PR 42966
21415 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
21416 warnings converted to errors.
21417
21418 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
21419
21420 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
21421 used insn_type variable.
21422 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
21423 to avoid set-but-not-used warning.
21424
21425 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
21426
21427 * df-core.c (df_ref_debug): Change format string placeholder
21428 from 0x%x to %#x.
21429 * dwarf2asm.c (dw2_asm_output_data_raw,
21430 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
21431 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
21432 * dwarf2out.c (output_cfi, output_cfi_directive,
21433 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
21434 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
21435 Ditto.
21436 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
21437 * print-rtl.c (print_rtx): Ditto.
21438
21439 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21440
21441 PR middle-end/42694
21442 * builtins.c (expand_builtin_pow_root): New function to expand pow
21443 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
21444 series of sqrt and cbrt calls under -ffast-math.
21445 (expand_builtin_pow): Call it.
21446
21447 2010-04-14 Michael Matz <matz@suse.de>
21448
21449 PR tree-optimization/42963
21450 * tree-cfg.c (touched_switch_bbs): New static variable.
21451 (group_case_labels_stmt): New function broken out from ...
21452 (group_case_labels): ... here, use the above.
21453 (start_recording_case_labels): Allocate touched_switch_bbs.
21454 (end_recording_case_labels): Deallocate it, call
21455 group_case_labels_stmt.
21456 (gimple_redirect_edge_and_branch): Remember index of affected BB.
21457
21458 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
21459
21460 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
21461 from insn template.
21462
21463 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
21464
21465 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
21466
21467 2010-04-13 Jan Hubicka <jh@suse.cz>
21468
21469 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
21470 of optimized out static functions.
21471 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
21472 cost computation. Also sanity check for overflows.
21473 (update_caller_keys): Update cgraph_edge_badness call; properly
21474 update fibheap and sanity check that it is up to date.
21475 (add_new_edges_to_heap): Update cgraph_edge_badness.
21476 (cgraph_decide_inlining_of_small_function): Likewise;
21477 add sanity checking that badness in heap is up to date;
21478 improve dumping of reason; Update badness of calls to the
21479 offline copy of function currently inlined; dump badness
21480 of functions not inlined because of unit growth limits.
21481
21482 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
21483
21484 PR middle-end/32628
21485 * c-common.c (pointer_int_sum): Disregard overflow that occured only
21486 because of sign-extension change when converting to sizetype here...
21487 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
21488
21489 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
21490 the folding to constants. Remove redundant final conversion.
21491 (fold_binary) <associate>: Do not associate if the re-association of
21492 constants alone overflows.
21493 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
21494 to the end of the list.
21495 (multiple_of_p) <COND_EXPR>: New case.
21496
21497 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
21498
21499 * opt-functions.awk (opt_sanitized_name): New.
21500 (opt_enum): New.
21501 * optc-gen.awk: Use it
21502 * opth-gen.awk: Use it.
21503
21504 2010-04-13 Martin Jambor <mjambor@suse.cz>
21505
21506 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
21507 (sra_modify_assign): Delete stmts loading dead data even if racc has no
21508 children. Call replace_uses_with_default_def_ssa_name to handle
21509 SSA_NAES on lhs.
21510
21511 2010-04-13 Michael Matz <matz@suse.de>
21512
21513 PR middle-end/43730
21514 * builtins.c (expand_builtin_interclass_mathfn): Also create
21515 a register if the predicate doesn't match.
21516
21517 2010-04-13 Diego Novillo <dnovillo@google.com>
21518
21519 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
21520 * c-pch.c: Include timevar.h.
21521 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
21522 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
21523 * ggc-common.c: Include timevar.h.
21524 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
21525 * timevar.def (TV_PCH_SAVE): Define.
21526 (TV_PCH_CPP_SAVE): Define.
21527 (TV_PCH_PTR_REALLOC): Define.
21528 (TV_PCH_PTR_SORT): Define.
21529 (TV_PCH_RESTORE): Define.
21530 (TV_PCH_CPP_RESTORE): Define.
21531
21532 2010-04-13 Michael Matz <matz@suse.de>
21533
21534 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
21535 into MINUS_EXPRs.
21536 (can_reassociate_p): New function.
21537 (break_up_subtract_bb, reassociate_bb): Use it.
21538
21539 2010-04-13 Richard Guenther <rguenther@suse.de>
21540
21541 PR bootstrap/43737
21542 * builtins.c (c_readstr): Fix assert.
21543
21544 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
21545
21546 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
21547 when generating cltd insn.
21548
21549 (*ashl<mode>3_1): Remove special handling for register operand 2.
21550 (*ashlsi3_1_zext): Ditto.
21551 (*ashlhi3_1): Ditto.
21552 (*ashlhi3_1_lea): Ditto.
21553 (*ashlqi3_1): Ditto.
21554 (*ashlqi3_1_lea): Ditto.
21555 (*<shiftrt_insn><mode>3_1): Ditto.
21556 (*<shiftrt_insn>si3_1_zext): Ditto.
21557 (*<shiftrt_insn>qi3_1_slp): Ditto.
21558 (*<rotate_insn><mode>3_1): Ditto.
21559 (*<rotate_insn>si3_1_zext): Ditto.
21560 (*<rotate_insn>qi3_1_slp): Ditto.
21561
21562 2010-04-13 Richard Guenther <rguenther@suse.de>
21563
21564 * tree-ssa-structalias.c (callused_id): Remove.
21565 (call_stmt_vars): New.
21566 (get_call_vi): Likewise.
21567 (lookup_call_use_vi): Likewise.
21568 (lookup_call_clobber_vi): Likewise.
21569 (get_call_use_vi): Likewise.
21570 (get_call_clobber_vi): Likewise.
21571 (make_transitive_closure_constraints): Likewise.
21572 (handle_const_call): Adjust to do per-call call-used handling.
21573 (handle_pure_call): Likewise.
21574 (find_what_var_points_to): Remove general callused handling.
21575 (init_base_vars): Likewise.
21576 (init_alias_vars): Initialize call_stmt_vars.
21577 (compute_points_to_sets): Process call-used and call-clobbered
21578 vars for call statements.
21579 (delete_points_to_sets): Free call_stmt_vars.
21580
21581 2010-04-13 Richard Guenther <rguenther@suse.de>
21582
21583 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21584 Only add RW dependence for dependence distance zero.
21585 Adjust maximal vectorization factor according to dependences.
21586 Move alignment handling ...
21587 (vect_find_same_alignment_drs): ... here. New function.
21588 (vect_analyze_data_ref_dependences): Adjust.
21589 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
21590 (vect_analyze_data_refs): Adjust minimal vectorization factor
21591 according to data references.
21592 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
21593 dependences before determining the vectorization factor.
21594 Analyze alignment after determining the vectorization factor.
21595 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
21596 dependences before alignment.
21597 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
21598 Adjust prototype.
21599 (vect_analyze_data_refs): Likewise.
21600 (MAX_VECTORIZATION_FACTOR): New define.
21601
21602 2010-04-13 Duncan Sands <baldrick@free.fr>
21603
21604 * except.h (lang_eh_type_covers): Remove.
21605 * except.c (lang_eh_type_covers): Likewise.
21606
21607 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21608 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21609
21610 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
21611 * config/s390/s390.c: Replace UNTIS_PER_WORD with
21612 UNITS_PER_LONG where it is ABI relevant.
21613 (s390_return_addr_rtx): Likewise.
21614 (s390_back_chain_rtx): Likewise.
21615 (s390_frame_area): Likewise.
21616 (s390_frame_info): Likewise.
21617 (s390_initial_elimination_offset): Likewise.
21618 (save_gprs): Likewise.
21619 (s390_emit_prologue): Likewise.
21620 (s390_emit_epilogue): Likewise.
21621 (s390_function_arg_advance): Likewise.
21622 (s390_function_arg): Likewise.
21623 (s390_va_start): Likewise.
21624 (s390_gimplify_va_arg): Likewise.
21625 (s390_function_profiler): Likewise.
21626 (s390_optimize_prologue): Likewise.
21627 (s390_rtx_costs): Likewise.
21628 (s390_secondary_reload): Likewise.
21629 (s390_promote_function_mode): Likewise.
21630 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
21631 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
21632 registers available.
21633 (s390_unwind_word_mode): New function.
21634 (s390_function_value): Split 64 bit values into register pair if
21635 used as return value.
21636 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
21637 function call parameters. Handle parallels.
21638 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
21639 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
21640 (DWARF_CIE_DATA_ALIGNMENT): New macro.
21641 (s390_expand_setmem): Remove unused variable src_addr.
21642 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
21643 deal with 64 bit registers.
21644 * config/s390/s390.h: Define __zarch__ predefined macro.
21645 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
21646 (UNITS_PER_LONG): New macro.
21647 * libjava/include/s390-signal.h: Define extended ucontext
21648 structure containing the upper halfs of the 64 bit registers.
21649
21650 2010-04-13 Simon Baldwin <simonb@google.com>
21651
21652 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
21653
21654 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
21655
21656 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
21657 rvalue on the RHS if the LHS is of a non-renamable type.
21658 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
21659
21660 2010-04-13 Matthias Klose <doko@ubuntu.com>
21661
21662 * gcc.c (cc1_options): Handle -iplugindir before processing
21663 the cc1 spec. Only add -iplugindir once.
21664 (cpp_unique_options): Add -iplugindir option if -fplugin* options
21665 found.
21666 * common.opt (iplugindir): Remove `Separate' property, initialize.
21667 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
21668 option.
21669 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
21670 (distclean): Remove plugin dir.
21671 * doc/invoke.texi: Document -iplugindir.
21672
21673 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
21674
21675 * doc/plugins.texi (Loading Plugins): Document short
21676 -fplugin=foo option.
21677 (Plugin API): Mention default_plugin_dir_name function.
21678
21679 * gcc.c (find_file_spec_function): Add new declaration.
21680 (static_spec_func): Use it for "find-file".
21681 (find_file_spec_function): Add new function.
21682 (cc1_options): Add -iplugindir option if -fplugin* options found.
21683
21684 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
21685
21686 * plugin.c (add_new_plugin): Updated comment, and handle short
21687 plugin name.
21688 (default_plugin_dir_name): Added new function.
21689
21690 * common.opt (iplugindir): New option to set the plugin directory.
21691
21692 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
21693
21694 * config/i386/i386.md (any_rotate): New code iterator.
21695 (rotate_insn): New code attribute.
21696 (rotate): Ditto.
21697 (SWIM124): New mode iterator.
21698 (<rotate_insn>ti3): New expander.
21699 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
21700 any_rotate code iterator.
21701 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
21702 using any_rotate code iterator and SWIM124 mode iterator.
21703 (ix86_rotlti3): New insn_and_split pattern.
21704 (ix86_rotrti3): Ditto.
21705 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
21706 ix86_rotl{di,ti}3 patterns.
21707 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
21708 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
21709 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
21710 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
21711 code iterator and SWI mode iterator.
21712 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
21713 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
21714 code iterator.
21715 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
21716 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
21717 (bswap rotatert splitter): Add splitter.
21718 (bswap splitter): Macroize splitter using any_rotate code iterator.
21719 Add insn predicate to split only for TARGET_USE_XCHGB or when
21720 optimizing function for size.
21721
21722 2010-04-12 Steve Ellcey <sje@cup.hp.com>
21723
21724 * config/pa/pa.c (emit_move_sequence): Remove use of
21725 deleted variable flag_argument_noalias.
21726
21727 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21728
21729 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
21730 configurations.
21731 Add to unsupported targets list.
21732 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
21733 sparc*-sun-solaris2.[567]* from target lists.
21734 * configure: Regenerate.
21735 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
21736 removal.
21737 Remove Solaris 7 patch references.
21738 (Specific, sparc-sun-solaris2.7): Removed.
21739 (sparc-sun-solaris2*): Update Solaris 7 example.
21740 (sparc64-*-solaris2*): Likewise.
21741
21742 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21743
21744 * config.build (alpha*-dec-osf4*): Remove.
21745 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
21746 of obsolete configurations.
21747 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
21748 support.
21749 * config/alpha/t-osf4: Renamed to ...
21750 * config/alpha/t-osf5: ... this.
21751 * config/alpha/osf.h: Renamed to ...
21752 * config/alpha/osf5.h: ... this.
21753 Merged old osf5.h contents.
21754 Update comments.
21755 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
21756 (EXTRA_SPECS): Removed.
21757 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
21758 reflect removal of Tru64 UNIX V4.0/V5.0 support.
21759 Document that.
21760
21761 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21762
21763 * doc/contrib.texi (Contributors, Rainer Orth): Update.
21764
21765 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
21766
21767 PR/43702
21768 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
21769 __thiscall convention.
21770
21771 2010-04-12 Steve Ellcey <sje@cup.hp.com>
21772
21773 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
21774 orig_base.
21775 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
21776
21777 2010-04-12 Steve Ellcey <sje@cup.hp.com>
21778
21779 * function.c (assign_parms_initialize_all): Add unused attribute
21780 to fntype.
21781
21782 2010-04-12 Richard Guenther <rguenther@suse.de>
21783
21784 * gsstruct.def (GSS_CALL): New.
21785 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
21786 * gimple.h: Include tree-ssa-alias.h.
21787 (struct gimple_statement_call): New.
21788 (union gimple_statement_struct_d): Add gimple_call member.
21789 (gimple_call_reset_alias_info): Declare.
21790 (gimple_call_use_set): New function.
21791 (gimple_call_clobber_set): Likewise.
21792 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
21793 * gimple.c (gimple_call_reset_alias_info): New function.
21794 (gimple_build_call_1): Call it.
21795 * lto-streamer-in.c (input_gimple_stmt): Likewise.
21796 * tree-inline.c (remap_gimple_stmt): Likewise.
21797 (expand_call_inline): Remove callused handling.
21798 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
21799 * tree-dfa.c (dump_variable): Likewise.
21800 * tree-parloops.c (parallelize_loops): Likewise.
21801 * tree-ssa.c (init_tree_ssa): Likewise.
21802 (delete_tree_ssa): Likewise.
21803 * tree-flow-inline.h (is_call_used): Remove.
21804 * tree-flow.h (struct gimple_df): Remove callused member.
21805 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
21806 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
21807 (ref_maybe_used_by_call_p_1): Simplify.
21808 (call_may_clobber_ref_p_1): Likewise.
21809 * tree-ssa-structalias.c (compute_points_to_sets): Set
21810 the call stmt used and clobbered sets.
21811 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
21812 (find_tail_calls): Verify the tail call.
21813
21814 2010-04-12 Richard Guenther <rguenther@suse.de>
21815
21816 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
21817 single-iteration always-inline inlining.
21818 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
21819 (cgraph_decide_inlining): Do not handle always-inline specially.
21820 (try_inline): Remove always-inline cycle detection special case.
21821 Do not recurse on always-inlines.
21822 (cgraph_early_inlining): Do not iterate if not optimizing.
21823 (cgraph_gate_early_inlining): remove.
21824 (pass_early_inline): Run unconditionally.
21825 (gate_cgraph_decide_inlining): New function.
21826 (pass_ipa_inline): Use it. Do not run the IPA inliner if
21827 not inlining or optimizing.
21828 (cgraph_decide_inlining_of_small_functions): Also consider
21829 always-inline functions.
21830 (cgraph_default_inline_p): Return true for nodes which should
21831 disregard inline limits.
21832 (estimate_function_body_sizes): Assume zero size and time for
21833 nodes which are marked as disregarding inline limits.
21834 (cgraph_decide_recursive_inlining): Do not perform recursive
21835 inlining on always-inline nodes.
21836
21837 2010-04-12 Jakub Jelinek <jakub@redhat.com>
21838
21839 PR bootstrap/43699
21840 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
21841 for exprs satisfying handled_component_p.
21842
21843 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
21844
21845 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
21846 non-constant aggregate elements.
21847
21848 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
21849 is a real initialization.
21850
21851 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
21852
21853 PR c/36774
21854 * c-decl.c (start_function): Move forward check for nested function.
21855
21856 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
21857
21858 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
21859 * config/sh/sh.c: Include reload.h.
21860 (sh_legitimize_reload_address): New.
21861 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
21862 sh_legitimize_reload_address.
21863
21864 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
21865
21866 * config/sh/sh.md (*movqi_pop): New insn pattern.
21867 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
21868
21869 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
21870
21871 * config/i386/i386.md (any_shiftrt): New code iterator.
21872 (shiftrt_insn): New code attribute.
21873 (shiftrt): Ditto.
21874 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
21875 using any_shiftrt code iterator.
21876 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
21877 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
21878 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
21879 pattern from corresponding peephole2 patterns.
21880 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
21881 using any_shiftrt code iterator.
21882 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
21883 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
21884 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
21885 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
21886 *{ashr,lshr}<mode>3_cmp_zext.
21887 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
21888
21889 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
21890
21891 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
21892 scratch register.
21893 (*lshr<mode>3_cconly): Ditto.
21894
21895 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
21896
21897 * config/i386/i386.md (lshr<mode>3): Macroize expander from
21898 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
21899 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
21900 pattern from *lshr{di,ti}3_1 and corresponding splitters using
21901 DWI mode iterator.
21902 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
21903 from corresponding peephole2 patterns.
21904 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
21905 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
21906 and *lshrdi3_1_rex64 using SWI mode iterator.
21907 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
21908 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
21909 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
21910 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
21911 and *lshrdi3_cmp_rex64 using SWI mode iterator.
21912 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
21913 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
21914 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
21915 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
21916 SWI mode iterator.
21917
21918 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
21919
21920 * config/i386/i386.md (ashr<mode>3): Macroize expander from
21921 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
21922 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
21923 pattern from *ashr{di,ti}3_1 and corresponding splitters using
21924 DWI mode iterator.
21925 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
21926 from corresponding peephole2 patterns.
21927 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
21928 (ashrsi3_cvt): Rename from ashrsi3_31.
21929 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
21930 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
21931 and x86_64_shift_adj_3 using SWI48 mode iterator.
21932 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
21933 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
21934 and *ashrdi3_1_rex64 using SWI mode iterator.
21935 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
21936 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
21937 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
21938 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
21939 and *ashrdi3_cmp_rex64 using SWI mode iterator.
21940 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
21941 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
21942 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
21943 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
21944 SWI mode iterator.
21945 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
21946 * config/i386/i386.c (ix86_split_ashr): Update for renamed
21947 x86_shift<mode>_adj_3 expanders.
21948
21949 2010-04-10 Wei Guozhi <carrot@google.com>
21950
21951 PR target/42601
21952 * config/arm/arm.c (arm_pic_static_addr): New function.
21953 (legitimize_pic_address): Call arm_pic_static_addr when it detects
21954 a static symbol.
21955 (arm_output_addr_const_extra): Output expression for new pattern.
21956 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
21957
21958 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
21959
21960 * ira-costs.c (record_reg_classes): Ignore alternatives that are
21961 not enabled.
21962
21963 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
21964 * web.c: Include "insn-config.h" and "recog.h".
21965 (union_match_dups): New function.
21966 (web_main): Call it.
21967 (union_defs): Don't try to recognize match_dups.
21968
21969 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
21970 if doing so would replace the entire pattern.
21971
21972 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
21973
21974 PR target/43707
21975 PR target/43709
21976 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
21977 and splitter pattern. Change splitter operand 1 predicate to
21978 nonmemory_operand.
21979
21980 2010-04-09 Martin Jambor <mjambor@suse.cz>
21981
21982 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
21983 lattices are addresses of CONST_DECLs with the same initial value.
21984 (ipcp_print_all_lattices): Print values of CONST_DECLs.
21985 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
21986
21987 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
21988 Bernd Schmidt <bernds@codesourcery.com>
21989
21990 * loop-invariant.c (replace_uses): New static function.
21991 (move_invariant_reg): Use it to ensure we can replace the uses.
21992
21993 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
21994
21995 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
21996 function template.
21997 (picochip_override_options): Enable section anchors only above -O1.
21998 (picochip_reorg): Fixed a couple of build warnings.
21999
22000 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22001
22002 * configure.ac (plugin -rdynamic test): Log result.
22003 * configure: Regenerate.
22004 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
22005 (RDYNAMIC_SPEC): Define.
22006 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
22007
22008 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22009
22010 * configure.ac: Determine Sun ld version numbers.
22011 (comdat_group): Restrict GNU ld version checks to gld.
22012 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
22013 (enable_comdat): Support --enable-comdat.
22014 * configure: Regenerate.
22015 * doc/install.texi (Configuration): Document --enable-comdat.
22016
22017 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22018
22019 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
22020 * config/sol2-gld.h: ... here.
22021 * config.gcc (sparc*-*-solaris2*): Reflect this.
22022 (i[34567]86-*-solaris2*): Use it.
22023
22024 2010-04-09 Steve Ellcey <sje@cup.hp.com>
22025
22026 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
22027 setup_clocks_p.
22028 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
22029
22030 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
22031
22032 PR 42965
22033 * diagnostic.c (diagnostic_initialize): Initialize
22034 some_warnings_are_errors.
22035 (diagnostic_finish): New.
22036 (diagnostic_action_after_output): Call it before exiting.
22037 (diagnostic_report_diagnostic): Do not print message here. Set
22038 some_warnings_are_errors.
22039 * diagnostic.h (diagnostic_context): Delete
22040 issue_warnings_are_errors_message. Add some_warnings_are_errors.
22041 (diagnostic_finish): Declare.
22042 * toplev.c (toplev_main): Call it before exit.
22043
22044 2010-04-09 Jason Merrill <jason@redhat.com>
22045
22046 PR c++/42623
22047 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
22048 for incomplete type.
22049
22050 PR c++/41788
22051 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
22052 based on a warning flag.
22053
22054 2010-04-09 Richard Guenther <rguenther@suse.de>
22055
22056 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
22057
22058 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
22059
22060 PR bootstrap/43684
22061 * varasm.c (default_assemble_visibility): Wrap vars that are
22062 set, but unused, by targets without GAS.
22063 * config/rs6000/rs6000.c (paired_emit_vector_compare):
22064 Remove set, but unused, vars.
22065 (rs6000_legitimize_tls_address): Likewise.
22066 (altivec_expand_dst_builtin): Likewise.
22067 * config/darwin.c (machopic_classify_symbol): Likewise.
22068 (machopic_indirection_name): Likewise.
22069
22070 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
22071
22072 * config/i386/i386.md (DWI): New mode iterator.
22073 (S): New mode attribute.
22074 (shift_operand): Ditto.
22075 (shift_immediate_operand): Ditto.
22076 (ashl_input_operand): Ditto.
22077 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
22078 using SDWIM mode iterator.
22079 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
22080 pattern from *ashl{di,ti}3_1 and corresponding splitters using
22081 DWI mode iterator.
22082 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
22083 from corresponding peephole2 patterns.
22084 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
22085 and x86_64_shift_adj_1 using SWI48 mode iterator.
22086 (x86_shift<mode>_adj_2): Ditto.
22087 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
22088 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
22089 using SWI48 mode iterator.
22090 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
22091 *ashldi3_cmp_rex64 using SWI mode iterator.
22092 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
22093 *ashldi3_cconly_rex64 using SWI mode iterator.
22094 * config/i386/i386.c (ix86_split_ashl): Update for renamed
22095 x86_shift<mode>_adj_{1,2}.
22096 (ix86_split_ashr): Ditto.
22097 (ix86_split_lshr): Ditto.
22098
22099 2010-04-09 Richard Guenther <rguenther@suse.de>
22100
22101 * target.h (builtin_conversion): Pass in input and output types.
22102 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
22103 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
22104 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
22105 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
22106
22107 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
22108 Handle AVX modes.
22109 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
22110
22111 2010-04-09 Richard Guenther <rguenther@suse.de>
22112
22113 PR target/43152
22114 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
22115
22116 2010-04-09 Richard Guenther <rguenther@suse.de>
22117
22118 * tree-vectorizer.h (struct _stmt_vec_info): Document
22119 that vectype is the type of the LHS.
22120 (supportable_widening_operation, supportable_narrowing_operation):
22121 Get both input and output vector types as arguments.
22122 (vect_is_simple_use_1): Declare.
22123 (get_same_sized_vectype): Likewise.
22124 * tree-vect-loop.c (vect_determine_vectorization_factor):
22125 Set STMT_VINFO_VECTYPE to the vector type of the def.
22126 (vectorizable_reduction): Adjust.
22127 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
22128 Adjust. Specify the output vector type.
22129 (vect_pattern_recog_1): Adjust.
22130 * tree-vect-stmts.c (get_same_sized_vectype): New function.
22131 (vectorizable_call): Adjust.
22132 (vectorizable_conversion): Likewise.
22133 (vectorizable_operation): Likewise.
22134 (vectorizable_type_demotion): Likewise.
22135 (vectorizable_type_promotion): Likewise.
22136 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
22137 the def.
22138 (vect_is_simple_use_1): New function.
22139 (supportable_widening_operation): Get both input and output
22140 vector types.
22141 (supportable_narrowing_operation): Likewise.
22142 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
22143
22144 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
22145
22146 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
22147 __thiscall and _thiscall as predefined macros.
22148 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
22149 thiscall attribute handling.
22150 (ix86_comp_type_attributes): Likewise.
22151 (ix86_function_regparm): Likewise.
22152 (ix86_return_pops_args): Likewise.
22153 (init_cumulative_args): Likewise.
22154 (find_drap_reg): Likewise.
22155 (ix86_static_chain): Likewise.
22156 (x86_this_parameter): Likewise.
22157 (x86_output_mi_thunk): Likewise.
22158 (ix86_attribute_table): Add description for thiscall attribute.
22159 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
22160 * doc/extend.texi: Add documentation for thiscall.
22161
22162 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
22163
22164 PR c++/28584
22165 * c.opt (Wint-to-pointer-cast): Available in C++.
22166 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
22167
22168 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
22169
22170 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
22171 * calls.c (expand_call): Pass the function type to aggregate_value_p.
22172 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
22173 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
22174 function type instead. Reorder and simplify checks.
22175
22176 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
22177
22178 2010-04-08 Jing Yu <jingyu@google.com>
22179 Zdenek Dvorak <ook@ucw.cz>
22180
22181 PR tree-optimization/42720
22182 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
22183 loop unswitch conditions here from ...
22184 (tree_unswitch_single_loop): ... here.
22185
22186 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
22187
22188 * tree-if-conv.c: Fix comments and simplify logic.
22189
22190 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
22191
22192 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
22193 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
22194 (main_tree_if_conversion): Update call to tree_if_conversion.
22195
22196 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
22197
22198 PR 42485
22199 * doc/invoke.texi (-b,-V): Delete.
22200 * doc/tm.texi: Do not mention -b.
22201 * gcc.c (display_help): Delete -b and -V.
22202 (process_command): Delete -b and -V.
22203 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
22204
22205 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
22206 Wolfgang Gellerich <gellerich@de.ibm.com>
22207
22208 Implement target hook for loop unrolling
22209 * target.h (loop_unroll_adjust): Add a new target hook function.
22210 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
22211 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
22212 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
22213 (s390_loop_unroll_adjust): Implement the new target hook for s390.
22214 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
22215 target hook.
22216 (decide_unroll_stupid): Likewise.
22217
22218 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22219
22220 PR target/43643
22221 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
22222
22223 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22224
22225 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
22226 (Specific, *-*-solaris2*): Likewise.
22227 Don't prefer Sun as over GNU as.
22228
22229 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
22230
22231 * config/s390/s390.c (override_options): Adjust the z10 defaults
22232 for max-unroll-times, max-completely-peeled-insns
22233 and max-completely-peel-times.
22234
22235 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22236
22237 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
22238 instructions for z10.
22239 (s390_expand_setmem): Likewise.
22240 (s390_expand_cmpmem): Likewise.
22241
22242 2010-04-08 Richard Guenther <rguenther@suse.de>
22243
22244 PR tree-optimization/43679
22245 * tree-ssa-pre.c (eliminate): Only propagate copies.
22246
22247 2010-04-08 Jakub Jelinek <jakub@redhat.com>
22248
22249 PR bootstrap/43681
22250 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
22251 set but not used variable warning.
22252
22253 2010-04-08 Wei Guozhi <carrot@google.com>
22254
22255 PR target/41653
22256 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
22257 (arm_size_rtx_costs): Call the new function when optimized for size.
22258
22259 2010-04-08 Jakub Jelinek <jakub@redhat.com>
22260
22261 PR debug/43670
22262 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
22263 op0 is not a MEM, just return NULL instead of assertion
22264 failure.
22265 (discover_nonconstant_array_refs): Don't walk debug stmts.
22266
22267 2010-04-08 Doug Kwan <dougkwan@google.com>
22268
22269 * configure.ac: Recognize gold and do not use its version number
22270 to test ld features.
22271 * configure: Regenerate.
22272
22273 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
22274
22275 PR middle-end/40815
22276 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
22277 (negate_value): Move code to push elements to broken_up_substracts ...
22278 (eliminate_plus_minus_pair): ... here. Push operands that have no
22279 negative pair to plus_negates.
22280 (repropagate_negates, init_reassoc, fini_reassoc): Update.
22281
22282 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22283
22284 * doc/install.texi (Configuration): Move description of
22285 --enable-lto, --with-libelf*, --enable-gold from Java section to
22286 general section.
22287
22288 * doc/generic.texi (Working with declarations)
22289 (Function Properties, C and C++ Trees): Fix typos.
22290 * doc/sourcebuild.texi (Top Level): Likewise.
22291
22292 2010-04-07 Jakub Jelinek <jakub@redhat.com>
22293
22294 PR c/18624
22295 * tree.h (DECL_READ_P): Define.
22296 (struct tree_decl_common): Add decl_read_flag.
22297 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
22298 a set but not used warning.
22299 (merge_decls): Merge DECL_READ_P flag.
22300 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
22301 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
22302 * c-common.c (handle_used_attribute, handle_unused_attribute):
22303 Likewise.
22304 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
22305 New prototypes.
22306 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
22307 New functions.
22308 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
22309 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
22310 c_parser_binary_expression, c_parser_cast_expression,
22311 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
22312 Call default_function_array_read_conversion instead of
22313 default_function_array_conversion where needed.
22314 (c_parser_unary_expression, c_parser_conditional_expression,
22315 c_parser_postfix_expression_after_primary, c_parser_initelt):
22316 Likewise. Call mark_exp_read where needed.
22317 (c_parser_statement_after_labels, c_parser_asm_operands,
22318 c_parser_typeof_specifier, c_parser_sizeof_expression,
22319 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
22320 where needed.
22321 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
22322 New.
22323 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
22324 (warn_unused_but_set_parameter): Default to warn_unused
22325 && extra_warnings.
22326 * doc/invoke.texi: Document -Wunused-but-set-variable and
22327 -Wunused-but-set-parameter.
22328
22329 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
22330 used count variable.
22331 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
22332 when operandN variables aren't used in the body of the expander
22333 or splitter.
22334 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
22335 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
22336 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
22337 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
22338 FOR_EACH_IMM_USE_ON_STMT): Likewise.
22339 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
22340 * tree.c (PROCESS_ARG): Likewise.
22341
22342 2010-04-07 Simon Baldwin <simonb@google.com>
22343
22344 * diagnostic.h (diagnostic_override_option_index): New macro to
22345 set a diagnostic's option_index.
22346 * c-tree.h (c_cpp_error): Add warning reason argument.
22347 * opts.c (_warning_as_error_callback): New.
22348 (register_warning_as_error_callback): Store callback for
22349 warnings enabled via enable_warning_as_error.
22350 (enable_warning_as_error): Call callback, minor code tidy.
22351 * opts.h (register_warning_as_error_callback): Declare.
22352 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
22353 response to -Werror=.
22354 (c_common_init_options): Register warning_as_error_callback in opts.c.
22355 * common.opt: Add -Wno-cpp option.
22356 * c-common.c (struct reason_option_codes_t): Map cpp warning
22357 reason codes to gcc option indexes.
22358 * (c_option_controlling_cpp_error): New function, lookup the gcc
22359 option index for a cpp warning reason code.
22360 * (c_cpp_error): Add warning reason argument, call
22361 c_option_controlling_cpp_error for diagnostic_override_option_index.
22362 * doc/invoke.texi: Document -Wno-cpp.
22363
22364 2010-04-07 Richard Guenther <rguenther@suse.de>
22365
22366 * ipa-reference.c (mark_load): Use get_base_address.
22367 (mark_store): Likewise.
22368
22369 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
22370 inserting GIMPLE_NOPs into the IL.
22371 * tree-ssa-structalias.c (get_constraint_for_component_ref):
22372 Explicitly strip handled components and indirect references.
22373
22374 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
22375 folding address expressions.
22376 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
22377 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
22378 operand_equal_p to compare decls.
22379 (ptr_deref_may_alias_decl_p): Likewise.
22380 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
22381 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
22382 Handle reversed comparison ops.
22383 * tree-sra.c (asm_visit_addr): Use get_base_address.
22384 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
22385 * ipa-reference.c (mark_address): Use get_base_address.
22386
22387 2010-04-07 Richard Guenther <rguenther@suse.de>
22388
22389 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
22390 Propagate constants everywhere.
22391
22392 2010-04-07 Jakub Jelinek <jakub@redhat.com>
22393
22394 PR debug/43516
22395 * tree.c (MAX_INT_CACHED_PREC): Define.
22396 (nonstandard_integer_type_cache): New array.
22397 (build_nonstandard_integer_type): Cache results for precision
22398 <= MAX_INT_CACHED_PREC.
22399
22400 2010-04-07 Richard Guenther <rguenther@suse.de>
22401
22402 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
22403 -fargument-noalias-global, -fargument-noalias-anything): Remove.
22404 * common.opt: Likewise.
22405 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
22406 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
22407 (nonoverlapping_memrefs_p): Likewise.
22408 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
22409 * opts.c (common_handle_option): Handle OPT_fargument_alias,
22410 OPT_fargument_noalias, OPT_fargument_noalias_anything and
22411 OPT_fargument_noalias_global for backward compatibility.
22412
22413 2010-04-07 Richard Guenther <rguenther@suse.de>
22414
22415 PR tree-optimization/43270
22416 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
22417 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
22418 * tree-ssa-pre.c (phi_translate_1): Adjust.
22419 (fully_constant_expression): Split out vn_reference handling to ...
22420 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
22421 Fold reads from constant strings.
22422 (vn_reference_lookup): Handle fully constant references.
22423 (vn_reference_lookup_pieces): Likewise.
22424 * Makefile.in (expmed.o-warn): Add -Wno-error.
22425
22426 2010-04-07 Martin Jambor <mjambor@suse.cz>
22427
22428 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
22429
22430 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
22431
22432 PR driver/41594
22433 * gcc.c: Add -static-libstdc++ to list of recognized options.
22434
22435 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22436
22437 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
22438
22439 2010-04-07 Richard Guenther <rguenther@suse.de>
22440
22441 PR middle-end/42617
22442 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
22443 bases build simple mem attributes to retain points-to information.
22444
22445 2010-04-07 Richard Guenther <rguenther@suse.de>
22446
22447 PR middle-end/42617
22448 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
22449 preserve points-to related information.
22450
22451 2010-04-07 Richard Guenther <rguenther@suse.de>
22452
22453 PR middle-end/42617
22454 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
22455 discard plain indirect references.
22456 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
22457 * tree.c (tree_nop_conversion): Likewise.
22458
22459 2010-04-07 Dodji Seketeli <dodji@redhat.com>
22460
22461 PR debug/43628
22462 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
22463
22464 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
22465
22466 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
22467 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
22468
22469 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
22470
22471 * tree-if-conv.c: Fix indentation and comments.
22472
22473 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
22474
22475 * tree-if-conv.c: Sort static functions in topological order.
22476
22477 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
22478
22479 * tree-if-conv.c: Fix indentation and comments.
22480
22481 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
22482
22483 PR middle-end/43519
22484 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
22485 lang_hooks.types.type_for_size instead of
22486 build_nonstandard_integer_type.
22487 When converting an unsigned type to signed, double its precision.
22488 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
22489 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
22490 (graphite_create_new_loop_guard): When ub + 1 wraps around,
22491 use lb <= ub.
22492
22493 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
22494
22495 PR middle-end/43519
22496 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
22497 POINTER_PLUS_EXPR for pointer types.
22498
22499 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
22500
22501 PR middle-end/43519
22502 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
22503 * graphite-clast-to-gimple.c: Include langhooks.h.
22504 (max_signed_precision_type): New.
22505 (max_precision_type): Takes two types as arguments.
22506 (precision_for_value): New.
22507 (precision_for_interval): New.
22508 (gcc_type_for_interval): New.
22509 (gcc_type_for_value): New.
22510 (gcc_type_for_clast_term): New.
22511 (gcc_type_for_clast_red): New.
22512 (gcc_type_for_clast_bin): New.
22513 (gcc_type_for_clast_expr): Split up into several functions.
22514 (gcc_type_for_clast_eq): Rewritten.
22515 (compute_bounds_for_level): New.
22516 (compute_type_for_level_1): New.
22517 (compute_type_for_level): New.
22518 (gcc_type_for_cloog_iv): Removed.
22519 (gcc_type_for_iv_of_clast_loop): Rewritten.
22520 (graphite_create_new_loop): Compute the lower and upper bound types
22521 with gcc_type_for_clast_expr.
22522 (graphite_create_new_loop_guard): Same.
22523 (find_cloog_iv_in_expr): Removed.
22524 (compute_cloog_iv_types_1): Removed.
22525 (compute_cloog_iv_types): Removed.
22526 (gloog): Do not call compute_cloog_iv_types.
22527 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
22528 GBB_CLOOG_IV_TYPES.
22529 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
22530 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
22531 (GBB_CLOOG_IV_TYPES): Removed.
22532
22533 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
22534
22535 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
22536 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
22537 (detect_commutative_reduction): Same.
22538
22539 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
22540
22541 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
22542 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
22543 argument.
22544 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
22545 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
22546 (rewrite_commutative_reductions_out_of_ssa): Same.
22547 * passes.c (execute_function_todo): Call verify_ssa for every pass
22548 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
22549 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
22550 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
22551 with an extra argument.
22552 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
22553 verify_ssa only when the extra argument is true.
22554 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
22555 with an extra argument.
22556 (tree_transform_and_unroll_loop): Same.
22557
22558 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
22559
22560 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
22561 for all the passes of the LNO having LOOP_CLOSED_SSA.
22562 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
22563 * tree-loop-distribution.c (pass_loop_distribution): Same.
22564 * tree-pass.h (TODO_verify_loops): Removed.
22565 * tree-ssa-loop.c (pass_tree_loop_init): Same.
22566 (pass_lim): Same.
22567 (pass_tree_unswitch): Same.
22568 (pass_predcom): Same.
22569 (pass_vectorize): Same.
22570 (pass_linear_transform): Same.
22571 (pass_graphite_transforms): Same.
22572 (pass_iv_canon): Same.
22573 (pass_complete_unroll): Same.
22574 (pass_complete_unrolli): Same.
22575 (pass_parallelize_loops): Same.
22576 (pass_loop_prefetch): Same.
22577 (pass_iv_optimize): Same.
22578
22579 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
22580
22581 PR middle-end/32824
22582 * passes.c (init_optimization_passes): Move pass_lim before
22583 pass_copy_prop and pass_dce_loop.
22584
22585 2010-04-06 Jakub Jelinek <jakub@redhat.com>
22586
22587 PR target/43667
22588 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
22589 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
22590 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
22591 MULTI_* defines for 4 argument vpermil2p* builtins.
22592
22593 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
22594
22595 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
22596 * config/i386/i386.c (x86_maybe_negate_const_int): New.
22597 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
22598 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
22599 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
22600 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
22601 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
22602 Use x86_maybe_negate_const_int to output insn mnemonic.
22603 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
22604 check from instruction predicate. Update comments.
22605 * config/i386/sync.md (sync_add<mode>): Use
22606 x86_maybe_negate_const_int to output insn mnemonic.
22607
22608 2010-04-06 Jan Hubicka <jh@suse.cz>
22609
22610 PR tree-optimization/42906
22611 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
22612 IGNORE_SELF argument. Set visited_control_parents for fully
22613 processed BBs.
22614 (find_obviously_necessary_stmts): Update call of
22615 mark_control_dependent_edges_necessary.
22616 (propagate_necessity): Likewise. Handle PHI edges more curefully.
22617
22618 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
22619
22620 * config/i386/i386.md: Remove comment about 'e' and 'E'
22621 operand modifier.
22622
22623 2010-04-06 Richard Guenther <rguenther@suse.de>
22624
22625 PR tree-optimization/43627
22626 * tree-vrp.c (extract_range_from_unary_expr): Widenings
22627 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
22628 not varying.
22629
22630 2010-04-06 Jakub Jelinek <jakub@redhat.com>
22631
22632 * BASE-VER: Change to 4.6.0.
22633
22634 PR target/43638
22635 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
22636 handling.
22637
22638 2010-04-06 Richard Guenther <rguenther@suse.de>
22639
22640 PR middle-end/43661
22641 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
22642
22643 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22644
22645 * doc/invoke.texi (Optimize Options): Document that LTO
22646 won't remove object access purely due to incompatible
22647 declarations.
22648
22649 2010-04-04 Matthias Klose <doko@ubuntu.com>
22650
22651 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
22652 Initialize variable.
22653
22654 2010-04-03 Richard Guenther <rguenther@suse.de>
22655
22656 PR middle-end/42509
22657 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
22658 require a non-NULL MEM_OFFSET.
22659
22660 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
22661
22662 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
22663 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
22664 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
22665 config/alpha/predicates.md, config/arm/arm.md,
22666 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
22667 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
22668 config/darwin9.h, config/darwin.c, config/darwin.h,
22669 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
22670 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
22671 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
22672 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
22673 config/mips/mips.md, config/mn10300/mn10300.c,
22674 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
22675 config/rs6000/aix.h, config/rs6000/dfp.md,
22676 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
22677 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
22678 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
22679 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
22680 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
22681 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
22682 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
22683 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
22684 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
22685 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
22686 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
22687 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
22688 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
22689 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
22690 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
22691 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
22692 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
22693 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
22694 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
22695 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
22696 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
22697 opt-functions.awk, opth-gen.awk, params.def, passes.c,
22698 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
22699 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
22700 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
22701 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
22702 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
22703 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
22704 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
22705 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
22706 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
22707 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
22708 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
22709 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
22710 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
22711 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
22712
22713 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22714
22715 PR other/43620
22716 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
22717 * aclocal.m4: Regenerate.
22718
22719 2010-04-02 Richard Guenther <rguenther@suse.de>
22720
22721 PR tree-optimization/43629
22722 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
22723 if we have seen a constant value.
22724
22725 2010-04-02 Joseph Myers <joseph@codesourcery.com>
22726
22727 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
22728
22729 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
22730
22731 PR target/43469
22732 * arm.c (legitimize_tls_address): Adjust call to
22733 gen_tls_load_dot_plus_four.
22734 (arm_note_pic_base): New function.
22735 (arm_cannot_copy_insn_p): Use it.
22736 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
22737 constraint.
22738
22739 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22740
22741 PR bootstrap/43531
22742
22743 Revert:
22744 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22745
22746 * Makefile.in ($(out_object_file)): Depend on
22747 gt-$(basename $(notdir $(out_file))).h.
22748
22749 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
22750
22751 * config.gcc (lm32-*-rtems*): Add t-lm32.
22752
22753 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
22754
22755 * config.gcc: Add lm32-*-rtems*.
22756 * config/lm32/rtems.h: New file.
22757
22758 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
22759
22760 PR target/42609
22761 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
22762
22763 2010-04-01 Jakub Jelinek <jakub@redhat.com>
22764
22765 * dwarf2out.c (output_compilation_unit_header): For
22766 -gdwarf-4 use version 4 instead of version 3.
22767 (output_line_info): For version 4 and above emit additional
22768 maximum ops per insn header field.
22769 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
22770
22771 * dwarf2out.c (is_c_family, is_java): Remove.
22772 (lower_bound_default): New function.
22773 (add_bound_info, gen_descr_array_type_die): Use it.
22774
22775 2010-04-01 Dodji Seketeli <dodji@redhat.com>
22776
22777 PR debug/43325
22778 * dwarf2out.c (gen_variable_die): Allow debug info for variable
22779 re-declaration when it happens in a function.
22780
22781 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
22782
22783 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
22784 (cgraph_remove_function_insertion_hook): Same.
22785 (cgraph_call_function_insertion_hooks): Same.
22786
22787 2010-04-01 Richard Guenther <rguenther@suse.de>
22788
22789 PR middle-end/43614
22790 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
22791 and TREE_THIS_VOLATILE.
22792 (copy_ref_info): Likewise.
22793 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
22794 * tree.c (build6_stat): Ignore side-effects of all but arg5
22795 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
22796 TARGET_MEM_REF.
22797
22798 2010-04-01 Richard Guenther <rguenther@suse.de>
22799
22800 PR tree-optimization/43607
22801 * ipa-type-escape.c (check_call): Do not access non-existing
22802 arguments.
22803
22804 2010-04-01 Richard Guenther <rguenther@suse.de>
22805
22806 PR middle-end/43602
22807 Revert
22808 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
22809 Jack Howarth <howarth@bromo.med.uc.edu>
22810
22811 * tree-profile.c (tree_init_ic_make_global_vars): Make static
22812 variables TLS.
22813
22814 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22815
22816 * doc/install.texi (Prerequisites): Document libelf usability on
22817 IRIX 5/6 and Solaris 2.
22818 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
22819 Update GNU as, GNU ld requirements.
22820 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
22821 Document Sun Studio compiler download.
22822 Update and simplify as, ld recommendations.
22823 (Specific, *-*-solaris2.7): Note obsoletion, removal.
22824
22825 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22826
22827 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
22828 with_tune_32 to pentium4.
22829
22830 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
22831
22832 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
22833
22834 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22835
22836 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
22837 obsoletion, removal.
22838 Update IDO URL.
22839 Document GNU as requirement.
22840 Update configure requirements.
22841 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
22842 Recomment IRIX 6.5.18+.
22843 Document IDF/IDL requirement.
22844 Document GNU as requirement.
22845 Document GNU ld bootstrap failure.
22846 Remove freeware.sgi.com reference.
22847
22848 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22849
22850 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
22851 UNIX V4.0, V5.0 obsoletion, removal.
22852 Remove --with-gc=simple reference.
22853 Update VM requirements during bootstrap.
22854 Remove -oldas bootstrap description.
22855 Update binutils reference.
22856 Remove comparison failure note.
22857
22858 2010-03-31 Richard Guenther <rguenther@suse.de>
22859 Zdenek Dvorak <ook@ucw.cz>
22860 Sebastian Pop <sebastian.pop@amd.com>
22861
22862 PR middle-end/43464
22863 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
22864 with multiple arguments.
22865 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
22866
22867 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
22868
22869 * graphite-dependences.c (print_pddr): Call print_pdr with an
22870 extra argument.
22871 * graphite-poly.c (debug_pdr): Add an extra argument for the
22872 verbosity level.
22873 (print_pdr): Same.
22874 (print_pbb_domain): Same.
22875 (print_pbb): Same.
22876 (print_scop_context): Same.
22877 (print_scop): Same.
22878 (print_cloog): Same.
22879 (debug_pbb_domain): Same.
22880 (debug_pbb): Same.
22881 (print_pdrs): Same.
22882 (debug_pdrs): Same.
22883 (debug_scop_context): Same.
22884 (debug_scop): Same.
22885 (debug_cloog): Same.
22886 (print_scop_params): Same.
22887 (debug_scop_params): Same.
22888 (print_iteration_domain): Same.
22889 (print_iteration_domains): Same.
22890 (debug_iteration_domain): Same.
22891 (debug_iteration_domains): Same.
22892 (print_scattering_function): Same.
22893 (print_scattering_functions): Same.
22894 (debug_scattering_function): Same.
22895 (debug_scattering_functions): Same.
22896 * graphite-poly.h (debug_pdr): Update declaration.
22897 (print_pdr): Same.
22898 (print_pbb_domain): Same.
22899 (print_pbb): Same.
22900 (print_scop_context): Same.
22901 (print_scop): Same.
22902 (print_cloog): Same.
22903 (debug_pbb_domain): Same.
22904 (debug_pbb): Same.
22905 (print_pdrs): Same.
22906 (debug_pdrs): Same.
22907 (debug_scop_context): Same.
22908 (debug_scop): Same.
22909 (debug_cloog): Same.
22910 (print_scop_params): Same.
22911 (debug_scop_params): Same.
22912 (print_iteration_domain): Same.
22913 (print_iteration_domains): Same.
22914 (debug_iteration_domain): Same.
22915 (debug_iteration_domains): Same.
22916 (print_scattering_function): Same.
22917 (print_scattering_functions): Same.
22918 (debug_scattering_function): Same.
22919 (debug_scattering_functions): Same.
22920
22921 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
22922
22923 * graphite-poly.c (print_scattering_function_1): New.
22924 (print_scattering_function): Call it.
22925 (print_scop_params): Remove spaces at the end of lines.
22926 (print_cloog): New.
22927 (debug_cloog): New.
22928 * graphite-poly.h (print_cloog): Declared.
22929 (debug_cloog): Declared.
22930
22931 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
22932
22933 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
22934 in loop->header.
22935 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
22936 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
22937 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
22938 to switch between adding the IV bump in loop->latch or in loop->header.
22939
22940 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
22941
22942 * graphite-poly.c (print_scattering_function): Pretty print following
22943 the scoplib format.
22944 (print_pdr): Same.
22945 (print_pbb_domain): Same.
22946 (dump_gbb_cases): Same.
22947 (dump_gbb_conditions): Same.
22948 (print_pdrs): Same.
22949 (print_pbb): Same.
22950 (print_scop_params): Same.
22951 (print_scop_context): Same.
22952 (print_scop): Same.
22953 (print_pbb_body): New.
22954 (lst_indent_to): New.
22955 (print_lst): Start new lines with a #.
22956 * graphite-poly.h (pbb_bb): New.
22957 (pbb_index): Use pbb_bb.
22958 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
22959 disjuncts.
22960 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
22961
22962 2010-03-31 Jakub Jelinek <jakub@redhat.com>
22963
22964 * dwarf2out.c (size_of_die): For -gdwarf-4 use
22965 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
22966 and 0 instead of 1 for dw_val_class_flag.
22967 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
22968 dw_val_class_range_list, dw_val_class_loc_list,
22969 dw_val_class_lineptr and dw_val_class_macptr, use
22970 DW_FORM_flag_present for dw_val_class_flag and
22971 DW_FORM_exprloc for dw_val_class_loc.
22972 (output_die): For -gdwarf-4 print dw_val_class_loc
22973 size as uleb128 instead of 1 or 2 bytes and don't print
22974 anything for dw_val_class_flag.
22975
22976 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
22977 instead of cselib_lookup following by tweaking locs->setting_insn.
22978
22979 PR bootstrap/43596
22980 * cselib.c (cselib_process_insn): Clear cselib_current_insn
22981 even before returning from label, setjmp call or volatile asm
22982 handling.
22983
22984 2010-03-31 Richard Guenther <rguenther@suse.de>
22985
22986 PR middle-end/43600
22987 * cgraphunit.c (cgraph_output_in_order): Do not allocate
22988 temporary data on stack.
22989
22990 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22991
22992 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
22993 (PUSHSECTION_ASM_OP): Remove.
22994 (POPSECTION_ASM_OP): Remove.
22995 (PUSHSECTION_FORMAT): Remove.
22996 * config/sol2.h (PUSHSECTION_FORMAT): Define.
22997 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
22998 * config/sol2.c (solaris_output_init_fini): Use it.
22999
23000 2010-03-31 Jie Zhang <jie@codesourcery.com>
23001
23002 PR 43574
23003 * opt-functions.awk (var_type_struct): Use signed char type
23004 for simple variables.
23005
23006 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23007
23008 * config/sol2.c: Include output.h.
23009 (solaris_assemble_visibility): New function.
23010 * config/t-sol2 (sol2.o): Add output.h dependency.
23011 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
23012 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
23013 Redefine.
23014
23015 2010-03-31 Jakub Jelinek <jakub@redhat.com>
23016
23017 PR target/43580
23018 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
23019 V2SImode or XFmode on PRE_DEC.
23020
23021 PR debug/43557
23022 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
23023 BLKmode.
23024
23025 2010-03-31 Jie Zhang <jie@codesourcery.com>
23026
23027 PR 43562
23028 * reload.h (caller_save_initialized_p): Declare.
23029 * toplev.c (backend_init_target): Don't call
23030 init_caller_save but set caller_save_initialized_p to false.
23031 * caller-save.c (caller_save_initialized_p): Define.
23032 (init_caller_save): Check caller_save_initialized_p.
23033 * ira.c (ira): Call init_caller_save if flag_caller_saves.
23034
23035 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23036
23037 PR target/39048
23038 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
23039 and soft-fp/t-softfp to tmake_file.
23040 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
23041 (LIBGCC2_TF_CEXT): Define.
23042 (TF_SIZE): Define.
23043
23044 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
23045
23046 PR debug/42977
23047 * cselib.c (n_useless_values): Document handling of debug locs.
23048 (n_useless_debug_values, n_debug_values): New variables.
23049 (new_elt_loc_list): Don't add to debug values, keep count.
23050 (promote_debug_loc): New.
23051 (cselib_reset_table): Zero new variables.
23052 (entry_and_rtx_equal_p): Promote debug locs.
23053 (discard_useless_locs): Increment n_useless_debug_values for
23054 debug values.
23055 (remove_useless_values): Adjust n_useless_values and n_debug_values
23056 with n_useless_debug_values.
23057 (add_mem_for_addr): Promote debug locs.
23058 (cselib_lookup_mem): Likewise.
23059 (cselib_lookup_addr): Renamed to...
23060 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
23061 (cselib_log_lookup): ... this. Turn into...
23062 (cselib_lookup_addr): ... new wrapper.
23063 (cselib_lookup_from_insn): New.
23064 (cselib_invalidate_regno): Increment n_useless_debug_values for
23065 debug values.
23066 (cselib_invalidate_mem): Likewise.
23067 (cselib_process_insn): Take n_deleted and n_debug_values into
23068 account to guard remove_useless_value call.
23069 (cselib_finish): Zero n_useless_debug_values.
23070 * cselib.h (cselib_lookup_from_insn): Declare.
23071 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
23072 (sched_analyze_2): Likewise.
23073
23074 2010-03-30 Jakub Jelinek <jakub@redhat.com>
23075
23076 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
23077 functions.
23078 (adjust_mems): Replace narrowing SUBREG of expression containing
23079 just PLUS, MINUS, MULT and ASHIFT of registers and constants
23080 with operations in the narrower mode.
23081
23082 PR debug/43593
23083 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
23084 regs_invalidated_by_call instead all call_used_reg_set registers.
23085
23086 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
23087
23088 PR middle-end/43430
23089 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
23090 pointer comparisons with types_compatible_p.
23091 * tree-vect-stmts.c (vectorizable_call): Same.
23092 (vectorizable_condition): Same.
23093
23094 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23095
23096 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
23097 stack check if the mask would be zero.
23098
23099 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
23100 Jack Howarth <howarth@bromo.med.uc.edu>
23101
23102 * tree-profile.c (tree_init_ic_make_global_vars): Make static
23103 variables TLS.
23104
23105 2010-03-30 Joseph Myers <joseph@codesourcery.com>
23106
23107 PR other/25232
23108 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
23109 and __unordtf2.
23110 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
23111 Include ___unordxf2 and ___unordtf2.
23112 * config/i386/libgcc-glibc.ver: Do not define inheritance from
23113 GCC_4.4.0 here.
23114
23115 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
23116
23117 * config/lm32/t-lm32: New file.
23118 * config.gcc: Use the above file when targetting lm32.
23119
23120 2010-03-28 Duncan Sands <baldrick@free.fr>
23121
23122 * Makefile.in (PLUGIN_HEADERS): Add except.h.
23123
23124 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
23125
23126 PR middle-end/43431
23127 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
23128 Improve vectorization cost model diagnostic.
23129
23130 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
23131
23132 PR middle-end/43436
23133 * tree-vect-data-refs.c (vect_analyze_data_refs): When
23134 compute_data_dependences_for_loop returns false, early exit
23135 and output an extra diagnostic for the failed data reference
23136 analysis.
23137
23138 2010-03-29 Richard Guenther <rguenther@suse.de>
23139
23140 PR tree-optimization/43560
23141 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
23142 (can_sm_ref_p): Treat stores to readonly locations as trapping.
23143
23144 2010-03-29 Jie Zhang <jie@codesourcery.com>
23145
23146 PR 43564
23147 * toplev.c (process_options): Set optimization_default_node
23148 and optimization_current_node.
23149 * opts.c (decode_options): Don't set optimization_default_node
23150 and optimization_current_node.
23151
23152 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
23153
23154 * config/rtems.h: Abandon -qrtems_debug.
23155
23156 2010-03-28 Jan Hubicka <jh@suse.cz>
23157
23158 PR tree-optimization/43505
23159 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
23160 map should not be copied.
23161
23162 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23163
23164 PR middle-end/41674
23165 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
23166 cdtors, set DECL_PRESERVE_P.
23167 * ipa.c (cgraph_externally_visible_p): Return true if declaration
23168 should be preseved.
23169
23170 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
23171
23172 PR tree-optimization/43528
23173 * stor-layout.c (place_field): Check that constant fits into
23174 unsigned HWI when skipping calculation of MS bitfield layout.
23175
23176 2010-03-27 Jan Hubicka <jh@suse.cz>
23177
23178 PR middle-end/43391
23179 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
23180 notice_global_symbol work.
23181
23182 2010-03-27 Jakub Jelinek <jakub@redhat.com>
23183
23184 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
23185 instead of dwarf2out_decl.
23186 (struct var_loc_node): Remove section_label field.
23187 (dwarf2out_function_decl): New function.
23188 (dwarf2out_var_location): Don't set section_label field.
23189 (dwarf2out_begin_function): Don't empty decl_loc_table here.
23190
23191 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23192
23193 PR tree-optimization/43544
23194 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
23195 First argument for builtin vectorized function hook is now a
23196 tree to be able to distinguish between machine specific and
23197 standard builtins.
23198 * targhooks.c (default_builtin_vectorized_function): Ditto.
23199 * targhooks.h (default_builtin_vectorized_function): Ditto.
23200 * target.h (struct gcc_target): Ditto.
23201 * tree-vect-stmts.c (vectorizable_function): Ditto.
23202 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
23203 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
23204 Ditto.
23205
23206 2010-03-26 Joseph Myers <joseph@codesourcery.com>
23207
23208 PR c/43381
23209 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
23210 nested binding iff it is a FUNCTION_DECL.
23211 (store_parm_decls_newstyle): Pass nested=true to bind for
23212 FUNCTION_DECLs amongst parameters.
23213
23214 2010-03-26 Jakub Jelinek <jakub@redhat.com>
23215
23216 * var-tracking.c (vt_expand_loc_callback): Don't run
23217 cselib_expand_value_rtx_cb in dummy mode if
23218 cselib_dummy_expand_value_rtx_cb returned false.
23219
23220 * var-tracking.c (emit_note_insn_var_location): For one part
23221 notes with offset 0, don't add EXPR_LIST around the location.
23222 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
23223 add_location_or_const_value_attribute): Adjust for that change.
23224
23225 PR debug/43540
23226 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
23227 into first operand and location into second.
23228 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
23229 dw_cfi_oprnd_loc for DW_CFA_expression.
23230 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
23231 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
23232 assume first argument is regnum and second argument is location.
23233
23234 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
23235
23236 PR target/42113
23237 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
23238 of scratch register to DImode. Split to DImode comparison operator.
23239 Use SImode subreg of scratch register in the multiplication.
23240 (*cmp_sadd_sidi): Ditto.
23241 (*cmp_ssub_si): Ditto.
23242 (*cmp_ssub_sidi): Ditto.
23243
23244 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
23245
23246 PR target/43524
23247 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
23248 Remove invalid assert and wrong comment.
23249
23250 2010-03-26 Jakub Jelinek <jakub@redhat.com>
23251
23252 PR debug/43516
23253 * flags.h (final_insns_dump_p): New extern.
23254 * final.c (final_insns_dump_p): New variable.
23255 (rest_of_clean_state): Set it before -fdump-final-insns=
23256 dumping, clear afterwards.
23257 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
23258 MEM_ALIAS_SET on MEMs.
23259
23260 2010-03-26 David S. Miller <davem@davemloft.net>
23261
23262 * configure.ac: Fix sparc GOTDATA_OP bug check.
23263 * configure: Rebuild.
23264
23265 2010-03-26 Alan Modra <amodra@gmail.com>
23266
23267 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
23268
23269 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23270
23271 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
23272 TLS_SECTION_ASM_FLAG.
23273
23274 2010-03-25 Jakub Jelinek <jakub@redhat.com>
23275
23276 PR bootstrap/43511
23277 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
23278 Clear first_function_block_is_cold.
23279
23280 PR c/43385
23281 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
23282 argument if the argument is truth_value_p.
23283
23284 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
23285
23286 * config/rs6000/constraints.md: Update copyright year for my changes.
23287
23288 PR target/43484
23289 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
23290 used in reg+reg addressing, swap registers.
23291
23292 2010-03-24 Jakub Jelinek <jakub@redhat.com>
23293
23294 PR debug/43293
23295 * target.h (struct gcc_target): Add code_end hook.
23296 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
23297 if not yet defined.
23298 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
23299 * toplev.c (compile_file): Call targetm.asm_out.code_end
23300 hook before unwind info/debug info output.
23301 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
23302 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
23303 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
23304 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
23305 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
23306 * config/i386/i386.c (ix86_file_end): Renamed to...
23307 (ix86_code_end): ... this. Make static. Don't call
23308 file_end_indicate_exec_stack. Emit unwind info using
23309 final_start_function/final_end_function.
23310 (darwin_x86_file_end): Remove.
23311 (TARGET_ASM_CODE_END): Define.
23312 * config/i386/i386.h (TARGET_ASM_FILE_END,
23313 NEED_INDICATE_EXEC_STACK): Don't define.
23314 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
23315 (TARGET_ASM_FILE_END): Define to darwin_file_end.
23316 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
23317 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
23318
23319 PR target/43498
23320 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
23321 at the beginning and final_end_function at the end.
23322 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
23323
23324 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23325
23326 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
23327 and Sun as TLS syntax.
23328 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
23329 * configure: Regenerate.
23330 * config.in: Regenerate.
23331 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
23332 (default_elf_asm_named_section): Use it.
23333 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
23334 (i386_output_dwarf_dtprel): Likewise.
23335 (output_addr_const_extra): Likewise.
23336 (output_pic_addr_const): Lowercase @GOTTPOFF.
23337 (output_addr_const_extra): Likewise.
23338 (output_pic_addr_const): Lowercase @GOTNTPOFF.
23339 (output_addr_const_extra): Likewise.
23340 (output_pic_addr_const): Lowercase @INDNTPOFF.
23341 (output_addr_const_extra): Likewise.
23342 (output_pic_addr_const): Lowercase @NTPOFF.
23343 (output_addr_const_extra): Likewise.
23344 (output_pic_addr_const): Lowercase @TPOFF.
23345 (output_addr_const_extra): Likewise.
23346 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
23347 (*tls_global_dynamic_64): Likewise.
23348 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
23349 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
23350
23351 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
23352 (ASM_OUTPUT_TLS_COMMON): Use it.
23353 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
23354
23355 PR target/38118
23356 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
23357 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
23358 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
23359 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
23360 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
23361 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
23362
23363 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23364
23365 * config/i386/i386.c (override_options): Don't accept
23366 -mtls-dialect=sun any longer.
23367 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
23368 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
23369 (*tls_local_dynamic_base_32_sun): Likewise.
23370 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
23371
23372 2010-03-24 Jakub Jelinek <jakub@redhat.com>
23373
23374 PR debug/43508
23375 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
23376 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
23377
23378 PR debug/43479
23379 * ira.c (adjust_cleared_regs): New function.
23380 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
23381
23382 PR debug/19192
23383 PR debug/43479
23384 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
23385 from gimple_block.
23386 * expr.c (expand_expr_real): Restore previous
23387 curr_insn_source_location and curr_insn_block after
23388 expand_expr_real_1 call.
23389 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
23390 instead of expand_expr_real_1.
23391
23392 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
23393
23394 PR rtl-optimization/43413
23395 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
23396 hard regs too.
23397
23398 2010-03-22 James E. Wilson <wilson@codesourcery.com>
23399
23400 PR target/43348
23401 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
23402 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
23403
23404 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
23405
23406 * config/i386/i386.c (ix86_target_string): Add -mfma.
23407 Fix a typo in comment.
23408
23409 2010-03-22 Mike Stump <mikestump@comcast.net>
23410
23411 PR target/23071
23412 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
23413 Don't overly align based upon packed packed fields.
23414
23415 2010-03-22 Jason Merrill <jason@redhat.com>
23416
23417 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
23418 Use () rather than [], and move before the element type.
23419
23420 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23421
23422 * doc/configfiles.texi (Configuration Files): Removed
23423 fixinc/Makefile*, intl/Makefile.*.
23424 * doc/makefile.texi: Fixed markup. Abstract from version
23425 control system used.
23426 (Makefile): Removed obsolete java/parse.y example.
23427 * doc/sourcebuild.texi: Likewise.
23428 (Top Level): Added config, gnattools, libdecnumber, libgcc,
23429 libgomp, libssp. Removed fastjar.
23430 (Miscellaneous Docs): Clarify location.
23431 Added COPYING3, COPYING3.LIB.
23432 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
23433
23434 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23435
23436 PR target/38085
23437 * config/i386/i386.c (x86_function_profiler)
23438 [!NO_PROFILE_COUNTERS]: Fix typo.
23439 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
23440 instead of callq.
23441
23442 2010-03-22 Janis Johnson <janis187@us.ibm.com>
23443 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23444
23445 * doc/sourcebuild.texi (Test Directives): Split into six
23446 subsections, with most of the current text in new subsections
23447 Directives, Selectors, and Final Actions.
23448 (Directives): Split list of test directives into multiple
23449 subsubsections.
23450 (Selectors): Describe use and syntax of selectors.
23451 (Effective-Target Keywords): Describe all existing keywords.
23452 (Add Options): Describe features for dg-add-options.
23453 (Require Support): Describe variants of dg-require-support.
23454 (Final Actions): Describe commands to use in dg-final.
23455
23456 2010-03-22 Michael Matz <matz@suse.de>
23457
23458 PR middle-end/43475
23459 * recog.c (validate_replace_rtx_group): Replace also in
23460 REG_EQUAL and REG_EQUIV notes.
23461
23462 2010-03-22 Richard Guenther <rguenther@suse.de>
23463
23464 PR tree-optimization/43390
23465 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
23466 sure vector extracts are type correct.
23467
23468 2010-03-22 Richard Guenther <rguenther@suse.de>
23469
23470 PR middle-end/40106
23471 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
23472 x * sqrt (x) even when optimizing for size if the target
23473 has native support for sqrt.
23474
23475 2010-03-22 Jakub Jelinek <jakub@redhat.com>
23476
23477 * varasm.c (make_decl_rtl_for_debug): Also clear
23478 flag_mudflap for the duration of make_decl_rtl call.
23479
23480 PR debug/43443
23481 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
23482 locs from preserved VALUEs.
23483
23484 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23485
23486 PR middle-end/42718
23487 * pa.md (movmemsi): Set align to one if zero.
23488 (movmemdi): Likewise.
23489
23490 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
23491
23492 PR target/42321
23493 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
23494 with their corresponding prologue pushes.
23495
23496 2010-03-20 Andrew Pinski <pinskia@gmail.com>
23497
23498 PR target/43156
23499 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
23500 at the begining or end.
23501 (spu_expand_epilogue): Likewise.
23502
23503 2010-03-20 Richard Guenther <rguenther@suse.de>
23504
23505 PR rtl-optimization/43438
23506 * combine.c (make_extraction): Properly zero-/sign-extend an
23507 extraction of the low part of a CONST_INT. Also handle
23508 CONST_DOUBLE.
23509
23510 2010-03-19 Mike Stump <mikestump@comcast.net>
23511
23512 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
23513 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
23514 (override_options): Use SUBTARGET32_DEFAULT_CPU.
23515
23516 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
23517
23518 PR c/43211
23519 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
23520 an error.
23521
23522 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
23523
23524 PR rtl-optimization/42258
23525 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
23526 use that may match DEF.
23527
23528 PR target/40697
23529 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
23530 the cost of loading the constant rather than assuming
23531 COSTS_N_INSNS (1).
23532 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
23533 outer code is AND, do the same tests as the andsi3 expander and
23534 return COSTS_N_INSNS (1) if and is cheap.
23535
23536 * optabs.c (avoid_expensive_constant): Fix formatting.
23537
23538 2010-03-19 Michael Matz <matz@suse.de>
23539
23540 PR c++/43116
23541 * attribs.c (decl_attributes): When rebuilding a function pointer
23542 type use the same qualifiers as the original pointer type.
23543
23544 2010-03-19 Martin Jambor <mjambor@suse.cz>
23545
23546 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
23547 and is_gimple_ip_invariant_address.
23548
23549 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23550
23551 Revert
23552 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23553
23554 * config/arm/arm.c (arm_override_options): Turn off
23555 flag_dwarf2_cfi_asm for AAPCS variants.
23556
23557 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23558
23559 PR target/43399
23560 * config/arm/arm.c (emit_multi_reg_push): Update comments.
23561 Use PRE_MODIFY instead of PRE_DEC.
23562 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
23563 (vfp_emit_fstmd): Likewise.
23564
23565 2010-03-19 Michael Matz <matz@suse.de>
23566
23567 PR target/43305
23568 * builtins.c (expand_builtin_interclass_mathfn,
23569 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
23570 if that fails.
23571
23572 2010-03-19 Richard Guenther <rguenther@suse.de>
23573
23574 PR tree-optimization/43415
23575 * tree-ssa-pre.c (phi_translate): Split out worker to ...
23576 (phi_translate_1): ... this.
23577 (phi_translate): Move all caching here. Cache all NARY
23578 and REFERENCE translations.
23579
23580 2010-03-19 David S. Miller <davem@davemloft.net>
23581
23582 With help from Eric Botcazou.
23583 * config/sparc/sparc.c: Include dwarf2out.h.
23584 (emit_pic_helper): Delete.
23585 (pic_helper_symbol_name): Delete.
23586 (pic_helper_emitted_p): Delete.
23587 (pic_helper_needed): New.
23588 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
23589 (get_pc_thunk_name): New.
23590 (load_pic_register): Remove 'delay_pic_helper' arg. Use
23591 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
23592 Set pic_helper_needed to true. Don't call emit_pic_helper.
23593 (sparc_expand_prologue): Update load_pic_register call.
23594 (sparc_output_mi_thunk): Likewise.
23595 (sparc_file_end): Emit a hidden comdat symbol for the PIC
23596 thunk if possible. Output CFI information as needed.
23597
23598 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
23599 Jack Howarth <howarth@bromo.med.uc.edu>
23600
23601 PR target/36399
23602 * config/i386/i386.h: Fix ABI on darwin x86-32.
23603
23604 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
23605
23606 * tree.h: Declare make_decl_rtl_for_debug.
23607 * varasm.c (make_decl_rtl_for_debug): New.
23608 * dwarf2out.c (rtl_for_decl_location): Call it.
23609 * cfgexpand.c (expand_debug_expr): Call it.
23610
23611 2010-03-18 Jakub Jelinek <jakub@redhat.com>
23612
23613 PR bootstrap/43399
23614 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
23615 mem_mode.
23616
23617 PR bootstrap/43403
23618 * var-tracking.c (vt_init_cfa_base): Do nothing if
23619 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
23620
23621 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
23622
23623 PR debug/42873
23624 * var-tracking.c (canonicalize_vars_star): New.
23625 (dataflow_post_merge_adjust): Use it.
23626
23627 2010-03-18 Jakub Jelinek <jakub@redhat.com>
23628
23629 PR debug/43058
23630 * var-tracking.c (non_suitable_const): New function.
23631 (add_uses): For DEBUG_INSNs with constants, don't record any
23632 value, instead just the constant value itself.
23633 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
23634 is not VAR_LOC_UNKNOWN_P, set var to the constant.
23635 (emit_notes_in_bb): Likewise.
23636 (emit_note_insn_var_location): For onepart variables if
23637 cur_loc is a VOIDmode constant, use DECL_MODE.
23638
23639 2010-03-18 Martin Jambor <mjambor@suse.cz>
23640
23641 PR middle-end/42450
23642 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
23643 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
23644 all non-clones. Moved call redirection...
23645 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
23646 (cgraph_materialize_all_clones): Dispose of all
23647 combined_args_to_skip bitmaps.
23648 (verify_cgraph_node): Do not check for edges pointing to wrong
23649 nodes in inline clones.
23650 * tree-inline.c (copy_bb): Call
23651 cgraph_redirect_edge_call_stmt_to_callee.
23652 * ipa.c (cgraph_remove_unreachable_nodes): Call
23653 cgraph_node_remove_callees even when there are used clones.
23654
23655 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
23656
23657 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
23658
23659 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
23660
23661 PR target/43383
23662 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
23663 for 32bit.
23664
23665 2010-03-18 Michael Matz <matz@suse.de>
23666
23667 PR middle-end/43419
23668 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
23669 into sqrt(x) if we need to preserve signed zeros.
23670
23671 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
23672 Eric Botcazou <ebotcazou@adacore.com>
23673
23674 PR rtl-optimization/43360
23675 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
23676 note if we don't know its invariant status.
23677
23678 2010-03-18 Michael Matz <matz@suse.de>
23679
23680 PR tree-optimization/43402
23681 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
23682 PHI chains of ssa names registered for update.
23683
23684 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
23685
23686 PR target/42427
23687 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
23688 non-offsettable and pre_modify update addressing.
23689 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
23690 and "2" alternatives "#".
23691 (*movdd_softfloat32): Make all alternatives "#";
23692 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
23693 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
23694 (*movdf_softfloat32): Make all alternatives "#";
23695 (movdi): Use the new DIFD mode iterator to create a common splitter
23696 for movdi, movdf and movdd patterns.
23697
23698 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
23699
23700 * common.opt (dumpdir): Remove redundant tab.
23701
23702 2010-03-17 Martin Jambor <mjambor@suse.cz>
23703
23704 PR tree-optimization/43347
23705 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
23706 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
23707
23708 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
23709
23710 PR rtl-optimization/42216
23711 * regrename.c (create_new_chain): New function, broken out from...
23712 (scan_rtx_reg): ... here. Call it. Handle the case where we are
23713 appending a use to an empty chain.
23714 (build_def_use): Remove previous changes that convert OP_INOUT to
23715 OP_OUT operands; instead detect the case where an OP_INOUT operand
23716 uses a previously untracked register and create an empty chain for it.
23717
23718 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23719
23720 * doc/extend.texi (Function Attributes): Rewrite unfinished
23721 sentence in ms_abi documentation.
23722
23723 2010-03-17 Alan Modra <amodra@gmail.com>
23724
23725 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
23726 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
23727 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
23728 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
23729
23730 2010-03-16 Richard Henderson <rth@redhat.com>
23731
23732 PR middle-end/43365
23733 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
23734 (lower_try_finally): Save and restore eh_seq around the expansion
23735 of the try-finally.
23736
23737 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
23738
23739 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
23740 statements before splitting block.
23741
23742 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23743
23744 * doc/sourcebuild.texi (Testsuites): Fix markup.
23745 Use pathnames relative to gcc/testsuite.
23746 (Test Directives): Move description of how timeout is determined.
23747 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
23748 (C Tests): Correct gcc.misc-tests directory.
23749 Framework tests now live in gcc.test-framework.
23750
23751 2010-03-16 Richard Guenther <rguenther@suse.de>
23752
23753 PR middle-end/43379
23754 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
23755 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
23756
23757 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
23758 Alexandre Oliva <aoliva@redhat.com>
23759
23760 PR tree-optimization/42917
23761 * lambda-code.c (remove_iv): Skip debug statements.
23762 (lambda_loopnest_to_gcc_loopnest): Likewise.
23763 (not_interesting_stmt): Debug statements are not interesting.
23764
23765 2010-03-16 Jakub Jelinek <jakub@redhat.com>
23766
23767 PR debug/43051
23768 PR debug/43092
23769 * cselib.c (cselib_preserve_constants,
23770 cfa_base_preserved_val): New static variables.
23771 (preserve_only_constants): New function.
23772 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
23773 clear its REG_VALUES. If cselib_preserve_constants, don't
23774 empty the whole hash table, but preserve there VALUEs with constants,
23775 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
23776 (cselib_preserve_cfa_base_value): New function.
23777 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
23778 (cselib_init): Change argument to int bitfield. Set
23779 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
23780 is in it.
23781 (cselib_finish): Clear cselib_preserve_constants and
23782 cfa_base_preserved_val.
23783 * cselib.h (enum cselib_record_what): New enum.
23784 (cselib_init): Change argument to int.
23785 (cselib_preserve_cfa_base_value): New prototype.
23786 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
23787 * dse.c (dse_step1): Likewise.
23788 * cfgcleanup.c (thread_jump): Likewise.
23789 * sched-deps.c (sched_analyze): Likewise.
23790 * gcse.c (local_cprop_pass): Likewise.
23791 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
23792 If FN is non-NULL, call the callback always and whenever it returns
23793 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
23794 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
23795 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
23796 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
23797 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
23798 * var-tracking.c: Include recog.h.
23799 (bb_stack_adjust_offset): Remove.
23800 (vt_stack_adjustments): Don't call it, instead just gather the
23801 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
23802 (adjust_stack_reference): Remove.
23803 (compute_cfa_pointer): New function.
23804 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
23805 (struct adjust_mem_data): New type.
23806 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
23807 functions.
23808 (get_address_mode): New function.
23809 (replace_expr_with_values): Use it.
23810 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
23811 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
23812 (adjust_sets): Remove.
23813 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
23814 Use get_address_mode.
23815 (get_adjusted_src): Remove.
23816 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
23817 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
23818 (add_with_sets): Don't call adjust_sets.
23819 (fp_setter, vt_init_cfa_base): New functions.
23820 (vt_initialize): Change return type to bool. Move most of pool etc.
23821 initialization to the beginning of the function from end. Pass
23822 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
23823 If !frame_pointer_needed, call vt_stack_adjustment before mos
23824 vector is filled, call vt_init_cfa_base if argp/framep has been
23825 eliminated to sp. If frame_pointer_needed and argp/framep has
23826 been eliminated to hard frame pointer, set
23827 hard_frame_pointer_adjustment and call vt_init_cfa_base after
23828 encountering fp setter in the prologue. For MO_ADJUST, call
23829 log_op_type before pusing the op into mos vector, not afterwards.
23830 Call adjust_insn before cselib_process_insn/add_with_sets,
23831 call cancel_changes (0) afterwards.
23832 (variable_tracking_main_1): Adjust for vt_initialize calling
23833 vt_stack_adjustments and returning whether it succeeded or not.
23834
23835 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
23836
23837 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
23838 debug statements.
23839
23840 2010-03-15 Jakub Jelinek <jakub@redhat.com>
23841
23842 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
23843 has been set.
23844 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
23845 drap_reg has not been set.
23846
23847 2010-03-15 Michael Matz <matz@suse.de>
23848
23849 PR middle-end/43300
23850 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
23851 use it to expand block copies.
23852 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
23853 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
23854 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
23855
23856 2010-03-15 Richard Guenther <rguenther@suse.de>
23857
23858 PR tree-optimization/43367
23859 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
23860 elimination check.
23861
23862 2010-03-15 Richard Guenther <rguenther@suse.de>
23863
23864 PR tree-optimization/43317
23865 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
23866
23867 2010-03-15 Martin Jambor <mjambor@suse.cz>
23868
23869 PR tree-optimization/43141
23870 * tree-sra.c (create_abstract_origin): New function.
23871 (modify_function): Call create_abstract_origin.
23872
23873 2010-03-15 Chris Demetriou <cgd@google.com>
23874
23875 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
23876 wasn't copied.
23877
23878 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23879
23880 PR middle-end/43354
23881 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
23882 call insert_out_of_ssa_copy for default definitions.
23883
23884 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23885
23886 * graphite-clast-to-gimple.c (my_long_long): Defined.
23887 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
23888 * graphite-sese-to-poly.c (my_long_long): Defined.
23889 (scop_ivs_can_be_represented): Use it.
23890
23891 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23892
23893 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
23894 graphite-max-bbs-per-function, and loop-block-tile-size.
23895 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
23896 with "maximum".
23897 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
23898
23899 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23900
23901 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
23902 forward declaration.
23903 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
23904 (add_upper_bounds_from_estimated_nit): New.
23905 (build_loop_iteration_domains): Use it.
23906
23907 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23908
23909 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
23910
23911 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23912
23913 PR middle-end/43306
23914 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
23915 should be an INTEGER_CST. Also handle CASE_CONVERT.
23916
23917 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23918
23919 * graphite.c (graphite_initialize): To bound the number of bbs per
23920 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
23921 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
23922 * doc/invoke.texi: Document it.
23923
23924 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23925
23926 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
23927 * graphite-sese-to-poly.h (build_poly_scop): Same.
23928
23929 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
23930
23931 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
23932 the number of parameters in the scop. Use as an upper bound
23933 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
23934 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
23935 * doc/invoke.texi: Document it.
23936
23937 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
23938
23939 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
23940 * doc/c-tree.texi: Remove.
23941 * doc/generic.texi: Merge c-tree.texi here.
23942 * doc/gccint.texi (Trees): Remove menu entry.
23943 (c-tree.texi): Remove @include.
23944 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
23945 * doc/languages.texi (Reading RTL): Ditto.
23946
23947 2010-03-12 Steve Ellcey <sje@cup.hp.com>
23948
23949 PR target/42869
23950 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
23951
23952 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23953
23954 PR middle-end/42431
23955 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
23956 code added to work around reload clobbering CONST insns.
23957
23958 2010-03-12 Jakub Jelinek <jakub@redhat.com>
23959
23960 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
23961 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
23962 (cselib_preserve_only_values): Remove retain argument, don't
23963 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
23964 * cselib.h (cselib_preserve_only_values): Remove retain argument.
23965 * var-tracking.c (micro_operation): Move insn field before union.
23966 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
23967 (struct variable_tracking_info_def): Remove n_mos field, change
23968 mos into a vector of micro_operations.
23969 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
23970 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
23971 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
23972 changing into a vector.
23973 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
23974 come before all other uops generated by add_stores.
23975 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
23976 argument removal.
23977 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
23978 a vector. Run just one pass over the bbs instead of separate counting
23979 and computation phase.
23980 (vt_finalize): Free VTI (bb)->mos vector instead of array.
23981
23982 PR debug/43329
23983 * tree-inline.c (remap_decls): Put old_var rather than origin_var
23984 into *nonlocalized_list vector.
23985 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
23986 even if origin is non-NULL.
23987 (gen_variable_die): Likewise.
23988 (process_scope_var): Don't change origin.
23989 (gen_decl_die): Likewise.
23990 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
23991 before adding new edges instead of after it, fix moving over
23992 debug stmts.
23993
23994 2010-03-11 David S. Miller <davem@davemloft.net>
23995
23996 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
23997 of four.
23998 * configure: Rebuild.
23999
24000 2010-03-11 Martin Jambor <mjambor@suse.cz>
24001
24002 PR tree-optimization/43257
24003 * tree.c (assign_assembler_name_if_neeeded): New function.
24004 (free_lang_data_in_cgraph): Assembler name assignment moved to the
24005 above new function.
24006 * tree.h (assign_assembler_name_if_neeeded): Declare.
24007 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
24008 the function if needed.
24009
24010 2010-03-11 Chris Demetriou <cgd@google.com>
24011
24012 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
24013 include/stdint-gcc.h, and include/stdint.h world-readable.
24014
24015 2010-03-11 Richard Guenther <rguenther@suse.de>
24016
24017 PR tree-optimization/43255
24018 * tree-vrp.c (process_assert_insertions_for): Do not insert
24019 asserts for trivial conditions.
24020
24021 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24022
24023 PR tree-optimization/43280
24024 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
24025 generation. Move calculation of size out of the if branch.
24026 (find_bswap): Modify compare number generation.
24027
24028 2010-03-11 Richard Guenther <rguenther@suse.de>
24029
24030 PR lto/43200
24031 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
24032 (input_gimple_stmt): Fixup handled component types during
24033 operand read. Also fix up decls in ADDR_EXPRs.
24034
24035 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
24036
24037 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
24038 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
24039
24040 2010-03-10 Jan Hubicka <jh@suse.cz>
24041
24042 PR c/43288
24043 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
24044 * varasm.c (get_variable_section): Don't do that here...
24045 (make_decl_rtl): ... and here.
24046 (do_assemble_alias): Produce decl RTL.
24047 (assemble_alias): Likewise.
24048
24049 2010-03-10 Jakub Jelinek <jakub@redhat.com>
24050
24051 PR debug/43290
24052 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
24053 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
24054 of fde->vdrap_reg.
24055 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
24056 (based_loc_descr): Only express drap or vdrap regno based expressions
24057 using DW_OP_fbreg when not optimizing.
24058 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
24059 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
24060 REG_CFA_SET_VDRAP note.
24061
24062 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
24063
24064 PR tree-optimization/43236
24065 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
24066 error in calculation of base address in reverse iteration case.
24067 (generate_builtin): Take number of latch executions if the statement
24068 is in the latch.
24069
24070 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
24071
24072 PR middle-end/42859
24073 * tree-eh.c: Include pointer-set.h.
24074 (lower_eh_dispatch): Filter out duplicate case labels and
24075 remove the unneeded edge when the label is unused. Return
24076 true when some edges are removed.
24077 (execute_lower_eh_dispatch): When any lowering resulted in
24078 removing an edge, also delete unreachable blocks.
24079
24080 2010-03-10 Jakub Jelinek <jakub@redhat.com>
24081
24082 PR bootstrap/43287
24083 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24084 UNSPEC_MACHOPIC_OFFSET.
24085
24086 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
24087
24088 PR target/43294
24089 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
24090 (m68k_delegitimize_address): New function.
24091
24092 2010-03-09 Jakub Jelinek <jakub@redhat.com>
24093
24094 PR debug/43299
24095 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
24096
24097 PR debug/43299
24098 * var-tracking.c (adjust_sets): New function.
24099 (count_with_sets, add_with_sets): Use it.
24100 (get_adjusted_src): New inline function.
24101 (add_stores): Use it.
24102
24103 PR debug/43304
24104 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
24105 call cselib_dummy_expand_value_rtx_cb instead of
24106 cselib_expand_value_rtx_cb.
24107
24108 PR debug/43293
24109 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
24110 * config/i386/i386.c: Include debug.h and dwarf2out.h.
24111 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
24112 and .cfi_endproc around the pic thunks.
24113 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
24114 all queued unwind info register saves are saved before the call.
24115 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
24116 considered as sp-=4 for unwind info and the pop as sp+=4 which
24117 also clobbers dest, but doesn't actually restore it.
24118
24119 PR debug/43290
24120 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
24121 RTX_FRAME_RELATED_P.
24122
24123 2010-03-09 Jie Zhang <jie@codesourcery.com>
24124
24125 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
24126 whitespaces in output template.
24127
24128 2010-03-09 Jie Zhang <jie@codesourcery.com>
24129
24130 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
24131 out array boundary.
24132
24133 2010-03-08 Jakub Jelinek <jakub@redhat.com>
24134
24135 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
24136 builtins.exp in a separate job.
24137
24138 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24139
24140 * graphite-sese-to-poly.c (add_param_constraints): Use
24141 lower_bound_in_type and upper_bound_in_type.
24142
24143 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24144
24145 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
24146 instead of unsigned_type_node.
24147
24148 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24149 Reza Yazdani <reza.yazdani@amd.com>
24150
24151 PR middle-end/43065
24152 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
24153 on pointer type parameters.
24154
24155 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
24156
24157 PR middle-end/42644
24158 PR middle-end/42130
24159 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
24160 handle conversions from pointer to integers.
24161 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
24162 induction variable, to be able to work with code generated by CLooG.
24163 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
24164 (build_poly_scop): Bail out if we cannot codegen a loop.
24165
24166 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
24167
24168 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
24169 code generation with gloog_error.
24170
24171 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24172
24173 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
24174 Call fold_convert on all the returned values.
24175 (expand_scalar_variables_expr): Pass to
24176 expand_scalar_variables_ssa_name the type of the resulting expression.
24177
24178 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24179
24180 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
24181 ppl_min_for_le_pointset.
24182 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
24183 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
24184
24185 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24186
24187 * graphite-dependences.c (map_into_dep_poly): Removed.
24188 (dependence_polyhedron_1): Use combine_context_id_scat.
24189
24190 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24191
24192 * graphite-poly.h (struct poly_scattering): Add layout documentation.
24193 (struct poly_bb): Same.
24194 (combine_context_id_scat): New.
24195
24196 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24197
24198 PR middle-end/42326
24199 * sese.c (name_defined_in_loop_p): Return false for default
24200 definitions.
24201
24202 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24203
24204 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
24205 and clean up the logic.
24206
24207 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
24208
24209 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
24210 early return.
24211
24212 2010-03-08 Jakub Jelinek <jakub@redhat.com>
24213
24214 * var-tracking.c (remove_cselib_value_chains): Define only for
24215 ENABLE_CHECKING.
24216 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
24217 delete_slot_part, emit_notes_for_differences_1): Don't call
24218 remove_cselib_value_chains here.
24219 (set_slot_part, emit_notes_for_differences_2): Don't call
24220 add_cselib_value_chains here.
24221 (preserved_values): New vector.
24222 (preserve_value): New function.
24223 (add_uses, add_stores, vt_add_function_parameters): Use it
24224 instead of cselib_preserve_value.
24225 (changed_values_stack): New vector.
24226 (check_changed_vars_0): New function.
24227 (check_changed_vars_1, check_changed_vars_2): Use it.
24228 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
24229 changed_values_stack VALUEs.
24230 (vt_emit_notes): For all preserved_values call
24231 add_cselib_value_chains. If ENABLE_CHECKING call
24232 remove_cselib_value_chains before verifying value_chains is empty.
24233 Initialize and free changed_values_stack.
24234 (vt_initialize): Initialize preserved_values.
24235 (vt_finalize): Free preserved_values.
24236
24237 2010-03-08 Richard Guenther <rguenther@suse.de>
24238
24239 PR tree-optimization/43269
24240 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
24241 region detection.
24242
24243 2010-03-08 Martin Jambor <mjambor@suse.cz>
24244
24245 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
24246 (ipa_is_param_called): Removed.
24247 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
24248 (ipa_print_node_params): Do not print the called flag.
24249 (ipa_write_node_info): Do not stream the called flag.
24250 (ipa_read_node_info): Likewise.
24251
24252 2010-03-07 Jakub Jelinek <jakub@redhat.com>
24253
24254 PR debug/43176
24255 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
24256 * cselib.c (struct expand_value_data): Add dummy field.
24257 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
24258 dummy to false.
24259 (cselib_dummy_expand_value_rtx_cb): New function.
24260 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
24261 any rtl.
24262 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
24263 * var-tracking.c: Include pointer-set.h.
24264 (variable): Change n_var_parts to char from int. Add
24265 cur_loc_changed and in_changed_variables fields.
24266 (variable_canonicalize): Remove.
24267 (shared_var_p): New inline function.
24268 (unshare_variable): Maintain cur_loc_changed and
24269 in_changed_variables fields. If var was in changed_variables,
24270 replace it there with new_var. Just copy cur_loc instead of
24271 resetting it to something else.
24272 (variable_union): Don't recompute cur_loc. Use shared_var_p.
24273 (dataflow_set_union): Don't call variable_canonicalize.
24274 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
24275 of their DEBUG_EXPR_TREE_DECLs.
24276 (canonicalize_loc_order_check): Verify that cur_loc is NULL
24277 and in_changed_variables and cur_loc_changed is false.
24278 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
24279 and cur_loc_changed. Don't update cur_loc here.
24280 (variable_merge_over_src): Don't call variable_canonicalize.
24281 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
24282 removing loc that is equal to cur_loc, clear cur_loc,
24283 set cur_loc_changed and ensure variable_was_changed is called.
24284 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
24285 compare pointers in cur_loc check, if it is equal to loc,
24286 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
24287 (variable_different_p): Remove compare_current_location argument,
24288 don't compare cur_loc.
24289 (dataflow_set_different_1): Adjust variable_different_p caller.
24290 (variable_was_changed): If dv had some var in changed_variables
24291 already, reset in_changed_variables flag for it and propagate
24292 cur_loc_changed over to the new variable. On empty var
24293 always set cur_loc_changed. Set in_changed_variables on whatever
24294 var is added to changed_variables.
24295 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
24296 Use shared_var_p. When removing loc that is equal to cur_loc,
24297 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
24298 end, don't set it to something else, just call variable_was_changed.
24299 (delete_slot_part): Use shared_var_p. When cur_loc equals to
24300 loc being removed, clear cur_loc and set cur_loc_changed.
24301 Set cur_loc_changed if all locations have been removed.
24302 (struct expand_loc_callback_data): New type.
24303 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
24304 allocated. Always create SUBREGs if simplify_subreg failed.
24305 Prefer to use cur_loc, when that fails and still in
24306 changed_variables (and seen first time) recompute it. Set
24307 cur_loc_changed of variables which had to change cur_loc and
24308 compute elcd->cur_loc_changed if any of the subexpressions used
24309 had to change cur_loc.
24310 (vt_expand_loc): Adjust to pass arguments in
24311 expand_loc_callback_data structure.
24312 (vt_expand_loc_dummy): New function.
24313 (emitted_notes): New variable.
24314 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
24315 that weren't used for any other decl in current
24316 emit_notes_for_changes call call vt_expand_loc_dummy to update
24317 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
24318 first loc_chain location if NULL before. Always use just
24319 cur_loc instead of first loc_chain location. When cur_loc_changed
24320 is false, when not --enable-checking=rtl just don't emit any note.
24321 When rtl checking, compute the note and assert it is the same
24322 as previous note. Clear cur_loc_changed and in_changed_variables
24323 at the end before removing from changed_variables.
24324 (check_changed_vars_3): New function.
24325 (emit_notes_for_changes): Traverse changed_vars to call
24326 check_changed_vars_3 on each changed var.
24327 (emit_notes_for_differences_1): Clear cur_loc_changed and
24328 in_changed_variables. Recompute cur_loc of new_var.
24329 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
24330 (vt_emit_notes): Initialize and destroy emitted_notes.
24331
24332 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
24333
24334 PR rtl-optimization/42220
24335 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
24336 Use verify_reg_tracked to determine if we should use OP_OUT rather
24337 than OP_INOUT.
24338 (build_def_use): If we see an in-out operand for a register that we
24339 know nothing about, treat is an output if possible, fail the block if
24340 not.
24341
24342 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
24343
24344 PR debug/42897
24345 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
24346 permanently.
24347
24348 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
24349
24350 PR debug/42897
24351 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
24352 uses of relevant DEFs that are dead outside the loop too.
24353
24354 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
24355
24356 * var-tracking.c (dataflow_set_merge): Swap src and src2.
24357 Reverted:
24358 2010-01-13 Jakub Jelinek <jakub@redhat.com>
24359 PR debug/41371
24360 * var-tracking.c (values_to_unmark): New variable.
24361 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
24362 values_to_unmark vector. Moved body to...
24363 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
24364 instead queue it into values_to_unmark vector.
24365 (vt_find_locations): Free values_to_unmark vector.
24366
24367 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
24368
24369 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
24370 (site.exp): Export them when plugins are enabled.
24371
24372 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
24373
24374 PR middle-end/42326
24375 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
24376 that contain scevs.
24377 (chrec_fold_multiply): Same.
24378
24379 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
24380
24381 PR c/43248
24382 * c-decl.c (build_compound_literal): Return early if init is
24383 an error_mark_node.
24384
24385 2010-03-04 Martin Jambor <mjambor@suse.cz>
24386
24387 PR tree-optimization/43164
24388 PR tree-optimization/43191
24389 * tree-sra.c (type_consists_of_records_p): Reject records with
24390 zero-size bit-fields at the end.
24391
24392 2010-03-04 Mike Stump <mikestump@comcast.net>
24393
24394 * Makefile.in (TAGS): Remove *.y.
24395
24396 2010-03-04 Richard Guenther <rguenther@suse.de>
24397
24398 PR tree-optimization/40761
24399 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
24400 in reverse order.
24401 (my_rev_post_order_compute): New function.
24402 (init_pre): Call it.
24403
24404 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
24405
24406 PR middle-end/43209
24407 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
24408 decrease the cost of an IV candidate when the cost is infinite.
24409
24410 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24411
24412 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
24413 Use '3DNow!' for the extension of that name, ensure normal space
24414 after the string.
24415 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
24416
24417 2010-03-03 Jeff Law <law@redhat.com>
24418
24419 * PR middle-end/32693
24420 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
24421 than gen_rtx_SUBREG.
24422 (extract_bit_field_1): Likewise.
24423
24424 2010-03-03 Janis Johnson <janis187@us.ibm.com>
24425
24426 * doc/sourcebuild.texi (Test directives): Document that arguments
24427 include-opts and exclude-opts are now optional for dg-skip-if,
24428 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
24429
24430 2010-03-03 Jason Merrill <jason@redhat.com>
24431
24432 PR c++/12909
24433 * cgraph.h (varpool_node): Add extra_name field.
24434 * varpool.c (varpool_extra_name_alias): New.
24435 (varpool_assemble_decl): Emit extra name aliases.
24436 (varpool_mark_needed_node): Look past an extra name alias.
24437 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
24438 * lto-streamer-in.c (lto_input_tree): Read it.
24439 * lto-streamer-out.c (output_unreferenced_globals): Write it.
24440
24441 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
24442
24443 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
24444 (sparc*-*-solaris2*): ...this.
24445
24446 2010-03-03 Jakub Jelinek <jakub@redhat.com>
24447
24448 PR debug/43229
24449 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
24450 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
24451 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
24452 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
24453
24454 PR debug/43237
24455 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
24456 fallthrough to default handling, just with want_address 0 instead of 2.
24457 For single element lists, add_AT_loc directly, otherwise create an
24458 artificial variable DIE and stick location list to it.
24459
24460 PR debug/43177
24461 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
24462 (VAL_EXPR_HAS_REVERSE): Define.
24463 (reverse_op): New function.
24464 (add_stores): For reversible operations add an extra MO_VAL_USE.
24465
24466 2010-03-02 Jason Merrill <jason@redhat.com>
24467
24468 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
24469
24470 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
24471
24472 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
24473 (sparc64-*-linux*): Likewise.
24474 (sparc64-*-solaris2*): Include assembler files before linker ones.
24475 (sparc-*-solaris2*): Simplify and reorder to match previous case.
24476 * config/sparc/gas.h: Delete.
24477 * config/sparc/sol2-64.h: Add copyright notice.
24478 * config/sparc/sol2-gas-bi.h: Likewise.
24479 * config/sparc/sol2-gld.h: Likewise.
24480 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
24481 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
24482 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
24483 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
24484 (sparc_elf_asm_named_section): Rename into...
24485 (sparc_solaris_elf_asm_named_section): ...this. Always define.
24486
24487 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
24488
24489 * config/alpha/alpha.c (override_options): Fix -mtune error message.
24490
24491 2010-03-02 Jeff Law <law@redhat.com>
24492
24493 PR middle-end/42431
24494 * reload1.c (rtx_p, substitute_stack): Declare.
24495 (substitute): Record addresses of changed rtxs.
24496 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
24497 Restore the original rtx when complete.
24498 (reload): Free subsitute_stack when complete.
24499
24500 2010-03-02 Janis Johnson <janis187@us.ibm.com>
24501
24502 * doc/gccint.texi (menu): Add Testsuites as a chapter.
24503 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
24504 new chapter.
24505 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
24506 LTO Testing, gcov Testing, profopt Testing, compat Testing,
24507 Torture Tests): Change from subsection to section.
24508
24509 2010-03-02 Jakub Jelinek <jakub@redhat.com>
24510 Steven Bosscher <steven@gcc.gnu.org>
24511
24512 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
24513 instead of bb.
24514
24515 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
24516
24517 PR middle-end/42640
24518 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
24519 the assignment from the new induction variable to the assignment
24520 of the value from the original loop PHI function.
24521
24522 2010-03-01 Janis Johnson <janis187@us.ibm.com>
24523 Daniel Jacobowitz <dan@codesourcery.com>
24524
24525 * doc/sourcebuild.texi (Test directives): Clarify options to
24526 dg-skip-if.
24527
24528 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24529
24530 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
24531 Disable cfi directives unless GCC and gas agree on using read-only
24532 .eh_frame sections for 64-bit.
24533 * configure: Regenerate.
24534
24535 2010-03-01 Richard Guenther <rguenther@suse.de>
24536
24537 PR tree-optimization/43220
24538 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
24539 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
24540
24541 2010-03-01 Richard Guenther <rguenther@suse.de>
24542 Martin Jambor <mjambor@suse.cz>
24543
24544 PR middle-end/41250
24545 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
24546 gimplified parameters.
24547
24548 2010-03-01 Christian Bruel <christian.bruel@st.com>
24549
24550 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
24551
24552 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
24553
24554 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
24555
24556 2010-03-01 Richard Guenther <rguenther@suse.de>
24557
24558 PR middle-end/43213
24559 * expr.c (expand_assignment): Use the alias-oracle to tell
24560 if the rhs aliases the result decl.
24561
24562 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24563
24564 PR pch/14940
24565 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
24566 to sol_gt_pch_get_address.
24567 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
24568 64-bit, SPARC and x86.
24569 (sol_gt_pch_get_address): New function.
24570
24571 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
24572
24573 * toplev.h (inform_n, error_n): Declare.
24574 * diagnostic.c (inform_n, error_n): New function.
24575
24576 2010-03-01 Jakub Jelinek <jakub@redhat.com>
24577
24578 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
24579 has no rtl yet when processing local_decls, queue it and recheck
24580 if deferred stack allocation hasn't assigned it rtl.
24581
24582 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
24583
24584 * config/sh/sh.c (unspec_bbr_uid): New.
24585 (gen_block_redirect): Use it instead of INSN_UID.
24586 (gen_far_branch): Likewise.
24587
24588 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
24589
24590 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
24591 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
24592
24593 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24594
24595 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
24596 (Warning Options): -Wno-conversion-null is valid for
24597 Objective-C++ as well.
24598 * doc/tm.texi (Named Address Spaces): Likewise.
24599 * doc/plugins.texi (Plugins): Replace TABs with spaces.
24600 * doc/tree-ssa.texi (Tree SSA): Likewise.
24601
24602 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
24603
24604 PR bootstrap/43202
24605 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
24606 by default. Don't set the default arch for
24607 i[34567]86-*-darwin*|x86_64-*-darwin*.
24608
24609 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
24610
24611 PR bootstrap/43202
24612 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
24613 default. Set the default 32bit/64bit archs with $with_arch
24614 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
24615
24616 2010-02-27 Richard Guenther <rguenther@suse.de>
24617
24618 PR tree-optimization/43186
24619 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
24620 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
24621 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
24622 unroller iterations.
24623
24624 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
24625
24626 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
24627 required and i[34567]86-*-* targets don't support 64bit ISA.
24628
24629 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
24630
24631 PR ada/43096
24632 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
24633 the same alias set.
24634
24635 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
24636
24637 * config.gcc: Set the default arch at least to Prescott for
24638 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
24639 if SSE math is enabled.
24640
24641 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
24642
24643 * diagnostic.c (diagnostic_initialize): Update.
24644 (diagnostic_report_diagnostic): Test inhibit_notes_p for
24645 informative notes.
24646 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
24647 (diagnostic_inhibit_notes): New.
24648 * toplev.c (process_options): inhibit notes with -fcompare-debug.
24649
24650 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
24651
24652 PR c/20631
24653 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
24654 * doc/standards.texi: Likewise.
24655 * doc/extend.texi: Likewise.
24656 * doc/trouble.texi: Likewise.
24657 * doc/cppopts.texi: Likewise.
24658 * doc/install.texi: Likewise.
24659 * c.opt (std=c90,std=gnu90): New options.
24660 * c-opts.c (c_common_handle_option): Handle them.
24661
24662 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
24663
24664 PR c/24577
24665 * c-decl.c (undeclared_variable): Use an informative note.
24666
24667 2010-02-26 Richard Guenther <rguenther@suse.de>
24668
24669 PR tree-optimization/43186
24670 * gimple.h (gimple_fold): Remove.
24671 * gimple.c (gimple_fold): Remove. Inline into single user ...
24672 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
24673 Try harder for conditions.
24674
24675 2010-02-26 Jakub Jelinek <jakub@redhat.com>
24676
24677 PR debug/43190
24678 * function.c (used_types_insert): Don't skip through named pointer
24679 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
24680 and it is different from the main variant's type.
24681
24682 2010-02-26 Nick Clifton <nickc@redhat.com>
24683
24684 * config/rx/rx.md (sminsi3): Remove bogus alternative.
24685
24686 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
24687
24688 * config.gcc: Support --with-fpmath=sse for x86.
24689
24690 * config/i386/ssemath.h: New.
24691
24692 * doc/install.texi (--with-fpmath=sse): Documented.
24693
24694 2010-02-26 Richard Guenther <rguenther@suse.de>
24695
24696 PR tree-optimization/43188
24697 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
24698 vector types of over-aligned element type.
24699
24700 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
24701
24702 PR target/43175
24703 * config/i386/i386.c (expand_vec_perm_blend): Use correct
24704 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
24705
24706 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
24707
24708 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
24709
24710 2010-02-26 Jakub Jelinek <jakub@redhat.com>
24711
24712 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
24713 * var-tracking.c: Include diagnostic.h.
24714 (debug_dv): New function.
24715 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
24716
24717 PR debug/43160
24718 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
24719 (add_value_chain, add_value_chains, remove_value_chain,
24720 remove_value_chains): Handle DEBUG_EXPRs.
24721 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
24722
24723 PR debug/43161
24724 * regcprop.c (struct queued_debug_insn_change): New type.
24725 (struct value_data_entry): Add debug_insn_changes field.
24726 (struct value_data): Add n_debug_insn_changes field.
24727 (debug_insn_changes_pool): New variable.
24728 (free_debug_insn_changes, apply_debug_insn_changes,
24729 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
24730 (kill_value_one_regno): Call free_debug_insn_changes if needed.
24731 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
24732 fields.
24733 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
24734 changes for them.
24735 (copyprop_hardreg_forward_1): Don't call apply_change_group for
24736 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
24737 changes, call cprop_find_used_regs via note_stores.
24738 (copyprop_hardreg_forward): When copying vd from predecessor
24739 which has any queued DEBUG_INSN changes, make sure the pointers are
24740 cleared. At the end call df_analyze and then if there are any
24741 DEBUG_INSN changes queued at the end of some basic block for still
24742 live registers, apply them.
24743 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
24744
24745 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
24746
24747 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
24748 (arm*-*-*): Ditto.
24749
24750 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
24751
24752 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
24753 targets. Set the default with_cpu/with_arch from arch/cpu.
24754 Allow x86-64 and native for with_cpu/with_arch.
24755
24756 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
24757
24758 * ebitmap.c: Change calls to verify_popcount with calls to
24759 sbitmap_verify_popcount.
24760 (ebitmap_clear_bit): Fixed map->cacheindex test and
24761 map>cache update when bit clearing results in an empty
24762 element.
24763
24764 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
24765
24766 PR target/43154
24767 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
24768 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
24769 and support both V2DF and V2DI modes.
24770 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
24771 support both V2DF and V2DI modes.
24772 (general): Delete trailing whitespace from a few patterns.
24773
24774 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24775 V2DF/V2DI interleave high/low builtins.
24776
24777 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
24778 new VSX builtins.
24779
24780 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
24781 interleave high/low functions.
24782
24783 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
24784
24785 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
24786 #pragma extern_prefix.
24787
24788 2010-02-25 Jakub Jelinek <jakub@redhat.com>
24789
24790 PR debug/43166
24791 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
24792 BLKmode, assert op0 is a MEM and just adjust its mode.
24793
24794 PR debug/43165
24795 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
24796 if bitpos isn't multiple of mode's bitsize.
24797
24798 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
24799
24800 * c.opt (-ftemplate-depth=): New.
24801 (-ftemplate-depth-): Deprecate.
24802 * optc-gen.awk: Handle -ftemplate-depth=.
24803 * opth-gen.awk: Likewise.
24804 * c-opts.c (c_common_handle_option): Likewise.
24805 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
24806
24807 2010-02-24 Jason Merrill <jason@redhat.com>
24808
24809 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
24810
24811 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24812
24813 * cfg.c (alloc_aux_for_block): Remove inline.
24814 (alloc_aux_for_edge): Likewise.
24815
24816 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24817
24818 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
24819
24820 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24821
24822 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
24823 * config/i386/sol2-gas.h: New file.
24824 * config.gcc (i[34567]86-*-solaris2*): Use it.
24825
24826 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
24827
24828 PR c/43128
24829 * c-typeck.c (ep_convert_and_check): New.
24830 (build_conditional_expr): Use it.
24831 (build_binary_op): Likewise.
24832
24833 2010-02-24 Jakub Jelinek <jakub@redhat.com>
24834
24835 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
24836
24837 PR debug/43150
24838 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
24839 bounds even for -O+.
24840 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
24841 expr needs to have DECL_NAME set.
24842
24843 2010-02-24 Nick Clifton <nickc@redhat.com>
24844
24845 * config/mep/mep.c: Include gimple.h.
24846 (mep_function_uses_sp): Delete unused function.
24847 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
24848 parameters. Use unsigned integers to count args. Return a
24849 NULL_RTX instead of an error_mark_node. Toidy up formatting.
24850
24851 2010-02-23 Jakub Jelinek <jakub@redhat.com>
24852
24853 PR target/43107
24854 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
24855 greater or equal to nelt instead of 2 * nelt.
24856 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
24857 with nelt - 1.
24858
24859 2010-02-23 Jason Merrill <jason@redhat.com>
24860
24861 PR debug/42800
24862 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
24863 in cfun->local_decls even if they have register types.
24864
24865 PR c++/42837
24866 * stor-layout.c (place_field): Don't warn about unnecessary
24867 DECL_PACKED if the type is packed.
24868
24869 2010-02-23 Jakub Jelinek <jakub@redhat.com>
24870
24871 PR target/43139
24872 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
24873 GOTOFF relocs, even when the base reg isn't pic pointer.
24874
24875 2010-02-23 Michael Matz <matz@suse.de>
24876
24877 PR debug/43077
24878 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
24879 (expand_gimple_basic_block): Generate and use debug temps if there
24880 are debug uses left after the last real use of TERed ssa names.
24881 Unlink debug immediate uses when they are expanded.
24882
24883 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
24884
24885 PR 43123
24886 * config/i386/i386.c (override_options): Reorganise to provide
24887 better error messages.
24888
24889 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
24890
24891 PR middle-end/43083
24892 * graphite-scop-detection.c (create_single_exit_edge): Move
24893 the call to find_single_exit_edge to....
24894 (create_sese_edges): ...here. Don't handle multiple edges
24895 exiting the function.
24896 (build_graphite_scops): Don't handle multiple edges
24897 exiting the function.
24898
24899 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
24900
24901 PR middle-end/43097
24902 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
24903 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
24904
24905 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
24906
24907 PR middle-end/43026
24908 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
24909
24910 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
24911
24912 PR c++/43126
24913 * c-typeck.c (convert_arguments): Print declaration location.
24914 * c-common.c (validate_nargs): Rename as
24915 builtin_function_validate_nargs.
24916 (check_builtin_function_arguments): Update.
24917
24918 2010-02-22 Richard Guenther <rguenther@suse.de>
24919
24920 PR lto/43045
24921 * tree-inline.c (declare_return_variable): Use the type of
24922 the call stmt lhs if available.
24923
24924 2010-02-22 Duncan Sands <baldrick@free.fr>
24925
24926 * passes.c (register_pass): Always consider all pass lists when
24927 ref_pass_instance_number is zero.
24928
24929 2010-02-22 Richard Guenther <rguenther@suse.de>
24930
24931 PR tree-optimization/42749
24932 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
24933 parameter. Do arithmetic in the original type.
24934 (update_accumulator_with_ops): Likewise.
24935 (adjust_accumulator_values): Adjust.
24936
24937 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24938
24939 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
24940 (QI to BLKmode splitter): New splitter.
24941
24942 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
24943
24944 * config/i386/i386.c (initial_ix86_tune_features): Turn on
24945 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
24946
24947 2010-02-22 Richard Guenther <rguenther@suse.de>
24948
24949 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
24950
24951 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
24952
24953 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
24954 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
24955 ($(T)crti.o, $(T)crtn.o): Remove rules.
24956
24957 2010-02-21 Tobias Burnus <burnus@net-b.de>
24958
24959 PR fortran/35259
24960 * doc/invoke.texi (-fassociative-math): Document that this
24961 option is automatically enabled for Fortran.
24962
24963 2010-02-20 David S. Miller <davem@davemloft.net>
24964
24965 * configure.ac: Test if linker and assembler properly support
24966 GOTDATA_OP relocations.
24967 * configure: Rebuild.
24968 * config.in: Likewise.
24969 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
24970 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
24971 (movsi_high_pic): Likewise.
24972 (movdi_lo_sum_pic): Likewise.
24973 (movdi_high_pic): Likewise.
24974 (movsi_pic_gotdata_op): New pattern.
24975 (movdi_pic_gotdata_op): Likewise.
24976 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
24977 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
24978
24979 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
24980
24981 PR target/43067
24982 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
24983 attribute to ssemul.
24984 (xop_mulv2div2di3_high): Ditto.
24985
24986 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24987
24988 PR c++/35669
24989 * c.opt (Wconversion-null): New option.
24990 * doc/invoke.texi (Wconversion-null): Document.
24991
24992 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24993
24994 * common.opt (Wlarger-than-): Add Undocumented.
24995
24996 2010-02-19 Mike Stump <mikestump@comcast.net>
24997
24998 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
24999
25000 2010-02-19 Jason Merrill <jason@redhat.com>
25001
25002 PR target/40332
25003 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
25004 * configure: Likewise.
25005
25006 2010-02-20 Alan Modra <amodra@gmail.com>
25007
25008 PR middle-end/42344
25009 * cgraph.h (cgraph_make_decl_local): Declare.
25010 * cgraph.c (cgraph_make_decl_local): New function.
25011 (cgraph_make_node_local): Use it.
25012 * cgraphunit.c (cgraph_function_versioning): Likewise.
25013 * ipa.c (function_and_variable_visibility): Likewise.
25014
25015 2010-02-19 Jakub Jelinek <jakub@redhat.com>
25016
25017 PR bootstrap/43121
25018 * except.c (sjlj_emit_function_enter): Don't call
25019 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
25020 directly.
25021 * rtl.h (add_reg_br_prob_note): Remove prototype.
25022
25023 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
25024
25025 PR 41779
25026 * c-common.c (conversion_warning): Remove widening conversions
25027 before checking the conversion of integers to reals.
25028
25029 2010-02-19 Mike Stump <mikestump@comcast.net>
25030
25031 PR middle-end/43125
25032 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
25033
25034 PR objc/43061
25035 * cgraphunit.c (process_function_and_variable_attributes): Check
25036 DECL_PRESERVE_P instead of looking up attribute "used".
25037 * ipa-pure-const.c (check_decl): Likewise.
25038 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
25039 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
25040 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
25041 instead of attribute "used".
25042 * config/sol2-c.c (solaris_pragma_init): Likewise.
25043 (solaris_pragma_fini): Likewise.
25044
25045 2010-02-19 Jakub Jelinek <jakub@redhat.com>
25046
25047 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
25048 Use XCNEW instead of xcalloc.
25049 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
25050 XNEW instead of xmalloc.
25051 (get_fields): Use XNEWVEC instead of xmalloc.
25052
25053 PR debug/43084
25054 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
25055 populate vars array.
25056 (create_new_general_access): For debug stmts just reset value.
25057 (get_stmt_accesses): For accesses within debug stmts just record them
25058 using add_access_to_acc_sites instead of preventing the peeling or
25059 counting them as accesses.
25060
25061 PR middle-end/42233
25062 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
25063
25064 2010-02-19 Richard Guenther <rguenther@suse.de>
25065
25066 PR tree-optimization/42916
25067 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
25068 instructions.
25069
25070 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
25071
25072 * configure.ac: Replace all uses of changequote in macro arguments
25073 with proper quoting.
25074
25075 2010-02-19 Jakub Jelinek <jakub@redhat.com>
25076
25077 PR middle-end/42233
25078 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
25079
25080 2010-02-19 Richard Guenther <rguenther@suse.de>
25081
25082 PR tree-optimization/42944
25083 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
25084 test for aliasing with errno.
25085
25086 2010-02-19 Jakub Jelinek <jakub@redhat.com>
25087
25088 PR middle-end/42233
25089 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
25090 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
25091 * dojump.c: Include output.h.
25092 (inv): New inline function.
25093 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
25094 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
25095 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
25096 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
25097 argument, pass it down to other calls.
25098 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
25099 add REG_BR_PROB note to the conditional jump.
25100 * cfgexpand.c (add_reg_br_prob_note): Removed.
25101 (expand_gimple_cond): Don't call it, add the probability
25102 as last argument to jumpif_1/jumpifnot_1.
25103 * Makefile.in (dojump.o): Depend on output.h.
25104 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
25105 callers.
25106 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
25107 * stmt.c (do_jump_if_equal): Likewise.
25108 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
25109 * loop-unswitch.c (compare_and_jump_seq): Likewise.
25110 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
25111 Likewise.
25112 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
25113 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
25114 jumpifnot_1 callers.
25115 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
25116 callers.
25117 (store_expr): Adjust jumpifnot caller.
25118 (store_constructor): Adjust jumpif caller.
25119
25120 PR middle-end/42233
25121 * gimplify.c (gimple_boolify): For __builtin_expect call
25122 gimple_boolify also on its first argument.
25123
25124 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
25125
25126 * configure.ac (gnu-unique-object): Wrap regexps using [] in
25127 changequote block.
25128 (__stack_chk_fail): Ditto. Remove quadrigraphs.
25129 * configure: Regenerated.
25130
25131 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25132
25133 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
25134 lang_hooks.types_compatible_p instead of comptypes.
25135
25136 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25137
25138 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
25139 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
25140 if __prefer_thumb__ is defined.
25141
25142 2010-02-18 Martin Jambor <mjambor@suse.cz>
25143
25144 PR tree-optimization/43066
25145 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
25146 array with zero-sized element type.
25147
25148 2010-02-18 Jakub Jelinek <jakub@redhat.com>
25149
25150 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
25151 rtx, allocate struct var_loc_node here and return it to the
25152 caller, and only if it is actually needed.
25153 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
25154 move it earlier and return immediately if it returns NULL.
25155
25156 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
25157
25158 * config/sparc/gas.h: New file. Restore
25159 TARGET_ASM_NAMED_SECTION to its ELF default.
25160 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
25161 check !HAVE_GNU_AS.
25162 * config/sparc/sparc.c (sparc_elf_asm_named_section):
25163 Likewise. Add ATTRIBUTE_UNUSED to prototype.
25164 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
25165 after sparc/sysv4.h.
25166
25167 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
25168
25169 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
25170
25171 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
25172
25173 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
25174 patterns from predicated pattern.
25175
25176 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
25177
25178 PR target/43103
25179 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
25180 for insn mnemonic suffix.
25181
25182 2010-02-17 Richard Guenther <rguenther@suse.de>
25183
25184 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
25185 to loop PHI nodes.
25186
25187 2010-02-17 Jakub Jelinek <jakub@redhat.com>
25188
25189 PR debug/42918
25190 * caller-save.c (save_call_clobbered_regs): If BB ends with
25191 a DEBUG_INSN, move any notes in between last real insn and the last
25192 DEBUG_INSN after the last DEBUG_INSN.
25193
25194 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
25195
25196 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
25197 Fix return type. Fix argument type. Explain meaning of return value.
25198
25199 2010-02-16 Richard Guenther <rguenther@suse.de>
25200
25201 PR tree-optimization/41043
25202 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
25203 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
25204 statements ...
25205 (vrp_visit_phi_node): ... but only for loop PHI nodes.
25206
25207 2010-02-16 Ira Rosen <irar@il.ibm.com>
25208
25209 PR tree-optimization/43074
25210 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
25211 * tree-vect-loop.c (vect_analyze_loop_operations): Add
25212 vectorizable cycles in hybrid SLP check.
25213 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
25214
25215 2010-02-16 Richard Guenther <rguenther@suse.de>
25216
25217 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
25218 (true_dependence): If memrefs_conflict_p computes must-alias
25219 trust it. Move TBAA check after offset-based disambiguation.
25220 (canon_true_dependence): Likewise.
25221
25222 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
25223
25224 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
25225 * doc/invoke.texi: Document it.
25226 * var-tracking.c: Include toplev.h and params.h.
25227 (vt_find_locations): Return bool indicating success. Compute
25228 hash sizes unconditionally. Check new parameter, report.
25229 (variable_tracking_main_1): Check vt_find_locations results and
25230 retry. Renamed from...
25231 (variable_tracking_main): ... this. New wrapper to preserve
25232 flag_var_tracking_assignments.
25233 * Makefile.in (var-tracking.o): Adjust dependencies.
25234
25235 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
25236 Jakub Jelinek <jakub@redhat.com>
25237
25238 PR target/42854
25239 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
25240 if weak_import attribute is present.
25241 * config/darwin.c (machopic_select_section): Likewise.
25242
25243 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
25244
25245 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
25246 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
25247 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
25248 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
25249
25250 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
25251 types.
25252
25253 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
25254 Fix argument types.
25255
25256 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
25257 Rewrite text to refer to the names.
25258
25259 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
25260
25261 * config/i386/i386-builtin-types.def
25262 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
25263 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
25264 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
25265 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
25266 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
25267 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
25268 IX86_BUILTIN_VPERMIL2PS256.
25269 (MULTI_ARG_4_DF2_DI_I): Defined.
25270 (MULTI_ARG_4_DF2_DI_I1): Defined.
25271 (MULTI_ARG_4_SF2_SI_I): Defined.
25272 (MULTI_ARG_4_SF2_SI_I1): Defined.
25273 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
25274 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
25275 __builtin_ia32_vpermil2ps256.
25276 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
25277 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
25278 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
25279 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
25280 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
25281 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
25282 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
25283 CODE_FOR_xop_vpermil2v8sf3.
25284 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
25285 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
25286 * config/i386/xopintrin.h (_mm_permute2_pd): New.
25287 (_mm256_permute2_pd): New.
25288 (_mm_permute2_ps): New.
25289 (_mm256_permute2_ps): New.
25290
25291 2010-02-15 Nick Clifton <nickc@redhat.com>
25292
25293 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
25294 boolean parameters. Use emit_jump_insn when emitting a pop
25295 instruction containing a return insn.
25296 (push): Use 'true' rather than '1' as second parameter to F.
25297 (h8300_expand_prologue): Likewise.
25298 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
25299 (h8300_expand_epilogue): Likewise.
25300
25301 2010-02-15 Richard Guenther <rguenther@suse.de>
25302
25303 PR middle-end/43068
25304 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
25305 if that is zero.
25306
25307 2010-02-15 Nick Clifton <nickc@redhat.com>
25308
25309 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
25310 delta.
25311
25312 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
25313
25314 * intl.c (fake_ngettext): New function.
25315 * intl.h (fake_ngettext): Declare.
25316 (ngettext): Define macro.
25317 * collect2.c (notice_translated): New function.
25318 (main): Use notice_translated and ngettext.
25319 * collect2.h (notice_translated): Declare.
25320
25321 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
25322
25323 * reorg.c (delete_computation): Comment fixes.
25324 * caller-save.c (setup_save_areas): Idem.
25325 * sel-sched-dump.c (dump_lv_set): Idem.
25326 * rtl.def: Idem.
25327
25328 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25329
25330 * config/s390/s390.c (s390_sched_init): New function.
25331 (TARGET_SCHED_INIT): Target hook defined.
25332
25333 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
25334 Jack Howarth <howarth@bromo.med.uc.edu>
25335 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
25336
25337 PR target/42982
25338 Partial revert of unintended change in fix for PR41605.
25339 * config/darwin.h: Fix typo.
25340 * config/darwin9.h: Same.
25341
25342 2010-02-11 Jakub Jelinek <jakub@redhat.com>
25343
25344 * c-pch.c (pch_init): Clear v.
25345
25346 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
25347
25348 PR middle-end/42930
25349 * graphite-scop-detection.c (graphite_can_represent_scev): Call
25350 graphite_can_represent_init for MULT_EXPR.
25351
25352 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
25353
25354 PR middle-end/42914
25355 PR middle-end/42530
25356 * graphite-sese-to-poly.c (remove_phi): New.
25357 (translate_scalar_reduction_to_array): Call remove_phi.
25358
25359 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
25360
25361 PR middle-end/42771
25362 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
25363 * graphite-clast-to-gimple.h (gloog): Update declaration.
25364 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
25365 * graphite-poly.h (struct poly_bb): Add missing comments.
25366 (struct scop): Add poly_scop_p field.
25367 (POLY_SCOP_P): New.
25368 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
25369 * graphite.c (graphite_transform_loops): Build the polyhedral
25370 representation for each scop before code generation.
25371 * sese.c (rename_variables_in_operand): Removed.
25372 (rename_variables_in_expr): Return the renamed expression.
25373 (rename_sese_parameters): New.
25374 * sese.h (rename_sese_parameters): Declared.
25375
25376 2010-02-11 Richard Guenther <rguenther@suse.de>
25377
25378 PR tree-optimization/42998
25379 * tree-ssa-pre.c (create_expression_by_pieces): Treat
25380 POINTER_PLUS_EXPR properly.
25381
25382 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
25383 Changpeng Fang <changpeng.fang@amd.com>
25384
25385 PR middle-end/40886
25386 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
25387 the cost of an IV candidate when the IV is used in a test against zero.
25388
25389 * gcc.dg/tree-ssa/ivopts-3.c: New.
25390
25391 2010-02-11 Richard Guenther <rguenther@suse.de>
25392
25393 PR lto/41664
25394 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
25395 pointer-vs-decl case by swapping refs. Handle some cases
25396 of pointer-vs-decl disambiguations more conservatively.
25397 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
25398 to false after expanding.
25399
25400 2010-02-11 Richard Guenther <rguenther@suse.de>
25401
25402 PR driver/43021
25403 * gcc.c (process_command): Handle LTO file@offset case more
25404 appropriately.
25405
25406 2010-02-11 Jakub Jelinek <jakub@redhat.com>
25407
25408 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
25409 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
25410 of DEBUG_INSNs.
25411 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
25412
25413 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
25414 if MEM's mode size isn't DWARF2_ADDR_SIZE.
25415 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
25416 Optimize eq/ne comparisons when both arguments are known to be
25417 zero-extended.
25418 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
25419 Don't mask operands unnecessarily if they are known to be already
25420 zero-extended.
25421
25422 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
25423
25424 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
25425 instead of loop.
25426
25427 2010-02-10 Richard Guenther <rguenther@suse.de>
25428
25429 PR tree-optimization/43017
25430 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
25431 for wrapping signed arithmetic.
25432
25433 2010-02-10 Jakub Jelinek <jakub@redhat.com>
25434
25435 PR debug/43010
25436 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
25437 if no debug info should be emitted for it.
25438
25439 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
25440
25441 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
25442 note when flag_exceptions is set.
25443
25444 2010-02-10 Duncan Sands <baldrick@free.fr>
25445
25446 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
25447
25448 2010-02-10 Richard Guenther <rguenther@suse.de>
25449
25450 PR c/43007
25451 * tree.c (get_unwidened): Handle constants.
25452 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
25453
25454 2010-02-10 Martin Jambor <mjambor@suse.cz>
25455
25456 PR lto/42985
25457 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
25458 check for variable argument counts independently.
25459
25460 2010-02-10 Christian Bruel <christian.bruel@st.com>
25461
25462 PR target/42841
25463 * config/sh/sh.c (find_barrier): Increase length for non delayed
25464 conditional branches.
25465
25466 2010-02-10 Christian Bruel <christian.bruel@st.com>
25467
25468 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
25469
25470 2010-02-10 Jakub Jelinek <jakub@redhat.com>
25471
25472 * builtins.c (set_builtin_user_assembler_name): Also handle
25473 ffs if int is smaller than word.
25474
25475 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
25476
25477 PR middle-end/42973
25478 * ira-conflicts.c (get_dup): Remove.
25479 (process_reg_shuffles): Add new parameter. Use it as an
25480 additional guard for copy generation.
25481 (add_insn_allocno_copies): Rewrite.
25482
25483 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
25484
25485 * common.opt (fsched2-use-traces): Preserved for backward
25486 compatibility.
25487 * doc/invoke.texi: Remove the documentation about option
25488 -fsched2-use-traces.
25489 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
25490 flag_sched2_use_traces.
25491 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
25492 the backward compatibility flag section.
25493
25494 2010-02-09 Richard Guenther <rguenther@suse.de>
25495
25496 PR tree-optimization/43008
25497 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
25498 make HEAP variables initialized from global memory if they
25499 are not known builtin functions.
25500 (find_func_aliases): Adjust.
25501
25502 2010-02-09 Richard Guenther <rguenther@suse.de>
25503
25504 PR tree-optimization/43000
25505 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
25506 arithmetic manually.
25507
25508 2010-02-08 Jakub Jelinek <jakub@redhat.com>
25509
25510 PR tree-optimization/42931
25511 * tree-loop-linear.c (try_interchange_loops): Don't call
25512 double_int_mul if estimated_loop_iterations failed.
25513
25514 2010-02-08 Martin Jambor <mjambor@suse.cz>
25515
25516 PR middle-end/42898
25517 * tree-sra.c (build_accesses_from_assign): Do not mark in
25518 should_scalarize_away_bitmap if stmt has volatile ops.
25519 (sra_modify_assign): Do not process assigns piecemeal if if stmt
25520 has volatile ops.
25521
25522 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
25523
25524 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
25525
25526 2010-02-07 Adam Nemet <adambnmet@gmail.com>
25527
25528 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
25529 before the pattern.
25530
25531 2010-02-07 Andrew Pinski <pinskia@gmail.com>
25532
25533 PR middle-end/42946
25534 * df-core.c (df_finish_pass): Change type of saved_flags to int.
25535
25536 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
25537
25538 PR middle-end/42988
25539 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
25540 to unknown_dependence.
25541 (graphite_legal_transform_dr): Handle the unknown_dependence.
25542 (graphite_carried_dependence_level_k): Same.
25543
25544 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
25545
25546 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
25547
25548 2010-02-07 Richard Guenther <rguenther@suse.de>
25549
25550 PR middle-end/42991
25551 * expr.c (get_inner_reference): Always initialize *pbitsize.
25552
25553 2010-02-07 Richard Guenther <rguenther@suse.de>
25554
25555 PR middle-end/42956
25556 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
25557 new ARRAY_REFs on variable size element or minimal index arrays.
25558 Complete.
25559 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
25560 gimple_fold_indirect_ref.
25561
25562 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
25563
25564 PR target/42957
25565 * arm.c (arm_override_options): Just return if the user has specified
25566 an invalid fpu name.
25567
25568 2010-02-03 Jason Merrill <jason@redhat.com>
25569
25570 PR c++/42870
25571 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
25572 i386_pe_maybe_record_exported_symbol.
25573
25574 2010-02-05 Steve Ellcey <sje@cup.hp.com>
25575
25576 PR target/42924
25577 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
25578 (pa_delegitimize_address): New function.
25579
25580 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
25581
25582 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
25583 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
25584
25585 2010-02-05 Richard Guenther <rguenther@suse.de>
25586
25587 PR lto/42762
25588 * lto-streamer-in.c (get_resolution): Deal with references
25589 to undefined functions.
25590
25591 2010-02-05 Richard Guenther <rguenther@suse.de>
25592
25593 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
25594 (fold_const_aggregate_ref): Likewise.
25595 (ccp_fold_stmt): Substitute loads.
25596 (maybe_fold_reference): Verify types before substituting.
25597 Unshare properly.
25598 (fold_gimple_assign): Unshare properly.
25599 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
25600
25601 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
25602
25603 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
25604 for rs6000_gen_cell_microcode.
25605
25606 2010-02-04 Richard Guenther <rguenther@suse.de>
25607
25608 PR rtl-optimization/42952
25609 * dse.c (const_or_frame_p): Remove MEM handling.
25610
25611 2010-02-04 Nick Clifton <nickc@redhat.com>
25612
25613 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
25614 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
25615 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
25616 (mn10300_asm_output_mi_thunk): New function.
25617 (mn10300_can_output_mu_thunk): New function.
25618 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
25619 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
25620 (FUNCTION_ARG): Delete incorrect comment.
25621
25622 2010-02-03 Jason Merrill <jason@redhat.com>
25623
25624 PR c++/40138
25625 * fold-const.c (operand_equal_p): Handle erroneous types.
25626
25627 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25628
25629 * config/h8300/h8300.md (can_delay): Fix attibute condition.
25630
25631 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
25632
25633 PR rtl-optimization/42941
25634 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
25635 of xmalloc.
25636
25637 2010-02-03 Jason Merrill <jason@redhat.com>
25638
25639 PR c++/35652
25640 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
25641
25642 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
25643
25644 PR debug/42896
25645 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
25646 (cselib_reset_table): Renamed from...
25647 (cselib_reset_table_with_next_value): ... this.
25648 (cselib_get_next_uid): Renamed from...
25649 (cselib_get_next_unknown_value): ... this.
25650 * cselib.c (next_uid): Renamed from...
25651 (next_unknown_value): ... this.
25652 (cselib_clear_table): Adjust.
25653 (cselib_reset_table): Adjust. Renamed from...
25654 (cselib_reset_table_with_next_value): ... this.
25655 (cselib_get_next_uid): Adjust. Renamed from...
25656 (cselib_get_next_unknown_value): ... this.
25657 (get_value_hash): Use hash.
25658 (cselib_hash_rtx): Likewise.
25659 (new_cselib_val): Adjust. Set and dump uid.
25660 (cselib_lookup_mem): Pass next_uid as hash.
25661 (cselib_subst_to_values): Likewise.
25662 (cselib_log_lookup): Dump uid.
25663 (cselib_lookup): Pass next_uid as hash. Adjust.
25664 (cselib_process_insn): Adjust.
25665 (cselib_init): Initialize next_uid.
25666 (cselib_finish): Adjust.
25667 (dump_cselib_table): Likewise.
25668 * dse.c (canon_address): Dump value uid.
25669 * print-rtl.c (print_rtx): Print value uid.
25670 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
25671 (dvuid): New type.
25672 (dv_uid): New function, sort of renamed from...
25673 (dv_htab_hash): ... this, reimplemented in terms of it and...
25674 (dv_uid2hash): ... this. New.
25675 (variable_htab_eq): Drop excess assertions.
25676 (tie_break_pointers): Removed.
25677 (canon_value_cmp): Compare uids.
25678 (variable_post_merge_New_vals): Print uids.
25679 (vt_add_function_parameters): Adjust.
25680 (vt_initialize): Reset table. Adjust.
25681
25682 2010-02-03 Richard Guenther <rguenther@suse.de>
25683
25684 PR tree-optimization/42944
25685 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
25686 (call_may_clobber_ref_p_1): Likewise. Properly handle
25687 malloc and calloc clobbering errno.
25688
25689 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
25690
25691 * doc/invoke.texi: Fix name of sched1 dump.
25692
25693 * opts.c (decode_options): Set flag_tree_switch_conversion
25694 only conditionally on optimize >= 2.
25695
25696 * gcse.c: Assorted comment fixes in pass description.
25697
25698 2010-02-03 Anthony Green <green@moxielogic.com>
25699
25700 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
25701 nop padding in order to maintain alignment of storage location of
25702 target function address.
25703 (moxie_trampoline_init): Store target function address at newly
25704 aligned location.
25705 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
25706 to 32.
25707 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
25708
25709 2010-02-03 Richard Guenther <rguenther@suse.de>
25710
25711 PR middle-end/42927
25712 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
25713
25714 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25715
25716 * config.gcc: Reenable check for obsolete targets.
25717 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
25718 mips-sgi-irix6.[0-4]*.
25719
25720 2010-02-02 Nick Clifton <nickc@redhat.com>
25721
25722 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
25723 constant size of 4 as being the same as 0.
25724 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
25725 can take values in the range 0..4.
25726
25727 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
25728
25729 PR java/41991
25730 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
25731 as _darwin10_Unwind_FindEnclosingFunction().
25732 * libgcc-libsystem.ver: New.
25733
25734 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
25735
25736 PR target/41399
25737 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
25738 implicitly set registers.
25739
25740 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
25741
25742 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
25743 (arm_override_options): Allow automatic selection of the thread
25744 pointer register if thumb2.
25745 (legitimize_pic_address): Improve code sequences for Thumb2.
25746 (arm_call_tls_get_addr): Likewise.
25747 (legitimize_tls_address): Likewise.
25748 * arm.md (pic_load_addr_arm): Delete. Replace with ...
25749 (pic_load_addr_32bit): ... this. New named pattern.
25750 * thumb2.md (pic_load_addr_thumb2): Delete.
25751 (pic_load_dot_plus_four): Delete.
25752 (tls_load_dot_plus_four): New named pattern.
25753
25754 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25755
25756 PR libgomp/29986
25757 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
25758 Document fix for TLS bug.
25759
25760 2010-01-31 Richard Guenther <rguenther@suse.de>
25761
25762 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
25763 conservatively correct.
25764
25765 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25766
25767 PR target/42850
25768 Revert:
25769 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25770
25771 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
25772
25773 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25774
25775 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
25776
25777 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
25778
25779 * config.gcc: Adjust order of makefile fragments for mingw targets.
25780
25781 2010-01-31 Richard Guenther <rguenther@suse.de>
25782
25783 PR middle-end/42898
25784 * gimplify.c (gimplify_init_constructor): For volatile LHS
25785 initialize a temporary.
25786
25787 2010-01-31 Matthias Klose <doko@ubuntu.com>
25788
25789 * configure.ac: Fix __stack_chk_fail check for cross builds configured
25790 --with-headers
25791 * configure: Regenerate.
25792
25793 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
25794
25795 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
25796 the same alias set and their sizes different constantness.
25797 (aliasing_component_refs_p): Revert 2009-10-24 change.
25798
25799 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25800
25801 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
25802 unused.
25803
25804 2010-01-29 Richard Guenther <rguenther@suse.de>
25805
25806 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
25807 Assert we successfully updated the call.
25808
25809 2010-01-29 Jakub Jelinek <jakub@redhat.com>
25810
25811 PR rtl-optimization/42889
25812 * df.h (df_set_bb_dirty_nonlr): New prototype.
25813 * df-core.c (df_set_bb_dirty_nonlr): New function.
25814 * df-scan.c (df_insn_rescan): Call it instead of
25815 df_set_bb_dirty for DEBUG_INSNs.
25816
25817 2010-01-29 Richard Guenther <rguenther@suse.de>
25818
25819 PR middle-end/37448
25820 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
25821 quadratic behavior in most cases.
25822
25823 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
25824
25825 PR target/42891
25826 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
25827 in the call to gen_x86_movsicc_0_m1.
25828
25829 2010-01-28 Richard Guenther <rguenther@suse.de>
25830
25831 PR tree-optimization/42871
25832 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
25833
25834 2010-01-28 Richard Guenther <rguenther@suse.de>
25835
25836 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
25837 into call arguments.
25838
25839 2010-01-28 Richard Guenther <rguenther@suse.de>
25840
25841 PR middle-end/42883
25842 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
25843 the forwarder if the destination is an EH landing pad.
25844
25845 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
25846
25847 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
25848 block list passed to gimple_duplicate_sese_tail.
25849 (parallelize_loops): Avoid parallelization when the function
25850 has_nonlocal_label.
25851 Avoid parallelization when the preheader is IRREDUCIBLE.
25852 Try to optimize when estimated_loop_iterations_int is unresolved.
25853 Add the loop's location to the dump file.
25854 * tree-cfg.c (add_phi_args_after_redirect): Remove.
25855 (gimple_duplicate_sese_tail): Remove the check for the latch.
25856 Redirect nexits to the exit block.
25857 Remove handling of the incoming edges to the latch.
25858 Redirect the backedge from the copied latch to the exit bb.
25859
25860 2010-01-28 Michael Matz <matz@suse.de>
25861
25862 PR target/42881
25863 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
25864 Wrap force_reg into a sequence, emit it before user.
25865
25866 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
25867
25868 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
25869 (arm_rev): New.
25870 (arm_legacy_rev): Likewise.
25871 (thumb_legacy_rev): Likewise.
25872
25873 2010-01-27 Jakub Jelinek <jakub@redhat.com>
25874
25875 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
25876 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
25877 on MEM's address failed, try avoid_constant_pool_reference and
25878 recurse if it returned something different.
25879 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
25880 address, try avoid_constant_pool_reference and recurse if it
25881 returned something different.
25882 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
25883 address and avoid_constant_pool_reference returned something
25884 different, don't set have_address.
25885
25886 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
25887
25888 PR debug/42861
25889 * var-tracking.c (val_store): Add modified argument, obey it.
25890 Adjust callers.
25891 (count_uses): Move down logging of main.
25892 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
25893 don't need resolution.
25894 (emit_notes_in_bb): Likewise.
25895
25896 2010-01-27 Richard Guenther <rguenther@suse.de>
25897
25898 PR middle-end/42878
25899 * tree-inline.c (remap_decl): Delay remapping of SSA name
25900 default definitions until we need them.
25901
25902 2010-01-27 Jakub Jelinek <jakub@redhat.com>
25903
25904 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
25905 (rs6000_delegitimize_address): New function.
25906
25907 * config/s390/s390.c (s390_delegitimize_address): Call
25908 delegitimize_mem_from_attrs.
25909
25910 PR middle-end/42874
25911 * tree-inline.c (cannot_copy_type_1): Removed.
25912 (copy_forbidden): Don't forbid copying of functions containing
25913 records/unions with variable length fields.
25914
25915 2010-01-27 Christian Bruel <christian.bruel@st.com>
25916
25917 Revert:
25918 PR target/42841
25919 * config/sh/sh.c (find_barrier): Increase length for non delayed
25920 conditional branches.
25921
25922 2010-01-27 Matthias Klose <doko@ubuntu.com>
25923
25924 * configure.ac (gnu-unique-object): Fix ldd version check.
25925 * configure: Regenerate.
25926
25927 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25928
25929 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
25930 HAVE_GNU_AS value.
25931 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
25932 Test for HAVE_GNU_AS value.
25933
25934 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25935
25936 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
25937 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
25938 INT64_TYPE): Define.
25939 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
25940 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25941 INT_LEAST64_TYPE): Define.
25942 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
25943 UINT_LEAST64_TYPE): Define.
25944 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
25945 INT_FAST64_TYPE): Define.
25946 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25947 UINT_FAST64_TYPE): Define.
25948 (INTMAX_TYPE, UINTMAX_TYPE): Define.
25949 (INTPTR_TYPE, UINTPTR_TYPE): Define.
25950 (SIG_ATOMIC_TYPE): Define.
25951
25952 2010-01-26 Richard Guenther <rguenther@suse.de>
25953
25954 * df-scan.c (df_scan_set_bb_info): Remove assert.
25955 (df_insn_rescan_debug_internal): Merge asserts.
25956 (df_install_ref): Likewise.
25957 (df_mark_reg): Use bitmap_set_range.
25958 (df_hard_reg_used_p): Remove assert.
25959 (df_hard_reg_used_count): Likewise.
25960
25961 2010-01-26 Richard Guenther <rguenther@suse.de>
25962
25963 PR rtl-optimization/42685
25964 * web.c (web_main): Ignore DEBUG_INSNs.
25965
25966 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
25967
25968 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
25969
25970 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
25971 Fix types of fndecl and arglist parameters.
25972
25973 2010-01-26 Richard Guenther <rguenther@suse.de>
25974
25975 PR middle-end/42806
25976 * tree-eh.c (unsplit_eh): Skip debug insns.
25977
25978 2010-01-26 Richard Guenther <rguenther@suse.de>
25979
25980 PR tree-optimization/42250
25981 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
25982
25983 2010-01-26 Jakub Jelinek <jakub@redhat.com>
25984
25985 PR fortran/42866
25986 * omp-low.c (expand_omp_sections): Only use single_pred if
25987 l2_bb is single_pred_p.
25988
25989 2010-01-25 Christian Bruel <christian.bruel@st.com>
25990
25991 PR target/42841
25992 * config/sh/sh.c (find_barrier): Increase length for non delayed
25993 conditional branches.
25994 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
25995
25996 2010-01-24 David S. Miller <davem@davemloft.net>
25997
25998 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
25999 define if not using GAS.
26000 * config/sparc/sparc.c (sparc_elf_asm_named_section):
26001 Likewise. Delete SECTION_MERGE code, which is only applicable
26002 when using GAS.
26003
26004 2010-01-24 Mark Mitchell <mark@codesourcery.com>
26005
26006 PR c++/42748
26007 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
26008 mangling of va_list in system headers.
26009
26010 2010-01-23 Toon Moene <toon@moene.org>
26011
26012 * tree-predcom.c (combine_chains): Return NULL, not false.
26013
26014 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
26015
26016 * tree-loop-distribution.c (distribute_loop): Fix declaration and
26017 initialization of variable res to agree with return type.
26018
26019 2010-01-22 Steve Ellcey <sje@cup.hp.com>
26020
26021 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
26022 * tree-sra.c: Add include of expr.h.
26023
26024 2010-01-22 Jakub Jelinek <jakub@redhat.com>
26025
26026 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
26027 insert the debug stmt on the single non-EH edge from the stmt.
26028
26029 2010-01-22 Richard Henderson <rth@redhat.com>
26030
26031 PR tree-opt/42833
26032 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
26033 the RHS until after generate_subtree_copies has insertted its
26034 code before the current statement.
26035
26036 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
26037
26038 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
26039
26040 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
26041
26042 2010-01-21 Martin Jambor <mjambor@suse.cz>
26043
26044 PR tree-optimization/42585
26045 * tree-sra.c (struct access): New field grp_total_scalarization.
26046 (dump_access): Dump the new field.
26047 (should_scalarize_away_bitmap): New variable.
26048 (cannot_scalarize_away_bitmap): Likewise.
26049 (sra_initialize): Allocate new bitmaps.
26050 (sra_deinitialize): Free new bitmaps.
26051 (create_access_1): New function.
26052 (create_access): Parts moved to create_access_1.
26053 (type_consists_of_records_p): New function.
26054 (completely_scalarize_record): Likewise.
26055 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
26056 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
26057 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
26058 access.
26059 (analyze_all_variable_accesses): Completely scalarize small eligible
26060 records.
26061
26062 2010-01-21 Martin Jambor <mjambor@suse.cz>
26063
26064 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
26065
26066 2010-01-21 Andrew Haley <aph@redhat.com>
26067
26068 * gcc.c (process_command): Move lang_specific_driver before
26069 setting cc_libexec_prefix.
26070
26071 2010-01-21 Richard Guenther <rguenther@suse.de>
26072
26073 PR middle-end/19988
26074 * fold-const.c (negate_expr_p): Pretend only negative
26075 real constants are easily negatable.
26076
26077 2010-01-20 Janis Johnson <janis187@us.ibm.com>
26078 Jason Merrill <jason@redhat.com>
26079
26080 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
26081 (TYPE_TRANSPARENT_AGGR): this, for union and record.
26082 * calls.c (initialize argument_information): Handle it.
26083 * c-common.c (handle_transparent_union_attribute): Use new name.
26084 * c-decl.c (finish_struct): Ditto.
26085 * c-typeck.c (type_lists_compatible_p): Ditto.
26086 (convert_for_assignment): Use new name and also handle record.
26087 * function.c (aggregate_value_p): Handle it.
26088 (pass_by_reference): Ditto.
26089 (assign_parm_data_types): Ditto.
26090 * print-tree.c (print_node): Ditto.
26091 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
26092 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
26093 * tree.c (first_field): New fn.
26094
26095 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
26096
26097 PR target/42818
26098 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
26099 even when linking statically, for now.
26100
26101 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
26102
26103 PR debug/42715
26104 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
26105 without a cselib val.
26106 (count_uses): Accept MO_VAL_SET with no val on stores.
26107 (add_stores): Likewise.
26108
26109 2010-01-20 Jakub Jelinek <jakub@redhat.com>
26110
26111 * var-tracking.c (check_value_val): Add a compile time assertion.
26112 (dv_is_decl_p): Simplify.
26113 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
26114 gcc_assert if ENABLE_CHECKING.
26115
26116 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
26117
26118 PR debug/42782
26119 * var-tracking.c: Include tree-flow.h.
26120 (mem_dies_at_call): New.
26121 (dataflow_set_preserve_mem_locs): Use it.
26122 (dataflow_set_remove_mem_locs): Likewise.
26123 (dump_var): Renamed from dump_variable. Adjust all callers.
26124 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
26125 * Makefile.in (var-tracking.o): Adjust deps.
26126
26127 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
26128
26129 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
26130
26131 2010-01-20 Richard Guenther <rguenther@suse.de>
26132
26133 PR tree-optimization/42717
26134 * tree-ssa-dce.c (get_live_post_dom): Remove.
26135 (forward_edge_to_pdom): Take an arbitrary edge to copy
26136 degenerate PHI args from.
26137 (remove_dead_stmt): Use the first post-dominator even if it
26138 does not contain live statements as redirection destination.
26139
26140 2010-01-20 Richard Guenther <rguenther@suse.de>
26141
26142 * tree-inline.c (estimate_num_insns): Handle EH builtins.
26143
26144 2010-01-20 Jakub Jelinek <jakub@redhat.com>
26145
26146 * sel-sched.c (create_speculation_check): Remove set but not used
26147 variable twin.
26148 (try_transformation_cache): Remove set but not used variable ds.
26149 (calculate_privileged_insns): Remove set but not used variables
26150 cur_insn and min_spec_insn.
26151 (find_best_expr): Remove set but not used variable avail_n.
26152 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
26153 variable e.
26154 * cgraphunit.c (assemble_thunk): Remove set but not used variable
26155 false_label.
26156 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
26157 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
26158 new_scop_exit_edge.
26159
26160 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
26161
26162 PR bootstrap/42786
26163 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
26164 cpu types. Add support for *-sse3 cpu types.
26165 (x86_64-*-*): Ditto.
26166
26167 2010-01-20 Jakub Jelinek <jakub@redhat.com>
26168
26169 PR middle-end/42803
26170 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
26171 argument, call initializer_constant_valid_p_1 instead of
26172 initializer_constant_valid_p, pass CACHE to it, return NULL
26173 immediately if first call returns NULL.
26174 (initializer_constant_valid_p_1): New function.
26175 (initializer_constant_valid_p): Use it.
26176
26177 2010-01-20 Thomas Quinot <quinot@adacore.com>
26178
26179 * tree.def (PLACEHOLDER_EXPR): Fix comment.
26180
26181 2010-01-20 Jakub Jelinek <jakub@redhat.com>
26182
26183 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
26184 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
26185 (loc_list_from_tree): Don't handle unsigned division. Handle
26186 signed modulo using DW_OP_{over,over,div,mul,minus}.
26187 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
26188 modulo instead of signed.
26189
26190 2010-01-20 DJ Delorie <dj@redhat.com>
26191
26192 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
26193 (Fpa): Pass it
26194 (h8300_emit_stack_adjustment): Propogate it.
26195 (push): Pass it.
26196 (h8300_expand_prologue): Likewise.
26197 (h8300_expand_epilogue): Likewise.
26198
26199 2010-01-19 Michael Matz <matz@suse.de>
26200
26201 PR tree-optimization/41783
26202 * tree-data-ref.c (toplevel): Include flags.h.
26203 (dump_data_dependence_relation): Also dump the inputs if the
26204 result will be unknown.
26205 (split_constant_offset_1): Look through some conversions.
26206 * tree-predcom.c (determine_roots_comp): Restart a new chain if
26207 the offset from last element is too large.
26208 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
26209 (reassociate_to_the_same_stmt): Handle vector registers.
26210 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
26211 (e.g. conversions).
26212 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
26213 wide_prolog_niters argument, emit widening instructions.
26214 (vect_do_peeling_for_alignment): Adjust caller, use widened
26215 variant of the iteration cound.
26216 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
26217
26218 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26219
26220 PR target/38697
26221 * config/arm/neon-testgen.m (emit_automatics): New parameter
26222 features. Adjust for Fixed_return_reg feature.
26223 (test_intrinsic): Call emit_automatics with new feature.
26224 * config/arm/neon.ml: Update copyright years.
26225 (features): New Fixed_return_reg feature.
26226 (ops): Update feature for Vget_low.
26227
26228 2010-01-19 Jakub Jelinek <jakub@redhat.com>
26229
26230 PR tree-optimization/42719
26231 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
26232 stmt uses.
26233
26234 PR debug/42728
26235 * fwprop.c (all_uses_available_at): Return false if def_set dest
26236 is a REG that is used in def_insn.
26237
26238 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
26239
26240 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
26241
26242 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
26243 Add argument names.
26244
26245 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
26246
26247 * target.h (struct gcc_target) <secondary_reload>: Change type
26248 of last argument to secondary_reload_info *.
26249
26250 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
26251
26252 PR target/42774
26253 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
26254 memory references with unaligned offsets. Remove CQImode handling.
26255 (unaligned_memory_operand): Return 1 for memory references with
26256 unaligned offsets. Remove CQImode handling.
26257
26258 2010-01-18 Richard Guenther <rguenther@suse.de>
26259
26260 PR middle-end/39954
26261 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
26262 builtin calls.
26263
26264 2010-01-18 Richard Guenther <rguenther@suse.de>
26265
26266 PR tree-optimization/42781
26267 * tree-ssa-structalias.c (find_what_var_points_to): Skip
26268 restrict processing only if the original variable was artificial.
26269
26270 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
26271
26272 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
26273 find number of popped argument bytes.
26274
26275 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
26276 Fix the text that describes the return value for invalid insns.
26277
26278 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
26279
26280 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
26281 Clarify what 'cost of the -dependence' is. Fix quoting.
26282
26283 * toplev.c (default_get_pch_validity): Rename argument to "sz".
26284 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
26285
26286 2010-01-17 Jakub Jelinek <jakub@redhat.com>
26287
26288 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
26289 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
26290
26291 2010-01-17 Richard Guenther <rguenther@suse.de>
26292
26293 PR middle-end/42248
26294 * function.c (split_complex_args): Take a VEC to modify.
26295 (assign_parms_augmented_arg_list): Build a VEC instead of
26296 a chain of PARM_DECLs.
26297 (assign_parms_unsplit_complex): Take a VEC of arguments.
26298 Do not fixup unmodified parms.
26299 (assign_parms): Deal with the VEC.
26300 (gimplify_parameters): Likewise.
26301
26302 2010-01-17 Richard Guenther <rguenther@suse.de>
26303
26304 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
26305 node existence check.
26306 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
26307 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
26308 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
26309 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
26310 (gimple_execute_on_growing_pred): Likewise.
26311
26312 2010-01-17 Richard Guenther <rguenther@suse.de>
26313
26314 PR tree-optimization/42773
26315 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
26316 (compute_antic_aux): Likewise.
26317 (compute_partial_antic_aux): Likewise.
26318
26319 2010-01-17 Jie Zhang <jie.zhang@analog.com>
26320
26321 PR debug/42767
26322 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
26323 and US_TRUNCATE.
26324
26325 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
26326
26327 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
26328 appearance.
26329
26330 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
26331 Fix markup for strict argument.
26332
26333 (TARGET_SCHED_REORDER2): Fix argument types.
26334
26335 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
26336 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
26337
26338 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
26339 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
26340
26341 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
26342 Add argument name.
26343
26344 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
26345 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
26346 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
26347 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
26348 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
26349
26350 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
26351
26352 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
26353
26354 (TARGET_ASM_RELOC_RW_MASK): Add return type.
26355 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
26356
26357 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
26358
26359 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
26360 Use prototype.
26361
26362 (TARGET_ASM_NAMED_SECTION): Fix argument list.
26363
26364 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
26365 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
26366
26367 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
26368
26369 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
26370
26371 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
26372 referring to it. Fix language.
26373
26374 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
26375
26376 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
26377
26378 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
26379
26380 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
26381
26382 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
26383 '@var{stream}. Remove stray 'and'.
26384
26385 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
26386
26387 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
26388
26389 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
26390
26391 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
26392 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
26393
26394 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
26395 Fix description of return value.
26396 Rename argument "sz" to "len."
26397
26398 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
26399 Clarify meaning of 'true' return value.
26400
26401 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
26402
26403 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
26404 rep_mode versus mode_rep.
26405
26406 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
26407
26408 (TARGET_BUILTIN_DECL): Fix name.
26409
26410 (TARGET_COMMUTATIVE_P): Fix type of first argument.
26411
26412 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
26413
26414 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
26415
26416 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
26417
26418 (TARGET_RELAXED_ORDERING): Use @deftypevr.
26419
26420 (TARGET_GET_DRAP_RTX): Note that this is a hook.
26421 Clarify language.
26422
26423 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
26424 Rename argument tm_fn to md_fn.
26425
26426 (TARGET_OPTION_PRINT): Fix argument list.
26427
26428 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
26429
26430 PR target/42664
26431 * config/i386/i386.c (ix86_fixup_binary_operands):
26432 Revert FMA4 fixup of operands.
26433
26434 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26435
26436 PR gcc/42525
26437 * Makefile.in (write_entries_to_file, install-plugin):
26438 Use \012 instead of \n with tr.
26439
26440 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
26441
26442 * configure.ac (HAVE_AS_REF): New C macro.
26443 * configure: Regenerate.
26444 * config.in: Likewise.
26445 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
26446 if HAVE_AS_REF.
26447 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
26448 if HAVE_AS_REF.
26449
26450 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
26451
26452 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
26453
26454 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
26455
26456 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
26457
26458 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
26459
26460 (TARGET_IN_SMALL_DATA_P): Fix argument type.
26461
26462 (TARGET_BINDS_LOCAL_P): Fix argument type.
26463
26464 (TARGET_ASM_FILE_END): Use prototype.
26465
26466 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
26467
26468 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
26469
26470 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
26471
26472 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
26473
26474 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
26475 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
26476
26477 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
26478 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
26479
26480 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
26481 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
26482 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
26483 (TARGET_ADDR_SPACE_CONVERT): Likewise.
26484
26485 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
26486
26487 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
26488
26489 (TARGET_INIT_BUILTINS): Use prototype.
26490
26491 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
26492 Put 'const char *' in braces. Fix parameter types.
26493 (TARGET_INVALID_CONVERSION): Fix parameter types.
26494 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
26495 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
26496
26497 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
26498 Fix argument type.
26499
26500 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
26501
26502 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
26503
26504 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
26505
26506 * doc/tm.texi (TARGET_HELP): Fix return type.
26507
26508 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
26509 in braces. Fix argument types.
26510
26511 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
26512
26513 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
26514
26515 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
26516
26517 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
26518 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
26519
26520 (TARGET_MANGLE_TYPE): Fix argument types.
26521
26522 (TARGET_IRA_COVER_CLASSES): Use prototype.
26523
26524 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
26525
26526 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
26527
26528 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
26529
26530 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
26531
26532 (TARGET_CALLEE_COPIES): Fix argument types.
26533
26534 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
26535
26536 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
26537
26538 (TARGET_FUNCTION_VALUE): Fix argument types.
26539
26540 (TARGET_RETURN_IN_MSB): Fix argument type.
26541
26542 (TARGET_RETURN_IN_MEMORY): Fix argument types.
26543
26544 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
26545
26546 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
26547
26548 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
26549 agree with return type.
26550
26551 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
26552
26553 2010-01-15 Jing Yu <jingyu@google.com>
26554
26555 PR rtl-optimization/42691
26556 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
26557 a pseudo to a constant and are merged, and adjust comments.
26558
26559 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
26560
26561 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
26562
26563 2010-01-15 Richard Guenther <rguenther@suse.de>
26564
26565 PR middle-end/42739
26566 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
26567 labels of computed or non-local gotos to the destination.
26568 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
26569 landing pad label is the first label.
26570
26571 2010-01-15 Richard Guenther <rguenther@suse.de>
26572
26573 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
26574
26575 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26576
26577 PR target/42747
26578 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
26579 to allow generation of the xssqrtdp instruction on power7.
26580 (sqrtdf2_fpr): Ditto.
26581
26582 2010-01-14 Jakub Jelinek <jakub@redhat.com>
26583
26584 PR middle-end/42674
26585 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
26586 functions with noreturn attribute.
26587
26588 PR c++/42608
26589 * varasm.c (declare_weak): Add weak attribute to decl if it
26590 doesn't have one already.
26591 (assemble_external): Only add decls to weak_decls if they also
26592 have weak attribute.
26593
26594 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
26595
26596 * var-tracking.c (var_reg_delete): Don't delete the association
26597 between REGs and values or one-part variables if the register
26598 isn't clobbered.
26599
26600 2010-01-14 Jakub Jelinek <jakub@redhat.com>
26601
26602 PR debug/42657
26603 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
26604 because its first operand is a non-localized variable.
26605
26606 2010-01-14 Martin Jambor <mjambor@suse.cz>
26607
26608 PR tree-optimization/42706
26609 * tree-sra.c (encountered_recursive_call): New variable.
26610 (encountered_unchangable_recursive_call): Likewise.
26611 (sra_initialize): Initialize both new variables.
26612 (callsite_has_enough_arguments_p): New function.
26613 (scan_function): Call decl and flags check only for IPA-SRA, check
26614 whether there is a recursive call and whether it has enough arguments.
26615 (all_callers_have_enough_arguments_p): New function.
26616 (convert_callers): Look for recursive calls only when
26617 encountered_recursive_call is set.
26618 (ipa_early_sra): Bail out either if
26619 !all_callers_have_enough_arguments_p or
26620 encountered_unchangable_recursive_call.
26621
26622 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
26623
26624 * sel-sched.c: Add 2010 to copyright years.
26625 * sel-sched-ir.c: Likewise.
26626 * sel-sched-ir.h: Likewise.
26627
26628 2010-01-14 Martin Jambor <mjambor@suse.cz>
26629
26630 PR tree-optimization/42714
26631 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
26632 constructors specially.
26633
26634 2010-01-14 Andi Kleen <ak@linux.intel.com>
26635
26636 * config/i386/drivers-i386.c (detect_caches_intel):
26637 Add l2sizekb parameter and fill in.
26638 (host_detect_local_cpu): Add l2sizekb, fill in.
26639 Add Atom small cache heuristic.
26640
26641 2010-01-14 Andi Kleen <ak@linux.intel.com>
26642
26643 * config/i386/drivers-i386.c (detect_caches_cpuid4):
26644 Add level3 parameter and fill in.
26645 (detect_caches_intel): Handle level3 cache.
26646
26647 2010-01-14 Andi Kleen <ak@linux.intel.com>
26648
26649 * config/i386/drivers-i386.c (host_detect_local_cpu):
26650 Fix core duo detection.
26651
26652 2010-01-14 Andi Kleen <ak@linux.intel.com>
26653
26654 * config/i386/drivers-i386.c (host_detect_local_cpu):
26655 Fix Atom detection.
26656
26657 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
26658
26659 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
26660 (rs6000_variable_issue_1): this. Use...
26661 (rs6000_variable_issue): here. Reimplement. Print debug info.
26662
26663 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
26664
26665 * sel-sched-ir.c (sel_restore_other_notes): Rename to
26666 sel_restore_notes. Update all callers. Call reemit_notes
26667 for all insns.
26668
26669 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
26670
26671 PR rtl-optimization/42246
26672 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
26673 loops.
26674
26675 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
26676
26677 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
26678 all successors is the same as number of successors in current region.
26679
26680 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
26681
26682 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
26683 to rename is not separable. Otherwise check that its LHS is not NULL.
26684
26685 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
26686
26687 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
26688
26689 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
26690
26691 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
26692 available registers when failed to discover LHS register class.
26693 Fix indentation. Update comment.
26694
26695 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
26696 Alexander Monakov <amonakov@ispras.ru>
26697
26698 PR rtl-optimization/42389
26699 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
26700 to can_issue_more.
26701 (advance_state_on_fence): Likewise.
26702 (sel_target_adjust_priority): Print debug output only when
26703 sched_verbose >= 4, not 2.
26704 (get_expr_cost): Do not issue all unique insns on the next cycle.
26705 (fill_insns): Initialize can_issue_more from the value saved
26706 with the fence.
26707 * sel-sched-ir.c (flist_add): New parameter issue_more.
26708 Init FENCE_ISSUE_MORE with it.
26709 (merge_fences): Likewise.
26710 (init_fences): Update call to flist_add.
26711 (add_to_fences, add_clean_fence_to_fences)
26712 (add_dirty_fence_to_fences): Likewise.
26713 (move_fence_to_fences): Update call to merge_fences.
26714 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
26715 sched groups.
26716 * sel-sched-ir.h (struct _fence): New field issue_more.
26717 (FENCE_ISSUE_MORE): New accessor macro.
26718
26719 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
26720
26721 PR rtl-optimization/42388
26722 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
26723 that have no predecessors nor successors. Do not call move_bb_info
26724 for empty blocks outside of current region.
26725
26726 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
26727
26728 PR rtl-optimization/42294
26729 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
26730 * sel-sched.c (move_exprs_to_boundary): Transitively add all
26731 originators' originators.
26732
26733 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
26734
26735 PR rtl-optimization/39453
26736 PR rtl-optimization/42246
26737 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
26738 for pipelining_p.
26739 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
26740
26741 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
26742 Alexander Monakov <amonakov@ispras.ru>
26743
26744 PR middle-end/42245
26745 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
26746 (maybe_tidy_empty_bb): ... here. Make static. Add new
26747 argument. Update all callers.
26748 (tidy_control_flow): ... and here. Recompute topological order
26749 of basic blocks in region if necessary.
26750 (sel_redirect_edge_and_branch): Change return type. Return true
26751 if topological order might have been invalidated.
26752 (purge_empty_blocks): Export and move from...
26753 * sel-sched.c (purge_empty_blocks): ... here.
26754 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
26755 (maybe_tidy_empty_bb): Delete prototype.
26756 (purge_empty_blocks): Declare.
26757
26758 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
26759
26760 PR rtl-optimization/42249
26761 * sel-sched.c (try_replace_dest_reg): When chosen register
26762 and original register is the same, do not bail out early, but
26763 still check all original insns for validity of replacing destination
26764 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
26765 in this case.
26766
26767 2010-01-14 Jakub Jelinek <jakub@redhat.com>
26768
26769 PR c/42721
26770 Port from no-undefined-overflow branch:
26771 2009-03-09 Richard Guenther <rguenther@suse.de>
26772
26773 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
26774
26775 2010-01-14 Richard Guenther <rguenther@suse.de>
26776
26777 PR lto/42665
26778 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
26779
26780 2010-01-14 Ira Rosen <irar@il.ibm.com>
26781
26782 PR tree-optimization/42709
26783 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
26784 as scalar type in creation of constant vector operand.
26785
26786 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26787
26788 PR testsuite/42414
26789 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
26790 (check-parallel-%): Match `testsuite' directory component only
26791 at the end.
26792
26793 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
26794
26795 PR translation/39521
26796 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
26797 strings with _().
26798
26799 2010-01-13 Richard Guenther <rguenther@suse.de>
26800
26801 PR tree-optimization/42730
26802 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
26803 offset zero.
26804
26805 2010-01-13 Steve Ellcey <sje@cup.hp.com>
26806
26807 PR target/pr42542
26808 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
26809 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
26810 them signed.
26811
26812 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
26813
26814 * config/bfin/libgcc-bfin.ver: Regenerate based on current
26815 libgcc-std.ver. Add entries for ___smulsi3_highpart and
26816 ___umulsi3_highpart.
26817
26818 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
26819 rather than schedule_insns if the pass is enabled.
26820
26821 2010-01-13 Martin Jambor <mjambor@suse.cz>
26822
26823 PR tree-optimization/42704
26824 * tree-sra.c (sra_modify_assign): Do not delete assignments to
26825 SSA_NAMEs.
26826
26827 2010-01-13 Martin Jambor <mjambor@suse.cz>
26828
26829 PR tree-optimization/42703
26830 * tree-sra.c (analyze_access_subtree): Check that we can build a
26831 reference to the original data within the aggregate.
26832
26833 2010-01-13 Richard Guenther <rguenther@suse.de>
26834
26835 PR tree-optimization/42705
26836 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
26837
26838 2010-01-13 Richard Guenther <rguenther@suse.de>
26839
26840 PR middle-end/42716
26841 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
26842
26843 2010-01-13 Jakub Jelinek <jakub@redhat.com>
26844
26845 PR debug/41371
26846 * var-tracking.c (values_to_unmark): New variable.
26847 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26848 values_to_unmark vector. Moved body to...
26849 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
26850 instead queue it into values_to_unmark vector.
26851 (vt_find_locations): Free values_to_unmark vector.
26852
26853 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
26854
26855 * config/s390/s390.c (override_options): Set
26856 default of max-pending-list-length to 256
26857
26858 2010-01-13 Richard Guenther <rguenther@suse.de>
26859
26860 PR lto/42678
26861 * tree-pass.h (PROP_gimple_lcx): New.
26862 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
26863 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
26864 before the final cleanup_eh.
26865 (dump_properties): Dump PROP_gimple_lcx.
26866 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
26867 (tree_lower_complex_O0): Remove.
26868 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
26869 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
26870 tree_lower_complex, schedule TODO_update_ssa.
26871 * lto-streamer-out.c (output_function): Stream the functions
26872 properties.
26873 * lto-streamer-in.c (input_function): Likewise.
26874 (lto_read_body): Do not override them here.
26875
26876 2010-01-12 Joseph Myers <joseph@codesourcery.com>
26877
26878 PR c/42708
26879 * c-typeck.c (build_c_cast): Fold value cast to union type before
26880 wrapping it in a CONSTRUCTOR.
26881
26882 2010-01-12 Jakub Jelinek <jakub@redhat.com>
26883
26884 PR rtl-optimization/42699
26885 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
26886 involved.
26887
26888 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26889
26890 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
26891 SUBTARGET_WARN_UNUSED_SPEC): Move ...
26892 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
26893 SUBTARGET_WARN_UNUSED_SPEC): ... here
26894 * config/mips/iris5.h (LIBGCC_SPEC): Define.
26895
26896 2010-01-12 Julian Brown <julian@codesourcery.com>
26897
26898 * config/arm/neon-schedgen.ml (Utils): Don't try to
26899 open missing module.
26900 (find_with_result): New.
26901
26902 2010-01-12 Jakub Jelinek <jakub@redhat.com>
26903
26904 PR debug/42662
26905 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
26906 sharing when canonicalizing ({lt,ge}u (plus a b) b).
26907
26908 PR tree-optimization/42645
26909 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
26910 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
26911 decl_map, set processing_debug_stmt to -1 and return name without
26912 any remapping.
26913
26914 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
26915
26916 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
26917 binutils version, and reword target configuration description.
26918
26919 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
26920
26921 * config/avr/avr.h (LINKER_NAME): Remove.
26922
26923 2010-01-11 Janis Johnson <janis187@us.ibm.com>
26924
26925 PR target/42416
26926 * config/rs6000/rs6000.c (rs6000_override_options): On targets
26927 that support VSX, warn for -mno-altivec if vsx is not disabled,
26928 and disable vsx.
26929
26930 2010-01-11 Joseph Myers <joseph@codesourcery.com>
26931 Shujing Zhao <pearly.zhao@oracle.com>
26932
26933 PR translation/42469
26934 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
26935 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
26936 character between option name and help text.
26937 * c.opt (imultilib): Likewise.
26938
26939 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
26940
26941 * lto-streamer-out.c (output_unreferenced_globals): Output static
26942 variables.
26943
26944 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
26945
26946 PR rtl-optimization/42621
26947 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
26948 optimizing for size.
26949 (duplicate_computed_gotos): Remove now-redundant check.
26950
26951 2010-01-10 Steve Ellcey <sje@cup.hp.com>
26952
26953 PR target/37454
26954 * configure.ac: Save and restore LDFLAGS and LIBS
26955 * configure: Regenerate.
26956
26957 2010-01-10 Richard Guenther <rguenther@suse.de>
26958
26959 PR middle-end/42667
26960 * builtins.c (fold_builtin_strlen): Add type argument and
26961 convert the resulting length to it.
26962 (fold_builtin_1): Adjust.
26963
26964 2010-01-09 Jakub Jelinek <jakub@redhat.com>
26965
26966 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
26967 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
26968 1 insn.
26969 (num_insns_constant_wide): Adjust for that change.
26970
26971 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
26972
26973 PR debug/42631
26974 * web.c (union_defs): Add used argument, to combine uses of
26975 uninitialized regs.
26976 (entry_register): Adjust type and tests of used argument.
26977 (web_main): Widen used for new use. Pass it to union_defs.
26978 * df.h (union_defs): Adjust prototype.
26979
26980 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
26981
26982 PR debug/42630
26983 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
26984 uses in new incoming argument. Free body.
26985 (reset_debug_uses_in_loop): New.
26986 (analyze_insn_to_expand_var): Call the latter if the former found
26987 anything. Fix whitespace. Reject invalid dest overlaps before
26988 going through all insns in the loop.
26989
26990 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
26991
26992 PR debug/42629
26993 * haifa-sched.c (dying_use_p): Debug insns don't count.
26994
26995 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
26996
26997 PR middle-end/42363
26998 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
26999 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
27000 (verify_gimple_call): Reject LHS in noreturn calls.
27001
27002 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
27003
27004 PR debug/42604
27005 PR debug/42395
27006 * tree-vect-loop-manip.c (adjust_info): New type.
27007 (adjust_vec): New pointer to vector.
27008 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
27009 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
27010 (slpeel_update_phis_for_duplicate_loop): Use them.
27011 (slpeel_update_phi_nodes_for_guard1): Likewise.
27012 (slpeel_update_phi_nodes_for_guard2): Likewise.
27013 (slpeel_tree_peel_loop_to_edge): Likewise.
27014 (vect_update_ivs_after_vectorizer): Likewise.
27015
27016 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
27017
27018 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
27019 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
27020
27021 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
27022
27023 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
27024 bogus uninitialized warning.
27025
27026 2010-01-09 Richard Guenther <rguenther@suse.de>
27027
27028 PR middle-end/42512
27029 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
27030 the evolution is compatible with the initial condition.
27031
27032 2010-01-09 Jakub Jelinek <jakub@redhat.com>
27033
27034 * gcc.c (process_command): Update copyright notice dates.
27035 * gcov.c (print_version): Likewise.
27036 * gcov-dump.c (print_version): Likewise.
27037 * mips-tfile.c (main): Likewise.
27038 * mips-tdump.c (main): Likewise.
27039
27040 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
27041
27042 PR target/41885
27043 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
27044 (rotlhi3): Delete.
27045 (rotlhi3_8): Delete.
27046 (rotlsi3): Delete.
27047 (rotlsi3_8): Delete.
27048 (rotlsi3_16): Delete.
27049 (rotlsi3_24): Delete.
27050 (rotl<mode>3): New.
27051 (*rotw<mode>3): New.
27052 (*rotb<mode>3): New.
27053 * config/avr/avr.c (avr_rotate_bytes): New function.
27054 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
27055
27056 2010-01-08 Steve Ellcey <sje@cup.hp.com>
27057
27058 PR target/37454
27059 * configure.ac: Modify -rdynamic check.
27060 * configure: Regenerate.
27061
27062 2010-01-08 DJ Delorie <dj@redhat.com>
27063
27064 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
27065 register popping order.
27066
27067 2010-01-08 Richard Guenther <rguenther@suse.de>
27068
27069 PR lto/42528
27070 * c.opt (fsigned-char): Also let LTO handle this option.
27071 (funsigned-char): Likewise.
27072
27073 2010-01-07 Richard Guenther <rguenther@suse.de>
27074
27075 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
27076 (gimple_op): Likewise.
27077 (gimple_op_ptr): Likewise.
27078 (gimple_assign_set_lhs): Remove gcc_assert.
27079 (gimple_assign_set_rhs1): Likewise.
27080 (gimple_assign_set_rhs2): Likewise.
27081 (gimple_call_set_lhs): Likewise.
27082 (gimple_call_set_fn): Likewise.
27083 (gimple_call_set_fndecl): Likewise.
27084 (gimple_call_fndecl): Likewise.
27085 (gimple_call_return_type): Likewise.
27086 (gimple_call_set_chain): Likewise.
27087 (gimple_call_num_args): Likewise.
27088 (gimple_call_set_arg): Likewise.
27089 (gimple_cond_set_code): Likewise.
27090 (gimple_cond_set_lhs): Likewise.
27091 (gimple_cond_set_rhs): Likewise.
27092 (gimple_cond_set_true_label): Likewise.
27093 (gimple_cond_set_false_label): Likewise.
27094 (gimple_label_set_label): Likewise.
27095 (gimple_goto_set_dest): Likewise.
27096 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
27097 (gimple_debug_bind_get_value): Likewise.
27098 (gimple_debug_bind_get_value_ptr): Likewise.
27099 (gimple_debug_bind_set_var): Likewise.
27100 (gimple_debug_bind_set_value): Likewise.
27101 (gimple_debug_bind_reset_value): Likewise.
27102 (gimple_debug_bind_has_value_p): Likewise.
27103 (gimple_return_retval_ptr): Remove gcc_assert.
27104 (gimple_return_retval): Likewise.
27105 (gimple_return_set_retval): Likewise.
27106 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
27107 (safe_referenced_var_iterator): Remove.
27108 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
27109 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
27110 (fill_referenced_var_vec): Remove.
27111 (first_readonly_imm_use): Remove redundant gcc_assert.
27112 (phi_arg_index_from_use): Combine gcc_asserts.
27113 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
27114 (first_imm_use_stmt): Remove redundant gcc_assert.
27115 * tree-cfg.c (verify_gimple_call): Verify function and chain
27116 operands. Verify arguments.
27117 (verify_types_in_gimple_stmt): Verify condition code and labels.
27118
27119 2010-01-07 Richard Guenther <rguenther@suse.de>
27120
27121 PR tree-optimization/42641
27122 * sese.c (rename_map_elt_info): Use the SSA name version, do
27123 not hash pointers.
27124
27125 2010-01-07 Jakub Jelinek <jakub@redhat.com>
27126
27127 PR tree-optimization/42625
27128 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
27129 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
27130
27131 2010-01-07 Duncan Sands <baldrick@free.fr>
27132
27133 * Makefile.in (PLUGIN_HEADERS): Add version.h.
27134
27135 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
27136
27137 PR target/42511
27138 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
27139 note itself is not function_invariant_p.
27140
27141 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
27142
27143 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
27144 Do not add the DF_NOTE problem.
27145 * store-motion.c (execute_rtl_store_motion): Likewise.
27146
27147 2010-01-07 Martin Jambor <mjambor@suse.cz>
27148
27149 PR tree-optimization/42157
27150 * tree-sra.c (compare_access_positions): Stabilize sort if both
27151 accesses have integer types, return zero immediately if they are the
27152 same.
27153
27154 2010-01-06 Richard Henderson <rth@redhat.com>
27155
27156 PR middle-end/41883
27157 * haifa-sched.c (add_to_note_list): Merge into ...
27158 (concat_note_lists): ... here, and ...
27159 (unlink_other_notes, rm_other_notes): Merge into...
27160 (remove_notes): ... here. Create REG_SAVE_NOTEs for
27161 NOTE_INSN_EPILOGUE_BEG.
27162
27163 2010-01-06 Richard Guenther <rguenther@suse.de>
27164
27165 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
27166 not inline regular functions into always-inline functions.
27167
27168 2010-01-06 Nick Clifton <nickc@redhat.com>
27169
27170 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
27171 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
27172 used together.
27173 (OVERRIDE_OPTIONS): Delete.
27174 (OPTIMIZATION_OPTIONS): Define.
27175 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
27176 * config/rx/rx.c (rx_handle_option): Issue an error message if
27177 -mcpu=rx200 and -fpu are used together.
27178 (rx_set_optimization_options): New function. Issue an error
27179 message if an optimization attribute attempts to reset the FPU/
27180 math optimization pairing.
27181 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
27182 * config/rx/rx.opt: Set the default to 32-bit doubles.
27183 * config/rx/t-rx: Add multilibs for -nofpu option.
27184 * doc/invoke.texi: Update documentation of RX options.
27185
27186 2010-01-06 Richard Guenther <rguenther@suse.de>
27187
27188 * tree-ssa-pre.c (name_to_id): New global.
27189 (alloc_expression_id): Simplify SSA name handling.
27190 (lookup_expression_id): Likewise.
27191 (init_pre): Zero name_to_id.
27192 (fini_pre): Free it.
27193
27194 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
27195
27196 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
27197
27198 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
27199
27200 PR target/42542
27201 * config/i386/sse.md (smaxv2di3): New.
27202 (umaxv2di3): Likewise.
27203 (sminv2di3): Likewise.
27204 (uminv2di3): Likewise.
27205
27206 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
27207
27208 PR target/42564
27209 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
27210 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
27211 (legitimize_tls_address): Likewise.
27212 (sparc_tls_referenced_p): Likewise.
27213 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
27214 and adjust calls to legitimize_pic_address.
27215 (legitimate_constant_p) Use sparc_tls_referenced_p.
27216 (legitimate_pic_operand_p): Likewise.
27217 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
27218 (sparc_tls_symbol_ref_1): Delete.
27219 (sparc_tls_referenced_p): Make static, recognize specific patterns.
27220 (legitimize_tls_address): Make static, handle CONST patterns.
27221 (legitimize_pic_address): Make static, remove unused parameter and
27222 adjust recursive calls.
27223 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
27224 and adjust call to legitimize_pic_address.
27225 (sparc_output_mi_thunk): Likewise.
27226
27227 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
27228 H.J. Lu <hongjiu.lu@intel.com>
27229
27230 PR target/42542
27231 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
27232 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
27233 operands to make them signed.
27234
27235 Revert:
27236 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
27237
27238 PR target/42542
27239 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
27240 GTU to GT for V4SI and V2DI.
27241
27242 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
27243 (umin<mode>3): Removed.
27244 (uminv8hi3): New.
27245 (uminv4si3): Likewise.
27246
27247 2010-01-05 Martin Jambor <mjambor@suse.cz>
27248
27249 PR tree-optimization/42462
27250 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
27251 current_function_decl to helper functions and macros.
27252
27253 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27254
27255 PR bootstrap/41771
27256 * flags.h: Don't include real.h.
27257 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
27258 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
27259 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
27260 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
27261 * dominance.c: Update copyright.
27262 * gimple.c (walk_gimple_op): Remove inline.
27263 * tree-ssa-reassoc.c: Include real.h.
27264 * Makefile.in (FLAGS_H): Remove $(REAL_H).
27265 (tree-ssa-reassoc.o): Depend on $(REAL_H).
27266
27267 2010-01-05 Nick Clifton <nickc@redhat.com>
27268
27269 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
27270 register to push into the stack frame when the accumulator has to
27271 be saved during interrupts.
27272
27273 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
27274
27275 * doc/invoke.texi: Remove the documentation about option
27276 -Wunreachable-code.
27277 * common.opt (Wunreachable-code): Preserved for backward
27278 compatibility.
27279 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
27280 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
27281 the backward compatibility flag section.
27282
27283 2010-01-05 Richard Guenther <rguenther@suse.de>
27284
27285 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
27286
27287 2010-01-05 Jakub Jelinek <jakub@redhat.com>
27288
27289 PR other/42611
27290 * cfgexpand.c (expand_one_var): Diagnose too large variables.
27291
27292 PR tree-optimization/42508
27293 * tree-sra.c (convert_callers): Check for recursive call
27294 by comparing cgraph nodes instead of decls.
27295 (modify_function): Call ipa_modify_formal_parameters also
27296 on all same_body aliases.
27297
27298 * cgraphunit.c (cgraph_materialize_all_clones): Compare
27299 cgraph nodes when checking for same_body aliases.
27300
27301 2010-01-05 Richard Guenther <rguenther@suse.de>
27302
27303 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
27304 allocation and lookup.
27305 (get_or_alloc_expr_for_constant): Likewise.
27306 (phi_translate): Sink allocation.
27307
27308 2010-01-04 Richard Guenther <rguenther@suse.de>
27309
27310 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
27311 a new entry only if needed.
27312 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
27313 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
27314 hashtable lookup.
27315 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
27316 the result array.
27317 (phi_translate): Handle CONSTANTs early.
27318
27319 2010-01-04 Martin Jambor <mjambor@suse.cz>
27320
27321 PR tree-optimization/42398
27322 * tree-sra.c (struct access): Removed flag grp_different_types.
27323 (dump_access): Do not dump the removed flag.
27324 (sort_and_splice_var_accesses): Do not set the removed flag.
27325 (sra_modify_expr): Check for type compatibility directly.
27326
27327 2010-01-04 Martin Jambor <mjambor@suse.cz>
27328
27329 PR tree-optimization/42366
27330 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
27331 edges with variable number of parameters.
27332 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
27333 flag instead of asserting it.
27334 (ipa_read_node_info): Read uses_analysis_done flag.
27335
27336 2010-01-04 Richard Guenther <rguenther@suse.de>
27337
27338 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
27339 iterative_hash_* as intended.
27340 (vn_reference_compute_hash): Likewise. Simplify hashing
27341 SSA names.
27342 (vn_reference_lookup_2): Likewise.
27343 (vn_nary_op_compute_hash): Likewise.
27344 (vn_phi_compute_hash): Likewise.
27345 (expressions_equal_p): Remove strange code.
27346 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
27347 (pre_expr_hash): Likewise. Simplify hashing SSA names.
27348 (bitmap_insert_into_set_1): Take value-id as parameter.
27349 (add_to_value): Pass it.
27350 (bitmap_insert_into_set): Likewise.
27351 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
27352
27353 2010-01-04 Jakub Jelinek <jakub@redhat.com>
27354
27355 PR driver/42442
27356 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
27357 (do_self_spec): For switches with SWITCH_IGNORE set set also
27358 SWITCH_IGNORE_PERMANENTLY.
27359 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
27360 of SWITCH_IGNORE.
27361
27362 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
27363
27364 * lto-streamer-out.c (output_unreferenced_globals): Output the full
27365 tree of an unreferenced global var.
27366
27367 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
27368
27369 PR target/42542
27370 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
27371 GTU to GT for V4SI and V2DI.
27372
27373 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
27374 (umin<mode>3): Removed.
27375 (uminv8hi3): New.
27376 (uminv4si3): Likewise.
27377
27378 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
27379
27380 PR lto/42581
27381 * collect2.c (main): Turn on trace in collect2 if -v is passed
27382 to gcc with LTO.
27383
27384 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
27385
27386 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
27387 description of expression operand.
27388
27389 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
27390
27391 * configure.ac: Add install-html to target_list for Make-hooks.
27392 * configure: Regenerate.
27393 * fortran/Make-lang.in (F95_HTMLFILES): New.
27394 (fortran.html): Use it.
27395 (fortran.install-html): New.
27396 * Makefile.in (install-html): Add lang.install-html.
27397 * java/Make-lang.in (JAVA_HTMLFILES): New.
27398 (java.html): Use it.
27399 (java.install-html): New.
27400 * objc/Make-lang.in (objc.install-html): New.
27401 * objcp/Make-lang.in (obj-c++.install-html): New.
27402 * cp/Make-lang.in (c++.install-html): New.
27403 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
27404 * lto/Make-lang.in (lto.install-html): New.
27405
27406 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
27407
27408 PR lto/42520
27409 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
27410
27411 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
27412
27413 PR rtl-optimization/41862
27414 * store-motion.c (store_killed_in_insn, compute_store_table,
27415 remove_reachable_equiv_notes, replace_store_insn,
27416 build_store_vectors): Ignore all DEBUG_INSNs.
27417
27418 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
27419
27420 PR lto/41564
27421 * common.opt: Add dumpdir.
27422
27423 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
27424 isn't specified.
27425 (option_map): Add --dumpdir.
27426
27427 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
27428
27429 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
27430
27431 * opts.c (decode_options): Try dump_dir_name first if
27432 dump_base_name isn't an absolute path.
27433 (common_handle_option): Handle OPT_dumpdir.
27434
27435 * toplev.c (dump_dir_name): New.
27436 (print_switch_values): Also ignore -dumpdir.
27437
27438 * toplev.h (dump_dir_name): New.
27439
27440 2010-01-03 Richard Guenther <rguenther@suse.de>
27441
27442 PR tree-optimization/42589
27443 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
27444 double-word expansion of bswap32.
27445
27446 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
27447
27448 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
27449 with BLOCK_FOR_INSN.
27450 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
27451 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
27452 noce_process_if_block): Likewise.
27453 * gcse.c (compute_local_properties, insert_expr_in_table,
27454 insert_set_in_table, canon_list_insert, find_avail_set,
27455 pre_insert_copy_insn): Likewise.
27456
27457 * basic-block.h (BLOCK_NUM): Move from here...
27458 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
27459
27460 2010-01-03 Richard Guenther <rguenther@suse.de>
27461
27462 PR tree-optimization/42438
27463 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
27464 contains_may_not_return_call flag.
27465 (BB_MAY_NOTRETURN): New.
27466 (valid_in_sets): Trapping nary operations are not valid
27467 in blocks that may not return.
27468 (insert_into_preds_of_block): Remove check for trapping expressions.
27469 (compute_avail): Compute also BB_MAY_NOTRETURN.
27470
27471 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
27472
27473 * doc/invoke.texi: Add 2010 to copyright years.
27474
27475 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
27476
27477 * config/sparc/sparc.c: Fix formatting nits.
27478
27479 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
27480 Alexander Monakov <amonakov@ispras.ru>
27481
27482 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
27483
27484 2010-01-02 Richard Guenther <rguenther@suse.de>
27485
27486 PR middle-end/42577
27487 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
27488 (simplify_switch_using_ranges): Mark to be removed edges
27489 as non-executable.
27490
27491 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27492
27493 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27494
27495 * collect2.c (scan_libraries): Add missing argument in call to
27496 scan_prog_file.
27497
27498 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
27499
27500 PR target/42448
27501 * config/alpha/predicates.md (aligned_memory_operand): Return false
27502 for CQImode.
27503 (unaligned_memory_operand): Return true for CQImode.
27504 * config/alpha/alpha.c (get_aligned_mem): Assert that location
27505 doesn not cross aligned SImode word boundary.
27506
27507 2010-01-02 Anatoly Sokolov <aesok@post.ru>
27508
27509 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
27510 Remove.
27511 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
27512 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
27513
27514 2010-01-02 Richard Guenther <rguenther@suse.de>
27515
27516 PR lto/41597
27517 * toplev.c (compile_file): Emit LTO marker properly. Change
27518 it to __gnu_lto_v1.
27519 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
27520
27521 2010-01-01 Richard Guenther <rguenther@suse.de>
27522
27523 PR debug/42455
27524 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
27525
27526 2010-01-01 Richard Guenther <rguenther@suse.de>
27527
27528 PR c/42570
27529 * c-decl.c (grokdeclarator): For zero-size arrays force
27530 structural equality checks as layout_type does.
27531
27532 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
27533
27534 * builtins.c: Update copyright to 2010.
27535
27536 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
27537
27538 PR lto/42531
27539 * lto-streamer-out.c (produce_asm): Revert the last change.
27540 (copy_function): Likewise.
27541
27542 * lto-streamer.c (lto_get_section_name): Skip any leading
27543 asterisk in name.
27544
27545 2010-01-01 Richard Guenther <rguenther@suse.de>
27546
27547 PR middle-end/42559
27548 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
27549 for LABEL_DECLs.
27550
27551 \f
27552 Copyright (C) 2010 Free Software Foundation, Inc.
27553
27554 Copying and distribution of this file, with or without modification,
27555 are permitted in any medium without royalty provided the copyright
27556 notice and this notice are preserved.