predicates.md (rx_store_multiple_vector): Reverse order of expected registers.
[gcc.git] / gcc / ChangeLog
1 2009-11-03 Nick Clifton <nickc@redhat.com>
2 Kevin Buettner <kevinb@redhat.com>
3
4 * config/rx/predicates.md (rx_store_multiple_vector): Reverse
5 order of expected registers.
6 (rx_load_multiple_vector): Likewise.
7 (rx_rtsd_vector): Likewise.
8 * config/rx/rx.c (rx_cpu_type): New variable.
9 (rx_print_operand): Fix bug printing 64-bit constant values.
10 (rx_emit_stack_pushm): Reverse order of pushed registers.
11 (gen_rx_store_vector): Likewise.
12 (is_fast_interrupt_func): Only accept "fast_interrupt" as the
13 attribute name.
14 (is_exception_func): Rename to is_interrupt_func and only accept
15 "interrupt" as the attribute name.
16 (rx_get_stack_layout): Use new function name.
17 (rx_func_attr_inlinable): Likewise.
18 (rx_attribute_table): Remove "exception".
19 (rx_expand_prologue): If necessary push the accumulator register
20 in the prologue of interrupt functions.
21 (rx_expand_epilogue): If necessary pop the accumulator.
22 (rx_builtins): Add RX_BUILTIN_MVTIPL.
23 (rx_expand_builtin_stz): Remove.
24 (rx_expand_builtin_mvtipl): New function.
25 (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
26 (rx_expand_builtin): Likewise.
27 (rx_enable_fpu): New variable.
28 (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
29 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
30 on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
31 (enum rx_cpu_types): Define.
32 (ASM_SPEC): Pass -m32bit-doubles on to assembler.
33 (INCOMING_FRAME_SP_OFFSET): Define.
34 (ARG_POINTER_CFA_OFFSET): Define.
35 (FRAME_POINTER_CFA_OFFSET): Define.
36 (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
37 (ALLOW_RX_FPU_INSNS): Define.
38 * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
39 fast_math_flags_set_p.
40 (UNSPEC_BUILTIN_MVTIPL): Define.
41 (revl): Rename to bswapsi2.
42 (bswaphi2): New pattern.
43 (mvtachi): Mark as volatile because it uses a register unknown to
44 GCC.
45 (mvtaclo): Likewise.
46 (racw): Likewise.
47 (mvtc): Remove clobber of cc0.
48 (mvtcp): Delete.
49 (opecp): Delete.
50 * config/rx/rx.opt (mieee): Remove.
51 (fpu): Add.
52 (nofpu): Add.
53 (mcpu=): Add.
54 (patch=): Add.
55 (msave-acc-in-interrupts): Add.
56 * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit
57 doubles.
58 (MULTILIB_DIRS): Likewise.
59 (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
60 * doc/extend.texi: Remove description of "exception" function
61 attribute.
62 * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
63 -msave-acc-in-interrupts options.
64
65 2009-11-03 Richard Guenther <rguenther@suse.de>
66
67 * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
68
69 2009-11-03 Dodji Seketeli <dodji@redhat.com>
70
71 PR c++/38699
72 * c-common.c (fold_offsetof_1): Issue errors when the member designator
73 of the offsetoff expression is not legitimate.
74
75 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
76
77 * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
78 names instead of numerical constants.
79 (sse_prologue_save): Ditto.
80 (*sse_prologue_save_insn): Ditto.
81
82 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
83
84 PR target/41900
85 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
86 (TARGET_CALL_ESP): New define.
87 * config/i386/i386.c (initial_ix86_tune_features): Initialize
88 X86_ARCH_CALL_ESP.
89 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
90 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
91 *call_1, *call_value_pop_1 and *call_value_1. Depend on
92 TARGET_CALL_ESP.
93 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
94 New patterns, use "lsm" as operand 1 constraint.
95 * config/i386/predicates.md (call_insn_operand): Depend on
96 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
97
98 2009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
99
100 PR tree-optimization/41857
101 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
102 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
103 to create_mem_ref.
104 * tree-ssa-address.c (move_hint_to_base): New function.
105 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
106 address space associated with TYPE.
107 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
108 most_expensive_mult_to_index. Call move_hint_to_base.
109 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
110 TYPE to addr_to_parts.
111
112 2009-11-02 Martin Jambor <mjambor@suse.cz>
113
114 PR tree-optimization/41750
115 * tree-sra.c (analyze_modified_params): Loop over all
116 representatives of components of a parameter.
117
118 2009-11-02 Jakub Jelinek <jakub@redhat.com>
119
120 PR tree-optimization/41841
121 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
122 local variables of not yet materialized clones.
123
124 PR debug/41893
125 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
126 for a VOIDmode variable.
127
128 PR c++/41774
129 * c-pragma.c (visstack): Change into vector of ints rather than
130 enum symbol_visibility.
131 (push_visibility): Add kind argument, push default_visibility together
132 with kind.
133 (pop_visibility): Add kind argument, return true if successful, fail
134 if visibility stack is empty or if stack top is of different kind.
135 (handle_pragma_visibility): Don't check length of visstack, instead
136 call pop_visibility and issue diagnostics if it failed. Pass 0
137 as last argument to push_visibility and pop_visibility.
138 * c-pragma.h (push_visibility): Add kind argument.
139 (pop_visibility): Likewise. Return bool instead of void.
140
141 2009-11-01 Eric Botcazou <ebotcazou@adacore.com>
142
143 * tree.def (TARGET_MEM_REF): Update comment.
144 * alias.c (get_alias_set): Retrieve the original memory reference for
145 a TARGET_MEM_REF before proceeding.
146
147 2009-10-31 Anatoly Sokolov <aesok@post.ru>
148
149 * config/frv/frv.c (frv_function_value, frv_libcall_value,
150 frv_function_value_regno_p): New functions.
151 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
152 * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
153 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
154 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
155
156 2009-10-31 Anatoly Sokolov <aesok@post.ru>
157
158 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
159 new 'outgoing' argument.
160 (mn10300_libcall_value, mn10300_function_value_regno_p): New
161 functions.
162 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
163 * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
164 LIBCALL_VALUE): Remove.
165 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
166 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
167 (mh10300_function_value_regno_p): Declare.
168
169 2009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
170
171 * config/arm/cortex-a9.md: New - integer pipeline description.
172
173 2009-10-31 Eric Botcazou <ebotcazou@adacore.com>
174
175 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
176 aborting if the sizes of the two references don't match.
177
178 2009-10-31 Toon Moene <toon@moene.org>
179
180 * ipa-inline.c (cgraph_decide_inlining):
181 Include reason for not inlining called-once functions in dump file.
182
183 2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
184
185 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
186 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
187 (LINK_SPEC): BE_LINK_SPEC added.
188
189 2009-10-30 Richard Guenther <rguenther@suse.de>
190
191 PR lto/41858
192 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
193
194 2009-10-30 Nathan Sidwell <nathan@codesourcery.com>
195
196 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
197 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
198 label.
199
200 2009-10-30 Martin Jambor <mjambor@suse.cz>
201
202 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
203
204 2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
205
206 PR target/40838
207 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
208 first. Move assert on stack_alignment_estimated just before
209 setting stack_realign_needed.
210 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
211 Don't call update_stack_boundary.
212
213 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
214 (verride_options): Don't check ix86_force_align_arg_pointer here.
215 (ix86_function_ok_for_sibcall): Use it.
216 (ix86_update_stack_boundary): Likewise.
217
218 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
219
220 2009-10-30 Richard Earnshaw <rearnsha@arm.com>
221
222 * arm.md (QHSI): New mode iterator.
223 (movqi): If generating for thumb, then truncate any immediate to
224 8 bits.
225 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
226 with...
227 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
228 version.
229
230 2009-10-29 Cary Coutant <ccoutant@google.com>
231
232 PR debug/41700
233 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
234 locations in the source).
235 (store_vcall_insn): New function.
236 (lookup_vcall_insn): New function.
237 (dwarf2out_virtual_call_token): Use store_vcall_insn.
238 (dwarf2out_copy_call_info): New function.
239 (dwarf2out_virtual_call): Use lookup_vcall_insn.
240 * emit-rtl.c (try_split): Call copy_call_info debug hook.
241 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
242 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
243 (debug_nothing_rtx_rtx): New dummy hook.
244 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
245 (xcoff_debug_hooks): Likewise.
246 * sdbout.c (sdb_debug_hooks): Likewise.
247 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
248
249 2009-10-29 David Daney <ddaney@caviumnetworks.com>
250
251 * doc/invoke.texi (mmcount-ra-address): Document new command line
252 option.
253 * config/mips/mips.opt (mmcount-ra-address): New option.
254 * config/mips/mips-protos.h (mips_function_profiler): Declare new
255 function.
256 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
257 member.
258 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
259 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
260 rewritten.
261 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
262 mips_function_profiler.
263
264 2009-10-29 Steve Ellcey <sje@cup.hp.com>
265
266 PR middle-end/37565
267 PR target/38018
268 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
269 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
270 * optc-gen.awk (cl_target_option_restore): Include call to
271 targetm.override_options_after_change.
272 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
273 * target.h (override_options_after_change): New.
274 * c-common.c (parse_optimize_options): Call
275 targetm.override_options_after_change.
276 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
277 (ia64_override_options_after_change): New.
278 (ia64_override_options) Add call to above.
279
280 2009-10-29 Michael Matz <matz@suse.de>
281
282 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
283 (gate_convert_to_rsqrt): Ditto.
284 (pass_convert_to_rsqrt): Ditto.
285 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
286 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
287 to pass list.
288
289 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
290
291 2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
292
293 * config/arm/arm.c (find_best_start): Fix type of remainder to be
294 unsigned .
295
296 2009-10-29 Martin Jambor <mjambor@suse.cz>
297
298 PR tree-optimization/41775
299 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
300 (generate_subtree_copies): Do not unshare agg.
301 (load_assign_lhs_subreplacements): Do not unshare rhs.
302 (sra_modify_assign): Do not unshare exprs.
303 (propagate_subacesses_accross_link): Renamed to
304 propagate_subaccesses_across_link.
305
306 2009-10-29 Richard Earnshaw <rearnsha@arm.com>
307
308 * arm.c (count_insns_for_constant): Rework to support counting for
309 thumb2 immediates as well.
310 (find_best_start): Split out from arm_gen_constant.
311 (arm_gen_constant): Rework to support XOR with immediate.
312
313 2009-10-29 Chao-ying Fu <fu@mips.com>
314
315 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
316 functions.
317 (mips_expand_synci_loop): Use the length rtx to control the
318 synci loop from the begin rtx that points to the first byte of
319 the cache line.
320
321 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
322
323 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
324
325 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
326
327 * dbxout.c (dbxout_common_check): Accept non public trees.
328 * dwarf2out.c (fortran_common): Accept non public trees.
329
330 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
331
332 * common.opt (fuse-linker-plugin): New option.
333 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
334 fuse-linker-plugin.
335 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
336
337 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
338
339 PR rtl-optimization/39715
340 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
341 (gen_cstoresi_ltu_thumb1): New splitter.
342
343 2009-10-28 Richard Guenther <rguenther@suse.de>
344
345 PR lto/41808
346 PR lto/41839
347 * tree-ssa.c (useless_type_conversion_p): Do not treat
348 conversions to pointers to incomplete types as useless.
349 * gimple.c (gimple_types_compatible_p): Compare struct tags,
350 not typedef names.
351
352 2009-10-28 Jakub Jelinek <jakub@redhat.com>
353
354 * var-tracking.c (emit_note_insn_var_location): Don't call the second
355 vt_expand_loc unnecessarily when location is not a register nor
356 memory.
357
358 PR middle-end/41837
359 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
360 fields don't have DECL_NAME.
361
362 PR debug/41801
363 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
364 call convert_memory_address on addr.
365
366 PR target/41762
367 * config/i386/i386.c (ix86_pic_register_p): Don't call
368 rtx_equal_for_cselib_p for VALUEs discarded as useless.
369
370 2009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
371
372 * var-tracking.c (emit_note_insn_var_location): Get the mode of
373 a variable part from its REG, MEM or VALUE.
374
375 2009-10-28 Richard Guenther <rguenther@suse.de>
376
377 * gimple.c (gimple_get_alias_set): Fix comment typo.
378
379 2009-10-28 Richard Guenther <rguenther@suse.de>
380
381 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
382 (free_lang_data): Unconditionally compute alias sets for all
383 standard integer types. Bail out if gate bailed out previously.
384 Do not reset the types_compatible_p langhook.
385 (gate_free_lang_data): Remove.
386 (struct pass_ipa_free_lang_data): Enable unconditionally.
387 * gimple.c (gimple_get_alias_set): Use the same alias-set for
388 all pointer types.
389
390 2009-10-28 Richard Guenther <rguenther@suse.de>
391
392 PR middle-end/41855
393 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
394 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
395 (call_may_clobber_ref_p_1): Likewise.
396 * tree-ssa-structalias.c (find_func_aliases): Likewise.
397 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
398
399 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
400
401 PR rtl-optimization/41812
402
403 Revert:
404 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
405
406 * df-problems.c (df_md_scratch): New.
407 (df_md_alloc, df_md_free): Allocate/free it.
408 (df_md_local_compute): Only include live registers in init.
409 (df_md_transfer_function): Prune the in-set computed by
410 the confluence function, and the gen-set too.
411
412 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
413
414 PR rtl-optimization/39715
415 * combine.c (simplify_comparison): Use extensions to
416 widen comparisons. Try an ANDing first.
417
418 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
419
420 PR rtl-optimization/40741
421 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
422 a small constant is cheap.
423 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
424 force_reg on the LHS.
425 (xorsi3): Likewise, and split the XOR if the constant is complex
426 and not in Thumb mode.
427
428 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
429
430 * expmed.c (emit_store_flag): Check costs before
431 transforming to the opposite representation.
432
433 2009-10-28 Paolo Bonzini <bonzini@gnu.org>
434
435 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
436 cstore result to DImode.
437
438 2009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
439
440 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
441 inside the unspec vector.
442
443 2009-10-27 Richard Henderson <rth@redhat.com>
444
445 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
446
447 2009-10-27 Richard Henderson <rth@redhat.com>
448
449 PR c++/41819
450 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
451 eh_region_may_contain_throw; update users.
452 (eh_region_may_contain_throw): New function.
453 (lower_catch): Check flag_exceptions before creating exception region.
454 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
455 (lower_cleanup): Tidy existing flag_exceptions check to match.
456
457 2009-10-27 Kai Tietz <kai.tietz@onevision.com>
458
459 PR/41799
460 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
461 * config/i386/mingw.opt: Add fset-stack-executable.
462 * config/i386/i386.c (ix86_trampoline_init): Make call to
463 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
464 defined and its value is not zero.
465 * doc/invoke.texi
466
467 2009-10-27 Richard Guenther <rguenther@suse.de>
468
469 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
470 handle calls to externally visible functions like in regular mode.
471 (create_variable_info_for): Do not create function infos here.
472 (have_alias_info): Remove write-only variable.
473 (solve_constraints): New function split out from common code
474 in compute_points_to_sets and ipa_pta_execute.
475 (compute_points_to_sets): Adjust.
476 (ipa_pta_execute): Likewise. Handle clones and externally visible
477 functions like in non-IPA mode.
478
479 2009-10-27 Jakub Jelinek <jakub@redhat.com>
480
481 PR c/41842
482 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
483 error_mark_node.
484
485 2009-10-27 Richard Guenther <rguenther@suse.de>
486
487 * tree-complex.c (expand_complex_div_wide): Check for
488 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
489
490 2009-10-27 Revital Eres <eres@il.ibm.com>
491
492 PR tree-optimization/40648
493 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
494 Change decision of when to peel for alignment.
495
496 2009-10-27 Richard Guenther <rguenther@suse.de>
497
498 PR lto/41821
499 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
500
501 2009-10-27 Aldy Hernandez <aldyh@redhat.com>
502
503 PR bootstrap/41451
504 * fold-const.c (fold_binary_loc): Do not call
505 protected_set_expr_location.
506
507 2009-10-27 Wei Guozhi <carrot@google.com>
508
509 PR target/41705
510 * target.h (have_conditional_execution): Add a new target hook
511 function.
512 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
513 * targhooks.h (default_have_conditional_execution): Likewise.
514 * targhooks.c (default_have_conditional_execution): Likewise.
515 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
516 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
517 (arm_have_conditional_execution): New function.
518 * ifcvt.c (noce_process_if_block, find_if_header,
519 cond_exec_find_if_block, dead_or_predicable): Change the usage of
520 macro HAVE_conditional_execution to a target hook call.
521 * recog.c (peephole2_optimize): Likewise.
522 * sched-rgn.c (add_branch_dependences): Likewise.
523 * final.c (asm_insn_count, final_scan_insn): Likewise.
524 * bb-reorder.c (HAVE_conditional_execution): Remove it.
525
526 2009-10-26 Ben Elliston <bje@au.ibm.com>
527 Michael Meissner <meissner@linux.vnet.ibm.com>
528 Ulrich Weigand <uweigand@de.ibm.com>
529
530 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
531 * config/spu/spu_cache.h: New file.
532
533 * config/spu/cachemgr.c: New file.
534 * config/spu/cache.S: New file.
535
536 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
537 (ADDR_SPACE_EA): Define.
538 (TARGET_ADDR_SPACE_KEYWORDS): Define.
539 * config/spu/spu.c (EAmode): New macro.
540 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
541 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
542 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
543 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
544 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
545 (TARGET_ADDR_SPACE_CONVERT): Likewise.
546 (TARGET_ASM_SELECT_SECTION): Likewise.
547 (TARGET_ASM_UNIQUE_SECTION): Likewise.
548 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
549 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
550 (ea_symbol_ref): New function.
551 (spu_legitimate_constant_p): Handle __ea qualified addresses.
552 (spu_addr_space_legitimate_address_p): New function.
553 (spu_addr_space_legitimize_address): Likewise.
554 (cache_fetch): New global.
555 (cache_fetch_dirty): Likewise.
556 (ea_alias_set): Likewise.
557 (ea_load_store): New function.
558 (ea_load_store_inline): Likewise.
559 (expand_ea_mem): Likewise.
560 (spu_expand_mov): Handle __ea qualified memory references.
561 (spu_addr_space_pointer_mode): New function.
562 (spu_addr_space_address_mode): Likewise.
563 (spu_addr_space_subset_p): Likewise.
564 (spu_addr_space_convert): Likewise.
565 (spu_section_type_flags): Handle "._ea" section.
566 (spu_select_section): New function.
567 (spu_unique_section): Likewise.
568 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
569 and __EA64__ predefined macros.
570 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
571 -matomic-updates switches.
572
573 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
574 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
575 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
576 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
577 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
578 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
579 $(T)cache128k.o): Likewise.
580 ($(T)libgcc_%.a): Likewise.
581
582 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
583 * config/spu/spu.opt (-mea32/-mea64): Add switches.
584 (-maddress-space-conversion): Likewise.
585 (-mcache-size=): Likewise.
586 (-matomic-updates): Likewise.
587 * doc/invoke.texi (-mea32/-mea64): Document.
588 (-maddress-space-conversion): Likewise.
589 (-mcache-size=): Likewise.
590 (-matomic-updates): Likewise.
591
592 2009-10-26 Ben Elliston <bje@au.ibm.com>
593 Michael Meissner <meissner@linux.vnet.ibm.com>
594 Ulrich Weigand <uweigand@de.ibm.com>
595
596 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
597
598 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
599 defined, add the named address space keywords.
600 (c_addr_space_name): New function.
601 (complete_array_type): Preserve named address space.
602 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
603 instead of targetm.valid_pointer_mode.
604
605 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
606 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
607 (ADDR_SPACE_KEYWORD): New macro.
608 (c_addr_space_name): Add prototype.
609
610 * c-tree.h (struct c_declspecs): Add address_space member.
611 (declspecs_add_addrspace): Add prototype.
612
613 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
614
615 * c-parser.c (c_parse_init): Add assertion.
616 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
617 (c_lex_one_token): Handle address space keywords.
618 (c_token_starts_typename): Likewise.
619 (c_token_starts_declspecs): Likewise.
620 (c_parser_declspecs): Likewise.
621 (c_parser_postfix_expression_after_paren_type): Diagnose compound
622 literal within function qualified with named address space.
623
624 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
625 address space qualifiers.
626 (shadow_tag_warned): Warn about useless address space qualifiers.
627 (quals_from_declspecs): Handle address space qualifiers.
628 (grokdeclarator): Likewise.
629 (build_null_declspecs): Likewise.
630 (declspecs_add_addrspace): New function.
631
632 * c-typeck.c (addr_space_superset): New function.
633 (qualify_type): Handle named address spaces.
634 (composite_type): Likewise.
635 (common_pointer_type): Likewise.
636 (comp_target_types): Likewise.
637 (build_conditional_expr): Likewise.
638 (handle_warn_cast_qual): Likewise.
639 (build_c_cast): Likewise.
640 (convert_for_assignment): Likewise.
641 (build_binary_op): Likewise.
642 (pointer_diff): Handle named address spaces. Use intermediate
643 integer type of sufficient size if required.
644
645 2009-10-26 Ben Elliston <bje@au.ibm.com>
646 Michael Meissner <meissner@linux.vnet.ibm.com>
647 Ulrich Weigand <uweigand@de.ibm.com>
648
649 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
650 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
651 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
652
653 * target.h (struct target_def): Add pointer_mode, address_mode,
654 and valid_pointer_mode to addr_space substructure.
655 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
656 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
657 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
658 (TARGET_ADDR_SPACE_HOOKS): Add them.
659 * targhooks.c (target_default_pointer_address_modes_p): New function.
660 * target.h (target_default_pointer_address_modes_p): Add prototype.
661 * targhooks.c (default_addr_space_pointer_mode): New function.
662 (default_addr_space_address_mode): Likewise.
663 (default_addr_space_valid_pointer_mode): Likewise.
664 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
665 (default_addr_space_address_mode): Likewise.
666 (default_addr_space_valid_pointer_mode): Likewise.
667 * output.h (default_valid_pointer_mode): Move to ...
668 * targhooks.h (default_valid_pointer_mode): ... here.
669 * varasm.c (default_valid_pointer_mode): Move to ...
670 * targhooks.c (default_valid_pointer_mode): ... here.
671
672 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
673 instead of targetm.valid_pointer_mode.
674
675 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
676 * tree.c (integer_pow2p): Likewise.
677 (tree_log2): Likewise.
678 (tree_floor_log2): Likewise.
679 (signed_or_unsigned_type_for): Support pointer type of different size.
680 (int_or_pointer_precision): New function.
681 * tree.h (int_or_pointer_precision): Add prototype.
682 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
683 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
684 incoming pointer type instead of POINTER_SIZE.
685
686 * tree.c (build_pointer_type): Use appropriate pointer mode
687 instead of ptr_mode.
688 (build_reference_type): Likewise.
689 * expr.c (store_expr): Likewise.
690 (expand_expr_addr_expr): Likewise.
691 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
692 * cfgexpand.c (expand_debug_expr): Likewise.
693
694 * auto-inc-dec.c: Include "target.h".
695 (try_merge): Use appropriate address mode instead of Pmode.
696 (find_inc): Likewise.
697 * combine.c (find_split_point): Likewise.
698 * cselib.c (cselib_record_sets): Likewise.
699 * dse.c (replace_inc_dec): Likewise.
700 (canon_address): Likewise.
701 * var-tracking.c (replace_expr_with_values): Likewise.
702 (count_uses): Likewise.
703 (add_uses): Likewise.
704 (add_stores): Likewise.
705 * emit-rtl.c: Include "target.h".
706 (adjust_address_1): Use appropriate address mode instead of Pmode.
707 (offset_address): Likewise.
708 * explow.c (break_out_memory_refs): Likewise.
709 (memory_address_addr_space): Likewise.
710 (promote_mode): Likewise.
711 * expr.c (move_by_pieces): Likewise.
712 (emit_block_move_via_loop): Likewise.
713 (store_by_pieces): Likewise.
714 (store_by_pieces_1): Likewise.
715 (expand_assignment): Likewise.
716 (store_constructor): Likewise.
717 (expand_expr_addr_expr): Likewise.
718 (expand_expr_real_1): Likewise.
719 * cfgexpand.c (expand_debug_expr): Likewise.
720 * ifcvt.c (noce_try_cmove_arith): Likewise.
721 * regcprop.c (kill_autoinc_value): Likewise.
722 * regmove.c (try_auto_increment): Likewise.
723 * reload.c (find_reloads): Likewise.
724 (find_reloads_address): Likewise.
725 (find_reloads_address_1): Likewise.
726 * sched-deps.c: Include "target.h".
727 (sched_analyze_1): Use appropriate address mode instead of Pmode.
728 (sched_analyze_2): Likewise.
729 * sel-sched-dump.c: Include "target.h".
730 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
731 * stor-layout.c (layout_type): Likewise.
732 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
733 (multiplier_allowed_in_address_p): Likewise.
734 (get_address_cost): Likewise.
735 * varasm.c (make_decl_rtl): Likewise.
736
737 * expr.c (expand_assignment): Always convert offsets to appropriate
738 address mode.
739 (store_expr): Likewise.
740 (store_constructor): Likewise.
741 (expand_expr_real_1): Likewise.
742
743 * reload.h (form_sum): Add MODE argument.
744 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
745 Update recursive calls.
746 (subst_indexed_address): Update calls to form_sum.
747
748 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
749 * tree-ssa-address.c: Include "target.h".
750 (templates): Replace by ...
751 (mem_addr_template_list): ... this new vector.
752 (TEMPL_IDX): Handle address space numbers.
753 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
754 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
755 instead of global cache. Update call to gen_addr_rtx.
756 (valid_mem_ref_p): Update call to addr_for_mem_ref.
757 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
758
759 * rtl.h (convert_memory_address_addr_space): Add prototype.
760 (convert_memory_address): Define as macro.
761 * explow.c (convert_memory_address): Rename to ...
762 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
763 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
764 Update recursive calls.
765 (memory_address_addr_space): Call convert_memory_address_addr_space.
766 * expmed.c (make_tree): Likewise.
767 * expr.c (expand_assignment): Likewise.
768 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
769 (expand_expr_addr_expr): Likewise. Also, update call.
770
771 * alias.c (find_base_value): Guard pointer size optimizations.
772 (find_base_term): Likewise.
773 * rtlanal.c (nonzero_bits1): Likewise.
774 (num_sign_bit_copies1): Likewise.
775 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
776
777 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
778 (emit-rtl.o): Likewise.
779 (auto-inc-dec.o): Likewise.
780 (sched-deps.o): Likewise.
781
782 2009-10-26 Ben Elliston <bje@au.ibm.com>
783 Michael Meissner <meissner@linux.vnet.ibm.com>
784 Ulrich Weigand <uweigand@de.ibm.com>
785
786 * doc/extend.texi (Named Address Spaces): New section.
787 * coretypes.h (addr_space_t): New type.
788 (ADDR_SPACE_GENERIC): New define.
789 (ADDR_SPACE_GENERIC_P): New macro.
790
791 * doc/tm.texi (Named Address Spaces): New section.
792 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
793 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
794 (TARGET_ADDR_SPACE_SUBSET_P): Document.
795 (TARGET_ADDR_SPACE_CONVERT): Document.
796 * target.h (struct gcc_target): Add addr_space substructure.
797 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
798 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
799 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
800 (TARGET_ADDR_SPACE_CONVERT): Likewise.
801 (TARGET_ADDR_SPACE_HOOKS): Likewise.
802 (TARGET_INITIALIZER): Initialize addr_space hooks.
803 * targhooks.c (default_addr_space_legitimate_address_p): New function.
804 (default_addr_space_legitimize_address): Likewise.
805 (default_addr_space_subset_p): Likewise.
806 (default_addr_space_convert): Likewise.
807 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
808 (default_addr_space_legitimize_address): Likewise.
809 (default_addr_space_subset_p): Likewise.
810 (default_addr_space_convert): Likewise.
811
812 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
813 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
814 (MEM_ADDR_SPACE): New macro.
815 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
816 address space memory attribute.
817 (mem_attrs_htab_hash): Handle address space memory attribute.
818 (mem_attrs_htab_eq): Likewise.
819 (set_mem_attributes_minus_bitpos): Likewise.
820 (set_mem_alias_set): Likewise.
821 (set_mem_align): Likewise.
822 (set_mem_expr): Likewise.
823 (set_mem_offset): Likewise.
824 (set_mem_size): Likewise.
825 (adjust_address_1): Likewise.
826 (offset_address): Likewise.
827 (widen_memoy_address): Likewise.
828 (get_spill_slot_decl): Likewise.
829 (set_mem_attrs_for_spill): Likewise.
830 (set_mem_addr_space): New function.
831 * emit-rtl.h (set_mem_addr_space): Add prototype.
832 * print-rtl.c (print_rtx): Print address space memory attribute.
833 * expr.c (expand_assignment): Set address space memory attribute
834 of generated MEM RTXes as appropriate.
835 (expand_expr_real_1): Likewise.
836 * cfgexpand.c (expand_debug_expr): Likewise.
837 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
838
839 * tree.h (struct tree_base): Add address_space bitfield. Reduce
840 size of "spare" bitfield.
841 (TYPE_ADDR_SPACE): New macro.
842 (ENCODE_QUAL_ADDR_SPACE): Likewise.
843 (DECODE_QUAL_ADDR_SPACE): Likewise.
844 (CLEAR_QUAL_ADDR_SPACE): Likewise.
845 (KEEP_QUAL_ADDR_SPACE): Likewise.
846 (TYPE_QUALS): Encode type address space.
847 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
848 * tree.c (set_type_quals): Set type address space.
849 (build_array_type): Inherit array address space from element type.
850 * print-tree.c (print_node_brief): Print type address space.
851 (print_node): Likewise.
852 * tree-pretty-print.c (dump_generic_node): Likewise.
853
854 * explow.c (memory_address): Rename to ...
855 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
856 Use address-space aware variants of memory address routines.
857 * recog.c (memory_address_p): Rename to ...
858 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
859 Use address-space aware variants of memory address routines.
860 (offsettable_address_p): Rename to ...
861 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
862 Use address-space aware variants of memory address routines.
863 * reload.c (strict_memory_address_p): Rename to ...
864 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
865 Use address-space aware variants of memory address routines.
866 (maybe_memory_address_p): Rename to ...
867 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
868 Use address-space aware variants of memory address routines.
869 * expr.h (memory_address_addr_space): Add prototype.
870 (memory_address): Define as macro.
871 * recog.h (memory_address_addr_space_p): Add prototype.
872 (memory_address_p): Define as macro.
873 (offsettable_address_addr_space_p): Add prototype.
874 (offsettable_address_p): Define as macro.
875 (strict_memory_address_addr_space_p): Add prototype.
876 (strict_memory_address_p): Define as macro.
877
878 * combine.c (find_split_point): Use address-space aware variants
879 of memory address routines.
880 * emit-rtl.c (operand_subword): Likewise.
881 (change_address_1): Likewise.
882 (adjust_address_1): Likewise.
883 (offset_address): Likewise.
884 * expr.c (emit_move_insn): Likewise.
885 (expand_assignment): Likewise.
886 (expand_expr_real_1): Likewise.
887 * recog.c (verify_changes): Likewise.
888 (general_operand): Likewise.
889 (offsettable_memref_p): Likewise.
890 (offsettable_nonstrict_memref_p): Likewise.
891 (constrain_operands): Likewise.
892 * reload.c (get_secondary_mem): Likewise.
893 (find_reloads_toplev): Likewise.
894 (find_reloads_address): Likewise.
895 (find_reloads_subreg_address): Likewise.
896 * reload1.c (reload): Likewise.
897 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
898 * rtl.h (address_cost): Add ADDRSPACE argument.
899 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
900 aware variant of memory address routines.
901 * loop-invariant.c (create_new_invariant): Update address_cost call.
902 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
903 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
904 Use address-space aware variant of memory address routines.
905 (propagate_rtx_1): Update call to should_replace_address.
906 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
907 argument.
908 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
909 ADDRSPACE argument. Use per-address-space instead of global cache.
910 Use address-space aware variant of memory address routines.
911 (get_address_cost): Likewise.
912 (get_computation_cost_at): Update calls.
913 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
914 Use address-space aware variant of memory address routines.
915 (create_mem_ref_raw): Update call to valid_mem_ref_p.
916 (most_expensive_mult_to_index): Update call to
917 multiplier_allowed_in_address_p.
918
919 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
920 attribute to indicate named address spaces.
921
922 * varasm.c (get_variable_section): DECLs in named address spaces
923 cannot be "common".
924
925 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
926 for addresses in a non-generic address space.
927
928 * expr.c (emit_block_move_hints): Do not use libcalls for
929 memory in non-generic address spaces.
930 (clear_storage_hints): Likewise.
931 (expand_assignment): Likewise.
932
933 * fold-const.c (operand_equal_p): Expressions refering to different
934 address spaces are not equivalent.
935
936 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
937 spaces are not equivalent.
938 (rtx_equal_p): Likewise.
939 * cse.c (exp_equiv_p): Likewise.
940 * jump.c (rtx_renumbered_equal_p): Likewise.
941 * reload.c (operands_match_p): Likewise.
942
943 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
944 address spaces may alias.
945 (true_dependence): Likewise.
946 (canon_true_dependence): Likewise.
947 (write_dependence_p): Likewise.
948
949 * dse.c (canon_address): Handle named address spaces.
950 * ifcvt.c (noce_try_cmove_arith): Likewise.
951
952 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
953 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
954 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
955 to handle conversions between different address spaces.
956 * fold-const.c (fold_convert_loc): Likewise.
957 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
958 * tree-pretty-print.c (dump_generic_node): Likewise.
959 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
960 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
961 * tree-inline.c (estimate_operator_cost): Likewise.
962 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
963 to different address spaces are not useless.
964
965 2009-10-26 Jakub Jelinek <jakub@redhat.com>
966
967 PR bootstrap/41345
968 * cfgcleanup.c (trivially_empty_bb_p): New function.
969 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
970
971 PR debug/41828
972 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
973 add_name_and_src_coords_attributes, gen_namespace_die,
974 dwarf2out_set_name): Handle dwarf2_name returning NULL.
975
976 2009-10-26 Nick Clifton <nickc@redhat.com>
977
978 * config.gcc: Add support for RX target.
979 * config/rx: New directory.
980 * config/rx/constraints.md: New file.
981 * config/rx/predicates.md: New file.
982 * config/rx/rx.c: New file.
983 * config/rx/rx.h: New file.
984 * config/rx/rx.md: New file.
985 * config/rx/rx.opt: New file.
986 * config/rx/rx-protos.h: New file.
987 * config/rx/t-rx: New file.
988 * doc/extend.texi: Document RX function attributes.
989 * doc/invoke.texi: Document RX specific command line options.
990 * doc/contrib.texi: Document RX contribution.
991 * doc/md.texi: Document RX constraints.
992 * doc/install.texi: Document RX support.
993
994 2009-10-26 Michael Matz <matz@suse.de>
995
996 PR tree-optimization/41783
997 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
998 case for simple diamonds.
999 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
1000 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
1001 argument, use alias oracle to skip some vdefs.
1002 (phi_translate_1): Change call to above, don't allocate new
1003 value ids if they can stay the same.
1004 (compute_avail): Allow vuse walking when looking up references.
1005
1006 2009-10-26 Richard Guenther <rguenther@suse.de>
1007
1008 PR tree-optimization/41826
1009 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
1010 access to re-allocated vector fields.
1011
1012 2009-10-26 Richard Guenther <rguenther@suse.de>
1013
1014 * graphite-sese-to-poly.c (check_poly_representation): Fix
1015 compile without checking.
1016
1017 2009-10-26 Janus Weil <janus@gcc.gnu.org>
1018
1019 PR fortran/41714
1020 * gimple.h (tree_annotate_all_with_location): Remove prototype.
1021 * gimplify.c (tree_should_carry_location_p,
1022 tree_annotate_one_with_location,tree_annotate_all_with_location):
1023 Remove obsolete functions.
1024
1025 2009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
1026
1027 PR target/41813
1028 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
1029
1030 2009-10-25 Richard Guenther <rguenther@suse.de>
1031
1032 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1033 Stream DECL_RESTRICTED_P.
1034 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1035
1036 2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
1037
1038 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
1039 a note when expanding to nothing.
1040
1041 2009-10-25 Richard Guenther <rguenther@suse.de>
1042
1043 PR middle-end/41814
1044 * tree.c (find_decls_types_r): Deal with Java overloading
1045 BINFO_VIRTUALS for its own purpose.
1046
1047 2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
1048
1049 * config/mips/predicates.md (hilo_operand): New predicate.
1050 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
1051 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
1052 splitter part from here ...:
1053 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
1054 op0 and op4 to match the DINS case.
1055 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
1056
1057 2009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1058
1059 PR middle-end/19154
1060 * avr.md (QIDI): Add new mode iterator.
1061 (sbrx_branch<mode>): Create new zero extract bit, test and jump
1062 patterns for all QI thru DI modes combinations.
1063 (sbrx_and_branch<mode>): Create new and based bit test and jump
1064 patterns for QI thru SI modes.
1065 avr.c (avr_out_sbxx_branch): Use only bit number.
1066
1067 2009-10-24 Jan Hubicka <jh@suse.cz>
1068
1069 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
1070 to memory.
1071 (analyze_function): When analyzing noreturn nothrow call, do not
1072 compute written stats; free bitmaps of vars early if possible.
1073 (generate_summary): Only update bitmaps if computed.
1074 (propagate): Only dump bitmaps if computed.
1075 (ipa_reference_read_summary): Fix pasto.
1076
1077 2009-10-24 Eric Botcazou <ebotcazou@adacore.com>
1078
1079 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
1080 (aliasing_component_refs_p): ...this. Return true if there is no
1081 common base and the base access types have the same alias set.
1082 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
1083 (indirect_refs_may_alias_p): Likewise.
1084
1085 2009-10-23 Joseph Myers <joseph@codesourcery.com>
1086
1087 PR c/40033
1088 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
1089 a C_MAYBE_CONST_EXPR.
1090
1091 2009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1092
1093 PR target/41787
1094 * config/rs6000/rs6000.c (struct machine_function): Add
1095 vsx_or_altivec_used_p to record if vector types are used.
1096 (rs6000_expand_to_rtl_hook): Rename from
1097 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
1098 any vector operations, so if there are, we can set VRSAVE to
1099 non-zero when only floating point vector registers are used.
1100 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
1101 (rs6000_check_vector_mode): Inner function to check if vector
1102 types are used in the code.
1103 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
1104 vector instructions are used.
1105
1106 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
1107 Indicate that VSX registers which overlap floating point
1108 registers, can't be used across a call, since the ABI only states
1109 the scalar part of the register will be saved and restored.
1110
1111 2009-10-23 Joseph Myers <joseph@codesourcery.com>
1112
1113 PR c/41673
1114 * alias.c (get_alias_set): Call langhook before returning 0 for
1115 types with structural equality.
1116 * c-common.c (c_common_get_alias_set): Use alias set of element
1117 type for arrays with structural comparison.
1118
1119 2009-10-23 Richard Guenther <rguenther@suse.de>
1120
1121 PR middle-end/41805
1122 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
1123 gimple_call_nothrow_p.
1124
1125 2009-10-23 Richard Guenther <rguenther@suse.de>
1126
1127 PR tree-optimization/41778
1128 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1129 redundancy along a path in the CFG we want to optimize for speed
1130 is going to be removed.
1131 (execute_pre): Do partial-PRE only if the function is to be
1132 optimized for speed.
1133 (gate_pre): Do not turn off all of PRE when not optimizing a
1134 function for speed.
1135
1136 2009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1137
1138 * builtins.c (fold_builtin_cabs): Use validate_arg().
1139 (fold_builtin_cexp): Fix if-logic.
1140 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1141
1142 2009-10-22 Jeff Law <law@redhat.com>
1143
1144 * ira-lives.c (process_single_reg_class_operands): Update the
1145 hard reg costs for all the hard registers desired by the
1146 single reg class operand.
1147
1148 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
1149
1150 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1151 for rtxes that aren't handled specially.
1152
1153 2009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
1154
1155 * rtl.h (shallow_copy_rtvec): Declare.
1156 * rtl.c (shallow_copy_rtvec): New function.
1157 * cselib.c (cselib_subst_to_values): Use it. Only modify an
1158 rtx field if the subrtx has changed.
1159
1160 2009-10-22 Anatoly Sokolov <aesok@post.ru>
1161
1162 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1163 (m32c_function_value): Make static, add new 'outgoing' argument.
1164 (m32c_libcall_value): Make static, add new 'fun' argument.
1165 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1166 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1167 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1168 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1169 (m32c_function_value, m32c_libcall_value): Delete declaration.
1170
1171 2009-10-22 Diego Novillo <dnovillo@google.com>
1172
1173 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
1174
1175 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1176
1177 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1178 space.
1179
1180 2009-10-22 Richard Guenther <rguenther@suse.de>
1181
1182 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1183 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1184 (lto_symtab_merge): Do not merge cgraph nodes here.
1185 (lto_symtab_resolve_can_prevail_p): Simplify.
1186 (lto_symtab_resolve_symbols): Store cgraph node.
1187 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
1188 functions from the symtab.
1189 (lto_symtab_merge_cgraph_nodes_1): New function.
1190 (lto_symtab_merge_cgraph_nodes): Likewise.
1191
1192 2009-10-22 Richard Guenther <rguenther@suse.de>
1193
1194 PR lto/41791
1195 * lto-streamer-out.c (lto_output_location): Stream the
1196 system header flag.
1197 * lto-streamer-in.c (lto_input_location): Likewise.
1198
1199 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
1200
1201 * cfgloopmanip.c (duplicate_subloops): Export.
1202 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
1203 (transform_to_exit_first_loop): Duplicate bbs starting from
1204 header up to loop->latch instead of exit->src.
1205 Initialize control variable to the correct number of iterations.
1206 (gather_scalar_reductions): Do not register double reductions.
1207 (parallelize_loops): Dump which loop is tested.
1208 Indicate whether the parallelized loop is inner or not.
1209 Remove the innermost-loop requirement.
1210 * cfgloop.h (duplicate_subloops): Export.
1211 * tree-cfg.c (add_phi_args_after_redirect): New function.
1212 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1213 Call duplicate_subloops.
1214 Update number of iterations at the exit condition.
1215 Don't redirect nexits always to the loop exit.
1216 Redirect copied edges from latch to the loop exit.
1217
1218 2009-10-22 Jan Hubicka <jh@suse.cz>
1219
1220 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1221 flag_ltrans check.
1222 * ipa-inline.c (cgraph_mark_inline_edge,
1223 cgraph_decide_inlining_of_small_function,
1224 cgraph_decide_inlining, inline_read_summary): Disable indirect
1225 inlining for WPA for time being.
1226
1227 PR tree-optimize/40556
1228 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1229
1230 2009-10-22 Richard Guenther <rguenther@suse.de>
1231
1232 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1233 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1234
1235 2009-10-22 Jan Hubicka <jh@suse.cz>
1236
1237 PR lto/41730
1238 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1239 global vars.
1240 (check_call): Handle only indirect calls.
1241 (propagate_bits): Update comment.
1242 (write_node_summary_p): Turn bogus check to assert.
1243 (ipa_reference_write_summary): Stream calls_read_all properly.
1244 (ipa_reference_read_summary): Stream in calls_read_all properly.
1245 (read_write_all_from_decl): New function.
1246 (propagate): Handle OVERWRITABLE nodes and external calls here.
1247 * ipa-pre-const.c (check_call): In IPA mode handle indirect
1248 calls only.
1249 (analyze_function): Do not check visibility here.
1250 (add_new_function): We summary OVERWRITABLE too.
1251 (generate_summary): Stream OVERWRITABLE nodes too.
1252 (propagate): Handle external calls and OVERWRITABLE nodes here.
1253 (local_pure_const): Check visibility here.
1254
1255 2009-10-22 Jan Hubicka <jh@suse.cz>
1256
1257 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1258 (pass_ipa_cp): Register them.
1259 (ipcp_init_stage): Analyze all functions for whopr/lto.
1260 (ipcp_propagate_stage): Skip external calls.
1261 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
1262 * ipa-reference.c (write_node_summary_p): Fix thinko about
1263 availability.
1264 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
1265 when in ltrans, skip executing of ipa passes since everything
1266 should've been done.
1267 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1268 (inline_generate_summary): Likewise.
1269 (inline_read_summary): New function.
1270 (inline_write_summary): New function.
1271 (pass_ipa_inline): Register new hooks.
1272 * ipa-prop.c: Inlcude lto-streamer.h
1273 (ipa_edge_args_vector): Update declaration.
1274 (ipa_count_arguments, ipa_compute_jump_functions,
1275 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1276 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1277 ipa_read_node_info): New static functions.
1278 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1279 (duplicate_array): Use xmalloc.
1280 (duplicate_ggc_array): New.
1281 (ipa_edge_duplication_hook): Use it.
1282 (ipa_update_after_lto_read): New function.
1283 * ipa-prop.h (ipa_prop_write_jump_functions,
1284 ipa_prop_read_jump_functions): Declare.
1285 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1286 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1287 (ipa_edge_args_vector): Move into GGC.
1288 (ipa_check_create_edge_args): Update.
1289 (ipa_update_after_lto_read): New.
1290 * passes.c (ipa_write_summaries_1): When in wpa, do not write
1291 summaries.
1292 (ipa_read_summaries): When in ltrans, so not read summaries.
1293 * lto-streamer.c (lto_get_section_name): Add
1294 LTO_section_jump_functions.
1295 * lto-streamer.h (LTO_section_jump_functions): New section.
1296 (produce_asm): Declare.
1297 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1298 * lto-streamer-out.c (produce_asm): Export.
1299 * lto-streamer-in.c: Include tree-pass.h
1300 (input_function): Free dominance info when done.
1301 (lto_read_body): Push ipa_inline in ltrans stage.
1302 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1303 * Makefile.in (GTFILES): Add ipa-prop.h
1304
1305 2009-10-22 Matthias Klose <doko@ubuntu.com>
1306
1307 * doc/install.texi: Document --enable-browser-plugin.
1308
1309 2009-10-21 Vladimir Makarov <vmakarov@redhat.com>
1310
1311 * doc/invoke.texi (fira-loop-pressure): Update default value.
1312 * opts.c (decode_options): Remove default value setting for
1313 flag_ira_loop_pressure.
1314 * config/ia64/ia64.c (ia64_override_options): Set
1315 flag_ira_loop_pressure up for -O3.
1316 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1317
1318 2009-10-21 Sebastian Pop <sebastian.pop@amd.com>
1319
1320 PR tree-optimization/41497
1321 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
1322 chrec_dont_know if the evolution function returned by follow_ssa_edge
1323 is constant in the analyzed loop and is not compatible with the
1324 initial value before the loop.
1325 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
1326
1327 2009-10-21 Joseph Myers <joseph@codesourcery.com>
1328
1329 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
1330
1331 2009-10-21 Jakub Jelinek <jakub@redhat.com>
1332
1333 PR other/25507
1334 * doc/invoke.texi: Document -print-multi-os-directory.
1335
1336 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
1337
1338 PR c++/41313
1339 * gcc/config/darwin10.h: Use default_emit_unwind_label.
1340 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
1341 when darwin_emit_unwind_label is used.
1342
1343 2009-10-21 Eric Botcazou <ebotcazou@adacore.com>
1344
1345 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1346 order of checks.
1347
1348 2009-10-20 Richard Henderson <rth@redhat.com>
1349
1350 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1351 before emit_post_landing_pad.
1352
1353 2009-10-20 Adam Nemet <anemet@caviumnetworks.com>
1354
1355 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1356 Use when calling rtx_costs.
1357 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
1358 global optimize_size. Pass speed to mips_binary_cost.
1359
1360 2009-10-20 Jakub Jelinek <jakub@redhat.com>
1361
1362 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1363 of TREE_CONSTANT.
1364
1365 2009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
1366
1367 * rtl.h (simplify_replace_fn_rtx): Declare.
1368 (wrap_constant, unwrap_constant): Delete.
1369 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1370 (expand_debug_expr): Don't call wrap_constant.
1371 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1372 (auto_adjust_pair): Fold into...
1373 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
1374 Just return a new value.
1375 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1376 otherwise use simplify_replace_rtx.
1377 * cselib.c (wrap_constant): Reinstate old definition.
1378 (cselib_expand_value_rtx_1): Don't wrap constants.
1379 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1380 simplify_replace_rtx.
1381 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1382 * reload1.c (reload): Skip all uses for an insn before adjusting it.
1383 Use simplify_replace_rtx.
1384 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1385 adapted from...
1386 (simplify_replace_rtx): ...here. Turn into a wrapper for
1387 simplify_replace_fn_rtx.
1388 (simplify_unary_operation): Don't unwrap CONSTs.
1389 * var-tracking.c (check_wrap_constant): Delete.
1390 (vt_expand_loc_callback): Don't call it.
1391 (vt_expand_loc): Likewise.
1392
1393 2009-10-20 Pascal Obry <obry@adacore.com>
1394 Eric Botcazou <ebotcazou@adacore.com>
1395
1396 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1397
1398 2009-10-20 Michael Matz <matz@suse.de>
1399
1400 * loop-invariant.c (create_new_invariant): Use different magic number.
1401
1402 2009-10-20 Richard Earnshaw <rearnsha@arm.com>
1403
1404 PR target/39247
1405 * arm.c (arm_override_options): Forcibly disable hot/cold block
1406 partitioning.
1407
1408 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
1409
1410 PR debug/41739
1411 * haifa-sched.c (try_ready): Skip debug deps updating speculation
1412 status.
1413
1414 2009-10-20 Richard Guenther <rguenther@suse.de>
1415
1416 * ggc-page.c: Include cfgloop.h.
1417 (struct max_alignment): Drop long double, add void *.
1418 (extra_order_size_table): Add low non-power-of-two multiples
1419 of MAX_ALIGNMENT. Drop small type-based entries, add
1420 tree_type, cgraph_node and loop.
1421 * alloc-pool.c (struct allocation_object_def): Drop long double
1422 aligning element.
1423
1424 2009-10-20 Jakub Jelinek <jakub@redhat.com>
1425
1426 PR debug/41340
1427 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1428 referenced just in DEBUG_INSNs.
1429
1430 2009-10-20 Richard Guenther <rguenther@suse.de>
1431
1432 PR lto/41761
1433 * gimple.c (gimple_register_type): Make sure we register
1434 the types main variant first.
1435
1436 2009-10-20 Richard Guenther <rguenther@suse.de>
1437
1438 * gimple.c (gimple_types_compatible_p): Simplify. Move
1439 cheap checks before hashtable queries. Add checks for
1440 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1441
1442 2009-10-20 Eric Botcazou <ebotcazou@adacore.com>
1443
1444 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1445 without size or with size that can't be represented as a host integer.
1446
1447 2009-10-20 Alexandre Oliva <aoliva@redhat.com>
1448
1449 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1450 the removal of a debug stmt as a significant change.
1451
1452 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
1453
1454 * config/s390/s390.md: Added agen condition to operand
1455 forwarding bypasses. Added bypass for early address generation
1456 use of int results. Updated comments.
1457
1458 2009-10-20 Stefan Dösinger <stefan@codeweavers.com>
1459
1460 * config/i386/i386.c: Remove signal.h #include.
1461
1462 2009-10-20 Jie Zhang <jie.zhang@analog.com>
1463
1464 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
1465 * doc/rtl.texi: Document ss_abs.
1466
1467 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1468
1469 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1470 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
1471 instead of C_LEX_RAW_STRINGS.
1472 (lex_string): Handle CPP_UTF8STRING.
1473 * c-parser.c (c_parser_postfix_expression): Likewise.
1474 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1475 (C_LEX_STRING_NO_JOIN): ... this.
1476
1477 2009-10-19 Anatoly Sokolov <aesok@post.ru>
1478
1479 * config/cris/cris.c (cris_function_value, cris_libcall_value,
1480 cris_function_value_regno_p): New functions.
1481 (cris_promote_function_mode): Update comment.
1482 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1483 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1484 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1485 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1486
1487 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1488
1489 * unwind-dw2.c (execute_stack_op): Fix operand order for
1490 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1491
1492 2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
1493
1494 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1495 (lower_stmt) <GIMPLE_BIND>: Add comment.
1496 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1497 and return.
1498 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1499 Otherwise lower it and set cannot_fallthru to true.
1500 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
1501 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
1502 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1503 to true for a noreturn call. Do not remove statements.
1504 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1505 Set cannot_fallthru to false on function exit.
1506 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1507 <GIMPLE_ASSIGN>: Remove.
1508
1509 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1510
1511 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1512
1513 2009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1514
1515 * config/s390/s390.c (s390_z10_optimize_cmp): Use
1516 next/prev_active_insn to skip DEBUG_INSNs as well.
1517
1518 2009-10-19 Joseph Myers <joseph@codesourcery.com>
1519
1520 * config/arm/arm.c (output_move_neon): Use DImode in call to
1521 adjust_address.
1522
1523 2009-10-19 Matthias Klose <doko@ubuntu.com>
1524
1525 PR target/40134
1526 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1527
1528 2009-10-19 Jakub Jelinek <jakub@redhat.com>
1529
1530 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
1531
1532 2009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1533
1534 PR middle-end/41738
1535 * optabs.c (expand_binop): Make mode of shift count expression mode
1536 of shift count not target.
1537 Remove indent nit.
1538
1539 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1540
1541 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1542 case. Force using values to replace references within the statement.
1543 (convert_local_reference_stmt): Likewise.
1544
1545 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1546
1547 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1548 remove a subsequent GOTO or RETURN statement.
1549
1550 2009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
1551
1552 * config/avr.md (*movqi): Add zero as equally preferable constraint
1553 as general register.
1554 (*movhi): Ditto.
1555
1556 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1557
1558 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1559
1560 2009-10-17 Richard Guenther <rguenther@suse.de>
1561
1562 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
1563
1564 2009-10-17 Richard Guenther <rguenther@suse.de>
1565
1566 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
1567 operands in COMPONENT_REFs.
1568
1569 2009-10-17 Anatoly Sokolov <aesok@post.ru>
1570
1571 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
1572 if not defined. Change type of second argument to const_rtx.
1573 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
1574 macro not defined.
1575 * targhooks.h (default_libcall_value): Update prototype.
1576 * target.h (struct gcc_target): Change type of second argument of
1577 libcall_value to const_rtx.
1578 * config/arm/arm.c (arm_libcall_value): Change type of second argument
1579 to const_rtx.
1580 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
1581 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
1582
1583 2009-10-17 Jakub Jelinek <jakub@redhat.com>
1584
1585 PR debug/40521
1586 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
1587 * cgraphunit.c (cgraph_optimize): Call it.
1588 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
1589 (dwarf2out_assembly_start): ... here. New hook.
1590 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
1591 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
1592 hook.
1593 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1594 * sdbout.c (sdb_debug_hooks): Likewise.
1595 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
1596 (vmsdbgout_assembly_start): New hook.
1597
1598 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
1599
1600 * rtl.h (RTL_LOCATION): Fix typo.
1601
1602 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
1603
1604 * print-rtl.c (print_rtx): Print locators in asm_operands
1605 and asm_input.
1606
1607 2009-10-17 Alexandre Oliva <aoliva@redhat.com>
1608
1609 PR debug/41535
1610 * sched-deps.c (depl_on_debug_p): New.
1611 (attach_dep_link): Reject debug deps before nondebug deps.
1612 (add_to_deps_list): Insert debug deps after nondebug deps.
1613 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
1614 deps.
1615 (sd_add_dep): Do not reject debug deps.
1616 (add_insn_mem_dependence): Don't count debug deps.
1617 (remove_from_deps): Likewise.
1618 (sched_analyze_2): Set up mem deps on debug insns.
1619 (sched_analyze_insn): Record reg uses for deps on debug insns.
1620 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
1621 try_ready nondebug insn after debug insn.
1622 * ddg.c (create_ddg_dep_from_intra_loop_link,
1623 create_ddg_dep_no_link): Don't reject debug deps.
1624
1625 2009-10-16 Richard Guenther <rguenther@suse.de>
1626
1627 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
1628 (maybe_merge_incomplete_and_complete_type): Likewise.
1629 (lto_symtab_merge): Do not call them. Do not warn for
1630 complete vs. incomplete compatible types.
1631 (lto_symtab_merge_decls_2): Simplify.
1632 * gimple.c (gimple_force_type_merge): Remove.
1633 (gimple_types_compatible_p): Make it static.
1634 * gimple.h (gimple_force_type_merge): Remove.
1635 (gimple_types_compatible_p): Likewise.
1636
1637 2009-10-16 Jakub Jelinek <jakub@redhat.com>
1638
1639 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
1640 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
1641
1642 2009-10-16 Richard Guenther <rguenther@suse.de>
1643
1644 PR tree-optimization/41728
1645 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
1646 if fold_stmt did anything.
1647
1648 2009-10-16 Richard Guenther <rguenther@suse.de>
1649
1650 PR lto/41715
1651 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
1652 (maybe_fixup_handled_component): New function.
1653 (input_gimple_stmt): Fixup mismatched decl replacements.
1654
1655 2009-10-16 Richard Guenther <rguenther@suse.de>
1656
1657 PR lto/41713
1658 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
1659 the same as VAR_DECL.
1660
1661 2009-10-16 Richard Guenther <rguenther@suse.de>
1662
1663 * gimple.c (iterative_hash_gimple_type): For integer types
1664 also hash their minimum and maximum values and the string flag.
1665 For array types hash their domain and the string flag.
1666
1667 2009-10-16 Richard Guenther <rguenther@suse.de>
1668
1669 * gimple.c (gimple_types_compatible_p): Restrict completing
1670 types to record or unions. Simplify completion.
1671 Do not merge records or unions with different
1672 TYPE_STRUCTURAL_EQUALITY_P tag.
1673 (iterative_hash_gimple_type): Restrict non-recursing into
1674 pointer targets for records and unions.
1675
1676 2009-10-15 Jakub Jelinek <jakub@redhat.com>
1677
1678 PR debug/41717
1679 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
1680 * dwarf2out.c (mem_loc_descriptor): Don't handle
1681 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
1682 punt if it is not lowpart subreg or if inner mode isn't
1683 MODE_INT.
1684
1685 2009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1686
1687 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
1688 investigating previous or next insns.
1689
1690 2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
1691
1692 * tree-sra.c (build_ref_for_offset_1): Update comment.
1693
1694 2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
1695
1696 * config/s390/s390.md (atype): Added missing values.
1697
1698 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1699
1700 PR target/41702
1701 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
1702 (casesi64p): Update pattern to reflect above.
1703
1704 2009-10-15 Steve Ellcey <sje@cup.hp.com>
1705
1706 PR rtl-optimization/41697
1707 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
1708
1709 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
1710
1711 PR target/23983
1712 * config/rs6000/predicates.md: Update copyright year.
1713 * config/rs6000/altivec.md: Ditto.
1714
1715 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
1716 (MD_INCLUDES): Add a2.md.
1717
1718 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
1719 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
1720 (builtin_classify): New static vector to classify various builtins
1721 to get the tree attributes correct.
1722 (def_builtin): Set the attributes of builtins based on what the
1723 builtin does (i.e. memory operation, floating point, saturation
1724 need special attributes, others are pure functions).
1725
1726 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
1727 the builtins.
1728 (enum rs6000_builtins): Include rs6000-builtin.def to define the
1729 builtins. Change the end marker to MAX_RS6000_BUILTINS from
1730 RS6000_BUILTIN_COUNT.
1731 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
1732 MAX_RS6000_BUILTINS.
1733
1734 * config/rs6000/rs6000-builtin.def: New file that combines the
1735 builtin enumeration name and attributes.
1736
1737 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
1738
1739 * config/i386/linux.h (ASM_SPEC): Add --32.
1740
1741 2009-10-15 Jakub Jelinek <jakub@redhat.com>
1742
1743 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
1744 and DW_TAG_template_alias.
1745 (dwarf_attr_name): Handle DW_AT_main_subprogram,
1746 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
1747 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
1748 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
1749 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
1750 and DW_AT_GNU_odr_signature.
1751 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
1752 DW_FORM_flag_present and DW_FORM_ref_sig8.
1753 (output_signature): Only print name on the first byte.
1754 (output_die): Likewise for dw_val_class_data8.
1755
1756 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
1757
1758 * doc/invoke.texi: Clarify that most optimizations are not enabled
1759 without -O.
1760
1761 2009-10-15 Richard Guenther <rguenther@suse.de>
1762
1763 PR lto/41668
1764 * gimple.c (compare_type_names_p): Handle anonymous names
1765 differently based on new mode argument.
1766 (gimple_types_compatible_p): For structs also compare the tags.
1767 (iterative_hash_type_name): Rename to ...
1768 (iterative_hash_name): ... this. Hash all names.
1769 (iterative_hash_gimple_type): Fix hashing the struct tag of
1770 pointer targets. Hash field decl names.
1771
1772 2009-10-15 Richard Guenther <rguenther@suse.de>
1773
1774 PR lto/41669
1775 * gimple.c (gimple_get_alias_set): Avoid recursing on
1776 invalid type topology.
1777
1778 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1779
1780 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
1781
1782 2009-10-15 Richard Guenther <rguenther@suse.de>
1783
1784 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
1785
1786 2009-10-15 Jakub Jelinek <jakub@redhat.com>
1787
1788 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
1789 add --with-tune{,-32,-64} configured default for -mtune if explicit
1790 -mcpu is used.
1791
1792 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
1793
1794 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
1795
1796 2009-10-14 DJ Delorie <dj@redhat.com>
1797
1798 * config/h8300/h8300.c (F): New.
1799 (Fpa): New.
1800 (h8300_emit_stack_adjustment): Call them.
1801 (push): Likewise.
1802 (h8300_push_pop): Likewise.
1803 (h8300_expand_prologue): Likewise.
1804 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
1805 (MUST_USE_SJLJ_EXCEPTIONS): Define.
1806 (INCOMING_RETURN_ADDR_RTX): Define.
1807 (INCOMING_FRAME_SP_OFFSET): Define.
1808 (DWARF_CIE_DATA_ALIGNMENT): Define.
1809
1810 2009-10-14 Jakub Jelinek <jakub@redhat.com>
1811
1812 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
1813 fields in builtin structs.
1814 (finalize_record_size): Likewise.
1815
1816 2009-10-14 Richard Guenther <rguenther@suse.de>
1817
1818 * gimple.c (gtc_ob): New global.
1819 (struct type_pair_d): Replace pointers with type UIDs.
1820 (type_pair_hash): Adjust.
1821 (type_pair_eq): Likewise.
1822 (lookup_type_pair): Likewise. Allocate from an obstack.
1823 (gimple_force_type_merge): Adjust.
1824 (gimple_types_compatible_p): Likewise.
1825 (free_gimple_type_tables): Free the obstack.
1826
1827 2009-10-14 Jakub Jelinek <jakub@redhat.com>
1828
1829 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
1830 stmts setting DEBUG_EXPR_DECLs.
1831
1832 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
1833 Don't crash if mode1 is VOIDmode.
1834
1835 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
1836
1837 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
1838 * params.h (IRA_LOOP_RESERVED_REGS): New.
1839 * tree-pass.h (pass_subregs_of_mode_init,
1840 pass_subregs_of_mode_finish): Remove.
1841 * passes.c (pass_subregs_of_mode_init,
1842 pass_subregs_of_mode_finish): Remove.
1843 (pass_reginfo_init): Move before loop optimizations.
1844 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
1845 * common.opt (fira-loop-pressure): New.
1846 * toplev.h (flag_ira_loop_pressure): New.
1847 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
1848 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
1849 Make external and void type functions.
1850 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
1851 pass_subregs_of_mode_finish): Remove.
1852 * ira-costs.c (init_costs): Call init_subregs_of_mode.
1853 * regmove.c: Include ira.h.
1854 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
1855 register pressure calculation in loops.
1856 * loop-invariant.c: Include REGS_H and ira.h.
1857 (struct loop_data): New members max_reg_pressure, regs_ref, and
1858 regs_live.
1859 (struct invariant): New member orig_regno.
1860 (curr_loop): New variable.
1861 (find_exits): Initialize regs_ref and regs_live.
1862 (create_new_invariant): Initialize orig_regno.
1863 (get_cover_class_and_nregs): New.
1864 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
1865 array. Add code for flag_ira_loop_pressure.
1866 (gain_for_invariant): Make new_regs an array. Add code for
1867 flag_ira_loop_pressure.
1868 (best_gain_for_invariant): Ditto.
1869 (set_move_mark): New parameter gain. Use it for debugging output.
1870 (find_invariants_to_move): Make regs_needed and new_regs an array.
1871 Add code for flag_ira_loop_pressure.
1872 (move_invariant_reg): Set up orig_regno.
1873 (move_invariants): Set up reg classes for pseudos for
1874 flag_ira_loop_pressure.
1875 (free_loop_data): Clear regs_ref and regs_live.
1876 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
1877 get_regno_cover_class, change_pressure, mark_regno_live,
1878 mark_regno_death, mark_reg_store, mark_reg_clobber,
1879 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
1880 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
1881 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
1882 register pressure calculation in loops if new regs were added.
1883 Call finish_subregs_of_mode.
1884 * opts.c (decode_options): Set up flag_ira_loop_pressure.
1885 * Makefile.in (loop-invariant.o): Add ira.h.
1886 (regmove.o): Ditto.
1887 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
1888 Describe.
1889 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
1890
1891 2009-10-14 Richard Guenther <rguenther@suse.de>
1892
1893 * lto-symtab.c (lto_symtab_compatible): Fold in ...
1894 (lto_symtab_merge): ... here. Rewrite both to take the
1895 prevailing and a to-be-merged entry and to queue diagnostics properly.
1896 (lto_symtab_resolve_replaceable_p): New predicate for
1897 symbol resolution.
1898 (lto_symtab_resolve_can_prevail_p): Likewise.
1899 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
1900 handles merging commons by choosing the largest decl. Fold
1901 in code that gives ODR errors.
1902 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
1903 diagnostics here.
1904 (lto_symtab_merge_decls_1): Re-structure. Deal with the
1905 case of no prevailing decl here. Diagnose mismatches
1906 in object types here. Drop all but the prevailing decls.
1907 (lto_symtab_prevailing_decl): Return the single prevailing decl.
1908 * lto-streamer-in.c (lto_input_tree_ref): Deal with
1909 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
1910
1911 2009-10-14 Richard Guenther <rguenther@suse.de>
1912
1913 PR lto/41521
1914 * lto-streamer-in.c (input_bb): Replace debug stmts with
1915 nops instead of dropping them.
1916
1917 2009-10-14 Nick Clifton <nickc@redhat.com>
1918
1919 * gcc/doc/extended.texi: Replace the dash character with @minus{}
1920 in situations where it is being used as a minus symbol.
1921 * gcc/doc/tm.texi: Likewise.
1922 * gcc/doc/md.texi: Likewise.
1923
1924 2009-10-14 Jakub Jelinek <jakub@redhat.com>
1925
1926 PR preprocessor/41543
1927 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
1928 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
1929 * tree.c: Include intl.h.
1930 (expand_location): Handle BUILTINS_LOCATION.
1931 * Makefile.in (tree.o): Depend on intl.h.
1932
1933 PR debug/41695
1934 * dwarf2out.c (dwarf2out_var_location): Always clear
1935 last_postcall_label when changing last_label.
1936
1937 2009-10-14 Pascal Obry <obry@adacore.com>
1938
1939 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
1940 (process_command): Handle -E as done with -c and -S. Do not add
1941 the target executable suffix to the output file when -E is used.
1942 (main): Adjust error message accordingly.
1943
1944 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
1945
1946 PR debug/41343
1947 PR debug/41447
1948 PR debug/41264
1949 PR debug/41338
1950 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
1951 decl with rtl.
1952 (tree_code_size): Likewise.
1953
1954 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1955
1956 * builtins.c (fold_builtin_1): Support complex "arc" functions.
1957 * real.h (HAVE_mpc_arc): Define.
1958
1959 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
1960
1961 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
1962 (struct builtin_description): Add fndecl field.
1963 (bdesc): Remove const qualifier. Update initializer.
1964 (sh_media_init_builtins): Remove const qualifier for d. Record
1965 the result of add_builtin_function to the fndecl field.
1966 (sh_builtin_decl): New.
1967 (sh_media_builtin_decl): New.
1968
1969 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
1970
1971 PR target/38948
1972 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
1973 requests between special registers.
1974
1975 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
1976
1977 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
1978
1979 2009-10-13 Richard Henderson <rth@redhat.com>
1980
1981 PR tree-optimization/41377
1982 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
1983 (cleanup_empty_eh_merge_phis): New change_region parameter;
1984 pass it on to redirect_eh_edge_1. Update callers.
1985 (cleanup_empty_eh_unsplit): Don't require an existing EH label
1986 at the destination block.
1987
1988 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
1989
1990 * passes.c (register_pass): Replaced gcc_unreachable by
1991 fatal_error on failure. Mentions plugins in comments & messages.
1992
1993 2009-10-13 Jakub Jelinek <jakub@redhat.com>
1994
1995 PR target/41693
1996 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
1997 * sched-vis.c (print_value): Use it.
1998 * cselib.c (cselib_hash_rtx): Likewise.
1999 * print-rtl.c (print_rtx): Likewise.
2000 * cfgexpand.c (expand_debug_rtx): Likewise.
2001 * var-tracking.c (vt_expand_loc_callback): Likewise.
2002
2003 2009-10-13 Richard Guenther <rguenther@suse.de>
2004
2005 PR lto/41565
2006 * opts.c (handle_option): Split out code to handle setting
2007 the options flag var ...
2008 (set_option): ... here.
2009 * opts.h (set_option): Declare.
2010 * lto-opts.c (register_user_option_p): Include -fexceptions
2011 and all position independent code variants.
2012 (handle_common_option): Remove.
2013 (lto_reissue_options): Use set_option.
2014
2015 2009-10-13 Martin Jambor <mjambor@suse.cz>
2016
2017 PR tree-optimization/41661
2018 * ipa-prop.c (compute_complex_pass_through): Allow only operations
2019 that are tcc_comparisons or do not change the type in any
2020 un-usleless way.
2021 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
2022 folding tcc_comparison operations.
2023
2024 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2025
2026 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
2027 properly.
2028
2029 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
2030
2031 PR debug/41343
2032 PR debug/41447
2033 PR debug/41264
2034 PR debug/41338
2035 * tree.def (DEBUG_EXPR_DECL): New.
2036 * rtl.def (DEBUG_EXPR): New.
2037 * gengtype.c (adjust_field_rtx_def): Handle it.
2038 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
2039 (insert_debug_temp_for_var_def): ... this. Drop support for
2040 moving. Take iterator for def stmt; insert debug stmt before it.
2041 Scan early for use count and kind in debug stmts.
2042 (propagate_defs_into_debug_stmts): Rename to...
2043 (insert_debug_temps_for_defs): ... this. Likewise.
2044 * tree.h (DEBUG_TEMP_UID): New.
2045 * tree.c (next_debug_decl_uid): New.
2046 (make_node_stat): Count debug decls separately.
2047 (copy_node_stat): Likewise.
2048 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
2049 * var-tracking.c (dv_is_decl_p): Recognize it.
2050 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
2051 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
2052 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
2053 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
2054 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
2055 (cselib_hash_rtx): Likewise.
2056 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
2057 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
2058 debug bind stmts.
2059 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
2060 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
2061 * rtl.c (copy_rtx): Likewise.
2062 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
2063 * print-rtl.c (print_rtx): Likewise.
2064 * sched-vis.c (print_value): Likewise.
2065 (print_insn): Handle DEBUG_EXPR_DECL.
2066 * tree-dump.c (dequeue_and_dump): Likewise.
2067 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
2068 * gimple-iterator (gsi_replace): Check for same lhs.
2069 (gsi_remove): Insert debug temps.
2070 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
2071 (move_computations_stmt): Drop explicit propagation into debug stmts.
2072 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
2073 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
2074 * tree-ssa-sink.c (statement_sink_location): Likewise.
2075 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
2076 * tree-ssanames.c (release_ssa_name): Adjust for rename.
2077 * tree-flow.h: Likewise.
2078 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
2079 debug temps without values.
2080 (eliminate_unnecessary_stmts): Don't discard just-inserted
2081 debug stmts.
2082
2083 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
2084
2085 PR target/26515
2086 * config/cris/cris.md (andu): Check that operand 1 is one of the
2087 general registers. Fix typo in head comment.
2088
2089 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
2090
2091 * config/i386/i386.md (vswapmov): New.
2092 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
2093 (ix86_function_ms_hook_prologue): New.
2094 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
2095 * configure.ac: Test for swap suffix support in as.
2096 * configure: Rebuild.
2097
2098 2009-10-12 Jakub Jelinek <jakub@redhat.com>
2099
2100 PR target/41680
2101 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
2102 paradoxical subregs to prevent partial register stalls if the inner
2103 mode is integer mode.
2104
2105 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
2106
2107 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
2108
2109 2009-10-12 Dodji Seketeli <dodji@redhat.com>
2110
2111 PR c++/41570
2112 * gcc/dwarf2out.c (template_parameter_pack_die,
2113 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
2114
2115 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
2116
2117 PR debug/41616
2118 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
2119 on updates too.
2120 (maybe_register_def): Likewise. Take stmt iterator.
2121 (rewrite_update_stmt): Take stmt iterator and pass it on.
2122 (rewrite_update_enter_block): Pass stmt iterator.
2123
2124 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2125
2126 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2127 (spu_builtin_decl): New function.
2128
2129 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
2130
2131 * config/i386/i386.md (SWIM): New mode iterator.
2132 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2133 using SWIM mode iterator.
2134 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2135 patterns using SWI48 mode iterator.
2136 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
2137 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2138 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2139 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2140 patterns using SWI248 mode iterator.
2141 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2142 gen_x86_movdicc_0_m1_rex64 for renamed function
2143
2144 2009-10-11 Jose Ruiz <ruiz@adacore.com>
2145 Eric Botcazou <ebotcazou@adacore.com>
2146
2147 PR target/33743
2148 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2149 * config/sparc/sol2-unwind.h: New file.
2150
2151 2009-10-11 Olivier Hainque <hainque@adacore.com>
2152 Eric Botcazou <ebotcazou@adacore.com>
2153
2154 PR target/33743
2155 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2156 * config/i386/sol2-unwind.h: New file.
2157
2158 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
2159
2160 PR target/41665
2161 * config/i386/i386.md (addsi_1_zext): Get the proper second
2162 operand for lea.
2163
2164 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
2165
2166 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2167 all OLD_RTXes, not just REGs. Use copy_rtx to create the
2168 replacement value.
2169
2170 2009-10-11 Richard Guenther <rguenther@suse.de>
2171
2172 * gimple.c (iterative_hash_type_name): Do not handle special
2173 anonymous names.
2174
2175 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
2176
2177 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2178 (*setcc_si_1_and): Ditto.
2179 (*setcc_si_1_movzbl): Ditto.
2180 (*setcc_<mode>_2): Ditto.
2181 (*setcc_qi): Rename from *setcc_1.
2182 (*setcc_qi_slp): Rename from *setcc_2.
2183
2184 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2185 (*zero_extendqisi2_movzbw_and splitter): Ditto.
2186
2187 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2188 "if" condition, there is already assert with reload_completed present.
2189
2190 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
2191
2192 * plugin.c (try_init_one_plugin): Improve constness of variable err.
2193
2194 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
2195
2196 * doc/install.texi (Final install): Refer to
2197 http://gcc.gnu.org/bugs/ for bug reporting.
2198
2199 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
2200
2201 * configure.ac: Add test for dci instruction.
2202 * configure: Regenerate.
2203 * config.in: Likewise.
2204 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2205 * doc/invoke.texi: Add cpu_type 476 and 476fp.
2206 (-mmulhw): Add 476 to description.
2207 (-mdlmzb): Likewise.
2208 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2209 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2210 (processor_target_table): Add 476 and 476fp entries.
2211 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2212 (rs6000_issue_rate): Add CPU_PPC476.
2213 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2214 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2215 (processor_type): Add PROCESSOR_PPC476.
2216 (EXTRA_SPECS): Add asm_cpu_476 string.
2217 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
2218 (define_attr "cpu"): Add ppc476.
2219 Include 476.md.
2220 Update comments for 476.
2221 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2222 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2223 Update copyright year.
2224 * config/rs6000/476.md: New file.
2225 * config/rs6000/40x.md: Add description for "isel" attribute.
2226 Update copyright year.
2227 * config/rs6000/440.md: Likewise.
2228 * config/rs6000/603.md: Likewise.
2229 * config/rs6000/6xx.md: Likewise.
2230 * config/rs6000/7450.md: Likewise.
2231 * config/rs6000/7xx.md: Likewise.
2232 * config/rs6000/8540.md: Likewise.
2233 * config/rs6000/cell.md: Likewise.
2234 * config/rs6000/e300c2c3.md: Likewise.
2235 * config/rs6000/e500mc.md: Likewise.
2236 * config/rs6000/mpc.md: Likewise.
2237 * config/rs6000/power4.md: Likewise.
2238 * config/rs6000/power5.md: Likewise.
2239 * config/rs6000/power6.md: Likewise.
2240 * config/rs6000/power7.md: Likewise.
2241 * config/rs6000/rios1.md: Likewise.
2242 * config/rs6000/rios2.md: Likewise.
2243 * config/rs6000/rs64.md: Likewise.
2244
2245 2009-10-10 Richard Guenther <rguenther@suse.de>
2246
2247 PR tree-optimization/41654
2248 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2249 a cond expr before calling gimple_cond_set_condition_from_tree.
2250 (ifcombine_iforif): Likewise.
2251
2252 2009-10-09 Ian Lance Taylor <iant@google.com>
2253
2254 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2255 * configure: Rebuild.
2256
2257 2009-10-09 Neil Vachharajani <nvachhar@google.com>
2258
2259 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2260 deprecated.
2261
2262 2009-10-09 Richard Guenther <rguenther@suse.de>
2263
2264 PR lto/41638
2265 * target-def.h (TARGET_BUILTIN_DECL): Define.
2266 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2267 * target.h (struct gcc_target): Add builtin_decl target hook.
2268 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2269 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2270 target builtins.
2271 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2272 not gcc_unreachable.
2273 (lto_output_builtin_tree): Sorry if the target does not support
2274 streaming target builtins.
2275 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2276 (rs6000_builtin_decl): New function.
2277 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2278 (ix86_builtin_decl): New function.
2279
2280 2009-10-09 Jakub Jelinek <jakub@redhat.com>
2281
2282 PR preprocessor/41445
2283 * c-ppoutput.c (do_line_change): New function.
2284 (cb_line_change): Use it.
2285 (scan_translation_unit): Call do_line_change if
2286 avoid_paste or PREV_WHITE and token location is on a different line
2287 than print.src_line.
2288
2289 PR debug/40521
2290 * dwarf2out.c (dwarf2out_init): Test whether
2291 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2292 it is defined.
2293
2294 PR rtl-optimization/41646
2295 * calls.c (expand_call): For BLKmode types returned in registers
2296 avoid likely spilled hard regs in copy_blkmode_from_reg generated
2297 insns.
2298
2299 2009-10-09 Richard Guenther <rguenther@suse.de>
2300
2301 PR tree-optimization/41634
2302 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2303 we remove the correct elements.
2304 (optimize_stmt): Make sure to update stmt operands before
2305 optimizing redundancies.
2306
2307 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2308
2309 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2310
2311 2009-10-09 Richard Guenther <rguenther@suse.de>
2312
2313 PR driver/41637
2314 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2315 globals.
2316 (lto_wrapper_exit): New function.
2317 (fatal): Use it.
2318 (fatal_perror): Likewise.
2319 (fork_execute): Use global args_name, do not free it.
2320 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
2321 * lto-streamer.h: Remove duplicate prototypes.
2322
2323 2009-10-09 Richard Guenther <rguenther@suse.de>
2324
2325 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
2326 before calling stmt_can_throw_external.
2327
2328 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
2329
2330 PR tree-optimization/40071
2331 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
2332 pointer if the original data reference doesn't conflict with the
2333 created vector data reference. Fix long line.
2334
2335 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
2336
2337 * config/i386/i386.md (any_div): New code iterator.
2338 (u): Handle div and udiv.
2339 (sgnprefix): Ditto.
2340 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
2341 code iterator.
2342 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2343 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2344 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2345 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2346
2347 2009-10-08 Joseph Myers <joseph@codesourcery.com>
2348
2349 * gcc.c (main): Remove trailing "." from diagnostics.
2350
2351 2009-10-08 Cary Coutant <ccoutant@google.com>
2352
2353 Add support for debugging with ICF (Identical Code Folding).
2354 * calls.c (debug.h): New #include.
2355 (emit_call_1): Call virtual_call_token debug hook.
2356 * common.opt (-fenable-icf-debug): New option.
2357 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2358 locations in the source).
2359 (poc_label_num): New variable.
2360 (dcall_entry, vcall_entry): New typedefs.
2361 (dcall_table, vcall_table): New variables.
2362 (struct vcall_insn): New type.
2363 (vcall_insn_table): New variable.
2364 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2365 (size_of_dcall_table): New function.
2366 (output_dcall_table): New function.
2367 (size_of_vcall_table): New function.
2368 (output_vcall_table): New function.
2369 (dwarf2out_direct_call): New function.
2370 (vcall_insn_table_hash): New function.
2371 (vcall_insn_table_eq): New function.
2372 (dwarf2out_virtual_call_token): New function.
2373 (dwarf2out_virtual_call): New function.
2374 (dwarf2out_init): Allocate new tables and sections.
2375 (prune_unused_types): Mark DIEs referenced from direct call table.
2376 (dwarf2out_finish): Output direct and virtual call tables.
2377 * final.c (final_scan_insn): Call direct_call and virtual_call
2378 debug hooks.
2379 * debug.h (struct gcc_debug_hooks): Add direct_call,
2380 virtual_call_token, virtual_call hooks.
2381 (debug_nothing_uid): New function.
2382 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2383 (debug_nothing_uid): New function.
2384 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
2385 (xcoff_debug_hooks): Likewise.
2386 * sdbout.c (sdb_debug_hooks): Likewise.
2387 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2388 * doc/invoke.texi (-fenable-icf-debug): New option.
2389
2390 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
2391
2392 PR debug/41353
2393 * regmove.c (regmove_backward_pass): Replace src with dst in the
2394 debug insn, and check for dst before rather than after.
2395
2396 2009-10-08 Janis Johnson <janis187@us.ibm.com>
2397
2398 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2399 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2400
2401 2009-10-08 Jan Hubicka <jh@suse.cz>
2402
2403 PR middle-end/41626
2404 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2405 do not mark cgraph nodes as needed.
2406 (record_references_in_initializer): Add new only_vars parameter.
2407 * cgraph.h (record_references_in_initializer): New parameter.
2408 * varasm.c (assemble_variable): Update call.
2409 * varpool.c (varpool_analyze_pending_decls): Always look for
2410 referenced vars.
2411
2412 2009-10-08 Anatoly Sokolov <aesok@post.ru>
2413
2414 * config/avr/avr.c (last_insn_address) Remove variable.
2415 (expand_prologue): Don't initialise last_insn_address variable.
2416 (final_prescan_insn): Don't output insn size.
2417 * config/avr/avr.opt (msize): Remove switch.
2418 * doc/invoke.texi (AVR Options): Remove documentation of -msize
2419 switch.
2420
2421 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
2422
2423 * combine.c (label_tick_ebb_start): Fix comment.
2424 (combine_instructions): Set label_tick and label_tick_ebb_start before
2425 calling setup_incoming_promotions. Start them from 1. Increment
2426 label_tick instead of deriving it from the BB index. Rather than
2427 comparing ticks use the block from the previous iteration to decide
2428 whether to start a new EBB. Remove empty lines before function.
2429
2430 2009-10-08 Michael Matz <matz@suse.de>
2431
2432 PR middle-end/41573
2433 * builtins.c (fold_builtin_isascii): Use fold_build2.
2434 (fold_builtin_isdigit): Ditto.
2435 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2436 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2437 remove_useless_stmts_cond, remove_useless_stmts_tf,
2438 remove_useless_stmts_tc, remove_useless_stmts_bind,
2439 remove_useless_stmts_goto, remove_useless_stmts_label,
2440 remove_useless_stmts_1, remove_useless_stmts,
2441 pass_remove_useless_stmts): Remove.
2442 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2443 * passes.c (init_optimization_passes): Don't add
2444 pass_remove_useless_stmts.
2445 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2446 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2447 static constants.
2448 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2449 for static constants.
2450 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2451 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2452
2453 2009-10-08 Richard Guenther <rguenther@suse.de>
2454
2455 * gimple.c (free_gimple_type_tables): New function.
2456 * gimple.h (free_gimple_type_tables): Declare.
2457
2458 2009-10-07 Mark Heffernan <meheff@google.com>
2459
2460 * ipa-prop.c (ipa_print_node_params) Only print
2461 names of named arguments.
2462
2463 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
2464
2465 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2466 being statically linked.
2467
2468 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2469
2470 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2471
2472 2009-10-08 Jan Hubicka <jh@suse.cz>
2473
2474 PR bootstrap/41620
2475 * ipa.c (cgraph_externally_visible_p,
2476 function_and_variable_visibility,
2477 whole_program_function_and_variable_visibility): Skip non-finalized
2478 nodes.
2479
2480 2009-10-08 Nick Clifton <nickc@redhat.com>
2481
2482 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2483 CONST_DOUBLEs.
2484
2485 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
2486
2487 PR bootstrap/37739
2488 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2489
2490 2009-10-07 Joseph Myers <joseph@codesourcery.com>
2491
2492 PR c/41182
2493 * c-common.c (c_fully_fold_internal): Strip nops from the result
2494 of recursive calls to c_fully_fold_internal.
2495 (c_wrap_maybe_const): New.
2496 (c_save_expr): Use c_wrap_maybe_const.
2497 * c-common.h (c_wrap_maybe_const): Declare.
2498 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2499 build_binary_op): Use c_wrap_maybe_const.
2500
2501 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2502
2503 * real.c: Fix comment to reflect actual exponent size.
2504
2505 2009-10-08 Ben Elliston <bje@au.ibm.com>
2506
2507 * config/rs6000/a2.md: Add FSF comment header.
2508
2509 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
2510
2511 * config/i386/i386.md (any_extend): New code iterator.
2512 (u, s): New code attributes.
2513 (sgnprefix): Ditto.
2514 (DWIH): Rewrite as code iterator for SI and DI modes.
2515 (DWI): Rewrite as mode attribute.
2516 (dwi): New mode attribute.
2517 (di): Depend on SI mode and DI mode.
2518 (doubleint_general_operand): Remove mode attribute.
2519
2520 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2521 DWIH mode iterator.
2522
2523 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2524 (*sub<mode>3_doubleword): Ditto.
2525
2526 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2527 using SWIM248 mode iterator.
2528 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2529 using SWI48 mode iterator.
2530 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2531 patterns using DWIH mode iterator and any_extend code iterator.
2532 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2533 using any_extend code iterator.
2534 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2535 patterns using DWIH mode iterator and any_extend code iterator.
2536 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2537 using any_extend code iterator.
2538 (<s>mul<mode>3_highpart): Macroize expander from
2539 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2540 and any_extend code iterator.
2541 (*<s>muldi3_highpart_1): Macroize insn from
2542 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2543 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2544 patterns using any_extend code iterator.
2545 (*<s>mulsi3_highpart_zext): Macroize insn from
2546 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2547
2548 2009-10-07 Jakub Jelinek <jakub@redhat.com>
2549
2550 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2551 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2552 refering to a DIE with DW_AT_const_value.
2553
2554 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
2555
2556 PR middle-end/22072
2557 * ira-lives.c (check_and_make_def_conflict): Process all operands.
2558
2559 2009-10-06 Jan Hubicka <jh@suse.cz>
2560
2561 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2562 correctly.
2563
2564 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
2565
2566 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
2567 *lea_2_rex64): Move before *add<mode>_1 pattern.
2568
2569 2009-10-07 Jan Hubicka <jh@suse.cz>
2570
2571 * collect2.c (main): Add -fno-whole-program.
2572 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
2573
2574 2009-10-07 Jan Hubicka <jh@suse.cz>
2575
2576 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
2577 has no address taken.
2578 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
2579 never needed.
2580 (cgraph_clone_node): Clear externally_visible flag for clones.
2581 * cgraph.h (cgraph_only_called_directly_p,
2582 cgraph_can_remove_if_no_direct_calls_p): New predicates.
2583 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
2584 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
2585 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
2586 ipcp_insert_stage): Likwise.
2587 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
2588 externally_visible flag.
2589 (verify_cgraph_node): Verify that inline clones look right.
2590 (process_function_and_variable_attributes): Do not set
2591 externally_visible flags.
2592 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
2593 been already run.
2594 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
2595 boundaries.
2596 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
2597 clear externally_visible when turning into inline clones
2598 (cgraph_mark_inline_edge): Use new predicates.
2599 (cgraph_estimate_growth): Likewise.
2600 (cgraph_decide_inlining): Likewise.
2601 * ipa.c (cgraph_postorder): Likewise.
2602 (cgraph_remove_unreachable_nodes): Likewise; sanity check
2603 that inline clones are not needed.
2604 (cgraph_externally_visible_p): New predicate.
2605 (function_and_variable_visibility): Add whole_program parameter;
2606 always set externally_visible flag; handle COMDAT function
2607 privatization.
2608 (local_function_and_variable_visibility): New function.
2609 (gate_whole_program_function_and_variable_visibility): New function.
2610 (whole_program_function_and_variable_visibility): New function.
2611 (pass_ipa_whole_program_visibility): New function.
2612 * passes.c (init_optimization_passes): Add whole program visibility
2613 pass.
2614 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
2615 not care about needed/reachable flags.
2616 * varpool.c: Include flags.h
2617 (decide_is_variable_needed): When doing LTO assume whole-program mode.
2618 (varpool_finalize_decl): When we are in LTO read-back, all variables
2619 are analyzed.
2620 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
2621
2622 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2623
2624 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
2625 add MASK_HARD_DFP.
2626
2627 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2628
2629 * config.gcc: Don't include the makefile fragments intended for
2630 libgcc.
2631 * config/s390/fixdfdi.h: File removed.
2632 * config/s390/libgcc-glibc.ver: File removed.
2633 * config/s390/s390.h: Remove the fixdfdi.h hack.
2634 * config/s390/t-crtstuff: File moved to libgcc dir.
2635 * config/s390/t-linux: Likewise.
2636 * config/s390/t-tpf: libgcc specific parts removed.
2637 * config/s390/t-linux64: Likewise.
2638
2639 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
2640
2641 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
2642 (lto-compress.o): Likewise.
2643
2644 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
2645
2646 PR target/41512
2647 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
2648 dllexport to class members here.
2649 (i386_pe_determine_dllimport_p): Only check static class data for
2650 definition.
2651 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
2652 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
2653 functions for vague linkage.
2654 (i386_pe_type_dllexport_p): Fix formatting.
2655 (maybe_add_dllexport) New function.
2656 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
2657 to class members.
2658
2659 2009-10-07 Ben Elliston <bje@au.ibm.com>
2660
2661 * config/rs6000/a2.md: Remove duplicated lines.
2662
2663 2009-10-07 Ben Elliston <bje@au.ibm.com>
2664
2665 * config.gcc (powerpc*-*-*): Handle a2.
2666 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
2667 * config/rs6000/a2.md: New file.
2668 * config/rs6000/rs6000.opt (mno-update): New.
2669 (mupdate): Return to using a mask, not a var.
2670 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
2671 (enum processor_type): Add PROCESSOR_PPCA2.
2672 * config/rs6000/rs6000.c (ppca2_cost): New costs.
2673 (rs6000_override_options): Add "a2" to processor_target_table.
2674 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
2675 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
2676
2677 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
2678
2679 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2680 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
2681 reference to nonexistent gen_truncxfxf2 function.
2682
2683 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
2684
2685 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
2686 (DWIH, g, di, doubleint_general_operand): New mode attributes.
2687 (general_operand): Handle TI mode.
2688 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
2689 using SDWIM mode iterator.
2690 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
2691 pattern from *add{di,ti}3_1 patterns and corresponding splitters
2692 using DWI mode iterator.
2693 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
2694 patterns using SWI mode iterator.
2695 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
2696 using SWI48 mode iterator.
2697 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
2698 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
2699 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
2700 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
2701 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
2702 using SDWIM mode iterator.
2703 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
2704 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
2705 using DWI mode iterator.
2706 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
2707 patterns using SWI mode iterator.
2708 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
2709 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
2710 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
2711 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
2712 patterns using plusminus code iterator.
2713 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
2714 sub<mode>3 patterns using plusminus code iterator.
2715 * config/i386/i386.c (override_options): Update the call to
2716 gen_subdi_carry_rex64 for renamed function.
2717 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
2718 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
2719 calls to instruction expanders.
2720
2721 2009-10-06 Martin Jambor <mjambor@suse.cz>
2722
2723 PR bootstrap/41395
2724 * opts.c (decode_options): Run IPA-SRA at -O2.
2725
2726 2009-10-06 Richard Guenther <rguenther@suse.de>
2727
2728 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
2729
2730 2009-10-06 Tobias Burnus <burnus@net-b.de>
2731
2732 PR lto/41591
2733 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
2734 -flto and -fwhole-program flags can be combined.
2735
2736 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
2737
2738 PR driver/41217
2739 * gcc.c (process_command): Check that -o argument was specified.
2740
2741 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
2742
2743 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
2744
2745 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2746
2747 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
2748 * doc/invoke.texi (Warning Options): Annotate allowed languages
2749 for -Wunsuffixed-float-constants.
2750
2751 2009-10-05 Jakub Jelinek <jakub@redhat.com>
2752
2753 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
2754 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
2755 same name and isn't the main variant.
2756
2757 PR debug/41558
2758 * dwarf2out.c (loc_by_reference): Removed.
2759 (dw_loc_list_1): New function.
2760 (dw_loc_list): Remove toplev argument, add want_address argument.
2761 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
2762 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
2763 want_address == 2 to dw_loc_list. For successful dw_loc_list
2764 set have_address to 1 only if want_address is not 0.
2765
2766 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
2767
2768 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
2769 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
2770 a code block followed by two pointers.
2771 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
2772 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
2773 (MIPS_MOVE): Likewise.
2774 (MIPS_LUI): Likewise.
2775 (MIPS_JR): Likewise.
2776 (MIPS_BAL): Likewise.
2777 (MIPS_NOP): Likewise.
2778 (mips_asm_trampoline_template): Delete.
2779 (mips_trampoline_code_size): New function.
2780 (mips_trampoline_init): Add shorter sequences for all cases
2781 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
2782 Calculate the opcodes directly, rather than copying from a template.
2783 Only flush the code part of the trampoline.
2784 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
2785
2786 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
2787
2788 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
2789 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
2790 (INCOMING_RETURN_ADDR_RTX): Likewise.
2791 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
2792 with AT_REGNUM.
2793 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
2794 with RETURN_ADDR_REGNUM.
2795 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
2796 * config/mips/mips.c (mips16_build_call_stub): Replace
2797 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
2798 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
2799 (mips_print_operand_punctuation): Likewise.
2800 (mips_frame_set): Likewise.
2801 (mips16e_output_save_restore): Likewise.
2802 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2803 (mips_save_reg_p): Likewise.
2804 (mips_return_addr): Likewise.
2805 (mips_set_return_address): Likewise.
2806 (mips_direct_save_slot_move_p): Likewise.
2807 (mips_output_function_prologue): Likewise.
2808 (mips_restore_reg): Likewise.
2809 (mips_expand_epilogue): Likewise.
2810 (mips_epilogue_uses): Likewise.
2811 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
2812 (*mov<mode>_ra): Use it instead of a hard-coded 31.
2813 (clear_hazard_<mode>): Likewise.
2814 (call_internal): Likewise.
2815 (call_internal_direct): Likewise.
2816 (call_direct_split): Likewise.
2817 (call_value_internal): Likewise.
2818 (call_value_split): Likewise.
2819 (call_value_internal_direct): Likewise.
2820 (call_value_direct_split): Likewise.
2821 (call_value_multiple_internal): Likewise.
2822 (call_value_multiple_split): Likewise.
2823
2824 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
2825 Jakub Jelinek <jakub@redhat.com>
2826
2827 PR rtl-optimization/41511
2828 * combine.c (record_value_for_reg): Pass explicit values as argument
2829 to get_last_value_validate.
2830 (get_last_value_validate): Document INSN parameter.
2831 For non-readonly MEMs, assume they might have been modified if INSN
2832 was in another basic block.
2833 (get_last_value): Minor reformatting.
2834
2835 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2836
2837 PR tree-opt/40992
2838 * final.c (asm_str_count): Split out from asm_insn_count.
2839 * rtl.h (asm_str_count): New prototype.
2840 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
2841 asm_str_count.
2842
2843 2009-10-05 Sriraman Tallam <tmsriram@google.com>
2844
2845 * doc/plugins.texi: Change plugin_pass to register_pass_info.
2846
2847 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
2848 Rafael Espindola <espindola@google.com>
2849
2850 * gengtype.c (write_types): Moved call to write_func_for_structure
2851 into seperate loops.
2852
2853 2009-10-05 Richard Guenther <rguenther@suse.de>
2854
2855 PR lto/41281
2856 * lto-cgraph.c (output_cgraph): Output toplevel asms.
2857 (input_cgraph_1): Input toplevel asms.
2858
2859 2009-10-05 Richard Guenther <rguenther@suse.de>
2860
2861 PR lto/40902
2862 * lto-symtab.c (lto_compatible_attributes_p): Remove.
2863 (external_aggregate_decl_p): Likewise.
2864 (lto_symtab_compatible): Re-structure. Remove dead code.
2865 For variables ignore toplevel qualifiers when comparing types.
2866 Issue warnings, not errors for mismatched user-alignment.
2867
2868 2009-10-05 Richard Guenther <rguenther@suse.de>
2869
2870 PR lto/41552
2871 PR lto/41487
2872 * lto-symtab.c (struct lto_symtab_base_def): Remove.
2873 (struct lto_symtab_identifier_def): Likewise.
2874 (struct lto_symtab_decl_def): Likewise.
2875 (struct lto_symtab_entry_def): New.
2876 (lto_symtab_identifier_t): Rename to ...
2877 (lto_symtab_entry_t): ... this.
2878 (lto_symtab_decls): Remove.
2879 (lto_symtab_base_hash): Rename to ...
2880 (lto_symtab_entry_hash): ... this.
2881 (lto_symtab_base_eq): Rename to ...
2882 (lto_symtab_entry_eq): ... this.
2883 (lto_symtab_base_marked_p): Rename to ...
2884 (lto_symtab_entry_marked_p): ... this.
2885 (lto_symtab_identifier_marked_p): Remove.
2886 (lto_symtab_decl_marked_p): Likewise.
2887 (lto_symtab_maybe_init_hash_tables): Rename to ...
2888 (lto_symtab_maybe_init_hash_table): ... this.
2889 (lto_symtab_set_resolution_and_file_data): Remove.
2890 (lto_symtab_register_decl): New function.
2891 (lto_symtab_get_identifier): Remove.
2892 (lto_symtab_get): New function.
2893 (lto_symtab_get_resolution): Adjust.
2894 (lto_symtab_get_identifier_decl): Remove.
2895 (lto_symtab_set_identifier_decl): Likewise.
2896 (lto_symtab_merge_decl): Rename to ...
2897 (lto_symtab_merge): ... this. Rewrite.
2898 (lto_symtab_merge_var): Remove.
2899 (lto_symtab_merge_fn): Likewise.
2900 (lto_symtab_prevailing_decl): Adjust.
2901 (lto_cgraph_replace_node): New function.
2902 (lto_symtab_merge_decls_2): Likewise.
2903 (lto_symtab_merge_decls_1): Likewise.
2904 (lto_symtab_fixup_var_decls): Likewise.
2905 (lto_symtab_resolve_symbols): Likewise.
2906 (lto_symtab_merge_decls): Likewise.
2907 (lto_symtab_prevailing_decl): Adjust.
2908 (lto_symtab_get_symtab_def): Remove.
2909 (lto_symtab_get_file_data): Likewise.
2910 (lto_symtab_clear_resolution): Adjust.
2911 (lto_symtab_clear_resolution): Likewise.
2912 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
2913 (input_cgraph_1): Likewise.
2914 * lto-streamer-in.c (get_resolution): Do not provide fake
2915 symbol resolutions here.
2916 (deferred_global_decls): Remove.
2917 (lto_register_deferred_decls_in_symtab): Likewise.
2918 (lto_register_var_decl_in_symtab): Change signature, register
2919 variable via lto_symtab_register_decl.
2920 (lto_register_function_decl_in_symtab): Likewise.
2921 (lto_read_tree): Adjust.
2922 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
2923 (lto_symtab_merge_var): Likewise.
2924 (lto_symtab_merge_fn): Likewise.
2925 (lto_symtab_register_decl): Declare.
2926 (lto_symtab_merge_decls): Likewise.
2927
2928 2009-10-05 Richard Guenther <rguenther@suse.de>
2929
2930 PR tree-optimization/23821
2931 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
2932 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
2933 simple IV increments.
2934
2935 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2936
2937 * config/arm/arm.c (arm_override_options): Really initialize
2938 flag_dwarf2_cfi_asm to 0.
2939
2940 2009-10-05 Doug Kwan <dougkwan@google.com>
2941
2942 PR rtl-optimization/41574
2943 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
2944 floating point and we are not doing unsafe math optimizations.
2945
2946 2009-10-03 Simon Baldwin <simonb@google.com>
2947 Cary Coutant <ccoutant@google.com>
2948 Rafael Espindola <espindola@google.com>
2949 Richard Guenther <rguenther@suse.de>
2950 Jan Hubicka <jh@suse.cz>
2951 Doug Kwan <dougkwan@google.com>
2952 H.J. Lu <hongjiu.lu@intel.com>
2953 Bill Maddox <maddox@google.com>
2954 Ryan Mansfield <rmansfield@qnx.com>
2955 Diego Novillo <dnovillo@google.com>
2956 Ollie Wild <aaw@google.com>
2957 Kenneth Zadeck <zadeck@naturalbridge.com>
2958
2959 * lto-cgraph.c: New file.
2960 * lto-compress.c: New file.
2961 * lto-compress.h: New file.
2962 * lto-opts.c: New file.
2963 * lto-section-in.c: New file.
2964 * lto-section-out.c: New file.
2965 * lto-streamer-in.c: New file.
2966 * lto-streamer-out.c: New file.
2967 * lto-streamer.c: New file.
2968 * lto-streamer.h: New file.
2969 * lto-symtab.c: New file.
2970 * lto-wpa-fixup.c: New file.
2971 * lto-wrapper.c: New file.
2972
2973 2009-10-03 Simon Baldwin <baldwin@google.com>
2974 Ben Elliston <bje@au.ibm.com>
2975 Rafael Espindola <espindola@google.com>
2976 Nathan Froyd <froydnj@codesourcery.com>
2977 Jan Hubicka <jh@suse.cz>
2978 Doug Kwan <dougkwan@google.com>
2979 Diego Novillo <dnovillo@google.com>
2980 Kenneth Zadeck <zadeck@naturalbridge.com>
2981
2982 * Makefile.in (enable_lto): New.
2983 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
2984 (LINKER_PLUGIN_API_H): Define.
2985 (LTO_SYMTAB_H): Define.
2986 (LTO_STREAMER_H): Define.
2987 (TREE_VECTORIZER_H): Define.
2988 (INCLUDES): Add LIBELFINC.
2989 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
2990 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
2991 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
2992 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
2993 (native): Add lto-wrapper$(exeext)
2994 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
2995 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
2996 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
2997 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
2998 (varasm.o): Add dependency on tree-iterator.h.
2999 (cgraph.o): Add dependency on cif-code.def.
3000 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
3001 (ipa-pure-const.o): Likewise.
3002 (GTFILES): Add lto-symtab.c.
3003 (install-lto-wrapper): New.
3004 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
3005 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
3006 * config.in: Regenerate.
3007
3008 2009-10-03 Rafael Espindola <espindola@google.com>
3009 Diego Novillo <dnovillo@google.com>
3010
3011 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
3012 ipa_write_summaries.
3013 Call execute_ipa_summary_passes for all_regular_ipa_passes and
3014 all_lto_gen_passes.
3015 (cgraph_optimize): Make extern.
3016
3017 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
3018 Kenneth Zadeck <zadeck@naturalbridge.com>
3019
3020 * toplev.c (in_lto_p): Declare.
3021 * collect2.c (scan_prog_file): Read all the output when reading
3022 information for LTO.
3023 (enum lto_mode_d): Declare.
3024
3025 2009-10-03 Richard Guenther <rguenther@suse.de>
3026 Diego Novillo <dnovillo@google.com>
3027
3028 * gimple.c: Include target.h and alias.h.
3029 (gimple_types): Declare.
3030 (type_hash_cache): Declare.
3031 (gimple_alloc_stat): Make extern.
3032 (gimple_build_eh_must_not_throw): Call
3033 gimple_eh_must_not_throw_set_fndecl.
3034 (struct type_pair_d): Declare.
3035 (type_pair_t): Declare.
3036 (type_pair_hash): New.
3037 (type_pair_eq): New.
3038 (lookup_type_pair): New.
3039 (gimple_force_type_merge): New.
3040 (compare_type_names_p): New.
3041 (compare_field_offset): New.
3042 (gimple_types_compatible_p): New.
3043 (struct sccs): Declare.
3044 (next_dfs_num): Declare.
3045 (iterative_hash_gimple_type): New.
3046 (visit): New.
3047 (iterative_hash_type_name): New.
3048 (iterative_hash_gimple_type): New.
3049 (gimple_type_hash): New.
3050 (gimple_type_eq): New.
3051 (gimple_register_type): New.
3052 (print_gimple_types_stats): New.
3053 (gimple_signed_or_unsigned_type): New.
3054 (gimple_unsigned_type): New.
3055 (gimple_signed_type): New.
3056 (gimple_get_alias_set): New.
3057 (gimple_decl_printable_name): Do not use DMGL_TYPES.
3058 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
3059 (gimple_force_type_merge): Declare.
3060 (gimple_types_compatible_p): Declare.
3061 (gimple_register_type): Declare.
3062 (print_gimple_types_stats): Declare.
3063 (gimple_unsigned_type): Declare.
3064 (gimple_signed_type): Declare.
3065 (gimple_get_alias_set): Declare.
3066 (gimple_eh_must_not_throw_set_fndecl): New.
3067
3068 2009-10-03 Jan Hubicka <jh@suse.cz>
3069 Kenneth Zadeck <zadeck@naturalbridge.com>
3070
3071 * ipa-pure-const.c: Include lto-streamer.h.
3072 (register_hooks): Factor out of ...
3073 (generate_summary): ... here.
3074 (pure_const_write_summary): New.
3075 (pure_const_read_summary): New.
3076 (pass_ipa_pure_const): Add pure_const_write_summary and
3077 pure_const_read_summary.
3078 * ipa-reference.c: Include lto-streamer.h.
3079 (add_new_function): New.
3080 (remove_node_data): New.
3081 (duplicate_node_data): New.
3082 (ipa_init): Guard against multiple calls.
3083 Move hook setup from analyze_function.
3084 (write_node_summary_p): New.
3085 (ipa_reference_write_summary): New.
3086 (ipa_reference_read_summary): New.
3087 (pass_ipa_reference): Add ipa_reference_write_summary and
3088 ipa_reference_read_summary.
3089 * cgraph.h (cgraph_local_info): Add field lto_file_data.
3090 (struct cgraph_edge): Add fields lto_stmt_uid and
3091 call_stmt_cannot_inline_p.
3092 (cgraph_optimize): Declare.
3093 (cgraph_decide_is_function_needed): Declare.
3094 (reset_inline_failed): Declare.
3095 (enum LTO_cgraph_tags): Declare.
3096 (LTO_cgraph_tag_names): Declare.
3097 (LCC_NOT_FOUND): Define.
3098
3099 2009-10-03 Doug Kwan <dougkwan@google.com>
3100 Rafael Espindola <espindola@google.com>
3101 Jan Hubicka <jh@suse.cz>
3102 Diego Novillo <dnovillo@google.com>
3103 Kenneth Zadeck <zadeck@naturalbridge.com>
3104
3105 * passes.c (all_regular_ipa_passes): New.
3106 (all_ipa_passes): Rename to all_small_ipa_passes.
3107 (init_optimization_passes): Init all_regular_ipa_passes.
3108 * tree-pass.h (all_regular_ipa_passes): New.
3109 (all_ipa_passes): Rename to all_small_ipa_passes.
3110 * passes.c (all_lto_gen_passes): New.
3111 (init_optimization_passes): Initialize all_lto_gen_passes.
3112 (execute_ipa_summary_passes): Make non-static.
3113 (ipa_write_summaries_1): New.
3114 (ipa_write_summaries_2): New.
3115 (ipa_write_summaries): New.
3116 (ipa_write_summaries_of_cgraph_node_set): New.
3117 (ipa_read_summaries_1): New.
3118 (ipa_read_summaries): New.
3119 (execute_ipa_pass_list): Call cgraph_process_new_functions.
3120 (execute_regular_ipa_pass_list): Remove.
3121 (init_optimization_passes): Schedule
3122 pass_rebuild_cgraph_edges and pass_early_inline outside
3123 of pass_all_early_optimizations. Document reason.
3124 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3125 pass_ipa_lto_finish_out): New pass.
3126 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
3127 (execute_all_ipa_transforms): New.
3128 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3129 (dump_properties, debug_properties): New.
3130 * tree-optimize.c (gate_all_early_local_passes): Return
3131 false if we are in lto1.
3132 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3133 * tree-pass.h (execute_all_ipa_transforms): Declare.
3134 (pass_ipa_function_and_variable_visibility): Declare.
3135 (pass_ipa_early_inline): Declare.
3136 (pass_ipa_lto_gimple_out): Declare.
3137 (pass_ipa_lto_wpa_fixup): Declare.
3138 (pass_ipa_lto_finish_out): Declare.
3139 (all_small_ipa_passes, all_regular_ipa_passes,
3140 all_lto_gen_passes): Declare.
3141 (execute_ipa_summary_passes): Declare.
3142 (execute_all_ipa_transforms): Declare.
3143 (ipa_write_summaries): Declare
3144 (ipa_write_summaries_of_cgraph_node_set): Declare.
3145 (ipa_read_summaries): Declare.
3146
3147 2009-10-03 Doug Kwan <dougkwan@google.com>
3148 Ollie Wild <aaw@google.com>
3149
3150 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
3151
3152 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3153 (lto_mode): New variable.
3154 (maybe_run_lto_and_relink): Handle the -fwpa option.
3155 (main): Handle the -fwpa option.
3156 (maybe_unlink_list): New function.
3157 * gcc.c (link_lto_options): Replace -flto with -fwpa.
3158 * common.opt (flto): New flag.
3159 * toplev.c (flag_generate_lto): Declare.
3160
3161 2009-10-03 Simon Baldwin <simonb@google.com>
3162
3163 * common.opt (flto-compression-level): New flag.
3164
3165 * opts.c: Include lto-opts.h.
3166 (handle_option): Call lto_register_user_option for each
3167 valid option handled.
3168 (decode_options): Clear registered options before the options
3169 handling loop.
3170
3171 2009-10-03 Cary Coutant <ccoutant@google.com>
3172
3173 * collect2.c (is_elf): New function.
3174 (scan_prog_file): Require LTO object to be in ELF format.
3175
3176 2009-10-03 Rafael Espindola <espindola@google.com>
3177
3178 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3179 libgcc to the linker.
3180
3181 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
3182
3183 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3184 (collect_execute): Add flags argument. Pass flags to pex_run. Update
3185 all callers.
3186 * collect2.h (collect_execute): Add flags argument.
3187 * tlink.c (tlink_execute): Update call to collect_execute.
3188 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3189 (use_linker_plugin): New.
3190 (use_linker_plugin_spec_function): New.
3191 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3192 (linker_plugin_file_spec): New.
3193 (lto_wrapper_spec): New.
3194 (lto_gcc_spec): New.
3195 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3196 (static_spec_functions): Add use-linker-plugin.
3197 (process_command): Handle -use-linker-plugin.
3198 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3199 linker_plugin_file_spec and lto_gcc_spec.
3200 (use_linker_plugin_spec_function): New.
3201
3202 2009-10-03 Richard Guenther <rguenther@suse.de>
3203
3204 PR lto/41547
3205 PR lto/41548
3206 * tree.h (is_lang_specific): Include LANG_TYPE.
3207 * tree.c (find_decls_types_r): Manually add interesting parts
3208 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
3209
3210 * gimple.c (type_pair_hash): Make symmetric.
3211 (type_pair_eq): Likewise.
3212 (lookup_type_pair): Increase initial hashtable size.
3213 (gimple_force_type_merge): Rely on type-pair symmetry.
3214 (visit): Remove excessive checking code.
3215 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
3216 (gimple_register_type): Remove getenv calls, shrink initial
3217 hashtable size.
3218
3219 PR middle-end/41502
3220 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3221 inline functions if not generating lto output.
3222
3223 PR lto/41379
3224 * toplev.c (finalize): In WPA mode remove the asm file.
3225
3226 2009-10-03 Doug Kwan <dougkwan@google.com>
3227
3228 * ipa-inline.c (cgraph_mark_inline): Check
3229 edge->call_stmt_cannot_inline_p instead of calling
3230 gimple_call_cannot_inline_p.
3231 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
3232 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
3233 (inline_generate_summary): Do nothing in LTRANS.
3234 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3235 exists before calling gimple_call_cannot_inline_p.
3236 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
3237 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
3238 Update new_edge->lto_stmt_uid.
3239 * cgraphbuild.c (reset_inline_failed): New.
3240
3241 * common.opt (fwpa): New flag.
3242 (fltrans): New option.
3243 * gcc.c (gcc_lto_option_t): New type.
3244 (current_lto_option): New variable.
3245 (lto_single_spec_function): Remove and is replaced by ..
3246 (lto_option_spec_function): New function.
3247 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3248 passing the -flto flag.
3249 (cc1_options): Separate non-LTO related parts into ..
3250 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3251 (lto1_options): New spec for lto FE.
3252 (link_lto_options): New spec for handling LTO flags in linker.
3253 (invoke_lto_single): Re-format to fit in 80 column. Replace
3254 lto-single with lto-option.
3255 (static_specs): Add cc1_non_lto_options, lto1_options and
3256 link_lto_options.
3257 (static_spec_function): Replace lto-single with lto-option.
3258 (process_command): Handle -flto, -fwpa and -fltran by setting
3259 current_lto_option and not passing it to subprocess unconditionally.
3260
3261 2009-10-03 Bill Maddox <maddox@google.com>
3262
3263 Add `gcc' driver support for link-time code generation (LTO).
3264
3265 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3266 (lto_flag, lto_objects, lto_o_file): New variables.
3267 (struct lto_object, struct lto_object_list): New structures.
3268 (collect_exit, handler): Remove LTO temporary output file on exit.
3269 (add_lto_object): New function.
3270 (maybe_run_lto_and_relink): New function. Perform link time code
3271 generation and relinking for object files containing LTO information.
3272 (main): Invoke maybe_run_lto_and_relink().
3273 (dump_argv): New function. For debugging, currently disabled.
3274 (scan_prog_file): Add LTO information pass.
3275 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3276 collect2.
3277 * toplev.c (compile_file): Emit assembler directive to create
3278 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3279
3280 2009-10-03 Diego Novillo <dnovillo@google.com>
3281
3282 * c.opt: Add LTO to warn_abi and warn_psabi.
3283
3284 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
3285 inline function. Ignore language-specific nodes. Update all users.
3286 (find_decls_types_r): Do not traverse the subtrees of
3287 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
3288 * tree.h (is_lang_specific): New.
3289 * langhooks.h (struct lang_hooks_for_decls): Remove
3290 may_need_assembler_name_p. Update all users.
3291
3292 * c-common.c (set_builtin_user_assembler_name): Move ...
3293 * builtins.c (set_builtin_user_assembler_name): ... here.
3294 (is_builtin_name): Add comment
3295 (is_builtin_fn): New.
3296 * except.c (output_ttype): Only call
3297 lookup_type_for_runtime if TYPE is not a runtime type.
3298
3299 * passes.c (register_pass): Call position_pass on
3300 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
3301 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3302 (TV_IPA_LTO_DECL_IO): Define.
3303 (TV_IPA_LTO_CGRAPH_IO): Define.
3304 (TV_LTO): Define.
3305 (TV_WHOPR_WPA): Define.
3306 (TV_WHOPR_WPA_IO): Define.
3307 (TV_WHOPR_LTRANS): Define.
3308 (TV_WHOPR_WPA_FIXUP): Define.
3309 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3310 * tree-cfg.c (tree_node_can_be_shared): Make extern.
3311 * tree-flow.h (tree_node_can_be_shared): Declare.
3312 * tree-inline.c (tree_can_inline_p): Check that E has a
3313 statement associated with it.
3314 * tree.c (free_lang_data_in_binf): Factor out of ...
3315 (free_lang_data_in_type): ... here.
3316 Call RECORD_OR_UNION_TYPE_P.
3317 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3318 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
3319 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
3320 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
3321 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
3322 (gate_free_lang_data): Return true if flag_generate_lto is set.
3323 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
3324 * c-common.h (set_builtin_user_assembler_name): Move ...
3325 * tree.h (set_builtin_user_assembler_name): ... here.
3326
3327 * common.opt (flto-report): New flag.
3328 * opts.c (complain_wrong_lang): Do not complain if running lto1.
3329 * collect2.c (scan_prog_file): Send the error output of
3330 'nm' to HOST_BIT_BUCKET.
3331
3332 2009-10-03 Ollie Wild <aaw@google.com>
3333
3334 * langhooks-def.h (lhd_begin_section): New function declaration.
3335 (lhd_write_section): New function declaration.
3336 (lhd_end_section): New function declaration.
3337 (LANG_HOOKS_BEGIN_SECTION): New macro.
3338 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
3339 (LANG_HOOKS_END_SECTION): New macro.
3340 (LANG_HOOKS_LTO): New macro.
3341 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3342 * langhooks.c (output.h): Add include.
3343 (saved_section): New static variable.
3344 (lhd_begin_section): New function.
3345 (lhd_write_section_data): New function.
3346 (lhd_end_section): New function.
3347 * langhooks.h (struct lang_hooks_for_lto): New structure.
3348 (struct lang_hooks): Add member lto.
3349 * Makefile.in (langhooks.o): Add dependency on output.h.
3350
3351 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3352
3353 2009-10-03 Richard Guenther <rguenther@suse.de>
3354
3355 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3356 Handle LTO.
3357
3358 2009-10-03 Simon Baldwin <simonb@google.com>
3359 Richard Guenther <rguenther@suse.de>
3360 Janis Johnson <janis187@us.ibm.com>
3361 Doug Kwan <dougkwan@google.com>
3362 Diego Novillo <dnovillo@google.com>
3363 Ramana Radhakrishnan <ramana.r@gmail.com>
3364 Ollie Wild <aaw@google.com>
3365
3366 * doc/install.texi: Add documentation for libelf and --enable-lto.
3367 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3368 -flto-report, -flto-compression-level and -use-linker-plugin.
3369 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
3370 Add section for LTO Testing.
3371
3372 2009-10-02 Cary Coutant <ccoutant@google.com>
3373
3374 Add support for comdat type sections for DWARF v4.
3375 Merge from dwarf4 branch.
3376
3377 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3378 (dw_die_ref): Define vector type.
3379 (enum dw_val_class): Add dw_val_class_data8.
3380 (struct dw_val_struct): Add v.val_data8.
3381 (comdat_type_node_ref): New type.
3382 (struct die_struct): Move die_symbol into a union; add new field
3383 die_type_node. Change all uses.
3384 (comdat_type_node): New type.
3385 (skeleton_chain_node): New type.
3386 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3387 (comdat_type_list): New variable.
3388 (dwarf_tag_name): Add DW_TAG_type_unit.
3389 (dwarf_attr_name): Add DW_AT_signature.
3390 (add_AT_data8): New function.
3391 (replace_child): New function.
3392 (move_all_children): New function.
3393 (print_signature): New function.
3394 (print_die): Print signature information; add dw_val_class_data8.
3395 (attr_checksum): Support dw_val_class_data8.
3396 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
3397 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3398 (checksum_sleb128, checksum_uleb128): New functions.
3399 (checksum_die_context): New function.
3400 (loc_checksum_ordered): New function.
3401 (attr_checksum_ordered): New function.
3402 (struct checksum_attributes): New structure.
3403 (collect_checksum_attributes): New function.
3404 (die_checksum_ordered): New function.
3405 (generate_type_signature): New function.
3406 (same_dw_val_p): Add dw_val_class_data8.
3407 (is_symbol_die): Use new is_declaration_die function.
3408 (is_declaration_die): New function.
3409 (should_move_die_to_comdat): New function.
3410 (clone_die): New function.
3411 (clone_tree): New function.
3412 (clone_as_declaration): New function.
3413 (copy_declaration_context): New function.
3414 (generate_skeleton_ancestor_tree): New function.
3415 (generate_skeleton_bottom_up): New function.
3416 (generate_skeleton): New function.
3417 (remove_child_or_replace_with_skeleton): New function.
3418 (break_out_comdat_types): New function.
3419 (struct decl_table_entry): New type.
3420 (htab_decl_hash): New function.
3421 (htab_decl_eq): New function.
3422 (htab_decl_del): New function.
3423 (copy_ancestor_tree): New function.
3424 (copy_decls_walk): New function.
3425 (copy_decls_for_unworthy_types): New function.
3426 (build_abbrev_table): Don't assert on missing die_symbol when doing
3427 comdat type sections.
3428 (size_of_die): Use DW_FORM_sig8 for external references. Add
3429 dw_val_class_data8.
3430 (unmark_dies): Don't assert for unmarked dies when doing comdat
3431 type sections.
3432 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3433 (output_signature): New function.
3434 (output_die): Likewise.
3435 (output_compilation_unit_header): Mark output as DWARF version 3
3436 even if generating DWARF 4.
3437 (output_comdat_type_unit): New function.
3438 (output_line_info): Mark output as DWARF version 3 even if generating
3439 DWARF 4.
3440 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3441 DWARF-4.
3442 (dwarf2out_end_source_file): Likewise.
3443 (prune_unused_types_walk_attribs): Don't follow references into
3444 comdat type sections.
3445 (prune_unused_types_mark): When generating type units, do not mark
3446 children of non-defining declarations of types; do mark children of
3447 type entries.
3448 (prune_unused_types): Process comdat type sections.
3449 (htab_ct_hash): New function.
3450 (htab_ct_eq): New function.
3451 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3452 Add a pointer to the line table from type unit entries so
3453 DW_AT_decl_file has meaning.
3454 * varasm.c (default_elf_asm_named_section): Use identifier name as
3455 comdat key instead of lang hook.
3456
3457 2009-10-02 Neil Vachharajani <nvachhar@google.com>
3458
3459 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
3460
3461 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
3462
3463 * config/i386/i386.md (SWIM248): New mode iterator.
3464 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3465 divmodhi4 patterns using SWIM248 macro.
3466 (*divmod<mode>4): Macroize insn_and_split pattern from
3467 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
3468 and their corresponding splitters usign SWIM248 macro. Split SImode
3469 insn to generate cltd and DImode insn to generate cqto instead of
3470 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3471 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3472 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
3473 *divmodsi_noext patterns using SWIM248 macro.
3474 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
3475 udivmodhi4 patterns using SWIM248 macro.
3476 (*udivmod<mode>4): Macroize insn_and_split pattern from
3477 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
3478 corresponding splitters using SWIM248 macro.
3479 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
3480 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
3481
3482 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
3483
3484 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3485 of zero-sized element is zero-sized regardless of its extent.
3486
3487 2009-10-02 Jakub Jelinek <jakub@redhat.com>
3488
3489 PR debug/40521
3490 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3491 * configure: Regenerated.
3492 * config.in: Regenerated.
3493 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3494 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3495 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3496 not emitting .eh_frame, emit .cfi_sections .debug_frame
3497 directive.
3498
3499 PR debug/41404
3500 PR debug/41353
3501 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
3502 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3503 with '\0'.
3504 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3505 vars use DECL_RTL with resetting it back to NULL afterwards.
3506 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3507 rtx_equal_p instead of asserting it is a SYMBOL_REF.
3508 (value_format): For dw_val_class_addr only use DW_FORM_addr if
3509 the attribute type allows it, otherwise use DW_FORM_dataN.
3510 (mem_loc_descriptor): Handle CONST_STRING.
3511 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3512 Handle MEM with CONST_STRING address using add_AT_string.
3513 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3514 CONST_STRING for const arrays initialized with a string literal.
3515 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3516 (dwarf2out_finish): Call resolve_addr.
3517
3518 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
3519 Maxim Kuvyrkov <maxim@codesourcery.com>
3520
3521 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3522
3523 2009-10-02 Nick Clifton <nickc@redhat.com>
3524
3525 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3526 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3527
3528 2009-10-01 Jan Hubicka <jh@suse.cz>
3529
3530 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3531 (cgraph_create_virtual_clone): Just pass redirect_callers
3532 around.
3533 * cgraph.h (cgraph_clone_node): Update prototype.
3534 * ipa-pure-const.c (self_recursive_p): New function.
3535 (propagate): Use it.
3536 * ipa-inline.c (cgraph_clone_inlined_nodes,
3537 cgraph_decide_recursive_inlining): Update.
3538
3539 2009-10-01 David Daney <ddaney@caviumnetworks.com>
3540
3541 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3542 instructions for TARGET_OCTEON.
3543
3544 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3545
3546 * config/arm/arm.c (arm_override_options): Turn off
3547 flag_dwarf2_cfi_asm for AAPCS variants.
3548
3549 2009-10-01 Martin Jambor <mjambor@suse.cz>
3550
3551 PR middle-end/12392
3552 * tree-sra.c (convert_callers): Do not call
3553 compute_inline_parameters on one caller more than once.
3554
3555 2009-10-01 Nick Clifton <nickc@redhat.com>
3556
3557 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3558 an empty string if not already defined.
3559
3560 2009-10-01 Martin Jambor <mjambor@suse.cz>
3561
3562 PR bootstrap/41395
3563 * tree-sra.c (is_va_list_type): New function.
3564 (find_var_candidates): Call is_va_list_type.
3565 (find_param_candidates): Check that the type or the type pointed
3566 to are not va_list types.
3567
3568 2009-10-01 Martin Jambor <mjambor@suse.cz>
3569
3570 PR c++/41503
3571 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
3572 DECL_ARTIFICIAL (param_decl) is true.
3573
3574 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
3575
3576 * tree.h (tree_decl_common::lang_flag_8): New.
3577 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
3578 keyword.
3579 * c-common.h (RID_CONSTEXPR): New.
3580
3581 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
3582
3583 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
3584 Use ref-all pointers.
3585 (alpha_gimplify_va_arg): Ditto.
3586
3587 2009-09-30 Jakub Jelinek <jakub@redhat.com>
3588
3589 PR target/41279
3590 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
3591 before insn counting loop now that BB_END (bb) is counted. Ensure
3592 the return value isn't zero.
3593
3594 2009-09-30 Nick Clifton <nickc@redhat.com>
3595
3596 * config.gcc (sh-symbianelf): Replace definition of extra_objs
3597 with separate definitions of c_target_objs and cxx_target_objs.
3598 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
3599 and symbian-base.o.
3600 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
3601 sh_symbian_import_export_class.
3602 * config/sh/sh-protos.h: Fix names of exported symbian functions.
3603 * config/sh/symbian.c: Delete, moving code into...
3604 * config/sh/symbian-base.c: ... here
3605 * config/sh/symbian-c.c: ... and here
3606 * config/sh/symbian-cxx.c: ... and here.
3607
3608 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
3609
3610 PR target/22093
3611 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
3612 of plus RTX into register.
3613
3614 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3615
3616 * doc/install.texi: Linguistic and markup fixes.
3617 (Configuration) <--disable-cpp>: Remove description.
3618 <--enable-maintainer-mode>: Autotools files are affected, too.
3619 <--with-sysroot>: Improve description.
3620 (Building): Bump required GNU make version.
3621
3622 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
3623
3624 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
3625 (x86_64-*-*): Ditto.
3626
3627 * config/i386/fma4intrin.h: New file, provide common x86 compiler
3628 intrinisics for FMA4.
3629 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
3630 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
3631 Add FMA4 check and fma4intrin.h.
3632 * config/i386/i386-c.c(ix86_target_macros_internal): Check
3633 ISA_FLAG for FMA4.
3634 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
3635 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
3636 constant for FMA4 support.
3637 (UNSPEC_FMA4_FMADDSUB): Ditto.
3638 (UNSPEC_FMA4_FMSUBADD): Ditto.
3639 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
3640 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
3641 (ix86_expand_fma4_multiple_memory): Ditto.
3642 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
3643 (OPTION_MASK_ISA_FMA4_UNSET): New.
3644 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
3645 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
3646 (ix86_handle_option): Handle -mfma4.
3647 (isa_opts): Handle -mfma4.
3648 (enum pta_flags): Add PTA_FMA4.
3649 (override_options): Add FMA4 support.
3650 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
3651 (IX86_BUILTIN_VFMADDSD): Ditto.
3652 (IX86_BUILTIN_VFMADDPS): Ditto.
3653 (IX86_BUILTIN_VFMADDPD): Ditto.
3654 (IX86_BUILTIN_VFMSUBSS): Ditto.
3655 (IX86_BUILTIN_VFMSUBSD): Ditto.
3656 (IX86_BUILTIN_VFMSUBPS): Ditto.
3657 (IX86_BUILTIN_VFMSUBPD): Ditto.
3658 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
3659 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
3660 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
3661 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
3662 (IX86_BUILTIN_VFNMADDSS): Ditto.
3663 (IX86_BUILTIN_VFNMADDSD): Ditto.
3664 (IX86_BUILTIN_VFNMADDPS): Ditto.
3665 (IX86_BUILTIN_VFNMADDPD): Ditto.
3666 (IX86_BUILTIN_VFNMSUBSS): Ditto.
3667 (IX86_BUILTIN_VFNMSUBSD): Ditto.
3668 (IX86_BUILTIN_VFNMSUBPS): Ditto.
3669 (IX86_BUILTIN_VFNMSUBPD): Ditto.
3670 (IX86_BUILTIN_VFMADDPS256): Ditto.
3671 (IX86_BUILTIN_VFMADDPD256): Ditto.
3672 (IX86_BUILTIN_VFMSUBPS256): Ditto.
3673 (IX86_BUILTIN_VFMSUBPD256): Ditto.
3674 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
3675 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
3676 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
3677 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
3678 (IX86_BUILTIN_VFNMADDPS256): Ditto.
3679 (IX86_BUILTIN_VFNMADDPD256): Ditto.
3680 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
3681 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
3682 (enum multi_arg_type): New enum for describing the various FMA4
3683 intrinsic argument types.
3684 (bdesc_multi_arg): New table for FMA4 intrinsics.
3685 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
3686 (ix86_expand_multi_arg_builtin): New function for creating FMA4
3687 intrinsics.
3688 (ix86_expand_builtin): Add FMA4 intrinsic support.
3689 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
3690 operand instructions.
3691 (ix86_expand_fma4_multiple_memory): New function to split the
3692 second memory reference from FMA4 instructions.
3693 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
3694 (ssemodesuffixf2s): Ditto.
3695 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
3696 instructions.
3697 (fma4_fmsub<mode>4): Ditto.
3698 (fma4_fnmadd<mode>4): Ditto.
3699 (fma4_fnmsub<mode>4): Ditto.
3700 (fma4_vmfmadd<mode>4): Ditto.
3701 (fma4_vmfmsub<mode>4): Ditto.
3702 (fma4_vmfnmadd<mode>4): Ditto.
3703 (fma4_vmfnmsub<mode>4): Ditto.
3704 (fma4_fmadd<mode>4256): Ditto.
3705 (fma4_fmsub<mode>4256): Ditto.
3706 (fma4_fnmadd<mode>4256): Ditto.
3707 (fma4_fnmsub<mode>4256): Ditto.
3708 (fma4_fmaddsubv8sf4): Ditto.
3709 (fma4_fmaddsubv4sf4): Ditto.
3710 (fma4_fmaddsubv4df4): Ditto.
3711 (fma4_fmaddsubv2df4): Ditto.
3712 (fma4_fmsubaddv8sf4): Ditto.
3713 (fma4_fmsubaddv4sf4): Ditto.
3714 (fma4_fmsubaddv4df4): Ditto.
3715 (fma4_fmsubaddv2df4): Ditto.
3716 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
3717 instructions for intrinsics.
3718 (fma4i_fmsub<mode>4): Ditto.
3719 (fma4i_fnmadd<mode>4): Ditto.
3720 (fma4i_fnmsub<mode>4): Ditto.
3721 (fma4i_vmfmadd<mode>4): Ditto.
3722 (fma4i_vmfmsub<mode>4): Ditto.
3723 (fma4i_vmfnmadd<mode>4): Ditto.
3724 (fma4i_vmfnmsub<mode>4): Ditto.
3725 (fma4i_fmadd<mode>4256): Ditto.
3726 (fma4i_fmsub<mode>4256): Ditto.
3727 (fma4i_fnmadd<mode>4256): Ditto.
3728 (fma4i_fnmsub<mode>4256): Ditto.
3729 (fma4i_fmaddsubv8sf4): Ditto.
3730 (fma4i_fmaddsubv4sf4): Ditto.
3731 (fma4i_fmaddsubv4df4): Ditto.
3732 (fma4i_fmaddsubv2df4): Ditto.
3733 (fma4i_fmsubaddv8sf4): Ditto.
3734 (fma4i_fmsubaddv4sf4): Ditto.
3735 (fma4i_fmsubaddv4df4): Ditto.
3736 (fma4i_fmsubaddv2df4): Ditto.
3737
3738 * doc/invoke.texi (-mfma4): Add documentation.
3739 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
3740
3741 2009-09-29 Richard Henderson <rth@redhat.com>
3742
3743 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
3744 an edge to the new destination block.
3745
3746 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3747
3748 PR target/41393
3749 * pa.c (hppa_profile_hook): Use
3750 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
3751
3752 2009-09-29 Steve Ellcey <sje@cup.hp.com>
3753 Alexander Monakov <amonakov@ispras.ru>
3754
3755 PR target/41365
3756 * config/ia64/predicates.md (not_postinc_destination_operand): New.
3757 (not_postinc_memory_operand): New.
3758 (not_postinc_move_operand): New.
3759 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
3760 (*cmovsi_internal): Ditto.
3761
3762 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
3763
3764 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
3765 restrict issue_rate in first pass when scheduling for register
3766 pressure.
3767
3768 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
3769 Rafael Avila de Espindola <espindola@google.com>
3770
3771 * gengtype.c (plugin_output): New.
3772 (get_output_file_with_visibility): Return plugin_output for plugins.
3773 (main): Parse and use the -P option.
3774 * gty.texi: Update the command line format.
3775
3776 2009-09-29 Jakub Jelinek <jakub@redhat.com>
3777
3778 PR debug/41438
3779 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
3780 functions.
3781 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
3782 out if !const_ok_for_output.
3783
3784 PR debug/41474
3785 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
3786 case VAR_LOCATION>: Remove gcc_unreachable ().
3787
3788 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
3789
3790 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
3791 (x86_64-*-*): Ditto.
3792 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
3793 back to smmintrin.h.
3794 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
3795 * config/i386/x86intrin.h: Remove SSE5.
3796 * config/i386/mmintrin-common.h: Delete file.
3797 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
3798
3799 2009-09-29 Richard Guenther <rguenther@suse.de>
3800
3801 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
3802 resulting from stack temporaries on STRICT_ALIGNMENT targets.
3803
3804 2009-09-29 Nick Clifton <nickc@redhat.com>
3805
3806 * function.c (current_function_name): If there is no current
3807 function just return "<none>".
3808
3809 2009-09-28 Sriraman Tallam <tmsriram@google.com>
3810
3811 * tree-pass.h (register_pass_info): New structure.
3812 (pass_positioning_ops): Move enum from gcc-plugin.h.
3813 (register_pass): New function.
3814 * gcc-plugin.h (plugin_pass): Delete structure.
3815 (pass_positioning_ops): Delete enum.
3816 * plugin.c (regsiter_pass): Delete function.
3817 (position_pass): Delete function.
3818 (added_pass_nodes): Delete variable.
3819 (prev_added_pass_nodes): Delete variable.
3820 (pass_list_node): Delete structure.
3821 * passes.c (make_pass_instance): New function.
3822 (next_pass_1): Change to call make_pass_instance.
3823 (pass_list_node): Move structure from gcc-plugin.h.
3824 (added_pass_nodes): Move variable from plugin.c.
3825 (prev_added_pass_nodes): Move variable from plugin.c.
3826 (position_pass): New function.
3827 (register_pass): New function.
3828
3829 2009-09-28 Easwaran Raman <eraman@google.com>
3830
3831 * ifcvt.c (noce_try_abs): Recognize pattern and call
3832 expand_one_cmpl_abs_nojump.
3833 * optabs.c (expand_one_cmpl_abs_nojump): New function.
3834 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
3835
3836 2009-09-28 Ian Lance Taylor <iant@google.com>
3837
3838 PR middle-end/40500
3839 * c-opts.c (c_common_handle_option): Don't set
3840 warn_jump_misses_init for -Wall.
3841 * doc/invoke.texi (Warning Options): Update documentation.
3842
3843 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3844
3845 * Makefile.in ($(out_object_file)): Depend on
3846 gt-$(basename $(notdir $(out_file))).h.
3847
3848 2009-09-28 Richard Henderson <rth@redhat.com>
3849
3850 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
3851 * except.c (gen_eh_region): Set it.
3852 (duplicate_eh_regions_1): Copy it.
3853 * tree-eh.c (lower_resx): Use it to determine which function
3854 to call to resume.
3855
3856 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
3857 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
3858 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
3859 * tree.c (build_common_builtin_nodes): Remove parameter. Build
3860 BUILT_IN_CXA_END_CLEANUP if necessary.
3861
3862 * c-common.c (c_define_builtins): Update call to
3863 build_common_builtin_nodes.
3864
3865 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3866
3867 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
3868
3869 2009-09-28 Michael Matz <matz@suse.de>
3870
3871 * builtins.c (interclass_mathfn_icode): New helper.
3872 (expand_builtin_interclass_mathfn): Use it here, and split folding
3873 into ...
3874 (fold_builtin_interclass_mathfn): ... this new folder.
3875 (build_call_nofold_loc): New static helper.
3876 (build_call_nofold): New wrapper macro for above.
3877 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
3878 (expand_builtin_pow): Ditto.
3879 (expand_builtin_memset_args): Ditto.
3880 (expand_builtin_printf): Ditto.
3881 (expand_builtin_fprintf): Ditto.
3882 (expand_builtin_sprintf): Ditto.
3883 (expand_builtin_memory_chk): Ditto.
3884 (expand_builtin_mempcpy_args): Ditto and don't call folders.
3885 (expand_builtin_stpcpy): Ditto.
3886 (expand_builtin_strcmp): Ditto.
3887 (expand_builtin_strncmp): Ditto.
3888 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
3889 (expand_builtin_strcpy_args): Don't call folders.
3890 (expand_builtin_memcmp): Ditto.
3891 (expand_builtin_strncpy): Ditto, and use target.
3892 (expand_builtin_memcpy): Ditto.
3893 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
3894 expand_builtin_strpbrk, expand_builtin_memmove,
3895 expand_builtin_memmove_args, expand_builtin_bcopy,
3896 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
3897 expand_builtin_strspn, expand_builtin_strcspn,
3898 expand_builtin_fputs): Remove these.
3899 (expand_builtin): Don't call the above, change calls to other
3900 expanders that changed prototype.
3901 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
3902 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
3903 fold_builtin_interclass_mathfn.
3904 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
3905 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
3906
3907 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
3908 * passes.c (init_optimization_passes): Move pass_fold_builtins
3909 after last phiopt pass.
3910 * tree-inline.c (fold_marked_statements): When folding builtins
3911 iterate over all instruction potentially generated.
3912 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
3913 earlier.
3914 (fold_gimple_call): Use it to always fold calls (into potentially
3915 multiple instructions).
3916 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
3917 calls into zero at this time.
3918 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
3919 statements generated by builtin folding.
3920
3921 2009-09-28 Nick Clifton <nickc@redhat.com>
3922
3923 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
3924
3925 2009-09-28 Duncan Sands <baldrick@free.fr>
3926
3927 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
3928 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
3929 (register_callback): Dispatch it.
3930 (invoke_plugin_callbacks): Incorporate in sanity check.
3931 * ggc.h (ggc_register_cache_tab): Add declaration.
3932 * ggc-common.c (ggc_register_root_tab): Simplify.
3933 (const_ggc_cache_tab_t): New typedef.
3934 (extra_cache_vec): New vector of dynamically added cache tables.
3935 (ggc_register_cache_tab): New function.
3936 (ggc_scan_cache_tab): New function.
3937 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
3938 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
3939
3940 2009-09-27 Richard Henderson <rth@redhat.com>
3941
3942 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
3943 which we remove __builtin_stack_restore.
3944
3945 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
3946
3947 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
3948 to test for GRD_INVARIANT.
3949 (simple_rhs_p): Anything that's function_invariant_p is fine.
3950
3951 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
3952
3953 * gengtype.c (main): Use plunge_files instead of plugin_output.
3954
3955 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
3956 Rafael Avila de Espindola <espindola@google.com>
3957
3958 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
3959 Don't print pch related info if it is false.
3960 (main): Don't print pch info in plugin mode.
3961
3962 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
3963
3964 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
3965 with dw_val_class_const_double.
3966 (struct dw_val_struct): Replace val_long_long with val_double and
3967 adjust for above change.
3968 (output_loc_operands): Likewise.
3969 (add_AT_long_long): Rename into...
3970 (add_AT_double): ...this.
3971 (print_die): Replace dw_val_class_long_long with
3972 dw_val_class_const_double and adjust.
3973 (attr_checksum): Likewise.
3974 (same_dw_val_p): Likewise.
3975 (size_of_die): Likewise.
3976 (value_format): Likewise.
3977 (output_die): Likewise.
3978 (loc_descriptor) <CONST_DOUBLE>: Likewise.
3979 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
3980 instead of add_AT_long_long.
3981 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
3982 value with the precision of its type.
3983
3984 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
3985
3986 PR c/41476
3987 * c-typeck.c (build_conditional_expr): Use the readonly and
3988 volatile flags of the operand types, not of the operands itself.
3989
3990 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
3991
3992 * collect2.c (main): Look for -brtl before adding libraries.
3993
3994 2009-09-27 Jonathan Gray <jsg@openbsd.org>
3995
3996 * config.gcc: Update OpenBSD targets.
3997 * config/openbsd-stdint.h: New file.
3998 * config/openbsd-libpthread.h: New file.
3999 * config/openbsd.h: Update and break out LIB_SPEC definition.
4000 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
4001 * config/i386/openbsdelf.h: Correct types.
4002 * config/m68k/openbsd.h: Likewise.
4003 * config/mips/openbsd.h: Likewise.
4004 * config/vax/openbsd.h: Likewise.
4005
4006 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
4007
4008 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
4009 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
4010 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
4011 of the length and zero.
4012
4013 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4014
4015 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
4016 (FLAGS_H): Add options.h $(REAL_H).
4017 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
4018 (TREE_VECTORIZER_H): New.
4019 (EBITMAP_H): Renamed from EBIMAP_H.
4020 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
4021 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
4022 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
4023 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
4024 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
4025 (graphite-clast-to-gimple.o, graphite-dependences.o)
4026 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
4027 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
4028 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
4029 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
4030 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
4031 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
4032 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
4033 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
4034 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
4035 updated and fixed as per above changes and per
4036 check_makefile_deps.sh output.
4037
4038 PR bootstrap/40928
4039 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
4040 * configure: Regenerate.
4041
4042 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4043
4044 * doc/install.texi: Update minimum MPC version to 0.7.
4045
4046 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
4047
4048 * doc/install.texi (Binaries): Remove reference to the binary
4049 distribution CD-ROM from the FSF.
4050
4051 2009-09-26 Michael Matz <matz@suse.de>
4052
4053 PR lto/40758
4054 PR middle-end/41470
4055 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
4056 that are mentioned in the body.
4057
4058 2009-09-26 Michael Matz <matz@suse.de>
4059
4060 PR tree-optimization/41454
4061 * tree-ssa-dom (stmts_to_rescan): Remove variable.
4062 (tree_ssa_dominator_optimize): Don't allocate and free it.
4063 (dom_opt_leave_block): Don't iterate over it.
4064 (eliminate_redundant_computations): Don't return a value.
4065 (cprop_operand, cprop_into_stmt): Ditto.
4066 (optimize_stmt): Don't defer updating stmts.
4067
4068 2009-09-25 Dodji Seketeli <dodji@redhat.com>
4069
4070 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
4071 generic_parameter_die, template_parameter_pack_die,
4072 gen_formal_parameter_die, gen_subprogram_die): Adjust after
4073 renaming DW_TAG_formal_parameter_pack and
4074 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
4075 and DW_TAG_GNU_template_parameter_pack.
4076
4077 2009-09-25 Anatoly Sokolov <aesok@post.ru>
4078
4079 * config/v850/v850.h (FUNCTION_VALUE): Remove.
4080 * config/v850/v850.c (v850_function_value): New function.
4081 (TARGET_FUNCTION_VALUE): Define.
4082
4083 2009-09-25 Jakub Jelinek <jakub@redhat.com>
4084
4085 * tree-vect-stmts.c (vectorizable_call): Call
4086 mark_symbols_for_renaming after vect_finish_stmt_generation.
4087
4088 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
4089 to loc_descriptor_from_tree.
4090 (add_location_or_const_value_attribute): Pass 0 instead of 2
4091 for decl_by_reference_p decls.
4092
4093 2009-09-25 Richard Guenther <rguenther@suse.de>
4094
4095 PR middle-end/41463
4096 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
4097 arrays again.
4098
4099 2009-09-25 Ben Elliston <bje@au.ibm.com>
4100
4101 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
4102 after `power7'.
4103
4104 2009-09-25 Alan Modra <amodra@bigpond.net.au>
4105
4106 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
4107 form of instruction.
4108
4109 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4110
4111 PR middle-end/41435
4112 * fold-const.c (const_binop): Handle complex int division.
4113 * tree-complex.c (expand_complex_div_straight,
4114 expand_complex_div_wide): Update comments.
4115
4116 2009-09-24 DJ Delorie <dj@redhat.com>
4117
4118 PR target/41456
4119 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
4120 (reg_class): Likewise.
4121 (REG_CLASS_NAMES): Likewise.
4122 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
4123 (m32c_override_options): Disable -fivopts for M32C.
4124
4125 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4126
4127 * config/rs6000/predicates.md (indexed_or_indirect_operand):
4128 Delete VSX load/store with update support.
4129 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4130 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4131 (vsx_movti): Ditto.
4132 (VSX_U): Delete.
4133 (VSbit): Ditto.
4134 (VStype_load_update): Ditto.
4135 (VStype_store_update): Ditto.
4136 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4137 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4138
4139 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4140 load/store with update builtins.
4141
4142 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
4143
4144 * libgcc2.c (L_trampoline): Prototype for getpagesize
4145 and mprotect in WINNT case.
4146
4147 2009-09-24 Anatoly Sokolov <aesok@post.ru>
4148
4149 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4150 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4151 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4152 'outgoing' argument.
4153 (TARGET_FUNCTION_VALUE): Define.
4154
4155 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4156
4157 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4158
4159 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4160
4161 PR bootstrap/41405
4162 * common.opt: Initialize dwarf_strict to -1.
4163 * toplev.c (process_options): Catch unset dwarf_strict
4164 and set to 0 for all targets not overriding.
4165 * config/darwin.c (darwin_override_options): Catch unset
4166 dwarf_strict and override to 1.
4167
4168 2009-09-24 Jeff Law <law@redhat.com>
4169
4170 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
4171
4172 2009-09-24 Richard Guenther <rguenther@suse.de>
4173
4174 PR tree-optimization/36143
4175 PR tree-optimization/38747
4176 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4177 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4178
4179 2009-09-24 Jakub Jelinek <jakub@redhat.com>
4180
4181 PR bootstrap/41457
4182 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4183 return false instead of gcc_unreachable (). For CONST return the
4184 value returned by recursive call instead of always returning true.
4185 (tree_add_const_value_attribute): Return the value returned by
4186 add_const_value_attribute instead of always returning true if rtl
4187 is non-NULL.
4188
4189 2009-09-23 Justin Seyster <jrseys@gmail.com>
4190
4191 * Makefile.in (PLUGIN_HEADERS): Include real.h.
4192
4193 2009-09-24 Jakub Jelinek <jakub@redhat.com>
4194
4195 * cgraphunit.c (cgraph_lower_function): Revert last change.
4196 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4197 instead of DECL_NO_STATIC_CHAIN.
4198 * tree-cfg.c (verify_gimple_call): Likewise.
4199 * tree-nested.c (get_chain_decl, get_chain_field,
4200 convert_tramp_reference_op, convert_gimple_call): Likewise.
4201 (convert_all_function_calls): Likewise. Always set or clear
4202 DECL_STATIC_CHAIN initially, for !n->outer clear it.
4203 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4204 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4205 if nested.
4206 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4207 DECL_NO_STATIC_CHAIN.
4208 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4209 instead of DECL_NO_STATIC_CHAIN.
4210 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
4211 decl_function_context.
4212 * varasm.c (initializer_constant_valid_p): Likewise.
4213 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4214 (DECL_STATIC_CHAIN): ... this.
4215 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4216 instead of DECL_NO_STATIC_CHAIN.
4217
4218 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
4219 Rafael Avila de Espindola <espindola@google.com>
4220
4221 * gengtype.c (nb_plugin_files): Make it unsigned to match
4222 num_gt_files. Adjust other variables to avoid warnings.
4223 (main): Allocate an all zero lang_bitmap before each plugin file name
4224 to match regular file names.
4225
4226 2009-09-23 Richard Henderson <rth@redhat.com>
4227
4228 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4229 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4230 static chain passed in memory.
4231 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4232 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4233 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
4234 STATIC_CHAIN_REGNUM defined.
4235
4236 * config/picochip/picochip-protos.h: s/class/klass/.
4237 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4238 (picochip_static_chain): New.
4239 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4240 (STATIC_CHAIN_INCOMING): Remove.
4241
4242 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4243 (xtensa_static_chain): New.
4244 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4245 (STATIC_CHAIN_INCOMING): Remove.
4246
4247 2009-09-23 Anatoly Sokolov <aesok@post.ru>
4248
4249 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4250 * config/pa/pa-protos.h (function_value): Remove.
4251 * config/pa/pa.c (pa_function_value): Rename from function_value.
4252 Make static, add 'outgoing' argument.
4253 (TARGET_FUNCTION_VALUE): Define.
4254
4255 2009-09-23 Anatoly Sokolov <aesok@post.ru>
4256
4257 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4258 instead of cfun->machine->is_leaf.
4259 * config/avr/avr.h (machine_function): Remove is_leaf field.
4260
4261 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4262
4263 PR debug/41439
4264 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4265 DW_OP_piece after DW_OP_stack_value, adjust size calculations
4266 for it, when DW_OP_stack_value and DW_OP_implicit_value has
4267 the same size, prefer DW_OP_stack_value.
4268 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4269 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4270
4271 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
4272
4273 PR debug/41353
4274 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4275
4276 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
4277
4278 PR debug/41248
4279 * cfgexpand.c (convert_debug_memory_address): New.
4280 (expand_debug_expr): Convert base address and offset to the same
4281 mode. Use it to convert addresses to other modes. Accept
4282 ptr_mode addresses.
4283
4284 2009-09-23 Richard Guenther <rguenther@suse.de>
4285
4286 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4287 produced for bigendian targets with promoted subregs.
4288
4289 2009-09-23 Richard Guenther <rguenther@suse.de>
4290
4291 * value-prof.c (gimple_ic): Purge old EH edges only after building
4292 the new ones.
4293
4294 2009-09-23 Nick Clifton <nickc@redhat.com>
4295
4296 * config/arc/arc.c (arc_trampoline_init): Fix typo.
4297
4298 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4299
4300 PR bootstrap/41405
4301 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4302
4303 PR bootstrap/41436
4304 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4305 on non-nested functions.
4306
4307 2009-09-23 Jakub Jelinek <jakub@redhat.com>
4308 Jan Hubicka <jh@suse.cz>
4309
4310 * dwarf2out.c (loc_list_plus_const): Only define if
4311 DWARF2_DEBUGGING_INFO.
4312 (address_of_int_loc_descriptor): Likewise.
4313
4314 PR debug/41411
4315 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4316
4317 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
4318
4319 PR c/39779
4320 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
4321 constant is more than zero.
4322
4323 2009-09-23 Alan Modra <amodra@bigpond.net.au>
4324
4325 PR target/40473
4326 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4327 call final to emit non-scheduled prologue, instead insert at entry.
4328
4329 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
4330 Joseph S. Myers <joseph@codesourcery.com>
4331
4332 * doc/install.texi (*-*-freebsd*): Add proper format codes.
4333
4334 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
4335 Rafael Avila de Espindola <espindola@google.com>
4336
4337 * gengtype.c (is_file_equal): New function.
4338 (close_output_files): Use is_file_equal. Free of->buf.
4339
4340 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
4341 Rafael Avila de Espindola <espindola@google.com>
4342
4343 * gengtype.c (write_types, write_local): Add the output_header
4344 argument. Update all callers.
4345
4346 2009-09-22 Dodji Seketeli <dodji@redhat.com>
4347
4348 * dwarf2out.c (template_parameter_pack_die,
4349 gen_formal_parameter_pack_die ): New functions.
4350 (make_ith_pack_parameter_name): Remove this function.
4351 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4352 DW_TAG_formal_parameter_pack.
4353 (gen_generic_params_dies): Represent each template parameter pack
4354 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4355 represented by usual DW_TAG_template_*_parameter DIEs that are
4356 children of the DW_TAG_template_parameter_pack element DIE.
4357 (generic_parameter_die): This doesn't deal with parameter pack
4358 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4359 of parameter pack DIEs.
4360 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4361 in certain cases, e.g. for pack elements.
4362 (gen_formal_types_die, gen_decl_die): Adjust usage of
4363 gen_formal_parameter_die.
4364 (gen_subprogram_die): Represent each function parameter pack by a
4365 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4366 represented by usual DW_TAG_formal_parameter DIEs that are children
4367 of the DW_TAG_formal_parameter_pack DIE. Remove references to
4368 ____builtin_va_alist decls as no part of the compiler uses those
4369 anymore.
4370 * langhooks.h (struct lang_hooks_for_decls): Add
4371 function_parm_expanded_from_pack_p, get_generic_function_decl
4372 and function_parameter_pack_p hooks. Fix comment for
4373 get_innermost_generic_parms hook.
4374 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4375 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4376 macros and use them to initialize lang_hook.
4377
4378 2009-09-22 Richard Henderson <rth@redhat.com>
4379
4380 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4381 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4382 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4383 on TRAMPOLINE_TEMPLATE.
4384 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4385 TRAMPOLINE_ADJUST_ADDRESS.
4386 * targhooks.c (default_asm_trampoline_template): Remove.
4387 (default_trampoline_adjust_address): Remove.
4388 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4389 * targhooks.h: Update decls.
4390
4391 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4392
4393 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4394 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4395 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4396
4397 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
4398
4399 PR debug/41295
4400 * reload1.c (reload): Reset debug insns with pseudos without
4401 equivalences.
4402
4403 2009-09-22 Janis Johnson <janis187@us.ibm.com>
4404
4405 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4406 unconditional true for decimal float modes.
4407 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4408 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4409
4410 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
4411
4412 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4413 Enable a new case for __FreeBSD__ >= 7.
4414 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4415 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4416 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4417 and USE_LD_AS_NEEDED.
4418
4419 * doc/install.texi (*-*-freebsd*): Update target information.
4420
4421 2009-09-22 Richard Guenther <rguenther@suse.de>
4422
4423 PR middle-end/41395
4424 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4425 arrays really properly.
4426
4427 2009-09-22 Richard Henderson <rth@redhat.com>
4428
4429 PR target/41246
4430 * target.h (struct gcc_target): Add asm_out.trampoline_template,
4431 calls.static_chain, calls.trampoline_init,
4432 calls.trampoline_adjust_address.
4433 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4434 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4435 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4436 * builtins.c (expand_builtin_setjmp_receiver): Use
4437 targetm.calls.static_chain; only clobber registers.
4438 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4439 set up memory attributes properly for the trampoline block.
4440 (expand_builtin_adjust_trampoline): Use
4441 targetm.calls.trampoline_adjust_address.
4442 * calls.c (prepare_call_address): Add fndecl argument. Use
4443 targetm.calls.static_chain.
4444 * df-scan.c (df_need_static_chain_reg): Remove.
4445 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4446 consolodate static chain handling.
4447 * doc/tm.texi: Document new hooks.
4448 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4449 (init_emit_regs): Don't initialize them.
4450 * expr.h (prepare_call_address): Update decl.
4451 * final.c (profile_function): Use targetm.calls.static_chain.
4452 * function.c (expand_function_start): Likewise.
4453 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4454 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4455 only clobber registers.
4456 * targhooks.c (default_static_chain): New.
4457 (default_asm_trampoline_template, default_trampoline_init): New.
4458 (default_trampoline_adjust_address): New.
4459 * targhooks.h: Declare them.
4460 * varasm.c (assemble_trampoline_template): Use
4461 targetm.asm_out.trampoline_template. Make the memory block const
4462 and set its size.
4463
4464 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4465 alpha_initialize_trampoline. Make static. Merge VMS parameter
4466 differences into the TARGET_ABI_OPEN_VMS code block.
4467 (TARGET_TRAMPOLINE_INIT): New.
4468 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4469 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4470 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4471 (INITIALIZE_TRAMPOLINE): Remove.
4472
4473 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4474 (TRAMPOLINE_TEMPLATE): Merge with ...
4475 (INITIALIZE_TRAMPOLINE): ... this and move ...
4476 * config/arc/arc.c (arc_trampoline_init): ... here.
4477 (TARGET_TRAMPOLINE_INIT): New.
4478
4479 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4480 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4481 (arm_asm_trampoline_template): New.
4482 (arm_trampoline_init, arm_trampoline_adjust_address): New.
4483 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4484 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4485 code to arm_asm_trampoline_template.
4486 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4487 arm_trampoline_adjust_address.
4488 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4489 adjust for target hook parameters.
4490
4491 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4492 Remove.
4493
4494 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4495 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4496 (bfin_trampoline_init): Rename from initialize_trampoline;
4497 make static; update for target hook parameters.
4498 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4499 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4500 bfin_asm_trampoline_template.
4501 (INITIALIZE_TRAMPOLINE): Remove.
4502
4503 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4504 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4505 cris_trampoline_init): New.
4506 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4507 cris_asm_trampoline_template.
4508 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4509 adjust for target hook parameters.
4510
4511 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4512
4513 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4514 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4515 fr30_trampoline_init): New.
4516 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4517 fr30_asm_trampoline_template.
4518 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4519 adjust for target hook parameters.
4520
4521 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4522 (frv_trampoline_init): Rename from frv_initialize_trampoline;
4523 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4524 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4525 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4526
4527 * config/h8300/h8300.c (h8300_trampoline_init): New.
4528 (TARGET_TRAMPOLINE_INIT): New.
4529 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4530 to h8300_trampoline_init and adjust for hook parameters.
4531
4532 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4533 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4534 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4535 make static; adjust for hook parameters.
4536 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4537
4538 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4539 (TARGET_TRAMPOLINE_INIT): New.
4540 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4541 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4542 iq2000_asm_trampoline_template.
4543 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4544 (TRAMPOLINE_CODE_SIZE): New.
4545 (TRAMPOLINE_SIZE): Use it.
4546 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4547
4548 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4549 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4550 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4551 adjust for hook parameters.
4552 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4553
4554 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4555 (m32r_trampoline_init): New.
4556 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4557 m32r_trampoline_init.
4558
4559 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4560 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4561 make static; update for hook parameters.
4562 * config/m68hc11/m68hc11-protos.h: Update.
4563 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4564
4565 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4566 (TARGET_TRAMPOLINE_INIT): New.
4567 (mcore_function_value): Fix typo.
4568 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
4569 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
4570 to mcore_asm_trampoline_template.
4571 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
4572
4573 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
4574 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
4575 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
4576 update for hook parameters.
4577 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
4578
4579 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4580 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4581 mips_trampoline_init): New.
4582 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
4583 mips_asm_trampoline_template.
4584 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
4585 update for hook parameters.
4586
4587 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4588 (TARGET_TRAMPOLINE_INIT): New.
4589 (mmix_trampoline_size): Remove.
4590 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
4591 make static. Remove out-of-date tetra vs octa comment.
4592 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
4593 make static; update for hook parameters.
4594 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
4595 (INITIALIZE_TRAMPOLINE): Remove.
4596 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
4597 (TRAMPOLINE_ALIGNMENT): New.
4598 * gcc/config/mmix/mmix-protos.h: Update.
4599
4600 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4601 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4602 mn10300_trampoline_init): New.
4603 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
4604 mn10300_asm_trampoline_template.
4605 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
4606
4607 * config/moxie/moxie.c (moxie_static_chain,
4608 moxie_asm_trampoline_template, moxie_trampoline_init,
4609 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
4610 TARGET_TRAMPOLINE_INIT): New.
4611 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
4612 moxie_trampoline_init.
4613 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
4614 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4615
4616 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4617 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4618 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
4619 pa_trampoline_adjust_address): New.
4620 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
4621 pa_asm_trampoline_template.
4622 (TRAMPOLINE_ALIGNMENT): New.
4623 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
4624 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
4625 adjust for hook parameters.
4626 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
4627
4628 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
4629 (TARGET_TRAMPOLINE_INIT): New.
4630 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
4631 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
4632
4633 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
4634
4635 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
4636 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
4637 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
4638 make static; adjust parameters for the hook.
4639 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
4640
4641 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
4642 s390_trampoline_template; make static.
4643 (s390_trampoline_init): Rename from s390_initialize_trampoline;
4644 make static; adjust for target hook.
4645 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4646 * config/s390/s390-protos.h: Remove trampoline decls.
4647 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
4648 (TRAMPOLINE_TEMPLATE): Remove.
4649 (TRAMPOLINE_ALIGNMENT): New.
4650
4651 * config/score/score-protos.h (score_initialize_trampoline): Remove.
4652 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4653 (TARGET_TRAMPOLINE_INIT): New.
4654 (score_asm_trampoline_template): New.
4655 (score_trampoline_init): Rename from score_initialize_trampoline;
4656 make static; adjust for hook parameters.
4657 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
4658 score[37]_asm_trampoline_template.
4659 (INITIALIZE_TRAMPOLINE): Remove.
4660 * config/score/score3.c (score3_asm_trampoline_template): New.
4661 (score3_trampoline_init): Rename from score3_initialize_trampoline;
4662 adjust for target hook.
4663 * config/score/score7.c (score7_asm_trampoline_template): New.
4664 (score7_trampoline_init): Rename from score7_initialize_trampoline;
4665 adjust for target hook.
4666 * config/score/score3.h, config/score/score7.h: Update.
4667
4668 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
4669 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
4670 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4671 (sh_trampoline_init): Rename from sh_initialize_trampoline;
4672 make static; adjust for target hook parameters.
4673 (sh_trampoline_adjust_address): New.
4674 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
4675 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
4676
4677 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
4678 (sparc32_initialize_trampoline): Rename from
4679 sparc_initialize_trampoline; make static; replace tramp parameter
4680 with m_tramp and update memory accesses.
4681 (sparc64_initialize_trampoline): Similarly.
4682 (sparc_trampoline_init): New.
4683 * config/sparc/sparc-protos.h: Remove trampoline decls.
4684 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
4685 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
4686
4687 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
4688 (array_to_constant): Make ARR parameter const.
4689 (spu_trampoline_init): Rename from spu_initialize_trampoline;
4690 make static; update for hook parameters.
4691 * config/spu/spu-protos.h: Update decls.
4692 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
4693
4694 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
4695 from xstormy16_initialize_trampoline; make static; update for
4696 hook parameters.
4697 (TARGET_TRAMPOLINE_INIT): New.
4698 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
4699
4700 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4701 (TARGET_TRAMPOLINE_INIT): New.
4702 (v850_can_eliminate): Make static.
4703 (v850_asm_trampoline_template, v850_trampoline_init): New.
4704 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
4705 v850_asm_trampoline_template.
4706 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
4707 and adjust for target hook parameters.
4708
4709 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4710 (TARGET_TRAMPOLINE_INIT): New.
4711 (vax_asm_trampoline_template, vax_trampoline_init): New.
4712 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
4713 vax_asm_trampoline_template.
4714 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
4715
4716 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4717 (TARGET_TRAMPOLINE_INIT): New.
4718 (xtensa_asm_trampoline_template): Rename from
4719 xtensa_trampoline_template; make static.
4720 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
4721 make static; update for hook parameters.
4722 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
4723 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
4724 (INITIALIZE_TRAMPOLINE): Remove.
4725
4726 * config/i386/i386.c (ix86_function_regparm): Do not issue an
4727 error for nested functions with regparm=3.
4728 (ix86_compute_frame_layout): Adjust frame pointer offset for
4729 ix86_static_chain_on_stack.
4730 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
4731 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
4732 don't reset to UNITS_PER_WORD.
4733 (ix86_emit_leave): Adjust ix86_cfa_state.
4734 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
4735 (ix86_static_chain): New.
4736 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
4737 make static; update for target hook parameters; use ix86_static_chain.
4738 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4739 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
4740 (INITIALIZE_TRAMPOLINE): Remove.
4741 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
4742 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
4743 to the end. Add static_chain_on_stack.
4744 (ix86_static_chain_on_stack): New.
4745
4746 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
4747 (m68k_output_mi_thunk): Don't use static_chain_rtx.
4748 (m68k_trampoline_init): New.
4749 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
4750 m68k_trampoline_init and adjust for hook parameters.
4751 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
4752 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
4753
4754 2009-09-22 Jakub Jelinek <jakub@redhat.com>
4755
4756 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
4757 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
4758
4759 * reload1.c (reload): Call wrap_constant when substituting
4760 reg for equiv inside of DEBUG_INSNs.
4761
4762 PR bootstrap/41405
4763 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
4764 add_call_src_coords_attributes, add_high_low_attributes,
4765 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
4766 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
4767 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
4768 when -gdwarf-2 -gstrict-dwarf.
4769 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
4770 -gdwarf-[23] -gstrict-dwarf.
4771 (address_of_int_loc_descriptor, loc_descriptor,
4772 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
4773 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
4774 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
4775
4776 2009-09-22 Richard Guenther <rguenther@suse.de>
4777
4778 PR tree-optimization/41428
4779 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
4780 (ccp_finalize): Pass it to substitute_and_fold.
4781
4782 2009-09-22 Richard Guenther <rguenther@suse.de>
4783
4784 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
4785 (substitute_and_fold): Adjust prototype.
4786 * tree-vrp.c (vrp_evaluate_conditional): Make static.
4787 (simplify_stmt_using_ranges): Likewise.
4788 (fold_predicate_in): Move here from tree-ssa-propagate.c.
4789 (vrp_fold_stmt): New function.
4790 (vrp_finalize): Pass it to substitute_and_fold.
4791 * tree-flow.h (vrp_evaluate_conditional): Remove.
4792 (simplify_stmt_using_ranges): Likewise.
4793 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
4794 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4795 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
4796 member.
4797 (fold_predicate_in): Move to tree-vrp.c.
4798 (substitute_and_fold): Use the callback instead of calling into
4799 tree-vrp.c functions directly.
4800
4801 2009-09-22 Jakub Jelinek <jakub@redhat.com>
4802
4803 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
4804 comparison warning on rs6000.
4805
4806 PR middle-end/41429
4807 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
4808 GIMPLE_EH_MUST_NOT_THROW cleanup.
4809 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4810
4811 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
4812
4813 PR middle-end/41260
4814 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
4815 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
4816 LIB_SPEC for darwin10 and later since it always uses the unwinder in
4817 libSystem which is derived from the gcc 4.2.1 unwinder.
4818
4819 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4820
4821 PR middle-end/41357
4822 * varasm.c (default_encode_section_info): Copy TLS model into
4823 sym_ref flags regardless of backend support for TLS, for all
4824 model types except TLS_MODEL_EMULATED.
4825
4826 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
4827
4828 PR bootstrap/41404
4829 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
4830 we can handle it correctly.
4831
4832 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
4833
4834 * doc/install.texi (os2): Remove section.
4835
4836 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
4837
4838 * doc/standards.texi (Objective-C): Adjust two URLs.
4839
4840 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
4841
4842 * tree-tailcall.c (process_assignment): Don't check if a
4843 multiplication or an addition are already present.
4844 (find_tail_calls): Combine multiple additions and multiplications.
4845 (adjust_accumulator_values): Emit accumulators.
4846
4847 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
4848
4849 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
4850 xmm register restore.
4851
4852 2009-09-21 Jan Hubicka <jh@suse.cz>
4853
4854 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
4855 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
4856 restore at the end.
4857
4858 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
4859
4860 * stor-layout.c (layout_type): Remove obsolete code.
4861
4862 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
4863
4864 PR middle-end/41395
4865 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
4866
4867 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4868
4869 PR middle-end/30789
4870 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
4871 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
4872 (fold_builtin_2, do_mpc_arg1): Update accordingly.
4873 * fold-const.c (const_binop): Likewise.
4874 * real.h (do_mpc_arg2): Update prototype.
4875
4876 2009-09-20 Jan Hubicka <jh@suse.cz>
4877
4878 * dwarf2out.c (add_const_value_attribute): Return true if successful.
4879 (add_location_or_const_value_attribute): Rewrite using
4880 loc_list_from_tree.
4881 (tree_add_const_value_attribute): Return true if successful.
4882 (tree_add_const_value_attribute_for_decl): Likewise.
4883
4884 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
4885 (loc_descriptor): ... here;
4886 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4887 (cst_pool_loc_descr): Break out from ...; do not reffer constant
4888 pool items that was not marked for output.
4889 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
4890 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4891 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4892 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
4893 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
4894 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
4895 DW_OP_stack_value to get address of items that are not available
4896 as addresses.
4897 (dw_loc_list): Handle single element lists correctly.
4898
4899 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
4900 Pascal Obry <obry@adacore.com>
4901
4902 * unwind-dw2-fde.c (classify_object_over_fdes):
4903 Cast the constant 1 to _Unwind_Ptr.
4904 (add_fdes): Likewise.
4905 (linear_search_fdes): Likewise.
4906
4907 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
4908
4909 * stor-layout.c (set_sizetype): Avoid useless type copy.
4910
4911 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
4912
4913 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
4914 feature check.
4915 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
4916 * configure, config.in: Regenerate.
4917 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
4918 DW_EH_PE_absptr.
4919 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
4920 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
4921 for global data if the output could be used in a shared library.
4922 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
4923 to 0 if TARGET_WRITABLE_EH_FRAME.
4924
4925 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
4926
4927 PR rtl-optimization/39886
4928 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
4929 just when insn is equal to BB_END (bb).
4930
4931 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
4932
4933 * config/mips/mips.opt (mrelax-pic-calls): New option.
4934 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
4935 the file.
4936 (mips_unspec_call): Change "unspec_call" expander into this.
4937 (mips_strip_unspec_call): New function.
4938 (mips_got_load): Call mips_unspec_call instead of
4939 gen_unspec_call<mode>.
4940 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
4941 MIPS_CALL.
4942 (mips_cfg_in_reorg): New function.
4943 (mips16_lay_out_constants): Use it to decide whether to call
4944 CFG-aware insn splitting.
4945 (r10k_insert_cache_barriers): Move CFG set-up code from here to
4946 mips_reorg. Move DF set-up code from here ...
4947 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
4948 from here.
4949 (mips_reorg): Call mips_df_reorg instead of
4950 r10k_insert_cache_barriers. Move CFG set-up code here from
4951 r10k_insert_cache_barriers.
4952 (mips_call_expr_from_insn): New function.
4953 (mips_pic_call_symbol_from_set): Likewise.
4954 (mips_find_pic_call_symbol): Likewise.
4955 (mips_annotate_pic_call_expr): Likewise.
4956 (mips_get_pic_call_symbol): Likewise.
4957 (mips_annotate_pic_calls): Likewise.
4958 (mips_override_options): Disable -mrelax-pic-calls unless PIC
4959 calls are used.
4960 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
4961 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
4962 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
4963 directive.
4964 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
4965 (unspec_call<mode>): Remove it.
4966 (sibcall_internal, sibcall_value_internal,
4967 sibcall_value_multiple_internal, call_internal, call_split,
4968 call_value_internal, call_value_split,
4969 call_value_multiple_internal, call_value_multiple_split): Pass
4970 SIZE_OPNO to MIPS_CALL.
4971 (call_internal_direct, call_direct_split,
4972 call_value_internal_direct, call_value_direct_split): Pass -1 as
4973 SIZE_OPNO to MIPS_CALL.
4974 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
4975 * configure: Regenerate.
4976 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
4977 and -mno-relax-pic-calls.
4978 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
4979
4980 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4981
4982 PR bootstrap/35619
4983 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
4984 in the directory this rule is called from, rather than the
4985 toplevel 'gcc' directory, to fix in-tree build.
4986
4987 2009-09-19 Chris Demetriou <cgd@google.com>
4988
4989 PR preprocessor/28435:
4990 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
4991 to cpplib that the preprocessor output is needed.
4992
4993 2009-09-19 Jakub Jelinek <jakub@redhat.com>
4994
4995 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
4996 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
4997 *return_and_restore_fpregs_<mode>,
4998 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
4999
5000 PR bootstrap/41397
5001 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
5002 instead of assuming it has always a REG inside of it.
5003
5004 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
5005
5006 * config/freebsd.h: Update comment on types.
5007 (WINT_TYPE): Define.
5008
5009 2009-09-18 Jason Merrill <jason@redhat.com>
5010
5011 * c.opt: Add -fno-deduce-init-list.
5012
5013 2009-09-18 Neil Vachharajani <nvachhar@google.com>
5014
5015 * value-prof.c (interesting_stringop_to_profile_p): Added output
5016 argument to indicate which parameter is the size parameter.
5017 * value-prof.c (gimple_stringop_fixed_value): Use
5018 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
5019 * value-prof.c (gimple_stringops_transform): Update call sites to
5020 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
5021
5022 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
5023
5024 PR target/38288
5025 From David Binderman <dcb314@hotmail.com>:
5026 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
5027 local variable f. Remove stale comments.
5028 (ix86_compute_frame_layout): Remove useless local variable total_size.
5029 Remove #if 0'd code.
5030 (legitimate_address_p): Remove useless local variables
5031 reason_rtx and reason.
5032 (ix86_split_copysign_const): Remove useless local variable op1.
5033 (scale_counter): Remove useless local variable piece_size_mask.
5034
5035 2009-09-18 Jakub Jelinek <jakub@redhat.com>
5036
5037 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
5038 output decl.
5039
5040 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5041
5042 PR target/40913
5043 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
5044
5045 2009-09-17 Jakub Jelinek <jakub@redhat.com>
5046
5047 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
5048 TYPE_STUB_DECL.
5049
5050 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
5051
5052 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
5053 DW_OP_implicit_value even without dwarf_version 4.
5054
5055 2009-09-17 Jan Hubicka <jh@suse.cz>
5056
5057 * dwarf2out.c: Include tree-pass.h and gimple.h.
5058 (loc_list_plus_const): New function.
5059 (loc_descriptor_from_tree_1): Rename to ...
5060 (loc_descriptor_from_tree): ... remove original.
5061 (loc_list_from_tree): New function.
5062 (add_AT_location_description): Accept location list.
5063 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
5064 (concatn_mem_loc_descriptor): Remove.
5065 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
5066 returning NULL.
5067 (secname_for_decl): Move up.
5068 (hidden_reference_p): New function; break out from ...
5069 (loc_by_refernece): ... here; move up.
5070 (dw_loc_list): New function.
5071 (single_element_loc_list): New function.
5072 (single_element_loc_list_p): New function.
5073 (add_loc_descr_to_each): New function.
5074 (add_loc_list): New function.
5075 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
5076 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
5077 add diagnostics why expansion failed.
5078 (add_location_or_const_value_attribute): Support location lists.
5079 (add_bound_info): Likewise.
5080 (descr_info_loc): Update call of loc_descriptor_from_tree.
5081 (gen_variable_die): Work on location lists.
5082 * final.c (pass_final): Add dump file.
5083 * Makefile.in (dwarf2out.o): Add new dependencies.
5084
5085 2009-09-17 Janis Johnson <janis187@us.ibm.com>
5086
5087 PR c/41049
5088 * real.c decimal_from_integer, decimal_integer_string): New.
5089 (real_from_integer): Use them as special case for decimal float.
5090 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
5091 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
5092 Do not append zero after the decimal point in string to convert.
5093
5094 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
5095
5096 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
5097 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
5098
5099 2009-09-17 Martin Jambor <mjambor@suse.cz>
5100
5101 * common.opt (fipa-sra): New switch.
5102 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
5103 * timevar.def (TV_IPA_SRA): New timevar.
5104 * params.def (ipa-sra-ptr-growth-factor): New parameter.
5105 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
5106 * tree-sra.c: Include cgraph.c.
5107 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
5108 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
5109 and grp_not_necessarilly_dereferenced.
5110 (func_param_count): New variable.
5111 (encountered_apply_args): New variable.
5112 (bb_dereferences): New variable.
5113 (final_bbs): New variable.
5114 (no_accesses_representant): New variable.
5115 (no_accesses_p): New function.
5116 (dump_access): Dump the new fields.
5117 (sra_initialize): Set encountered_apply_args to false.
5118 (get_ssa_base_param): New function.
5119 (mark_parm_dereference): New function.
5120 (create_access): Caring for INIDRECT_REFs and different handling of
5121 varialble length accesses in early IPA SRA. Store the stmt - a new
5122 parameter - to the new access.
5123 (build_access_from_expr_1): New parameter stmt, passed to
5124 create_access. Handle INDIRECT_REFs.
5125 (build_access_from_expr): Pass the current statement to
5126 build_access_from_expr_1.
5127 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5128 passes.
5129 (build_accesses_from_assign): Pass the current statement to
5130 build_access_from_expr_1. Do not create assign links in IPA-SRA.
5131 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
5132 final_bbs when necessary. Check for calls to __builtin_apply_args.
5133 Fixup EH info if anythng was changed.
5134 (is_unused_scalar_param): New function.
5135 (ptr_parm_has_direct_uses): New function.
5136 (find_param_candidates): New function.
5137 (mark_maybe_modified): New function.
5138 (analyze_modified_params): New function.
5139 (propagate_dereference_distances): New function.
5140 (dump_dereferences_table): New function.
5141 (analyze_caller_dereference_legality): New function.
5142 (unmodified_by_ref_scalar_representative): New function.
5143 (splice_param_accesses): New function.
5144 (decide_one_param_reduction): New function.
5145 (enum ipa_splicing_result): New type.
5146 (splice_all_param_accesses): New function.
5147 (get_param_index): New function.
5148 (turn_representatives_into_adjustments): New function.
5149 (analyze_all_param_acesses): New function.
5150 (get_replaced_param_substitute): New function.
5151 (get_adjustment_for_base): New function.
5152 (replace_removed_params_ssa_names): New function.
5153 (sra_ipa_reset_debug_stmts): New function.
5154 (sra_ipa_modify_expr): New function.
5155 (sra_ipa_modify_assign): New function.
5156 (convert_callers): New function.
5157 (modify_function): New function.
5158 (ipa_sra_preliminary_function_checks): New function.
5159 (ipa_early_sra): New function.
5160 (ipa_early_sra_gate): New function.
5161 (pass_early_ipa_sra): New variable.
5162 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
5163
5164 2009-09-17 Michael Matz <matz@suse.de>
5165
5166 PR middle-end/41347
5167 * tree.c (build_type_attribute_qual_variant): Export.
5168 * tree.h (build_type_attribute_qual_variant): Declare.
5169 * tree-inline.c (remap_type_1): Use it to build variants with
5170 the original qualifiers and attributes.
5171
5172 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5173
5174 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5175 without a fallthrough edge.
5176
5177 2009-09-16 DJ Delorie <dj@redhat.com>
5178
5179 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5180 chip and ignore the "fast_interrupt" attribute if so.
5181
5182 2009-09-16 Richard Henderson <rth@redhat.com>
5183
5184 PR middle-end/41360
5185 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5186 barrier fix.
5187
5188 2009-09-16 Richard Henderson <rth@redhat.com>
5189
5190 PR target/41246
5191 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5192 is set only if DECL_NO_STATIC_CHAIN is unset.
5193 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5194 (FOR_EACH_NEST_INFO): New.
5195 (walk_all_functions): Use it.
5196 (finalize_nesting_tree): Likewise.
5197 (unnest_nesting_tree): Likewise.
5198 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5199 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5200 (convert_gimple_call): Early out if gimple_call_chain already set.
5201 (convert_all_function_calls): Iterate until no new functions
5202 require a static chain.
5203 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5204 when building a trampoline. Use dump_function_to_file instead
5205 of dump_function.
5206 (lower_nested_functions): Open dump_file. Validate that decls
5207 that have DECL_NO_STATIC_CHAIN from the front end don't have that
5208 bit reset by this pass.
5209
5210 2009-09-16 Michael Matz <matz@suse.de>
5211
5212 PR fortran/41212
5213 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5214 shorten decl_common_unused.
5215 (DECL_RESTRICTED_P): New accessor.
5216 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5217 to disambiguate marked decls and restrict pointers.
5218
5219 2009-09-16 Richard Henderson <rth@redhat.com>
5220
5221 PR middle-end/41360
5222 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5223
5224 2009-09-16 Jakub Jelinek <jakub@redhat.com>
5225
5226 * integrate.c (set_block_abstract_flags): Call
5227 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5228
5229 2009-09-16 Richard Guenther <rguenther@suse.de>
5230
5231 PR middle-end/34011
5232 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5233 as non-aliased.
5234
5235 2009-09-16 DJ Delorie <dj@redhat.com>
5236 Kaz Kojima <kkojima@gcc.gnu.org>
5237
5238 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5239 (sh_expand_prologue): Update calls to output_stack_adjust.
5240 (sh_expand_epilogue): Likewise.
5241
5242 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
5243
5244 PR bootstrap/41349
5245 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5246 trying to limit the extent of searches in the insn stream.
5247
5248 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
5249 Jakub Jelinek <jakub@redhat.com>
5250
5251 PR target/41175
5252 PR target/40677
5253 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5254 problem.
5255 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5256 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5257 (rs6000_savres_strategy): Always save FP registers inline if the
5258 target doesn't support hardware double-precision. Set the above
5259 bits in return value when needed.
5260 (rs6000_savres_routine_sym): Fix computation for cache selector.
5261 Mark the generated symbol as a function. Rename exitp argument to
5262 lr. Move code for determining the name of the symbol...
5263 (rs6000_savres_routine_name): ...here. New function. Add cases for
5264 getting the names right on AIX and 64-bit Linux.
5265 (savres_routine_name): New variable.
5266 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
5267 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
5268 on what the target routine uses as a base register. If savep && lr
5269 describe saving of r0 into memory slot.
5270 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
5271 line calls for AIX ABI.
5272 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5273 determine FP save/restore functions.
5274 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5275 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
5276 gen_addsi3.
5277 (rs6000_emit_epilogue): Adjust computation of restore_lr.
5278 Duplicate restoration of LR and execute the appropriate one
5279 depending on whether GPRs are being restored inline. Set r11 from
5280 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5281 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
5282 Fix out of line calls for AIX ABI.
5283 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5284 New insn.
5285 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5286 register 11.
5287 (*restore_gpregs_spe): Likewise.
5288 (*return_and_restore_gpregs_spe): Likewise.
5289 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5290 Define to empty string unconditionally.
5291 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5292 Define to empty string unconditionally.
5293 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5294 !TARGET_64BIT.
5295
5296 2009-09-15 Jan Hubicka <jh@suse.cz>
5297
5298 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5299 * params.def (inline-insns-auto): Likewise.
5300
5301 2009-09-15 Martin Jambor <mjambor@suse.cz>
5302
5303 * ipa-inline.c (estimate_function_body_sizes): Dump info about
5304 individual statements only at TDF_DETAILS dump level. Format
5305 source for 80 characters per line.
5306
5307 2009-09-15 Christian Bruel <christian.bruel@st.com>
5308
5309 * regrename.c (do_replace): Update REG_DEAD notes.
5310
5311 2009-09-15 Revital Eres <eres@il.ibm.com>
5312
5313 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5314 * targhooks.c (default_builtin_support_vector_misalignment):
5315 New builtin function.
5316 * targhooks.h (default_builtin_support_vector_misalignment):
5317 Declare.
5318 * target.h (builtin_support_vector_misalignment):
5319 New field in struct gcc_target.
5320 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
5321 new builtin function.
5322 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
5323 Define.
5324 * config/rs6000/rs6000.c
5325 (rs6000_builtin_support_vector_misalignment): New function.
5326 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
5327
5328 2009-09-15 Jie Zhang <jie.zhang@analog.com>
5329
5330 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
5331 instead of INSN_P.
5332 (bfin_optimize_loop): Likewise.
5333 (bfin_gen_bundles): Likewise.
5334 (workaround_speculation): Likewise.
5335 (find_load): Return NULL_RTX for debug_insn.
5336
5337 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
5338
5339 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
5340 (sminsf3): Ditto.
5341
5342 2009-09-14 DJ Delorie <dj@redhat.com>
5343
5344 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
5345 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5346 VLIW mode.
5347
5348 2009-09-14 Richard Henderson <rth@redhat.com>
5349 Jakub Jelinek <jakub@redhat.com>
5350
5351 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5352 * cfgbuild.c (make_edges): Handle asm goto.
5353 * cfglayout.c (fixup_reorder_chain): Likewise.
5354 * cfgrtl.c (patch_jump_insn): Likewise.
5355 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5356 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5357 (gimple_build_asm_vec): Add and use labels parameter.
5358 (gimple_build_asm): Remove.
5359 (walk_gimple_asm): Walk labels too.
5360 * gimple.def (GIMPLE_ASM): Update docs.
5361 * gimple.h: Update decls.
5362 (struct gimple_statement_asm): Change nc to use unsigned char;
5363 add nl member.
5364 (gimple_asm_nlabels): New.
5365 (gimple_asm_label_op, gimple_asm_set_label_op): New.
5366 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5367 into gimple_build_asm_vec.
5368 * jump.c (mark_jump_label_asm): New.
5369 (mark_jump_label): Use it.
5370 (redirect_jump_1): Handle asm goto.
5371 (invert_jump_1): Soft fail if X is null.
5372 * recog.c (extract_asm_operands): New.
5373 (asm_noperands): Use it; handle asm labels.
5374 (decode_asm_operands): Use extract_asm_operands.
5375 (asm_operand_ok): Properly handle empty string.
5376 * reg-stack.c (get_asm_operands_in_out): Rename from
5377 get_asm_operand_n_inputs; use extract_asm_operands; return both
5378 inputs and outputs by reference; update all callers.
5379 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5380 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5381 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5382 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5383 (extract_asm_operands): Declare.
5384 * stmt.c (expand_asm_operands): Add and use labels parameter.
5385 (check_unique_operand_names): Likewise.
5386 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5387 (expand_asm_stmt): Handle asm labels.
5388 * tree-cfg.c (make_gimple_asm_edges): New.
5389 (make_edges): Use it.
5390 (cleanup_dead_labels): Handle asm labels.
5391 (is_ctrl_altering_stmt): Likewise.
5392 (gimple_redirect_edge_and_branch): Likewise.
5393 * tree.def (ASM_EXPR): Add 5th operand.
5394 * tree.h (ASM_LABELS): New.
5395 (resolve_asm_operand_names): Update decl.
5396
5397 * c-parser.c (c_parser_asm_statement): Parse asm goto.
5398 (c_parser_asm_goto_operands): New.
5399 * c-tree.h (build_asm_expr): Update decl.
5400 * c-typeck.c (build_asm_expr): Add and use labels parameter.
5401 * doc/extend.texi: Document asm goto.
5402
5403 2009-09-14 Richard Henderson <rth@redhat.com>
5404
5405 * except.h: Update declarations.
5406 (struct pointer_map_t): Forward declare.
5407 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5408 (struct eh_landing_pad_d, eh_landing_pad): New.
5409 (struct eh_catch_d, eh_catch): New.
5410 (struct eh_region_d): Remove next_region_sharing_label, aka,
5411 label, tree_label, landing_pad, post_landing_pad, resume,
5412 may_contain_throw. Rename region_number to index. Remove
5413 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
5414 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5415 (VEC(eh_landing_pad,gc)): New.
5416 (struct eh_status): Remove last_region_number. Add lp_array,
5417 throw_stmt_table, ttype_data, ehspec_data.
5418 (ehr_next, FOR_ALL_EH_REGION_AT): New.
5419 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5420 * except.c (lang_protect_cleanup_actions): Return tree.
5421 (struct ehl_map_entry): Remove.
5422 (init_eh_for_function): Push zero entries for region and lp_array.
5423 (gen_eh_region): Add to region_array immediately.
5424 (gen_eh_region_catch): Operate on eh_catch objects.
5425 (gen_eh_landing_pad): New.
5426 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5427 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5428 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5429 (get_eh_landing_pad_from_number_fn): New.
5430 (get_eh_landing_pad_from_number): New.
5431 (get_eh_region_from_lp_number_fn): New.
5432 (get_eh_region_from_lp_number): New.
5433 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5434 (get_exception_pointer, get_exception_filter): Remove.
5435 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5436 (current_function_has_exception_handlers): Simplify.
5437 (bring_to_root, eh_region_replaceable_by_p): Remove.
5438 (replace_region, hash_type_list, hash_eh_region): Remove.
5439 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5440 (label_to_region_map, num_eh_regions): Remove.
5441 (get_next_region_sharing_label, must_not_throw_labels): Remove.
5442 (find_exception_handler_labels): Remove.
5443 (duplicate_eh_regions_0, find_prev_try): Remove.
5444 (struct duplicate_eh_regions_data): New.
5445 (duplicate_eh_regions_1): Rewrite.
5446 (duplicate_eh_regions): Return a pointer map instead of an
5447 integer offset.
5448 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5449 (redirect_eh_edge_to_label): Remove.
5450 (eh_region_outermost): Rewrite using eh_region pointers
5451 instead of integers.
5452 (add_ttypes_entry): Update for ttype_data move to eh_status.
5453 (add_ehspec_entry): Rewrite with VEC instead of varray.
5454 (assign_filter_values): Likewise. Export.
5455 (build_post_landing_pads, connect_post_landing_pads): Remove.
5456 (dw2_build_landing_pads): Rewrite to use lp_array.
5457 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5458 (sjlj_assign_call_site_values): Rewrite to use lp_array.
5459 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5460 (sjlj_mark_call_sites): Update for landing pad numbers.
5461 (finish_eh_generation): Rewrite.
5462 (gate_handle_eh): Do nothing for no eh tree.
5463 (pass_rtl_eh): Move up near finish_eh_generation.
5464 (remove_eh_landing_pad): New.
5465 (remove_eh_handler): Export.
5466 (remove_eh_region, remove_eh_handler_and_replace): Remove.
5467 (for_each_eh_label): Rewrite to use lp_array.
5468 (make_reg_eh_region_note): New.
5469 (make_reg_eh_region_note_nothrow_nononlocal): New.
5470 (insn_could_throw_p): New.
5471 (copy_reg_eh_region_note_forward): New.
5472 (copy_reg_eh_region_note_backward): New.
5473 (check_handled, add_reachable_handler): Remove.
5474 (reachable_next_level, foreach_reachable_handler): Remove.
5475 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5476 (get_eh_region_and_lp_from_rtx): New.
5477 (get_eh_region_from_rtx): New.
5478 (can_throw_internal_1, can_throw_external_1): Remove.
5479 (can_throw_internal): Use get_eh_region_from_rtx.
5480 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5481 (insn_nothrow_p, can_nonlocal_goto): New.
5482 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5483 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5484 (add_action_record): Use VEC not varray.
5485 (collect_one_action_chain): Update for eh_region changes.
5486 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
5487 Use get_eh_region_and_lp_from_rtx.
5488 (gate_convert_to_eh_region_ranges): New.
5489 (pass_convert_to_eh_region_ranges): Use it.
5490 (push_uleb128, push_sleb128): Use VEC not varray.
5491 (output_one_function_exception_table): Likewise.
5492 (dump_eh_tree): Update for eh_region changes.
5493 (verify_eh_tree): Likewise.
5494 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5495 * tree-eh.c: Include target.h.
5496 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5497 Don't disallow GIMPLE_RESX; adjust argument check.
5498 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5499 (record_stmt_eh_region): Update for landing pad numbers;
5500 generate a landing pad if necessary.
5501 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5502 (remove_stmt_from_eh_lp_fn): Similarly.
5503 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5504 Update for lp numbers; don't special case missing throw_stmt_table.
5505 (lookup_expr_eh_lp): Similarly.
5506 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5507 (eh_seq, eh_region_may_contain_throw): New.
5508 (struct leh_state): Add ehp_region.
5509 (struct leh_tf_state): Remove eh_label.
5510 (emit_post_landing_pad): New.
5511 (emit_resx, emit_eh_dispatch): New.
5512 (note_eh_region_may_contain_throw): New.
5513 (frob_into_branch_around): Take eh_region not eh label;
5514 emit eh code into eh_seq.
5515 (honor_protect_cleanup_actions): Early exit for no actions. Don't
5516 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
5517 lower_eh_must_not_throw. Emit code to eh_seq.
5518 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5519 (lower_try_finally_onedest): Likewise.
5520 (lower_try_finally_copy): Likewise.
5521 (lower_try_finally_switch): Likewise.
5522 (lower_try_finally): Initialize ehp_region.
5523 (lower_catch): Update for eh_catch objects.
5524 (lower_eh_filter): Don't handle must_not_throw.
5525 (lower_eh_must_not_throw): New.
5526 (lower_cleanup): Don't set eh_label.
5527 (lower_eh_constructs_2): Resolve eh builtins.
5528 Handle GIMPLE_EH_MUST_NOT_THROW.
5529 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5530 Add eh_seq to the end of the function body.
5531 (make_eh_dispatch_edges): New.
5532 (make_eh_edge): Remove.
5533 (make_eh_edges): Simplify for landing pads.
5534 (redirect_eh_edge_1): New.
5535 (redirect_eh_edge): Use it.
5536 (redirect_eh_dispatch_edge): New.
5537 (stmt_could_throw_p): Use a switch. Allow RESX.
5538 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5539 (stmt_can_throw_internal): Likewise.
5540 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5541 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5542 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5543 (gate_refactor_eh): New.
5544 (pass_refactor_eh): Use it.
5545 (lower_resx, execute_lower_resx, pass_lower_resx): New.
5546 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5547 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5548 (remove_unreachable_handlers): Rename from
5549 tree_remove_unreachable_handlers; rewrite for landing pads;
5550 call remove_eh_handler directly.
5551 (remove_unreachable_handlers_no_lp): New.
5552 (unsplit_eh, unsplit_all_eh): New.
5553 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5554 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5555 (cleanup_empty_eh_unsplit): New.
5556 (cleanup_empty_eh): Rewrite.
5557 (cleanup_all_empty_eh): New.
5558 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
5559 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
5560 (gate_cleanup_eh): New.
5561 (pass_cleanup_eh): Use it.
5562 (verify_eh_edges): Move later in file. Expect one EH edge.
5563 (verify_eh_dispatch_edge): New.
5564
5565 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
5566 (gtype-desc.o): Add TARGET_H.
5567 (tree.o): Use EXCEPT_H, not except.h.
5568 (cfgbuild.o): Add EXPR_H.
5569 (GTFILES): Add vecprim.h.
5570 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
5571 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
5572 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
5573 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
5574 * calls.c (emit_call_1): Use make_reg_eh_region_note.
5575 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
5576 calls to can_throw_internal.
5577 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
5578 (make_edges): Don't handle RESX; use can_nonlocal_goto.
5579 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
5580 (expand_gimple_stmt): Use make_reg_eh_region_note.
5581 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
5582 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
5583 or find_exception_handler_labels.
5584 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
5585 there is exacly one EH edge. Use can_nonlocal_goto and
5586 can_throw_internal.
5587 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
5588 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
5589 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
5590 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
5591 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
5592 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
5593 * dse.c (scan_insn): Use insn_could_throw_p.
5594 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
5595 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
5596 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
5597 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
5598 EXC_PTR_EXPR or FILTER_EXPR.
5599 (tree_expr_nonzero_warnv_p): Likewise.
5600 * function.h: Include vecprim.h, not varray.h
5601 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
5602 move ttype_data and ehspec_data members to struct eh_status; change
5603 action_record_data member to a VEC.
5604 * gcse.c (hash_scan_set): Use can_throw_internal.
5605 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
5606 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
5607 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5608 (block_may_fallthru): Don't handle RESX_EXPR.
5609 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
5610 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
5611 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
5612 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
5613 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
5614 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
5615 (gimple_size): Likewise.
5616 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
5617 (gimple_build_resx): Use gimple_build_with_ops.
5618 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
5619 (is_gimple_val): Likewise.
5620 (is_gimple_stmt): Remove RESX_EXPR.
5621 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
5622 (GIMPLE_RESX): Reorder with other EH constructs.
5623 * gimple.h (struct gimple_statement_eh_mnt): New.
5624 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
5625 (gimple_eh_filter_must_not_throw): Remove.
5626 (gimple_eh_filter_set_must_not_throw): Remove.
5627 (gimple_eh_must_not_throw_fndecl): New.
5628 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
5629 (is_gimple_resx): New.
5630 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
5631 Don't copy EH_FILTER_MUST_NOT_THROW.
5632 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
5633 * ipa-inline.c (estimate_function_body_sizes): Don't try to
5634 handle must_not_throw_labels specially.
5635 * ipa-pure-const.c (check_call): Update debug statement for LP.
5636 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
5637 * ipa-utils.c (get_base_var): Likewise.
5638 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
5639 * lower-subreg.c (move_eh_region_note): Remove.
5640 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
5641 * omp-low.c (new_omp_context): Update for eh_lp_nr.
5642 (create_task_copyfn): Likewise.
5643 (maybe_catch_exception): Use gimple_build_eh_filter.
5644 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
5645 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
5646 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
5647 and pass_lower_resx.
5648 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
5649 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
5650 can_throw_internal, can_nonlocal_goto.
5651 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
5652 copy_reg_eh_region_note_forward.
5653 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
5654 (emit_output_reload_insns): Likewise.
5655 (copy_eh_notes): Remove.
5656 * rtl.def (RESX): Remove.
5657 * rtl.h: Update declarations.
5658 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
5659 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
5660 (update_eh_label): Remove.
5661 (cleanup_dead_labels_eh): New.
5662 (cleanup_deal_labels): Use it instead of update_eh_label.
5663 (gimple_merge_blocks): Update landing pad data structure when
5664 removing a landing pad label.
5665 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
5666 test; handle GIMPLE_EH_MUST_NOT_THROW.
5667 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
5668 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
5669 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
5670 (verify_stmt): Likewise. Verify landing pads.
5671 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
5672 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
5673 (struct move_stmt_d): Add eh_map.
5674 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
5675 (move_stmt_r): Remap eh region numbers in builtin calls,
5676 resx and eh_dispatch.
5677 (move_block_to_fn): Remove eh_offset parameter. Use
5678 maybe_duplicate_eh_stmt_fn.
5679 (find_outermost_region_in_block): Operate on eh_region pointers
5680 instead of region numbers.
5681 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
5682 duplicate_eh_regions.
5683 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
5684 test earlier. Disallow EH landing pads.
5685 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
5686 * tree-flow.h: Update declarations.
5687 (struct tree_ann_common_d): Replace rn with lp_nr.
5688 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
5689 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
5690 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
5691 resx and eh_dispatch.
5692 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
5693 (copy_edges_for_bb): Use make_eh_dispatch_edges.
5694 (copy_cfg_body): Expect eh_map instead of eh_region_offset
5695 from duplicate_eh_regions.
5696 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
5697 update RESX; handle EH_DISPATCH.
5698 (expand_call_inline): Set eh_lp_nr, not eh_region.
5699 (maybe_inline_call_in_expr): Likewise.
5700 * tree-inline.h (struct copy_body_data): Replace eh_region with
5701 eh_lp_nr, eh_region_offset with eh_map.
5702 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
5703 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
5704 * tree-pretty-print.c (dump_generic_node): Don't handle
5705 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
5706 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
5707 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
5708 EXC_PTR_EXPR, FILTER_EXPR.
5709 * tree-ssa-operands.c (get_expr_operands): Likewise.
5710 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
5711 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5712 (ao_ref_init_from_vn_reference): Likewise.
5713 * tree-ssa-sink.c (statement_sink_location): Likewise.
5714 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5715 (mark_virtual_phi_result_for_renaming): Export. Tidy.
5716 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
5717 EXC_PTR_EXPR, FILTER_EXPR.
5718 (is_exception_related): Remove.
5719 (compute_avail): Don't call it.
5720 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
5721 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
5722 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
5723 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
5724 Build EH builtins.
5725 (build_resx): Remove.
5726 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
5727 * tree.h: Update declarations.
5728 (EH_FILTER_MUST_NOT_THROW): Remove.
5729 (struct tree_label_decl): Add eh_landing_pad_nr.
5730 (EH_LANDING_PAD_NR): New.
5731 * value-prof.c (gimple_ic): Tidy variable names. Update for
5732 landing pad numbers.
5733 (gimple_stringop_fixed_value): Tidy variable names. Assert
5734 that neither call stmt can throw.
5735 * vecprim.h (uchar): New.
5736 (VEC(uchar,heap), VEC(uchar,gc)): New.
5737
5738 * c-common.c (c_define_builtins): Update call to
5739 build_common_builtin_nodes.
5740 * c-parser.c (c_parse_file): Don't call
5741 default_init_unwind_resume_libfunc.
5742
5743 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5744
5745 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
5746 (mips_cprestore_address_p): Likewise.
5747 (mips_save_gp_to_cprestore_slot): Likewise.
5748 (mips_restore_gp): Rename to...
5749 (mips_restore_gp_from_cprestore_slot): ...this.
5750 (mips_must_initialize_gp_p): Declare.
5751 (mips_emit_save_slot_move): Likewise.
5752 (mips_output_load_label): Return nothing.
5753 (mips_eh_uses): Declare.
5754 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
5755 (TARGET_CPRESTORE_DIRECTIVE): New macro.
5756 (TARGET_ABSOLUTE_JUMPS): Likewise.
5757 (EH_USES): Likewise.
5758 (FIRST_PSEUDO_REGISTER): Update comment.
5759 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
5760 (MIPS_CALL): ...here.
5761 (REGISTER_NAMES): Add $cprestore.
5762 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
5763 Add load_label_length, has_inflexible_gp_insn_p,
5764 has_flexible_gp_insn_p, must_initialize_gp_p and
5765 must_restore_gp_when_clobbered_p.
5766 (mips_expand_call): Don't generate split instructions here.
5767 (mips_split_call): Update the call to mips_restore_gp after
5768 the above name change.
5769 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
5770 (mips_find_gp_ref): New function.
5771 (mips_insn_has_inflexible_gp_ref_p): Likewise.
5772 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
5773 (mips_insn_has_flexible_gp_ref_p): Likewise.
5774 (mips_cfun_has_flexible_gp_ref_p): Likewise.
5775 (mips_function_has_gp_insn): Delete.
5776 (mips_global_pointer): Drop the df_regs_ever_live_p check.
5777 Use the new functions above. Only return INVALID_REGNUM
5778 for TARGET_ABSOLUTE_JUMPS.
5779 (mips_must_initialize_gp_p): New function.
5780 (mips_get_cprestore_base_and_offset): New function, extracted from...
5781 (mips_cprestore_slot): ...here. Take a bool parameter.
5782 (mips_cfun_has_cprestore_slot_p): New function.
5783 (mips_cprestore_address_p): Likewise.
5784 (mips_save_gp_to_cprestore_slot): Likewise.
5785 (mips_restore_gp): Rename to...
5786 (mips_restore_gp_from_cprestore_slot): ...this. Assert
5787 epilogue_completed. Update the call to mips_cprestore_slot.
5788 Test cfun->machine->must_restore_gp_when_clobbered_p.
5789 (mips_direct_save_slot_move_p): New function.
5790 (mips_emit_save_slot_move): Likewise.
5791 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
5792 of cfun->machine->global_pointer.
5793 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
5794 (mips_save_reg): Use mips_emit_save_slot_move.
5795 (mips_expand_prologue): Set must_initialize_gp_p.
5796 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
5797 for all cprestore saves. Emit a use_cprestore instruction after
5798 setting up the cprestore slot.
5799 (mips_restore_reg): Use mips_emit_save_slot_move.
5800 (mips_process_load_label): New function.
5801 (mips_load_label_length): Likewise.
5802 (mips_output_load_label): Don't return asm: output it here instead.
5803 Use mips_process_load_label.
5804 (mips_adjust_insn_length): Adjust the length of branch instructions
5805 that have length MAX_PIC_BRANCH_LENGTH.
5806 (mips_output_conditional_branch): Update the call to
5807 mips_output_load_label. Assume the branch target is OPERANDS[0]
5808 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
5809 (mips_output_order_conditional_branch): Swap the meaning of
5810 OPERANDS[0] and OPERANDS[1].
5811 (mips_variable_issue): Don't count ghost instructions.
5812 (mips_expand_ghost_gp_insns): New function.
5813 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
5814 (mips_output_mi_thunk): Set must_initialize_gp_p.
5815 (mips_eh_uses): New function.
5816 * config/mips/predicates.md (cprestore_save_slot_operand)
5817 (cprestore_load_slot_operand): New predicates.
5818 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
5819 (UNSPEC_MOVE_GP): Likewise.
5820 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
5821 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
5822 (CPRESTORE_SLOT_REGNUM): New register.
5823 (MAX_PIC_BRANCH_LENGTH): New constant.
5824 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
5825 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
5826 branches. Fix commentary.
5827 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
5828 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
5829 Change type to "ghost".
5830 (loadgp_absolute_<mode>): Likewise.
5831 (loadgp_rtp_<mode>): Likewise.
5832 (copygp_mips16): Likewise.
5833 (loadgp_blockage): Remove redundant mode attribute.
5834 (potential_cprestore): New instruction.
5835 (cprestore): Turn into an unspec set.
5836 (use_cprestore): New instruction.
5837 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
5838 (*branch_fp_inverted): Likewise.
5839 (*branch_order<mode>): Likewise.
5840 (*branch_order<mode>_inverted): Likewise.
5841 (*branch_equality<mode>): Likewise.
5842 (*branch_equality<mode>_inverted): Likewise.
5843 (*branch_bit<bbv><mode>): Likewise.
5844 (*branch_bit<bbv><mode>_inverted): Likewise.
5845 (*branch_equality<mode>_mips16): Remove redundant mode.
5846 (jump): Turn into a define_expand.
5847 (*jump_absolute): New instruction.
5848 (*jump_pic): Likewise.
5849 (*jump_mips16): Rename previously-unnamed pattern. Remove
5850 redundant mode attribute.
5851 (restore_gp): Split on epilogue_completed rather than
5852 reload_completed. Change type to "ghost".
5853 (move_gp<mode>): New instruction.
5854 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
5855 Remove redundant mode attribute.
5856 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
5857 (bc1any4f, bc1any2t, bc1any2f): Likewise.
5858 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
5859
5860 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5861
5862 PR target/41210
5863 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
5864 are returned in the same register (vs34 or v2) that Altivec vector
5865 types are returned in.
5866 (rs6000_libcall_value): Ditto.
5867
5868 PR target/41331
5869 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
5870 instead of explicit addsi3/adddi3 calls.
5871 (rs6000_split_multireg_move): Ditto.
5872 (rs6000_emit_allocate_stack): Ditto.
5873 (rs6000_emit_prologue): Ditto.
5874 (rs6000_output_mi_thunk): Ditto.
5875
5876 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
5877 size is 64 bits if we can use 64-bit registers.
5878
5879 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
5880
5881 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
5882 symbols.
5883
5884 From Jie Zhang <jie.zhang@analog.com>:
5885 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
5886 save FP and RETS with saveall attribute.
5887 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
5888 with saveall attribute.
5889
5890 * config/bfin/bfin.c (bfin_expand_builtin,
5891 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
5892 operands.
5893
5894 From Jie Zhang <jie.zhang@analog.com>:
5895 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
5896 before use in two places.
5897 * config/bfin/bfin.md (AREG): Define mode iterator.
5898 (reload_in, reload_out): Use mode iterator AREG.
5899
5900 2009-09-14 Richard Guenther <rguenther@suse.de>
5901
5902 PR middle-end/41350
5903 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
5904 EH personality path.
5905
5906 2009-09-13 Richard Guenther <rguenther@suse.de>
5907 Rafael Avila de Espindola <espindola@google.com>
5908
5909 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
5910 (LANG_HOOKS_EH_PERSONALITY): Likewise.
5911 (LANG_HOOKS_INITIALIZER): Adjust.
5912 (lhd_pass_through_t): Declare.
5913 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
5914 eh_personality.
5915 * langhooks.c (lhd_pass_through_t): New function.
5916 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
5917 dwarf2out_begin_prologue): Use personality from current_function_decl.
5918 * expr.h (get_personality_function): Declare.
5919 * expr.c (get_personality_function): New function.
5920 (build_personality_function): Likewise.
5921 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
5922 (eh_personality_libfunc): Remove.
5923 * optabs.c (build_libfunc_function): New function split out from ...
5924 (init_one_libfunc): ... here.
5925 * tree.h (DECL_FUNCTION_PERSONALITY): New.
5926 (tree_function_decl): Add personality.
5927 (lhd_gcc_personality): Declare.
5928 (build_personality_function): Likewise.
5929 * tree.c (gcc_eh_personality_decl): New.
5930 (lhd_gcc_personality): New function.
5931 * except.h (lang_eh_runtime_type): Remove.
5932 (enum eh_personality_kind): New.
5933 (build_personality_function): Declare.
5934 (function_needs_eh_personality): Declare.
5935 * except.c (lang_eh_runtime_type): Remove.
5936 (function_needs_eh_personality): New function.
5937 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
5938 (sjlj_emit_function_enter, output_function_exception_table):
5939 Use personality from current_function_decl.
5940 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
5941 * tree-inline.c (tree_can_inline_p): Do not inline across different
5942 EH personalities.
5943 (expand_call_inline): Likewise. Adjust the callers EH personality.
5944 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
5945 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
5946 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
5947 (c-parser.o): Likewise
5948 * c-tree.h (c_eh_initialized_p): Remove.
5949 (c_maybe_initialize_eh): Likewise.
5950 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
5951 (finish_decl): Don't call c_maybe_initialize_eh.
5952 (c_eh_initialized_p): Remove.
5953 (c_maybe_initialize_eh): Likewise.
5954 * c-parser.c (c_parser_omp_construct): Likewise.
5955 (c_parse_file): Initialize exception handling.
5956
5957 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
5958
5959 * config.gcc (tm_file): Remove i386/biarch32.h
5960 for i?86-w64-mingw* case.
5961 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
5962 support.
5963 * config.host: Set for x64 mingw the option
5964 use_long_long_for_widest_fast_int to yes.
5965
5966 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
5967
5968 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
5969 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
5970 (dbxout_begin_function): Likewise.
5971 * final.c (dwarf2_debug_info_emitted_p): New predicate.
5972 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
5973 set on the function.
5974 (final_end_function): Likewise.
5975 (final_scan_insn): Likewise.
5976 (rest_of_handle_final): Likewise.
5977 * varasm.c (assemble_start_function): Likewise.
5978 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5979
5980 2009-09-12 Jason Merrill <jason@redhat.com>
5981
5982 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
5983 * opts.c (common_handle_option): constify.
5984
5985 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
5986
5987 * doc/install.texi (avr): Remove obsolete reference site.
5988
5989 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
5990
5991 * doc/install.texi (Binaries): Adjust AIX link.
5992
5993 2009-09-12 Akim Demaille <demaille@gostai.com>
5994
5995 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
5996 Use an imperative sentence.
5997
5998 2009-09-11 Richard Henderson <rth@redhat.com>
5999
6000 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
6001 structure-name and has-tree-operands arguments; update all entries.
6002 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
6003 update all entries.
6004 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
6005 (gsstruct_code_size): New.
6006 (gss_for_code_): New.
6007 (gss_for_code): Remove.
6008 (gimple_size): Rewrite using gsstruct_code_size.
6009 (gimple_statement_structure): Move to gimple.h.
6010 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
6011 (gss_for_code, gimple_statement_structure): New.
6012 (gimple_ops): Use new arrays; tidy.
6013
6014 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6015
6016 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
6017 operand to be a PLUS expression.
6018 * config/pa/pa.c (pa_secondary_reload): Likewise.
6019
6020 2009-09-11 Jakub Jelinek <jakub@redhat.com>
6021
6022 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
6023
6024 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
6025 XEXP (in_rtx, 8).
6026
6027 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
6028
6029 From Jie Zhang <jie.zhang@analog.com>:
6030 * doc/extend.texi (node Function Attributes): Document l2
6031 function attribute.
6032 (node Blackfin Variable Attributes): Document l2 variable attributes.
6033
6034 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
6035
6036 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
6037 to match the system compiler's configuration at inflection point.
6038 Add comment to remark a remaining difference with system compiler.
6039
6040 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
6041 * configure: Regenerate.
6042
6043 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
6044
6045 From Jie Zhang <jie.zhang@analog.com>:
6046 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
6047 (bfin_handle_l2_attribute): New.
6048 (bfin_attribute_table): Add l2 attribute.
6049
6050 2009-09-11 Michael Matz <matz@suse.de>
6051
6052 PR middle-end/41275
6053 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
6054 on the local_decls list.
6055
6056 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
6057
6058 PR debug/41276
6059 PR debug/41307
6060 * cselib.c (cselib_expand_value_rtx_cb): Document callback
6061 interface.
6062 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
6063 for VALUEs, to implement the documented interface.
6064 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
6065 Adjust for VALUEs and anything else, to implement the
6066 documented interface.
6067
6068 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
6069
6070 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
6071 with actual SPE/paired vector modes before using 64-bit alignment.
6072 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
6073
6074 2009-09-10 DJ Delorie <dj@redhat.com>
6075
6076 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
6077 emitted.
6078
6079 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
6080 * config/mep/mep.c (mep_legitimate_constant_p): New.
6081 * config/mep/mep-protos.h: Prototype it.
6082
6083 2009-09-10 Richard Henderson <rth@redhat.com>
6084
6085 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
6086
6087 2009-09-10 Jason Merrill <jason@redhat.com>
6088
6089 * tree.c (chain_index): New fn.
6090 * tree.h: Declare it.
6091
6092 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6093
6094 * config/sol2-c.c (cmn_err_length_specs): Initialize
6095 scalar_identity_flag.
6096
6097 2009-09-10 Richard Henderson <rth@redhat.com>
6098
6099 * tree.h (struct tree_decl_common): Move align member earlier;
6100 move label_decl_uid member ...
6101 (struct tree_label_decl): ... here.
6102 (LABEL_DECL_UID): Update to match.
6103
6104 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
6105 not TDF_DETAILS.
6106
6107 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
6108 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
6109
6110 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
6111 dest_prev if the edge is complex.
6112
6113 * tree-cfg.c (is_ctrl_stmt): Use a switch.
6114
6115 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
6116 loop latch tests earlier.
6117
6118 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
6119 before GIMPLE_RETURN, not after its predecessor; insert
6120 before GIMPLE_RESX.
6121
6122 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
6123 gimple_seq_empty_p to test for no PHI nodes.
6124 * tree-cfg.c (split_critical_edges): Likewise.
6125
6126 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6127
6128 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
6129
6130 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6131 introduced by the VTA branch merge.
6132
6133 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
6134
6135 * ira-conflicts.c: Use fputs or putc instead of fprintf
6136 where appropriate.
6137 * cfg.c: Ditto.
6138 * toplev.c: Ditto.
6139 * tree-switch-conversion.c: Ditto.
6140
6141 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
6142
6143 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6144 introduced by the VTA branch merge.
6145
6146 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
6147
6148 Revert:
6149 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
6150
6151 PR rtl-optimization/39779
6152 * expr.c (convert_modes): Return when mode == oldmode after
6153 CONST_INTs are processed.
6154
6155 2009-09-10 Nick Clifton <nickc@redhat.com>
6156
6157 * config/mep/mep.c (mep_encode_section_info): Copy weakness
6158 attribute and referring decl when creating renamed symbol.
6159
6160 2009-09-10 Richard Guenther <rguenther@suse.de>
6161
6162 PR middle-end/41257
6163 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6164 reachable nodes.
6165 (cgraph_finalize_compilation_unit): Compute reachability
6166 before emitting thunks. Properly process aliases before
6167 possibly removing unreachable nodes.
6168
6169 2009-09-10 Richard Guenther <rguenther@suse.de>
6170
6171 PR middle-end/41254
6172 * tree.c (struct free_lang_data_d): Add worklist member.
6173 (find_decls_types_r): Push onto the worklist instead of recursing.
6174 Handle TREE_BINFOs properly.
6175 (find_decls_types): New function wrapped around find_decls_types_r
6176 to process the worklist.
6177 (find_decls_types_in_eh_region): Use it.
6178 (find_decls_types_in_node): Likewise.
6179 (find_decls_types_in_var): Likewise.
6180 (free_lang_data_in_cgraph): Likewise. Free the worklist.
6181 * tree.h (RECORD_OR_UNION_TYPE_P): New.
6182 (AGGREGATE_TYPE_P): Adjust.
6183
6184 2009-09-09 Jason Merrill <jason@redhat.com>
6185
6186 * configure.ac: Check glibc version even if we have an in-tree
6187 assembler.
6188
6189 2009-09-09 Anthony Green <green@moxielogic.com>
6190
6191 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6192 the constant 0 when appropriate.
6193 * config/moxie/constraints.md: Add constraint O.
6194
6195 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6196 to pass up to 6 32-bit argument values in registers.
6197 (moxie_function_arg): Ditto.
6198 (moxie_arg_partial_bytes): Ditto.
6199 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6200 (REG_PARM_STACK_SPACE): Ditto.
6201 (FUNCTION_ARG_REGNO_P): Ditto.
6202
6203 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6204 instruction to allocate stack space.
6205
6206 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
6207
6208 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6209 unnecessarily stringent constraints. Fix address
6210 calculation in the splitters.
6211
6212 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
6213
6214 PR rtl-optimization/39779
6215 * expr.c (convert_modes): Return when mode == oldmode after
6216 CONST_INTs are processed.
6217
6218 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
6219
6220 PR/41315
6221 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
6222 (ix86_expand_prologue): Take frame.padding0 into logic of
6223 to_allocate checks.
6224 (ix86_expand_epilogue): Likewise.
6225
6226 2009-09-09 Jakub Jelinek <jakub@redhat.com>
6227
6228 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6229 New variables.
6230 (SHLIB_LINK, SHLIB_INSTALL): Use them.
6231 * config/t-slibgcc-libgcc: New file.
6232 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6233
6234 2009-09-09 Martin Jambor <mjambor@suse.cz>
6235
6236 PR tree-optimization/41089
6237 * tree-sra.c (find_var_candidates): Do not consider va_lists in
6238 early SRA.
6239
6240 2009-09-09 Richard Henderson <rth@redhat.com>
6241
6242 * gimple.h (CASE_GIMPLE_OMP): New.
6243 (is_gimple_omp): Use it.
6244 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6245 (verify_gimple_debug): Likewise.
6246
6247 2009-09-09 Richard Guenther <rguenther@suse.de>
6248
6249 PR tree-optimization/41101
6250 * tree-ssa-pre.c (maximal_set): Remove.
6251 (compute_antic_aux): Treat the maximal set as implicitly all ones.
6252 Defer all blocks we didn't visit at least one successor.
6253 (add_to_exp_gen): Do not add to the maximal set.
6254 (make_values_for_phi): Likewise.
6255 (compute_avail): Likewise.
6256 (init_pre): Do not allocate the maximal set.
6257 (execute_pre): Do not dump it.
6258
6259 2009-09-09 Martin Jambor <mjambor@suse.cz>
6260
6261 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6262 an SSA_NAME rather than a is_gimple_variable.
6263
6264 2009-09-09 Richard Guenther <rguenther@suse.de>
6265
6266 PR middle-end/41317
6267 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6268 code dealing with plain pointer bases.
6269 (maybe_fold_offset_to_reference): Likewise.
6270 (maybe_fold_stmt_addition): Adjust.
6271
6272 2009-09-09 Richard Guenther <rguenther@suse.de>
6273
6274 * tree.c (free_lang_data_in_type): Do not free the type variant
6275 chains.
6276 (free_lang_data): Merge char_type_node with its properly signed
6277 variant.
6278 (pass_ipa_free): Collect after freeing language specific data.
6279
6280 2009-09-09 Michael Matz <matz@suse.de>
6281
6282 PR middle-end/41268
6283 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6284 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6285 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6286 to reflect reality.
6287
6288 2009-09-08 DJ Delorie <dj@redhat.com>
6289
6290 * config/mep/mep.c (conversions[]): Add "ml" pattern.
6291
6292 2009-09-04 Jason Merrill <jason@redhat.com>
6293
6294 * tree.c (tree_find_value): Remove.
6295 * tree.h: Remove prototype.
6296 * varasm.c (assemble_external): Use value_member instead.
6297
6298 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6299
6300 * toplev.c (process_options): Choose default debugging type when
6301 gtoggle enables debug info and type is unset.
6302
6303 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6304
6305 PR debug/41276
6306 PR debug/41307
6307 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6308 invalid subreg.
6309
6310 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6311
6312 * configure: Rebuilt with modified libtool.m4.
6313
6314 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6315
6316 PR debug/41229
6317 PR debug/41291
6318 PR debug/41300
6319 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
6320
6321 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6322
6323 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
6324 (remove_statement): Likewise.
6325 (rewrite_use_nonlinear_expr): Adjust.
6326 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
6327 * tree-ssa.c (release_defs_bitset): ... this. New.
6328 * tree-flow.h (release_defs_bitset): Declare.
6329
6330 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
6331
6332 PR debug/41232
6333 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
6334 in the middle block.
6335
6336 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
6337
6338 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
6339 via intptr_t to long type.
6340 (insert_operand_rank): Cast long type via intptr_t to
6341 pointer type.
6342 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6343 pointer to scalar.
6344 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6345 from pointer to unsigned via uintptr_t.
6346
6347 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6348 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6349 and HAVE_INTPTR_T.
6350 * configure: Regenerated.
6351 * config.in: Regenerated
6352 * system.h (stdint.h): Add include.
6353 (inttypes.h): Likewise.
6354 * Makefile.in (aclocal): Add config/stdint.m4.
6355 * aclocal.m4: Regenerated.
6356
6357 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
6358
6359 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6360 variables.
6361 (note_np_check_stores): New function.
6362 (harmless_null_pointer_p): New function.
6363 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
6364 changed. Take into account whether we're in the shadow of a condjump
6365 that tested NP_REG for NULL.
6366 Lose all code that tested for SEQUENCEs.
6367 (workaround_speculation): Avoid inserting NOPs for loads that are
6368 either always executed or a NULL pointer.
6369
6370 2009-09-08 Jan Hubicka <jh@suse.cz>
6371
6372 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6373 * params.def (early-inlining-insns): Likewise.
6374
6375 2009-09-08 Jakub Jelinek <jakub@redhat.com>
6376
6377 PR rtl-optimization/41239
6378 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6379 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6380 lists.
6381 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6382 across calls, as the calls might not always return normally.
6383 (call_may_noreturn_p): New function.
6384 (deps_analyze_insn): Update last_function_call_may_noreturn list.
6385 (init_deps): Initialize it.
6386 (remove_from_deps): Also remove calls from
6387 last_function_call_may_noreturn list.
6388
6389 2009-09-07 Richard Henderson <rth@redhat.com>
6390
6391 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6392 more VR->OPERANDS than LHS operands. Free LHS before returning.
6393
6394 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6395
6396 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6397 (attr "addrtype"): New member "spreg".
6398 Use it if mem_spfp_address_operand is true for the address.
6399 (attr "type"): New entry "stall".
6400 (cpu_unit "load"): New.
6401 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6402 "load".
6403 (insn_reservation "loadsp"): New.
6404 (insn_reservation "load_stall1"): New.
6405 (insn_reservation "load_stall3"): New.
6406 (stall): New insn.
6407 * config/bfin/predicates.md (const1_operand, const3_operand): New.
6408 (mem_p_address_operand): Exclude stack and frame pointer based
6409 addresses.
6410 (mem_spfp_address_operand): New; match them here.
6411 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6412 (bfin_reorg): Call it if scheduling insns.
6413 (bfin_gen_bundles): Remove dummy insns created by
6414 add_sched_insns_for_speculation.
6415
6416 From Jie Zhang <jie.zhang@analog.com>:
6417 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6418 bfin_si_revision, bfin_workarounds): Move these ...
6419 * config/bfin/bfin.h: ... here.
6420
6421 From Mike Frysinger <michael.frysinger@analog.com>
6422 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6423 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
6424 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6425 bf547m, bf548m, and bf549m.
6426 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
6427 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6428 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6429 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
6430 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6431 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6432 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6433 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6434 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6435 bf542m, bf544m, bf547m, bf548m, and bf549m.
6436
6437 From Jie Zhang <jie.zhang@analog.com>:
6438 * config/bfin/predicates.md (p_register_operand): New predicate.
6439 (dp_register_operand): New predicate.
6440 * config/bfin/bfin-protos.h (WA_05000074): Define.
6441 (ENABLE_WA_05000074): Define.
6442 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
6443 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6444 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
6445 (define_attr addrtype): Allow load/store register to be P register.
6446 (define_attr storereg): New.
6447 (define_cpu_unit anomaly_05000074): New.
6448 (define_insn_reservation dsp32shiftimm): New.
6449 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6450 (define_insn_reservation loadp): Cannot use slot2.
6451 (define_insn_reservation loadsp): Cannot use slot2.
6452 (define_insn_reservation storep): Cannot use slot2. Does not
6453 apply when working around 05000074.
6454 (define_insn_reservation storep_anomaly_05000074): New.
6455 (define_insn_reservation storei): Does not apply when working
6456 around 05000074.
6457 (define_insn_reservation storei_anomaly_05000074): New.
6458 (define_attr length): Add dsp32shiftimm case.
6459 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6460 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6461 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6462 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6463 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6464
6465 2009-09-07 Martin Jambor <mjambor@suse.cz>
6466
6467 PR middle-end/41282
6468 * tree-sra.c (create_artificial_child_access): Return NULL if
6469 build_ref_for_offset fails.
6470 (propagate_subacesses_accross_link): Allow build_ref_for_offset
6471 and create_artificial_child_access to fail.
6472
6473 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
6474
6475 PR c++/41214
6476 * unwind-dw2.c (uw_init_context_1): Mark noinline.
6477 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6478 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6479
6480 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
6481
6482 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6483 block, ensure it has an exit edge. Emit a barrier after a jump.
6484
6485 2009-09-07 Nick Clifton <nickc@redhat.com>
6486
6487 * gcc.c (this_is_linker_script): New variable. Like
6488 this_is_library_file but for the %T constructor.
6489 (end_going_arg): If this_is_linker_script is set then locate the
6490 script and insert a --script switch before it
6491 (do_spec_2): Initialise this_is_linker_script.
6492 (do_spec_1): Likewise. Handle %T construct.
6493 (eval_spec_function): Preserve this_is_linker_script.
6494 * doc/invoke.texi: Document %T construct in spec files.
6495 * config/m32c/m32c.h (LIB_SPEC): Use it.
6496
6497 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6498
6499 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
6500 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6501 when volatile flag is set.
6502 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6503
6504 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
6505
6506 PR bootstrap/41241
6507 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6508 (combine_stack_adjustments_for_block): Allow insns between stack
6509 adjustments and stores with corresponding pre-(dec|inc)rement or
6510 pre-modify operation.
6511
6512 2009-09-06 Jakub Jelinek <jakub@redhat.com>
6513
6514 PR bootstrap/41241
6515 * combine-stack-adj.c (struct csa_memlist): Rename to...
6516 (struct csa_reflist): ... this. Rename mem field to ref.
6517 (free_csa_memlist): Rename to...
6518 (free_csa_reflist): ... this.
6519 (record_one_stack_memref): Rename to...
6520 (record_one_stack_ref): ... this. Handle also REG_P.
6521 (try_apply_stack_adjustment): Handle also REG_P.
6522 (struct record_stack_memrefs_data): Rename to...
6523 (struct record_stack_refs_data): ... this. Rename memlist field to
6524 reflist.
6525 (record_stack_memrefs): Rename to...
6526 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
6527 subexpressions instead of failing when a MEM contains SP references.
6528 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6529 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6530
6531 2009-09-06 Richard Guenther <rguenther@suse.de>
6532
6533 PR middle-end/41144
6534 * tree.c (build_array_type): Do not record types marked
6535 with structural equality in the canonical type hashtable.
6536
6537 2009-09-06 Richard Guenther <rguenther@suse.de>
6538
6539 PR middle-end/41261
6540 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6541
6542 2009-09-05 Richard Guenther <rguenther@suse.de>
6543
6544 PR middle-end/41181
6545 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6546
6547 2009-09-05 Richard Guenther <rguenther@suse.de>
6548
6549 PR debug/41273
6550 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6551
6552 2009-09-05 Richard Guenther <rguenther@suse.de>
6553
6554 PR middle-end/41271
6555 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6556 before comparing function argument types.
6557
6558 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6559
6560 PR target/41024
6561 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6562 the assembler.
6563
6564 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
6565
6566 Revert:
6567 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
6568
6569 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6570 locators before emit_insn is called.
6571
6572 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
6573
6574 PR bootstrap/41241
6575 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
6576 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
6577 (reginfo_init): Don't call allocate_reg_info.
6578
6579 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
6580
6581 PR target/41262
6582 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
6583 NONDEBUG_INSN_P instead of INSN_P.
6584
6585 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
6586
6587 PR debug/41225
6588 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
6589
6590 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
6591
6592 PR target/41252
6593 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
6594 pattern of the split.
6595
6596 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
6597
6598 * toplev.c (process_options): Move setter of flag_var_tracking
6599 before other tests that depend on it. Move down setter of
6600 flag_rename_registers. Don't enable var-tracking-assignments
6601 by default if selective scheduling is enabled. Warn if both
6602 are enabled.
6603
6604 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
6605
6606 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
6607 comment. Use switch statement to catch overlaps between rtx
6608 and tree codes. Accept FUNCTION_DECLs in addition to those in...
6609 (IS_DECL_CODE): ... here. Remove.
6610 (check_value_is_not_decl): Remove.
6611 (dv_from_decl, dv_from_value): Check after conversion.
6612
6613 2009-09-04 Richard Guenther <rguenther@suse.de>
6614
6615 PR middle-end/41257
6616 * (cgraph_finalize_compilation_unit): Move finalizing aliases
6617 after emitting tunks. Move emitting thunks and ctors from ...
6618 (cgraph_optimize): ... here. Remove redundant
6619 cgraph_analyze_functions.
6620 * varasm.c (find_decl_and_mark_needed): Remove no longer
6621 necessary check.
6622 (finish_aliases_1): Adjust check for thunk aliases.
6623
6624 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
6625
6626 * config/arm/arm.md (ctzsi2): Added braces
6627 to avoid warning that broke booststrap.
6628
6629 2009-09-04 Martin Jambor <mjambor@suse.cz>
6630
6631 PR tree-optimization/41112
6632 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
6633 handle variable-bounded arrays.
6634 (expr_with_var_bounded_array_refs_p): New function.
6635 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
6636
6637 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
6638
6639 * config/s390/2097.md: Removed two incorrect bypasses.
6640 (z10_fsimpdf): Fixed latency.
6641 (z10_fhex): New insn_reservation.
6642 (z10_floaddf): Fixed latency.
6643 (z10_floadsf): Fixed latency.
6644 (z10_ftrunctf): Fixed latency.
6645 (z10_ftruncdf): Fixed latency.
6646 * config/s390/s390.c (z10_cost): Fixed values.
6647 (s390_adjust_priority): Added z10 path.
6648 * config/s390/s390.md (type): Added fhex.
6649 (*mov<mode>_64dfp): Updated type attribute.
6650 (*mov<mode>_64): Updated type attribute.
6651 (*mov<mode>_31): Updated type attribute.
6652 (*mov<mode>"): Likewise.
6653 * config/s390/2084.md (x_fsimpdf): Updated condition.
6654
6655 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
6656
6657 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
6658 RTXs in the predicate for operand 1.
6659
6660 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
6661
6662 * config/arm/arm.md (UNSPEC_RBIT): New constant.
6663 (rbitsi2): New insn.
6664 (ctzsi2): New expand.
6665 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
6666
6667 2009-09-03 Martin Jambor <mjambor@suse.cz>
6668
6669 * tree-sra.c (duplicate_expr_for_different_base): Removed.
6670 (create_artificial_child_access): Use build_ref_for_offset instead
6671 of duplicate_expr_for_different_base.
6672 (propagate_subacesses_accross_link): Likewise.
6673
6674 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
6675
6676 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
6677 of INSN_P.
6678 (mips16e_collect_argument_saves): Skip debug instructions.
6679 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
6680 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
6681 (r10k_insert_cache_barriers): Likewise.
6682 (mips_reorg_process_insns): Likewise.
6683
6684 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
6685
6686 PR bootstrap/41241
6687 * ira.c (update_equiv_reg): Remove check on class likely spill.
6688
6689 2009-09-03 Jakub Jelinek <jakub@redhat.com>
6690
6691 PR debug/41236
6692 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
6693 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
6694 it or SUBREG.
6695
6696 PR debug/41238
6697 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
6698 the stack slot if it is passed by invisible reference.
6699 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
6700 by invisible reference.
6701
6702 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
6703
6704 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6705 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6706 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
6707 0.
6708 * config/bfin/sync.md: New file.
6709 * config/bfin/bfin.md: Include it.
6710 (UNSPEC_ATOMIC): New.
6711 (UNSPEC_ONES): Provide a unique number.
6712
6713 From Jie Zhang <jie.zhang@analog.com>:
6714 * config/bfin/bfin.c (ret_regs): New.
6715 (must_save_fp_p): Don't return true because of frame_pointer_needed.
6716 (must_save_rets_p): New.
6717 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
6718 current_function_is_leaf.
6719 (do_link): Likewise.
6720 (do_unlink): Likewise.
6721 (expand_interrupt_handler_prologue): Use ret_regs array.
6722 (expand_interrupt_handler_epilogue): Use ret_regs array and
6723 pass return register to gen_return_internal.
6724 (bfin_expand_epilogue): Pass return register to
6725 gen_return_internal.
6726 (bfin_expand_call): Explicitly clobber RETS.
6727 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
6728 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
6729 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
6730 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
6731 RETS.
6732 (return_internal): Take a reg rtx rather than the register number.
6733
6734 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
6735
6736 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
6737 when comparing against estimated_loop_iterations_int return.
6738
6739 2009-09-03 Richard Guenther <rguenther@suse.de>
6740
6741 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
6742 eh_personality_libfunc.
6743
6744 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
6745
6746 * tree-parloops.c (separate_decls_in_region): Add space.
6747
6748 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
6749
6750 * tree-parloops.c (separate_decls_in_region): Change the condition
6751 checking if there are reductions in the loop.
6752
6753 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
6754
6755 PR tree-optimization/38275
6756 * tree-parloops.c (parallelize_loops): Replace profitability condition
6757 for expected number of iterations.
6758
6759 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
6760
6761 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
6762 (bootstrap-debug): Explain conditions in which it becomes default.
6763 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
6764 make it add to it.
6765
6766 2009-09-03 Namhyung Kim <namhyung@gmail.com>
6767
6768 * doc/invoke.texi (Optimize Options): Move
6769 -finline-small-functions to the -O2 list.
6770
6771 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
6772
6773 * toplev.c (process_options): Enable var-tracking-assignments
6774 by default if var-tracking is enabled.
6775
6776 2009-09-02 David Daney <ddaney@caviumnetworks.com>
6777
6778 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
6779 barrier.
6780 * emit-rtl.c (prev_nonnote_insn_bb): New function.
6781 * rtl.h (prev_nonnote_insn_bb): Declare it.
6782
6783 2009-09-03 Diego Novillo <dnovillo@google.com>
6784
6785 * cgraph.c (cgraph_node_for_decl): New.
6786 * cgraph.h (cgraph_node_for_decl): Declare.
6787 * tree.c (host_integerp): Return 0 if T is NULL.
6788
6789 2009-09-03 Diego Novillo <dnovillo@google.com>
6790
6791 * tree.h (struct alias_pair): Move from varasm.c.
6792 (alias_pairs): Likewise.
6793 (TYPE_MAXVAL): Define.
6794 (TYPE_MINVAL): Define.
6795 (iterative_hash_host_wide_int): Declare.
6796 (remove_unreachable_alias_pairs): Declare.
6797 * tree-pass.h (pass_ipa_free_lang_data): Declare.
6798 * diagnostic.c (default_diagnostic_starter): Make extern.
6799 (default_diagnostic_finalizer): Make extern.
6800 * diagnostic.h (default_diagnostic_starter): Declare.
6801 (default_diagnostic_finalizer): Declare.
6802 (default_tree_printer): Declare.
6803 * toplev.c (default_tree_printer): Make extern.
6804
6805 2009-09-03 Richard Guenther <rguenther@suse.de>
6806 Diego Novillo <dnovillo@google.com>
6807
6808 * cgraph.c (cgraph_add_new_function): Remove gimplification.
6809 * cgraphunit.c (cgraph_expand_function): Do not emit
6810 associated thunks from here.
6811 (cgraph_emit_thunks): New.
6812 (cgraph_optimize): Call it.
6813 Return if any IPA pass finds an error.
6814 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
6815 by thunks.
6816
6817 2009-09-03 Simon Baldwin <simonb@google.com>
6818 Rafael Espindola <espindola@google.com>
6819 Richard Guenther <rguenther@suse.de>
6820 Doug Kwan <dougkwan@google.com>
6821 Diego Novillo <dnovillo@google.com>
6822
6823 * tree.c: Include tree-pass.h, langhooks-def.h,
6824 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
6825 (free_lang_data_in_type): New.
6826 (need_assembler_name_p): New.
6827 (free_lang_data_in_block): New.
6828 (free_lang_data_in_decl): New.
6829 (struct free_lang_data_d): New.
6830 (add_tree_to_fld_list): New.
6831 (find_decls_types_r): New.
6832 (get_eh_types_for_runtime): New.
6833 (find_decls_types_in_eh_region): New.
6834 (find_decls_types_in_node): New.
6835 (find_decls_types_in_var): New.
6836 (free_lang_data_in_cgraph): New.
6837 (free_lang_data): New.
6838 (gate_free_lang_data): New.
6839 (pass_ipa_free_lang_data): New.
6840
6841 2009-09-03 Diego Novillo <dnovillo@google.com>
6842
6843 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
6844 * langhooks.h (struct lang_hooks): Add field free_lang_data.
6845 (lang_hooks): Remove const qualifier.
6846 * ipa.c (cgraph_remove_unreachable_nodes): Call
6847 remove_unreachable_alias_pairs.
6848 * except.c (add_type_for_runtime): Check if TYPE has
6849 already been converted.
6850 (lookup_type_for_runtime): Likewise.
6851 (check_handled): Handle converted types.
6852 * varasm.c (remove_unreachable_alias_pairs): New.
6853 * gimple.c: Include demangle.h.
6854 (gimple_decl_printable_name): New.
6855 (gimple_fold_obj_type_ref): New.
6856 * gimple.h (gimple_decl_printable_name): Declare.
6857 (gimple_fold_obj_type_ref): Declare.
6858 * passes.c (init_optimization_passes): Add pass
6859 pass_ipa_free_lang_data.
6860 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
6861 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
6862
6863 2009-09-03 Diego Novillo <dnovillo@google.com>
6864
6865 * c-lang.c (lang_hooks): Remove const qualifier.
6866
6867 2009-09-02 Loren James Rittle <ljrittle@acm.org>
6868
6869 * doc/install.texi (*-*-freebsd*): Update target information.
6870
6871 2009-09-02 Anatoly Sokolov <aesok@post.ru>
6872
6873 * hard-reg-set.h (call_fixed_regs): Remove.
6874 * reginfo.c (call_fixed_regs): Remove.
6875 (init_reg_sets_1): Remove initialization of call_fixed_regs.
6876 (globalize_reg): Don't use call_fixed_regs.
6877 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
6878 call_fixed_regs.
6879
6880 2009-09-01 Michael Matz <matz@suse.de>
6881
6882 * expr.h (emit_storent_insn, expand_expr_real_1,
6883 expand_expr_real_2): Declare.
6884 * expr.c (emit_storent_insn, expand_expr_real_1,
6885 expand_expr_real_2): Export.
6886 (store_expr): Setting and evaluating dont_return_target is useless.
6887 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
6888 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
6889 * except.c (expand_resx_expr): Rename to ...
6890 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
6891 * except.h (expand_resx_stmt): Declare.
6892 * stmt.c: Add include gimple.h
6893 (expand_asm_expr): Rename to ...
6894 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
6895 (expand_case): Rewrite to take gimple statement.
6896 * tree.h (expand_asm_stmt): Declare.
6897 (expand_case): Change prototype.
6898 * Makefile.in (stmt.o): Depend on gimple.h.
6899 * builtins.c (expand_builtin_synchronize): Build gimple asm
6900 statement, not an ASM_EXPR.
6901 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
6902 gimple_to_tree, release_stmt_tree): Remove.
6903 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
6904 ggc_free, but hold comparison code and operands separately.
6905 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
6906 (expand_call_stmt, expand_gimple_stmt_1,
6907 expand_gimple_stmt): New helpers.
6908 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
6909 release_stmt_tree. Call expand_gimple_stmt instead.
6910 (expand_gimple_basic_block): Ditto.
6911
6912 * calls.c (emit_call_1): Don't look at EH regions here, make
6913 fntree parameter useless.
6914 (expand_call): New local rettype for TREE_TYPE(exp), use it
6915 throughout. Remove local p, use addr instead.
6916 Don't look at EH regions here.
6917
6918 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
6919
6920 * doc/invoke.texi (-fsched-pressure): Document it.
6921 (-fsched-reg-pressure-heuristic): Remove it.
6922
6923 * reload.c (ira.h): Include.
6924 (find_reloads): Add choosing reload on number of small spilled
6925 classes.
6926
6927 * haifa-sched.c (ira.h): Include.
6928 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
6929 saved_reg_pressure, curr_reg_live, saved_reg_live,
6930 region_ref_regs): New variables.
6931 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
6932 initiate_reg_pressure_info, setup_ref_regs,
6933 initiate_bb_reg_pressure_info, save_reg_pressure,
6934 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
6935 functions.
6936 (setup_insn_reg_pressure_info): New function.
6937 (rank_for_schedule): Add pressure checking and insn issue time.
6938 Remove comparison of insn reg weights.
6939 (ready_sort): Set insn reg pressure info.
6940 (update_register_pressure, setup_insn_max_reg_pressure,
6941 update_reg_and_insn_max_reg_pressure,
6942 sched_setup_bb_reg_pressure_info): New functions.
6943 (schedule_insn): Add code for printing and updating reg pressure info.
6944 (find_set_reg_weight, find_insn_reg_weight): Remove.
6945 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
6946 (debug_ready_list): Print reg pressure info.
6947 (schedule_block): Ditto. Check insn issue time.
6948 (sched_init): Set up sched_pressure_p. Allocate and set up some
6949 reg pressure related info.
6950 (sched_finish): Free some reg pressure related info.
6951 (fix_tick_ready): Make insn always ready if pressure_p.
6952 (init_h_i_d): Don't call find_insn_reg_weight.
6953 (haifa_finish_h_i_d): Free insn reg pressure info.
6954
6955 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6956 ira_memory_move_cost, ira_class_hard_regs,
6957 ira_class_hard_regs_num, ira_no_alloc_regs,
6958 ira_available_class_regs, ira_reg_class_cover_size,
6959 ira_reg_class_cover, ira_class_translate): Move to ira.h.
6960
6961 * ira-lives.c (single_reg_class): Check mode to find how many
6962 registers are necessary for operand.
6963 (ira_implicitly_set_insn_hard_regs): New.
6964
6965 * common.opt (fsched-pressure): New options.
6966 (fsched-reg-pressure-heuristic): Remove.
6967
6968 * ira.c (setup_eliminable_regset): Rename to
6969 ira_setup_eliminable_regset. Make it external.
6970 (expand_reg_info): Pass cover class to setup_reg_classes.
6971 (ira): Call resize_reg_info instead of allocate_reg_info.
6972
6973 * sched-deps.c: Include ira.h.
6974 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
6975 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
6976 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
6977 mark_insn_hard_regno_birth, mark_insn_reg_birth,
6978 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
6979 mark_insn_reg_store, mark_insn_reg_clobber,
6980 setup_insn_reg_pressure_info): New.
6981 (sched_analyze_1): Update implicit_reg_pending_uses.
6982 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
6983 Use them to create dependencies. Set insn reg uses and pressure
6984 info. Process reg_pending_uses in one place.
6985 (free_deps): Free implicit sets.
6986 (remove_from_deps): Remove implicit sets if necessary. Check
6987 implicit sets when clearing reg_last_in_use.
6988 (init_deps_global): Clear implicit_reg_pending_clobbers and
6989 implicit_reg_pending_uses.
6990
6991 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6992 ira_memory_move_cost, ira_class_hard_regs,
6993 ira_class_hard_regs_num, ira_no_alloc_regs,
6994 ira_available_class_regs, ira_reg_class_cover_size,
6995 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
6996 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
6997 ira_implicitly_set_insn_hard_regs): New prototypes.
6998
6999 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
7000 cost_elements_num): New variables.
7001 (allocno_costs, total_costs): Rename to costs and
7002 total_allocno_costs.
7003 (COSTS_OF_ALLOCNO): Rename to COSTS.
7004 (allocno_pref): Rename to pref.
7005 (allocno_pref_buffer): Rename to pref_buffer.
7006 (common_classes): Rename to regno_cover_class.
7007 (COST_INDEX): New.
7008 (record_reg_classes): Set allocno attributes only if allocno_p.
7009 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
7010 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
7011 and COSTS_OF_ALLOCNO.
7012 (print_costs): Rename to print_allocno_costs.
7013 (print_pseudo_costs): New.
7014 (process_bb_node_for_costs): Split into 2 functions with new
7015 function process_bb_for_costs. Pass BB to process_bb_for_costs.
7016 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
7017 new parameter dump_file. Use cost_elements_num instead of
7018 ira_allocnos_num. Make one iteration if preferred classes were
7019 already calculated for scheduler. Make 2 versions of code
7020 depending on allocno_p.
7021 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
7022 regno_cover_class and COSTS instead of common_classes and
7023 COSTS_OF_ALLOCNO.
7024 (init_costs, finish_costs): New.
7025 (ira_costs): Set up allocno_p and cost_elements_num. Call
7026 init_costs and finish_costs.
7027 (ira_set_pseudo_classes): New.
7028
7029 * rtl.h (allocate_reg_info): Remove.
7030 (resize_reg_info): Change return type.
7031 (reg_cover_class): New.
7032 (setup_reg_classes): Add new parameter.
7033
7034 * sched-int.h (struct deps_reg): New member implicit_sets.
7035 (sched_pressure_p, sched_regno_cover_class): New external definitions.
7036 (INCREASE_BITS): New macro.
7037 (struct reg_pressure_data, struct reg_use_data): New.
7038 (struct _haifa_insn_data): Remove reg_weight. Add members
7039 reg_pressure, reg_use_list, reg_set_list, and
7040 reg_pressure_excess_cost_change.
7041 (struct deps): New member implicit_sets.
7042 (pressure_p): New variable.
7043 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
7044 (struct reg_pressure_data, struct reg_use_data): New.
7045 (INSN_REG_WEIGHT): Remove.
7046 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
7047 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
7048 (sched_init_region_reg_pressure_info,
7049 sched_setup_bb_reg_pressure_info): New prototypes.
7050
7051 * reginfo.c (struct reg_pref): New member coverclass.
7052 (reg_cover_class): New function.
7053 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
7054 (reg_info_size): New variable.
7055 (allocate_reg_info): Make static. Setup reg_info_size.
7056 (resize_reg_info): Use reg_info_size. Return flag of resizing.
7057 (setup_reg_classes): Add a new parameter. Setup cover class too.
7058
7059 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
7060 the dependencies.
7061
7062 * sched-rgn.c (deps_join): Set up implicit_sets.
7063 (schedule_region): Set up region and basic blocks pressure
7064 relative info.
7065
7066 * passes.c (init_optimization_passes): Move
7067 pass_subregs_of_mode_init before pass_sched.
7068
7069 2009-09-02 Martin Jambor <mjambor@suse.cz>
7070
7071 * tree-sra.c (struct access): New field grp_hint.
7072 (dump_access): Dump grp_hint.
7073 (sort_and_splice_var_accesses): Set grp_hint if a group is read
7074 multiple times.
7075 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
7076 those which have been specifically read and somehow written to.
7077 (propagate_subacesses_accross_link): Set grp_hint of right child and
7078 also possibly of the left child.
7079
7080 2009-09-02 Jakub Jelinek <jakub@redhat.com>
7081
7082 * tree-object-size.c (addr_object_size): Always use object_size_type
7083 0 or 2 when determining the pointer pointed object size.
7084
7085 2009-09-02 Richard Guenther <rguenther@suse.de>
7086
7087 Revert
7088 2009-08-31 Richard Guenther <rguenther@suse.de>
7089
7090 * builtins.c (fold_builtin_memory_op): Use the alias oracle
7091 to query if the memory regions for memmove overlap.
7092 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7093 asserts on pointers, instead deal with odd trees.
7094 (ptr_derefs_may_alias_p): Likewise.
7095 (refs_may_alias_p_1): Constructor bases also never alias.
7096
7097 2009-08-01 Christian Bruel <christian.bruel@st.com>
7098
7099 Revert:
7100 2009-07-31 Christian Bruel <christian.bruel@st.com>
7101 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7102
7103 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
7104
7105 * doc/invoke.texi (-fvar-tracking-assignments): New.
7106 (-fvar-tracking-assignments-toggle): New.
7107 (-fdump-final-insns=file): Mark filename as optional.
7108 (--param min-nondebug-insn-uid): New.
7109 (-gdwarf-@{version}): Mention version 4.
7110 * opts.c (common_handle_option): Accept it.
7111 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
7112 * regrename.c (regrename_optimize): Drop last. Don't count debug
7113 insns as uses. Don't reject change because of debug insn.
7114 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
7115 from the chain starter, and check for inexact matches in DEBUG_INSNS.
7116 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
7117 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
7118 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
7119 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
7120 * doc/gimple.texi (is_gimple_debug): New.
7121 (gimple_debug_bind_p): New.
7122 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
7123 * doc/install.texi (bootstrap-debug): More details.
7124 (bootstrap-debug-big, bootstrap-debug-lean): Document.
7125 (bootstrap-debug-lib): More details.
7126 (bootstrap-debug-ckovw): Update.
7127 (bootstrap-time): New.
7128 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7129 (insert_phi_nodes_for): Insert debug stmts.
7130 (rewrite_stmt): Take iterator. Insert debug stmts.
7131 (rewrite_enter_block): Adjust.
7132 (maybe_replace_use_in_debug_stmt): New.
7133 (rewrite_update_stmt): Use it.
7134 (mark_use_interesting): Return early for debug stmts.
7135 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7136 stmts before replacing stmt.
7137 (move_computations_stmt): Likewise.
7138 * ira-conflicts.c (add_copies): Skip debug insns.
7139 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7140 (regstat_bb_compute_ri): Skip debug insns.
7141 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7142 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7143 check_loop_closed_ssa_stmt): Skip debug stmts.
7144 * tree-tailcall.c (find_tail_calls): Likewise.
7145 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7146 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7147 (build_var_debug_value_stat): Declare.
7148 (build_var_debug_value): Define.
7149 (target_for_debug_bind): Declare.
7150 * reload.c (find_equiv_reg): Skip debug insns.
7151 * rtlanal.c (reg_used_between_p): Skip debug insns.
7152 (side_effects_p): Likewise.
7153 (canonicalize_condition): Likewise.
7154 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
7155 insns never depend on debug insns.
7156 (create_ddg_dep_no_link): Likewise.
7157 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7158 Don't add inter-loop dependencies for debug insns.
7159 (build_intra_loop_deps): Likewise.
7160 (create_ddg): Count debug insns.
7161 * ddg.h (struct ddg::num_debug): New.
7162 (num_backargs): Pair up with previous int field.
7163 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7164 -fcompare-debug-second.
7165 * final.c (get_attr_length_1): Skip debug insns.
7166 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7167 * gcc.c (invoke_as): Call compare-debug-dump-opt.
7168 (driver_self_specs): Map -fdump-final-insns to
7169 -fdump-final-insns=..
7170 (get_local_tick): New.
7171 (compare_debug_dump_opt_spec_function): Test for . argument and
7172 compute output name. Compute temp output spec without flag name.
7173 Compute -frandom-seed.
7174 (OPT): Undef after use.
7175 * cfgloopanal.c (num_loop_insns): Skip debug insns.
7176 (average_num_loop_insns): Likewise.
7177 * params.h (MIN_NONDEBUG_INSN_UID): New.
7178 * gimple.def (GIMPLE_DEBUG): New.
7179 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7180 * auto-inc-dec.c (merge_in_block): Skip debug insns.
7181 (merge_in_block): Fix whitespace.
7182 * toplev.c (flag_var_tracking): Update comment.
7183 (flag_var_tracking_assignments): New.
7184 (flag_var_tracking_assignments_toggle): New.
7185 (process_options): Don't open final insns dump file if we're not
7186 going to write to it. Compute defaults for var_tracking.
7187 * df-scan.c (df_insn_rescan_debug_internal): New.
7188 (df_uses_record): Handle debug insns.
7189 * haifa-sched.c (ready): Initialize n_debug.
7190 (contributes_to_priority): Skip debug insns.
7191 (dep_list_size): New.
7192 (priority): Use it.
7193 (rank_for_schedule): Likewise. Schedule debug insns as soon as
7194 they're ready. Disregard previous debug insns to make decisions.
7195 (queue_insn): Never queue debug insns.
7196 (ready_add, ready_remove_first, ready_remove): Count debug insns.
7197 (schedule_insn): Don't reject debug insns because of issue rate.
7198 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7199 (queue_to_ready): Skip and discount debug insns.
7200 (choose_ready): Let debug insns through.
7201 (schedule_block): Check boundary debug insns. Discount debug
7202 insns, schedule them early. Adjust whitespace.
7203 (set_priorities): Check for boundary debug insns.
7204 (add_jump_dependencies): Use dep_list_size.
7205 (prev_non_location_insn): New.
7206 (check_cfg): Use it.
7207 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7208 stmts.
7209 (remove_unused_ivs): Reset debug stmts.
7210 * modulo-sched.c (const_iteration_count): Skip debug insns.
7211 (res_MII): Discount debug insns.
7212 (loop_single_full_bb_p): Skip debug insns.
7213 (sms_schedule): Likewise.
7214 (sms_schedule_by_order): Likewise.
7215 (ps_has_conflicts): Likewise.
7216 * caller-save.c (refmarker_fn): New.
7217 (save_call_clobbered_regs): Replace regs with saved mem in
7218 debug insns.
7219 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
7220 Call refmarker_fn mark for hardregnos.
7221 (mark_reg_as_referenced): New.
7222 (replace_reg_with_saved_mem): New.
7223 * ipa-pure-const.c (check_stmt): Skip debug stmts.
7224 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
7225 searching back.
7226 (cse_extended_basic_block): Skip debug insns.
7227 (count_reg_usage): Likewise.
7228 (is_dead_reg): New, split out of...
7229 (set_live_p): ... here.
7230 (insn_live_p): Use it for debug insns.
7231 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7232 (execute_optimize_stdarg): Likewise.
7233 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7234 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7235 changes in debug stmts as changes.
7236 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7237 (moveup_expr): Don't move across debug insns. Don't move
7238 debug insn if it would create a bookkeeping block.
7239 (moveup_expr_cached): Don't use cache for debug insns that
7240 are heads of blocks.
7241 (compute_av_set_inside_bb): Skip debug insns.
7242 (sel_rank_for_schedule): Schedule debug insns first. Remove
7243 dead code.
7244 (block_valid_for_bookkeeping_p); Support lax searches.
7245 (create_block_for_bookkeeping): Adjust block numbers when
7246 encountering debug-only blocks.
7247 (find_place_for_bookkeeping): Deal with debug-only blocks.
7248 (generate_bookkeeping_insn): Accept no place to insert.
7249 (remove_temp_moveop_nops): New argument full_tidying.
7250 (prepare_place_to_insert): Deal with debug insns.
7251 (advance_state_on_fence): Debug insns don't start cycles.
7252 (update_boundaries): Take fence as argument. Deal with
7253 debug insns.
7254 (schedule_expr_on_boundary): No full_tidying on debug insns.
7255 (fill_insns): Deal with debug insns.
7256 (track_scheduled_insns_and_blocks): Don't count debug insns.
7257 (need_nop_to_preserve_insn_bb): New, split out of...
7258 (remove_insn_from_stream): ... this.
7259 (fur_orig_expr_not_found): Skip debug insns.
7260 * rtl.def (VALUE): Move up.
7261 (DEBUG_INSN): New.
7262 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
7263 (nearest_common_dominator_of_uses): Take debug_stmts argument.
7264 Set it if debug stmts are found.
7265 (statement_sink_location): Skip debug stmts. Propagate
7266 moving defs into debug stmts.
7267 * ifcvt.c (first_active_insn): Skip debug insns.
7268 (last_active_insns): Likewise.
7269 (cond_exec_process_insns): Likewise.
7270 (noce_process_if_block): Likewise.
7271 (check_cond_move_block): Likewise.
7272 (cond_move_convert_if_block): Likewise.
7273 (block_jumps_and_fallthru_p): Likewise.
7274 (dead_or_predicable): Likewise.
7275 * dwarf2out.c (debug_str_hash_forced): New.
7276 (find_AT_string): Add comment.
7277 (gen_label_for_indirect_string): New.
7278 (get_debug_string_label): New.
7279 (AT_string_form): Use it.
7280 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
7281 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
7282 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7283 several operations that cannot be represented with DWARF opcodes.
7284 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
7285 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7286 (dwarf2out_var_location): Take during-call mark into account.
7287 (output_indirect_string): Update comment. Output if there are
7288 label and references.
7289 (prune_indirect_string): New.
7290 (prune_unused_types): Call it if debug_str_hash_forced.
7291 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7292 (dw_long_long_const): Remove.
7293 (struct dw_val_struct): Change val_long_long type to rtx.
7294 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7295 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7296 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
7297 component instead of HOST_BITS_PER_LONG.
7298 (output_loc_operands): Likewise. For const8* assert
7299 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7300 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7301 rather than HOST_BITS_PER_LONG is >= 64.
7302 (add_AT_long_long): Remove val_hi and val_lo arguments, add
7303 val_const_double.
7304 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7305 HOST_BITS_PER_LONG for dw_val_class_long_long.
7306 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
7307 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
7308 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7309 DW_OP_stack_value.
7310 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7311 Handle DW_OP_implicit_value.
7312 (extract_int): Move prototype earlier.
7313 (mem_loc_descriptor): For SUBREG punt if inner
7314 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
7315 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
7316 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7317 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7318 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7319 instead of Pmode size.
7320 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
7321 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
7322 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
7323 (concat_loc_descriptor, concatn_loc_descriptor,
7324 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
7325 (add_location_or_const_value_attribute): Likewise. For single
7326 location loc_lists attempt to use add_const_value_attribute
7327 for constant decls. Add DW_AT_const_value even if
7328 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
7329 in its expression.
7330 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
7331 (control_flow_insn_p): Likewise.
7332 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
7333 (separate_decls_in_region_debug_bind): New.
7334 (separate_decls_in_region): Process debug bind stmts afterwards.
7335 * recog.c (verify_changes): Handle debug insns.
7336 (extract_insn): Likewise.
7337 (peephole2_optimize): Skip debug insns.
7338 * dse.c (scan_insn): Skip debug insns.
7339 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
7340 Pass it on.
7341 (setup_id_for_insn): Handle debug insns.
7342 (maybe_tidy_empty_bb): Adjust whitespace.
7343 (tidy_control_flow): Skip debug insns.
7344 (sel_remove_insn): Adjust for debug insns.
7345 (sel_estimate_number_of_insns): Skip debug insns.
7346 (create_insn_rtx_from_pattern): Handle debug insns.
7347 (create_copy_of_insn_rtx): Likewise.
7348 * sel-sched-.h (sel_bb_end): Declare.
7349 (sel_bb_empty_or_nop_p): New.
7350 (get_all_loop_exits): Use it.
7351 (_eligible_successor_edge_p): Likewise.
7352 (return_nop_to_pool): Adjust.
7353 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7354 * ira-lives.c (process_bb_node_lives): Skip debug insns.
7355 * gimple-pretty-print.c (dump_gimple_debug): New.
7356 (dump_gimple_stmt): Use it.
7357 (dump_bb_header): Skip gimple debug stmts.
7358 * regmove.c (optimize_reg_copy_1): Discount debug insns.
7359 (fixup_match_2): Likewise.
7360 (regmove_backward_pass): Likewise. Simplify combined
7361 replacement. Handle debug insns.
7362 * function.c (instantiate_virtual_regs): Handle debug insns.
7363 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7364 * print-rtl.h: Include cselib.h.
7365 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
7366 * df.h (df_inns_rescan_debug_internal): Declare.
7367 * gcse.c (alloc_hash_table): Estimate n_insns.
7368 (cprop_insn): Don't regard debug insns as changes.
7369 (bypass_conditional_jumps): Skip debug insns.
7370 (one_pre_gcse_pass): Adjust.
7371 (one_code_hoisting_pass): Likewise.
7372 (compute_ld_motion_mems): Skip debug insns.
7373 (one_cprop_pass): Adjust.
7374 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7375 (if_convertible_stmt_p): Handle debug stmts.
7376 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7377 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7378 * ira-build.c (create_bb_allocnos): Skip debug insns.
7379 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7380 (has_single_use): Likewise.
7381 (single_imm_use): Likewise.
7382 (num_imm_uses): Likewise.
7383 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7384 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7385 (create_outofssa_var_map): Likewise.
7386 * lower-subreg.c (adjust_decomposed_uses): New.
7387 (resolve_debug): New.
7388 (decompose_multiword_subregs): Use it.
7389 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7390 * emit-rtl.c: Include params.h.
7391 (cur_debug_insn_uid): Define.
7392 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7393 (copy_rtx_if_shared_1): Handle debug insns.
7394 (reset_used_flags): Likewise.
7395 (set_used_flags): LIkewise.
7396 (get_max_insn_count): New.
7397 (next_nondebug_insn): New.
7398 (prev_nondebug_insn): New.
7399 (make_debug_insn_raw): New.
7400 (emit_insn_before_noloc): Handle debug insns.
7401 (emit_jump_insn_before_noloc): Likewise.
7402 (emit_call_insn_before_noloc): Likewise.
7403 (emit_debug_insn_before_noloc): New.
7404 (emit_insn_after_noloc): Handle debug insns.
7405 (emit_jump_insn_after_noloc): Likewise.
7406 (emit_call_insn_after_noloc): Likewise.
7407 (emit_debug_insn_after_noloc): Likewise.
7408 (emit_insn_after): Take loc from earlier non-debug insn.
7409 (emit_jump_insn_after): Likewise.
7410 (emit_call_insn_after): Likewise.
7411 (emit_debug_insn_after_setloc): New.
7412 (emit_debug_insn_after): New.
7413 (emit_insn_before): Take loc from later non-debug insn.
7414 (emit_jump_insn_before): Likewise.
7415 (emit_call_insn_before): Likewise.
7416 (emit_debug_insn_before_setloc): New.
7417 (emit_debug_insn_before): New.
7418 (emit_insn): Handle debug insns.
7419 (emit_debug_insn): New.
7420 (emit_jump_insn): Handle debug insns.
7421 (emit_call_insn): Likewise.
7422 (emit): Likewise.
7423 (init_emit): Take min-nondebug-insn-uid into account.
7424 Initialize cur_debug_insn_uid.
7425 (emit_copy_of_insn_after): Handle debug insns.
7426 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7427 location of single rhs in place.
7428 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7429 (floor_sdiv_adjust): New.
7430 (cell_sdiv_adjust): New.
7431 (cell_udiv_adjust): New.
7432 (round_sdiv_adjust): New.
7433 (round_udiv_adjust): New.
7434 (wrap_constant): Moved from cselib.
7435 (unwrap_constant): New.
7436 (expand_debug_expr): New.
7437 (expand_debug_locations): New.
7438 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
7439 debug bind stmts.
7440 (gimple_expand_cfg): Expand debug locations.
7441 * cselib.c: Include tree-pass.h.
7442 (struct expand_value_data): New.
7443 (cselib_record_sets_hook): New.
7444 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7445 (cselib_clear_table): Move, and implemnet in terms of...
7446 (cselib_reset_table_with_next_value): ... this.
7447 (cselib_get_next_unknown_value): New.
7448 (discard_useless_locs): Don't discard preserved values.
7449 (cselib_preserve_value): New.
7450 (cselib_preserved_value_p): New.
7451 (cselib_preserve_definitely): New.
7452 (cselib_clear_preserve): New.
7453 (cselib_preserve_only_values): New.
7454 (new_cselib_val): Take rtx argument. Dump it in details.
7455 (cselib_lookup_mem): Adjust.
7456 (expand_loc): Take regs_active in struct. Adjust. Silence
7457 dumps unless details are requested.
7458 (cselib_expand_value_rtx_cb): New.
7459 (cselib_expand_value_rtx): Rename and reimplment in terms of...
7460 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
7461 without details. Copy more subregs. Try to resolve values
7462 using a callback. Wrap constants.
7463 (cselib_subst_to_values): Adjust.
7464 (cselib_log_lookup): New.
7465 (cselib_lookup): Call it.
7466 (cselib_invalidate_regno): Don't count preserved values as useless.
7467 (cselib_invalidate_mem): Likewise.
7468 (cselib_record_set): Likewise.
7469 (struct set): Renamed to cselib_set, moved to cselib.h.
7470 (cselib_record_sets): Adjust. Call hook.
7471 (cselib_process_insn): Reset table when it would be cleared.
7472 (dump_cselib_val): New.
7473 (dump_cselib_table): New.
7474 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7475 (remove_forwarder_block): Support moving debug stmts.
7476 * cselib.h (cselib_record_sets_hook): Declare.
7477 (cselib_expand_callback): New type.
7478 (cselib_expand_value_rtx_cb): Declare.
7479 (cselib_reset_table_with_next_value): Declare.
7480 (cselib_get_next_unknown_value): Declare.
7481 (cselib_preserve_value): Declare.
7482 (cselib_preserved_value_p): Declare.
7483 (cselib_preserve_only_values): Declare.
7484 (dump_cselib_table): Declare.
7485 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7486 (try_crossjump_to_edge): Likewise.
7487 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7488 dominated blocks when debug stmts are present.
7489 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7490 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7491 (set_var_live_on_entry): Likewise.
7492 * loop-invariant.c (find_invariants_bb): Skip debug insns.
7493 * cfglayout.c (curr_location, last_location): Make static.
7494 (set_curr_insn_source_location): Don't avoid bouncing.
7495 (get_curr_insn_source_location): New.
7496 (get_curr_insn_block): New.
7497 (duplicate_insn_chain): Handle debug insns.
7498 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7499 into debug stmts.
7500 * common.opt (fcompare-debug): Move to sort order.
7501 (fdump-unnumbered-links): Likewise.
7502 (fvar-tracking-assignments): New.
7503 (fvar-tracking-assignments-toggle): New.
7504 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7505 because of debug stmts.
7506 (mark_stmt_if_obviously_necessary): Mark debug stmts.
7507 (eliminate_unnecessary_stmts): Walk dominated blocks before
7508 dominators.
7509 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7510 * ira.c (memref_used_between_p): Skip debug insns.
7511 (update_equiv_regs): Likewise.
7512 * sched-deps.c (sd_lists_size): Accept empty list.
7513 (sd_init_insn): Mark debug insns.
7514 (sd_finish_insn): Unmark them.
7515 (sd_add_dep): Reject non-debug deps on debug insns.
7516 (fixup_sched_groups): Give debug insns group treatment.
7517 Skip debug insns.
7518 (sched_analyze_reg): Don't mark debug insns for sched before call.
7519 (sched_analyze_2): Handle debug insns.
7520 (sched_analyze_insn): Compute next non-debug insn. Handle debug
7521 insns.
7522 (deps_analyze_insn): Handle debug insns.
7523 (deps_start_bb): Skip debug insns.
7524 (init_deps): Initialize last_debug_insn.
7525 * tree-ssa.c (target_for_debug_bind): New.
7526 (find_released_ssa_name): New.
7527 (propagate_var_def_into_debug_stmts): New.
7528 (propagate_defs_into_debug_stmts): New.
7529 (verify_ssa): Skip debug bind stmts without values.
7530 (warn_uninialized_vars): Skip debug stmts.
7531 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7532 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7533 (rtx_equal_p): Likewise.
7534 * ira-costs.c (scan_one_insn): Skip debug insns.
7535 (process_bb_node_for_hard_reg_moves): Likewise.
7536 * rtl.h (DEBUG_INSN_P): New.
7537 (NONDEBUG_INSN_P): New.
7538 (MAY_HAVE_DEBUG_INSNS): New.
7539 (INSN_P): Accept debug insns.
7540 (RTX_FRAME_RELATED_P): Likewise.
7541 (INSN_DELETED_P): Likewise
7542 (PAT_VAR_LOCATION_DECL): New.
7543 (PAT_VAR_LOCATION_LOC): New.
7544 (PAT_VAR_OCATION_STATUS): New.
7545 (NOTE_VAR_LOCATION_DECL): Reimplement.
7546 (NOTE_VAR_LOCATION_LOC): Likewise.
7547 (NOTE_VAR_LOCATION_STATUS): Likewise.
7548 (INSN_VAR_LOCATION): New.
7549 (INSN_VAR_LOCATION_DECL): New.
7550 (INSN_VAR_LOCATION_LOC): New.
7551 (INSN_VAR_LOCATION_STATUS): New.
7552 (gen_rtx_UNKNOWN_VAR_LOC): New.
7553 (VAR_LOC_UNKNOWN_P): New.
7554 (NOTE_DURING_CALL_P): New.
7555 (SCHED_GROUP_P): Accept debug insns.
7556 (emit_debug_insn_before): Declare.
7557 (emit_debug_insn_before_noloc): Declare.
7558 (emit_debug_insn_beore_setloc): Declare.
7559 (emit_debug_insn_after): Declare.
7560 (emit_debug_insn_after_noloc): Declare.
7561 (emit_debug_insn_after_setloc): Declare.
7562 (emit_debug_insn): Declare.
7563 (make_debug_insn_raw): Declare.
7564 (prev_nondebug_insn): Declare.
7565 (next_nondebug_insn): Declare.
7566 (delegitimize_mem_from_attrs): Declare.
7567 (get_max_insn_count): Declare.
7568 (wrap_constant): Declare.
7569 (unwrap_constant): Declare.
7570 (get_curr_insn_source_location): Declare.
7571 (get_curr_insn_block): Declare.
7572 * tree-inline.c (insert_debug_decl_map): New.
7573 (processing_debug_stmt): New.
7574 (remap_decl): Don't create new mappings in debug stmts.
7575 (remap_gimple_op_r): Don't add references in debug stmts.
7576 (copy_tree_body_r): Likewise.
7577 (remap_gimple_stmt): Handle debug bind stmts.
7578 (copy_bb): Skip debug stmts.
7579 (copy_edges_for_bb): Likewise.
7580 (copy_debug_stmt): New.
7581 (copy_debug_stmts): New.
7582 (copy_body): Copy debug stmts at the end.
7583 (insert_init_debug_bind): New.
7584 (insert_init_stmt): Take id. Skip and emit debug stmts.
7585 (setup_one_parameter): Remap variable earlier, register debug mapping.
7586 (estimate_num_insns): Skip debug stmts.
7587 (expand_call_inline): Preserve debug_map.
7588 (optimize_inline_calls): Check for no debug_stmts left-overs.
7589 (unsave_expr_now): Preserve debug_map.
7590 (copy_gimple_seq_and_replace_locals): Likewise.
7591 (tree_function_versioning): Check for no debug_stmts left-overs.
7592 Init and destroy debug_map as needed. Split edges unconditionally.
7593 (build_duplicate_type): Init and destroy debug_map as needed.
7594 * tree-inline.h: Include gimple.h instead of pointer-set.h.
7595 (struct copy_body_data): Add debug_stmts and debug_map.
7596 * sched-int.h (struct ready_list): Add n_debug.
7597 (struct deps): Add last_debug_insn.
7598 (DEBUG_INSN_SCHED_P): New.
7599 (BOUNDARY_DEBUG_INSN_P): New.
7600 (SCHEDULE_DEBUG_INSN_P): New.
7601 (sd_iterator_cond): Accept empty list.
7602 * combine.c (create_log_links): Skip debug insns.
7603 (combine_instructions): Likewise.
7604 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
7605 return value is always unshared.
7606 (struct rtx_subst_pair): New.
7607 (auto_adjust_pair): New.
7608 (propagate_for_debug_subst): New.
7609 (propagate_for_debug): New.
7610 (try_combine): Skip debug insns. Propagate removed defs into
7611 debug insns.
7612 (next_nonnote_nondebug_insn): New.
7613 (distribute_notes): Use it. Skip debug insns.
7614 (distribute_links): Skip debug insns.
7615 * tree-outof-ssa.c (set_location_for_edge): Likewise.
7616 * resource.c (mark_target_live_regs): Likewise.
7617 * var-tracking.c: Include cselib.h and target.h.
7618 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
7619 MO_VAL_SET.
7620 (micro_operation_type_name): New.
7621 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
7622 (struct micro_operation_def): Update comments.
7623 (decl_or_value): New type. Use instead of decls.
7624 (struct emit_note_data_def): Add vars.
7625 (struct attrs_def): Use decl_or_value.
7626 (struct variable_tracking_info_def): Add permp, flooded.
7627 (struct location_chain_def): Update comment.
7628 (struct variable_part_def): Use decl_or_value.
7629 (struct variable_def): Make var_part a variable length array.
7630 (valvar_pool): New.
7631 (scratch_regs): New.
7632 (cselib_hook_called): New.
7633 (dv_is_decl_p): New.
7634 (dv_is_value_p): New.
7635 (dv_as_decl): New.
7636 (dv_as_value): New.
7637 (dv_as_opaque): New.
7638 (dv_onepart_p): New.
7639 (dv_pool): New.
7640 (IS_DECL_CODE): New.
7641 (check_value_is_not_decl): New.
7642 (dv_from_decl): New.
7643 (dv_from_value): New.
7644 (dv_htab_hash): New.
7645 (variable_htab_hash): Use it.
7646 (variable_htab_eq): Support values.
7647 (variable_htab_free): Free from the right pool.
7648 (attrs_list_member, attrs_list_insert): Use decl_or_value.
7649 (attrs_list_union): Adjust.
7650 (attrs_list_mpdv_union): New.
7651 (tie_break_pointers): New.
7652 (canon_value_cmp): New.
7653 (unshare_variable): Return possibly-modified slot.
7654 (vars_copy_1): Adjust.
7655 (var_reg_decl_set): Adjust. Split out of...
7656 (var_reg_set): ... this.
7657 (get_init_value): Adjust.
7658 (var_reg_delete_and_set): Adjust.
7659 (var_reg_delete): Adjust.
7660 (var_regno_delete): Adjust.
7661 (var_mem_decl_set): Split out of...
7662 (var_mem_set): ... this.
7663 (var_mem_delete_and_set): Adjust.
7664 (var_mem_delete): Adjust.
7665 (val_store): New.
7666 (val_reset): New.
7667 (val_resolve): New.
7668 (variable_union): Adjust. Speed up merge of 1-part vars.
7669 (variable_canonicalize): Use unshared slot.
7670 (VALUED_RECURSED_INTO): New.
7671 (find_loc_in_1pdv): New.
7672 (struct dfset_merge): New.
7673 (insert_into_intersection): New.
7674 (intersect_loc_chains): New.
7675 (loc_cmp): New.
7676 (canonicalize_loc_order_check): New.
7677 (canonicalize_values_mark): New.
7678 (canonicalize_values_star): New.
7679 (variable_merge_over_cur): New.
7680 (variable_merge_over_src): New.
7681 (dataflow_set_merge): New.
7682 (dataflow_set_equiv_regs): New.
7683 (remove_duplicate_values): New.
7684 (struct dfset_post_merge): New.
7685 (variable_post_merge_new_vals): New.
7686 (variable_post_merge_perm_vals): New.
7687 (dataflow_post_merge_adjust): New.
7688 (find_mem_expr_in_1pdv): New.
7689 (dataflow_set_preserve_mem_locs): New.
7690 (dataflow_set_remove_mem_locs): New.
7691 (dataflow_set_clear_at_call): New.
7692 (onepart_variable_different_p): New.
7693 (variable_different_p): Use it.
7694 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
7695 (track_expr_p): Add need_rtl parameter. Don't generate rtl
7696 if not needed.
7697 (track_loc_p): Pass it true.
7698 (struct count_use_info): New.
7699 (find_use_val): New.
7700 (replace_expr_with_values): New.
7701 (log_op_type): New.
7702 (use_type): New, partially split out of...
7703 (count_uses): ... this. Count new micro-ops.
7704 (count_uses_1): Adjust.
7705 (count_stores): Adjust.
7706 (count_with_sets): New.
7707 (VAL_NEEDS_RESOLUTION): New.
7708 (VAL_HOLDS_TRACK_EXPR): New.
7709 (VAL_EXPR_IS_COPIED): New.
7710 (VAL_EXPR_IS_CLOBBERED): New.
7711 (add_uses): Adjust. Generate new micro-ops.
7712 (add_uses_1): Adjust.
7713 (add_stores): Generate new micro-ops.
7714 (add_with_sets): New.
7715 (find_src_status): Adjust.
7716 (find_src_set_src): Adjust.
7717 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
7718 Handle new micro-ops. Canonicalize value equivalances.
7719 (vt_find_locations): Compute total size of hash tables for
7720 dumping. Perform merge for var-tracking-assignments. Don't
7721 disregard single-block loops.
7722 (dump_attrs_list): Handle decl_or_value.
7723 (dump_variable): Take variable. Deal with decl_or_value.
7724 (dump_variable_slot): New.
7725 (dump_vars): Use it.
7726 (dump_dataflow_sets): Adjust.
7727 (set_slot_part): New, extended to support one-part variables
7728 after splitting out of...
7729 (set_variable_part): ... this.
7730 (clobber_slot_part): New, split out of...
7731 (clobber_variable_part): ... this.
7732 (delete_slot_part): New, split out of...
7733 (delete_variable_part): .... this.
7734 (check_wrap_constant): New.
7735 (vt_expand_loc_callback): New.
7736 (vt_expand_loc): New.
7737 (emit_note_insn_var_location): Adjust. Handle values. Handle
7738 EMIT_NOTE_AFTER_CALL_INSN.
7739 (emit_notes_for_differences_1): Adjust. Handle values.
7740 (emit_notes_for_differences_2): Likewise.
7741 (emit_notes_for_differences): Adjust.
7742 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
7743 Adjust. Handle new micro-ops.
7744 (vt_add_function_parameters): Adjust. Create and bind values.
7745 (vt_initialize): Adjust. Initialize scratch_regs and
7746 valvar_pool, flooded and perm.. Initialize and use cselib. Log
7747 operations. Move some code to count_with_sets and add_with_sets.
7748 (delete_debug_insns): New.
7749 (vt_debug_insns_local): New.
7750 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
7751 cselib.
7752 (var_tracking_main): If var-tracking-assignments is enabled
7753 but var-tracking isn't, delete debug insns and leave. Likewise
7754 if we exceed limits or fail the stack adjustments tests, and
7755 after all var-tracking processing.
7756 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
7757 (dataflow_set): Add traversed_vars.
7758 (value_chain, const_value_chain): New typedefs.
7759 (value_chain_pool, value_chains): New variables.
7760 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
7761 add_value_chains, add_cselib_value_chains, remove_value_chain,
7762 remove_value_chains, remove_cselib_value_chains): New functions.
7763 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
7764 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
7765 static inlines.
7766 (shared_hash_find_slot_unshare, shared_hash_find_slot,
7767 shared_hash_find_slot_noinsert, shared_hash_find): Update.
7768 (dst_can_be_shared): New variable.
7769 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
7770 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
7771 different from set->vars, look up slot again instead of using the
7772 passed in slot.
7773 (dataflow_set_init): Initialize traversed_vars.
7774 (variable_union): Use shared_hash_*. Use initially NO_INSERT
7775 lookup if set->vars is shared. Don't keep slot cleared before
7776 calling unshare_variable. Unshare set->vars if needed. Adjust
7777 unshare_variable callers. Clear dst_can_be_shared if needed.
7778 Even ->refcount == 1 vars must be unshared if set->vars is shared
7779 and var needs to be modified.
7780 (dataflow_set_union): Set traversed_vars during canonicalization.
7781 (VALUE_CHANGED, DECL_CHANGED): Define.
7782 (set_dv_changed, dv_changed_p): New static inlines.
7783 (track_expr_p): Clear DECL_CHANGED.
7784 (dump_dataflow_sets): Set it.
7785 (variable_was_changed): Call set_dv_changed.
7786 (emit_note_insn_var_location): Likewise.
7787 (changed_variables_stack): New variable.
7788 (check_changed_vars_1, check_changed_vars_2): New functions.
7789 (emit_notes_for_changes): Do nothing if changed_variables is
7790 empty. Traverse changed_variables with check_changed_vars_1,
7791 call check_changed_vars_2 on each changed_variables_stack entry.
7792 (emit_notes_in_bb): Add SET argument. Just clear it at the
7793 beginning, use it instead of local &set, don't destroy it at the end.
7794 (vt_emit_notes): Call dataflow_set_clear early on all
7795 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
7796 computed set, dataflow_set_clear also VTI(bb)->in when we are
7797 done with the basic block. Initialize changed_variables_stack,
7798 free it afterwards. If ENABLE_CHECKING verify that after noting
7799 differences to an empty set value_chains hash table is empty.
7800 (vt_initialize): Initialize value_chains and value_chain_pool.
7801 (vt_finalize): Delete value_chains htab, free value_chain_pool.
7802 (variable_tracking_main): Call dump_dataflow_sets before calling
7803 vt_emit_notes, not after it.
7804 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
7805 (propagate_var_def_into_debug_stmts): Declare.
7806 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
7807 (df_set_note): Reject debug insns.
7808 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
7809 add notes to debug insns.
7810 (df_note_bb_compute): Adjust. Likewise.
7811 (df_simulate_uses): Skip debug insns.
7812 (df_simulate_initialize_backwards): Likewise.
7813 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
7814 (subst_stack_regs_pat): Reject debug insns.
7815 (convert_regs_1): Handle debug insns.
7816 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
7817 (print-rtl.o): Depend on cselib.h.
7818 (cselib.o): Depend on TREE_PASS_H.
7819 (var-tracking.o): Depend on cselib.h and TARGET_H.
7820 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
7821 (init_ready_list): Skip boundary debug insns.
7822 (add_branch_dependences): Skip debug insns.
7823 (free_block_dependencies): Check for blocks with only debug insns.
7824 (compute_priorities): Likewise.
7825 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
7826 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
7827 all callers.
7828 (gimple_build_debug_bind_stat): New.
7829 (empty_body_p): Skip debug stmts.
7830 (gimple_has_side_effects): Likewise.
7831 (gimple_rhs_has_side_effects): Likewise.
7832 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
7833 (gimple_build_debug_bind_stat): Declare.
7834 (gimple_build_debug_bind): Define.
7835 (is_gimple_debug): New.
7836 (gimple_debug_bind_p): New.
7837 (gimple_debug_bind_get_var): New.
7838 (gimple_debug_bind_get_value): New.
7839 (gimple_debug_bind_get_value_ptr): New.
7840 (gimple_debug_bind_set_var): New.
7841 (gimple_debug_bind_set_value): New.
7842 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
7843 (gimple_debug_bind_reset_value): New.
7844 (gimple_debug_bind_has_value_p): New.
7845 (gsi_next_nondebug): New.
7846 (gsi_prev_nondebug): New.
7847 (gsi_start_nondebug_bb): New.
7848 (gsi_last_nondebug_bb): New.
7849 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
7850 (print_insn): Handle DEBUG_INSN.
7851 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
7852 of first insn prevail.
7853 (first_stmt): Skip debug stmts.
7854 (first_non_label_stmt): Likewise.
7855 (last_stmt): Likewise.
7856 (has_zero_uses_1): New.
7857 (single_imm_use_1): New.
7858 (verify_gimple_debug): New.
7859 (verify_types_in_gimple_stmt): Handle debug stmts.
7860 (verify_stmt): Likewise.
7861 (debug_loop_num): Skip debug stmts.
7862 (remove_edge_and_dominated_blocks): Remove dominators last.
7863 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
7864 (linearize_expr): Likewise.
7865 * config/i386/i386.c (ix86_delegitimize_address): Call
7866 default implementation.
7867 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
7868 (group_barrier_needed): Skip debug insns.
7869 (emit_insn_group_barriers): Likewise.
7870 (emit_all_insn_group_barriers): Likewise.
7871 (ia64_variable_issue): Handle debug insns.
7872 (ia64_dfa_new_cycle): Likewise.
7873 (final_emit_insn_group_barriers): Skip debug insns.
7874 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
7875 def cfa without frame.
7876 (process_set): Likewise.
7877 (process_for_unwind_directive): Pass frame on.
7878 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7879 (rs6000_delegitimize_address): New.
7880 (rs6000_debug_adjust_cost): Handle debug insns.
7881 (is_microcoded_insn): Likewise.
7882 (is_cracked_insn): Likewise.
7883 (is_nonpipeline_insn): Likewise.
7884 (insn_must_be_first_in_group): Likewise.
7885 (insn_must_be_last_in_group): Likewise.
7886 (force_new_group): Likewise.
7887 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
7888 contains only debug insns.
7889 (rtl_merge_blocks): Skip debug insns.
7890 (purge_dead_edges): Likewise.
7891 (rtl_block_ends_with_call_p): Skip debug insns.
7892 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
7893 (mark_reg_dependencies): Skip debug insns.
7894 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
7895 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
7896 * tree-ssa-threadedge.c
7897 (record_temporary_equivalences_from_stmts): Skip debug stmts.
7898 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
7899 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
7900 (copyprop_hardreg_forward_1): Handle debug insns.
7901 * reload1.c (reload): Skip debug insns. Replace unassigned
7902 pseudos in debug insns with their equivalences.
7903 (eliminate_regs_in_insn): Skip debug insns.
7904 (emit_input_reload_insns): Skip debug insns at first, adjust
7905 them later.
7906 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
7907 (get_indirect_ref_operands): Pass opf_no_vops on.
7908 (get_expr_operands): Likewise. Skip debug stmts.
7909 (parse_ssa_operands): Scan debug insns with opf_no_vops.
7910
7911 2009-09-01 Richard Henderson <rth@redhat.com>
7912
7913 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
7914 stmt_ends_pp_p statements at least once.
7915 * tree-vrp.c (vrp_initialize): Likewise.
7916 (vrp_visit_stmt): Be prepared for non-interesting stmts.
7917
7918 2009-09-01 Dodji Seketeli <dodji@redhat.com>
7919
7920 PR bootstrap/41205
7921 Fix AIX bootstrap after PR debug/30161
7922 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
7923 that is a GNU extension.
7924 (tmpl_value_parm_die_table): Move the definition of this global
7925 outside #ifdef DWARF2_DEBUGGING_INFO region.
7926
7927 2009-09-01 Richard Guenther <rguenther@suse.de>
7928
7929 * tree.c (tree_expr_size): New function.
7930 * tree.h (tree_expr_size): Declare.
7931 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
7932 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
7933 * langhooks.c (lhd_expr_size): Remove.
7934 * langhooks.h (struct lang_hooks): Remove expr_size.
7935 * explow.c (expr_size): Use tree_expr_size.
7936 (int_expr_size): Likewise.
7937 * langhooks-def.h (lhd_expr_size): Remove.
7938 (LANG_HOOKS_EXPR_SIZE): Likewise.
7939 (LANG_HOOKS_INITIALIZER): Adjust.
7940
7941 2009-09-01 Richard Guenther <rguenther@suse.de>
7942
7943 * tree-flow.h (mark_addressable): Move declaration ...
7944 * tree.h (mark_addressable): ... here.
7945 * stmt.c (expand_asm_operands): Use mark_addressable, not
7946 lang_hooks.mark_addressable.
7947 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
7948 LANG_HOOKS_MARK_ADDRESSABLE.
7949 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
7950 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
7951
7952 2009-08-31 Chris Demetriou <cgd@google.com>
7953
7954 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
7955 vectorize if not TARGET_SSE2.
7956
7957 2009-08-31 DJ Delorie <dj@redhat.com>
7958
7959 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
7960 registers if no coprocessor is enabled.
7961
7962 2009-08-31 Dodji Seketeli <dodji@redhat.com>
7963
7964 PR debug/30161
7965 * cgraph.h (cgraph_get_node): Declare ...
7966 * cgraph.c (cgraph_get_node): ... new function.
7967 * dwarf2out.c (gen_generic_params_dies,
7968 generic_parameter_die, tree_add_const_value_attribute_for_decl,
7969 make_ith_pack_parameter_name,
7970 append_entry_to_tmpl_value_parm_die_table,
7971 gen_remaining_tmpl_value_param_die_attribute): New functions.
7972 (gen_subprogram_die): Generate debug info for template parameters
7973 if debug info level is higher than DINFO_LEVEL_TERSE.
7974 Use tree_add_const_value_attribute_for_decl instead of
7975 tree_add_const_value_attribute.
7976 (gen_const_die): Use tree_add_const_value_attribute_for_decl
7977 instead of tree_add_const_value_attribute.
7978 (gen_struct_or_union_type_die): Generate debug
7979 info for template parameters if debug info level is higher than
7980 DINFO_LEVEL_TERSE.
7981 (tree_add_const_value_attribute): Handle integral and pointer
7982 constants. Update comment.
7983 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
7984 (dwarf_attr_name): Support DW_AT_GNU_template_name.
7985 (reference_to_unused): Fix thinko. Remove redundant predicates from
7986 tests.
7987 (tree_add_const_value_attribute): Make this work for constant
7988 expressions only.
7989 tree_add_const_value_attribute_for_decl is to be used for variable
7990 DECLs now.
7991 (add_location_or_const_value_attribute): Use
7992 tree_add_const_value_attribute_for_decl now.
7993 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
7994 DW_TAG_template_value_param DIEs after function DIEs have been
7995 emitted.
7996 * langhooks.h (lang_hooks_for_types): Add
7997 get_argument_pack_elems.
7998 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
7999 (lang_hooks): Added get_innermost_generic_parms,
8000 get_innermost_generic_args.
8001 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
8002 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
8003 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
8004 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
8005
8006 2009-08-31 DJ Delorie <dj@redhat.com>
8007
8008 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
8009 it once we start generating the prologue or epilogue.
8010 (mep_call_saves_register): If the frame is locked, re-use
8011 cached values.
8012 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
8013 (mep_expand_prologue): Call it.
8014 (mep_expand_epilogue): Likewise.
8015 (mep_start_function): Use the same logic as mep_expand_prologue.
8016 (mep_pass_by_reference): Make logic more readable.
8017 (mep_return_in_memory): Zero-sized objects are passed in memory.
8018 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
8019
8020 2009-08-31 Richard Guenther <rguenther@suse.de>
8021
8022 * builtins.c (fold_builtin_memory_op): Use the alias oracle
8023 to query if the memory regions for memmove overlap.
8024 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
8025 asserts on pointers, instead deal with odd trees.
8026 (ptr_derefs_may_alias_p): Likewise.
8027 (refs_may_alias_p_1): Constructor bases also never alias.
8028
8029 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
8030
8031 * doc/install.texi (Final install): Adjust reference on where to
8032 order printed manuals.
8033
8034 2009-08-30 Olivier Hainque <hainque@adacore.com>
8035
8036 * dwarf2out.c (switch_to_frame_table_section): Move
8037 definition prior to first use.
8038
8039 2009-08-30 Richard Guenther <rguenther@suse.de>
8040
8041 PR tree-optimization/41186
8042 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
8043 (ao_ref_init_from_ptr_and_size): New function.
8044 (ref_maybe_used_by_call_p_1): Be more precise tracking
8045 used ranges for builtin functions.
8046 (ref_maybe_used_by_call_p): Adjust.
8047 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
8048 ranges for builtin functions.
8049 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
8050
8051 2009-08-30 Alan Modra <amodra@bigpond.net.au>
8052
8053 PR target/41081
8054 * fwprop.c (get_reg_use_in): Delete.
8055 (free_load_extend): New function.
8056 (forward_propagate_subreg): Use it.
8057
8058 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
8059
8060 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
8061
8062 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
8063
8064 PR/41184
8065 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
8066 padding.
8067
8068 2009-08-29 Douglas B Rupp <rupp@gnat.com>
8069
8070 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
8071 fini or fini_array section.
8072
8073 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8074
8075 * graphite-dependences.c (graphite_legal_transform_bb): Call
8076 pbb_remove_duplicate_pdrs.
8077 * graphite-poly.c (can_collapse_pdr): Removed.
8078 (pdr_find_duplicate): Removed.
8079 (can_collapse_pdrs): New.
8080 (pbb_remove_duplicate_pdrs): New.
8081 (new_poly_dr): Do not look for duplicates.
8082 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
8083 (PBB_PDR_DUPLICATES_REMOVED): New.
8084 (pbb_remove_duplicate_pdrs): Declared.
8085
8086 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8087
8088 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
8089 the strides by multiplying by PDR_NB_REFS.
8090 * graphite-poly.c (can_collapse_pdr): New.
8091 (pdr_find_duplicate): New.
8092 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
8093 Initialize PDR_NB_REFS.
8094 * graphite-poly.h (struct poly_dr): Add field nb_refs.
8095 (PDR_NB_REFS): New.
8096 (new_poly_dr): Number of subscripts is a graphite_dim_t.
8097
8098 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8099
8100 PR middle-end/40965
8101 * graphite-poly.c (apply_poly_transforms): Remove legality test before
8102 any transform.
8103
8104 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8105
8106 * graphite-dependences.c (pddr_original_scattering): Return NULL
8107 for read-read dependence relations.
8108 * graphite-poly.h (enum poly_dr_type): Fix comment.
8109 (pdr_read_p): New.
8110 (pdr_write_p): New.
8111 (pdr_may_write_p): New.
8112
8113 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8114
8115 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
8116 (struct poly_dr): Same.
8117 (new_poly_dr): Same.
8118 * graphite-poly.c (new_poly_dr): Same.
8119 * graphite-dependences.c (dot_deps): Disable call to system.
8120
8121 2009-08-28 Cary Coutant <ccoutant@google.com>
8122
8123 PR debug/41063
8124 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8125 struct/union/enum types local to a function.
8126
8127 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8128 Sebastian Pop <sebastian.pop@amd.com>
8129
8130 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8131 pbb_strip_mine_time_depth. Changed the implementation so that
8132 transformation is expressed as a transformation on
8133 time (scatttering) dimensions. Also, ensures that the 2d+1
8134 scheduling format is preserved.
8135 (pbb_strip_mine_profitable_p): Profitability is based on the
8136 iteration number of a given time (scattering) dimension,
8137 and not on a original loop depth dimension.
8138 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8139 (pbb_do_strip_mine): Call psct_dynamic_dim.
8140 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8141 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8142 (pbb_nb_dynamic_scattering_transform): New.
8143 (psct_dynamic_dim): New.
8144
8145 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
8146
8147 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8148 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8149 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8150 * graphite-interchange.c (build_linearized_memory_access): Same.
8151 (memory_stride_in_loop): Same.
8152
8153 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8154
8155 * graphite-dependences.c (pddr_original_scattering): New.
8156 (graphite_legal_transform_dr): Call pddr_original_scattering.
8157 (dot_deps_1): New.
8158 (dot_deps): New.
8159 * graphite-dependences.h (dot_deps): Declared.
8160 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8161 (print_pdr): Print PDR_ID.
8162 * graphite-poly.h (struct poly_dr): Add field id.
8163 (PDR_ID): New.
8164 (pbb_index): New.
8165 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8166
8167 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8168
8169 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8170 not delete the original dependence relation.
8171
8172 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8173
8174 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8175 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8176 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8177 (free_poly_ddr): New.
8178 (pddr_is_empty): New.
8179 (dependence_polyhedron_1): Now returns a poly_ddr_p.
8180 (dependence_polyhedron): Same. Remove useless gcc_assert.
8181 Remove fprintfs.
8182 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8183 (graphite_carried_dependence_level_k): Call pddr_is_empty.
8184 * graphite-dependences.h (enum poly_dependence_kind): New.
8185 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
8186 (PDRP_SOURCE): Renamed PDDR_SOURCE.
8187 (PDRP_SINK): Renamed PDDR_SINK.
8188 (PDRP_DDP): Renamed PDDR_DDP.
8189 (PDDR_KIND): New.
8190 (free_poly_ddr): Declared.
8191 * graphite-poly.c (new_scop): Use the new hash function names.
8192 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8193 into original_pddrs.
8194 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8195
8196 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8197
8198 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8199 bounds with LT_EXPR to make niter analysis more precise on code
8200 generated by Graphite.
8201
8202 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
8203
8204 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8205 (graphite_legal_transform_bb): Same.
8206 (poly_drs_may_alias_p): Same.
8207
8208 2009-08-28 Richard Guenther <rguenther@suse.de>
8209
8210 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8211
8212 2009-08-28 Jan Beulich <jbeulich@novell.com>
8213
8214 * config/i386/netware.c: Include langhooks.h.
8215 (i386_nlm_encode_section_info): Simplify.
8216 (netware_override_options): Delete.
8217 * config/i386/netware.h (netware_override_options): Delete
8218 declaration.
8219 (OVERRIDE_OPTIONS): Delete definition.
8220 (SUBTARGET_OVERRIDE_OPTIONS): Define.
8221 (ASM_COMMENT_START): Define.
8222 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8223
8224 2009-08-28 Jan Beulich <jbeulich@novell.com>
8225
8226 * configure.ac: For in-tree ld, do a plain version check to
8227 determine whether comdat groups are supported.
8228 * configure: Regenerate.
8229
8230 2009-08-28 Olivier Hainque <hainque@adacore.com>
8231
8232 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8233 always defined. Reflect definition or absence of such for
8234 COLLECT_EXPORT_LIST. Readability helper.
8235 (scanfilter): New enum, to help control what symbols
8236 are to be considered or ignored by scan_prog_file.
8237 (enum pass): Rename as "scanpass", moved together with scanfilter
8238 prior to scan_prog_file's prototype.
8239 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8240 Group prototype with the scanpass/scanfilter definitions, factorize
8241 head comments for the several implementations at the prototype.
8242 (main): Reorganize the first pass link control to let AIX
8243 drag only the needed frame tables in executables. Prevent
8244 frame tables collection during the scan aimed at static ctors.
8245 Pre-link and scan for frame tables later to compensate.
8246 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8247 A C statement to issue assembly directives that create a reference
8248 to the given DWARF table identifier label from the current function
8249 section.
8250 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8251 to differentiate first time section entry. Only emit a .data
8252 tables start identifier label the first time around.
8253 (switch_to_frame_table_section): New function. Helper for
8254 output_call_frame_info to switch possibly BACK into the eh_frame
8255 or the debug_frame section depending on FOR_EH.
8256 (output_call_frame_info): Use helper to first enter the proper
8257 frame section.
8258 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8259 emit a link to the frame table start label from each function
8260 section.
8261 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8262 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8263 * config/rs6000/rs6000-protos.h: Declare it.
8264 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8265
8266 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8267
8268 * config/sh/sh.c (split_branches): Check the result of
8269 next_active_insn.
8270
8271 2009-08-27 Steve Ellcey <sje@cup.hp.com>
8272
8273 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8274 using -pthread -fopenmp
8275
8276 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
8277
8278 * doc/service.texi (service directory): Update URL.
8279
8280 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
8281
8282 PR rtl-optimization/40861
8283 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8284 extract word from a multi-word subreg for negative byte positions.
8285
8286 2009-08-27 Tristan Gingold <gingold@adacore.com>
8287 Douglas B Rupp <rupp@gnat.com>
8288
8289 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
8290 (SECTION_VMS_OVERLAY): Define.
8291 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
8292 attribute.
8293 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
8294 for common_object.
8295 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
8296 common_object declarations.
8297 (ia64_section_type_flags): Set section flag for common_object.
8298 * config/ia64/ia64-protos.h
8299 (ia64_vms_output_aligned_decl_common): Declare.
8300 (ia64_vms_elf_asm_named_section): Declare.
8301
8302 2009-08-27 Michael Matz <matz@suse.de>
8303
8304 * expr.c (expand_expr_real_2): New function taking exploded
8305 unary or binary expression, split out from ...
8306 (expand_expr_real_1): ... here. Move over all unary/binary
8307 switch parts to above function, in particular these codes:
8308 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8309 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8310 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8311 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8312 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8313 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8314 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8315 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8316 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8317 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8318 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8319 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
8320 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
8321 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
8322 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
8323 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
8324 VEC_PACK_FIX_TRUNC_EXPR.
8325 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
8326 full expression.
8327
8328 2009-08-27 Richard Guenther <rguenther@suse.de>
8329
8330 * gengtype.c (main): Handle uint64_t.
8331 * ipa-utils.c (get_base_var): Indent properly.
8332 * tree-ssa-live.c (debug_scope_block): New function.
8333 * tree-flow.h (debug_scope_block): Declare.
8334 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
8335 * basic-block.h (enum profile_status): Rename to
8336 enum profile_status_d.
8337 (x_profile_status): Adjust type.
8338
8339 2009-08-27 Dodji Seketeli <dodji@redhat.com>
8340
8341 PR debug/41170
8342 * dwarf2out.c (get_context_die): Declare this static function.
8343 (gen_type_die_with_usage): Make sure a DIE is a generated for
8344 the context of a typedef.
8345
8346 2009-08-26 Anatoly Sokolov <aesok@post.ru>
8347
8348 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8349 switch.
8350
8351 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
8352
8353 * config/mips/mips-protos.h (mips_output_sync): Declare.
8354 (mips_sync_loop_insns): Likewise.
8355 (mips_output_sync_loop): Replace first two parameters with an rtx.
8356 * config/mips/mips.c (mips_multi_member): New structure.
8357 (mips_multi_members): New variable.
8358 (mips_multi_start): New function.
8359 (mips_multi_add): Likewise.
8360 (mips_multi_add_insn): Likewise.
8361 (mips_multi_add_label): Likewise.
8362 (mips_multi_last_index): Likewise.
8363 (mips_multi_copy_insn): Likewise.
8364 (mips_multi_set_operand): Likewise.
8365 (mips_multi_write): Likewise.
8366 (mips_print_operand_punctuation): Remove '%|' and '%-'.
8367 (mips_init_print_operand_punct): Update accordingly.
8368 (mips_start_ll_sc_sync_block): New function.
8369 (mips_end_ll_sc_sync_block): Likewise.
8370 (mips_output_sync): Likewise.
8371 (mips_sync_insn1_template): Likewise.
8372 (mips_sync_insn2_template): Likewise.
8373 (mips_get_sync_operand): Likewise.
8374 (mips_process_sync_loop): Likewise.
8375 (mips_output_sync_loop): Use mips_process_sync_loop.
8376 (mips_sync_loop_insns): New function.
8377 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8378 (MIPS_COMPARE_AND_SWAP_12): Likewise.
8379 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8380 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8381 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8382 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8383 (MIPS_SYNC_OLD_OP_12): Likewise.
8384 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8385 (MIPS_SYNC_NEW_OP_12): Likewise.
8386 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8387 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8388 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8389 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8390 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8391 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8392 * config/mips/mips.md (sync_mem): New attribute.
8393 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8394 (sync_exclusive_mask, sync_required_oldval): Likewise.
8395 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8396 (sync_release_barrier): Likewise.
8397 (length): Handle sync loops.
8398 (sync): Use mips_output_sync.
8399 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8400 (sync_compare_and_swap<mode>): Set the new sync_* attributes
8401 and use mips_output_sync_loop.
8402 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8403 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8404 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8405 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8406 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8407 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8408 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8409 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8410 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8411
8412 2009-08-26 Richard Guenther <rguenther@suse.de>
8413
8414 PR middle-end/41163
8415 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8416 the types to not match.
8417 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8418 verification.
8419 * tree-ssa.c (useless_type_conversion_p): Conversions to
8420 pointers to unprototyped functions are useless.
8421
8422 2009-08-26 Richard Guenther <rguenther@suse.de>
8423
8424 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8425 whole-program condition, prepare to be called for non-globals.
8426 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8427 params build a representative with known type and track its fields.
8428
8429 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
8430
8431 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8432 clearing by a taken branch.
8433 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8434 effectively after bbro pass.
8435 (sync_nand<mode>): Ditto.
8436 (sync_old_<fetchop_name><mode>): Ditto.
8437 (sync_old_nand<mode>): Ditto.
8438 (sync_new_<fetchop_name><mode>): Dito.
8439 (sync_new_nand<mode>): Ditto.
8440 (sync_compare_and_swap<mode>_1): Ditto.
8441 (*sync_compare_and_swap<mode>): Ditto.
8442 (sync_lock_test_and_set<mode>_1): Ditto.
8443 ("sync_lock_test_and_set<mode>): Ditto.
8444
8445 2009-08-25 Douglas B Rupp <rupp@gnat.com>
8446
8447 * hwint.h (HOST_LONG_FORMAT): New macro
8448 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8449 Use HOST_PTR_PRINTF.
8450 * system.h (HOST_PTR_PRINTF): Resurrect old macro
8451 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8452 (HOST_PTR_PRINTF): Document.
8453
8454 2009-08-25 Jan Hubicka <jh@suse.cz>
8455
8456 * config/i386/bmmintrin.h: Replace by #error.
8457
8458 Revert:
8459 Michael Meissner <michael.meissner@amd.com>
8460 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8461 Tony Linthicum <tony.linthicum@amd.com>
8462
8463 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8464 (TARGET_ROUND): New macro for the round/ptest instructions which
8465 are shared between SSE4.1 and SSE5.
8466 (OPTION_MASK_ISA_ROUND): Ditto.
8467 (OPTION_ISA_ROUND): Ditto.
8468 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8469 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8470
8471 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8472 (-mfused-madd): New switch to give users control over whether the
8473 compiler optimizes to use the multiply/add SSE5 instructions.
8474
8475 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8476 (ix86_handle_option): Turn off 3dnow if -msse5.
8477 (override_options): Add SSE5 support.
8478 (print_operand): %Y prints comparison codes for SSE5 com/pcom
8479 instructions.
8480 (ix86_expand_sse_movcc): Add SSE5 support.
8481 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8482 vector type to the next largest size.
8483 (ix86_expand_sse5_pack): New function to use pperm to pack a
8484 vector type to the next smallest size.
8485 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8486 (IX86_BUILTIN_FMADDSD): Ditto.
8487 (IX86_BUILTIN_FMADDPS): Ditto.
8488 (IX86_BUILTIN_FMADDPD): Ditto.
8489 (IX86_BUILTIN_FMSUBSS): Ditto.
8490 (IX86_BUILTIN_FMSUBSD): Ditto.
8491 (IX86_BUILTIN_FMSUBPS): Ditto.
8492 (IX86_BUILTIN_FMSUBPD): Ditto.
8493 (IX86_BUILTIN_FNMADDSS): Ditto.
8494 (IX86_BUILTIN_FNMADDSD): Ditto.
8495 (IX86_BUILTIN_FNMADDPS): Ditto.
8496 (IX86_BUILTIN_FNMADDPD): Ditto.
8497 (IX86_BUILTIN_FNMSUBSS): Ditto.
8498 (IX86_BUILTIN_FNMSUBSD): Ditto.
8499 (IX86_BUILTIN_FNMSUBPS): Ditto.
8500 (IX86_BUILTIN_FNMSUBPD): Ditto.
8501 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8502 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8503 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8504 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8505 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8506 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8507 (IX86_BUILTIN_PPERM): Ditto.
8508 (IX86_BUILTIN_PERMPS): Ditto.
8509 (IX86_BUILTIN_PERMPD): Ditto.
8510 (IX86_BUILTIN_PMACSSWW): Ditto.
8511 (IX86_BUILTIN_PMACSWW): Ditto.
8512 (IX86_BUILTIN_PMACSSWD): Ditto.
8513 (IX86_BUILTIN_PMACSWD): Ditto.
8514 (IX86_BUILTIN_PMACSSDD): Ditto.
8515 (IX86_BUILTIN_PMACSDD): Ditto.
8516 (IX86_BUILTIN_PMACSSDQL): Ditto.
8517 (IX86_BUILTIN_PMACSSDQH): Ditto.
8518 (IX86_BUILTIN_PMACSDQL): Ditto.
8519 (IX86_BUILTIN_PMACSDQH): Ditto.
8520 (IX86_BUILTIN_PMADCSSWD): Ditto.
8521 (IX86_BUILTIN_PMADCSWD): Ditto.
8522 (IX86_BUILTIN_PHADDBW): Ditto.
8523 (IX86_BUILTIN_PHADDBD): Ditto.
8524 (IX86_BUILTIN_PHADDBQ): Ditto.
8525 (IX86_BUILTIN_PHADDWD): Ditto.
8526 (IX86_BUILTIN_PHADDWQ): Ditto.
8527 (IX86_BUILTIN_PHADDDQ): Ditto.
8528 (IX86_BUILTIN_PHADDUBW): Ditto.
8529 (IX86_BUILTIN_PHADDUBD): Ditto.
8530 (IX86_BUILTIN_PHADDUBQ): Ditto.
8531 (IX86_BUILTIN_PHADDUWD): Ditto.
8532 (IX86_BUILTIN_PHADDUWQ): Ditto.
8533 (IX86_BUILTIN_PHADDUDQ): Ditto.
8534 (IX86_BUILTIN_PHSUBBW): Ditto.
8535 (IX86_BUILTIN_PHSUBWD): Ditto.
8536 (IX86_BUILTIN_PHSUBDQ): Ditto.
8537 (IX86_BUILTIN_PROTB): Ditto.
8538 (IX86_BUILTIN_PROTW): Ditto.
8539 (IX86_BUILTIN_PROTD): Ditto.
8540 (IX86_BUILTIN_PROTQ): Ditto.
8541 (IX86_BUILTIN_PROTB_IMM): Ditto.
8542 (IX86_BUILTIN_PROTW_IMM): Ditto.
8543 (IX86_BUILTIN_PROTD_IMM): Ditto.
8544 (IX86_BUILTIN_PROTQ_IMM): Ditto.
8545 (IX86_BUILTIN_PSHLB): Ditto.
8546 (IX86_BUILTIN_PSHLW): Ditto.
8547 (IX86_BUILTIN_PSHLD): Ditto.
8548 (IX86_BUILTIN_PSHLQ): Ditto.
8549 (IX86_BUILTIN_PSHAB): Ditto.
8550 (IX86_BUILTIN_PSHAW): Ditto.
8551 (IX86_BUILTIN_PSHAD): Ditto.
8552 (IX86_BUILTIN_PSHAQ): Ditto.
8553 (IX86_BUILTIN_FRCZSS): Ditto.
8554 (IX86_BUILTIN_FRCZSD): Ditto.
8555 (IX86_BUILTIN_FRCZPS): Ditto.
8556 (IX86_BUILTIN_FRCZPD): Ditto.
8557 (IX86_BUILTIN_CVTPH2PS): Ditto.
8558 (IX86_BUILTIN_CVTPS2PH): Ditto.
8559 (IX86_BUILTIN_COMEQSS): Ditto.
8560 (IX86_BUILTIN_COMNESS): Ditto.
8561 (IX86_BUILTIN_COMLTSS): Ditto.
8562 (IX86_BUILTIN_COMLESS): Ditto.
8563 (IX86_BUILTIN_COMGTSS): Ditto.
8564 (IX86_BUILTIN_COMGESS): Ditto.
8565 (IX86_BUILTIN_COMUEQSS): Ditto.
8566 (IX86_BUILTIN_COMUNESS): Ditto.
8567 (IX86_BUILTIN_COMULTSS): Ditto.
8568 (IX86_BUILTIN_COMULESS): Ditto.
8569 (IX86_BUILTIN_COMUGTSS): Ditto.
8570 (IX86_BUILTIN_COMUGESS): Ditto.
8571 (IX86_BUILTIN_COMORDSS): Ditto.
8572 (IX86_BUILTIN_COMUNORDSS): Ditto.
8573 (IX86_BUILTIN_COMFALSESS): Ditto.
8574 (IX86_BUILTIN_COMTRUESS): Ditto.
8575 (IX86_BUILTIN_COMEQSD): Ditto.
8576 (IX86_BUILTIN_COMNESD): Ditto.
8577 (IX86_BUILTIN_COMLTSD): Ditto.
8578 (IX86_BUILTIN_COMLESD): Ditto.
8579 (IX86_BUILTIN_COMGTSD): Ditto.
8580 (IX86_BUILTIN_COMGESD): Ditto.
8581 (IX86_BUILTIN_COMUEQSD): Ditto.
8582 (IX86_BUILTIN_COMUNESD): Ditto.
8583 (IX86_BUILTIN_COMULTSD): Ditto.
8584 (IX86_BUILTIN_COMULESD): Ditto.
8585 (IX86_BUILTIN_COMUGTSD): Ditto.
8586 (IX86_BUILTIN_COMUGESD): Ditto.
8587 (IX86_BUILTIN_COMORDSD): Ditto.
8588 (IX86_BUILTIN_COMUNORDSD): Ditto.
8589 (IX86_BUILTIN_COMFALSESD): Ditto.
8590 (IX86_BUILTIN_COMTRUESD): Ditto.
8591 (IX86_BUILTIN_COMEQPS): Ditto.
8592 (IX86_BUILTIN_COMNEPS): Ditto.
8593 (IX86_BUILTIN_COMLTPS): Ditto.
8594 (IX86_BUILTIN_COMLEPS): Ditto.
8595 (IX86_BUILTIN_COMGTPS): Ditto.
8596 (IX86_BUILTIN_COMGEPS): Ditto.
8597 (IX86_BUILTIN_COMUEQPS): Ditto.
8598 (IX86_BUILTIN_COMUNEPS): Ditto.
8599 (IX86_BUILTIN_COMULTPS): Ditto.
8600 (IX86_BUILTIN_COMULEPS): Ditto.
8601 (IX86_BUILTIN_COMUGTPS): Ditto.
8602 (IX86_BUILTIN_COMUGEPS): Ditto.
8603 (IX86_BUILTIN_COMORDPS): Ditto.
8604 (IX86_BUILTIN_COMUNORDPS): Ditto.
8605 (IX86_BUILTIN_COMFALSEPS): Ditto.
8606 (IX86_BUILTIN_COMTRUEPS): Ditto.
8607 (IX86_BUILTIN_COMEQPD): Ditto.
8608 (IX86_BUILTIN_COMNEPD): Ditto.
8609 (IX86_BUILTIN_COMLTPD): Ditto.
8610 (IX86_BUILTIN_COMLEPD): Ditto.
8611 (IX86_BUILTIN_COMGTPD): Ditto.
8612 (IX86_BUILTIN_COMGEPD): Ditto.
8613 (IX86_BUILTIN_COMUEQPD): Ditto.
8614 (IX86_BUILTIN_COMUNEPD): Ditto.
8615 (IX86_BUILTIN_COMULTPD): Ditto.
8616 (IX86_BUILTIN_COMULEPD): Ditto.
8617 (IX86_BUILTIN_COMUGTPD): Ditto.
8618 (IX86_BUILTIN_COMUGEPD): Ditto.
8619 (IX86_BUILTIN_COMORDPD): Ditto.
8620 (IX86_BUILTIN_COMUNORDPD): Ditto.
8621 (IX86_BUILTIN_COMFALSEPD): Ditto.
8622 (IX86_BUILTIN_COMTRUEPD): Ditto.
8623 (IX86_BUILTIN_PCOMEQUB): Ditto.
8624 (IX86_BUILTIN_PCOMNEUB): Ditto.
8625 (IX86_BUILTIN_PCOMLTUB): Ditto.
8626 (IX86_BUILTIN_PCOMLEUB): Ditto.
8627 (IX86_BUILTIN_PCOMGTUB): Ditto.
8628 (IX86_BUILTIN_PCOMGEUB): Ditto.
8629 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
8630 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
8631 (IX86_BUILTIN_PCOMEQUW): Ditto.
8632 (IX86_BUILTIN_PCOMNEUW): Ditto.
8633 (IX86_BUILTIN_PCOMLTUW): Ditto.
8634 (IX86_BUILTIN_PCOMLEUW): Ditto.
8635 (IX86_BUILTIN_PCOMGTUW): Ditto.
8636 (IX86_BUILTIN_PCOMGEUW): Ditto.
8637 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
8638 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
8639 (IX86_BUILTIN_PCOMEQUD): Ditto.
8640 (IX86_BUILTIN_PCOMNEUD): Ditto.
8641 (IX86_BUILTIN_PCOMLTUD): Ditto.
8642 (IX86_BUILTIN_PCOMLEUD): Ditto.
8643 (IX86_BUILTIN_PCOMGTUD): Ditto.
8644 (IX86_BUILTIN_PCOMGEUD): Ditto.
8645 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
8646 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
8647 (IX86_BUILTIN_PCOMEQUQ): Ditto.
8648 (IX86_BUILTIN_PCOMNEUQ): Ditto.
8649 (IX86_BUILTIN_PCOMLTUQ): Ditto.
8650 (IX86_BUILTIN_PCOMLEUQ): Ditto.
8651 (IX86_BUILTIN_PCOMGTUQ): Ditto.
8652 (IX86_BUILTIN_PCOMGEUQ): Ditto.
8653 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
8654 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
8655 (IX86_BUILTIN_PCOMEQB): Ditto.
8656 (IX86_BUILTIN_PCOMNEB): Ditto.
8657 (IX86_BUILTIN_PCOMLTB): Ditto.
8658 (IX86_BUILTIN_PCOMLEB): Ditto.
8659 (IX86_BUILTIN_PCOMGTB): Ditto.
8660 (IX86_BUILTIN_PCOMGEB): Ditto.
8661 (IX86_BUILTIN_PCOMFALSEB): Ditto.
8662 (IX86_BUILTIN_PCOMTRUEB): Ditto.
8663 (IX86_BUILTIN_PCOMEQW): Ditto.
8664 (IX86_BUILTIN_PCOMNEW): Ditto.
8665 (IX86_BUILTIN_PCOMLTW): Ditto.
8666 (IX86_BUILTIN_PCOMLEW): Ditto.
8667 (IX86_BUILTIN_PCOMGTW): Ditto.
8668 (IX86_BUILTIN_PCOMGEW): Ditto.
8669 (IX86_BUILTIN_PCOMFALSEW): Ditto.
8670 (IX86_BUILTIN_PCOMTRUEW): Ditto.
8671 (IX86_BUILTIN_PCOMEQD): Ditto.
8672 (IX86_BUILTIN_PCOMNED): Ditto.
8673 (IX86_BUILTIN_PCOMLTD): Ditto.
8674 (IX86_BUILTIN_PCOMLED): Ditto.
8675 (IX86_BUILTIN_PCOMGTD): Ditto.
8676 (IX86_BUILTIN_PCOMGED): Ditto.
8677 (IX86_BUILTIN_PCOMFALSED): Ditto.
8678 (IX86_BUILTIN_PCOMTRUED): Ditto.
8679 (IX86_BUILTIN_PCOMEQQ): Ditto.
8680 (IX86_BUILTIN_PCOMNEQ): Ditto.
8681 (IX86_BUILTIN_PCOMLTQ): Ditto.
8682 (IX86_BUILTIN_PCOMLEQ): Ditto.
8683 (IX86_BUILTIN_PCOMGTQ): Ditto.
8684 (IX86_BUILTIN_PCOMGEQ): Ditto.
8685 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
8686 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
8687 (enum multi_arg_type): New enum for describing the various SSE5
8688 intrinsic argument types.
8689 (bdesc_multi_arg): New table for SSE5 intrinsics.
8690 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
8691 (ix86_expand_multi_arg_builtin): New function for creating SSE5
8692 intrinsics.
8693 (ix86_expand_builtin): Add SSE5 intrinsic support.
8694 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
8695 operand instructions.
8696 (ix86_expand_sse5_multiple_memory): New function to split the
8697 second memory reference from SSE5 instructions.
8698 (type_has_variadic_args_p): Delete in favor of stdarg_p.
8699 (ix86_return_pops_args): Use stdarg_p to determine if the function
8700 has variable arguments.
8701 (ix86_setup_incoming_varargs): Ditto.
8702 (x86_this_parameter): Ditto.
8703
8704 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
8705 declaration.
8706 (ix86_expand_sse5_pack): Ditto.
8707 (ix86_sse5_valid_op_p): Ditto.
8708 (ix86_expand_sse5_multiple_memory): Ditto.
8709
8710 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
8711 constant for SSE5 support.
8712 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
8713 (UNSPEC_SSE5_TRUEFALSE): Ditto.
8714 (UNSPEC_SSE5_PERMUTE): Ditto.
8715 (UNSPEC_SSE5_ASHIFT): Ditto.
8716 (UNSPEC_SSE5_LSHIFT): Ditto.
8717 (UNSPEC_FRCZ): Ditto.
8718 (UNSPEC_CVTPH2PS): Ditto.
8719 (UNSPEC_CVTPS2PH): Ditto.
8720 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
8721 (PCOM_TRUE): Ditto.
8722 (COM_FALSE_S): Ditto.
8723 (COM_FALSE_P): Ditto.
8724 (COM_TRUE_S): Ditto.
8725 (COM_TRUE_P): Ditto.
8726 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
8727 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
8728 types.
8729 (memory attribute): Ditto.
8730 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8731 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
8732 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8733 (floor<mode>2): Ditto.
8734 (ceil<mode>2): Ditto.
8735 (btrunc<mode>2): Ditto.
8736 (nearbyintdf2): Ditto.
8737 (nearbyintsf2): Ditto.
8738 (sse_setccsf): Disable if SSE5.
8739 (sse_setccdf): Ditto.
8740 (sse5_setcc<mode>): New support for SSE5 conditional move.
8741 (sse5_pcmov_<mode>): Ditto.
8742
8743 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
8744 (SSEMODEF4): Ditto.
8745 (SSEMODEF2P): Ditto.
8746 (ssemodesuffixf4): New mode attribute for SSE5.
8747 (ssemodesuffixf2s): Ditto.
8748 (ssemodesuffixf2c): Ditto.
8749 (sserotatemax): Ditto.
8750 (ssescalarmode): Ditto.
8751 (sse_maskcmpv4sf3): Disable if SSE5.
8752 (sse_maskcmpv2df3): Ditto.
8753 (sse_vmmaskcmpv4sf3): Ditto.
8754 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
8755 (sse5_vmfmadd<mode>4): Ditto.
8756 (sse5_fmsub<mode>4): Ditto.
8757 (sse5_vmfmsub<mode>4): Ditto.
8758 (sse5_fnmadd<mode>4): Ditto.
8759 (sse5_vmfnmadd<mode>4): Ditto.
8760 (sse5_fnmsub<mode>4): Ditto.
8761 (sse5_vmfnmsub<mode>4): Ditto.
8762 (sse5i_fmadd<mode>4): Ditto.
8763 (sse5i_fmsub<mode>4): Ditto.
8764 (sse5i_fnmadd<mode>4): Ditto.
8765 (sse5i_fnmsub<mode>4): Ditto.
8766 (sse5i_vmfmadd<mode>4): Ditto.
8767 (sse5i_vmfmsub<mode>4): Ditto.
8768 (sse5i_vmfnmadd<mode>4): Ditto.
8769 (sse5i_vmfnmsub<mode>4): Ditto.
8770 (mulv16qi3): Add SSE5 support.
8771 (mulv4si3): Ditto.
8772 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
8773 (sse2_mulv4si3): Disable if SSE5.
8774 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
8775 (sse4_1_roundps): Ditto.
8776 (sse4_1_roundsd): Ditto.
8777 (sse4_1_roundss): Ditto.
8778 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
8779 be generated.
8780 (sse_maskcmpsf3): Ditto.
8781 (sse_vmmaskcmpv4sf3): Ditto.
8782 (sse2_maskcmpv2df3): Ditto.
8783 (sse2_maskcmpdf3): Ditto.
8784 (sse2_vmmaskcmpv2df3): Ditto.
8785 (sse2_eq<mode>3): Ditto.
8786 (sse2_gt<mode>3): Ditto.
8787 (sse5_pcmov_<mode>): Add SSE5 support.
8788 (vec_unpacku_hi_v16qi): Ditto.
8789 (vec_unpacks_hi_v16qi): Ditto.
8790 (vec_unpacku_lo_v16qi): Ditto.
8791 (vec_unpacks_lo_v16qi): Ditto.
8792 (vec_unpacku_hi_v8hi): Ditto.
8793 (vec_unpacks_hi_v8hi): Ditto.
8794 (vec_unpacku_lo_v8hi): Ditto.
8795 (vec_unpacks_lo_v8hi): Ditto.
8796 (vec_unpacku_hi_v4si): Ditto.
8797 (vec_unpacks_hi_v4si): Ditto.
8798 (vec_unpacku_lo_v4si): Ditto.
8799 (vec_unpacks_lo_v4si): Ditto.
8800 (sse5_pmacsww): New SSE5 intrinsic insn.
8801 (sse5_pmacssww): Ditto.
8802 (sse5_pmacsdd): Ditto.
8803 (sse5_pmacssdd): Ditto.
8804 (sse5_pmacssdql): Ditto.
8805 (sse5_pmacssdqh): Ditto.
8806 (sse5_pmacsdqh): Ditto.
8807 (sse5_pmacsswd): Ditto.
8808 (sse5_pmacswd): Ditto.
8809 (sse5_pmadcsswd): Ditto.
8810 (sse5_pmadcswd): Ditto.
8811 (sse5_pcmov_<move>): Conditional move support on SSE5.
8812 (sse5_phaddbw): New SSE5 intrinsic insn.
8813 (sse5_phaddbd): Ditto.
8814 (sse5_phaddbq): Ditto.
8815 (sse5_phaddwd): Ditto.
8816 (sse5_phaddwq): Ditto.
8817 (sse5_phadddq): Ditto.
8818 (sse5_phaddubw): Ditto.
8819 (sse5_phaddubd): Ditto.
8820 (sse5_phaddubq): Ditto.
8821 (sse5_phadduwd): Ditto.
8822 (sse5_phadduwq): Ditto.
8823 (sse5_phaddudq): Ditto.
8824 (sse5_phsubbw): Ditto.
8825 (sse5_phsubwd): Ditto.
8826 (sse5_phsubdq): Ditto.
8827 (sse5_pperm): Ditto.
8828 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
8829 (sse5_pperm_zero_v16qi_v8hi): Ditto.
8830 (sse5_pperm_sign_v8hi_v4si): Ditto.
8831 (sse5_pperm_zero_v8hi_v4si): Ditto.
8832 (sse5_pperm_sign_v4si_v2di): Ditto.
8833 (sse5_pperm_sign_v4si_v2di): Ditto.
8834 (sse5_pperm_pack_v2di_v4si): Ditto.
8835 (sse5_pperm_pack_v4si_v8hi): Ditto.
8836 (sse5_pperm_pack_v8hi_v16qi): Ditto.
8837 (sse5_perm<mode>): New SSE5 intrinsic insn.
8838 (rotl<mode>3): Ditto.
8839 (sse5_rotl<mode>3): Ditto.
8840 (sse5_ashl<mode>3): Ditto.
8841 (sse5_lshl<mode>3): Ditto.
8842 (sse5_frcz<mode>2): Ditto.
8843 (sse5s_frcz<mode>2): Ditto.
8844 (sse5_cvtph2ps): Ditto.
8845 (sse5_cvtps2ph): Ditto.
8846 (sse5_vmmaskcmp<mode>3): Ditto.
8847 (sse5_com_tf<mode>3): Ditto.
8848 (sse5_maskcmp<mode>3): Ditto.
8849 (sse5_maskcmp_uns<mode>3): Ditto.
8850 (sse5_maskcmp_uns2<mode>3): Ditto.
8851 (sse5_pcom_tf<mode>3): Ditto.
8852
8853 * config/i386/predicates.md (sse5_comparison_float_operator):
8854 New predicate to match the comparison operators supported by
8855 the SSE5 com instruction.
8856 (ix86_comparison_int_operator): New predicate to match just the
8857 signed int comparisons.
8858 (ix86_comparison_uns_operator): New predicate to match just the
8859 unsigned int comparisons.
8860
8861 * doc/invoke.texi (-msse5): Add documentation.
8862 (-mfused-madd): Ditto.
8863
8864 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
8865
8866 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
8867 mmintrin-common.h.
8868 (x86_64-*-*): Ditto.
8869
8870 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
8871
8872 * config/i386/bmmintrin.h: New file, provide common x86 compiler
8873 intrinisics for SSE5.
8874
8875 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
8876 mmintrin-common.h.
8877
8878 * config/i386/mmintrin-common.h: New file, to contain common
8879 instructions between SSE4.1 and SSE5.
8880
8881 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
8882 FOREACH_FUNCTION_ARGS to iterate over the argument list.
8883 (gen_regparm_prefix): Ditto.
8884
8885 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
8886 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
8887 prototype_p to determine if a function is prototyped.
8888
8889 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
8890
8891 * c-common.c (c_common_reswords) add the alignof keyword,
8892 with same RID as __alignof and __alignof__
8893
8894 2009-08-25 Anatoly Sokolov <aesok@post.ru>
8895
8896 * hooks.h (hook_bool_const_int_const_int_true): Declare.
8897 * hooks.c (hook_bool_const_int_const_int_true): New function.
8898 * target.h (struct gcc_target): Add can_eliminate field.
8899 * target-def.h (TARGET_CAN_ELIMINATE): Define.
8900 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
8901 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
8902 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
8903 (elim_table): Revise comment.
8904 * system.h (CAN_ELIMINATE): Poison.
8905 * defaults.h (CAN_ELIMINATE): Remove.
8906 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
8907
8908 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
8909 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
8910 Define macro.
8911 (alpha_vms_can_eliminate): Declare as static, change return type to
8912 bool.
8913 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
8914
8915 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
8916 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
8917 (arm_can_eliminate): New function.
8918
8919 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
8920 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
8921 (avr_can_eliminate): Declare as static.
8922 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
8923
8924 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
8925 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
8926 (bfin_can_eliminate): New function.
8927
8928 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
8929 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
8930 (crx_can_eliminate): New function.
8931
8932 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
8933 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
8934 (fr30_can_eliminate): New function.
8935
8936 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
8937 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
8938 (frv_can_eliminate): New function.
8939
8940 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
8941 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
8942 (h8300_can_eliminate): New function.
8943
8944 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
8945 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
8946 (i386_can_eliminate): Declare as static, change return type to bool.
8947 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
8948
8949 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
8950 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
8951 (ia64_can_eliminate): New function.
8952
8953 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
8954 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
8955 (iq2000_can_eliminate): New function.
8956
8957 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
8958 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
8959 (m32r_can_eliminate): New function.
8960
8961 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
8962 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
8963 (m68hc11_can_eliminate): New function.
8964
8965 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
8966 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
8967 (m68k_can_eliminate): New function.
8968
8969 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
8970 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
8971 (mep_can_eliminate): New function.
8972
8973 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
8974 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
8975 (mips_can_eliminate): New function.
8976
8977 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
8978 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
8979 (rs6000_can_eliminate): New function.
8980
8981 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
8982 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
8983 (s390_can_eliminate): Declare as static.
8984 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
8985
8986 * config/score/score.h (CAN_ELIMINATE): Remove macro.
8987 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
8988 (score_can_eliminate): New function.
8989
8990 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
8991 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
8992 (sparc_can_eliminate): Declare as static.
8993 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
8994
8995 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
8996 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
8997 (xstormy16_can_eliminate): New function.
8998
8999 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
9000 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
9001 (v850_can_eliminate): New function.
9002
9003 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
9004
9005 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
9006 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
9007 (*movdfcc_ext[1234]): Disable for IEEE mode.
9008
9009 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
9010
9011 * gimplify.c (prepare_gimple_addressable): New static function.
9012 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
9013 it addressable.
9014 (gimplify_addr_expr): Invoke it similarly on the operand instead of
9015 manually fiddling with it.
9016
9017 2009-08-25 Michael Matz <matz@suse.de>
9018
9019 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
9020 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
9021 full expression.
9022 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
9023 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
9024 (do_jump): Split out code for simple binary comparisons into ...
9025 (do_jump_1): ... this, taking the individual operands and code.
9026 Change callers to helper function above accordingly.
9027 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
9028 comparisons.
9029
9030 2009-08-25 Michael Matz <matz@suse.de>
9031
9032 * expr.h (struct separate_ops, sepops): New type for passing
9033 around an exploded simple expression.
9034 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
9035 Use this structure instead of expression tree.
9036 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
9037 expression, only its type.
9038 (expand_vec_cond_expr): Take type and individual operands instead
9039 of full expression.
9040 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
9041 expand_vec_shift_expr): Change prototype accordingly.
9042 * tree-vect-stmts.c (vectorizable_condition): Change call of
9043 expand_vec_cond_expr_p to pass only type.
9044 * expr.c (do_store_flags): Change prototype and implementation
9045 to take an exploded expression.
9046 (expand_expr_real_1): New local ops initialized with details
9047 of the full expression. Use it instead of full
9048 expression in calls to do_store_flags, expand_vec_cond_expr,
9049 expand_widen_pattern_expr and expand_vec_shift_expr.
9050
9051 2009-08-25 Michael Matz <matz@suse.de>
9052
9053 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
9054 treeop2 initialized with first three operands of the full expression.
9055 Substitute all TREE_OPERAND (exp, [012]) calls with them.
9056
9057 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
9058
9059 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
9060 (__gthread_objc_condition_allocate): Mark arguments as unused.
9061 (__gthread_objc_condition_deallocate): Likewise.
9062 (__gthread_objc_condition_wait): Likewise.
9063 (__gthread_objc_condition_broadcast): Likewise.
9064 (__gthread_objc_condition_signal): Likewise.
9065 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
9066 (__gthread_objc_thread_id): Likewise.
9067
9068 2009-08-25 Janus Weil <janus@gcc.gnu.org>
9069
9070 PR middle-end/41149
9071 * tree-pretty-print.c (print_call_name): Print the correct call name
9072 for procedure pointer components.
9073
9074 2009-08-24 Steve Ellcey <sje@cup.hp.com>
9075
9076 * config/ia64/ia64.c (ia64_promote_function_mode): Call
9077 default_promote_function_mode when not VMS.
9078
9079 2009-08-24 Olivier Hainque <hainque@adacore.com>
9080
9081 * convert.c (convert_to_integer): Don't assume an input pointer is
9082 POINTER_SIZE wide. Fetch from the type instead.
9083
9084 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9085
9086 * configure.ac (AC_PREREQ): Bump to 2.64.
9087
9088 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
9089
9090 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
9091 (process_command): Don't search standard_exec_prefix_1 and
9092 standard_exec_prefix_2.
9093
9094 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9095
9096 * config/arm/arm.c (output_return_instruction): Handle for
9097 unified syntax.
9098
9099 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9100
9101 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
9102
9103 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9104
9105 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
9106 (*arm_movdf_vfp): Likewise.
9107
9108 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9109
9110 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
9111 (vashr<mode>3): Rename from ashr<mode>3.
9112 (vlshr<mode>3): Rename from lshr<mode>3.
9113
9114 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
9115
9116 PR/40786
9117 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
9118 (check_format_info_main): Use scalar_identify_flag.
9119 (check_format_types): Check for scalar size identity if
9120 scalar_identify_flag is set.
9121 (printf_length_specs): Extend by new field.
9122 (asm_fprintf_length_specs): Likewise.
9123 (gcc_diag_length_specs): Likewise.
9124 (scanf_length_specs): Likewise.
9125 (strfmon_length_specs): Likewise.
9126 (gcc_gfc_length_specs): Likewise.
9127 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9128 (ms_printf_flag_specs): Likewise.
9129 * c-format.h (format_length_info): Add new member scalar_identity_flag.
9130
9131 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
9132
9133 PR target/40718
9134 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
9135 (*call_value_pop_1): Ditto.
9136 (*sibcall_pop_1): New insn pattern.
9137 (*sibcall_value_pop_1): Ditto.
9138
9139 2009-08-23 Alan Modra <amodra@bigpond.net.au>
9140
9141 PR target/41081
9142 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9143 ashrsi3_64): New.
9144
9145 2009-08-23 Alan Modra <amodra@bigpond.net.au>
9146
9147 PR target/41081
9148 * fwprop.c (try_fwprop_subst): Allow multiple sets.
9149 (get_reg_use_in): New function.
9150 (forward_propagate_subreg): Propagate through subreg of zero_extend
9151 or sign_extend.
9152
9153 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
9154
9155 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9156 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9157
9158 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9159
9160 * configure.ac: Remove --with-datarootdir, --with-docdir,
9161 --with-htmldir switches. No need to call AC_SUBST for
9162 datarootdir, docdir, htmldir any more.
9163 * configure: Regenerate.
9164 * doc/install.texi (Configuration): Document --datarootdir,
9165 --docdir, --htmldir, --pdfdir; update documentation for
9166 --infodir, --mandir.
9167 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9168 M4 to 1.4.6.
9169
9170 * aclocal.m4: Regenerate.
9171 * config.in: Regenerate.
9172 * configure: Regenerate.
9173
9174 2009-08-21 Douglas B Rupp <rupp@gnat.com>
9175 Olivier Hainque <hainque@adacore.com>
9176
9177 * config/ia64/ia64.c: Include libfuncs.h.
9178 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9179 (ia64_expand_call): Use reg 25 on VMS.
9180 (ia64_initialize_trampoline): Fix for VMS ABI.
9181 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9182 (ia64_function_arg): Initialize reg 25 on VMS.
9183 Fix OpenVMS ABI issues for varargs.
9184 For OpenVMS, emit the Argument Information register set in the
9185 incoming/sibcall case as well.
9186 (ia64_arg_type): New function.
9187 (ia64_function_arg_advance): Keep track of cum->words.
9188 Fix OpenVMS ABI issues for varargs.
9189 (ia64_function_value): On VMS, promote mode of non-aggregate types.
9190 (ia64_override_options): Set flag_no_common on VMS.
9191 (ia64_init_builtins): Disable FWRITE builtin.
9192 (ia64_asm_output_external): Call DO_CRTL_NAMES.
9193 (ia64_vms_init_libfuncs): Add decc$ routines.
9194 (ia64_vms_valid_pointer_mode): New function.
9195 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9196 (ia64_promote_function_mode): New function
9197 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9198 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9199 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9200 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9201 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9202 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9203 Suppress trailing '#' if VALUE is numeric.
9204 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9205 ia64_promote_function_mode.
9206 (TARGET_VALID_POINTER_MODE): Define.
9207
9208 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9209
9210 PR target/40671
9211 * config/rs6000/rs6000.c (rs6000_override_options): Use
9212 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
9213
9214 PR target/41145
9215 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
9216 reporting of vector + decimal/boolean/complex error.
9217
9218 2009-08-21 Jakub Jelinek <jakub@redhat.com>
9219
9220 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9221 __vector double TYPE_DECL.
9222
9223 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
9224
9225 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
9226 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9227 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9228 to pointer to enum machine_mode. Update all callers as needed.
9229
9230 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
9231
9232 * config/alpha/alpha.md (exception_receiver): Emit alternative
9233 GP load sequence if flag_reorder_blocks_and_partition is set.
9234 (*exception_receiver_2): Also enable when
9235 flag_reorder_blocks_and_partition is set.
9236
9237 2009-08-20 Matt Rice <ratmice@gmail.com>
9238 Diego Novillo <dnovillo@google.com>
9239
9240 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9241 tree-ssa-sccvn.h.
9242
9243 2009-08-20 Richard Guenther <rguenther@suse.de>
9244
9245 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
9246 * c-tree.h (c_dup_lang_specific_decl): Remove.
9247 (struct lang_decl, struct lang_type): Move definitions ...
9248 * c-lang.h: ... here. New file.
9249 * c-decl.c: Include c-lang.h.
9250 (c_dup_lang_specific_decl): Remove.
9251 * c-typeck.c: Include c-lang.h.
9252 * Makefile.in (c-decl.o): Add c-lang.h dependency.
9253 (c-typeck.o): Likewise.
9254 * c-config-lang.in (gtfiles): Add c-lang.h.
9255 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9256 like c-tree.h.
9257
9258 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
9259
9260 * config/alpha/alpha.c (alpha_end_function): Do not clear
9261 crtl->emit structure and free insn locators if cfun->is_thunk is true,
9262 this is now handled in generic code.
9263
9264 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
9265
9266 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9267 (s390_z10_fix_long_loop_prediction): New function.
9268 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9269 (s390_reorg): Walk over the INSNs and invoke
9270 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9271
9272 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
9273
9274 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9275 "*brx_64bit", "*brx_31bit"): New patterns.
9276 * config/s390/s390.c ('E'): New output modifier.
9277
9278 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9279 Richard Earnshaw <richard.earnshaw@arm.com>
9280
9281 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9282 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
9283
9284 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9285
9286 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9287 patterns.
9288 * pa.c (emit_move_sequence): Check if address of operand1 is valid
9289 for mode mode of operand0 when doing secondary reload for SAR.
9290
9291 2009-08-19 Jakub Jelinek <jakub@redhat.com>
9292
9293 PR middle-end/41123
9294 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9295 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9296
9297 2009-08-19 Jason Merrill <jason@redhat.com>
9298
9299 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9300 supported template depth in C++0x.
9301
9302 2009-08-19 Jakub Jelinek <jakub@redhat.com>
9303
9304 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9305 free_after_compilation.
9306 * config/score/score7.c (score7_output_mi_thunk): Likewise.
9307 * config/score/score3.c (score3_output_mi_thunk): Likewise.
9308 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9309 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9310 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9311 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9312 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9313
9314 2009-08-19 Ian Lance Taylor <iant@google.com>
9315
9316 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9317 of (plus (mult (neg B) C) A).
9318
9319 2009-08-18 Michael Matz <matz@suse.de>
9320
9321 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
9322 instead of comparing TYPE_MAIN_VARIANT for equality.
9323 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
9324 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
9325 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
9326 * gimplify.c (goa_lhs_expr_p): Ditto and use
9327 STRIP_USELESS_TYPE_CONVERSION.
9328
9329 2009-08-18 Michael Matz <matz@suse.de>
9330
9331 * tree-ssa-structalias.c (create_variable_info_for): Also mark
9332 first field in a struct.
9333 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
9334
9335 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
9336
9337 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9338 locators before emit_insn is called. Remove assert that
9339 cfun->is_thunk.
9340 (alpha_end_function): Clear crtl->emit structure and free insn
9341 locators if cfun->is_thunk is true.
9342
9343 2009-08-18 Jason Merrill <jason@redhat.com>
9344
9345 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9346 type if available.
9347 * configure.ac: Test for it.
9348 * configure, config.in: Regenerate.
9349 * doc/install.texi: Document --enable-gnu-unique-object.
9350
9351 2009-08-18 Richard Guenther <rguenther@suse.de>
9352
9353 PR middle-end/41094
9354 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9355 pow(x,y*z) only if x is nonnegative.
9356
9357 2009-08-18 Jakub Jelinek <jakub@redhat.com>
9358
9359 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9360 on jumps.
9361
9362 PR target/40971
9363 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9364 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9365
9366 2009-08-17 DJ Delorie <dj@redhat.com>
9367
9368 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9369 * config/m32c/prologue.md (epilogue_freit): New.
9370 (fset_b): New.
9371 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9372 (bank_switch_p): Likewise.
9373 (fast_interrupt_p): Likewise.
9374 (interrupt_p): Likewise.
9375 (m32c_conditional_register_usage): Round memregs size up.
9376 (need_to_save): We only need to save $a0 when we use ENTER.
9377 (interrupt_p): Check for fast_interrupt too.
9378 (bank_switch_p): New.
9379 (fast_interrupt_p): New.
9380 (m32c_attribute_table): Add bank_switch and fast_interrupt.
9381 (m32c_emit_prolog): Support bank switching and fast interrupts.
9382 * doc/extend.texi (Function Attributes): Add bank_switch and
9383 fast_interrupt.
9384
9385 2009-08-17 Douglas B Rupp <rupp@gnat.com>
9386
9387 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9388 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9389
9390 2009-08-16 Douglas B Rupp <rupp@gnat.com>
9391
9392 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
9393 (menu): Add IA-64/VMS Options.
9394 (IA-64/VMS Options): Likewise.
9395
9396 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9397
9398 PR target/38599
9399 * config/mips/mips.md (*lwxs): Use :P for pointer values.
9400
9401 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
9402
9403 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9404 (mips_pop_asm_switch): Likewise.
9405 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9406 with...
9407 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9408 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9409 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9410 (mips_print_operand_punctuation): Use them. Check mips_noreorder
9411 instead of set_noreorder.
9412 (mips_output_function_prologue): Use the new functions.
9413 (mips_output_function_epilogue): Likewise.
9414 (mips_need_noat_wrapper_p): New function, split out from...
9415 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9416 Use mips_push_asm_switch and mips_pop_asm_switch.
9417 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9418 and mips_pop_asm_switch.
9419 (ASM_OUTPUT_REG_POP): Likewise.
9420 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9421 Use mips_pop_asm_switch.
9422 (mips_asm_switch): New structure.
9423 (set_noreorder, set_nomacro): Replace with...
9424 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9425 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9426 instead of set_nomacro.
9427 (fix_truncsfsi2_macro): Likewise.
9428 (cprestore): Likewise.
9429 (hazard): Use mips_noreorder instead of set_noreorder.
9430 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9431
9432 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
9433
9434 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
9435 from prev_active_insn.
9436
9437 2009-08-16 Anatoly Sokolov <aesok@post.ru>
9438
9439 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9440 * config/avr/avr.c (avr_override_options): Initialize
9441 avr_current_arch variable.
9442 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9443 __AVR_HAVE_16BIT_SP__ according to the device type.
9444 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9445 TARGET_TINY_STACK.
9446 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9447 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9448
9449 2009-08-16 Dodji Seketeli <dodji@redhat.com>
9450
9451 PR debug/37801
9452 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9453 generating inlined subroutine die only. We shouldn't be
9454 called for anything else.
9455 (gen_block_die): Don't generate inline subroutine debug info for
9456 abstract blocks.
9457
9458 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9459
9460 * graphite-poly.c (print_pbb): Print PBB index.
9461
9462 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
9463
9464 PR middle-end/40981
9465 * graphite-interchange.c (ppl_max_for_le): Moved...
9466 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9467 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
9468 ppl_Pointset_Powerset_C_Polyhedron_maximize.
9469 * graphite-ppl.h (ppl_max_for_le): Declared.
9470
9471 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
9472
9473 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9474 supported on all platforms.
9475 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9476 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
9477 * c-pragma.c: Likewise.
9478 * target-def.h (TARGET_INITIALIZER): Remove
9479 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9480 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9481
9482 2009-08-14 Douglas B Rupp <rupp@gnat.com>
9483
9484 * config/ia64/fde-vms.c: New file.
9485 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9486 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9487 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9488 (uw_frame_state_for): Only register a personality routine if it is
9489 known to be compatible with our expectations.
9490 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9491 Declare unw_table_entry stack variable and
9492 mod all calls to _Unwind_FindTableEntry to add arg.
9493 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9494 (_Unwind_FindTableEntry): Add arg to prototype.
9495
9496 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
9497
9498 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9499 field 'signal_pfs_loc'.
9500 (uw_frame_state_for): Remove duplicate code dealing with leaf
9501 procedures without unwind info.
9502 If in the frame after unwinding through a signal handler, restore
9503 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9504 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9505 'pfs_loc' to the AR.PFS location in the signal context; instead
9506 set 'signal_pfs_loc'.
9507 Manually generate the unwind info for the AR.PFS register.
9508 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9509 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9510 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9511 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9512 instead set 'signal_pfs_loc'.
9513 Remove code preventing the AR.PFS register from being restored
9514 from the signal context.
9515
9516 2009-08-14 Douglas B Rupp <rupp@gnat.com>
9517 Tristan Gingold <gingold@adacore.com>
9518
9519 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9520 * config/ia64/t-vms: New file.
9521 * config/ia64/vms64.h: New file.
9522 * config/ia64/vms.h: New file.
9523 * config/ia64/vms-crtinit.asm: New file.
9524 * config/ia64/vms_symvec_libgcc_s.opt: New file.
9525 * config/ia64/vms-unwind.h: New file.
9526
9527 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
9528
9529 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9530 TFmode compares.
9531
9532 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9533
9534 PR middle-end/30789
9535 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9536 Move declaration...
9537 * real.h (do_mpc_arg2): ... here.
9538 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9539 and RDIV_EXPR.
9540
9541 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
9542
9543 * final.c (add_debug_prefix_map): Don't use GC memory for
9544 old_prefix and new_prefix.
9545
9546 2009-08-14 Richard Guenther <rguenther@suse.de>
9547
9548 * ipa-prop.c (compute_complex_pass_through): If we cannot
9549 compute a non-varying offset for IPA_JF_ANCESTOR punt.
9550
9551 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9552
9553 * c-lex.c (c_lex_with_flags): Increase size of local variable
9554 to avoid memory clobber.
9555
9556 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
9557
9558 PR target/40934
9559 * config/i386/i386.c (ix86_fp_comparison_strategy):
9560 Only enable/disable sahf at function granularity.
9561
9562 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
9563
9564 PR rtl-optimization/41064
9565 * reload1.c (reload_as_needed): Don't call extract_insn
9566 for known invalid replacements after calling
9567 validate_replace_rtx_group and verify_changes.
9568
9569 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
9570
9571 PR target/41019
9572 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
9573 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
9574 ix86_expand_fp_vcond.
9575 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
9576 Assert that operation is supported by ix86_expand_int_vcond.
9577 (vcondu<SSEMODE124C8:mode>): Ditto.
9578
9579 2009-08-13 DJ Delorie <dj@redhat.com>
9580
9581 * config/i386/djgpp-stdint.h: New.
9582 * config.gcc (djgpp): Use it.
9583
9584 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
9585
9586 * config/sh/sh.c (sh_override_options): When flag_exceptions or
9587 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
9588
9589 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
9590
9591 * tree-ssa-loop-prefetch.c
9592 (prune_ref_by_group_reuse): Enhance probabilistic analysis
9593 for long-stride pruning.
9594 (compute_miss_rate): New function to compute the probability
9595 that two memory references access different cache lines.
9596
9597 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
9598
9599 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
9600
9601 2009-08-13 Richard Guenther <rguenther@suse.de>
9602
9603 PR middle-end/41047
9604 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
9605 use the constant pointer type.
9606 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
9607 of CV qualifiers on the target pointer type.
9608 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
9609 conversion check before restrict check.
9610
9611 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9612
9613 PR target/41029
9614 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
9615
9616 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
9617
9618 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
9619
9620 2009-08-12 Richard Guenther <rguenther@suse.de>
9621
9622 PR tree-optimization/41011
9623 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
9624 and reference constructing.
9625
9626 2009-08-12 Xinliang David Li <davidxl@google.com>
9627
9628 PR tree-optimization/41012
9629 * tree-flow.h : New external interface.
9630 * gimple-low.c (check_call_arg): Change to public function.
9631 Remove argument mismatch check in lowering.
9632 * tree-inline.h (tree_can_inline_p): Interface change.
9633 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
9634 into this function.
9635 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
9636 Call change to tree_can_inline_p function.
9637 (cgraph_decide_inlining_incrementally): Ditto.
9638
9639 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
9640
9641 PR tree-optimization/41031
9642 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
9643 on the partition variable rather than promote_mode on the source
9644 type. Assert that the partition variable's type has the same
9645 mode as the source value's.
9646
9647 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
9648
9649 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
9650 for for_return == 2.
9651 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
9652 comments.
9653 * calls.c (expand_call): Fix typo.
9654 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
9655 and PARM_DECL.
9656 * stmt.c (expand_value_return): Use promote_function_mode to copy out
9657 of pseudo.
9658 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
9659 * config/cris/cris.c (cris_promote_function_mode): Likewise.
9660 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
9661 * config/pa/pa.c (pa_promote_function_mode): Likewise.
9662
9663 2009-08-12 Andrew Haley <aph@redhat.com>
9664
9665 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
9666
9667 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9668
9669 PR bootstrap/40103
9670 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9671
9672 2009-08-12 Richard Guenther <rguenther@suse.de>
9673
9674 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
9675 * gimplify.c (gimplify_modify_expr): Do not use
9676 lang_hooks.types_compatible_p.
9677 * tree-ssa.c (useless_type_conversion_p): For aggregates
9678 just return false if the canonical types differ.
9679
9680 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9681
9682 PR middle-end/40980
9683 * sese.c (convert_for_phi_arg): New.
9684 (add_guard_exit_phis): Use convert_for_phi_arg.
9685
9686 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9687
9688 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
9689 unknown subscript upper bounds.
9690
9691 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9692 Pranav Garg <pranav.garg2107@gmail.com>
9693
9694 * graphite-interchange.c (gather_access_strides): Removed.
9695 (ppl_max_for_le): New.
9696 (build_linearized_memory_access): New.
9697 (memory_stride_in_loop): New.
9698 (pbb_interchange_profitable_p): Reimplemented.
9699 * graphite-ppl.h (ppl_new_id_map): New.
9700 (ppl_interchange): New.
9701
9702 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9703
9704 * graphite-interchange.c (compute_subscript): Removed.
9705 (compute_array_size_cstr): Removed.
9706 (compute_array_size_poly): Removed.
9707 (compute_array_size): Removed.
9708 (gather_access_strides_poly): Removed.
9709 (gather_access_strides): Empty.
9710
9711 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9712
9713 * graphite-dependences.c (dependence_polyhedron_1): Replace
9714 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
9715 (graphite_legal_transform_dr): Same.
9716 (graphite_carried_dependence_level_k): Same.
9717 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
9718 Initialize PDR_NB_SUBSCRIPTS.
9719 (print_pdr_access_layout): Replace pdr_nb_subscripts with
9720 PDR_NB_SUBSCRIPTS.
9721 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
9722 (PDR_NB_SUBSCRIPTS): New.
9723 (pdr_nb_subscripts): Removed.
9724 (pdr_dim): Simplified.
9725 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
9726 with PDR_NB_SUBSCRIPTS.
9727
9728 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9729
9730 * graphite-interchange.c (compute_array_size): Remove use of
9731 PDR_DATA_CONTAINER.
9732 * graphite-poly.c (new_poly_dr): Remove argument data_container.
9733 Do not initialize PDR_DATA_CONTAINER.
9734 (print_pdr): Do not print PDR_DATA_CONTAINER.
9735 * graphite-poly.h (struct poly_dr): Remove data_container field.
9736 (PDR_DATA_CONTAINER): Removed.
9737 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
9738 PDR_DATA_CONTAINER.
9739 (build_poly_dr): Same.
9740
9741 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
9742 Sebastian Pop <sebastian.pop@amd.com>
9743
9744 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
9745 copy of the dependence polyhedron. Free the temporary objects.
9746 (graphite_carried_dependence_level_k): Free unused objects before
9747 returning.
9748
9749 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9750
9751 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
9752 Early return without analyzing the data dependences if no
9753 transform has been done. Call restore_scattering if the transform
9754 is not legal.
9755 (graphite-interchange.c): Same.
9756 * graphite-poly.c (print_scattering_function): Test for
9757 PBB_TRANSFORMED.
9758 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
9759 (apply_poly_transforms): Do not gcc_assert that
9760 the transform is legal.
9761 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
9762 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
9763 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
9764 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
9765 * graphite-poly.h (struct poly_scattering): New.
9766 (struct poly_bb): Add original, transformed, and saved fields.
9767 Remove transformed_scattering, original_scattering,
9768 nb_local_variables and nb_scattering_transform fields.
9769 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
9770 (poly_scattering_new): New.
9771 (poly_scattering_free): New.
9772 (poly_scattering_copy): New.
9773 (store_scattering_pbb): New.
9774 (store_scattering): New.
9775 (restore_scattering_pbb): New.
9776 (restore_scattering): New.
9777 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9778 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
9779
9780 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9781
9782 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
9783 (print_scop): Same.
9784
9785 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9786
9787 * Makefile.in (graphite.o): Depends on PREDICT_H.
9788 * graphite.c: Include predict.h.
9789 (graphite_finalize): Call tree_estimate_probability.
9790 * predict.c (predict_loops): Do not call scev_initialize and
9791 scev_finalize.
9792 (tree_estimate_probability_bb): New.
9793 (tree_estimate_probability): Do not initialize loops: move that
9794 code to the driver. Call tree_estimate_probability_bb.
9795 (tree_estimate_probability_driver): New.
9796 (pass_profile): Use tree_estimate_probability_driver.
9797 * predict.h (tree_estimate_probability): Declared.
9798
9799 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
9800
9801 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
9802 * graphite-dependences.c (graphite_legal_transform): Add time to
9803 TV_GRAPHITE_DATA_DEPS.
9804 (dependency_between_pbbs_p): Same.
9805 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
9806
9807 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
9808
9809 PR rtl-optimization/41033
9810 * alias.c (nonoverlapping_component_refs_p): Punt when strict
9811 aliasing is disabled.
9812
9813 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
9814
9815 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
9816 si_mask_operand, and_load_operand, low_bitmask_operand,
9817 and_reg_operand, and_operand): New predicates.
9818 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
9819 * config/mips/mips.c (and_operands_ok): New function.
9820 * config/mips/mips-protos.h (and_operands_ok): Declare it.
9821 * config/mips/mips.md (move_type): Add ext_ins and logical.
9822 (type): Handle them.
9823 (and<mode>3): Use and_reg_operand as the second operand's predicate.
9824 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
9825 shift_shift. Remove commutative constraint modifier.
9826 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
9827 shift_shift.
9828 (*clear_upper32_dext): Remove define_insn_and_split.
9829 (*clear_upper32): Turn this define_insn_and_split ...
9830 (splitter for ANDing register with 0xffff_ffff): .. into this.
9831
9832 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
9833
9834 * combine.c (try_widen_shift_mode): Factor out code to check if an
9835 integer constant is a low-order bitmask from here ...
9836 * rtlanal.c (low_bitmask_len): ... to here.
9837 * rtl.h (low_bitmask_len): Declare.
9838
9839 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
9840
9841 PR target/8603
9842 * config/alpha/alpha.md (addsi3): Remove expander.
9843 (addsi3): Rename from *addsi3_internal insn pattern.
9844 (subsi3): Remove expander.
9845 (subsi3): Rename from *subsi3_internal insn pattern.
9846
9847 2009-08-11 Douglas B Rupp <rupp@gnat.com>
9848
9849 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
9850 FWRITE_UNLOCKED.
9851
9852 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
9853 Eric Botcazou <botcazou@adacore.com>
9854 Douglas B Rupp <rupp@gnat.com>
9855
9856 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
9857 that records that fit in 64 bits are returned by immediate value,
9858 as required by OpenVMS Calling Standard.
9859 (function_value): Adjust for above modification.
9860 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
9861 virtual_incoming_args_rtx as base object, not next_arg.
9862 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9863
9864 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9865
9866 * reload.c (find_reloads_subreg_address): Check the original
9867 req_equiv_mem address to detect the case where an address is
9868 not valid in the outer mode.
9869
9870 2009-08-11 Richard Guenther <rguenther@suse.de>
9871
9872 PR bootstrap/40788
9873 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
9874
9875 2009-08-10 Douglas B Rupp <rupp@gnat.com>
9876
9877 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
9878 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
9879
9880 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
9881 Douglas B Rupp <rupp@gnat.com>
9882
9883 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
9884 PT_STACK when frame_pointer_needed on OpenVMS.
9885 (alpha_pv_save_size, alpha_using_fp): Remove.
9886 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
9887 with proper processing for PT_NULL.
9888 (alpha_vms_initial_elimination_offset): New function. Support for
9889 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
9890 (alpha_sa_size): Force procedure type to PT_STACK when
9891 frame_pointer_needed on OpenVMS.
9892 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
9893 (alpha_using_fp): Likewise.
9894 (alpha_vms_can_eliminate): Add prototype.
9895 (alpha_vms_initial_elimination_offset): Likewise.
9896 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
9897 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
9898
9899 2009-08-10 Eric Botcazou <botcazou@adacore.com>
9900 Douglas B Rupp <rupp@gnat.com>
9901
9902 * config/alpha/alpha.c (common_object_handler): New function.
9903 (vms_attribute_table): Declare a single attribute "common_object".
9904 (vms_output_aligned_decl_common): New global function.
9905 (SECTION_VMS_OVERLAY): Delete.
9906 (SECTION_VMS_GLOBAL): Likewise.
9907 (SECTION_VMS_INITIALIZE): Likewise.
9908 (vms_asm_named_section): Remove support for above flags.
9909 (vms_section_type_flags): Delete.
9910 (TARGET_SECTION_TYPE_FLAGS): Likewise.
9911 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
9912 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
9913 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
9914
9915 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9916
9917 PR target/41015
9918 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
9919 (sub_ddmmss): Likewise.
9920
9921 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
9922
9923 PR bootstrap/41018
9924 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
9925 year.
9926
9927 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9928
9929 PR target/37053
9930 * reload1.c (reload_as_needed): Use cancel_changes to completely
9931 undo a failed replacement attempt.
9932
9933 2009-08-10 Richard Guenther <rguenther@suse.de>
9934
9935 PR middle-end/41006
9936 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
9937 (useless_type_conversion_p): ... here. Require pointer targets
9938 to be compatible.
9939
9940 2009-08-10 Dodji Seketeli <dodji@redhat.com>
9941
9942 PR c++/40866
9943 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
9944 loose the original type of the statement list.
9945
9946 2009-08-09 Douglas B Rupp <rupp@gnat.com>
9947
9948 * config/alpha/alpha.c: Include libfuncs.h
9949 (avms_asm_output_extern): New function.
9950 (alpha_init_libfuncs): Init some decc libfuncs.
9951 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
9952 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
9953 (DO_CRTL_NAMES): Define.
9954 (LIB_SPEC): Remove.
9955 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
9956 (LONG_TYPE_SIZE): Define.
9957 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
9958 (SUBTARGET_SWITCHES): Define malloc64 switch.
9959 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
9960 (MASK_RETURN_ADDR): Define.
9961 doc/invoke.texi (mmalloc64): Document switch.
9962
9963 2009-08-09 Olivier Hainque <hainque@adacore.com>
9964 Douglas B Rupp <rupp@gnat.com>
9965
9966 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
9967 uses_condition_handler.
9968 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
9969 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
9970 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
9971 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
9972 (code_for_builtin): New insn codes for the new alpha_builtins.
9973 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
9974 (alpha_sa_size): Account for uses_condition_handler.
9975 (alpha_expand_prologue): Likewise.
9976 (alpha_start_function): Likewise.
9977 (alpha_expand_epilogue): Likewise.
9978 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
9979 establish/revert expanders.
9980 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
9981 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
9982 New expander, resorting to the alpha.c associated function.
9983 (builtin_revert_vms_condition_handler): Likewise.
9984 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
9985 __gcc_shell_handler, the static VMS condition handler used as
9986 an indirection wrapper to the current dynamically established
9987 handler.
9988 * config/alpha/vms-unwind.h: Complete rewrite.
9989 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
9990 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
9991
9992 2009-08-09 Eric Botcazou <botcazou@adacore.com>
9993 Douglas B Rupp <rupp@gnat.com>
9994
9995 * config/alpha/alpha.c (alpha_links): Add 'target' field.
9996 (alpha_need_linkage): Handle aliases. Return function symbol.
9997 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
9998 Use ultimate alias target for the linkage name.
9999 * config/alpha/alpha.md (movmemdi): Use the symbol returned
10000 by alpha_need_linkage for the function symbol.
10001 (setmemdi): Likewise.
10002
10003 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10004
10005 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
10006 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
10007 (ASM_WEAKEN_LABEL): Define.
10008 (CRT_CALL_STATIC_FUNCTION): Define.
10009 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
10010 (ENDFILE_SPEC): Define.
10011 (INIT_SECTION_ASM_OP): Define.
10012 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
10013 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
10014 crtend.o crtendS.o.
10015 (MULTILIB_OSDIRNAMES): Define.
10016 (shlib_version): Define.
10017 (SHLIB_EXT): Define.
10018 (SHLIB_OBJS): Define.
10019 (SHLIB_NAME): Define.
10020 (SHLIB_MULTILIB): Define.
10021 (SHLIB_INSTALL): Define.
10022 (SHLIB_SYMVEC): Define.
10023 (SHLIB_SYMVECX2): Define.
10024 (SHLIB_LINK): Define.
10025
10026 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10027
10028 * config/alpha/alpha.c (alpha_initialize_trampoline):
10029 Initialize VMS trampoline IAW ABI for bounded procedure calls.
10030 (alpha_start_function): Emit transfer address on nested functions
10031 for VMS trampoline call.
10032 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
10033 since no longer used.
10034 * config/alpha/vms-tramp.asm: Remove.
10035 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
10036 since now only data initialized at runtime.
10037
10038 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10039
10040 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
10041 (LINK_GCC_C_SEQUENCE_SPEC): Define.
10042 (MD_EXEC_PREFIX): Remove, no longer used.
10043 (MD_STARTFILE_PREFIX): Likewise.
10044 (INCLUDE_DEFAULTS): Likewise.
10045 * config/alpha/t-vms:
10046 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
10047
10048 2009-08-09 Richard Guenther <rguenther@suse.de>
10049
10050 PR tree-optimization/41016
10051 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
10052 (operand_precision): Remove.
10053 (integral_operand_p): Likewise.
10054 (recognize_single_bit_test): Adjust.
10055
10056 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
10057
10058 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
10059 operation overflows. Likewise non-cast unary arithmetic.
10060 If one arm of a conditional expression is always taken,
10061 inhibit evaluation warnings for the other arm. Likewise inhibit
10062 evaluation warnings for the second && or || operand if the first
10063 operand is enough to determine the result.
10064 * c-typeck.c (build_conditional_expr): Apply the same inhibition
10065 rules here.
10066 (build_binary_op): Prevent duplicate evaluation warnings.
10067
10068 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
10069
10070 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
10071 and destination have different modes, Use promote_mode to
10072 determine the signedness of the conversion. Assert that the
10073 promoted source mode matches the destination mode. Don't pass
10074 the destination and destination mode to expand_expr if the source
10075 mode is different. Simplify conversion logic.
10076
10077 2009-08-09 Ira Rosen <irar@il.ibm.com>
10078
10079 PR tree-optimization/41008
10080 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
10081 from condition only in case it's a comparison. Adjust checks.
10082
10083 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
10084
10085 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
10086 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
10087 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
10088 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
10089 (dump_cand): Handle them.
10090 (struct iv_cand): New members COST_STEP and AINC_USE.
10091 (stmt_after_increment): Likewise.
10092 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
10093 callers changed. Use gimple_uid comparison instead of scanning.
10094 (add_candidate_1): When looking for identical candidates, take
10095 AINC_USE into account. Set it for new candidates.
10096 (force_expr_to_var_cost): Cast target_spill_cost to int.
10097 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
10098 All callers changed. Check for availability of autoinc addressing
10099 modes, both in general for a given mode, and in the specific use case.
10100 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
10101 changed.
10102 (get_computation_cost): Likewise.
10103 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
10104 add_autoinc_candidates): New static functions.
10105 (add_candidate): Call add_autoinc_candidates for candidates based on
10106 a USE_ADDRESS use.
10107 (find_iv_candidates): Call set_autoinc_for_original_candidates.
10108 (determine_use_iv_cost_address): If we have an autoinc candidate at
10109 the matching use, verify autoinc is possible and subtract the cost
10110 of the candidate's step from the cost.
10111 (determine_iv_cost): Record the cost of the increment in the COST_STEP
10112 member of the candidate.
10113 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
10114 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
10115
10116 2009-08-09 Douglas B Rupp <rupp@gnat.com>
10117
10118 * config.build (ia64-hp-*vms*): New target.
10119 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10120 with ia64-hp-*vms*.
10121 * config.gcc (ia64-hp-*vms*): New target.
10122 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10123 with ia64-hp-*vms*.
10124 * config.host (ia64-hp-*vms*): New target.
10125 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10126 with ia64-hp-*vms*.
10127
10128 2009-08-08 Richard Guenther <rguenther@suse.de>
10129
10130 PR tree-optimization/40991
10131 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10132
10133 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
10134
10135 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10136 mode check. Do truncations in an integer mode.
10137 (force_to_mode): Handle subregs for all mode types. Only do
10138 arithmetic simplifications on integer modes.
10139
10140 2009-08-07 Richard Guenther <rguenther@suse.de>
10141
10142 PR tree-optimization/40999
10143 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10144 (maybe_fold_reference): Lookup constant initializers.
10145 (fold_gimple_assign): Likewise.
10146
10147 2009-08-07 Richard Guenther <rguenther@suse.de>
10148
10149 * tree-ssa.c (useless_type_conversion_p_1): Only for types
10150 that require structural equality defer to the langhook.
10151
10152 2009-08-07 Martin Jambor <mjambor@suse.cz>
10153
10154 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10155 comments.
10156 (struct ipa_pass_through_data): New type.
10157 (struct ipa_ancestor_jf_data): New type.
10158 (union jump_func_value): Removed field formal_id, added fields
10159 pass_through and ancestor.
10160 (struct ipa_param_call_note): Changed type of formal_id to int from
10161 unsigned.
10162 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10163 operations jump functions and ancestor jump functions.
10164 (compute_complex_pass_through): New function.
10165 (compute_scalar_jump_functions): Call compute_complex_pass_through,
10166 reflect changes in the jump function strucutre.
10167 (update_jump_functions_after_inlining): Ignore complex pass-through
10168 and ancestor jump functions.
10169 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10170 polynomial pass-through with operation jump functions.
10171
10172 2009-08-07 Jakub Jelinek <jakub@redhat.com>
10173
10174 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10175 fde->dw_fde_begin as begin label instead of hot/cold label.
10176 Use LLSDAC label instead of LLSDA for second section lsda.
10177 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
10178 label instead of LLSDA if it is true.
10179 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10180 callers.
10181 * except.c (add_call_site, dw2_size_of_call_site_table): Add
10182 SECTION argument. Use it as index into crtl->eh.call_site_record
10183 array.
10184 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
10185 use it to determine how to print table entries instead of using
10186 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
10187 label instead of normal begin label as base.
10188 (sjlj_assign_call_site_values): Adjust add_call_site caller.
10189 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10190 ensure no EH range spans between sections and that landing pads
10191 are always in the corresponding section.
10192 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10193 for crtl->eh.call_site_record being an array rather than scalar.
10194 (output_one_function_exception_table): New function, copied
10195 from output_function_exception_table. Adjust
10196 dw2_size_of_call_site_table, dw2_output_call_site_table
10197 callers. For SECOND section use *C suffixed labels.
10198 (output_function_exception_table): Call
10199 output_one_function_exception_table and, when doing hot/cold
10200 partitioning, also another time for the second section.
10201 * opts.c: Include except.h.
10202 (decode_options): Allow -freorder-blocks-and-partition with
10203 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10204 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10205 * function.h (struct rtl_eh): Change call_site_record from
10206 scalar into array of 2 elements.
10207
10208 2009-08-07 Martin Jambor <mjambor@suse.cz>
10209
10210 * ipa-prop.c (count_formal_params_1): New function.
10211 (ipa_get_vector_of_formal_parms): New function.
10212 (get_vector_of_formal_parm_types): New function.
10213 (ipa_modify_formal_parameters): New function.
10214 (ipa_modify_call_arguments): New function.
10215 (index_in_adjustments_multiple_times_p): New function.
10216 (ipa_combine_adjustments): New function.
10217 (ipa_dump_param_adjustments): New function.
10218 * ipa-prop.h (struct ipa_parm_adjustment): New type.
10219 (ipa_get_vector_of_formal_parms): Declare.
10220 (ipa_modify_formal_parameters): Declare.
10221 (ipa_modify_call_arguments): Declare.
10222 (ipa_combine_adjustments): Declare.
10223 (ipa_dump_param_adjustments): Declare.
10224 (build_ref_for_offset): Declare.
10225 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10226 * tree-sra.c: Include ipa-prop.c.
10227 (build_ref_for_offset): Make public.
10228
10229 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
10230
10231 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
10232
10233 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
10234
10235 * gcc/doc/extend.texi (__builtin_extract_return_address)
10236 (__builtin_frob_return_address): Document.
10237
10238 2009-08-06 Paul Brook <paul@codesourcery.com>
10239
10240 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10241 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10242 implementation on ARMv6-M.
10243
10244 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10245
10246 * doc/extend.texi (pcs): Document new attribute for ARM.
10247
10248 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10249
10250 * arm.c (pcs_attribute_args): Comment out unsupported attribute
10251 variants.
10252
10253 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10254
10255 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10256 warning ().
10257
10258 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10259
10260 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10261
10262 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
10263
10264 Merge ARM/hard_vfp_branch to trunk.
10265
10266 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
10267
10268 * arm.c (libcall_eq): New function.
10269 (libcall_hash): New function.
10270 (add_libcall): New function.
10271 (arm_libcall_uses_aapcs_base): New function.
10272 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10273 libcalls using the base PCS.
10274 (arm_init_cumulative_args): Likewise.
10275
10276 2009-07-20 Joseph Myers <joseph@codesourcery.com>
10277
10278 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10279 Use base ABI for conversion libfuncs between HFmode and SFmode.
10280
10281 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10282
10283 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10284 V4SImode as representatives of all 64-bit and 128-bit vector
10285 types. Allow vector types without vector modes.
10286 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10287 without vector modes like BLKmode.
10288 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10289 BLKmode. Avoid unsupported vector modes or TImode moves for
10290 non-TARGET_NEON.
10291 (aapcs_vfp_allocate_return_reg): Likewise.
10292 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10293 V8QImode if TARGET_NEON || TARGET_IWMMXT.
10294
10295 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10296
10297 * config/arm/arm.c (arm_handle_pcs_attribute): New.
10298 (arm_get_pcs_model): Pass attribute arguments to
10299 arm_pcs_from_attribute.
10300 (arm_init_cumulative_args): Use base AAPCS for conversions from
10301 floating-point types to DImode.
10302 (arm_attribute_table): Add pcs attribute.
10303 (arm_handle_pcs_attribute): New.
10304 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10305 conversions from floating-point types to DImode, also declare them
10306 to use base AAPCS and declare functions they call to use base
10307 AAPCS and their RTABI names.
10308
10309 2009-05-12 Joseph Myers <joseph@codesourcery.com>
10310
10311 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10312 -mfloat-abi=hard not being supported for VFP.
10313
10314 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
10315
10316 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10317 SYMBOL_REF to hard_libcall_value.
10318
10319 2009-03-05 Joseph Myers <joseph@codesourcery.com>
10320 Richard Earnshaw <rearnsha@arm.com>
10321
10322 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
10323 has been put on the stack, all remaining co-processory arguments for
10324 that co-processor also go on the stack.
10325
10326 2009-03-05 Joseph Myers <joseph@codesourcery.com>
10327
10328 * config/arm/arm.c (arm_return_in_memory): Handle returning
10329 vectors of suitable size in registers also for AAPCS case.
10330
10331 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
10332
10333 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
10334
10335 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
10336
10337 ARM Hard-VFP calling convention
10338 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
10339 * target.h (gcc_target): Add libcall_value to table of call hooks.
10340 * targhooks.h (default_libcall_value): Default implementation.
10341 * targhooks.c (default_libcall_value): Likewise.
10342 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10343 * optabs.c (expand_unop): Use it.
10344 * expr.h (hard_libcall_value): Pass the function RTX through.
10345 * calls.c (emit_library_call_value_1): Update call to
10346 hard_libcall_value.
10347 * explow.c (hard_libcall_value): Use new target hook.
10348 * config/arm/arm.c: Include cgraph.h
10349 (TARGET_FUNCTION_VALUE): Override default hook.
10350 (arm_pcs_default): New variable.
10351 (arm_override_options): Don't fault hard calling convention with VFP.
10352 Add support for AAPCS variants.
10353 (arm_function_value): Make static. Handle AAPCS variants.
10354 (arm_libcall_value): New function.
10355 (arm_apply_result_size): Handle VFP registers in results.
10356 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10357 conventions.
10358 (pcs_attribute_args): New variable.
10359 (arm_pcs_from_attribute): New function.
10360 (arm_get_pcs_model): New function.
10361 (aapcs_vfp_cum_init): New function.
10362 (aapcs_vfp_sub_candidate): New function.
10363 (aapcs_vfp_is_return_candidate): New function.
10364 (aapcs_vfp_is_call_candidate): New function.
10365 (aapcs_vfp_allocate): New function.
10366 (aapcs_vfp_allocate_return_reg): New function.
10367 (aapcs_vfp_advance): New function.
10368 (aapcs_cp_arg_layout): New variable.
10369 (aapcs_select_call_coproc): New function.
10370 (aapcs_select_return_coproc): New function.
10371 (aapcs_allocate_return_reg): New function.
10372 (aapcs_libcall_value): New function.
10373 (aapcs_layout_arg): New function.
10374 (arm_init_cumulative_args): Initialize AAPCS args data.
10375 (arm_function_arg): Handle AAPCS variants using new interface.
10376 (arm_arg_parital_bytes): Likewise.
10377 (arm_function_arg_advance): New function.
10378 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10379 calling conventions.
10380 (arm_setup_incoming_varargs): Handle new AAPCS args data.
10381 * arm.h (NUM_VFP_ARG_REGS): Define.
10382 (LIBCALL_VALUE): Update.
10383 (FUNCTION_VALUE): Delete.
10384 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10385 (arm_pcs): New enum.
10386 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10387 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10388 (FUNCTION_ARG_REGNO_P): Add VFP regs.
10389 * arm-protos.h (arm_function_arg_advance): Add.
10390 (aapcs_libcall_value): Add.
10391 (arm_function_value): Delete.
10392
10393 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
10394 H.J. Lu <hongjiu.lu@intel.com>
10395
10396 PR target/40957
10397 * config/i386/i386.c (standard_sse_mode_p): Remove.
10398 (standard_sse_constant_p): Return 2 for integer mode
10399 vector_all_ones_operand when SSE2 is enabled.
10400 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10401 (ix86_expand_vector_move): Do not check for negative values from
10402 standard_sse_constant_p.
10403
10404 2009-08-06 Richard Guenther <rguenther@suse.de>
10405
10406 * tree-ssa.c (useless_type_conversion_p_1): Make function and
10407 array type comparisons frontend independent.
10408 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10409 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10410 out array reference lower bound and element size operands.
10411 (ao_ref_init_from_vn_reference): Properly compute the offset
10412 for ARRAY_RANGE_REF.
10413 (vn_reference_fold_indirect): Fill out array reference lower
10414 bound and element size operands.
10415 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10416 a non gimple valued reference operand which can happen for
10417 array reference lower bound or element size.
10418 (create_component_ref_by_pieces_1): Properly generate the
10419 element size operand for array references.
10420
10421 2009-08-06 Richard Guenther <rguenther@suse.de>
10422
10423 PR tree-optimization/40964
10424 * tree.c (iterative_hash_host_wide_int): Export.
10425 * tree.h (iterative_hash_host_wide_int): Declare.
10426 * tree-ssa-structalias.c (heapvar_map): New struct.
10427 (heapvar_map_eq): New function.
10428 (heapvar_map_hash): Likewise.
10429 (heapvar_lookup): Adjust.
10430 (heapvar_insert): Likewise.
10431 (make_constraint_from_heapvar): Allow multiple heap variables
10432 per decl at different offsets.
10433 (init_alias_heapvars): Adjust.
10434
10435 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10436
10437 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10438 * mips_output_sync_loop (mips_output_sync_loop): Only emit
10439 trailing sync if TARGET_SYNC_AFTER_SC.
10440
10441 2009-08-05 David Daney <ddaney@caviumnetworks.com>
10442
10443 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10444 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10445 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10446 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10447 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10448 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10449 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10450 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10451 test_and_set_12): Rewrite calls to mips_output_sync_loop.
10452 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10453 the prototype declaration match the definition.
10454 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
10455 instructions explicitly. Add barrier_before and operands
10456 parameters.
10457 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10458 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10459 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10460 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10461 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10462 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10463
10464 2009-08-05 Andrew Pinski <pinskia@gmail.com>
10465
10466 * tree-ssa-alias.c: Fix intervals to use [) syntax.
10467
10468 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
10469 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
10470
10471 PR target/40906
10472 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10473 source operand.
10474
10475 2009-08-05 Jakub Jelinek <jakub@redhat.com>
10476
10477 PR rtl-optimization/40924
10478 * dse.c (canon_address): Before calling cselib_expand_value_rtx
10479 make sure canon_rtx (mem_address) isn't simpler than
10480 canon_rtx (expanded_mem_address).
10481
10482 2009-08-05 Li Feng <nemokingdom@gmail.com>
10483
10484 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10485 for each poly_bb_p.
10486 (build_scop_drs): Build alias set for each SCoP.
10487
10488 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
10489
10490 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10491 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10492 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10493 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10494 (BASE_DRIVER_SELF_SPECS): Likewise.
10495
10496 2009-08-04 Andrew Pinski <pinskia@gmail.com>
10497
10498 * tree-ssa-alias.c: Fix some comment typos.
10499
10500 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
10501
10502 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10503 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10504
10505 2009-08-03 Janis Johnson <janis187@us.ibm.com>
10506
10507 PR c/39902
10508 * simplify-rtx.c (simplify_binary_operation_1): Disable
10509 simplifications for decimal float operations.
10510
10511 2009-08-03 Jakub Jelinek <jakub@redhat.com>
10512
10513 PR middle-end/40943
10514 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10515 operand of INDIRECT_REF.
10516
10517 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
10518
10519 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10520 constants referencing TLS symbols.
10521
10522 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10523
10524 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10525 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10526
10527 2009-08-03 Richard Guenther <rguenther@suse.de>
10528
10529 * tree.c (make_vector_type): Build a main variant first,
10530 get the canonical one and then build the variant.
10531 * tree-ssa.c (useless_type_conversion_p_1): Handle
10532 fixed-point types.
10533 (useless_type_conversion_p): Conversions to pointers to
10534 incomplete record types are useless.
10535
10536 2009-08-03 Richard Guenther <rguenther@suse.de>
10537
10538 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10539 file will be created.
10540 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10541 * toplev.c (compile_file): Adjust comment.
10542
10543 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
10544
10545 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10546 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10547 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10548 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10549 (sh_promote_function_mode): Fix typo.
10550
10551 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
10552
10553 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
10554
10555 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10556
10557 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10558 declaration arguments.
10559
10560 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
10561
10562 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10563 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10564 (ix86_split_ashl): Ditto.
10565 (ix86_expand_vector_init_one_nonzero): Ditto.
10566 (ix86_expand_vector_set): Ditto.
10567 (ix86_expand_reduc_v4sf): Ditto.
10568
10569 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
10570
10571 * explow.c (promote_function_mode): Remove assert.
10572 * config/sh/sh.c (sh_promote_function_mode): Declare.
10573
10574 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10575
10576 * config/pa/pa.c (pa_promote_function_mode): Declare.
10577 Change to static. Fix promote_mode call.
10578
10579 * gthr-dce.h (CONST_CAST2): Define if not defined.
10580 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
10581
10582 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
10583
10584 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
10585
10586 * expr.c (store_constructor): Use promote_decl_mode. Remove
10587 now write-only variable unsignedp.
10588 (expand_expr_real_1): Use promote_decl_mode.
10589 * expr.h (promote_function_mode, promote_decl_mode): New.
10590 (promote_mode): Remove last argument.
10591 * function.c (assign_temp): Drop last argument of promote_mode.
10592 (assign_parm_find_data_types): Use promote_function_mode.
10593 (assign_parm_setup_reg): Likewise.
10594 (expand_function_end): Use promote_function_mode.
10595 * calls.c (initialize_argument_information): Use promote_function_mode.
10596 (precompute_arguments): Use promote_mode instead of checking if
10597 only PROMOTE_FUNCTION_MODE is defined.
10598 (expand_call): When making sibcall decisions, use promote_function_mode.
10599 Below, remove an if for targetm.calls.promote_function_return and
10600 and use promote_function_mode.
10601 (emit_library_call_value_1): Use promote_function_mode, fix bug
10602 where promote_mode was passed FOR_CALL == 0 for a return value in an
10603 assertion.
10604 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10605 * explow.c (promote_function_mode, promote_decl_mode): New.
10606 (promote_mode): Keep only the FOR_CALL == 0 case.
10607 * combine.c (setup_incoming_promotion): Remove test of
10608 promote_function_args. Use promote_function_mode.
10609 * stmt.c (expand_value_return): Use promote_decl_mode.
10610 (expand_decl): Use promote_decl_mode.
10611
10612 * expr.c (store_constructor): Use promote_decl_mode. Remove
10613 now write-only variable unsignedp.
10614 (expand_expr_real_1): Use promote_decl_mode.
10615 * expr.h (promote_function_mode, promote_decl_mode): New.
10616 (promote_mode): Remove last argument.
10617 * function.c (assign_temp): Drop last argument of promote_mode.
10618 (assign_parm_find_data_types): Use promote_function_mode.
10619 (assign_parm_setup_reg): Likewise.
10620 (expand_function_end): Use promote_function_mode.
10621 * calls.c (initialize_argument_information): Use promote_function_mode.
10622 (precompute_arguments): Use promote_mode instead of checking if
10623 only PROMOTE_FUNCTION_MODE is defined.
10624 (expand_call): When making sibcall decisions, use promote_function_mode.
10625 Below, remove an if for targetm.calls.promote_function_return and
10626 and use promote_function_mode.
10627 (emit_library_call_value_1): Use promote_function_mode, fix bug
10628 where promote_mode was passed FOR_CALL == 0 for a return value in an
10629 assertion.
10630 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10631 * explow.c (promote_function_mode, promote_decl_mode): New.
10632 (promote_mode): Keep only the FOR_CALL == 0 case.
10633 * combine.c (setup_incoming_promotion): Remove test of
10634 promote_function_args. Use promote_function_mode.
10635 * stmt.c (expand_value_return): Use promote_decl_mode.
10636 (expand_decl): Use promote_decl_mode.
10637
10638 * explow.c (promote_function_mode): Just call the target hook.
10639 * targhooks.c (default_promote_function_mode,
10640 default_promote_function_mode_always_promote): New.
10641 * targhooks.h (default_promote_function_mode,
10642 default_promote_function_mode_always_promote): Declare.
10643 * target.h (promote_function_args, promote_function_return): Remove.
10644 (promote_function_mode): New.
10645 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
10646 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10647 (TARGET_PROMOTE_FUNCTION_MODE): New.
10648 (TARGET_CALLS): Adjust.
10649 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
10650 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
10651
10652 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
10653 * config/s390/s390.c (s390_promote_function_mode): ... here,
10654 with pointer handling.
10655 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10656 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10657
10658 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
10659 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
10660 with pointer handling.
10661 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10662 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10663
10664 * config/sh/sh-protos.h (sh_promote_function_mode): New.
10665 * config/sh/sh.c (sh_promote_function_mode): New.
10666 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10667 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10668
10669 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
10670 * config/cris/cris.c (cris_promote_function_mode): ... here.
10671 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10672 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10673
10674 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
10675 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
10676 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10677 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10678
10679 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
10680 * config/arm/arm.c (arm_promote_function_mode): ... here, without
10681 complex type handling.
10682 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10683 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10684
10685 * config/pa/pa.c (pa_promote_function_mode): New.
10686 (TARGET_PROMOTE_FUNCTION_MODE): Define.
10687 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10688
10689 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
10690 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10691 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
10692 * config/xtensa/xtensa.c: Likewise.
10693 * config/stormy16/stormy16.c: Likewise.
10694 * config/iq2000/iq2000.c: Likewise.
10695 * config/rs6000/rs6000.c: Likewise.
10696 * config/picochip/picochip.c: Likewise.
10697 * config/arc/arc.c: Likewise.
10698 * config/mcore/mcore.c: Likewise.
10699 * config/score/score.c: Likewise.
10700 * config/mips/mips.c: Likewise.
10701 * config/bfin/bfin.c: Likewise.
10702 * config/ia64/ia64.c: Likewise (disabled though).
10703
10704 * config/frv/frv.h: Remove pointless remark.
10705
10706 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
10707 TARGET_PROMOTE_FUNCTION_ARGS,
10708 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
10709 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
10710
10711 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
10712
10713 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
10714 -floop-parallelize-all.
10715 * toplev.c (process_options): Rename flag_graphite_force_parallel to
10716 flag_loop_parallelize_all.
10717 * tree-ssa-loop.c (gate_graphite_transforms): Same.
10718 * graphite.c (graphite_transform_loops): Same.
10719 * common.opt: Same.
10720 * graphite-poly.c (apply_poly_transforms): Same.
10721
10722 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
10723
10724 PR tree-optimization/40914
10725 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
10726 if set, then check the delta field of the PMF record.
10727 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
10728 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
10729 call is stored in the delta.
10730
10731 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
10732
10733 * config/mips/mips.md (*clear_upper32_dext): New pattern.
10734
10735 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
10736
10737 * config/i386/bsd.h (ASM_BYTE): New define.
10738 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
10739 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
10740 .byte. Use fputs or putc instead of fprintf where appropriate.
10741 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
10742 fputs or putc instead of fprintf where appropriate.
10743 * config/i386/i386elf.h: Ditto.
10744 * config/i386/sysv4.h: Ditto.
10745
10746 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
10747 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
10748 (*tls_global_dynamic_64): Ditto.
10749
10750 2009-07-31 Christian Bruel <christian.bruel@st.com>
10751
10752 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10753
10754 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10755
10756 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
10757 Remove dead code for MINUS.
10758
10759 2009-07-31 Anthony Green <green@moxielogic.com>
10760
10761 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
10762 $r12 in prologue.
10763 (moxie_expand_epilogue): Ditto for epilogue.
10764 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
10765 incoming arguments.
10766 (moxie_function_arg): Ditto.
10767 (moxie_pass_by_reference): Ditto.
10768 (moxie_arg_partial_bytes): Ditto.
10769 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
10770 (FUNCTION_ARG_ADVANCE) Ditto.
10771 (REG_PARM_STACK_SPACE) Ditto.
10772 (FUNCTION_ARG_REGNO_P) Dito.
10773
10774 * config.gcc: Add moxie linux config support.
10775 * gcc/config/moxie/uclinux.h: New file.
10776
10777 2009-07-31 DJ Delorie <dj@redhat.com>
10778
10779 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10780 (UNSPECV_SP_SWITCH_E): New.
10781 (sp_switch_1): Change to an unspec.
10782 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10783 replace $r15.
10784 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
10785 reference the new stack's address
10786
10787 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10788
10789 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
10790 graphite-clast-to-gimple.o, graphite-dependences.o,
10791 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10792 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
10793 (graphite-blocking.o,
10794 graphite-clast-to-gimple.o, graphite-dependences.o,
10795 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10796 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
10797 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
10798 * cfgloop.h (struct loop): Add can_be_parallel field.
10799 * common.opt (fgraphite-identity): Moved up.
10800 (fgraphite-force-parallel): New flag.
10801 * graphite.c: Rewrite.
10802 * graphite.h: Rewrite.
10803 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
10804 after Graphite.
10805 * toplev.c (graphite_out_file): New file descriptor.
10806 (graphite_in_file): New.
10807 (process_options): flag_graphite_force_parallel cannot be used without
10808 Graphite.
10809 * tree-ssa-loop.c: Include toplev.h.
10810 (gate_graphite_transforms): Enable flag_graphite for
10811 flag_graphite_force_parallel.
10812
10813 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10814
10815 * ChangeLog.graphite: New.
10816 * graphite-blocking.c: New.
10817 * graphite-clast-to-gimple.c: New.
10818 * graphite-clast-to-gimple.h: New.
10819 * graphite-dependences.c: New.
10820 * graphite-dependences.h: New.
10821 * graphite-interchange.c: New.
10822 * graphite-poly.c: New.
10823 * graphite-poly.h: New.
10824 * graphite-ppl.c: New.
10825 * graphite-ppl.h: New.
10826 * graphite-scop-detection.c: New.
10827 * graphite-scop-detection.h: New.
10828 * graphite-sese-to-poly.c: New.
10829 * graphite-sese-to-poly.h: New.
10830 * sese.c: New.
10831 * sese.h: New.
10832
10833 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10834
10835 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
10836 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
10837
10838 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10839
10840 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
10841 (scev_is_linear_expression): Return false if the evolution is not
10842 affine multivariate.
10843
10844 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10845
10846 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
10847 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
10848
10849 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10850
10851 * tree-data-ref.c (debug_data_references): New.
10852 (debug_data_reference): New.
10853 * tree-data-ref.h (debug_data_references): Declared.
10854 (debug_data_reference): Declared.
10855
10856 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10857
10858 * tree-data-ref.c (stmt_simple_memref_p: Removed.
10859 * tree-data-ref.h (scop_p): Removed.
10860 (struct data_reference): Remove field scop.
10861 (DR_SCOP): Removed.
10862 (stmt_simple_memref_p): Removed.
10863
10864 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10865
10866 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
10867 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
10868 basic block empty.
10869
10870 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10871
10872 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
10873
10874 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10875
10876 * doc/invoke.texi (-fgraphite-identity): Documented.
10877
10878 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10879
10880 * tree-scalar-evolution.c: Fix comment.
10881 (instantiate_scev_1): Return unknow from scev instantiation if the
10882 result is not above instantiate_below.
10883
10884 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
10885
10886 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
10887 static anymore. Instantiate the symbols that may have been introduced
10888 by chrec_apply.
10889 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
10890 Declared.
10891
10892 2009-07-30 DJ Delorie <dj@redhat.com>
10893
10894 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
10895 .vliw directive to VLIW sections.
10896
10897 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10898
10899 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
10900 New variables.
10901 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
10902 (AUTOHEADER): New variable.
10903 ($(srcdir)/cstamp-h.in): Use it.
10904
10905 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10906 Pat Haugen <pthaugen@us.ibm.com>
10907 Revital Eres <ERES@il.ibm.com>
10908
10909 * config/rs6000/vector.md (VEC_F): Add VSX support.
10910 (VEC_A): Ditto.
10911 (VEC_N): Ditto.
10912 (mov<mode>): Ditto.
10913 (vector_load_<mode>): Ditto.
10914 (vector_store_<mode>): Ditto.
10915 (vector GPR move split): Ditto.
10916 (vec_reload_and_plus_<mptrsize>): Ditto.
10917 (vec_reload_and_reg_<mptrsize>): Ditto.
10918 (add<mode>3): Ditto.
10919 (sub<mode>3): Ditto.
10920 (mul<mode>3): Ditto.
10921 (neg<mode>2): Ditto.
10922 (abs<mode>2): Ditto.
10923 (smin<mode>3): Ditto.
10924 (smax<mode>3): Ditto.
10925 (vector_eq<mode>): Ditto.
10926 (vector_gt<mode>): Ditto.
10927 (vector_ge<mode>): Ditto.
10928 (vector_gtu<mode>): Ditto.
10929 (vector_select_<mode>_uns): Ditto.
10930 (vector_eq_<mode>_p): Ditto.
10931 (vector_gt_<mode>_p): Ditto.
10932 (vector_ge_<mode>_p): Ditto.
10933 (vector_gtu_<mode>_p): Ditto.
10934 (cr6_test_for_zero): Ditto.
10935 (cr6_test_for_zero_reverse): Ditto.
10936 (cr6_test_for_lt): Ditto.
10937 (cr6_test_for_lt_reverse): Ditto.
10938 (xor<mode>3): Ditto.
10939 (ior<mode>3): Ditto.
10940 (and<mode>3): Ditto.
10941 (one_cmpl<mode>2): Ditto.
10942 (nor<mode>2): Ditto.
10943 (andc<mode>2): Ditto.
10944 (float<VEC_int<mode>2): Ditto.
10945 (unsigned_float<VEC_int><mode>2): Ditto.
10946 (fix_trunc<mode><VEC_int>2): Ditto.
10947 (fixuns_trunc<mode><VEC_int>2): Ditto.
10948 (vec_init<mode>):
10949 (vec_set<mode>): Ditto.
10950 (vec_extract<mode>): Ditto.
10951 (vec_interleave_highv4sf): Ditto.
10952 (vec_interleave_lowv4sf): Ditto.
10953 (vec_realign_load_<mode>): Ditto.
10954 (vec_shl_<mode>): Ditto.
10955 (vec_shr_<mode>): Ditto.
10956 (div<mode>3): New patterns for VSX.
10957 (vec_interleave_highv2df): Ditto.
10958 (vec_interleave_lowv2df): Ditto.
10959 (vec_pack_trunc_v2df): Ditto.
10960 (vec_pack_sfix_trunc_v2df): Ditto.
10961 (vec_pack_ufix_trunc_v2df): Ditto.
10962 (vec_unpacks_hi_v4sf): Ditto.
10963 (vec_unpacks_lo_v4sf): Ditto.
10964 (vec_unpacks_float_hi_v4si): Ditto.
10965 (vec_unpacks_float_lo_v4si): Ditto.
10966 (vec_unpacku_float_hi_v4si): Ditto.
10967 (vec_unpacku_float_lo_v4si): Ditto.
10968 (movmisalign<mode>): Ditto.
10969 (vector_ceil<mode>2): New patterns for vectorizing math library.
10970 (vector_floor<mode>2): Ditto.
10971 (vector_btrunc<mode>2): Ditto.
10972 (vector_copysign<mode>3): Ditto.
10973
10974 * config/rs6000/predicates.md (easy_vector_constant_msb): New
10975 predicate for setting the high bit in each word, used for copysign.
10976
10977 * config/rs6000/ppc-asm.h (f19): Whitespace.
10978 (f32-f63): Define if VSX.
10979 (v0-v31): Define if Altivec.
10980 (vs0-vs63): Define if VSX.
10981
10982 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
10983
10984 * config/rs6000/power7.md: New file, provide tuning parameters for
10985 -mcpu=power7.
10986
10987 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
10988 (rs6000_cpu_cpp_builtins): Ditto.
10989 (altivec_overloaded_builtins): Ditto.
10990 (altivec_resolve_overloaded_builtin): Ditto.
10991
10992 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
10993 debug switch to disable vectorizing simple math builtin
10994 functions.
10995
10996 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
10997 Vectorize simple math builtin functions.
10998 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
10999 hook to vectorize math builtins.
11000 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
11001 (rs6000_builtin_conversion): Add VSX/power7 support.
11002 (rs6000_builtin_vec_perm): Ditto.
11003 (vsplits_constant): Add support for loading up a vector constant
11004 with just the high bit set in each part.
11005 (rs6000_expand_vector_init): Add VSX/power7 support.
11006 (rs6000_expand_vector_set): Ditto.
11007 (rs6000_expand_vector_extract): Ditto.
11008 (rs6000_emit_move): Ditto.
11009 (bdesc_3arg): Ditto.
11010 (bdesc_2arg): Ditto.
11011 (bdesc_1arg): Ditto.
11012 (rs6000_expand_ternop_builtin): Ditto.
11013 (altivec_expand_builtin): Ditto.
11014 (rs6000_expand_unop_builtin): Ditto.
11015 (rs6000_init_builtins): Ditto.
11016 (altivec_init_builtins): Ditto.
11017 (builtin_function_type): Ditto.
11018 (rs6000_common_init_builtins): Ditto.
11019 (rs6000_handle_altivec_attribute); Ditto.
11020 (rs6000_mangle_type): Ditto.
11021 (rs6000_vector_mode_supported_p): Ditto.
11022 (rs6000_mode_dependent_address): Altivec addresses with AND -16
11023 are mode dependent.
11024
11025 * config/rs6000/vsx.md: New file for VSX support.
11026
11027 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
11028 identifing values with just the most significant bit set.
11029 (enum rs6000_builtins): Add builtins for VSX. Add simple math
11030 vectorized builtins.
11031
11032 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
11033 (UNSPEC_VRFIM): Delete.
11034 (splitter for loading up vector with most significant bit): New
11035 splitter for vectorizing copysign.
11036 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
11037 vectorizing simple math functions.
11038 (altivec_vrfip): Add support for vectorizing simple math functions.
11039 (altivec_vrfim): Ditto.
11040 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
11041
11042 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
11043 (power7.md, vsx.md): Include for power7 support.
11044 (copysigndf3): Use VSX instructions if -mvsx.
11045 (negdf2_fpr): Ditto.
11046 (absdf2_fpr): Ditto.
11047 (nabsdf2_fpr): Ditto.
11048 (adddf3_fpr): Ditto.
11049 (subdf3_fpr): Ditto.
11050 (muldf3_fpr): Ditto.
11051 (divdf3_fpr): Ditto.
11052 (fix_truncdfdi2_fpr): Ditto.
11053 (cmpdf_internal1): Ditto.
11054 (fred, fred_fpr): Convert into expander/insn to add VSX support.
11055 (btruncdf2, btruncdf2_fpr): Ditto.
11056 (ceildf2, ceildf2_fpr): Ditto.
11057 (floordf2, floordf2_fpr): Ditto.
11058 (floatdidf2, floatdidf2_fpr): Ditto.
11059 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
11060 (fmsubdf4_fpr): Ditto.
11061 (fnmadddf4_fpr_1): Ditto.
11062 (fnmadddf4_fpr_2): Ditto.
11063 (fnmsubdf4_fpr_1): Ditto.
11064 (fnmsubdf4_fpr_2): Ditto.
11065 (fixuns_truncdfdi2): Add expander for VSX support.
11066 (fix_truncdfdi2): Ditto.
11067 (fix_truncdfsi2): Ditto.
11068 (ftruncdf2): Ditto.
11069 (btruncsf2): Whitespace.
11070 (movdf_hardfloat32): Add support for VSX registers.
11071 (movdf_softfloat32): Ditto.
11072 (movdf_hardfloat64): Ditto.
11073 (movdf_hardfloat64_mfpgpr): Ditto.
11074 (movdf_softfloat64): Ditto.
11075 (movti splitters): Add check for vector registers supporting
11076 TImode in the future.
11077 (bpermd): Add power7 bpermd instruction.
11078
11079 * config/rs6000/altivec.h (vec_div): Define if VSX.
11080 (vec_mul): Ditto.
11081 (vec_msub): Ditto.
11082 (vec_nmadd): Ditto.
11083 (vec_nearbyint): Ditto.
11084 (vec_rint): Ditto.
11085 (vec_sqrt): Ditto.
11086 (all predicates): Use the generic builtin function, and not the V4SF
11087 specific function so that the predicates will work with VSX's V2DF.
11088 (vec_all_*): Ditto.
11089 (vec_any_*): Ditto.
11090
11091 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
11092 Document new VSX functions and types.
11093
11094 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
11095 switches.
11096
11097 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
11098 "wa", and "j" constraints. Modify "v" to talk about Altivec
11099 instead of just vector.
11100
11101 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
11102
11103 PR debug/26475
11104 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
11105 location for phi arguments.
11106 (rewrite_update_phi_arguments): Find locations for reaching defs.
11107 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
11108 Add location to add_phi_arg calls.
11109 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
11110 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
11111 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
11112 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
11113 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
11114 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
11115 * tree-phinodes.c (make_phi_node): Initialize location.
11116 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
11117 (add_phi_arg): Add location parameter.
11118 (remove_phi_arg_num): Move location when moving phi argument.
11119 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
11120 location.
11121 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
11122 slpeel_update_phi_nodes_for_guard1,
11123 slpeel_update_phi_nodes_for_guard2,
11124 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11125 vect_loop_versioning): Set locations.
11126 * tree-parloops.c (create_phi_for_local_result,
11127 transform_to_exit_first_loop, create_parallel_loop): Add locations.
11128 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11129 * tree-vect-loop.c (get_initial_def_for_induction,
11130 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11131 locations.
11132 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
11133 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
11134 (gimple_phi_arg_set_location): New. Set locus.
11135 (gimple_phi_arg_has_location): New. Check for locus.
11136 (redirect_edge_var_map_location): New. Return locus from var_map.
11137 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11138 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11139 combining PHI arguments.
11140 (cond_store_replacement): Set location.
11141 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11142 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11143 scop_add_exit_phis_edge): Add locations.
11144 * tree-cfgcleanup.c (remove_forwarder_block,
11145 remove_forwarder_block_with_phi): Add locations.
11146 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11147 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11148 locations.
11149 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11150 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11151 flush_pending_stmts): Add source location.
11152 * lambda-code.c (perfect_nestify): Maintain location stack with argument
11153 stack to preserve locations.
11154 * tree-vect-stmts.c (vectorizable_load): Add location.
11155 * tree-inline.c (copy_phis_for_bb): Copy locus.
11156 (setup_one_parameter): Add call locus to inlined parameter stmts.
11157 (initialize_inlined_parameters): Pass in call location as parameter
11158 assignment locus.
11159 (tree_function_versioning): Pass location to setup_one_parameter.
11160 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11161 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11162 copy and edge lists.
11163 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
11164 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
11165 locus parameter and override the stmt default if provided.
11166 (new_elim_graph, clear_elim_graph, delete_elim_graph,
11167 elim_graph_add_edge, elim_graph_remove_succ_edge,
11168 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11169 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11170 eliminate_phi): Add locus info in elimination graph for each edge and
11171 value copy.
11172 (insert_backedge_copies): Copy locus if present.
11173 * tree-flow.h (struct _edge_var_map): Add locus field.
11174 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11175 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
11176 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
11177 locations.
11178 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
11179
11180 2009-07-30 Martin Jambor <mjambor@suse.cz>
11181
11182 PR tree-optimization/40570
11183 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11184 use inlining loops.
11185
11186 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
11187
11188 * ssa-loop-manip.c: Include langhooks.h.
11189 (rewrite_phi_with_iv): New.
11190 (rewrite_all_phi_nodes_with_iv): New.
11191 (canonicalize_loop_ivs): Move here from tree-parloops.c.
11192 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11193 * tree-parloops.c (loop_parallel_p): Move out all conditions
11194 except dependency check.
11195 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11196 (gen_parallel_loop): Call canonicalize_loop_ivs without
11197 reduction_list argument.
11198 (build_new_reduction): New.
11199 (gather_scalar_reductions): New.
11200 (try_get_loop_niter): New.
11201 (try_create_reduction_list): New.
11202 (parallleize_loops): Change the parallel conditions check.
11203 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11204 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11205
11206 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
11207
11208 * opt-functions.awk (opt_args): Allow argument to be enclosed in
11209 curly braces.
11210 * doc/options.texi (Option properties): Mention new quoting syntax.
11211
11212 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11213
11214 * config/alpha/alpha.c (alpha_start_function):
11215 Handle VMS_DEBUG_MAIN_POINTER
11216 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11217 * doc/invoke.texi: Document -mdebug-main switch.
11218
11219 2009-07-29 Richard Henderson <rth@redhat.com>
11220
11221 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11222 (cgraph_create_edge_including_clones): Likewise.
11223 * tree-inline.c (copy_bb): Operate on the correct edges
11224 when updating the callgraph.
11225
11226 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11227
11228 * config/alpha/vms-cc.c: Deleted.
11229 * config/alpha/vms-ld.c: Deleted.
11230 * config/alpha/t-vms64: Moved to config/vms
11231 * config/alpha/vms-crt0-64.c: Moved to config/vms
11232 * config/alpha/vms-crt0.c: Moved to config/vms
11233 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11234 * config/alpha/vms-psxcrt0.c: Moved to config/vms
11235 * config/alpha/xm-vms.h: Moved to config/vms
11236 * config/alpha/x-vms: Moved to config/vms
11237 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11238 config/vms/t-vms.
11239 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11240 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11241 (version): Set.
11242 * config/vms/t-vms64: Moved here from config/alpha
11243 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11244 (argc,argv,envp): Enforce 32bit malloc'ing.
11245 * config/vms/vms-psxcrt0-64.c: Likewise.
11246 * config/vms/vms-crt0.c: Moved here from config/alpha.
11247 * config/vms/vms-psxcrt0.c: Likewise.
11248 * config/vms/vms-crtl-64.h: New file.
11249 * config/vms/vms-crtl.h: New file.
11250 * config/vms/vms.opt: New file.
11251 * config/vms/xm-vms64.h: New file.
11252 * config/vms/xm-vms.h: Moved here from config/alpha.
11253 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11254 Set.
11255 * config/vms/x-vms: Moved here from config/alpha.
11256 (version, VMS_EXTRA_PARTS): Moved to t-vms.
11257 (vms-ld.o, vms-cc.o): Removed.
11258 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11259
11260 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11261
11262 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11263 correct stack (obvious VMS fix).
11264
11265 2009-07-29 Douglas B Rupp <rupp@gnat.com>
11266
11267 * dwarf2out.c (output_file_names): Output VMS style file name, size,
11268 date, version info if VMS_DEBUGGING_INFO defined.
11269 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11270 size, date calculating code moved here.
11271
11272 2009-07-29 Paul Brook <paul@codesourcery.com>
11273
11274 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11275 do_push/do_pop.
11276
11277 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
11278
11279 PR target/40577
11280 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11281 to DImode when generating insq_le insn.
11282
11283 2009-07-28 Douglas B Rupp <rupp@gnat.com>
11284
11285 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11286 New macro set for VMS_DEBUGGGING_INFO.
11287 (AT_string_form): Use it.
11288
11289 2009-07-28 DJ Delorie <dj@redhat.com>
11290
11291 * config/mep/mep.c (vtext_section): New.
11292 (vftext_section): New.
11293 (ftext_section): New.
11294 (mep_select_section): Add support for functions.
11295 (mep_unique_section): Likewise.
11296 (mep_asm_init_sections): Likewise.
11297 (mep_encode_section_info): Remove it from here.
11298
11299 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11300
11301 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
11302
11303 * tree.h (TREE_DEPRECATED): Document it is used for types too.
11304 (TYPE_VECTOR_OPAQUE): Use default_def_flag
11305
11306 2009-07-28 Douglas B Rupp <rupp@gnat.com>
11307
11308 * dwarf2out.c (output_file_names): Test new macro
11309 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11310 (add_comp_dir_attribute): Likewise.
11311
11312 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
11313
11314 * config/i386/mingw-w64.h (LINK_SPEC): Add
11315 separating space between commands.
11316
11317 2009-07-28 Jan Hubicka <jh@suse.cz>
11318
11319 PR tree-optimization/40759
11320 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
11321 for renaming.
11322
11323 2009-07-27 DJ Delorie <dj@redhat.com>
11324
11325 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
11326 types are dword-aligned.
11327 (mep_expand_va_start): Likewise.
11328
11329 2009-07-27 Olivier Hainque <hainque@adacore.com>
11330 Douglas B Rupp <rupp@gnat.com>
11331
11332 * convert.c (convert_to_pointer): Don't assume the target
11333 pointer type is POINTER_SIZE long. Fetch its precision instead.
11334
11335 2009-07-27 Douglas B Rupp <rupp@gnat.com>
11336
11337 * system.h (fopen): Undefine if macro.
11338
11339 2009-07-27 Jakub Jelinek <jakub@redhat.com>
11340
11341 * dwarf2out.c (output_cfi_p): Removed.
11342 (output_cfis): New function.
11343 (output_fde): New function, split from output_call_frame_info.
11344 (output_call_frame_info): Use it.
11345 (dwarf2out_switch_text_section): Use output_cfis.
11346
11347 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
11348
11349 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11350 TARGET_BI_ARCH is specified without enabling SJLJ.
11351 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11352 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11353
11354 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
11355
11356 * arm.md (negdi2): Use DImode if forcing a value into a register.
11357
11358 2009-07-26 Ira Rosen <irar@il.ibm.com>
11359
11360 PR tree-optimization/40801
11361 * tree-vect-stmts.c (vectorizable_call): Get previous copy
11362 of vector operand from the previous copy of vector statement.
11363 Pass the correct definition type value to
11364 vect_get_vec_def_for_stmt_copy().
11365
11366 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11367
11368 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11369 const char ** conversion.
11370
11371 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11372
11373 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11374 fancy_abort() if !ENABLE_ASSERT_CHECKING.
11375 (gcc_unreachable): Invoke __builtin_unreachable() if
11376 !ENABLE_ASSERT_CHECKING.
11377
11378 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11379
11380 PR rtl-optimization/40445
11381 * emit-rtl.c (next_nonnote_insn_bb): New function.
11382 * rtl.h (next_nonnote_insn_bb): Declare new function.
11383 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11384 with no successors that is the successor of the ENTRY_BLOCK.
11385 Continue from the top after removing an empty fallthrough block.
11386 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11387 of next_nonnote_insn.
11388
11389 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11390
11391 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
11392
11393 2009-07-25 Martin Jambor <mjambor@suse.cz>
11394
11395 * c-common.c (c_common_attribute_table): New element for noclone.
11396 (handle_noclone_attribute): New function. Forward-declare.
11397 * tree-inline.c (tree_versionable_function_p): Check for noclone
11398 attribute.
11399 * doc/extend.texi (Labels as Values): Document need for noclone.
11400 (Function Attributes): Document noclone attribute.
11401
11402 2009-07-25 Jakub Jelinek <jakub@redhat.com>
11403
11404 PR rtl-optimization/34999
11405 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11406 and dw_fde_switched_cold_to_hot fields.
11407 (output_cfi_p): New function.
11408 (output_call_frame_info): If fde->dw_fde_switched_sections,
11409 output 2 FDEs instead of one with corrupted header.
11410 (dwarf2out_do_cfi_startproc): New function.
11411 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
11412 and fde->dw_fde_switched_cold_to_hot.
11413 (dwarf2out_switch_text_section): Compute
11414 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
11415 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11416 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11417 Otherwise, compute fde->dw_fde_switch_cfi.
11418
11419 2009-07-24 Cary Coutant <ccoutant@google.com>
11420
11421 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11422
11423 2009-07-24 Cary Coutant <ccoutant@google.com>
11424
11425 * cfghooks.c (split_block): Copy discriminator to new block.
11426 * tree-cfg.c (assign_discriminator): Check location of last
11427 instruction in block as well as first.
11428
11429 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
11430
11431 * config/i386/linux.c: Use fputs or putc instead of fprintf
11432 where appropriate.
11433 * config/i386/gas.h: Ditto.
11434 * config/i386/x86-64.h: Ditto.
11435 * config/i386/att.h: Ditto.
11436
11437 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11438
11439 * expmed.c (emit_store_flag): Use a recursive call to optimize the
11440 xor case.
11441
11442 2009-07-24 Martin Jambor <mjambor@suse.cz>
11443
11444 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11445 (ipa_push_func_to_list_1): Declare.
11446 (ipa_push_func_to_list): New function.
11447
11448 * ipa-prop.c (ipa_push_func_to_list_1): New function.
11449 (ipa_init_func_list): Call ipa_push_func_to_list_1.
11450 (ipa_push_func_to_list): Removed.
11451 (ipa_pop_func_from_list): Clear node_enqueued flag.
11452
11453 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
11454
11455 * config/s390/s390.c (override_options): Default
11456 max-unrolled-insns to 100 for z10 tuning.
11457
11458 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
11459
11460 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11461 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11462 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11463 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11464 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11465 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11466 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11467
11468 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
11469
11470 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11471 use default set in mingw32.h header.
11472 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11473 64-bit /mingw/include path.
11474 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11475 path.
11476
11477 2009-07-23 Neil Vachharajani <nvachhar@google.com>
11478
11479 PR rtl-optimization/40209
11480 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11481
11482 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
11483
11484 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
11485 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11486 with the rest of string where appropriate. Use fputs or putc
11487 instead of fprintf where appropriate.
11488
11489 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11490 Pat Haugen <pthaugen@us.ibm.com>
11491 Revital Eres <ERES@il.ibm.com>
11492
11493 * config/rs6000/vector.md: New file. Move most of the vector
11494 expander support here from altivec.md to allow for the VSX vector
11495 unit in the future. Add support for secondary_reload patterns.
11496 Rewrite the patterns for vector comparison, and vector comparison
11497 predicate instructions so that the RTL expresses the desired
11498 behavior, instead of using unspec.
11499
11500 * config/rs6000/constraints.md ("f" constraint): Use
11501 rs6000_constraints to hold the precalculated register class.
11502 ("d" constraint): Ditto.
11503 ("wd" constraint): New constraint for VSX.
11504 ("wf" constraint): Ditto.
11505 ("ws" constraint): Ditto.
11506 ("wa" constraint): Ditto.
11507 ("wZ" constraint): Ditto.
11508 ("j" constraint): Ditto.
11509
11510 * config/rs6000/predicates.md (vsx_register_operand): New
11511 predicate for VSX.
11512 (vfloat_operand): New predicate for vector.md.
11513 (vint_operand): Ditto.
11514 (vlogical_operand): Ditto.
11515 (easy_fp_constant): If VSX, 0.0 is an easy constant.
11516 (easy_vector_constant): Add VSX support.
11517 (altivec_indexed_or_indirect_operand): New predicate for
11518 recognizing Altivec style memory references with AND -16.
11519
11520 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11521 for vector secondary reload support.
11522 (rs6000_vector_reg_class): Delete, replacing it with
11523 rs6000_constraints.
11524 (rs6000_vsx_reg_class): Ditto.
11525 (rs6000_constraints): New array to hold the register classes of
11526 each of the register constraints that can vary at runtime.
11527 (builtin_mode_to_type): New static array for builtin function type
11528 creation.
11529 (builtin_hash_table): New static hash table for builtin function
11530 type creation.
11531 (TARGET_SECONDARY_RELOAD): Define target hook.
11532 (TARGET_IRA_COVER_CLASSES): Ditto.
11533 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
11534 registers are 128 bits if VSX memory reference instructions are used.
11535 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11536 unit is being used.
11537 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11538 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11539 Print several of the scheduling related parameters.
11540 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11541 rs6000_constraints instead of rs6000_vector_reg_class. Move
11542 -mdebug=reg code to rs6000_debug_reg_global. Add support for
11543 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
11544 Altivec. Add VSX support. Setup for secondary reload support on
11545 Altivec/VSX registers.
11546 (rs6000_override_options): Make power7 set the scheduling groups
11547 like the power5. Add support for new debug switches to override
11548 the scheduling defaults. Temporarily disable -mcpu=power7 from
11549 setting -mvsx. Add support for debug switches -malways-hint,
11550 -msched-groups, and -malign-branch-targets.
11551 (rs6000_buitlin_conversion): Add support for returning unsigned
11552 vector conversion functions to fix regressions due to stricter
11553 type checking.
11554 (rs6000_builtin_mul_widen_even): Ditto.
11555 (rs6000_builtin_mul_widen_odd): Ditto.
11556 (rs6000_builtin_vec_perm): Ditto.
11557 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11558 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11559 to zero a register.
11560 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11561 generated upstream.
11562 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
11563 VSX types for bit operations. Changes to accomidate vector.md.
11564 (bdesc_2arg): Ditto.
11565 (bdesc_1arg): Ditto.
11566 (struct builtin_description_predicates): Rewrite predicate
11567 handling so that RTL describes the operation, instead of passing
11568 the instruction to be used as a string argument.
11569 (bdesc_altivec_preds): Ditto.
11570 (altivec_expand_predicate_builtin): Ditto.
11571 (altivec_expand_builtin): Ditto.
11572 (rs6000_expand_ternop_builtin): Use a switch instead of an if
11573 statement for vsldoi support.
11574 (altivec_expand_ld_builtin): Change to use new names from vector.md.
11575 (altivec_expand_st_builtin): Ditto.
11576 (paired_expand_builtin): Whitespace changes.
11577 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
11578 builtin_mode_to_type table for secondary reload. Call
11579 builtin_function_type to build random builtin functions.
11580 (altivec_init_builtins): Change to use builtin_function_type to
11581 create builtin function types dynamically as we need them.
11582 (builtin_hash_function): New support for hashing the tree types
11583 for builtin function as we need it, rather than trying to build
11584 all of the trees that we need. Add initial preliminary VSX support.
11585 (builtin_function_type): Ditto.
11586 (builtin_function_eq): Ditto.
11587 (builtin_hash_struct): Ditto.
11588 (rs6000_init_builtins): Ditto.
11589 (rs6000_common_init_builtins): Ditto.
11590 (altivec_init_builtins): Ditto.
11591 (rs6000_common_init_builtins): Ditto.
11592 (enum reload_reg_type): New enum for simplifing reg classes.
11593 (rs6000_reload_register_type): Simplify register classes into GPR,
11594 Vector, and other registers. Altivec and VSX addresses in reload.
11595 (rs6000_secondary_reload_inner): Ditto.
11596 (rs6000_ira_cover_classes): New target hook, that returns the
11597 appropriate cover classes, based on -mvsx being used or not.
11598 (rs6000_secondary_reload_class): Add VSX support.
11599 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
11600 (get_vsel_insn): Ditto.
11601 (rs6000_emit_vector_compare): Rewrite vector conditional support
11602 so that where we can, we use RTL operators, instead of blindly use
11603 UNSPEC.
11604 (rs6000_emit_vector_select): Ditto.
11605 (rs6000_emit_vector_cond_expr): Ditto.
11606 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
11607 (create_TOC_reference): Add -mdebug=addr support.
11608 (emit_frame_save): VSX loads/stores need register indexed addressing.
11609
11610 * config/rs6000/rs6000.md: Include vector.md.
11611
11612 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
11613
11614 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11615 support for V2DI, V2DF in logical, permute, select operations.
11616
11617 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
11618 switch for vsx/power7.
11619 (-mvsx-scalar-memory): Ditto.
11620 (-mvsx-align-128): Ditto.
11621 (-mallow-movmisalign): Ditto.
11622 (-mallow-df-permute): Ditto.
11623 (-msched-groups): Ditto.
11624 (-malways-hint): Ditto.
11625 (-malign-branch-targets): Ditto.
11626
11627 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
11628 hook instead.
11629 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
11630 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
11631 (rs6000_vector_reg_class): Delete.
11632 (rs6000_vsx_reg_class): Ditto.
11633 (enum rs6000_reg_class_enum): New enum for the constraints that
11634 vary based on target switches.
11635 (rs6000_constraints): New array to hold the register class for all
11636 of the register constraints that vary based on the switches used.
11637 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
11638 (enum rs6000_builtins): Add unsigned varients for the builtin
11639 declarations returned by target hooks for expanding multiplies,
11640 select, and permute operations. Add VSX builtins.
11641 (enum rs6000_builtin_type_index): Add entries for VSX.
11642 (V2DI_type_node): Ditto.
11643 (V2DF_type_node): Ditto.
11644 (unsigned_V2DI_type_node): Ditto.
11645 (bool_long_type_node): Ditto.
11646 (intDI_type_internal_node): Ditto.
11647 (uintDI_type_internal_node): Ditto.
11648 (double_type_internal_node): Ditto.
11649
11650 * config/rs6000/altivec.md (whole file): Move all expanders to
11651 vector.md from altivec.md. Rename insn matching functions to be
11652 altivec_foo.
11653 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
11654 (altivec_vcmp*): Ditto.
11655 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
11656 (VM): New iterator for moves that includes the VSX types.
11657 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
11658 (altivec_vperm_<mode>_uns): New, for unsigned types.
11659 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
11660 (altivec_eq<mode>): Ditto.
11661 (altivec_gt<mode>): Ditto.
11662 (altivec_gtu<mode>): Ditto.
11663 (altivec_eqv4sf): Ditto.
11664 (altivec_gev4sf): Ditto.
11665 (altivec_gtv4sf): Ditto.
11666 (altivec_vcmpbfp_p): Ditto.
11667
11668 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
11669
11670 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
11671 unsigned HWI.
11672
11673 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
11674
11675 PR target/40832
11676 * config/i386/i386.c (output_387_ffreep): Rewrite to use
11677 ASM_SHORT instead of .word.
11678 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
11679 instead of .word in asm template.
11680
11681 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
11682
11683 PR target/37488
11684 * ira-lives.c (bb_has_abnormal_call_pred): New function.
11685 (process_bb_node_lives): Use it.
11686
11687 * ira.c (setup_cover_and_important_classes): Don't setup
11688 ira_important_class_nums. Add cover classes to the end of
11689 important classes.
11690 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
11691 New.
11692 (find_reg_class_closure): Use reorder_important_classes.
11693
11694 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
11695
11696 * config/i386/i386.c (i386_ira_cover_classes): New function.
11697 (TARGET_IRA_COVER_CLASSES): Redefine.
11698
11699 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
11700 importance of order of cover classes in the array.
11701
11702 2009-07-22 Diego Novillo <dnovillo@google.com>
11703
11704 * tree-pass.h (TDF_EH): Define.
11705 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
11706 contains TDF_EH, print the EH region number holding GS.
11707 * tree-dump.c (dump_options): Add "eh".
11708 * doc/invoke.texi: Document it.
11709
11710 2009-07-22 Doug Kwan <dougkwan@google.com>
11711
11712 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
11713
11714 2009-07-22 Michael Matz <matz@suse.de>
11715
11716 PR tree-optimization/35229
11717 PR tree-optimization/39300
11718
11719 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
11720 (inhibit_phi_insertion): New function.
11721 (insert_into_preds_of_block): Call it for REFERENCEs.
11722 (init_pre): Initialize and finalize scalar evolutions.
11723 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
11724
11725 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
11726
11727 * config/i386/predicates.md (zero_extended_scalar_load_operand):
11728 Use CONST_VECTOR_NUNITS to determine number of elements.
11729
11730 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
11731
11732 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
11733 (U, W): Constraints are now deprecated and will be removed if we
11734 run out of letters.
11735 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
11736 the file.
11737 ("prefetch"): Add the stcmh instruction for prefetching.
11738 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
11739 changes.
11740 (s390_short_displacement): Return always true if compiling for
11741 machines not providing the long displacement facility.
11742 (s390_mem_constraint): Support the new constraint letter Z.
11743 (s390_check_qrst_address): New function.
11744
11745 2009-07-21 DJ Delorie <dj@redhat.com>
11746
11747 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
11748 alone too.
11749
11750 2009-07-21 Jason Merrill <jason@redhat.com>
11751
11752 * c-common.c (max_tinst_depth): Increase default to 1024.
11753
11754 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
11755
11756 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
11757 (vec_unpacku_float_lo_v4si): Ditto.
11758
11759 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
11760
11761 PR target/40811
11762 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
11763 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
11764 (builtin_description): Add __builtin_ia32_cvtudq2ps.
11765 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
11766
11767 2009-07-21 Jakub Jelinek <jakub@redhat.com>
11768
11769 PR tree-optimization/40813
11770 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
11771 it.
11772
11773 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
11774
11775 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
11776 with a NOP_EXPR if needed.
11777
11778 2009-07-21 Paul Brook <paul@codesourcery.com>
11779
11780 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
11781 Terminate debug dump with newline.
11782
11783 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11784
11785 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
11786 Cast "1" to unsigned HOST_WIDE_INT.
11787 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
11788 deposit length to the maximum length - lsb. Extend length if
11789 HOST_BITS_PER_WIDE_INT is 32.
11790
11791 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
11792
11793 * cgraph.h (constant_pool_htab): New function.
11794 (constant_descriptor_tree): Move from varasm.c.
11795 * varasm.c (constant_pool_htab): New function.
11796 (constant_descriptor_tree): Move to cgraph.h.
11797
11798 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
11799
11800 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
11801
11802 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
11803
11804 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
11805 $(VARRAY_H).
11806
11807 2009-07-20 Xinliang David Li <davidxl@google.com>
11808
11809 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
11810
11811 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
11812
11813 * config/mips/mips.md (move_type): Add arith.
11814 (type): Handle arith.
11815 (zero_extendsidi2): Rename this into ...
11816 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
11817 (zero_extendsidi2): New expander.
11818 (*zero_extendsidi2_dext): New pattern.
11819
11820 2009-07-20 Nick Clifton <nickc@redhat.com>
11821
11822 * config.gcc (mips64-*-*): Add definition of tm_defines in order
11823 to set MIPS_ABI_DEFAULT.
11824 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
11825
11826 2009-07-20 Jakub Jelinek <jakub@redhat.com>
11827
11828 * tree-object-size.c (addr_object_size): Handle unions with
11829 array in it as last field of structs in __bos (, 1) as __bos (, 0).
11830
11831 PR tree-optimization/40792
11832 * tree.c (build_function_type_skip_args): Remove bogus assert.
11833
11834 2009-07-20 Jan Hubicka <jh@suse.cz>
11835 Martin Jambor <mjambor@suse.cz>
11836
11837 * cgraph.h (combined_args_to_skip): New field.
11838 * cgraph.c (cgraph_create_virtual_clone): Properly handle
11839 combined_args_to_skip and args_to_skip.
11840 * tree-inline.c (update_clone_info): New function.
11841 (tree_function_versioning): Call update_clone_info.
11842 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
11843 functions.
11844 (cgraph_materialize_all_clones): More extensive dumping, working
11845 with combined_args_to_skip rather than args_to_skip.
11846
11847 2009-07-20 Ira Rosen <irar@il.ibm.com>
11848
11849 * tree-vectorizer.h (vectorizable_condition): Add parameters.
11850 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
11851 (get_initial_def_for_reduction): Likewise.
11852 (vectorizable_reduction): Skip the check of first operand in case
11853 of COND_EXPR. Add check that it is outer loop vectorization if
11854 nested cycle was detected. Call vectorizable_condition() for
11855 COND_EXPR. If reduction epilogue cannot be created do not fail for
11856 nested cycles (if it is not double reduction). Assert that there
11857 is only one type in the loop in case of COND_EXPR. Call
11858 vectorizable_condition() to vectorize COND_EXPR.
11859 * tree-vect-stmts.c (vectorizable_condition): Update comment.
11860 Add parameters. Allow nested cycles if called from
11861 vectorizable_reduction(). Use reduction vector variable if provided.
11862 (vect_analyze_stmt): Call vectorizable_reduction() before
11863 vectorizable_condition().
11864 (vect_transform_stmt): Update call to vectorizable_condition().
11865
11866 2009-07-20 Christian Bruel <christian.bruel@st.com>
11867
11868 * config/sh/sh.opt (-mfmovd): Resurrect and document.
11869 * doc/invoke.texi (-mfmovd): Likewise.
11870 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
11871
11872 2009-07-20 Jan Hubicka <jh@suse.cz>
11873
11874 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
11875 when handling SSA name.
11876
11877 2009-07-19 Jan Hubicka <jh@suse.cz>
11878
11879 PR tree-optimization/40676
11880 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
11881 virtual PHIs in empty BBs.
11882
11883 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11884
11885 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
11886 re-expanded the compound use gen_lowpart instead to convert to the
11887 desired mode.
11888
11889 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11890
11891 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
11892 OUTER_CONST arguments.
11893 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
11894 the new wider mode will be masked off.
11895 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
11896
11897 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11898
11899 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
11900 high-order bits are zero.
11901
11902 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
11903
11904 * combine.c (simplify_shift_const_1): Split code to determine
11905 shift_mode into ...
11906 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
11907 new bits shifted in are identical to the old sign bit.
11908
11909 2009-07-18 Richard Guenther <rguenther@suse.de>
11910
11911 PR c/40787
11912 * gimplify.c (gimplify_call_expr): Reject code using results from
11913 functions returning void.
11914
11915 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
11916
11917 * doc/md.texi: Document the new PowerPC "es" constraint.
11918 Document that "m" can include automodified addresses on this target,
11919 and explain how %U must be used. Extend the "Q" and "Z" documentation
11920 to suggest "es" as well as "m".
11921 * config/rs6000/constraints.md (es): New memory constraint.
11922 (Q, Z): Update strings to match new documentation.
11923
11924 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
11925
11926 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
11927 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
11928 * config/rs6000/predicates.md (volatile_mem_operand): Use
11929 offsettable_nonstrict_memref_p.
11930 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
11931 (*floatunssidf2_internal): Likewise.
11932 (*fix_truncdfsi2_internal): Likewise.
11933 (*fix_trunctfsi2_internal): Likewise.
11934
11935 2009-07-17 Anatoly Sokolov <aesok@post.ru>
11936
11937 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
11938 atmega32u2 devices.
11939 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11940
11941 2009-07-17 Richard Guenther <rguenther@suse.de>
11942
11943 PR c/40401
11944 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
11945 (pass_warn_unused_result): Likewise.
11946 (TODO_set_props): Remove.
11947 * omp-low.c (diagnose_omp_structured_block_errors): Change to
11948 run as a pass.
11949 (pass_diagnose_omp_blocks): Define.
11950 * c-decl.c (pop_file_scope): Do not finalize the CU here.
11951 (c_gimple_diagnostics_recursively): Remove.
11952 (finish_function): Do not call it.
11953 (c_write_global_declarations): Continue after errors.
11954 Finalize the CU here.
11955 * c-gimplify.c (c_genericize): Do not gimplify here.
11956 * c-common.c (c_warn_unused_result): Move ...
11957 * tree-cfg.c (do_warn_unused_result): ... here.
11958 (run_warn_unused_result): New function.
11959 (gate_warn_unused_result): New function.
11960 (pass_warn_unused_result): New pass.
11961 * c-common.h (c_warn_unused_result): Remove.
11962 * flags.h (flag_warn_unused_result): Declare.
11963 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
11964 * opts.c (flag_warn_unused_result): Initialize to false.
11965 * toplev.c (compile_file): Add comment.
11966 * omp-low.c (create_omp_child_function): Do not register
11967 the function with the frontend.
11968 (diagnose_omp_structured_block_errors): Prepare to be
11969 called as optimization pass.
11970 (gate_diagnose_omp_blocks): New function.
11971 (pass_diagnose_omp_blocks): New pass.
11972 * cgraph.h (cgraph_optimize): Remove.
11973 (cgraph_analyze_function): Likewise.
11974 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
11975 * cgraphunit.c (cgraph_lower_function): Lower nested functions
11976 before their parents here.
11977 (cgraph_finalize_function): Not here.
11978 (cgraph_analyze_function): Gimplify functions here.
11979 (cgraph_finalize_compilation_unit): Continue after errors.
11980 Optimize the callgraph from here.
11981 (cgraph_optimize): Make static.
11982 * langhooks.c (write_global_declarations): Finalize the CU.
11983 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
11984 (gimplify_function_tree): Assert we gimplify only once.
11985 Set PROP_gimple_any property.
11986 * tree-nested.c (gimplify_all_functions): New function.
11987 (lower_nested_functions): Gimplify all nested functions.
11988 * gimple.h (diagnose_omp_structured_block_errors): Remove.
11989 * passes.c (init_optimization_passes): Add pass_warn_unused_result
11990 and pass_diagnose_omp_blocks after gimplification. Do not
11991 set TODO_set_props on all_lowering_passes.
11992 (execute_one_pass): Do not handle TODO_set_props.
11993 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
11994 (gimplify.o): Add tree-pass.h dependency.
11995 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
11996 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
11997 (unsave_r): Likewise.
11998 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
11999 temporary variable.
12000
12001 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
12002
12003 * doc/service.texi (Service): Restore previously removed link,
12004 which isn't broken after all.
12005
12006 2009-07-17 Richard Guenther <rguenther@suse.de>
12007
12008 PR tree-optimization/40321
12009 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
12010 PHI nodes to the maximal set.
12011 (make_values_for_phi): Add PHI arguments to the maximal set.
12012 (execute_pre): Dump PHI_GEN and the maximal set.
12013
12014 2009-07-17 Jakub Jelinek <jakub@redhat.com>
12015
12016 PR c++/40780
12017 * gimplify.c (gimplify_conversion): Don't change non-conversions into
12018 VIEW_CONVERT_EXPR.
12019
12020 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
12021
12022 * doc/extend.texi (Nested Functions): Replace broken link with
12023 textual reference.
12024 * doc/service.texi (Service): Remove broken link.
12025
12026 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
12027
12028 PR bootstrap/40781
12029 * builtins.c (expand_builtin_memcmp): Use loc instead of
12030 EXPR_LOCATION (exp).
12031 (expand_builtin_strncmp): Likewise.
12032
12033 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
12034 Manuel López-Ibáñez <manu@gcc.gnu.org>
12035
12036 PR 40435
12037 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
12038 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
12039 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
12040 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
12041 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
12042 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
12043 tree-inline.c, c-common.c, c-common.h, gimple.c,
12044 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
12045 convert.c: Add location argument to fold_{unary,binary,ternary},
12046 fold_build[123], build_call_expr, build_size_arg,
12047 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
12048 fold_build1_initializer, fold_build2_initializer,
12049 fold_build3_initializer, fold_build_call_array,
12050 fold_build_call_array_initializer, fold_single_bit_test,
12051 omit_one_operand, omit_two_operands, invert_truthvalue,
12052 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
12053 combine_comparisons, fold_builtin_*, fold_call_expr,
12054 build_range_check, maybe_fold_offset_to_address, round_up,
12055 round_down.
12056
12057 2009-07-16 Jason Merrill <jason@redhat.com>
12058
12059 PR libstdc++/37907
12060 * c-common.c (c_common_reswords): Add __is_standard_layout
12061 and __is_trivial.
12062 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
12063 * doc/implement-cxx.texi: New.
12064 * doc/gcc.texi: Include it.
12065
12066 2009-07-16 DJ Delorie <dj@redhat.com>
12067
12068 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
12069 compares that may be indirectly affected by previous instructions.
12070
12071 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12072
12073 * builtins.c (do_mpc_arg2): New.
12074 (fold_builtin_2): Fold builtin cpow.
12075 * real.h (HAVE_mpc_pow): New.
12076
12077 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
12078
12079 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
12080 comparison to skip unprofitable schedule
12081
12082 2009-07-16 Simon Baldwin <simonb@google.com>
12083
12084 * gcc.c (option_map): New flag -no-canonical-prefixes.
12085 * (display_help): Print help text for new flag.
12086 * (process_command): Move options translation and language specifics
12087 and handle new flag early. Use it to set a function pointer to a
12088 prefix builder. Replace make_relative_prefix calls with calls to
12089 the function pointed to. Ignore new flag in regular options handling.
12090 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
12091
12092 2009-07-15 DJ Delorie <dj@redhat.com>
12093
12094 * config/mep/mep.md (sibcall_internal): Change register to avoid
12095 argument registers.
12096 (sibcall_value_internal): Likewise.
12097
12098 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
12099
12100 PR rtl-optimization/40710
12101 * resource.c (mark_target_live_regs): Reset DF problem to LR.
12102
12103 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
12104
12105 * config/mips/mips.md (*extenddi_truncate<mode>,
12106 *extendsi_truncate<mode>): Change type attribute to move_type
12107 with shift_shift. Split out code handling exts from here ...
12108 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
12109 pattern.
12110 (*extendhi_truncateqi): Change type attribute to move_type with
12111 shift_shift. Split out code handling exts from here ...
12112 (*extendhi_truncateqi_exts): ... to this new pattern.
12113
12114 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
12115
12116 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
12117 instead of "and" with inverted sign bit mask value. Use
12118 "nonimmediate_operand" for operand 1 and operand 2 predicate.
12119 Allocate registers only for operand 4 and operand 5.
12120
12121 2009-07-15 Jakub Jelinek <jakub@redhat.com>
12122
12123 PR middle-end/40747
12124 * fold-const.c (fold_cond_expr_with_comparison): When folding
12125 < and <= to MIN, make sure the MIN uses the same type as the
12126 comparison's operands.
12127
12128 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
12129
12130 * arm.md (ior_xor): New code iterator.
12131 (split for ior/xor with shift and zero-extend): New split pattern.
12132 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12133
12134 2009-07-15 Richard Guenther <rguenther@suse.de>
12135
12136 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12137 offset member.
12138
12139 2009-07-15 Richard Guenther <rguenther@suse.de>
12140
12141 PR middle-end/40753
12142 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
12143
12144 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12145
12146 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12147 handle 2.6.30 kernel.
12148
12149 2009-07-15 DJ Delorie <dj@redhat.com>
12150
12151 * config/mep/mep.md (sibcall_internal): Change register to allow
12152 for 24-bit addresses.
12153 (sibcall_value_internal): Likewise.
12154
12155 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
12156
12157 * doc/invoke.texi: Added descriptions of the scheduling heuristics
12158 that are enabled/disabled by the flags introduced by a previous patch.
12159
12160 2009-07-14 DJ Delorie <dj@redhat.com>
12161
12162 * config/mep/mep.md (sibcall_internal): Include non-toggling
12163 non-jmp case.
12164 (sibcall_value_internal): Likewise.
12165
12166 2009-07-14 Taras Glek <tglek@mozilla.com>
12167 Rafael Espindola <espindola@google.com>
12168
12169 * doc/sourcebuild.texi: Document install-plugin target.
12170 * configure.ac: Added install-plugin target to language makefiles.
12171 * configure: Regenerate.
12172 * Makefile.in (install-plugin): Install more headers,
12173 depend on lang.install-plugin.
12174
12175 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12176
12177 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12178 translation.
12179
12180 2009-07-14 DJ Delorie <dj@redhat.com>
12181
12182 * config/mep/mep.c (mep_vliw_jmp_match): New function.
12183 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12184 * config/mep/mep.md (sibcall_internal): Change test from
12185 mep_vliw_mode_match to mep_vliw_jmp_match.
12186 (sibcall_value_internal): Likewise.
12187
12188 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
12189
12190 * config/i386/sse.md (copysign<mode>3): New expander.
12191 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12192 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12193 Use ix86_build_const_vector.
12194 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12195 IX86_BUILTIN_CPYSGNPD.
12196 (builtin_description): Add __builtin_ia32_copysignps and
12197 __builtin_ia32_copysignpd.
12198 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12199 and BUILT_IN_COPYSIGNF.
12200
12201 2009-07-13 Jason Merrill <jason@redhat.com>
12202
12203 * builtins.c (can_trust_pointer_alignment): New fn.
12204 (get_pointer_alignment): Factor it out from here.
12205 * tree.h: Declare it.
12206
12207 2009-07-14 David Edelsohn <edelsohn@gnu.org>
12208
12209 * config/rs6000/predicates.md (offsettable_mem_operand): Test
12210 RTX_AUTOINC class.
12211
12212 2009-07-14 Dodji Seketeli <dodji@redhat.com>
12213
12214 PR debug/40705
12215 PR c++/403057
12216 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12217
12218 2009-07-14 Richard Guenther <rguenther@suse.de>
12219 Andrey Belevantsev <abel@ispras.ru>
12220
12221 PR middle-end/40745
12222 * cfgexpand.c (partition_stack_vars): Do not bother to update
12223 alias information when not optimizing.
12224
12225 2009-07-14 Richard Guenther <rguenther@suse.de>
12226 Andrey Belevantsev <abel@ispras.ru>
12227
12228 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12229 (pt_solution_set): Likewise.
12230 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12231 * tree-ssa-structalias.c (pt_solution_set): New function.
12232 * final.c (rest_of_clean_state): Free SSA data structures.
12233 * print-rtl.c (print_decl_name): Remove.
12234 (print_mem_expr): Implement in terms of print_generic_expr.
12235 * alias.c (ao_ref_from_mem): New function.
12236 (rtx_refs_may_alias_p): Likewise.
12237 (true_dependence): Query alias-export info.
12238 (canon_true_dependence): Likewise.
12239 (write_dependence_p): Likewise.
12240 * tree-dfa.c (get_ref_base_and_extent): For void types leave
12241 size unknown.
12242 * emit-rtl.c (component_ref_for_mem_expr): Remove.
12243 (mem_expr_equal_p): Use operand_equal_p.
12244 (set_mem_attributes_minus_bitpos): Do not use
12245 component_ref_for_mem_expr.
12246 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12247 (update_alias_info_with_stack_vars): Likewise.
12248 (partition_stack_vars): Call update_alias_info_with_stack_vars.
12249 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12250 explicitly nor clear stmt operands.
12251 Free the decl-to-pointer map.
12252 * tree-optimize.c (execute_free_datastructures): Do not free
12253 SSA data structures here.
12254 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12255 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12256 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12257 dependencies.
12258 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12259
12260 2009-07-13 DJ Delorie <dj@redhat.com>
12261
12262 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12263 unrolling at the right iteration count.
12264
12265 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12266 calculations.
12267
12268 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
12269
12270 * haifa-sched.c (rank_for_schedule): Introduced flags to
12271 enable/disable individual scheduling heuristics.
12272 * common.opt: Introduced flags to enable/disable individual
12273 heuristics in the scheduler.
12274 * doc/invoke.texi: Introduced flags to enable/disable individual
12275 heuristics in the scheduler.
12276
12277 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
12278
12279 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12280 config/i386/mingw-tls.c.
12281 * config/i386/mingw-tls.c: Removed.
12282
12283 2009-07-13 Ira Rosen <irar@il.ibm.com>
12284
12285 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
12286 checks access only relevant statements.
12287 (vectorizable_reduction): Likewise.
12288
12289 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
12290
12291 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12292 just for 32-bit case.
12293
12294 2009-07-12 Jan Hubicka <jh@suse.cz>
12295
12296 PR tree-optimization/40585
12297 * except.c (expand_resx_expr): When there already is resume
12298 instruction, produce linked list.
12299 (build_post_landing_pads): Assert that resume is empty.
12300 (connect_post_landing_pads): Handle resume lists.
12301 (dump_eh_tree): Dump resume list.
12302
12303 2009-07-12 Ira Rosen <irar@il.ibm.com>
12304
12305 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12306 with additional argument.
12307 * tree-vectorizer.h (enum vect_def_type): Add
12308 vect_double_reduction_def.
12309 (vect_is_simple_reduction): Add argument.
12310 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
12311 indentation.
12312 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12313 vect_is_simple_reduction with additional argument.
12314 (vect_analyze_loop_operations): Handle exit phi nodes in case of
12315 double reduction.
12316 (reduction_code_for_scalar_code): Handle additional codes by
12317 returning ERROR_MARK for them. Fix comment and indentation.
12318 (vect_is_simple_reduction): Fix comment, add argument to specify
12319 double reduction. Detect double reduction.
12320 (get_initial_def_for_induction): Fix indentation.
12321 (get_initial_def_for_reduction): Fix comment and indentation.
12322 Handle double reduction. Create initial definitions that do not
12323 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
12324 (vect_create_epilog_for_reduction): Fix comment, add argument to
12325 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
12326 epilogue result extraction. Create double reduction phi node and
12327 replace relevant uses.
12328 (vectorizable_reduction): Call vect_is_simple_reduction with
12329 additional argument. Fix indentation. Update epilogue code treatment
12330 according to the changes in reduction_code_for_scalar_code. Check
12331 for double reduction. Call vect_create_epilog_for_reduction with
12332 additional argument.
12333 * tree-vect-stmts.c (process_use): Handle double reduction, update
12334 documentation.
12335 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
12336 (vect_get_vec_def_for_operand): Likewise.
12337
12338 2009-07-12 Danny Smith <dansmister@gmail.com>
12339
12340 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
12341 dllexport if !TREE_PUBLIC.
12342 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12343
12344 2009-07-11 Anatoly Sokolov <aesok@post.ru>
12345
12346 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12347 (avr_extra_arch_macro) Remove declatation.
12348 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12349 (avr_extra_arch_macro) Declare as static.
12350 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12351
12352 2009-07-11 Jan Hubicka <jh@suse.cz>
12353
12354 PR middle-end/48388
12355 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12356
12357 2009-07-11 Jakub Jelinek <jakub@redhat.com>
12358
12359 PR debug/40713
12360 * dwarf2out.c (dw_fde_struct): Add in_std_section and
12361 cold_in_std_section bits.
12362 (dwarf2out_begin_prologue): Initialize them.
12363 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12364 if already covered by text_section or cold_text_section range.
12365
12366 PR rtl-optimization/40667
12367 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12368 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12369 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12370 * config/i386/i386.c (ix86_minimum_alignment): New function.
12371 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12372 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12373 * emit-rtl.c (gen_reg_rtx): Likewise.
12374 * function.c (assign_parms): Likewise. If nominal_type needs
12375 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12376 rather than passed_type's alignment.
12377
12378 PR target/40668
12379 * function.c (assign_parm_setup_stack): Adjust
12380 MEM_OFFSET (data->stack_parm) if promoted_mode is different
12381 from nominal_mode on big endian.
12382
12383 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
12384
12385 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12386
12387 2009-07-10 DJ Delorie <dj@redhat.com>
12388
12389 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12390
12391 2009-07-10 Mark Mitchell <mark@codesourcery.com>
12392
12393 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12394 attribute.
12395 (thumb2_cbnz): Likewise.
12396
12397 2009-07-10 David Daney <ddaney@caviumnetworks.com>
12398
12399 PR target/39079
12400 * config.gcc (supported_defaults): Add synci.
12401 (with_synci): Add validation.
12402 (all_defaults): Add synci.
12403 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12404 ISA_HAS_SYNCI.
12405 (synci): Same.
12406 * config/mips/mips.opt (msynci): New option.
12407 * config/mips/mips.c (mips_override_options): Warn on use of
12408 -msynci for targets that do now support it.
12409 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12410 msynci.
12411 * gcc/doc/invoke.texi (-msynci): Document the new option.
12412 * doc/install.texi (--with-synci): Document the new option.
12413
12414 2009-07-10 Richard Guenther <rguenther@suse.de>
12415
12416 PR tree-optimization/40496
12417 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12418 the PHI result with a compatible type.
12419
12420 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
12421
12422 PR 25509
12423 PR 40614
12424 * c.opt (Wunused-result): New.
12425 * doc/invoke.texi: Document it.
12426 * c-common.c (c_warn_unused_result): Use it.
12427
12428 2009-07-09 DJ Delorie <dj@redhat.com>
12429
12430 * targhooks.c (default_target_can_inline_p): Rename from
12431 default_target_option_can_inline_p.
12432 * targhooks.h (default_target_can_inline_p): Likewise.
12433 * target-def.h (TARGET_CAN_INLINE_P): Rename from
12434 TARGET_OPTION_CAN_INLINE_P.
12435 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12436 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12437 (mep_target_can_inline_p): Rename from
12438 mep_target_option_can_inline_p.
12439
12440 PR target/40626
12441 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12442 registers used to pass vectors.
12443
12444 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12445
12446 2009-07-09 Tom Tromey <tromey@redhat.com>
12447
12448 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12449 * config/mmix/mmix.c: Include dwarf2.h.
12450 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12451 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12452 * config/sh/sh.c: Include dwarf2.h.
12453 * config/i386/i386.c: Include dwarf2.h.
12454 * Makefile.in (DWARF2_H): Remove 'elf'.
12455 * except.c: Include dwarf2.h.
12456 * unwind-dw2.c: Include dwarf2.h.
12457 * dwarf2out.c: Include dwarf2.h.
12458 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12459 * unwind-dw2-fde.c: Include dwarf2.h.
12460 * dwarf2asm.c: Include dwarf2.h.
12461
12462 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12463
12464 * haifa-sched.c (insn_finishes_cycle_p): New static function.
12465 (max_issue): Use it.
12466 * sched-int.h (struct sched_info: insn_finishes_block_p): New
12467 scheduler hook.
12468 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12469 (region_sched_info): Update.
12470 * sched-ebb.c (ebb_sched_info): Update.
12471 * modulo-sched.c (sms_sched_info): Update.
12472 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12473
12474 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12475
12476 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
12477
12478 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
12479
12480 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
12481
12482 2009-07-09 Jakub Jelinek <jakub@redhat.com>
12483
12484 PR middle-end/40692
12485 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12486 arg1 with arg01 if arg1 is already INTEGER_CST.
12487
12488 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12489
12490 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12491 Transform (and (truncate)) into (truncate (and)).
12492
12493 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
12494
12495 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12496 creating LHS paradoxical subregs. Fix surrounding returns to
12497 use NULL_RTX rather than 0.
12498
12499 2009-07-08 DJ Delorie <dj@redhat.com>
12500
12501 * config/mep/mep.c (mep_option_can_inline_p): New.
12502 (TARGET_OPTION_CAN_INLINE_P): Define.
12503
12504 2009-07-08 Mark Wielaard <mjw@redhat.com>
12505
12506 PR debug/40659
12507 * dwarf2out.c (add_data_member_location_attribute): When we have
12508 only a constant offset don't emit a new location description using
12509 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12510 dwarf_version > 2.
12511
12512 2009-07-08 Richard Henderson <rth@redhat.com>
12513
12514 PR target/38900
12515 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12516 (enum reg_class): Add CLOBBERED_REGS.
12517 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12518 * config/i386/i386.c (ix86_conditional_register_usage): Moved
12519 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12520 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
12521 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
12522 force 64-bit sibcalls into R11.
12523 * config/i386/constraints.md (U): New constraint.
12524 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12525 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12526 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12527
12528 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
12529
12530 * basic-block.h (dump_regset, debug_regset): Remove duplicate
12531 prototypes.
12532 * c-objc-common.h (c_initialize_diagnostics): Ditto.
12533 * ebitmap.h (dump_ebitmap): Ditto.
12534 * optabs.h (optab_libfunc): Ditto.
12535 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12536 * tree-flow.h (vect_can_force_dr_alignment_p,
12537 get_vectype_for_scalar_type): Ditto.
12538 (vectorize_loops): Move prototype to ...
12539 * tree-vectorizer.h: ... here. Also, adjust comment.
12540 (vect_set_verbosity_level): Remove duplicate prototype.
12541 * tree-ssa-loop.c: Include tree-vectorizer.h.
12542 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12543
12544 2009-07-08 Nick Clifton <nickc@redhat.com>
12545
12546 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12547 forward slash.
12548
12549 2009-07-08 DJ Delorie <dj@redhat.com>
12550
12551 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12552 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12553 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
12554 written to.
12555 * config/mep/intrinsics.md: Regenerated.
12556 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12557 registers when asm() or calls are detected.
12558
12559 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12560
12561 PR c++/31246
12562 * gimplify.c (gimplify_expr): Propagate no_warning flag when
12563 gimplifying.
12564 * gimple (gimple_build_call_from_tree): Likewise.
12565 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
12566 no_warning flag before warning.
12567
12568 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12569
12570 * tree.c (set_expr_locus): Remove.
12571 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
12572 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
12573 EXPR_LOCATION.
12574 * gimplify.c (internal_get_tmp_var): Likewise.
12575 (gimplify_call_expr): Likewise.
12576 (gimplify_one_sizepos): Likewise.
12577
12578 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
12579
12580 PR debug/40666
12581 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
12582 to variables for debugging purposes.
12583
12584 2009-06-23 Mark Loeser <mark@halcy0n.com>
12585
12586 PR build/40010
12587 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
12588
12589 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12590
12591 * pretty-print.c (pp_base_format): Remove %J.
12592 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12593 gcc_cxxdiag_char_table): Likewise.
12594 (init_dynamic_diag_info): Likewise.
12595
12596 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12597
12598 * pretty-print.c (pp_base_format): Remove %H.
12599 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12600 gcc_cxxdiag_char_table): Likewise.
12601 (init_dynamic_diag_info): Likewise.
12602 * config/mep/mep.c (mep_select_section): Likewise.
12603
12604 2009-07-07 Duncan Sands <baldrick@free.fr>
12605
12606 * final.c (pass_clean_state): Give the pass a name.
12607 * passes.c (pass_rest_of_compilation): Likewise.
12608 * tree-optimize.c (pass_all_optimizations): Likewise.
12609
12610 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
12611
12612 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
12613 an extra 'decl' for error_at.
12614
12615 2009-07-07 Jakub Jelinek <jakub@redhat.com>
12616
12617 PR middle-end/40669
12618 * tree-tailcall.c (adjust_return_value_with_ops,
12619 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
12620 if it has complex or vector type.
12621
12622 2009-07-07 Olivier Hainque <hainque@adacore.com>
12623
12624 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
12625 pthread symbols.
12626
12627 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
12628
12629 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
12630
12631 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12632
12633 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
12634 * c-decl.c: Likewise.
12635 * function.c: Likewise.
12636 * varasm.c: Likewise.
12637 * tree-ssa.c: Likewise.
12638 * c-common.c: Likewise.
12639 * tree-cfg.c: Likewise.
12640 * config/spu/spu.c: Likewise.
12641 * config/ia64/ia64.c: Likewise.
12642 * config/v850/v850.c: Likewise.
12643
12644 2009-07-06 DJ Delorie <dj@redhat.com>
12645
12646 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
12647 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
12648 unspecified accesses to control registers.
12649 * config/mep/intrinsics.md: Regenerate.
12650 * config/mep/intrinsics.h: Regenerate.
12651 * config/mep/mep-intrin.h: Regenerate.
12652
12653 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
12654
12655 * c-lex.c: Replace %H by an explicit location. Update all calls.
12656 * c-common.c: Likewise.
12657 * c-decl.c: Likewise.
12658 * c-typeck.c: Likewise.
12659 * fold-const.c: Likewise.
12660 * gimplify.c: Likewise.
12661 * stmt.c: Likewise.
12662 * tree-cfg.c: Likewise.
12663 * tree-ssa-loop-niter.c: Likewise.
12664 * tree-vrp.c: Likewise.
12665 * value-prof.c: Likewise.
12666
12667 2009-07-06 Diego Novillo <dnovillo@google.com>
12668
12669 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
12670 if it has one. Handle cases where VAR does not have an
12671 annotation or cfun is NULL.
12672
12673 2009-07-06 Diego Novillo <dnovillo@google.com>
12674
12675 * tree.c: Include debug.h.
12676 (initialize_tree_contains_struct): New.
12677 (init_ttree): Call it.
12678 (tree_node_structure_for_code): Factor out of ...
12679 (tree_node_structure): ... here.
12680 * treestruct.def (TS_PHI_NODE): Remove.
12681 (TS_GIMPLE_STATEMENT): Remove.
12682
12683 2009-07-06 Diego Novillo <dnovillo@google.com>
12684
12685 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
12686 (debug_tree_chain): Handle cycles.
12687
12688 2009-07-06 Nick Clifton <nickc@redhat.com>
12689 DJ Delorie <dj@redhat.com>
12690
12691 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12692 __FMOVD_ENABLED__ is defined.
12693 * config/sh/sh.h
12694 (TARGET_FMOVD): Provide a default definition.
12695 (MASK_FMOVD): Likewise.
12696 (TARGET_CPU_CPP_BUILTINS): Define
12697 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12698 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12699 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
12700 (split for DF load from memory into register): Also handle
12701 MEMs which consist of REG+DISP addressing.
12702 (split for DF store from register to memory): Likewise.
12703 (movsf_ie): Always use single fp_mode.
12704 * config/sh/sh.c (sh_override_options): Do not automatically
12705 enable TARGET_MOVD for the SH2A when supporting doubles - leave
12706 that to the -mfmovd command line switch.
12707 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
12708 (fldi_ok): Always allow.
12709 * config/sh/sh.opt (mfmovd): Remove this switch.
12710 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12711
12712 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
12713 Kaz Kojima <kkojima@gcc.gnu.org>
12714
12715 PR rtl-optimization/30807
12716 * postreload.c (reload_combine): For every new use of REG_SUM,
12717 record the use of BASE.
12718
12719 2009-07-06 Jan Hubicka <jh@suse.cz>
12720
12721 * params.def: Revert my accidental commit at 2009-06-30.
12722
12723 2009-07-04 Ian Lance Taylor <iant@google.com>
12724
12725 PR target/40636
12726 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
12727 EXPORTED_CONST.
12728 (mingw_format_attribute_overrides): Likewise.
12729
12730 2009-07-04 Jakub Jelinek <jakub@redhat.com>
12731
12732 PR debug/40596
12733 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
12734 don't check cfa.reg. Instead of cfa.indirect use
12735 fde && fde->drap_reg != INVALID_REGNUM test.
12736
12737 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
12738
12739 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
12740
12741 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
12742
12743 PR target/40587
12744 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
12745
12746 2009-07-03 Richard Guenther <rguenther@suse.de>
12747
12748 PR tree-optimization/40640
12749 * tree-switch-conversion.c (build_arrays): Perform arithmetic
12750 in original type.
12751
12752 2009-07-03 Jan Hubicka <jh@suse.cz>
12753
12754 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
12755 for size, reduce amount of inlining.
12756
12757 2009-07-03 Richard Guenther <rguenther@suse.de>
12758
12759 PR middle-end/34163
12760 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
12761 if t +- x is known to not overflow and the conversion widens the
12762 operation.
12763 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
12764
12765 2009-07-03 Jan Hubicka <jh@suse.cz>
12766
12767 * ipa-pure-const.c (analyze): Update loop optimizer init.
12768 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
12769 try_remove_empty_loop, remove_empty_loops): Remove.
12770 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
12771 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
12772 to mark regular loops as neccesary.
12773 (degenerate_phi_p): New function.
12774 (propagate_necessity, remove_dead_phis): Use it.
12775 (forward_edge_to_pdom): Likewise.
12776 (eliminate_unnecessary_stmts): Take care to remove uses of results of
12777 virtual PHI nodes that became unreachable.
12778 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
12779 * tree-flow.h (remove_empty_loops): Remove.
12780 * passes.c (init_optimization_passes): Remove.
12781
12782 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
12783
12784 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
12785 can_create_pseudo_p.
12786 (*fix_trunc<mode>_i387_1): Ditto.
12787 (*floathi<mode>2_1): Ditto.
12788 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
12789 (*fistdi2_1): Ditto.
12790 (*fist<mode>2_1): Ditto.
12791 (frndintxf2_floor): Ditto.
12792 (*fist<mode>2_floor_1): Ditto.
12793 (frndintxf2_ceil): Ditto.
12794 (*fist<mode>2_ceil_1): Ditto.
12795 (frndintxf2_trunc): Ditto.
12796 (frndintxf2_mask_pm): Ditto.
12797 (fxam<mode>2_i387_with_temp): Ditto.
12798 * config/i386/sse.md (mulv16qi3): Ditto.
12799 (*sse2_mulv4si3): Ditto.
12800 (mulv2di3): Ditto.
12801 (sse4_2_pcmpestr): Ditto.
12802 (sse4_2_pcmpistr): Ditto.
12803
12804 2009-07-03 Jan Hubicka <jh@suse.cz>
12805
12806 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
12807 (mark_stmt_necessary): Set it.
12808 (mark_operand_necessary): Set it.
12809 (mark_control_dependent_edges_necessary): Set it.
12810 (mark_virtual_phi_result_for_renaming): New function.
12811 (get_live_post_dom): New function.
12812 (forward_edge_to_pdom): New function.
12813 (remove_dead_stmt): Fix handling of control dependences.
12814 (tree_dce_init): Init new bitmap.
12815 (tree_dce_done): Free it.
12816
12817 2009-07-02 Richard Guenther <rguenther@suse.de>
12818
12819 PR bootstrap/40617
12820 * tree-ssa-structalias.c (new_var_info): Initialize
12821 is_restrict_var.
12822
12823 2009-07-02 Jan Hubicka <jh@suse.cz>
12824
12825 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
12826 local.
12827
12828 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
12829
12830 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
12831 instead of recomputing it. Adjust calls.
12832 (emit_store_flag): Adjust recursive calls.
12833
12834 2009-07-02 Richard Guenther <rguenther@suse.de>
12835
12836 * tree-ssa-live.c (remove_unused_locals): Do not remove
12837 heap variables.
12838 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
12839 of DECL_EXTERNAL for HEAP variables.
12840 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
12841 HEAP variables. Do not adjust RESTRICT vars.
12842 (find_what_var_points_to): Nobody cares if something
12843 points to READONLY.
12844
12845 2009-07-02 Ben Elliston <bje@au.ibm.com>
12846
12847 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
12848 pc_low and pc_high declarations to the top of the function.
12849
12850 2009-07-01 DJ Delorie <dj@redhat.com>
12851
12852 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
12853 registers as fixed.
12854 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
12855 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
12856 unspecified accesses to control registers.
12857 * config/mep/intrinsics.md: Regenerate.
12858 * config/mep/intrinsics.h: Regenerate.
12859 * config/mep/mep-intrin.h: Regenerate.
12860
12861 2009-07-01 Anthony Green <green@moxielogic.com>
12862
12863 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
12864 instruction when possible.
12865 (moxie_expand_prologue): Ditto. Also, save an instruction and
12866 some complexity by popping off of $r12 instead of $sp.
12867 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
12868 operands.
12869
12870 2009-07-01 Richard Henderson <rth@redhat.com>
12871
12872 PR bootstrap/40347
12873 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
12874 contained no insns, reposition note before last insn.
12875
12876 2009-07-01 Richard Henderson <rth@redhat.com>
12877
12878 PR debug/40431
12879 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
12880 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
12881
12882 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12883
12884 PR bootstrap/40558
12885 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
12886 darwin9 for printing reg addresses with %y.
12887
12888 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
12889
12890 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
12891 truncation from operands in binary operations.
12892
12893 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
12894
12895 Revert:
12896 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
12897 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
12898 subreg of op0 to the original op0.
12899
12900 * expmed.c (store_bit_field_1): Use a temporary as the destination
12901 instead of a paradoxical subreg when we need to truncate the result.
12902
12903 2009-07-01 DJ Delorie <dj@redhat.com>
12904
12905 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
12906 names to VLIW variants.
12907 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
12908 * config/mep/intrinsics.md: Regenerate.
12909 * config/mep/intrinsics.h: Regenerate.
12910 * config/mep/mep-intrin.h: Regenerate.
12911
12912 2009-07-01 Jakub Jelinek <jakub@redhat.com>
12913
12914 PR debug/40462
12915 * jump.c (returnjump_p): Revert last patch.
12916 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
12917
12918 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12919
12920 PR target/40575
12921 * pa.md (casesi32p): Use jump table label to determine the offset
12922 of the jump table.
12923 (casesi64p): Likewise.
12924
12925 * pa.c (forward_branch_p): Return bool type. Use instruction
12926 addresses when available. Assert that INSN has a jump label.
12927 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
12928 have a jump label.
12929
12930 2009-07-01 Richard Guenther <rguenther@suse.de>
12931
12932 PR tree-optimization/19831
12933 * tree-ssa-dce.c (propagate_necessity): Calls to functions
12934 that only act as barriers do not make any previous stores necessary.
12935 * tree-ssa-structalias.c (handle_lhs_call): Delay making
12936 HEAP variables global, do not add a constraint from nonlocal.
12937 (find_func_aliases): Handle escapes through return statements.
12938 (compute_points_to_sets): Make escaped HEAP variables global.
12939
12940 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
12941
12942 PR bootstrap/40597
12943 * expmed.c (emit_store_flag): Perform a conversion if necessary,
12944 after reducing a DImode cstore to SImode.
12945
12946 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
12947
12948 * expr.c (expand_expr_real_1): Reinstate fallthrough to
12949 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
12950
12951 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
12952
12953 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
12954 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
12955 to 0.
12956 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
12957 and umod_optab if TARGET_BSD_DIVMOD.
12958 * config/vax/lib1funcs.asm: New file.
12959 * config/vax/t-linux: New file.
12960 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
12961
12962 2009-06-30 Jakub Jelinek <jakub@redhat.com>
12963
12964 PR c++/40566
12965 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
12966 to type arguments that have void type.
12967
12968 PR debug/40573
12969 * dwarf2out.c (gen_formal_parameter_die): Call
12970 equate_decl_number_to_die if node is different from origin.
12971
12972 2009-06-30 Anthony Green <green@moxielogic.com>
12973
12974 Clean up moxie port for --enable-build-with-cxx.
12975 * config/moxie/moxie.c (moxie_function_value): First two
12976 parameters are const_tree, not tree.
12977 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
12978 (REG_CLASS_NAMES): Ditto.
12979 (REGNO_REG_CLASS): Ditto.
12980 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
12981 (moxie_function_value): Fix constyness of arguments.
12982
12983 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
12984
12985 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
12986 finalize_size_functions before further processing.
12987 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
12988 (variable_size): Call self_referential_size on size expressions
12989 that contain a PLACEHOLDER_EXPR.
12990 (size_functions): New static variable.
12991 (copy_self_referential_tree_r): New static function.
12992 (self_referential_size): Likewise.
12993 (finalize_size_functions): New global function.
12994 * tree.c: Include tree-inline.h.
12995 (push_without_duplicates): New static function.
12996 (find_placeholder_in_expr): New global function.
12997 (substitute_in_expr) <tcc_declaration>: Return the replacement object
12998 on equality.
12999 <tcc_expression>: Likewise.
13000 <tcc_vl_exp>: If the replacement object is a constant, try to inline
13001 the call in the expression.
13002 * tree.h (finalize_size_functions): Declare.
13003 (find_placeholder_in_expr): Likewise.
13004 (FIND_PLACEHOLDER_IN_EXPR): New macro.
13005 (substitute_placeholder_in_expr): Update comment.
13006 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
13007 is true.
13008 (copy_tree_body_r): Likewise.
13009 (copy_tree_body): New static function.
13010 (maybe_inline_call_in_expr): New global function.
13011 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
13012 (maybe_inline_call_in_expr): Declare.
13013 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
13014 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
13015 GIMPLE_H.
13016
13017 2009-06-30 Richard Guenther <rguenther@suse.de>
13018
13019 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
13020 continue walking.
13021 (propagate_necessity): Do not mark reaching defs of stores
13022 as necessary.
13023
13024 2009-06-30 Jan Hubicka <jh@suse.cz>
13025
13026 * cfgloopanal.c (check_irred): Move into ...
13027 (mark_irreducible_loops): ... here; return true if ireducible
13028 loops was found.
13029 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
13030 (analyze_function): Try to prove loop finiteness.
13031 * cfgloop.h (mark_irreducible_loops): Update prototype.
13032 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
13033
13034 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
13035
13036 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
13037
13038 2009-06-30 Ira Rosen <irar@il.ibm.com>
13039
13040 PR tree-optimization/40542
13041 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
13042 types.
13043
13044 2009-06-30 Martin Jambor <mjambor@suse.cz>
13045
13046 PR tree-optimization/40582
13047 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
13048 than useless_type_conversion_p.
13049 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
13050 proper place.
13051
13052 2009-06-30 Martin Jambor <mjambor@suse.cz>
13053
13054 PR middle-end/40554
13055 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
13056
13057 2009-06-30 Richard Guenther <rguenther@suse.de>
13058
13059 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
13060 use ao_ref references.
13061 (walk_aliased_vdefs): Likewise.
13062 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
13063 * tree-ssa-dce.c (struct ref_data): Remove.
13064 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
13065 (mark_aliased_reaching_defs_necessary): Adjust.
13066 (mark_all_reaching_defs_necessary_1): Likewise.
13067
13068 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
13069
13070 PR boostrap/40597
13071 * expmed.c (emit_cstore): New name of emit_store_flag_1.
13072 (emit_store_flag_1): Extract from emit_store_flag, adjust
13073 calls to (what now is) emit_cstore.
13074 (emit_store_flag): Call emit_store_flag_1 and also use it
13075 for what used to be recursive calls.
13076
13077 2009-06-30 Wei Guozhi <carrot@google.com>
13078
13079 PR/40416
13080 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
13081 if the target bb post dominates from bb.
13082 * config/i386/i386.c (memory_address_length): Check existence of base
13083 register before using it.
13084
13085 2009-06-30 Nick Clifton <nickc@redhat.com>
13086 DJ Delorie <dj@redhat.com>
13087
13088 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13089 __FMOVD_ENABLED__ is defined.
13090 * config/sh/sh.h
13091 (TARGET_FMOVD): Provide a default definition.
13092 (MASK_FMOVD): Likewise.
13093 (TARGET_CPU_CPP_BUILTINS): Define
13094 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13095 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13096 two fmov instructions depending upon whether TARGET_FMOVD is
13097 enabled.
13098 (split for DF load from memory into register): Also handle
13099 MEMs which consist of REG+DISP addressing.
13100 (split for DF store from register to memory): Likewise.
13101 * config/sh/sh.opt (mfmovd): Remove this switch.
13102 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13103 * config/sh/sh.c (sh_override_options): Do not automatically
13104 enable TARGET_MOVD for the SH2A when supporting doubles - leave
13105 that to the -mfmovd command line switch.
13106
13107 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
13108 the SH4 and SH4A.
13109 (fldi_ok): Always allow.
13110 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
13111
13112 2009-06-29 DJ Delorie <dj@redhat.com>
13113
13114 * doc/install.texi (mep-x-elf): Correct chip's full name.
13115
13116 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
13117
13118 * doc/extend.texi: Fix typo.
13119
13120 2009-06-29 Tom Tromey <tromey@redhat.com>
13121
13122 * dwarf2.h: Remove.
13123 * Makefile.in (DWARF2_H): New variable.
13124 (except.o): Use it.
13125 (dwarf2out.o): Likewise.
13126 (dwarf2asm.o): Likewise.
13127 * config/i386/t-i386: Use DWARF2_H.
13128 * except.c: Include elf/dwarf2.h.
13129 * unwind-dw2.c: Include elf/dwarf2.h.
13130 * dwarf2out.c: Include elf/dwarf2.h.
13131 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13132 <dtprel>: New field.
13133 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13134 (size_of_loc_descr): Likewise.
13135 (output_loc_operands_raw): Likewise.
13136 (output_loc_operands): Handle new dtprel field.
13137 (loc_checksum): Update.
13138 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13139 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13140 * unwind-dw2-fde.c: Include elf/dwarf2.h.
13141 * dwarf2asm.c: Include elf/dwarf2.h.
13142 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13143 * config/mmix/mmix.c: Include elf/dwarf2.h.
13144 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13145 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13146 * config/sh/sh.c: Include elf/dwarf2.h.
13147 * config/i386/i386.c: Include elf/dwarf2.h.
13148
13149 2009-06-29 DJ Delorie <dj@redhat.com>
13150
13151 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13152
13153 * doc/extend.texi: Add MeP attributes and pragmas.
13154 * doc/invoke.text: Add MeP Options.
13155 * doc/contrib.texi: Add MeP contribution.
13156 * doc/md.texi: Add MeP constraints.
13157 * doc/install.texi: Add MeP target.
13158
13159 2009-06-30 Anatoly Sokolov <aesok@post.ru>
13160
13161 * target.h (struct gcc_target): Add frame_pointer_required field.
13162 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13163 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13164 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13165 hook.
13166 * reload1.c (update_eliminables): (Ditto.).
13167 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13168 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13169 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13170
13171 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13172
13173 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13174 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13175 (arm_frame_pointer_required): New function.
13176
13177 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13178 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13179 (avr_frame_pointer_required_p): Declare as static.
13180 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13181
13182 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13183 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13184 (bfin_frame_pointer_required): Make as static, change return type
13185 to bool.
13186 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13187
13188 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13189 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13190 (cris_frame_pointer_required): New function.
13191
13192 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13193
13194 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13195 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13196 (fr30_frame_pointer_required): New function.
13197
13198 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13199 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13200 (frv_frame_pointer_required): Make as static, change return type
13201 to bool.
13202 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13203
13204 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13205 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13206 (ix86_frame_pointer_required): Make as static, change return type to
13207 bool.
13208 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13209
13210 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13211 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13212
13213 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13214
13215 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
13216
13217 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13218
13219 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13220 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13221 (mips_frame_pointer_required): Make as static.
13222 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
13223
13224 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13225 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13226 (mmix_frame_pointer_required): Mew function.
13227
13228 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13229 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13230
13231 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13232
13233 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13234
13235 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13236
13237 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13238 (CAN_ELIMINATE): Redefine.
13239 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13240 (sparc_frame_pointer_required): New function.
13241 (sparc_can_eliminate): New function.
13242 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13243
13244 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13245 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13246
13247 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13248 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13249 (xtensa_frame_pointer_required): Make as static, change return type
13250 to bool.
13251 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13252 Remove.
13253
13254 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
13255
13256 * doc/plugins.texi: Document PLUGIN_START_UNIT.
13257 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13258 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13259 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13260 (register_callback): Handle PLUGIN_START_UNIT.
13261 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13262
13263 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
13264
13265 * tree.c (process_call_operands): Propagate TREE_READONLY from the
13266 operands.
13267 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13268 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13269
13270 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
13271
13272 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13273 move cost.
13274
13275 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
13276
13277 * doc/extend.texi (Additional Floating Types): __float128 is also
13278 supported on i386 targets.
13279
13280 2009-06-29 Richard Guenther <rguenther@suse.de>
13281
13282 PR middle-end/14187
13283 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13284 flag.
13285 (pt_solutions_same_restrict_base): Declare.
13286 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13287 flag.
13288 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13289 (make_constraint_from, make_copy_constraint): Move earlier.
13290 (make_constraint_from_heapvar): New function.
13291 (make_constraint_from_restrict): Likewise.
13292 (handle_lhs_call): Use it.
13293 (find_func_aliases): Use it to track conversions to restrict
13294 qualified pointers.
13295 (struct fieldoff): Add only_restrict_pointers flag.
13296 (push_fields_onto_fieldstack): Initialize it.
13297 (create_variable_info_for): Track global restrict qualified pointers.
13298 (intra_create_variable_infos): Use make_constraint_from_heapvar.
13299 Track restrict qualified pointer arguments.
13300 (set_uids_in_ptset): Use varinfo is_global_var flag.
13301 (find_what_var_points_to): Set the vars_contains_restrict flag.
13302 Always create the points-to solution for sets including restrict tags.
13303 (pt_solutions_same_restrict_base): New function.
13304 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13305 qualified pointers use pt_solutions_same_restrict_base as
13306 additional source for disambiguation.
13307
13308 2009-06-29 Richard Guenther <rguenther@suse.de>
13309
13310 PR middle-end/38212
13311 * alias.c (find_base_decl): Remove.
13312 (get_deref_alias_set_1): Remove restrict handling.
13313 * c-common.c (c_apply_type_quals_to_decl): Do not set
13314 DECL_POINTER_ALIAS_SET.
13315 * gimplify.c (find_single_pointer_decl_1): Remove.
13316 (find_single_pointer_decl): Likewise.
13317 (internal_get_tmp_var): Remove restrict handling.
13318 (gimple_regimplify_operands): Likewise.
13319 * omp-low.c (expand_omp_atomic_pipeline): Do not set
13320 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
13321 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
13322 * tree.c (restrict_base_for_decl): Remove.
13323 (init_ttree): Do not allocate it.
13324 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
13325 LABEL_DECL_UID for label decls.
13326 (copy_node_stat): Do not copy restrict information.
13327 (decl_restrict_base_lookup): Remove.
13328 (decl_restrict_base_insert): Likewise.
13329 (print_restrict_base_statistics): Likewise.
13330 (dump_tree_statistics): Do not call print_restrict_base_statistics.
13331 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
13332 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
13333 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
13334 (LABEL_DECL_UID): Adjust.
13335 (DECL_BASED_ON_RESTRICT_P): Remove.
13336 (DECL_GET_RESTRICT_BASE): Likewise.
13337 (SET_DECL_RESTRICT_BASE): Likewise.
13338 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
13339
13340 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
13341 instead of DECL_POINTER_ALIAS_SET.
13342 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13343 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13344 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13345
13346 2009-06-29 Richard Guenther <rguenther@suse.de>
13347
13348 PR tree-optimization/40579
13349 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13350 the IL to simplify has constants that overflowed.
13351
13352 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
13353
13354 PR tree-optimization/40550
13355 * tree-vect-generic.c (expand_vector_operations_1): Compute in
13356 vector_compute_type only when the size of vector_compute_type is
13357 less than the size of type.
13358
13359 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
13360
13361 * fold-const.c (contains_label_1): Fix comments.
13362 (contains_label_p): Do not walk trees multiple time.
13363
13364 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13365
13366 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13367 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13368 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13369 ix86_fp_comparison_operator.
13370 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13371 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13372 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13373 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13374 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13375 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13376 (related splits): Change predicate to ix86_fp_comparison_operator.
13377 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13378 instead of ix86_fp_comparison_codes.
13379 (ix86_trivial_fp_comparison_operator,
13380 ix86_fp_comparison_operator): New.
13381 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13382 (ix86_expand_compare): Eliminate last two parameters.
13383 (ix86_fp_jump_nontrivial_p): Kill.
13384 * config/i386/i386.c (put_condition_code): Eliminate call to
13385 ix86_fp_comparison_codes and subsequent assertion.
13386 (ix86_fp_comparison_codes): Eliminate.
13387 (ix86_fp_swap_condition): New.
13388 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13389 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13390 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13391 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13392 and ix86_fp_swap_condition.
13393 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13394 Use ix86_fp_comparison_strategy.
13395 (ix86_expand_compare): Likewise. Eliminate last two arguments.
13396 (ix86_fp_jump_nontrivial_p): Eliminate.
13397 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
13398 call to ix86_expand_compare.
13399 (ix86_split_fp_branch, ix86_expand_setcc,
13400 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13401 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
13402
13403 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13404
13405 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13406 related to jump_clobbers.
13407 * config/arm/arm.md (conds): Remove jump_clob case.
13408 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13409 splits): Change comparison_operator to arm_comparison_operator.
13410 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13411 Eliminate.
13412
13413 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13414
13415 * dojump.c (do_compare_rtx_and_jump): Try swapping the
13416 condition for floating point modes.
13417 * expmed.c (emit_store_flag_1): Move here a bigger part
13418 of emit_store_flag.
13419 (emit_store_flag): Try swapping the condition for floating point
13420 modes.
13421 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
13422
13423 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13424
13425 * expr.c (expand_expr_real_1): Just use do_store_flag.
13426 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
13427 emit_store_flag_force.
13428 * expmed.c (emit_store_flag_force): Copy here trick
13429 previously in expand_expr_real_1. Try reversing the comparison.
13430 (emit_store_flag_1): Work if target is NULL.
13431 (emit_store_flag): Work if target is NULL, using the result mode
13432 from the comparison. Use split_comparison, restructure final part
13433 to simplify conditionals.
13434
13435 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
13436
13437 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13438 * dojump.c (do_jump): Change handling of floating-point
13439 ops to use just do_compare_and_jump.
13440 (split_comparison): New.
13441 (do_compare_rtx_and_jump): Add here logic coming previously
13442 in do_jump, using split_comparison.
13443
13444 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
13445
13446 PR target/40489
13447 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13448
13449 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13450
13451 * tree-ssa-alias.c: Fix unintentional commit.
13452
13453 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13454
13455 * passes.c (execute_one_pass): Fix unintentional commit.
13456
13457 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13458
13459 * df-problems.c (df_set_seen, df_unset_seen): Delete.
13460 (df_rd_local_compute, df_md_local_compute): Inline them.
13461
13462 (df_md_scratch): New.
13463 (df_md_alloc, df_md_free): Allocate/free it.
13464 (df_md_local_compute): Only include live registers in init.
13465 (df_md_transfer_function): Prune the in-set computed by
13466 the confluence function, and the gen-set too.
13467
13468 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13469
13470 PR rtl-optimization/26854
13471 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13472 * df-problems.c (df_rd_add_problem): Fix comment.
13473 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13474 df_md_simulate_artificial_defs_at_top,
13475 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13476 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13477 df_md_transfer_function, df_md_init, df_md_confluence_0,
13478 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13479 problem_MD, df_md_add_problem): New.
13480 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13481 df_md_get_bb_info): New.
13482 (DF_LAST_PROBLEM_PLUS1): Adjust.
13483
13484 * Makefile.in (fwprop.o): Include domwalk.h.
13485 * fwprop.c: Include domwalk.h.
13486 (reg_defs, reg_defs_stack): New.
13487 (bitmap_only_bit_between): Remove.
13488 (process_defs): New.
13489 (process_uses): Use reg_defs and local_md instead of
13490 bitmap_only_bit_between and local_rd.
13491 (single_def_use_enter_block): New, from build_single_def_use_links.
13492 (single_def_use_leave_block): New.
13493 (build_single_def_use_links): Remove code moved to
13494 single_def_use_enter_block, invoke domwalk.
13495 (use_killed_between): Adjust comment.
13496
13497 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13498
13499 * bitmap.h (bitmap_ior_and_into): New.
13500 * bitmap.c (bitmap_ior_and_into): New.
13501
13502 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
13503
13504 * domwalk.h (struct dom_walk_data): Remove all callbacks except
13505 before_dom_children_before_stmts and after_dom_children_after_stmts.
13506 Rename the two remaining callbacks to just before_dom_children and
13507 after_dom_children. Remove other GIMPLE statement walking bits.
13508 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13509 * graphite.c: Do not include domwalk.h.
13510 * tree-into-ssa.c (interesting_blocks): New global.
13511 (struct mark_def_sites_global_data): Remove it and names_to_rename.
13512 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13513 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13514 now that they're not domwalk callbacks.
13515 (rewrite_initialize_block): Rename to...
13516 (rewrite_enter_block): ... this, place after called functions. Test
13517 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13518 (rewrite_finalize_block): Rename to...
13519 (rewrite_leave_block): ... this, place after called functions.
13520 (rewrite_update_init_block): Rename to...
13521 (rewrite_update_enter_block): ... this, place after called functions.
13522 Test interesting_blocks, call rewrite_update_stmt and
13523 rewrite_update_phi_arguments.
13524 (rewrite_update_fini_block): Rename to...
13525 (rewrite_leave_block): ... this, place after called functions.
13526 (rewrite_blocks): Remove last argument, simplify initialization of
13527 walk_data.
13528 (mark_def_sites_initialize_block): Rename to...
13529 (mark_def_sites_block): ... this, call mark_def_sites.
13530 (mark_def_sites_blocks): Remove argument, simplify initialization of
13531 walk_data.
13532 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13533 (update_ssa): Likewise.
13534 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13535 callback.
13536 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13537 (dom_opt_initialize_block): Rename to...
13538 (dom_opt_enter_block): ... this, place after called functions. Walk
13539 statements here, inline propagate_to_outgoing_edges.
13540 (dom_opt_finalize_block): Rename to...
13541 (dom_opt_leave_block): ... this, place after called functions.
13542 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13543 domwalk callback.
13544 (dse_enter_block, dse_record_phi): New.
13545 (dse_record_phis): Delete.
13546 (dse_finalize_block): Rename to...
13547 (dse_leave_block): ... this.
13548 (tree_ssa_dse): Simplify initialization of walk_data.
13549 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13550 Adjust initialization of walk_data.
13551 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13552 * tree-ssa-loop-phiopt.c (get_non_trapping):
13553 Adjust initialization of walk_data.
13554 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13555 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13556 it's not a domwalk callback.
13557 (uncprop_initialize_block): Rename to...
13558 (dse_enter_block): ... this, call uncprop_into_successor_phis.
13559 (dse_finalize_block): Rename to...
13560 (dse_leave_block): ... this.
13561 (tree_ssa_uncprop): Simplify initialization of walk_data.
13562 * Makefile.in: Adjust dependencies.
13563
13564 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
13565
13566 * arm.md (casesi): Fix test for Thumb1.
13567 (thumb1_casesi_internal_pic): Likewise.
13568 (thumb1_casesi_dispatch): Likewise.
13569
13570 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
13571
13572 * config/arm/arm-cores.def: Added core cortex-m0.
13573 * config/arm/arm-tune.md: Regenerated.
13574 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
13575
13576 2009-06-26 DJ Delorie <dj@redhat.com>
13577
13578 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
13579
13580 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
13581 the scheduler doesn't tag jump insns.
13582
13583 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
13584
13585 * c-decl.c (merge_decls): Re-indent.
13586
13587 2009-06-26 Janis Johnson <janis187@us.ibm.com>
13588
13589 PR c/39902
13590 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
13591 Special-case decimal float constants.
13592
13593 2009-06-26 Richard Henderson <rth@redhat.com>
13594
13595 * function.h (struct function): Add cannot_be_copied_reason,
13596 and cannot_be_copied_set.
13597 * tree-inline.c (has_label_address_in_static_1): Rename from
13598 inline_forbidden_p_2; don't set inline_forbidden_reason here.
13599 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
13600 don't set inline_forbidden_reason.
13601 (copy_forbidden): New function, split out of inline_forbidden_p.
13602 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
13603 (inline_forbidden_p): Use copy_forbidden.
13604 (tree_versionable_function_p): Likewise.
13605 (inlinable_function_p): Merge into tree_inlinable_function_p.
13606 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
13607 * ipa-cp.c (ipcp_versionable_function_p): New function.
13608 (ipcp_cloning_candidate_p): Use it.
13609 (ipcp_node_modifiable_p): Likewise.
13610
13611 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
13612
13613 * builtins.c (expand_builtin_alloca): Handle builtin alloca
13614 that is marked not to be inlined. Remove flag_mudflap use.
13615 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
13616 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
13617
13618 2009-06-26 Steve Ellcey <sje@cup.hp.com>
13619
13620 PR bootstrap/40338
13621 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
13622 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
13623
13624 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
13625
13626 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
13627 shared libgcc.
13628 (__mingwthr_remove_key_dtor): Likewise.
13629
13630 2009-06-26 Richard Guenther <rguenther@suse.de>
13631
13632 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
13633
13634 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
13635
13636 PR middle-end/40525
13637 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
13638 try the non-cond_exec path also.
13639
13640 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13641
13642 PR target/40468
13643 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
13644 (output_cbranch): Use new functions.
13645 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
13646 Likewise.
13647
13648 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13649 Pat Haugen <pthaugen@us.ibm.com>
13650 Revital Eres <ERES@il.ibm.com>
13651
13652 * config/rs6000/rs6000.c (print_operand): Correct lossage message
13653 for %c error. Add %x support to print VSX registers as a unified
13654 register set, instead of separate float and altivec registers.
13655 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
13656 %y case, and add support for VSX pre-modify addresses.
13657 (output_toc): Add assert for CONST containing an integer constant
13658 in the PLUS case.
13659 (rs6000_adjust_cost): Add POWER7 support.
13660 (insn_must_be_first_in_group): Ditto.
13661 (insn_must_be_last_in_group): Ditto.
13662 (rs6000_emit_popcount): Ditto.
13663 (rs6000_vector_mode_supported_p): Ditto.
13664
13665 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
13666 Change some of the functions called by macros to being called
13667 through a pointer, so debug functions can be inserted if
13668 -mdebug=addr or -mdebug=cost.
13669 (rs6000_preferred_reload_class_ptr): Ditto.
13670 (rs6000_secondary_reload_class_ptr): Ditto.
13671 (rs6000_secondary_memory_needed_ptr): Ditto.
13672 (rs6000_cannot_change_mode_class_ptr): Ditto.
13673 (rs6000_secondary_reload_inner): Ditto.
13674 (rs6000_legitimize_reload_address): Ditto.
13675 (rs6000_legitimize_reload_address_ptr): Ditto.
13676 (rs6000_mode_dependent_address): Ditto.
13677 (rs6000_mode_dependent_address_ptr): Ditto.
13678
13679 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
13680 function to return true if the mode allows reg + integer
13681 addresses.
13682 (virtual_stack_registers_memory_p): New function to return true if
13683 the address refers to a virtual stack register.
13684 (rs6000_legitimate_offset_address_p): Move code to say whether a
13685 mode supports reg+int addressing to reg_offset_addressing_ok_p and
13686 call it.
13687 (rs6000_legitimate_address_p): Add checks for modes that only can
13688 do reg+reg addressing. Start adding VSX support.
13689 (rs6000_legitimize_reload_address): Ditto.
13690 (rs6000_legitimize_address): Ditto.
13691 (rs6000_debug_legitimate_address_p): New debug functions for
13692 -mdebug=addr and -mdebug=cost.
13693 (rs6000_debug_rtx_costs): Ditto.
13694 (rs6000_debug_address_costs): Ditto.
13695 (rs6000_debug_adjust_cost): Ditto.
13696 (rs6000_debug_legitimize_address): Ditto.
13697 (rs6000_legitimize_reload_address_ptr): Point to call normal
13698 function or debug function. Make functions called via pointer
13699 static.
13700 (rs6000_mode_dependent_address_ptr): Ditto.
13701 (rs6000_secondary_reload_class_ptr): Ditto.
13702 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
13703 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
13704 into a friendlier error.
13705 (rs6000_init_builtins): Add initial VSX support.
13706 (rs6000_adjust_cost): Fix some spacing issues.
13707
13708 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
13709 (REG_CLASS_NAMES): Ditto.
13710 (REG_CLASS_CONTENTS): Ditto.
13711 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
13712 pointer, to add -mdebug=addr support.
13713 (CANNOT_CHANGE_MODE_CLASS): Ditto.
13714 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
13715 -mdebug=addr support.
13716 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
13717 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
13718 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
13719
13720 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
13721 16-bit values.
13722 (bswapsi*): Set attribute types for load/store. Add combiner
13723 patterns to eliminate zero extend on 64-bit.
13724 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
13725 stdbrx if the hardware supports those instructions.
13726
13727 2009-06-25 Ian Lance Taylor <iant@google.com>
13728
13729 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
13730 (Link Options): Document -static-libstdc++.
13731
13732 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
13733
13734 PR target/38731
13735 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
13736 DATA_ALIGNMENT instead.
13737
13738 2009-06-25 Richard Guenther <rguenther@suse.de>
13739
13740 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
13741 indirect references against the callused/escaped solutions.
13742 (call_may_clobber_ref_p_1): Likewise.
13743
13744 2009-06-25 Martin Jambor <mjambor@suse.cz>
13745
13746 PR tree-optimization/40493
13747 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
13748 (enum unscalarized_data_handling): New type.
13749 (handle_unscalarized_data_in_subtree): Return what has been done.
13750 (load_assign_lhs_subreplacements): Handle left flushes differently.
13751 (sra_modify_assign): Use unscalarized_data_handling, simplified
13752 condition determining whether to remove the statement.
13753
13754 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
13755
13756 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
13757 excerpt - @ should be doubled for texinfo.
13758
13759 2009-06-24 Ian Lance Taylor <iant@google.com>
13760
13761 * config/arc/arc.c: Include "df.h".
13762 (arc_attribute_table): Make static. Move higher in file.
13763 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
13764 (output_shift): Initialize n later to avoid warning.
13765 * config/arm/arm.c (arm_attribute_table): Make static. Move
13766 higher in file.
13767 * config/avr/avr.c (avr_attribute_table): Make static. Move
13768 higher in file.
13769 (reg_class_tab): Change array type from int to enum reg_class.
13770 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
13771 LABEL_REF.
13772 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
13773 (lshrhi3_out): Likewise.
13774 (class_likely_spilled_p): Change return type to bool.
13775 (avr_rtx_costs): Use local code variable with enum type.
13776 * config/avr/avr.md (movmemhi): Use add_reg_note.
13777 (andhi3, andsi3): Don't use AS2 with "and".
13778 (iorhi3, iorsi3): Don't use AS2 with "or".
13779 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
13780 * config/crx/crx.c: Include "df.h".
13781 (crx_attribute_table): Make static.
13782 * config/m32r/m32r.c: Include "df.h".
13783 (m32r_attribute_table): Make static. Move higher in file.
13784 (pop): Use add_reg_note.
13785 (block_move_call): Change 0 to LCT_NORMAL in function call.
13786 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
13787 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
13788 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
13789 declare, not just when TREE_CODE is defined.
13790 * config/m68hc11/m68hc11.c: Include "expr.h".
13791 (m68hc11_attribute_table): Make static. Move higher in file.
13792 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
13793 function call.
13794 (m68hc11_register_indirect_p): Likewise.
13795 (m68hc11_function_arg_padding): Change return type to enum
13796 direction.
13797 (emit_move_after_reload): Use add_reg_note.
13798 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
13799 (m68hc11_split_logical): Likewise.
13800 (m68hc11_rtx_costs): Add local code_and outer_code variables with
13801 enum type.
13802 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
13803 to VOIDmode in function call.
13804 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
13805 tree is defined.
13806 (m68hc11_split_logical): Update declaration.
13807 (m68hc11_function_arg_padding): Update declaration.
13808 * config/mcore/mcore.c (regno_reg_class): Change form array of int
13809 to array of enum reg_class.
13810 (mcore_attribute_table): Make static. Move higher in file.
13811 (mcore_rtx_costs): Add cast to enum type.
13812 * config/mcore/mcore.h (regno_reg_class): Update declaration.
13813 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
13814 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
13815 in file.
13816 * config/sh/predicates.md (trapping_target_operand): Rename and to
13817 and_expr.
13818 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
13819 higher in file.
13820 * config/spu/spu.c (spu_attribute_table): Make static. Move
13821 higher in file.
13822 * config/v850/v850.c (v850_attribute_table): Make static. Move
13823 higher in file.
13824 (v850_rtx_costs): Use local code with enum type.
13825 (expand_epilogue): Add cast.
13826 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
13827
13828 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
13829
13830 PR target/40515
13831 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
13832 -m2a-single-only and -m2a-nofpu.
13833 * config/sh/sh.opt: Document m2a generates FPU code.
13834
13835 2009-06-24 Anatoly Sokolov <aesok@post.ru>
13836
13837 * defaults.h (CAN_ELIMINATE): Provide default.
13838 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
13839 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
13840 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
13841 * config/spu/spu.h (CAN_ELIMINATE): Delete.
13842 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
13843 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
13844 * config/cris/cris.h (CAN_ELIMINATE): Delete.
13845 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
13846 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
13847 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
13848
13849 2009-06-24 DJ Delorie <dj@redhat.com>
13850
13851 * mep-ext-cop.cpu: Fix copyright notice.
13852 * mep-default: Fix copyright notice.
13853 * mep-core: Fix copyright notice.
13854 * mep: Fix copyright notice.
13855 * mep-ivc2: Fix copyright notice.
13856 * mep-c5: Fix copyright notice.
13857
13858 2009-06-24 Denis Chertykov <chertykov@gmail.com>
13859
13860 * doc/contrib.texi (Contributors):
13861
13862 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
13863
13864 PR middle-end/40501
13865 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
13866 src and dst operands if necessary.
13867
13868 2009-06-23 DJ Delorie <dj@redhat.com>
13869
13870 Add MeP port.
13871 * config.gcc: Add mep support.
13872 * recog.c: Resurrect validate_replace_rtx_subexp().
13873 * recog.h: Likewise.
13874 * config/mep/: Add new port:
13875 * config/mep/constraints.md: New file.
13876 * config/mep/default.h: New file.
13877 * config/mep/intrinsics.h: New file.
13878 * config/mep/intrinsics.md: New file.
13879 * config/mep/ivc2-template.h: New file.
13880 * config/mep/mep-c5.cpu: New file.
13881 * config/mep/mep-core.cpu: New file.
13882 * config/mep/mep-default.cpu: New file.
13883 * config/mep/mep-ext-cop.cpu: New file.
13884 * config/mep/mep-intrin.h: New file.
13885 * config/mep/mep-ivc2.cpu: New file.
13886 * config/mep/mep-lib1.asm: New file.
13887 * config/mep/mep-lib2.c: New file.
13888 * config/mep/mep-pragma.c: New file.
13889 * config/mep/mep-protos.h: New file.
13890 * config/mep/mep-tramp.c: New file.
13891 * config/mep/mep.c: New file.
13892 * config/mep/mep.cpu: New file.
13893 * config/mep/mep.h: New file.
13894 * config/mep/mep.md: New file.
13895 * config/mep/mep.opt: New file.
13896 * config/mep/predicates.md: New file.
13897 * config/mep/t-mep: New file.
13898
13899 2009-06-23 Ian Lance Taylor <iant@google.com>
13900
13901 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
13902 from loose_warn into c_loose_warn and from strict_warn into
13903 c_strict_warn. Set and substitute warn_cxxflags. Check for
13904 --enable-build-with-cxx. Set and substitute
13905 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
13906 * Makefile.in (CXXFLAGS): New variable.
13907 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
13908 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
13909 the default is the same as $(STRICT_WARN).
13910 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
13911 (CXX): New variable.
13912 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
13913 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
13914 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
13915 (HOST_LIBS): New variable.
13916 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
13917 (ALL_CXXFLAGS): New variable.
13918 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
13919 * doc/install.texi (Configuration): Document
13920 --enable-build-with-cxx, --with-stage1-ldflags,
13921 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
13922 * configure: Rebuild.
13923
13924 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13925
13926 * config/arm/arm.c (arm_override_options): Fix braces and formatting
13927 from previous commit.
13928
13929 2009-06-23 Ian Lance Taylor <iant@google.com>
13930
13931 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
13932
13933 2009-06-23 Ian Lance Taylor <iant@google.com>
13934
13935 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
13936 with ATTRIBUTE_UNUSED.
13937
13938 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13939 Pat Haugen <pthaugen@us.ibm.com>
13940 Revital Eres <eres@il.ibm.com>
13941
13942 * config.in (HAVE_AS_POPCNTD): Add default definition.
13943 (HAVE_AS_LWSYNC): Ditto.
13944
13945 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
13946 release number.
13947 (gcc_cv_as_powerpc_cmpb): Ditto.
13948 (gcc_cv_as_powerpc_dfp): Ditto.
13949 (gcc_cv_as_powerpc_vsx): Ditto.
13950 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
13951 supporting the popcntd/lwsync instructions.
13952 (gcc_cv_as_powerpc_lwsync): Ditto.
13953 * configure: Regenerate.
13954
13955 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
13956 -mcpu=native and -mcpu=power7.
13957 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
13958
13959 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
13960 a variable instead of a mask to reduce the number of mask bits.
13961 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
13962 (-mbit-word): Ditto.
13963 (-mregnames): Ditto.
13964 * config/rs6000/rs6000.opt (-mupdate): Ditto.
13965 (-mfused-madd): Ditto.
13966
13967 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
13968 2.06 instructions.
13969 (-mvsx): New switch for VSX instructions.
13970 (-misel): Move from a variable to a mask to allow it to be set by
13971 -mcpu=.
13972
13973 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
13974 function declaration to an array declaration.
13975 (rs6000_hard_regno_nregs): New external array declaration.
13976
13977 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
13978 files included by rs6000.md.
13979
13980 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13981 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
13982
13983 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
13984 a target mask.
13985 (rs6000_debug_reg): New -mdebug= variables.
13986 (rs6000_debug_addr): Ditto.
13987 (rs6000_debug_cost): Ditto.
13988 (rs6000_pmode): New variable to hold Pmode.
13989 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
13990 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
13991 calculated at compiler start.
13992 (rs6000_hard_regno_nregs): Change function to an array which holds
13993 HARD_REGNO_NREGS calculated at compiler start.
13994 (rs6000_explicit_options): Delete isel field.
13995 (rs6000_vector_unit): New array to hold which vector unit
13996 supports arithmetic options for a given type.
13997 (rs6000_vector_mem): New array to hold which vector unit supports
13998 memory reference operations for a given type.
13999 (rs6000_vector_align): New array to given the alignment of each
14000 vector type.
14001 (power7_cost): New basic costs for power7.
14002 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
14003 (rs6000_hard_regno_nregs_internal): New function, moved from
14004 HARD_REGNO_NREGS, to calculate the number of registers each hard
14005 register takes for each type.
14006 (rs6000_debug_reg_print): New function for -mdebug=reg support.
14007 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
14008 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
14009 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
14010 unit information here so it is calculated once at compiler startup
14011 time.
14012 (rs6000_override_options): Make -misel a target mask. Add more
14013 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
14014 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
14015 -mdebug=cost.
14016 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
14017 (rs6000_handle_option): Move -misel from variable to target mask.
14018 (rs6000_builtin_mask_for_load): Add VSX support.
14019 (rs6000_conditional_register_usage): Ditto.
14020 (USE_ALTIVEC_FOR_ARG_P): Ditto.
14021 (function_arg_boundary): Ditto.
14022 (rs6000_expand_builtin): Ditto.
14023 (def_builtin): Make abort message a little friendlier.
14024 (rs6000_emit_int_cmove): Add support for 64-bit isel.
14025
14026 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
14027 assembler support the popcntd instruction instead of a vsx
14028 instruction to enable power7 support.
14029 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
14030 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
14031 option to the assembler if -mcpu=native.
14032 (ASM_CPU_NATIVE_SPEC): Ditto.
14033 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
14034 ISA 2.06 features.
14035 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
14036 the lwsync instruction.
14037 (enum processor_type): Add PROCESSOR_POWER7.
14038 (rs6000_debug_reg): New -mdebug= options.
14039 (rs6000_debug_addr): Ditto.
14040 (rs6000_debug_cost): Ditto.
14041 (rs6000_isel): Delete.
14042 (enum rs6000_vector): New enum to say what vector unit we have.
14043 (VECTOR_UNIT_*): New macros to say which vector unit has
14044 arithmetic operations for a given type.
14045 (VECTOR_MEM_*): New macros to say which vector unit has memory
14046 operations for a given type.
14047 (TARGET_LDBRX): Whether the machine supports the ldbrx
14048 instruction.
14049 (TARGET_ISEL): Delete, -misel moved to be a mask.
14050 (TARGET_ISEL64): New macro for 64-bit isel support.
14051 (UNITS_PER_VSX_WORD): New macro.
14052 (POINTER_SIZE): Move to be an external variable, rather than
14053 calculating whether we are generating 32 ot 64-bit code.
14054 (Pmode): Ditto.
14055 (STACK_BOUNDARY): Add VSX support.
14056 (LOCAL_ALIGNMENT): Ditto.
14057 (SLOW_UNALIGNED_ACCESS): Ditto.
14058 (VSX_REGNO_P): New macro for VSX support.
14059 (VFLOAT_REGNO_P): Ditto.
14060 (VINT_REGNO_P): Ditto.
14061 (VLOGICAL_REGNO_P): Ditto.
14062 (VSX_VECTOR_MODE): Ditto.
14063 (VSX_SCALAR_MODE): Ditto.
14064 (VSX_MODE): Ditto.
14065 (VSX_MOVE_MODE): Ditto.
14066 (VSX_REG_CLASS_P): Ditto.
14067 (HARD_REGNO_NREGS): Instead of calling a function, use an array
14068 lookup.
14069 (UNITS_PER_SIMD_WORD): Add VSX support.
14070 (MODES_TIEABLE_P): Ditto.
14071 (STARTING_FRAME_OFFSET): Ditto.
14072 (STACK_DYNAMIC_OFFSET): Ditto.
14073 (EPILOGUE_USES): Ditto.
14074 (REGNO_REG_CLASS): Move to array lookup.
14075 (CLASS_MAX_NREGS): Ditto.
14076 (rs6000_vector_reg_class): Add declaration.
14077 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
14078 overlap with the floating point and Altivec registers.
14079
14080 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
14081
14082 * config/rs6000/driver-rs6000.c (asm_names): New static array to
14083 give the appropriate asm switches if -mcpu=native.
14084 (host_detect_local_cpu): Add support for "asm".
14085 (host_detect_local_cpu): Follow GNU code guidelines for name.
14086
14087 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
14088 -mbit-word to a variable instead of being a target mask.
14089
14090 * config/rs6000/sync.md (lwsync): If the assembler supports it,
14091 emit the lwsync instruction instead of emitting the instruction as
14092 an integer constant.
14093
14094 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
14095 fixuns_trundfsi2, move expander into rs6000.md.
14096
14097 * config/rs6000/rs6000.md (cpu): Add power7.
14098 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
14099 (logical predicate patterns): Change the single instruction
14100 primitives that set CR0 to be fast_compare instead of compare.
14101 (norsi*): Ditto.
14102 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
14103 (popcntddi2): Ditto.
14104 (popcount<mode>): Ditto.
14105 (floating multiply/add insns): Name the floating point
14106 multiply/add insns.
14107 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
14108 (isel_unsigned_<mode>): Ditto.
14109 (fixuns_trundfsi2): Move expander here from spe.md.
14110 (smindi3): Define if we have -misel on 64-bit systems.
14111 (smaxdi3): Ditto.
14112 (umindi3): Ditto.
14113 (umaxdi3): Ditto.
14114
14115 2009-06-23 Anatoly Sokolov <aesok@post.ru>
14116
14117 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
14118 extra_objs.
14119 * config/avr/avr.c (avr_current_device): New variable.
14120 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
14121 (avr_arch, mcu_type_s): Move to avr.h.
14122 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
14123 default_data_section_start fields.
14124 (avr_arch): Moved from avr.c.
14125 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14126 library_name fields.
14127 (avr_current_device, avr_mcu_types, avr_arch_types,
14128 avr_device_to_arch, avr_device_to_data_start,
14129 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14130 (EXTRA_SPEC_FUNCTIONS): Define.
14131 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14132 options mapping. Use device_to_arch and device_to_data_start insted.
14133 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14134 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14135 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14136 * config/avr/driver-avr.c: New file.
14137 * config/avr/avr-devices.c: New file.
14138
14139 2009-06-23 Jakub Jelinek <jakub@redhat.com>
14140
14141 * var-tracking.c (unshare_variable): Force initialized to
14142 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14143 (set_variable_part): Likewise.
14144 (struct variable_union_info): Remove pos_src field.
14145 (vui_vec, vui_allocated): New variables.
14146 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14147 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
14148 == 1 use a simpler sorting algorithm. Compute pos field right
14149 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
14150 Avoid quadratic comparison if !flag_var_tracking_uninit.
14151 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14152 unshare_variable unconditionally.
14153 (dataflow_set_different_2): Removed.
14154 (dataflow_set_different): Don't traverse second hash table.
14155 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14156 unconditionally to var_reg_set or var_mem_set.
14157 (emit_notes_in_bb): Likewise.
14158 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14159 unshare_variable.
14160 (emit_note_insn_var_location): Don't set initialized to
14161 VAR_INIT_STATUS_INITIALIZED early.
14162 (vt_finalize): Free vui_vec if needed, clear vui_vec and
14163 vui_allocated.
14164 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14165
14166 * tree-object-size.c (addr_object_size): Instead of checking
14167 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14168 are no FIELD_DECLs following it.
14169
14170 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
14171
14172 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14173 order to match bswaps with signed source operands.
14174
14175 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14176
14177 * sdbout.c (sdbout_one_type): Fix braces in switch.
14178
14179 2009-06-23 Richard Guenther <rguenther@suse.de>
14180
14181 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14182 member.
14183 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14184 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14185 var_callused, callused_tree, var_storedanything, storedanything_tree,
14186 var_integer, integer_tree): Remove global variables.
14187 (new_var_info): Do not pass new id, append the new var to the
14188 global variable vector.
14189 (do_ds_constraint): Use is_global_var member of the variable-info.
14190 (new_scalar_tmp_constraint_exp): Adjust.
14191 (create_function_info_for): Likewise.
14192 (create_variable_info_for): Likewise.
14193 (find_what_var_points_to): Remove dead code.
14194 (init_base_vars): Simplify.
14195 (compute_points_to_sets): Adjust.
14196
14197 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
14198
14199 * combine.c (try_combine): Dump information about the insns we're
14200 combining.
14201
14202 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
14203
14204 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14205 check when calling force_to_mode on TRUNCATE's operand.
14206
14207 2009-06-22 Ian Lance Taylor <iant@google.com>
14208
14209 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
14210
14211 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
14212
14213 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14214
14215 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14216
14217 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14218 override library linkage flags such as -static-libgcc or
14219 -shared-libgcc.
14220
14221 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
14222
14223 * config/m68k/m68k-devices.def: Add line for MCF5221x.
14224
14225 2009-06-22 Ian Lance Taylor <iant@google.com>
14226
14227 * config/linux.opt: Put mglibc ahead of muclibc.
14228
14229 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14230 for duplicate decls.
14231
14232 2009-06-22 Matthias Klose <doko@ubuntu.com>
14233
14234 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14235
14236 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
14237
14238 PR objc/28050
14239 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14240 instead of NULL if a parser error occurs.
14241
14242 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14243
14244 * dwarf2out.c (dwarf2_debug_hooks): Initialize
14245 non-DWARF2_DEBUGGING_INFO version.
14246
14247 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
14248
14249 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14250 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14251
14252 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
14253 (LIBGCC2_TF_CEXT): Define.
14254 (TF_SIZE): Define.
14255
14256 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14257
14258 PR target/40463
14259 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14260
14261 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14262
14263 * config/arm/arm.c (arm_override_options): Disable
14264 -mcaller-super-interworking and -mcallee-super-interworking.
14265 * doc/invoke.texi (ARM Options): Document this.
14266
14267 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
14268
14269 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14270 * config/arm/constraints.md (j): New constraint for movw operands.
14271 (N): Remove thumb2 meaning.
14272 * config/arm/arm.md (*arm_movw): Delete.
14273 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14274 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14275 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14276
14277 2009-06-22 Martin Jambor <mjambor@suse.cz>
14278
14279 PR tree-optimization/40492
14280 * tree-sra.c (sra_modify_assign): Pass zero offsets to
14281 build_ref_for_offset.
14282
14283 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
14284
14285 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14286 JUMP_TABLE_DATA_P predicates where applicable.
14287 * auto-inc-dec.c: Ditto.
14288 * builtins.c: Ditto.
14289 * caller-save.c: Ditto.
14290 * calls.c: Ditto.
14291 * cfgcleanup.c: Ditto.
14292 * cfglayout.c: Ditto.
14293 * cfgrtl.c: Ditto.
14294 * combine.c: Ditto.
14295 * combine-stack-adj.c: Ditto.
14296 * cse.c: Ditto.
14297 * cselib.c: Ditto.
14298 * dbxout.c: Ditto.
14299 * df-scan.c: Ditto.
14300 * dse.c: Ditto.
14301 * dwarf2asm.c: Ditto.
14302 * dwarf2out.c: Ditto.
14303 * emit-rtl.c: Ditto.
14304 * except.c: Ditto.
14305 * explow.c: Ditto.
14306 * expmed.c: Ditto.
14307 * expr.c: Ditto.
14308 * final.c: Ditto.
14309 * function.c: Ditto.
14310 * fwprop.c: Ditto.
14311 * gcse.c: Ditto.
14312 * genpreds.c: Ditto.
14313 * genrecog.c: Ditto.
14314 * ifcvt.c: Ditto.
14315 * ira-costs.c: Ditto.
14316 * ira-lives.c: Ditto.
14317 * jump.c: Ditto.
14318 * loop-iv.c: Ditto.
14319 * lower-subreg.c: Ditto.
14320 * modulo-sched.c: Ditto.
14321 * optabs.c: Ditto.
14322 * postreload.c: Ditto.
14323 * print-rtl.c: Ditto.
14324 * recog.c: Ditto.
14325 * reginfo.c: Ditto.
14326 * regmove.c: Ditto.
14327 * reload1.c: Ditto.
14328 * reload.c: Ditto.
14329 * reorg.c: Ditto.
14330 * rtlanal.c: Ditto.
14331 * rtl.c: Ditto.
14332 * sched-vis.c: Ditto.
14333 * sdbout.c: Ditto.
14334 * sel-sched-ir.c: Ditto.
14335 * simplify-rtx.c: Ditto.
14336 * targhooks.c: Ditto.
14337 * var-tracking.c: Ditto.
14338 * vmsdbgout.c: Ditto.
14339
14340 2009-06-22 Matthias Klose <doko@ubuntu.com>
14341
14342 * Makefile.in (install-plugin): Always use DESTDIR.
14343
14344 2009-06-22 Olivier Hainque <hainque@adacore.com>
14345
14346 * config/pa/pa.c (output_call): Don't optimize post call jumps
14347 into return address adjustments if the call may throw.
14348
14349 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
14350
14351 * arm.c (thumb1_output_casesi): New function.
14352 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14353 optimizing for size or PIC.
14354 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14355 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14356 (casesi): Handle Thumb-1 when optimizing for size or PIC.
14357 (thumb1_casesi_internal_pic): New expand rule.
14358 (thumb1_casesi_dispatch): New pattern.
14359 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14360 thumb-1 mode.
14361 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14362 in the text seciton when PIC or optimizing for size.
14363 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14364 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14365 preservation properties of code.
14366 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14367 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14368 (__gnu_thumb1_case_si): New function.
14369 * t-arm (LIB1ASMSRC): Define here.
14370 (LIB1ASMFUNCS): Add some common functions.
14371 * t-arm-elf (LIB1ASMSRC): Delete.
14372 (LIB1ASMFUNCS): Append to existing set.
14373 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14374 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14375 * t-symbian (LIB1ASMFUNCS): Likewise.
14376 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14377 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14378
14379 2009-06-21 Richard Guenther <rguenther@suse.de>
14380
14381 PR tree-optimization/38729
14382 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14383 to loops with a single exit if -fno-expensive-optimizations.
14384
14385 2009-06-21 Jakub Jelinek <jakub@redhat.com>
14386
14387 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14388 (dataflow_set): Change vars type from htab_t to shared_hash.
14389 (shared_hash_pool, empty_shared_hash): New variables.
14390 (vars_clear): Removed.
14391 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14392 shared_hash_find_slot_unshare, shared_hash_find_slot,
14393 shared_hash_find_slot_noinsert, shared_hash_find): New
14394 static inlines.
14395 (shared_hash_unshare, shared_hash_destroy): New functions.
14396 (unshare_variable): Unshare set->vars if shared, use
14397 shared_hash_htab.
14398 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14399 (get_init_value, find_src_set_src, dump_dataflow_set,
14400 clobber_variable_part, emit_notes_for_differences): Use
14401 shared_hash_htab.
14402 (dataflow_set_init): Remove second argument, set vars to
14403 empty_shared_hash instead of creating a new htab.
14404 (dataflow_set_clear): Call shared_hash_destroy and set vars
14405 to empty_shared_hash instead of calling vars_clear.
14406 (dataflow_set_copy): Don't call vars_copy, instead just share
14407 the src htab with dst.
14408 (variable_union): Use shared_hash_*, use initially NO_INSERT
14409 lookup if set->vars is shared. Don't keep slot cleared before
14410 calling unshare_variable. Unshare set->vars if needed.
14411 Even ->refcount == 1 vars must be unshared if set->vars is shared
14412 and var needs to be modified.
14413 (variable_canonicalize): New function.
14414 (dataflow_set_union): If dst->vars is empty, just share src->vars
14415 with dst->vars and traverse with variable_canonicalize to canonicalize
14416 and unshare what is needed.
14417 (dataflow_set_different): If old_set and new_set use the same shared
14418 htab, they aren't different. If number of htab elements is different,
14419 htabs are different. Use shared_hash_*.
14420 (dataflow_set_destroy): Call shared_hash_destroy instead of
14421 htab_delete.
14422 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14423 second argument to dataflow_set_init.
14424 (vt_initialize): Likewise. Initialize shared_hash_pool and
14425 empty_shared_hash, move bb in/out initialization afterwards.
14426 Use variable_htab_free instead of NULL as changed_variables del hook.
14427 (variable_was_changed): Change type of second argument to pointer to
14428 dataflow_set. When inserting var into changed_variables, bump
14429 refcount. Unshare set->vars if set is shared htab and slot needs to
14430 be cleared.
14431 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14432 lookup if set->vars is shared. Unshare set->vars if needed.
14433 Even ->refcount == 1 vars must be unshared if set->vars is shared
14434 and var needs to be modified. Adjust variable_was_changed caller.
14435 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
14436 vars must be unshared if set->vars is shared and var needs to be
14437 modified. Adjust variable_was_changed caller.
14438 (emit_note_insn_var_location): Don't pool_free var.
14439 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14440 instead of 1.
14441 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14442 free_alloc_pool on shared_hash_pool.
14443
14444 2009-06-20 Anthony Green <green@moxielogic.com>
14445
14446 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14447 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14448
14449 2009-06-20 Richard Guenther <rguenther@suse.de>
14450
14451 * tree-ssa-structalias.c (find_func_aliases): For memset use
14452 a constraint from NULL if we memset to zero.
14453 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14454 we explicitly handle that do not read from memory.
14455 (call_may_clobber_ref_p_1): Properly handle builtins that may
14456 set errno.
14457
14458 2009-06-20 Richard Guenther <rguenther@suse.de>
14459
14460 PR tree-optimization/40495
14461 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14462 (new_scalar_tmp_constraint_exp): New function.
14463 (process_constraint): Do not create temporary decls.
14464 (process_all_all_constraints): Likewise.
14465 (handle_const_call): Likewise.
14466 (create_function_info_for): Do not set decl.
14467
14468 2009-06-19 Ian Lance Taylor <iant@google.com>
14469
14470 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14471 (rs6000_attribute_table): Make static; move before use.
14472
14473 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
14474
14475 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14476 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14477 Propagate the TREE_READONLY flag without overwriting it.
14478 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14479 Propagate the TREE_READONLY flag onto the result.
14480 (process_call_operands): Move around. Use correct constant value.
14481
14482 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14483
14484 PR target/40482
14485 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
14486 * config/arm/arm.md: Likewise.
14487
14488 2009-06-19 Ian Lance Taylor <iant@google.com>
14489
14490 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14491 to GIMPLE_ERROR_MARK.
14492
14493 * c-typeck.c (build_conditional_expr): Add op1_original_type and
14494 op2_original_type parameters. Warn about using different enum types.
14495 * c-parser.c (c_parser_conditional_expression): Pass original
14496 types to build_conditional_expr.
14497 * c-tree.h (build_conditional_expr): Update declaration.
14498
14499 2009-06-19 Ian Lance Taylor <iant@google.com>
14500
14501 * config/i386/i386.c (ix86_function_specific_save): Test that
14502 fields match values, rather than testing the values are in a
14503 certain range.
14504
14505 2009-06-19 Richard Guenther <rguenther@suse.de>
14506
14507 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14508 ADDR_EXPR pointers.
14509 (ptr_derefs_may_alias_p): Likewise.
14510 (ptr_deref_may_alias_ref_p_1): New function.
14511 (ptr_deref_may_alias_ref_p): Likewise.
14512 (ref_maybe_used_by_call_p_1): Handle builtins that are not
14513 covered by looking at the ESCAPED solution.
14514 (call_may_clobber_ref_p_1): Likewise.
14515 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14516 Handle NULL_TREE offset. Do not produce redundant constraints.
14517 (process_all_all_constraints): New helper function.
14518 (do_structure_copy): Use it.
14519 (handle_lhs_call): Likewise.
14520 (find_func_aliases): Handle some builtins with pointer arguments
14521 and/or return values explicitly.
14522
14523 2009-06-19 Ian Lance Taylor <iant@google.com>
14524
14525 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14526
14527 2009-06-19 Ian Lance Taylor <iant@google.com>
14528
14529 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14530
14531 2009-06-19 Ian Lance Taylor <iant@google.com>
14532
14533 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14534 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14535 version.
14536
14537 * c-decl.c (finish_decl): If -Wc++-compat, warn about
14538 uninitialized const.
14539
14540 2009-06-19 Ian Lance Taylor <iant@google.com>
14541
14542 * dse.c (struct store_info): Rename bitmap field to bmap. Change
14543 all uses.
14544
14545 * c-decl.c (in_struct, struct_types): Remove.
14546 (struct c_binding): Add in_struct field.
14547 (c_binding_ptr): Define type, along with VEC.
14548 (struct c_struct_parse_info): Define.
14549 (struct_parse_info): New static variable.
14550 (bind): Initialize in_struct field.
14551 (start_struct): Remove enclosing_in_struct and
14552 enclosing_struct_types parameters. Add
14553 enclosing_struct_parse_info parameter. Change all callers. Set
14554 struct_parse_info rather than in_struct and struct_types.
14555 (grokfield): If -Wc++-compat and there is a symbol binding for the
14556 field name, set the in_struct flag and push it on the
14557 struct_parse_info->fields vector.
14558 (warn_cxx_compat_finish_struct): New static function.
14559 (finish_struct): Remove enclosing_in_struct and
14560 enclosing_struct_types parameters. Add
14561 enclosing_struct_parse_info parameter. Change all callers. Don't
14562 set C_TYPE_DEFINED_IN_STRUCT here. Call
14563 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
14564 parameter. Only push on struct_types if warn_cxx_compat.
14565 (finish_enum): Only push on struct_types if warn_cxx_compat.
14566 (declspecs_add_type): Add loc parameter. Change all callers.
14567 Change all error calls to error_at. Pass loc, not input_location,
14568 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
14569 defined in a struct. If -Wc++-compat and parsing a struct, record
14570 that a typedef name was used.
14571 * c-parser.c (c_parser_declspecs): Get location to pass to
14572 declspecs_add_type.
14573 (c_parser_struct_or_union_specifier): Update calls to start_struct
14574 and finish_struct.
14575 * c-tree.h (struct c_struct_parse_info): Declare.
14576 (finish_struct, start_struct): Update declarations.
14577 (declspecs_add_type): Update declaration.
14578
14579 2009-06-19 Ian Lance Taylor <iant@google.com>
14580
14581 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
14582 variable with an anonymous type.
14583
14584 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
14585
14586 * see.c: Remove for real.
14587
14588 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
14589
14590 * optabs.h (enum optab_index): Add new OTI_significand.
14591 (significand_optab): Define corresponding macro.
14592 * optabs.c (init_optabs): Initialize significand_optab.
14593 * genopinit.c (optabs): Implement significand_optab using
14594 significand?f2 patterns.
14595 * builtins.c (expand_builtin_mathfn): Handle
14596 BUILT_IN_SIGNIFICAND{,F,L}.
14597 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
14598 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14599
14600 * config/i386/i386.md (significandxf2, significand<mode>2): New
14601 expanders to implement significandf, significand and significandl
14602 built-ins as inline x87 intrinsics.
14603
14604 2009-06-18 Anatoly Sokolov <aesok@post.ru>
14605
14606 * config/avr/avr.c (avr_override_options): Remove setting value of
14607 PARAM_INLINE_CALL_COST.
14608
14609 2009-06-18 Richard Henderson <rth@redhat.com>
14610
14611 PR 40488
14612 * tree-pass.h (TDF_ASMNAME): New.
14613 * tree-dump.c (dump_options): Add asmname.
14614 * doc/invoke.texi: Document it.
14615
14616 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
14617 (dump_decl_name): ...here.
14618 (dump_function_name): New flags arg; mind TDF_ASMNAME.
14619 (dump_generic_node): Update dump_function_name calls.
14620 (print_call_name): New flags arg; update all dump calls.
14621 * diagnostic.h (print_call_name): Update.
14622 * gimple-pretty-print.c (dump_gimple_call): Update.
14623
14624 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
14625
14626 PR target/40470
14627 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
14628
14629 2009-06-18 Diego Novillo <dnovillo@google.com>
14630
14631 * doc/plugins.texi: Document plugin_is_GPL_compatible.
14632 * plugin.c (str_license): Declare.
14633 (try_init_one_plugin): Assert that the symbol
14634 'plugin_is_GPL_compatible' exists.
14635
14636 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
14637
14638 * see.c: Remove.
14639 * Makefile.in (OBJS-common): Remove see.o.
14640 (see.o): Remove.
14641 * common.opt (fsee): Mark as preserved for backward compatibility.
14642 * opts.c (common_handle_option): Add OPT_fsee to the backward
14643 compatibility section.
14644 * passes.c (init_optimization_passes, pass_see): Remove pass.
14645 * timevar.def (TV_SEE): Remove.
14646 * tree-pass.h (pass_see): Remove declaration.
14647 * doc/invoke.texi (-fsee): Remove documentation.
14648
14649 2009-06-18 Martin Jambor <mjambor@suse.cz>
14650
14651 * tree-sra.c: Include statistics.h
14652 (sra_stats): New variable.
14653 (sra_initialize): Clear sra_stats.
14654 (create_access_replacement): Increment sra_stats.replacements.
14655 (get_access_replacement): Do not return twice.
14656 (analyze_all_variable_accesses): Increment statistics counter by the
14657 number of scalarized aggregates.
14658 (generate_subtree_copies): Increment sra_stats.subtree_copies.
14659 (sra_modify_expr): Increment sra_stats.exprs.
14660 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
14661 (sra_modify_assign): Increment sra_stats.exprs,
14662 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
14663 (perform_intra_sra): Update statistics counters.
14664 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
14665
14666 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
14667
14668 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
14669 (arm_scalar_mode_supported_p): New function.
14670
14671 2009-06-18 Paul Brook <paul@codesourcery.com>
14672 Sandra Loosemore <sandra@codesourcery.com>
14673
14674 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
14675 (__extendhfsf2, __truncsfhf2): Define.
14676 * config/arm/fp16.c: New file.
14677 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14678 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14679
14680 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
14681
14682 * doc/extend.texi (Half-Precision): New section.
14683 * doc/invoke.texi (Option Summary): List -mfp16-format.
14684 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
14685 * config/arm/arm.opt (mfp16-format=): New.
14686 * config/arm/arm.c: Include intl.h.
14687 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
14688 (TARGET_INVALID_RETURN_TYPE): Redefine.
14689 (TARGET_PROMOTED_TYPE): Redefine.
14690 (TARGET_CONVERT_TO_TYPE): Redefine.
14691 (arm_fp16_format): Define.
14692 (all_fpus): Add entry for neon-fp16.
14693 (fp_model_for_fpu): Likewise.
14694 (struct fp16_format): Declare.
14695 (all_fp16_formats): Define.
14696 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
14697 functions.
14698 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
14699 and no ldrh.
14700 (arm_legitimate_index_p): Treat HFmode like HImode.
14701 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
14702 (coproc_secondary_reload_class): Special-case HFmode.
14703 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
14704 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
14705 (arm_init_fp16_builtins): New.
14706 (arm_init_builtins): Call it.
14707 (arm_invalid_parameter_type): New.
14708 (arm_invalid_return_type): New.
14709 (arm_promoted_type): New.
14710 (arm_convert_to_type).
14711 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
14712 format.
14713 (arm_emit_fp16_const): New function.
14714 (arm_mangle_type): Mangle __fp16 as "Dh".
14715 * config/arm/arm.h (TARGET_VFPD32): Make it know about
14716 FPUTYPE_NEON_FP16.
14717 (TARGET_NEON_FP16): New.
14718 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
14719 (enum fputype): Add FPUTYPE_NEON_FP16.
14720 (enum arm_fp16_format_type): Declare.
14721 (arm_fp16_format): Declare.
14722 (LARGEST_EXPONENT_IS_NORMAL): Define.
14723 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
14724 * config/arm/arm-modes.def (HFmode): Define.
14725 * config/arm/vfp.md (*movhf_vfp): New.
14726 (extendhfsf2): New.
14727 (truncsfhf2): New.
14728 * config/arm/arm.md (fpu): Add neon_fp16.
14729 (floatsihf2, floatdihf2): New.
14730 (fix_trunchfsi2, fix_trunchfdi2): New.
14731 (truncdfhf2): New.
14732 (extendhfdf2): New.
14733 (movhf): New.
14734 (*arm32_movhf): New.
14735 (*thumb1_movhf): New.
14736 (consttable_2): Add check for HFmode constants.
14737 (consttable_4): Handle HFmode constants.
14738
14739 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
14740
14741 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
14742
14743 2009-06-17 Olivier Hainque <hainque@adacore.com>
14744
14745 * collect2.c (main): Use CONST_CAST2 to perform char ** to
14746 const char ** conversion in AIX specific section.
14747
14748 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
14749
14750 * config/i386/i386.c (ix86_special_builtin_type): Remove
14751 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
14752 (bdesc_special_args): Updated.
14753 (ix86_init_mmx_sse_builtins): Likewise.
14754 (ix86_expand_special_args_builtin): Likewise.
14755
14756 2009-06-17 Richard Henderson <rth@redhat.com>
14757
14758 * tree-pretty-print.c (maybe_dump_asm_name): New.
14759 (dump_decl_name): Use it.
14760 (PRINT_FUNCTION_NAME): Merge into...
14761 (dump_function_name): ... here. Use maybe_dump_asm_name.
14762
14763 2009-06-17 Cary Coutant <ccoutant@google.com>
14764
14765 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
14766 Change caller.
14767 * debug.c (struct gcc_debug_hooks): Change placeholder for
14768 source_line hook.
14769 (debug_nothing_int_charstar_int): Replaced by...
14770 (debug_nothing_int_charstar_int_bool): ...this.
14771 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
14772 source_line prototype.
14773 (debug_nothing_int_charstar_int): Replaced by...
14774 (debug_nothing_int_charstar_int_bool): ...this.
14775 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
14776 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
14777 Output is_stmt operand when necessary.
14778 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
14779 (notice_source_line): Add is_stmt parameter.
14780 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
14781 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
14782 Change callers.
14783 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
14784 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
14785
14786 2009-06-17 Ian Lance Taylor <iant@google.com>
14787
14788 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
14789 Change all uses.
14790 (struct store_by_pieces_d): Rename from store_by_pieces. Change
14791 call uses.
14792
14793 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
14794
14795 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
14796 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
14797 tree_strip_sign_nop_conversions and
14798 tree_ssa_strip_useless_type_conversions rather than stripping
14799 the operations here.
14800 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
14801 Declare them.
14802 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
14803 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
14804 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
14805 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
14806 functions.
14807
14808 2009-06-17 Michael Eager <eager@eagercon.com>
14809
14810 * config/rs6000/constraints.md (register_constraint "d"): New.
14811 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
14812 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
14813 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
14814 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
14815 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
14816 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
14817 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
14818 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
14819 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
14820 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
14821 __fctiwz): Same.
14822 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
14823 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
14824 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
14825 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
14826 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
14827 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
14828 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
14829 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
14830 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
14831 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
14832 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
14833 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
14834 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
14835 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
14836
14837 2009-06-16 Ian Lance Taylor <iant@google.com>
14838
14839 * profile.c (total_num_never_executed): Don't define.
14840 (compute_branch_probabilities): Don't count or print
14841 num_never_executed.
14842 (init_branch_prob): Don't set total_num_never_executed.
14843 (end_branch_prob): Don't print total_num_never_executed.
14844
14845 2009-06-17 David Daney <ddaney@caviumnetworks.com>
14846
14847 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
14848
14849 2009-06-17 David Edelsohn <edelsohn@gnu.org>
14850
14851 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
14852 (nabstd2_fpr): Same.
14853
14854 2009-06-17 Steve Ellcey <sje@cup.hp.com>
14855
14856 * expr.c (expand_assignment): Change complex type check.
14857
14858 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
14859
14860 * doc/plugins.texi (Building GCC plugins): Added new section.
14861
14862 2009-06-17 Ian Lance Taylor <iant@google.com>
14863
14864 * c-pch.c (get_ident): Don't set size of templ array.
14865 (pch_init): Don't set size of partial_pch array.
14866
14867 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
14868 string constant to intialize an array whose size is the length of
14869 the string.
14870
14871 2009-06-17 Richard Guenther <rguenther@suse.de>
14872
14873 PR tree-optimization/40389
14874 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
14875 to addressable types.
14876 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
14877
14878 2009-06-17 Richard Guenther <rguenther@suse.de>
14879
14880 PR middle-end/40460
14881 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
14882 if there is no evolution of left in the loop bail out.
14883 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
14884 chrec_fold_multiply.
14885
14886 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
14887 Janis Johnson <janis187@us.ibm.com>
14888
14889 PR target/39254
14890 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
14891 for the symbol ref of a constant that is the source of a move
14892 - nor for any other not-obvious-label-ref constants.
14893
14894 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
14895
14896 * plugin.c (position_pass): Skip newly inserted pass during list
14897 traversal to avoid repeated insertion.
14898
14899 2009-06-16 Ian Lance Taylor <iant@google.com>
14900
14901 * vec.h (VEC_stack_alloc): Define different version if
14902 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
14903 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
14904 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
14905 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
14906
14907 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
14908
14909 * config.gcc (extra_headers): Add ia32intrin.h for x86.
14910
14911 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
14912 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
14913 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
14914 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
14915 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
14916 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14917 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14918 (bdesc_special_args): Add __builtin_ia32_rdtsc and
14919 __builtin_ia32_rdtscp.
14920 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
14921 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
14922 and __builtin_ia32_rorhi.
14923 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
14924 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14925 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14926 (ix86_expand_args_builtin): Likewise.
14927 (ix86_expand_special_args_builtin): Likewise.
14928
14929 * config/i386/i386.md (UNSPECV_RDTSCP): New.
14930 (UNSPECV_RDTSC): Likewise.
14931 (UNSPECV_RDPMC): Likewise.
14932 (*bsr): Renamed to ...
14933 (bsr): This
14934 (*bsr_rex64): Renamed to ...
14935 (bsr_rex64): This.
14936 (rdpmc): New.
14937 (*rdpmc): Likewise.
14938 (*rdpmc_rex64): Likewise.
14939 (rdtsc): Likewise.
14940 (*rdtsc): Likewise.
14941 (*rdtsc_rex64): Likewise.
14942 (rdtscp): Likewise.
14943 (*rdtscp): Likewise.
14944 (*rdtscp_rex64): Likewise.
14945
14946 * config/i386/ia32intrin.h: New.
14947
14948 * config/i386/x86intrin.h: Include <ia32intrin.h>.
14949
14950 2009-06-16 Ian Lance Taylor <iant@google.com>
14951
14952 * ira-build.c (copy_info_to_removed_store_destinations):
14953 Initialize parent_a.
14954
14955 2009-06-16 Ian Lance Taylor <iant@google.com>
14956
14957 * c-decl.c (grokdeclarator): Change size_varies to bool.
14958
14959 2009-06-16 Ian Lance Taylor <iant@google.com>
14960
14961 * sel-sched.c: Make forward declarations of move_op_hooks and
14962 fur_hooks explicitly extern.
14963
14964 2009-06-16 Ian Lance Taylor <iant@google.com>
14965
14966 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
14967 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
14968
14969 2009-06-16 Ian Lance Taylor <iant@google.com>
14970
14971 * resource.c (mark_referenced_resources): Change
14972 include_delayed_effects parameter to bool. Change all callers.
14973 (mark_end_of_function_resources): Likewise.
14974 * reorg.c (insn_references_resource_p): Likewise.
14975 (insn_sets_resource_p): Likewise.
14976 * resource.h (mark_referenced_resources): Update declaration.
14977 (mark_end_of_function_resources): Update declaration.
14978
14979 2009-06-16 David Edelsohn <edelsohn@gnu.org>
14980
14981 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
14982
14983 2009-06-16 David Edelsohn <edelsohn@gnu.org>
14984
14985 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
14986 GCC can bootstrap on AIX with GNU Binutils 2.20.
14987
14988 2009-06-16 Ian Lance Taylor <iant@google.com>
14989
14990 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
14991
14992 2009-06-16 Ian Lance Taylor <iant@google.com>
14993
14994 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
14995 inline, not extern inline.
14996 (exact_log2): Likewise.
14997 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
14998 test CLZ_HWI.
14999 (exact_log2): Likewise, but don't test CTZ_HWI.
15000
15001 2009-06-16 Ian Lance Taylor <iant@google.com>
15002
15003 * bitmap.c (bitmap_clear): Don't declare as inline.
15004 * gimple.c (gimplify_assign): Likewise.
15005 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
15006 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
15007 (sched_scan_info): Remove duplicate definition.
15008
15009 2009-06-16 Ian Lance Taylor <iant@google.com>
15010
15011 * c-common.c (skip_evaluation): Don't define.
15012 (c_inhibit_evaluation_warnings): Define global variable.
15013 (overflow_warning): Check c_inhibit_evaluation_warnings rather
15014 than skip_evaluation.
15015 (convert_and_check, warn_for_div_by_zero): Likewise.
15016 * c-common.h (skip_evaluation): Don't declare.
15017 (c_inhibit_evaluation_warnings): Declare.
15018 * c-parser.c (c_parser_typeof_specifier): Set
15019 c_inhibit_evaluation_warnings rather than skip_evaluation.
15020 (c_parser_conditional_expression): Likewise.
15021 (c_parser_binary_expression): Likewise.
15022 (c_parser_sizeof_expression): Likewise.
15023 (c_parser_alignof_expression): Likewise.
15024 * c-typeck.c (build_indirect_ref): Check
15025 c_inhibit_evaluation_warnings rather than skip_evaluation.
15026 (build_conditional_expr, build_binary_op): Likewise.
15027
15028 2009-06-16 Richard Guenther <rguenther@suse.de>
15029
15030 * tree-ssa-alias.c (is_escape_site): Remove.
15031 * tree-ssa-alias.h (enum escape_type): Remove.
15032 (is_escape_site): Likewise.
15033 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
15034 via casts and asms without deferring to is_escape_site.
15035
15036 2009-06-16 Jakub Jelinek <jakub@redhat.com>
15037
15038 PR middle-end/40446
15039 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
15040 use gen_lowpart if op0 has complex mode.
15041
15042 2009-06-16 Richard Guenther <rguenther@suse.de>
15043
15044 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
15045 variables add them to ESCAPED.
15046 (find_func_aliases): Do not make all indirectly stored values escaped.
15047
15048 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
15049
15050 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
15051 make_decl_one_only.
15052
15053 2009-06-16 Martin Jambor <mjambor@suse.cz>
15054
15055 PR tree-optimization/40432
15056 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
15057 check whether we need to force gimple register operand.
15058
15059 2009-06-16 Martin Jambor <mjambor@suse.cz>
15060
15061 PR tree-optimization/40413
15062 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
15063 build_ref_for_offset.
15064 (propagate_subacesses_accross_link): Fix a typo in a comment.
15065
15066 2009-06-16 Ira Rosen <irar@il.ibm.com>
15067
15068 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15069 with additional parameter.
15070 * tree-vectorizer.h (enum vect_def_type): Add new value
15071 vect_nested_cycle.
15072 (enum vect_relevant): Add comments.
15073 (vect_is_simple_reduction): Add new argument.
15074 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
15075 Detect nested cycles.
15076 (vect_is_simple_reduction): Update documentation, add an argument to
15077 distinguish inner-loop reduction from nested cycle, detect nested
15078 cycles, fix printings and indentation, don't swap operands in case
15079 of nested cycle.
15080 (get_initial_def_for_reduction): Handle subtraction.
15081 (vect_create_epilog_for_reduction): Add new argument to specify
15082 reduction variable.
15083 (vect_finalize_reduction): Handle subtraction, fix comments.
15084 (vectorizable_reduction): Handle nested cycles. In case of nested
15085 cycle keep track of the reduction variable position. Call
15086 vect_is_simple_reduction with additional parameter. Use original
15087 statement code in reduction epilogue for nested cycle. Call
15088 vect_create_epilog_for_reduction with additional parameter.
15089 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
15090 inner-loop vectorization.
15091 (vect_recog_widen_sum_pattern): Likewise.
15092 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
15093 and reductions.
15094 (vect_mark_stmts_to_be_vectorized): Likewise.
15095 (vect_get_vec_def_for_operand): Handle nested cycles.
15096
15097 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15098
15099 * doc/invoke.texi (Debugging Options): Fix option index entries
15100 for -fdump-statistics, -frandom-seed add entries for
15101 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
15102 (FRV Options): Fix entries for -mTLS, -mtls.
15103 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
15104 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
15105 (M68hc1x Options): Fix @itemx for -mnominmax.
15106 (MCore Options): Fix entry for -mno-lsim.
15107 (MMIX Options): Fix entry for -mabi=mmixware.
15108 (PDP-11 Options): Fix entry for -mbcopy-builtin.
15109
15110 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
15111
15112 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
15113 Mention the plugin mode of gengtype.
15114 * doc/gty.texi (Source Files Containing Type Information): Likewise.
15115 * gengtype.c: Updated copyright.
15116 (plugin_files, nb_plugin_files) Added new static variables.
15117 (measure_input_list) Care about plugin_files.
15118 (write_rtx_next): Added early return in plugin mode.
15119 (create_file): Updated copyright year in generated file. Added
15120 asserts.
15121 (oprintf): Added early return if NULL outf.
15122 (get_output_file_with_visibility): Care of plugin_files.
15123 (get_output_file_name): May return null.
15124 (write_local): Added early return.
15125 (put_mangled_filename): Ditto.
15126 (finish_root_table): Added check for base_files.
15127 (write_roots): Care about null when plugins.
15128 (main): Added plugin mode.
15129
15130 2009-06-15 Ian Lance Taylor <iant@google.com>
15131
15132 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
15133 * gcov.c (read_count_file): Add braces around variables declared
15134 before label.
15135
15136 * c.opt (Wjump-misses-init): New warning.
15137 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15138 -Wall and -Wc++-compat if not already set.
15139 (c_common_post_options): Clear warn_jump_misses_init if it was not
15140 set.
15141 * c-decl.c (struct c_binding): Change type field to a union with
15142 new label field. Make it the first field in the struct. Update
15143 references to type to use u.type instead.
15144 (struct c_spot_bindings): Define.
15145 (struct c_goto_bindings): Define.
15146 (c_goto_bindings_p): Define, along with VECs.
15147 (struct c_label_vars): Define.
15148 (struct c_scope): Add has_label_bindings field.
15149 (bind_label, set_spot_bindings): New static functions.
15150 (decl_jump_unsafe, update_spot_bindings): New static functions.
15151 (update_label_decls): New static function.
15152 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
15153 Update binding u.label field to shadowed field.
15154 (c_binding_start_stmt_expr): New function.
15155 (c_binding_end_stmt_expr): New function.
15156 (pushdecl): Don't call c_begin_vm_scope.
15157 (make_label): Add defining and p_label_vars parameters. Change
15158 all callers.
15159 (lookup_label): Correct test for whether a label has not yet been
15160 defined. Call bind_label rather than bind.
15161 (warn_about_goto): New static function.
15162 (lookup_label_for_goto): New function.
15163 (declare_label): Call bind_label rather than bind.
15164 (check_earlier_gotos): New static function.
15165 (define_label): Don't give errors about jumping into statement
15166 expressions or scopes of variably modified types. Call
15167 set_spot_bindings and check_earlier_gotos. Call bind_label
15168 instead of bind. Don't set label_context_stack_se or
15169 label_context_stack_vm.
15170 (c_get_switch_bindings): New function.
15171 (c_release_switch_bindings): New function.
15172 (c_check_switch_jump_warnings): New function.
15173 (start_function): Don't set label_context_stack_se or
15174 label_context_stack_vm.
15175 (finish_function): Likewise.
15176 * c-typeck.c (label_context_stack_se): Don't define.
15177 (label_context_stack_vm): Don't define.
15178 (c_finish_goto_label): Call lookup_label_for_goto rather than
15179 lookup_label. Don't give errors about jumping into a statement
15180 expression or the scope of a variably modified type. Don't set
15181 label_context_stack_se or label_context_stack_vm.
15182 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15183 fields. Add bindings field.
15184 (c_start_case): Don't set deleted fields. Set bindings field.
15185 (do_case): Rework order of tests. Don't check blocked_stmt_expr
15186 or blocked_vm. Call c_check_switch_jump_warnings.
15187 (c_finish_case): Don't test blocked_stmt_expr field. Call
15188 c_release_switch_bindings.
15189 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15190 c_switch_stack. Don't walk label_context_stack_se labels. Don't
15191 set label_context_stack_se. Call c_bindings_start_stmt_expr.
15192 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15193 c_switch_stack. Don't walk label_context_stack_se labels. Don't
15194 set label_context_stack_se. Call c_bindings_end_stmt_expr.
15195 (c_begin_vm_scope, c_end_vm_scope): Don't define.
15196 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15197 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15198 (C_DECL_UNJUMPABLE_VM): Don't define.
15199 (C_DECL_UNDEFINABLE_VM): Don't define.
15200 (struct c_label_list): Don't define.
15201 (struct c_label_context_se): Don't define.
15202 (struct c_label_context_vm): Don't define.
15203 (struct c_spot_bindings): Declare.
15204 (c_bindings_start_stmt_expr): Declare.
15205 (c_bindings_end_stmt_expr): Declare.
15206 (lookup_label_for_goto): Declare.
15207 (c_get_switch_bindings, c_release_switch_bindings): Declare.
15208 (c_check_switch_jump_warnings): Declare.
15209 (label_context_stack_se, label_context_stack_vm): Don't declare.
15210 (c_finish_goto_label): Update declaration.
15211 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15212 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15213 (Warning Options): Document -Wjump-misses-init.
15214
15215 2009-06-15 Jakub Jelinek <jakub@redhat.com>
15216
15217 * tree-object-size.c (addr_object_size): Fix a pasto in the last
15218 change.
15219
15220 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
15221
15222 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15223
15224 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
15225
15226 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15227
15228 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
15229
15230 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15231
15232 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
15233
15234 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15235 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15236 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15237 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
15238 * dwarf2asm.c (dw2_force_const_mem): Update call to
15239 make_decl_one_only.
15240 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15241 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15242 * langhooks.c (lhd_comdat_group): Remove.
15243 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15244 * tree.h (DECL_COMDAT_GROUP): New.
15245 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15246 (tree_decl_with_vis): Add comdat_group. Remove one_only.
15247 (make_decl_one_only): Change signature.
15248 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15249 make_decl_one_only.
15250 (make_decl_one_only): Change signature.
15251 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15252
15253 2009-06-15 Richard Guenther <rguenther@suse.de>
15254
15255 PR middle-end/40439
15256 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15257
15258 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15259
15260 * tree-ssa-math-opts.c: Remove extra divide.
15261
15262 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15263
15264 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15265
15266 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15267
15268 * passes.c: Add bswap pass.
15269 * tree-pass.h: Add pass_optimize_bswap declaration.
15270 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15271 Include rtl.h, expr.h and optabs.h for optab_handler check.
15272 (struct symbolic_number, pass_optimize_bswap): New definition.
15273 (do_shift_rotate, verify_symbolic_number_p): New functions.
15274 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15275 (gate_optimize_bswap): New function.
15276 * tree.c (widest_int_cst_value): New function.
15277 * tree.h (widest_int_cst_value): Prototype added.
15278
15279 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
15280
15281 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15282 REG_EQUAL/REG_EQUIV notes.
15283
15284 2009-06-14 Richard Guenther <rguenther@suse.de>
15285
15286 PR middle-end/40389
15287 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15288 has its address taken if NRV was applied and it is addressable.
15289 * tree-ssa-structalias.c (get_constraint_for_address_of): New
15290 function split out from ...
15291 (get_constraint_for_1): ... here.
15292 (handle_rhs_call): Use it to mark the return slot escaped if
15293 it is addressable and NRV was applied.
15294
15295 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
15296
15297 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15298 Change first argument type to location_t.
15299 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15300 Do not set input_location.
15301 Use loc instead of input_location throughout.
15302
15303 2009-06-13 Richard Guenther <rguenther@suse.de>
15304
15305 PR tree-optimization/40421
15306 * tree-predcom.c (should_unroll_loop_p): Remove.
15307 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15308
15309 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15310
15311 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15312 Add location argument.
15313
15314 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
15315
15316 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15317 build_decl.
15318 * config/s390/s390.c (s390_build_builtin_va_list): Same.
15319 (s390_gimplify_va_arg): Pass location to create_artificial_label.
15320 * config/spu/spu-protos.h: Add location to
15321 spu_resolve_overloaded_builtin.
15322 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
15323 spu_build_builtin_va_list.
15324 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
15325 argument. Pass location to build_function_call_vec.
15326 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
15327 build_decl.
15328 (emit_fpu_switch): Same.
15329 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
15330 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
15331 to build_decl and create_artificial_label.
15332 (xtensa_gimplify_va_arg_expr): Same.
15333 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
15334 (xstormy16_gimplify_va_arg_expr): Same.
15335 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
15336 * config/arm/arm.c (arm_build_builtin_va_list): Same.
15337 * config/mips/mips.c (mips_build_builtin_va_list): Same.
15338 (mips16_build_function_stub): Same.
15339 (mips16_build_call_stub): Same.
15340
15341 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
15342
15343 PR target/40327
15344 * arm/constraints.md (Pa, Pb): New constraints.
15345 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
15346 split pattern to deal with them.
15347
15348 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
15349
15350 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15351 fix index entry for -Xpreprocessor.
15352
15353 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
15354
15355 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15356 Add location argument to build_decl call.
15357 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15358 (rs6000_init_builtins): Same.
15359 (spe_init_builtins): Same.
15360 (rs6000_gimplify_va_arg): Add location argument to
15361 create_artificial_label call.
15362
15363 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
15364
15365 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15366 * combine-stack-adj.c (pass_stack_adjustments): Use it.
15367 * Makefile.in: Fix GGC dependency for gcse.o.
15368
15369 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
15370
15371 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15372 * gimple-pretty-print.c (dump_gimple_stmt): Same.
15373 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15374 created.
15375 * c-parser.c (c_parser_binary_expression): Use current column while
15376 building binary operations.
15377 * common.opt (fshow-column): Enable by default.
15378 * tree-vrp.c (check_array_ref): Use warning_at.
15379 (check_array_bounds): Use location from call back if expr has no
15380 location.
15381 * tree.h: Add location argument to maybe_fold_*.
15382 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15383 (maybe_fold_offset_to_array_ref): Add location argument and use it.
15384 (maybe_fold_offset_to_component_ref): Same.
15385 (maybe_fold_offset_to_reference): Same.
15386 (maybe_fold_offset_to_address): Same.
15387 (maybe_fold_stmt_indirect): Same.
15388 (maybe_fold_stmt_addition): Same.
15389 (fold_stmt_r): Pass location to maybe_fold_*.
15390 (fold_gimple_assign): Same.
15391 * c-tree.h: Add location argument to finish_decl,
15392 default_function_array_conversion, store_init_value.
15393 * c-decl.c (define_label): Use error_at.
15394 (c_make_fname_decl): Pass location to finish_decl.
15395 (finish_decl): New location argument.
15396 (build_compound_literal): Pass location to store_init_value.
15397 (grokdeclarator): Pass location to finish_decl.
15398 (grokfield): Same.
15399 * c-typeck.c (array_to_pointer_conversion): New location argument.
15400 (function_to_pointer_conversion): Same.
15401 (default_function_array_conversion): Same.
15402 (parser_build_unary_op): Pass location to overflow_warning.
15403 (parser_build_binary_op): Same. Use warning_at.
15404 (build_unary_op): Pass location to array_to_pointer_conversion.
15405 (build_c_cast): Pass location to digest_init.
15406 (build_modify_expr): New location argument.
15407 (convert_for_assignment): Same.
15408 (store_init_value): Same.
15409 (digest_init): Same.
15410 (output_init_element): Pass location to digest_init and
15411 array_to_pointer_conversion.
15412 (c_finish_return): Pass location to convert_for_assignment.
15413 * gimplify.c (gimplify_conversion): Pass location to
15414 maybe_fold_offset_to_address.
15415 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15416 to maybe_fold_stmt_addition.
15417 * c-omp.c (c_finish_omp_atomic): Pass new location to
15418 build_modify_expr.
15419 (c_finish_omp_for): Same.
15420 * c-common.c (overflow_warning): New argument.
15421 * c-common.h: New argument to build_modify_expr, overflow_warning.
15422 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15423 finish_decl.
15424 (c_parser_initializer): Pass location to
15425 default_function_array_conversion.
15426 (c_parser_initelt): Same.
15427 (c_parser_initval): Same.
15428 (c_parser_asm_operands): Same.
15429 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
15430 (c_parser_conditional_expression): Same.
15431 (c_parser_binary_expression): Add location info to stack. Use it.
15432 (c_parser_unary_expression): Pass location to
15433 default_function_array_conversion, parser_build_unary_op,
15434 build_indirect_ref, c_parser_postfix_expression_after_primary.
15435 (c_parser_postfix_expression_after_primary): New location argument.
15436 Use it.
15437 (c_parser_expression_conv): Pass location to
15438 default_function_array_conversion.
15439 (c_parser_expr_list): Same.
15440 (c_parser_omp_atomic): Same.
15441 (c_parser_omp_for_loop): Same.
15442 * c-tree.h (struct c_declarator): Add comment to id_loc.
15443 (build_array_declarator): New argument.
15444 * c-decl.c (build_array_declarator): Add location argument.
15445 (grokdeclarator): Set id_loc for cdk_array.
15446 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15447 build_array_declarator.
15448 * tree.c (build_omp_clause): Add location argument.
15449 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15450 (OMP_CLAUSE_LOCATION): New macro.
15451 (struct tree_omp_clause): Add location field.
15452 (build_omp_clause): Add argument.
15453 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15454 build_omp_clause.
15455 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15456 (cp_parser_omp_clause_collapse): Same.
15457 (cp_parser_omp_clause_default): Same.
15458 (cp_parser_omp_clause_if): Same.
15459 (cp_parser_omp_clause_nowait): Same.
15460 (cp_parser_omp_clause_num_threads): Same.
15461 (cp_parser_omp_clause_ordered): Same.
15462 (cp_parser_omp_clause_schedule): Same.
15463 (cp_parser_omp_clause_untied): Same.
15464 (cp_parser_omp_for_loop): Same.
15465 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15466 * c-tree.h (c_start_case): Add location argument.
15467 (c_process_expr_stmt): Same.
15468 (c_finish_goto_*): Same.
15469 * tree-parloops.c (initialize_reductions): Pass location to
15470 build_omp_clause.
15471 (create_parallel_loop): Same.
15472 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15473 (gfc_trans_omp_reduction_list): Same.
15474 (gfc_trans_omp_clauses): Same.
15475 (gfc_trans_omp_do): Same.
15476 * c-typeck.c (c_finish_goto_label): Same.
15477 (c_finish_goto_ptr): New location argument.
15478 (c_start_case): Same.
15479 (emit_side_effect_warnings): Same.
15480 (c_process_expr_stmt): Same.
15481 (c_finish_stmt_expr): Same.
15482 (c_finish_omp_clauses): Use error_at instead of error.
15483 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15484 build_omp_clause.
15485 * c-omp.c (c_split_parallel_clauses): New location argument.
15486 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15487 to build_omp_clause.
15488 (convert_local_reference_stmt): Same.
15489 (convert_gimple_call): Same.
15490 * c-common.h (c_split_parallel_clauses): New argument.
15491 * c-parser.c (c_parser_statement_after_labels): Pass location to
15492 c_finish_goto_label.
15493 (c_parser_switch_statement): Pass location to c_start_case.
15494 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15495 and c_process_expr_stmt.
15496 (c_parser_omp_variable_list): Add location argument.
15497 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
15498 (c_parser_omp_clause_default): Same.
15499 (c_parser_omp_clause_if): Same.
15500 (c_parser_omp_clause_num_threads): Same.
15501 (-c_parser_omp_clause_ordered): Same.
15502 (c_parser_omp_clause_reduction): Pass location to
15503 c_parser_omp_variable_list.
15504 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15505 (c_parser_omp_clause_untied): Same.
15506 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
15507 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15508
15509 * c-tree.h (check_for_loop_decls, undeclared_variable,
15510 build_component_ref, build_array_ref, build_external_ref,
15511 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15512 build_conditional_expr, build_compound_expr, c_cast_expr,
15513 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15514 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15515 argument.
15516 * c-semantics.c (build_stmt): Same.
15517 (build_case_label): Same.
15518 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15519 (undeclared_variable): New argument.
15520 (make_label): Same.
15521 (lookup_label): Pass location on down.
15522 (define_label): Same.
15523 (finish_decl): Same.
15524 (build_compound_literal): Same.
15525 (finish_struct): Same.
15526 (finish_function): Do not set location here.
15527 (check_for_loop_decls): New argument.
15528 * tree.c (save_expr): Set location.
15529 (build_empty_stmt): New argument.
15530 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15531 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15532 * builtins.c (gimplify_va_arg_expr): Use locations.
15533 (expand_builtin_sync_operation): Same.
15534 * c-typeck.c (build_component_ref): New argument.
15535 (build_array_ref): Same.
15536 (build_external_ref): Same.
15537 (c_expr_sizeof_expr): Same.
15538 (c_expr_sizeof_type): Same.
15539 (parser_build_unary_op): Same.
15540 (build_conditional_expr): Same.
15541 (build_compound_expr): Pass location on down.
15542 (build_compound_expr): New argument.
15543 (build_c_cast): Same.
15544 (c_cast_expr): Same.
15545 (build_asm_expr): Same.
15546 (c_finish_return): Same.
15547 (c_process_expr_stmt): Pass location on down.
15548 (c_finish_stmt_expr): New argument.
15549 (push_clenaup): Same.
15550 (c_finish_omp_parallel): Same.
15551 (c_finish_omp_task): Same.
15552 * gimplify.c (gimplify_call_expr): Pass location on down.
15553 * c-omp.c (c_finish_omp_master): New argument.
15554 (c_finish_omp_critical): Same.
15555 (c_finish_omp_ordered): Same.
15556 (c_finish_omp_barrier): Same.
15557 (-c_finish_omp_taskwait): Same.
15558 (c_finish_omp_atomic): Same.
15559 (c_finish_omp_flush): Same.
15560 * tree-inline.c (copy_tree_body_r): Pass location on down.
15561 (inline_forbidden_p): Remove use of input_location.
15562 * c-gimplify.c (c_build_bind_expr): New argument.
15563 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15564 (c_sizeof_or_alignof_type): New argument.
15565 (c_alignof_expr): Same.
15566 (build_va_arg): Same.
15567 (c_add_case_label): Same.
15568 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
15569 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
15570 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
15571 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
15572 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
15573 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
15574 New argument.
15575 * stub-objc.c (objc_build_selector_expr): Same.
15576 (objc_build_throw_stmt): Same.
15577 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
15578 (c_parser_initelt): Same.
15579 (c_parser_compound_statement): Same.
15580 (c_parser_compound_statement_nostart): Same.
15581 (c_parser_label): Same.
15582 (c_parser_statement_after_labels): Same.
15583 (c_parser_if_body): Same.
15584 (c_parser_else_body): Same.
15585 (c_parser_if_statement): Same.
15586 (c_parser_switch_statement): Same.
15587 (c_parser_while_statement): Same.
15588 (c_parser_do_statement): Same.
15589 (c_parser_for_statement): Same.
15590 (c_parser_asm_statement): Same.
15591 (c_parser_conditional_expression): Same.
15592 (c_parser_binary_expression): Same.
15593 (c_parser_cast_expression): Same.
15594 (c_parser_unary_expression): Same.
15595 (c_parser_sizeof_expression): Same.
15596 (c_parser_alignof_expression): Same.
15597 (c_parser_postfix_expression): Same.
15598 (c_parser_expression): Same.
15599 (c_parser_objc_receiver): Same.
15600 (c_parser_omp_variable_list): Same.
15601 (c_parser_omp_structured_block): Same.
15602 (c_parser_omp_atomic): New argument.
15603 (c_parser_omp_barrier): Same.
15604 (c_parser_omp_critical): Same.
15605 (c_parser_omp_flush): Pass location on down.
15606 (c_parser_omp_for_loop): New argument.
15607 (c_parser_omp_for): Same.
15608 (c_parser_omp_master): Same.
15609 (c_parser_omp_ordered): Same.
15610 (c_parser_omp_sections_scope): Same.
15611 (c_parser_omp_sections): Same.
15612 (c_parser_omp_parallel): Same.
15613 (c_parser_omp_single): Same.
15614 (c_parser_omp_task): Same.
15615 (c_parser_omp_taskwait): Pass location on down.
15616 (c_parser_omp_construct): Same.
15617 (c_parser_omp_threadprivate): Same.
15618 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
15619 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
15620 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
15621 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
15622 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
15623 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
15624 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
15625 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
15626 config/i386/i386.c, stmt.c:
15627 Add location argument to the following function definitions and/or
15628 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
15629 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
15630 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
15631 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
15632 do_case, c_finish_bc_stmt, build_compound_literal,
15633 build_function_call.
15634 * c-decl.c (build_compound_literal): Add location argument.
15635 Make all diagnostic calls use location.
15636 (start_struct): Same.
15637 (finish_struct): Same.
15638 (start_enum): Same.
15639 (build_enumerator): Same.
15640 (start_function): Same.
15641 (grokdeclarator): Make all diagnostic calls use location.
15642 (store_parm_decls_oldstyle): Same.
15643 * c-typeck.c (build_function_call): Add location argument.
15644 Make all diagnostic calls use location.
15645 (do_case): Same.
15646 (c_finish_bc_stmt): Same.
15647 * tree-nested.c (get_trampoline_type): Add argument.
15648 Pass location to build_decl.
15649 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
15650 * rtl.h (RTL_LOCATION): New.
15651 * c-common.c (c_add_case_label): Add location argument.
15652 Make all diagnostic calls use location.
15653 * c-common.h: Add location argument to make_fname_decl, do_case,
15654 c_add_case_label, build_function_call, resolve_overloaded_builtin.
15655 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
15656 Set it appropriately for every case. Pass enum_loc to start_enum
15657 call. Pass value_loc first to build_enumerator. Pass enum_loc to
15658 parser_xref_tag.
15659 (c_parser_struct_or_union_specifier): Save location. Use it for
15660 start_struct, finish_struct, and parser_xref_tag.
15661
15662 2009-06-12 Ian Lance Taylor <iant@google.com>
15663
15664 * fold-const.c (fold_unary): Rename local variable and to and_expr.
15665
15666 * c-opts.c (c_common_handle_option): For -Wc++-compat set
15667 cpp_opts->warn_cxx_operator_names.
15668
15669 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
15670
15671 PR tree-opt/38865
15672 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
15673 is returns NULL and OP is a VCE, look through the VCE.
15674
15675 2009-06-12 Ian Lance Taylor <iant@google.com>
15676
15677 PR bootstrap/40430
15678 * collect2.c (main): Use CONST_CAST2 in code inside #if
15679 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
15680
15681 2009-06-12 Joey Ye <joey.ye@intel.com>
15682
15683 PR middle-end/39146
15684 * cfgexpand.c (get_decl_align_unit): Update
15685 max_used_stack_slot_alignment with align instead of
15686 stack_alignment_needed.
15687
15688 * function.c (assign_stack_local_1): Update
15689 max_used_stack_slot_alignment with alignment_in_bits instead
15690 of stack_alignment_needed.
15691 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
15692 here.
15693
15694 2009-06-12 Jakub Jelinek <jakub@redhat.com>
15695
15696 * dwarf2out.c (last_var_location_insn): New variable.
15697 (dwarf2out_end_epilogue): Clear last_var_location_insn.
15698 (dwarf2out_var_location): Don't record anything after last real
15699 insn. Only change labels if there were any real instructions
15700 in between last note and this one, or if changed sections.
15701
15702 2009-06-11 Richard Henderson <rth@redhat.com>
15703
15704 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15705 note when storing the frame pointer in a register.
15706 (FRP): Don't redefine to nothing for epilogue.
15707 (alpha_expand_epilogue): Mark register and sp restores.
15708 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
15709
15710 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
15711 when gen_lowpart is needed.
15712
15713 2009-06-11 Richard Henderson <rth@redhat.com>
15714
15715 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
15716
15717 * dwarf2out.c (need_data_align_sf_opcode): New.
15718 (div_data_align): Move earlier.
15719 (def_cfa_1, reg_save): Use it.
15720
15721 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
15722
15723 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
15724 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
15725 (ix86_handle_option): Handle OPT_mcrc32.
15726 (ix86_target_string): Add -mcrc32.
15727 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
15728
15729 * config/i386/i386.h (TARGET_CRC32): New.
15730
15731 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
15732 (sse4_2_crc32di): Likewise.
15733
15734 * config/i386/i386.opt (mcrc32): New.
15735
15736 * doc/invoke.texi: Document -mcrc32.
15737
15738 2009-06-11 Richard Henderson <rth@redhat.com>
15739
15740 * common.opt (gdwarf-): Accept a version number.
15741 * doc/invoke.texi (gdwarf-): Update docs.
15742 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
15743 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
15744 version level, and record it.
15745
15746 * dwarf2.h (DW_CIE_VERSION): Remove.
15747 * dwarf2out.c (DWARF_VERSION): Remove.
15748 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
15749 (output_call_frame_info): Use CIE version 3 for dwarf3,
15750 or if the return register column is out of range for version 1.
15751 (dwarf_stack_op_name): Add all dwarf3 values.
15752 (DEBUG_PUBTYPES_SECTION): New.
15753 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
15754 encoding change for dwarf3.
15755 (output_die) [dw_val_class_die_ref]: Likewise.
15756 (output_compilation_unit_header): Emit correct version for dwarf3.
15757 (output_line_info): Likewise.
15758 (output_pubnames): Update for DWARF_VERSION removal.
15759 (output_aranges): Likewise.
15760 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
15761 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
15762 (dwarf2out_finish): Likewise.
15763
15764 2009-06-11 David Daney <ddaney@caviumnetworks.com>
15765
15766 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
15767 in r148403.
15768
15769 2009-06-11 David Daney <ddaney@caviumnetworks.com>
15770
15771 PR c/39252
15772 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
15773 * builtins.c (expand_builtin_unreachable): New function.
15774 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
15775 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
15776 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
15777 successors.
15778 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
15779 searching for missing barriers.
15780
15781 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15782
15783 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
15784 when -fprofile-generate* was passed.
15785 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15786
15787 2009-06-11 Anthony Green <green@moxielogic.com>
15788
15789 * config/moxie/moxie.md: Define length attribute for all instructions.
15790 (rCC): Define.
15791 (*b<cond:code>): Support limited branch ranges for new PC-relative
15792 branch instructions.
15793 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
15794
15795 2009-06-11 Jakub Jelinek <jakub@redhat.com>
15796
15797 * config/i386/i386.c (min_insn_size): Use get_attr_length
15798 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
15799 For __asm return 0.
15800
15801 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
15802 instead of emit_insn_before.
15803
15804 2009-06-10 Ian Lance Taylor <iant@google.com>
15805
15806 PR bootstrap/40408
15807 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
15808 GIMPLE_SWITCH.
15809
15810 2009-06-10 Revital Eres <eres@il.ibm.com>
15811
15812 * passes.c (init_optimization_passes): Reschedule
15813 predictive-commoning pass before complete unroll pass.
15814
15815 2009-06-10 Martin Jambor <mjambor@suse.cz>
15816
15817 * cgraph.c (cgraph_node_can_be_local_p): New function.
15818 (cgraph_make_node_local): New function.
15819 * cgraph.h (cgraph_node_can_be_local_p): Declare.
15820 (cgraph_make_node_local): Declare.
15821
15822 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
15823
15824 * tree.h (tree_base): Add packed_flag and user_align fields.
15825 Decrease size of spare field.
15826 (TYPE_USER_ALIGN): Use user_align from tree_base.
15827 (DECL_USER_ALIGN): Likewise.
15828 (TYPE_PACKED): Use packed_flag from tree_base.
15829 (DECL_PACKED): Likewise.
15830 (tree_type): Delete packed_flag and user_align fields. Widen
15831 precision field. Widen mode field and shuffle fields to align
15832 mode on an 8-bit boundary.
15833 (tree_decl_common): Delete decl_flag_1 and user_align fields.
15834 Renumber decl_flag_* fields. Fix comments. Widen
15835 decl_common_unused field.
15836 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
15837 (DECL_EXTERNAL): Likewise.
15838 (DECL_BIT_FIELD): Likewise.
15839 (DECL_NONADDRESSABLE_P): Likewise.
15840 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
15841 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
15842
15843 2009-06-10 Ian Lance Taylor <iant@google.com>
15844
15845 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
15846 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
15847 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
15848 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
15849 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
15850 DEF_VEC_ALLOC_FUNC_P.
15851 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
15852 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
15853 DEF_VEC_ALLOC_FUNC_O.
15854 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
15855 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
15856 DEF_VEC_ALLOC_FUNC_I.
15857 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
15858 (vec_stack_p_reserve_exact_1): Declare.
15859 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
15860 (vec_stack_free): Declare.
15861 (VEC_stack_alloc): Define.
15862 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
15863 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
15864 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
15865 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
15866 for void_p.
15867 (stack_vecs): New static variable.
15868 (vec_stack_p_reserve_exact_1): New function.
15869 (vec_stack_o_reserve_1): New static function.
15870 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
15871 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
15872 (vec_stack_free): New function.
15873 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
15874 (VEC_df_ref_stack_alloc): Define.
15875 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
15876 DEF_VEC_ALLOC_P_STACK.
15877 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
15878 (struct df_collection_rec): Change _vec fields to VEC. Remove
15879 _use fields.
15880 (df_free_collection_rec): Adjust for new fields.
15881 (df_insn_rescan): Use new df_collection_rec fields.
15882 (df_notes_rescan, df_canonize_collection_rec): Likewise.
15883 (df_ref_create_structure, df_ref_record): Likewise.
15884 (df_get_conditional_uses, df_get_call_refs): Likewise.
15885 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
15886 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
15887 (df_record_exit_block_uses, df_bb_verify): Likewise.
15888 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
15889 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
15890 Remove count parameter. Change return type to void. Change all
15891 callers.
15892 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
15893 Remove count parameter. Change return type to void. Change all
15894 callers.
15895 (df_install_refs): Change old_vec parameter to VEC. Remove count
15896 parameter. Change all callers.
15897 (df_install_mws): Change old_vec parameter to VEC. Remove count
15898 parameter. Change all callers.
15899 (df_refs_verify): Change new_rec parameter to VEC. Change call
15900 callers.
15901 (df_mws_verify): Likewise.
15902
15903 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
15904
15905 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
15906
15907 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
15908
15909 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
15910
15911 2009-06-10 Anthony Green <green@moxielogic.com>
15912
15913 * config/moxie/crti.asm: New file.
15914 * config/moxie/crtn.asm: New file.
15915 * config/moxie/moxie.c: New file.
15916 * config/moxie/moxie.h: New file.
15917 * config/moxie/sfp-machine.h: New file.
15918 * config/moxie/moxie-protos.h: New file.
15919 * config/moxie/t-moxie: Created.
15920 * config/moxie/t-moxie-softfp: Created.
15921 * config/moxie/moxie.md: Created.
15922 * config/moxie/constraints.md: Created.
15923 * config.gcc: Add moxie support.
15924 * doc/md.texi (Machine Constraints): Add moxie constraints.
15925 * doc/contrib.texi (Contributors): Mention moxie port.
15926 * doc/install.texi (Specific): Mention the moxie port.
15927
15928 2009-06-09 Ian Lance Taylor <iant@google.com>
15929
15930 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
15931 compiling with C++.
15932 * optabs.c (optab_table): Only use designated initializers if
15933 HAVE_DESIGNATED_INITIALIZERS is defined.
15934 (convert_optab_table): Likewise.
15935 (init_optabs): Always call init_insn_codes if
15936 HAVE_DESIGNATED_INITIALIZERS is not defined.
15937
15938 2009-06-09 Ian Lance Taylor <iant@google.com>
15939
15940 * targhooks.c (default_builtin_vectorized_function): Change fn
15941 parameter to unsigned int.
15942 (default_builtin_vectorized_conversion): Change code parameter to
15943 unsigned int.
15944 (default_builtin_reciprocal): Change fn parameter to unsigned int.
15945 * targhooks.h: Update declarations.
15946 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
15947 parameter to unsigned int.
15948
15949 * c-typeck.c (comptypes_check_enum_int): New static function.
15950 (comptypes_internal): Add enum_and_int_p parameter. Change all
15951 callers.
15952 (comp_target_types): Add location parameter. Change all callers.
15953 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
15954 Change all callers.
15955 (function_types_compatible_p, type_lists_compatible_p): Likewise.
15956 (build_conditional_expr): Add colon_loc parameter. Change all
15957 callers.
15958 (convert_for_assignment): Add location parameter. Change all callers.
15959 * c-parser.c (c_parser_conditional_expression): Pass location of
15960 colon to build_conditional_expr.
15961 * c-tree.h (build_conditional_expr): Update declaration.
15962
15963 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
15964
15965 * graphite.c: Revert previous patch.
15966
15967 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
15968
15969 PR bootstrap/40103
15970 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
15971
15972 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
15973
15974 * tree-ssa-loop-prefetch.c
15975 (loop_prefetch_arrays): Fixed a portability problem in printf format
15976 string.
15977
15978 2009-06-09 Martin Jambor <mjambor@suse.cz>
15979
15980 PR tree-optimization/40351
15981 * tree-sra.c (propagate_subacesses_accross_link): Check that a
15982 refrence to a potential artifical subaccess can be constructed.
15983
15984 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15985
15986 * config/sh/sh-protos.h (sh_optimization_options): Declare.
15987 (sh_override_options): Likewise.
15988 * config/sh/sh.c: Include params.h.
15989 (sh_optimization_options): New.
15990 (sh_override_options): Likewise.
15991 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
15992 (OVERRIDE_OPTIONS): Use sh_override_options.
15993
15994 2009-06-08 Jakub Jelinek <jakub@redhat.com>
15995
15996 * dwarf2out.c (emit_cfa_remember): New variable.
15997 (add_fde_cfi): If emit_cfa_remember, recurse to add
15998 DW_CFA_remember_state first.
15999 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
16000 instead just set emit_cfa_remember.
16001
16002 2009-06-08 Jan Hubicka <jh@suse.cz>
16003
16004 PR debug/40126
16005 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
16006
16007 2009-06-08 Jan Hubicka <jh@suse.cz>
16008
16009 PR middle-end/39834
16010 * cgraphunit.c (save_inline_function_body): Do not copy transform
16011 hooks for saved inline bodies.
16012 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
16013 for given function.
16014
16015 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
16016
16017 * jump.c (returnjump_p): Handle delayed branches. Add missing
16018 function comment.
16019
16020 2009-06-08 Jan Hubicka <jh@suse.cz>
16021
16022 PR middle-end/40102
16023 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
16024 original node might've been modified.
16025 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
16026
16027 2009-06-08 Jakub Jelinek <jakub@redhat.com>
16028
16029 * tree-object-size.c (addr_object_size): Add OSI argument.
16030 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
16031 (compute_builtin_object_size, expr_object_size): Adjust callers.
16032 (plus_stmt_object_size): Call addr_object_size instead of
16033 compute_builtin_object_size.
16034
16035 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
16036 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
16037
16038 * tree-ssa-loop-prefetch.c
16039 (gather_memory_references): Introduced a counter for the number of
16040 memory references.
16041 (anything_to_prefetch_p): Introduced a counter for the number of
16042 prefetches.
16043 (is_loop_prefetching_profitable): New function with a cost model
16044 for prefetching.
16045 (loop_prefetch_arrays): Use the new cost model to determine if
16046 prefetching is profitable.
16047 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
16048 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16049 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
16050 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16051 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
16052 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
16053
16054 2009-06-08 Michael Matz <matz@suse.de>
16055
16056 PR debug/40012
16057 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
16058 partitions use the same.
16059 (expand_one_var): Deal with DECL_RTL sometimes begin set also
16060 for basevars of SSA_NAMEs.
16061 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
16062 to not expand them twice.
16063 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
16064 multiple places.
16065
16066 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
16067
16068 * common.opt (fcompare-debug=, fcompare-debug-second): New.
16069 (fdump-final-insns=, gtoggle): New.
16070 * doc/invoke.texi: Document them.
16071 * final.c (rest_of_clean_state): Dump final insn stream.
16072 * gcc.c (invoke_as): Hook in -fcompare-debug.
16073 (static_spec_functions): Add compare-debug-dump-opt,
16074 compare-debug-self-opt and compare-debug-auxbase-opt.
16075 (compare_debug, compare_debug_second, compare_debug_opt): New.
16076 (switches_debug_check, n_switches_debug_check): New.
16077 (debug_auxbase_opt, debug_check_temp_file): New.
16078 (process_command): Handle -fno-compare-debug, -fcompare-debug and
16079 -fcompare-debug=*.
16080 (do_self_spec): Handle arguments after switches.
16081 (do_spec_1): Add .gk extension to temp file basenames for compare.
16082 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
16083 (cc1_options): Use it instead of normal auxbase computation for
16084 the second compare-debug compilation.
16085 (compare_files): New.
16086 (main): Set up and implement compare debug mode.
16087 (compare_debug_dump_opt_spec_function): New.
16088 (compare_debug_self_opt_spec_function): New.
16089 (compare_debug_auxbase_opt_spec_function): New.
16090 * toplev.c (process_options): Handle flag_gtoggle,
16091 flag_dump_final_insns.
16092 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
16093 during -fcompare-debug-second compilation.
16094
16095 2009-06-07 Ian Lance Taylor <iant@google.com>
16096
16097 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
16098 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
16099
16100 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
16101 with no default node. Change warning with %H to warning_at.
16102 Don't clear warn_switch around case checking.
16103 * doc/invoke.texi (Warning Options): Clarify distinction between
16104 -Wswitch and -Wswitch-enum.
16105
16106 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16107
16108 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
16109
16110 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16111
16112 * gbl-ctors.h: Add header guard.
16113
16114 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16115
16116 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
16117 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
16118 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
16119 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
16120 prototypes for removed functions.
16121 (expressions_equal_p): Move to ...
16122 * tree-ssa-sccvn.h: ... here and ...
16123 * matrix-reorg.c: ... adjust includes.
16124
16125 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16126
16127 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16128
16129 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16130
16131 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16132 (finish_function): Remove erroneous whitespace.
16133
16134 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16135
16136 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16137 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
16138
16139 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16140
16141 * errors.c (internal_error): Commentary typo fix.
16142 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16143 * tree-ssa-pre.c: Ditto.
16144
16145 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16146
16147 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16148 them is supposed to hold actual statements.
16149
16150 2009-06-06 Ian Lance Taylor <iant@google.com>
16151
16152 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16153 empty statements can now have attributes.
16154
16155 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
16156
16157 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16158 * config/mips/mips.md: Ditto.
16159
16160 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
16161
16162 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16163 _RELOCATABLE.
16164 (__eabi_uconvert): Likewise.
16165
16166 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
16167
16168 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16169 CFI_* definitions with IN_GCC.
16170
16171 2009-06-05 David Edelsohn <edelsohn@gnu.org>
16172
16173 * xcoffout.h (xcoffout_source_line): Update prototype.
16174
16175 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16176
16177 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16178 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16179
16180 2009-06-05 Jakub Jelinek <jakub@redhat.com>
16181
16182 PR middle-end/40340
16183 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16184 inlined_function_outer_scope_p blocks for artificial inlines
16185 even at -g0/-g1.
16186 * tree.c (tree_nonartificial_location): Rewrite using
16187 block_nonartificial_location.
16188
16189 2009-06-05 Revital Eres <eres@il.ibm.com>
16190 Leehod Baruch <leehod@il.ibm.com>
16191
16192 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16193 (expand_expr_real_1): Remove comment.
16194 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16195 Vectorize misaligned access when the target supports it.
16196 (vect_supportable_dr_alignment): Check for unaligned access support.
16197 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16198 and remove asset.
16199
16200 2009-06-05 Julian Brown <julian@codesourcery.com>
16201
16202 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16203 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16204
16205 2009-06-05 Richard Guenther <rguenther@suse.de>
16206
16207 PR bootstrap/40350
16208 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16209 as possibly unused.
16210
16211 2009-06-05 Jakub Jelinek <jakub@redhat.com>
16212
16213 * config/s390/s390.c (global_not_special_regno_p): New static inline.
16214 (save_gprs): Don't tell unwinder when a global register is saved.
16215 (s390_emit_epilogue): Emit needed epilogue unwind info.
16216
16217 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
16218
16219 * dwarf2out.c (deferred_asm_name): New.
16220 (add_name_and_src_coords_attributes): Defer creation of
16221 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16222 computed yet.
16223 (move_linkage_attr): New.
16224 (dwarf2out_finish): Revisit deferrals and emit attributes at the
16225 right place.
16226
16227 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
16228
16229 * tree-nested.c (finalize_nesting_tree_1): Declare the
16230 frame_decl in the binding tree.
16231
16232 2009-06-04 Cary Coutant <ccoutant@google.com>
16233
16234 * basic-block.h (struct basic_block_def): Add discriminator field.
16235 * dbxout.c (dbxout_source_line): Add new parameter. Change all
16236 callers.
16237 * debug.c (do_nothing_debug_hooks): Add additional entry.
16238 (debug_nothing_int_charstar_int): New function.
16239 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
16240 (debug_nothing_int_charstar_int): New declaration.
16241 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
16242 discriminator value in .loc directive.
16243 * final.c (last_discriminator): New variable.
16244 (discriminator): New variable.
16245 (final_start_function): Initialize above variables, pass current
16246 discriminator to debug hook.
16247 (notice_source_line): Check for discriminator change.
16248 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16249 * sdbout.c (sdbout_source_line): New parameter.
16250 * tree-cfg.c (struct locus_discrim_map): New structure type.
16251 (discriminator_per_locus): New hash table.
16252 (build_gimple_cfg): Allocate and free discriminator hash table.
16253 (make_edges): Call assign_discriminator.
16254 (locus_map_hash): New function.
16255 (locus_map_eq): New function.
16256 (next_discriminator_for_locus): New function.
16257 (same_line_p): New function.
16258 (assign_discriminator): New function.
16259 (make_cond_expr_edges): Call assign_discriminator.
16260 (make_gimple_switch_edges): Likewise.
16261 (first_non_label_stmt): New function.
16262 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
16263 all callers.
16264 * xcoffout.c (xcoffout_source_line): Add new parameter.
16265
16266 * configure.ac (gcc_cv_as_discriminator): New configury check for
16267 gas support for discriminator.
16268 * configure: Regenerate.
16269 * config.in: Regenerate.
16270
16271 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16272
16273 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16274 val after checking for integers.
16275
16276 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
16277
16278 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16279 X64_REGPARM_MAX.
16280 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16281 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16282 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16283 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16284 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
16285 X64_SSE_REGPARM_MAX.
16286 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16287 X64_SSE_REGPARM_MAX.
16288
16289 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16290
16291 * gcc.c (report_times_to_file): New.
16292 (execute): Implement it.
16293 (process_command): Support -time=.
16294 * doc/invoke.texi: Document it.
16295
16296 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16297
16298 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16299 that have value exprs.
16300
16301 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
16302
16303 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16304 declarations for constants until...
16305 (dw2_output_indirect_constant_1): ... this point.
16306
16307 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
16308
16309 PR target/10242
16310 * arm.md (arm_addsi3): Don't try to split an add with an
16311 eliminable register until after reload has completed.
16312
16313 2009-06-03 Ian Lance Taylor <iant@google.com>
16314
16315 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16316 * genattrtab.c (write_length_unit_log): Likewise.
16317 * genchecksum.c (dosum): Likewise.
16318 * gengtype.c (write_rtx_next): Likewise.
16319 (finish_root_table, write_roots): Likewise.
16320 * gimple.c (gimple_ops_offset_): Likewise.
16321 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
16322 * config/arc/arc.c (arc_attribute_table): Likewise.
16323 * config/arm/arm.c (arm_attribute_table): Likewise.
16324 * config/avr/avr.c (avr_attribute_table): Likewise.
16325 * config/crx/crx.c (crx_attribute_table): Likewise.
16326 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
16327 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
16328 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
16329 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
16330 * config/sh/sh.c (sh_attribute_table): Likewise.
16331 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
16332 * config/spu/spu.c (spu_attribute_table): Likewise.
16333 * config/v850/v850.c (v850_attribute_table): Likewise.
16334
16335 * config/alpha/alpha.c (vms_attribute_table): Make static.
16336 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
16337 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
16338 * config/mips/mips.c (mips_attribute_table): Likewise.
16339
16340 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
16341 $(SYSTEM_H).
16342 (cc1-checksum.o): Likewise.
16343
16344 2009-06-03 Steve Ellcey <sje@cup.hp.com>
16345
16346 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16347
16348 2009-06-03 Jakub Jelinek <jakub@redhat.com>
16349
16350 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16351 insn if it is changing sp. Use gen_add3_insn instead of
16352 conditionally gen_addsi3 and gen_adddi3.
16353 (offset_below_red_zone_p): New static inline function.
16354 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16355 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16356 * config/rs6000/ppc-asm.h: Include auto-host.h.
16357 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16358 CFI_RESTORE): Define.
16359 * config/rs6000/crtresxgpr.asm: Add unwind info.
16360 * config/rs6000/crtresxfpr.asm: Likewise.
16361 * config/rs6000/crtresgpr.asm: Likewise.
16362 * config/rs6000/crtresfpr.asm: Likewise.
16363 * config/rs6000/crtsavgpr.asm: Likewise.
16364 * config/rs6000/crtsavfpr.asm: Likewise.
16365
16366 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16367 argument of DWARF2_FRAME_REG_OUT macros.
16368
16369 2009-06-03 Julian Brown <julian@codesourcery.com>
16370
16371 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16372 words or less (including TImode) in core registers.
16373
16374 2009-06-03 Richard Guenther <rguenther@suse.de>
16375
16376 PR middle-end/40328
16377 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16378
16379 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
16380
16381 * statistics.c (statistics_counter_event): Do not record event
16382 in pass dump if its number == -1.
16383 (curr_statistics_hash): Add assert that we never get passes
16384 with static number == -1.
16385
16386 2009-06-03 Richard Guenther <rguenther@suse.de>
16387 Andrey Belevantsev <abel@ispras.ru>
16388
16389 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
16390 non-BLKmode arrays addressable.
16391
16392 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
16393
16394 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16395 * config/m68k/m68k.h: ... here.
16396
16397 2009-06-03 Martin Jambor <mjambor@suse.cz>
16398
16399 PR tree-optimization/40323
16400 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16401 assignment.
16402
16403 2009-06-03 Richard Guenther <rguenther@suse.de>
16404
16405 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16406 consistently.
16407
16408 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
16409
16410 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16411 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16412 JUMP_TABLE_DATA_P where applicable.
16413 * config/sh/sh.c: Ditto.
16414 * config/sh/sh.h: Ditto.
16415 * config/sh/sh.md: Ditto.
16416 * config/sh/symbian.c: Ditto.
16417
16418 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
16419
16420 * config/i386/driver-i386.c (describe_cache): Optimize
16421 concatenation of strings. Use snprintf instead of sprintf.
16422 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
16423 target when not compiling with GCC.
16424
16425 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
16426
16427 * config/sh/sh.c: Revert last change.
16428 (sh_expand_epilogue): Emit a blockage insn before the frame
16429 pointer adjustment unconditionally.
16430
16431 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16432
16433 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16434 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16435 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16436 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16437 to COLLECT_GCC_OPTIONS.
16438
16439 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16440
16441 * collect2.c (target_system_root): New variable.
16442 (main): Handle --sysroot=.
16443 (ignore_library): Strip the sysroot from the library path.
16444
16445 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16446
16447 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16448 (collect2.o): Depend on collect2-aix.h.
16449 (collect2-aix.o): New rule.
16450 * collect2-aix.h: New file.
16451 * collect2-aix.c: Likewise.
16452 * collect2.c: Include collect2-aix.h. Don't undefine
16453 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16454 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16455 Use TARGET_AIX_VERSION instead of _AIX51.
16456 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16457 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16458 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16459 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16460 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16461
16462 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16463
16464 * collect2.c (ignore_library): Avoid premature post-increment
16465 and null deference.
16466
16467 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
16468
16469 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16470 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16471 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16472 CROSS_DIRECTORY_STRUCTURE too.
16473 (LINK_LIBG_SPEC): Likewise.
16474 (LIB_SPEC): Add %R to sysroot paths.
16475 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16476 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16477 * config/rs6000/aix51.h: As for aix43.h.
16478 * config/rs6000/aix52.h: Likewise.
16479 * config/rs6000/aix53.h: Likewise.
16480 * config/rs6000/aix61.h: Likewise.
16481 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16482 to the beginning of sysroot paths.
16483
16484 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16485
16486 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16487 INSN_LISTs that are out of the REG_NOTE range.
16488
16489 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16490
16491 * loop-unroll.c (struct iv_to_split): Add pointer to next.
16492 (struct var_to_expand): Likewise.
16493 (struct opt_info): Add head and tail for linked lists of the above.
16494 (analyze_insn_to_expand_var): Initialize next.
16495 (analyze_iv_to_split_insn): Likewise.
16496 (analyze_insns_in_loop): Create linked lists.
16497 (allocate_basic_variable): Simplify for use without hash table.
16498 (insert_var_expansion_initialization): Likewise, make it type-safer.
16499 (combine_var_copies_in_loop_exit): Likewise.
16500 (apply_opt_in_copies): Walk lists rather than hash tables.
16501 (release_var_copies): Simplified and inlined by hand into...
16502 (free_opt_info): ... this function.
16503
16504 2009-06-02 Richard Guenther <rguenther@suse.de>
16505
16506 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16507 for field decls.
16508
16509 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16510
16511 * cfgexpand.c (gimple_expand_cfg): Discard the source location
16512 only for builtins that are not overridden.
16513
16514 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16515
16516 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16517 label string.
16518
16519 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16520
16521 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16522
16523 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16524
16525 * combine.c (move_deaths): Compare LUIDs within the same BB only.
16526
16527 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
16528
16529 * common.opt (fdump-unnumbered-links): New.
16530 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16531 * print-rtl.c (flag_dump_unnumbered_links): New.
16532 (print_rtx): Test it.
16533
16534 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
16535
16536 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16537 push/pop multiple to 8-byte alignment.
16538
16539 2009-06-01 Jakub Jelinek <jakub@redhat.com>
16540
16541 * config/i386/i386.c (queued_cfa_restores): New static variable.
16542 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16543 functions.
16544 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16545 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16546 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16547 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16548 note unconditionally.
16549 (ix86_emit_restore_regs_using_mov): Likewise.
16550 (ix86_emit_restore_sse_regs_using_mov): Likewise.
16551 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16552 it through to ix86_emit_restore_reg_using_pop.
16553 (ix86_emit_leave): Add RED_OFFSET argument. Call
16554 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
16555 instead of adding REG_CFA_OFFSET note unconditionally.
16556 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16557 the above functions. Call ix86_add_queued_cfa_restore_notes when
16558 needed.
16559
16560 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16561 force output of the label even for dwarf2out_do_cfi_asm.
16562 (add_fde_cfi): If -g2 and above and cfi might change CFA,
16563 force creation of CFI label and chain DW_CFA_set_loc jumping to it
16564 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
16565 caller.
16566 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16567 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
16568 dwarf2out_cfi_label callers.
16569 * tree.h (dwarf2out_cfi_label): Adjust prototype.
16570 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
16571 Adjust dwarf2out_cfi_label callers.
16572 * config/vax/vax.c (vax_output_function_prologue): Likewise.
16573
16574 * config/i386/i386.h (struct machine_cfa_state,
16575 struct machine_function): Guard with ifndef USED_FOR_TARGET
16576 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
16577
16578 PR other/40024
16579 * emutls.c (__emutls_get_address): Change arr->size to mean number
16580 of allocated arr->data entries instead of # of slots + 1.
16581
16582 PR middle-end/40316
16583 * recog.c (peep2_reinit_state): New function.
16584 (peephole2_init_state): Use it at the end of a basic block and also
16585 when seeing a RTX_FRAME_RELATED_P insn.
16586
16587 2009-06-01 Steve Ellcey <sje@cup.hp.com>
16588
16589 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
16590 fixuns_truncrfdi2): New.
16591 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
16592 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
16593 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
16594 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
16595 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
16596 *recip_approx): Remove.
16597 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
16598 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
16599 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
16600 move to div.md.
16601 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
16602 setf_exp_rf): New.
16603
16604 2009-06-01 Ian Lance Taylor <iant@google.com>
16605
16606 * attribs.c (register_attribute): Use CONST_CAST.
16607 * collect2.c (main): Use CONST_CAST2.
16608 (scan_prog_file): Likewise.
16609 * gcc.c (process_command, main): Likewise.
16610 * toplev.c (toplev_main): Likewise.
16611
16612 * c-typeck.c (handle_warn_cast_qual): New static function,
16613 partially broken out of build_c_cast.
16614 (build_c_cast): Call handle_warn_cast_qual.
16615 * doc/invoke.texi (Warning Options): Document new effect of
16616 -Wcast-qual.
16617
16618 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
16619
16620 * diagnostic.c (diagnostic_build_prefix): Always print columns.
16621 (diagnostic_report_current_module): Print columns.
16622 * common.opt (flag_show_column): Enable by default.
16623
16624 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
16625
16626 * alias.c (find_base_term): Check for NULL term before returning.
16627
16628 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16629
16630 Revert due to PR40320:
16631 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16632 * calls.c (emit_library_call_value_1): Don't force_operand for move
16633 and push insns.
16634
16635 2009-06-01 Olivier Hainque <hainque@adacore.com>
16636 Eric Botcazou <ebotcazou@adacore.com>
16637
16638 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
16639 to be processed as a bitfield for constructor output purposes.
16640 * output.h (initializer_constant_valid_for_bitfield_p): Declare
16641 new function.
16642 * varasm.c (oc_local_state): New type, output_constructor
16643 local state to support communication with helpers.
16644 (oc_outer_state): New type, output_constructor outer state of
16645 relevance in recursive calls.
16646 (output_constructor_array_range): New output_constructor helper,
16647 extracted code for an array range element.
16648 (output_constructor_regular_field): New output_constructor helper,
16649 extracted code for an element that is not a bitfield.
16650 (output_constructor_bitfield): New output_constructor helper,
16651 extracted code for a bitfield element. Accept an OUTER state
16652 argument for recursive processing. Recurse on record or array
16653 CONSTRUCTOR values, possibly past noop conversions.
16654 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
16655 VALUE is a valid constant-valued expression for use in a static
16656 bit-field initializer.
16657 (output_constructor): Rework to use helpers. Accept and honor an
16658 OUTER state argument for recursive calls. Return total size. Be
16659 prepared for nested constructors initializing bitfields.
16660 (output_constant): Feed OUTER in calls to output_constructor.
16661
16662 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
16663
16664 * calls.c (emit_library_call_value_1): Don't force_operand for move
16665 and push insns.
16666
16667 2009-06-01 Nick Clifton <nickc@redhat.com>
16668
16669 * doc/invoke.texi (IA-64 Options): Fix typo.
16670
16671 2009-06-01 Ira Rosen <irar@il.ibm.com>
16672
16673 PR tree-optimization/39129
16674 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
16675 printed message.
16676 (vect_do_peeling_for_loop_bound): Use
16677 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16678 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16679 (vect_loop_versioning): Likewise.
16680 (vect_create_cond_for_alias_checks): Fix indentation.
16681 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
16682 macros.
16683 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
16684 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
16685 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
16686 "control flow in loop".
16687 (vect_estimate_min_profitable_iters): Use
16688 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16689 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16690 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16691 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
16692 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
16693 statement belongs to a group of strided accesses with the exact code
16694 check.
16695 (vectorizable_load): Likewise.
16696 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
16697 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16698
16699 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
16700
16701 * config/freebsd-stdint.h: New file.
16702 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
16703 Add freebsd-stdint.h to tm_file.
16704
16705 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
16706
16707 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
16708 (thumb2_extendhidi2): Likewise.
16709
16710 2009-05-31 Ian Lance Taylor <iant@google.com>
16711
16712 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
16713
16714 2009-05-31 Ian Lance Taylor <iant@google.com>
16715
16716 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
16717 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
16718 (ipa-reference.o): Depend upon gt-ipa-reference.h.
16719
16720 2009-05-31 Jason Merrill <jason@redhat.com>
16721
16722 * tree-pretty-print.c (print_call_name): Take the callee, not the
16723 call itself. Make non-static. Use dump_function_name for functions.
16724 (dump_generic_node): Adjust.
16725 * diagnostic.h: Declare print_call_name.
16726 * gimple-pretty-print.c (dump_gimple_call): Use it.
16727
16728 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
16729
16730 * config/sh/sh.md (ashldi3_std): New define_expand.
16731 (ashldi3): Use it.
16732
16733 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
16734
16735 PR target/40313
16736 * config/sh/sh.c: Include debug.h.
16737 (sh_expand_epilogue): Emit a blockage insn before the frame
16738 pointer adjustment also when dwarf2out_do_frame returns true.
16739
16740 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
16741
16742 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
16743 (thumb2_extendqidi2): New pattern.
16744
16745 2009-05-31 Ira Rosen <irar@il.ibm.com>
16746
16747 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16748 mark phis for renaming.
16749 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
16750 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
16751 Call mark_sym_for_renaming.
16752 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
16753 * tree-vect-loop.c (vect_transform_loop): Remove
16754 vect_memsyms_to_rename initialization and a call to
16755 mark_set_for_renaming.
16756
16757 2009-05-31 Jakub Jelinek <jakub@redhat.com>
16758
16759 PR middle-end/40304
16760 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
16761 frame related even if !set_cfa && style < 0.
16762
16763 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
16764
16765 * config/i386/mingw-tls.c: New file.
16766 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
16767 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
16768 defining _WIN32 but not __CYGWIN__.
16769
16770 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16771
16772 * configure.ac: Add MPC support.
16773
16774 * config.in, configure: Regenerate.
16775
16776 2009-05-29 Richard Henderson <rth@redhat.com>
16777
16778 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
16779 NOTE_INSN_BASIC_BLOCK.
16780 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
16781 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
16782 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
16783 to be deleted.
16784 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
16785 add in_use field.
16786 (add_cfi): Disable check redefining cfa away from drap.
16787 (lookup_cfa_1): Add remember argument; handle remember/restore.
16788 (lookup_cfa): Pass remember argument.
16789 (cfa_remember): New.
16790 (compute_barrier_args_size_1): Remove sibcall check.
16791 (dwarf2out_frame_debug_def_cfa): New.
16792 (dwarf2out_frame_debug_adjust_cfa): New.
16793 (dwarf2out_frame_debug_cfa_offset): New.
16794 (dwarf2out_frame_debug_cfa_register): New.
16795 (dwarf2out_frame_debug_cfa_restore): New.
16796 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
16797 (dwarf2out_begin_epilogue): New.
16798 (dwarf2out_frame_debug_restore_state): New.
16799 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
16800 DW_CFA_restore_state.
16801 (output_cfi_directive): Likewise.
16802 (convert_cfa_to_fb_loc_list): Likewise.
16803 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
16804 * dwarf2out.h: Update.
16805 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
16806 (copy_insn_1): Early out for null.
16807 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
16808 and dwarf2out_frame_debug_restore_state.
16809 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
16810 (prologue_insn_hash, epilogue_insn_hash): New.
16811 (free_after_compilation): Adjust freeing accordingly.
16812 (record_insns): Create hash table if needed; push insns into
16813 hash instead of array.
16814 (maybe_copy_epilogue_insn): New.
16815 (contains): Search hash table instead of array.
16816 (sibcall_epilogue_contains): Remove.
16817 (thread_prologue_and_epilogue_insns): Split eh_return insns
16818 and mark them as epilogues.
16819 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
16820 scanning in terms of basic blocks.
16821 * insn-notes.def (CFA_RESTORE_STATE): New.
16822 * jump.c (returnjump_p_1): Accept EH_RETURN.
16823 (eh_returnjump_p_1, eh_returnjump_p): New.
16824 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
16825 CFA_REGISTER, CFA_RESTORE): New.
16826 * rtl.def (EH_RETURN): New.
16827 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
16828
16829 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
16830 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
16831
16832 * config/i386/i386.c (gen_push): Update cfa state.
16833 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
16834 add a CFA_ADJUST_CFA note.
16835 (ix86_dwarf_handle_frame_unspec): Remove.
16836 (ix86_expand_prologue): Update cfa state.
16837 (ix86_emit_restore_reg_using_pop): New.
16838 (ix86_emit_restore_regs_using_pop): New.
16839 (ix86_emit_leave): New.
16840 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
16841 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
16842 * config/i386/i386.h (struct machine_cfa_state): New.
16843 (ix86_cfa_state): New.
16844 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
16845 (eh_return_internal): Merge from eh_return_<mode>,
16846 use eh_return rtx, split w/ epilogue.
16847
16848 2009-05-29 Ian Lance Taylor <iant@google.com>
16849
16850 * builtins.c (validate_gimple_arglist): Don't use va_arg with
16851 enum type.
16852 * calls.c (emit_library_call_value_1): Likewise.
16853
16854 * c-typeck.c (c_build_va_arg): New function.
16855 * c-tree.h (c_build_va_arg): Declare.
16856 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
16857 instead of build_va_arg.
16858
16859 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
16860
16861 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
16862 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
16863 (ptr_difference_cost): Use affine combinations to compute it.
16864 (difference_cost): Likewise.
16865 (get_computation_cost_at): Compute more accurate cost for addresses
16866 if the ratio is a multiplier allowed in addresses.
16867 For non-addresses, consider that an additional offset or symbol is
16868 added only once.
16869
16870 2009-05-29 Jakub Jelinek <jakub@redhat.com>
16871
16872 * config/i386/i386.c (ix86_decompose_address): Avoid useless
16873 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
16874
16875 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
16876 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
16877 (prefix_rex): For UNIT_MMX don't imply the prefix by default
16878 if MODE_DI.
16879 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
16880 to 1 for TYPE_SSE{IADD1,CVT1}.
16881 (prefix_vex_imm8): Removed.
16882 (length_vex): Only pass 1 as second argument to
16883 ix86_attr_length_vex_default if prefix_extra is 0.
16884 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
16885 (length): For prefix vex computation use length_immediate
16886 attribute instead of prefix_vex_imm8.
16887 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
16888 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
16889 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
16890 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
16891 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
16892 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
16893 a space in between the operands.
16894 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
16895 if one operand is 0xff and the other one si, di, bp or sp.
16896 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
16897 other one si, di, bp or sp.
16898 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
16899 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
16900 type and mode attributes.
16901 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
16902 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
16903 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
16904 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
16905 prefix_data16 attribute iff MODE_DF.
16906 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
16907 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
16908 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
16909 constm128_operand in length_immediate computation.
16910 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
16911 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
16912 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
16913 length_immediate attribute to 1.
16914 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
16915 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
16916 for certain alternatives.
16917 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
16918 prefix_data16 attribute if MODE_V1DF.
16919 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
16920 length_immediate to 1.
16921 (set_got_rex64, set_rip_rex64): Remove length attribute, set
16922 length_address to 4, set mode attribute to MODE_DI.
16923 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
16924 (fxam<mode>2_i387): Set length attribute to 4.
16925 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
16926 *prefetch_3dnow_rex): Override length_address attribute.
16927 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
16928 attributes.
16929 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
16930 (constm128_operand): Removed.
16931 * config/i386/i386.c (memory_address_length): For
16932 disp && !index && !base in 64-bit mode account for SIB byte if
16933 print_operand_address can't optimize disp32 into disp32(%rip)
16934 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
16935 for fs: or gs: segment.
16936 (ix86_attr_length_immediate_default): When checking if shortform
16937 is possible, truncate immediate to the length of the non-shortened
16938 immediate.
16939 (ix86_attr_length_address_default): Ignore MEM_P operands
16940 with X constraint.
16941 (ix86_attr_length_vex_default): Only check for DImode on
16942 GENERAL_REG_P operands.
16943 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
16944 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
16945 (sse_cvttps2pi): Clear prefix_rep attribute.
16946 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
16947 attribute.
16948 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
16949 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
16950 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
16951 iff operand 2 is const_int_operand.
16952 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
16953 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
16954 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
16955 instead of vex.
16956 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
16957 prefix_data16.
16958 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
16959 prefix_data16 attribute for movlpd and movhpd instructions.
16960 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
16961 length_immediate for shufpd instruction.
16962 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
16963 (avx_cmpp<avxmodesuffixf2c><mode>3,
16964 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
16965 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
16966 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
16967 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
16968 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
16969 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
16970 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
16971 prefix_data16 attribute for the first alternative to 1.
16972 (*avx_loadlps): Override length_immediate for the first alternative.
16973 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
16974 attributes for second alternative.
16975 (*vec_concatv2sf_sse4_1): Override length_immediate and
16976 prefix_data16 attributes for second alternative.
16977 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
16978 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
16979 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
16980 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
16981 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
16982 prefix_data16 and length_immediate to 1.
16983 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
16984 to 1.
16985 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
16986 prefix_extra attribute for variants that don't have 0f prefix alone.
16987 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
16988 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
16989 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
16990 *sse4_1_pextrd): Set length_immediate to 1.
16991 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
16992 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
16993 to 1.
16994 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
16995 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
16996 length_immediate to 1 for second alternative.
16997 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
16998 prefix_extra and length_immediate attributes for the first
16999 alternative.
17000 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
17001 first alternative.
17002 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
17003 to 1 for the first and third alternative.
17004 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
17005 alternative.
17006 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
17007 attribute.
17008 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
17009 attribute to 0.
17010 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
17011 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
17012 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
17013 *avx_psign<mode>3): Set prefix_extra attribute to 1.
17014 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
17015 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
17016 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
17017 ssse3_psign<mode>3): Override prefix_rex attribute.
17018 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
17019 (ssse3_palignrti): Override length_immediate to 1.
17020 (ssse3_palignrdi): Override length_immediate to 1, override
17021 prefix_rex attribute.
17022 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
17023 (sse4a_extrqi): Override length_immediate to 2.
17024 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
17025 (sse4a_insertq): Override prefix_data16 to 0.
17026 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
17027 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
17028 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
17029 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
17030 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
17031 and length_immediate to 1.
17032 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
17033 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
17034 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
17035 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
17036 and length_immediate to 1.
17037 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
17038 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
17039 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
17040 avx_ptest256): Override prefix_extra to 1.
17041 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
17042 Override prefix_data16 and length_immediate to 1.
17043 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
17044 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
17045 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
17046 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
17047 prefix_data16 to 0 and prefix_extra to 2.
17048 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
17049 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
17050 attribute.
17051 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
17052 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
17053 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
17054 and prefix_extra to 2.
17055 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
17056 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
17057 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
17058 avx_vpermilvar<mode>3,
17059 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
17060 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
17061 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
17062 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
17063 Override prefix_extra to 1.
17064 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
17065 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
17066 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
17067 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
17068 prefix_extra and length_immediate to 1.
17069 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
17070 modrm to 0.
17071 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
17072 to 1 for the first alternative.
17073 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
17074 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
17075 cases.
17076 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
17077 *movv2sf_internal_avx, *movv2sf_internal): Override
17078 prefix_rep attribute for certain alternatives.
17079 (*mov<mode>_internal): Override prefix_rep or prefix_data16
17080 attributes for certain alternatives.
17081 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
17082 attributes for certain alternatives.
17083 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
17084 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
17085 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
17086 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
17087 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
17088 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
17089 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
17090 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
17091 length_immediate to 1 if operand 2 is const_int_operand.
17092 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
17093 *vec_extractv2si_1): Set length_immediate attribute to 1.
17094 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
17095 using old 3DNOW insn rather than SSE/3DNOW_A.
17096 (mmx_emms, mmx_femms): Clear modrm attribute.
17097
17098 2009-05-29 Martin Jambor <mjambor@suse.cz>
17099
17100 * tree-sra.c: New implementation of SRA.
17101
17102 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
17103 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
17104 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
17105 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
17106 (SRA_MAX_STRUCTURE_COUNT): Removed.
17107 (SRA_FIELD_STRUCTURE_RATIO): Removed.
17108 * doc/invoke.texi (sra-max-structure-size): Removed.
17109 (sra-field-structure-ratio): Removed.
17110
17111 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17112
17113 PR middle-end/40291
17114 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
17115 before expansion.
17116
17117 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
17118
17119 PR rtl-optimization/40101
17120 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
17121 seqno. Adjust comment.
17122 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
17123 inserting bookkeeping before a jump, the jump is not scheduled.
17124 When no positive seqno found, provide a value. Add comment.
17125
17126 2009-05-29 Richard Guenther <rguenther@suse.de>
17127
17128 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17129 short-cutting on the first component.
17130
17131 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17132
17133 PR middle-end/39958
17134 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17135 for trees other than decls/types.
17136
17137 2009-05-29 Richard Guenther <rguenther@suse.de>
17138
17139 * tree-ssa-operands.c (get_expr_operands): Do not handle
17140 INDIRECT_REFs in the handled-component case. Remove
17141 unused get_ref_base_and_extent case.
17142 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17143 tree_low_cst and host_integerp where possible.
17144 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17145 codes for equivalence.
17146 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17147
17148 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
17149
17150 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
17151 to tmake_file for i[34567]86-*-cygwin*.
17152
17153 2009-05-29 Jakub Jelinek <jakub@redhat.com>
17154
17155 PR target/40017
17156 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17157 (altivec_categorize_keyword, init_vector_keywords,
17158 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17159 similar to bool.
17160
17161 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
17162
17163 * tree.c (handle_dll_attribute): Check if node is
17164 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17165
17166 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
17167
17168 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17169 component.
17170 (thumb2_zero_extendqidi2): Likewise.
17171
17172 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
17173
17174 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17175 instead of gen_movrt.
17176 * config/sh/sh.md (movrt): Remove.
17177
17178 2009-05-28 Steve Ellcey <sje@cup.hp.com>
17179
17180 * doc/invoke.texi (IA-64 Options):
17181 Add -msdata, -mfused-madd, -mno-inline-float-divide,
17182 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17183 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17184 -msched-prefer-non-control-spec-insns,
17185 -msched-stop-bits-after-every-cycle,
17186 -msched-count-spec-in-critical-path,
17187 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
17188 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
17189 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17190 and -msched-spec-verbose.
17191
17192 2009-05-28 Joseph Myers <joseph@codesourcery.com>
17193
17194 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
17195 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17196 error if used.
17197 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17198
17199 2009-05-28 Richard Guenther <rguenther@suse.de>
17200
17201 * tree-ssa-alias.c (ao_ref_init): New function.
17202 (ao_ref_base): Likewise.
17203 (ao_ref_base_alias_set): Likewise.
17204 (ao_ref_alias_set): Likewise.
17205 (refs_may_alias_p_1): Change signature.
17206 (refs_may_alias_p): Adjust.
17207 (refs_anti_dependent_p): Likewise.
17208 (refs_output_dependent_p): Likewise.
17209 (call_may_clobber_ref_p_1): Change signature.
17210 (call_may_clobber_ref_p): Adjust.
17211 (stmt_may_clobber_ref_p_1): New function split out from ...
17212 (stmt_may_clobber_ref_p): ... here.
17213 (maybe_skip_until): Adjust signature.
17214 (get_continuation_for_phi): Likewise.
17215 (walk_non_aliased_vuses): Likewise.
17216 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17217 (ao_ref_init): Declare.
17218 (ao_ref_base): Likewise.
17219 (ao_ref_alias_set): Likewise.
17220 (stmt_may_clobber_ref_p_1): Likewise.
17221 (walk_non_aliased_vuses): Adjust.
17222 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17223 (get_ref_from_reference_ops): remove.
17224 (vn_reference_lookup_2): Adjust signature.
17225 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
17226 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
17227 (vn_reference_lookup): Adjust.
17228 (vn_reference_insert): Likewise.
17229 (vn_reference_insert_pieces): Adjust signature.
17230 (visit_reference_op_call): Adjust.
17231 * tree-ssa-pre.c (get_expr_type): Simplify.
17232 (phi_translate_1): Adjust.
17233 (compute_avail): Likewise.
17234 (translate_vuse_through_block): Do not re-build trees.
17235 (value_dies_in_block_x): Likewise.
17236 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17237 fields.
17238 (vn_reference_lookup_pieces): Adjust declaration.
17239 (vn_reference_insert_pieces): Likewise.
17240
17241 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
17242
17243 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17244 with checking disabled.
17245
17246 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
17247
17248 PR target/37216
17249
17250 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
17251 macro definition for support of three-operand format aligned
17252 .comm directive in assembler on cygwin/pe/mingw target OS.
17253 * configure: Regenerate.
17254 * config.h: Regenerate.
17255
17256 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
17257 aligned form of .comm directive if -mpe-aligned-commons is in effect.
17258 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
17259
17260 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
17261 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
17262
17263 2009-05-28 Ira Rosen <irar@il.ibm.com>
17264
17265 PR tree-optimization/40254
17266 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17267 in analysis of basic blocks.
17268
17269 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
17270
17271 PR middle-end/33699
17272 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
17273 * target-def.h (TARGET_CONST_ANCHOR): New macro.
17274 (TARGET_INITIALIZER): Use it.
17275 * cse.c (CHEAPER): Move it up to the other macros.
17276 (insert): Rename this ...
17277 (insert_with_costs): ... to this. Add cost parameters. Update
17278 function comment.
17279 (insert): New function. Call insert_with_costs.
17280 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17281 find_reg_offset_for_const, try_const_anchors): New functions.
17282 (cse_insn): Call try_const_anchors. Adjust cost of src_related
17283 when using a const-anchor. Call insert_const_anchors.
17284 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
17285 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17286
17287 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
17288
17289 * tree-inline.c (remap_decls): Enable nonlocalized variables
17290 when not optimizing.
17291
17292 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
17293
17294 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17295 Simplify other tests involving optimize.
17296
17297 2009-05-27 Tom Tromey <tromey@redhat.com>
17298
17299 * unwind-dw2.c (_Unwind_DebugHook): New function.
17300 (uw_install_context): Call _Unwind_DebugHook.
17301
17302 2009-05-27 Tom Tromey <tromey@redhat.com>
17303
17304 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17305
17306 2009-05-27 Ian Lance Taylor <iant@google.com>
17307
17308 * Makefile.in (LINKER, LINKER_FLAGS): Define.
17309 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17310 (ALL_LINKERFLAGS): Define.
17311 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17312 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17313 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17314 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17315 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17316 $(LINKER_FOR_BUILD).
17317 (build/gcov-iov$(build_exeext)): Likewise.
17318
17319 2009-05-27 Julian Brown <julian@codesourcery.com>
17320
17321 * gcse.c (target.h): Include.
17322 (can_assign_to_reg_without_clobbers_p): Check that the target allows
17323 copy of argument to a pseudo register.
17324
17325 2009-05-27 Diego Novillo <dnovillo@google.com>
17326
17327 * tree-ssa-live.c (dump_scope_block): Document arguments.
17328 (dump_scope_blocks): Document.
17329 (debug_scope_blocks): New.
17330 * tree-flow.h (debug_scope_blocks): Declare.
17331
17332 2009-05-21 Denis Chertykov <denisc@overta.ru>
17333
17334 * doc/contrib.texi (Contributors): Add myself to the list.
17335
17336 2009-05-27 Olivier Hainque <hainque@adacore.com>
17337
17338 * expr.c (target_align): New function. Alignment the TARGET of an
17339 assignment may be assume to have.
17340 (highest_pow2_factor_for_target): Use it instead of relying on
17341 immediate tree attributes of TARGET, not necessarily honored when
17342 intermediate bitfields are involved.
17343
17344 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
17345
17346 PR target/40266
17347 * config/i386/driver-i386.c (host_detect_local_cpu): Support
17348 AVX, SSE4, AES, PCLMUL and POPCNT.
17349
17350 2009-05-27 Diego Novillo <dnovillo@google.com>
17351
17352 * tree-pretty-print.c (dump_location): New.
17353 (dump_generic_node): Call it.
17354 Factor code to handle BLOCK nodes ...
17355 (dump_block_node): ... here.
17356
17357 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
17358
17359 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17360 with it.
17361 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17362 included.
17363 * gcc-plugin.h: Include config.h and system.h.
17364 (IN_GCC): Define if not defined.
17365
17366 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
17367
17368 PR middle-end/40249
17369 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17370 with -fno-inline.
17371
17372 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
17373
17374 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17375 applicable.
17376 * config/m32r/m32r.h: Ditto.
17377 * config/m32r/m32r.md: Ditto.
17378 * config/m32r/predicates.md: Ditto.
17379
17380 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
17381
17382 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17383
17384 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
17385
17386 * doc/plugins.texi
17387 (Loading plugins): typo.
17388 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17389 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17390 (Interacting with the GCC Garbage Collector): Added new section.
17391 (Giving information about a plugin): Added new section for
17392 PLUGIN_INFO.
17393 * ggc.h (ggc_register_root_tab): Added declaration.
17394 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17395 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17396 (register_callback): Improved comment in declaration.
17397 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17398 (extra_root_vec) Added static variable for dynamic roots registration.
17399 (ggc_register_root_tab) Added new routine.
17400 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17401 PLUGIN_GGC_MARKING event.
17402 * ggc-zone.c: Include plugin.h.
17403 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17404 * ggc-page.c: Include plugin.h.
17405 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17406 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17407 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17408 (register_callback): check lack of callbacks for
17409 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17410 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17411 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17412 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17413 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17414 dependency on plugin.h.
17415 (plugin.o): Added dependency on ggc.h...
17416
17417 2009-05-26 Richard Guenther <rguenther@suse.de>
17418
17419 PR middle-end/40248
17420 Revert
17421 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17422 with mismatched comparison modes.
17423
17424 * expr.c (expand_expr_real_1): Expand the operand of a
17425 VIEW_CONVERT_EXPR in its natural mode.
17426
17427 2009-05-26 Ian Lance Taylor <iant@google.com>
17428
17429 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17430 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17431 (ALL_COMPILERFLAGS): Define.
17432 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17433 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17434 (collect2$(exeext), collect2.o): Likewise.
17435 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17436 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17437 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17438 (libbackend.o, intl.o, cppdefault.o): Likewise.
17439 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17440 (build/%.o): Use $(COMPILER_FOR_BUILD).
17441 (build/gen%$(build_exeext)): Likewise.
17442 (build/gcov-iov$(build_exeext)): LIkewise.
17443 * config/t-darwin (darwin.o): Use $(COMPILER).
17444 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17445 * config/t-sol2 (sol2-c.o): Likewise.
17446 (sol2.o): Likewise.
17447 * config/t-vxworks (vxworks.o): Likewise.
17448 * config/x-darwin (host-darwin.o): Likewise.
17449 * config/x-hpux (host-hpux.o): Likewise.
17450 * config/x-linux (host-linux.o): Likewise.
17451 * config/x-solaris (host-solaris.o): Likewise.
17452 * config/alpha/x-alpha (driver-alpha.o): Likewise.
17453 * config/arm/t-arm (arm-c.o): Likewise.
17454 * config/arm/t-pe (pe.o): Likewise.
17455 * config/arm/t-wince-pe (pe.o): Likewise.
17456 * config/i386/t-cygming (winnt.o): Likewise.
17457 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17458 * config/i386/t-cygwin (cygwin1.o): Likewise.
17459 (cygwin2.o): Likewise.
17460 * config/i386/t-i386 (i386-c.o): Likewise.
17461 * config/i386/t-interix (winnt.o): Likewise.
17462 * config/i386/t-netware (netware.o): Likewise.
17463 * config/i386/t-nwld (nwld.o): Likewise.
17464 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17465 * config/i386/x-i386 (driver-i386.o): Likewise.
17466 * config/i386/x-cygwin (host-cygwin.o): Likewise.
17467 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17468 * config/ia64/t-ia64 (ia64-c.o): Likewise.
17469 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17470 * config/mips/x-native (driver-native.o): Likewise.
17471 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17472 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17473 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17474 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17475 * config/score/t-score-elf (score7.o): Likewise.
17476 (score3.o): Likewise.
17477 * config/sh/t-sh (sh-c.o): Likewise.
17478 * config/sh/t-symbian (sh-c.o): Likewise.
17479 (symbian.o): Likewise.
17480 * config/spu/t-spu-elf (spu-c.o): Likewise.
17481 * config/v850/t-v850 (v850-c.o): Likewise.
17482 * config/v850/t-v850e (v850-c.o): Likewise.
17483
17484 2009-05-26 Richard Guenther <rguenther@suse.de>
17485
17486 PR tree-optimization/40122
17487 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17488 VECTOR_CSTs if possible.
17489 (fold_gimple_assign): Likewise.
17490
17491 2009-05-26 Richard Guenther <rguenther@suse.de>
17492
17493 PR middle-end/40252
17494 * fold-const.c (fold_binary): Use the correct types for building
17495 rotates.
17496
17497 2009-05-26 Richard Guenther <rguenther@suse.de>
17498
17499 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17500 redundant calls to merge_alias_info.
17501 (bump_vector_ptr): Likewise.
17502 * tree-ssa-copy.c (merge_alias_info): Remove.
17503 (replace_exp_1): Remove call to merge_alias_info.
17504 (propagate_tree_value): Likewise.
17505 (fini_copy_prop): Propagate points-to info.
17506 * tree-flow.h (merge_alias_info): Remove.
17507
17508 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
17509
17510 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17511
17512 2009-05-25 Jan Hubicka <jh@suse.cz>
17513
17514 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17515 * cgraph.h (struct inline_summary): New filed self_wize,
17516 size_inlining_benefit, self_time and time_inlining_benefit.
17517 (struct cgraph_global_info): Replace insns by time ans size fields.
17518 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17519 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17520 (ipcp_update_callgraph): Do not touch function bodies.
17521 * ipa-inline.c: Include except.h
17522 (MAX_TIME): New constant.
17523 (overall_insns): Remove.
17524 (leaf_node_p): New.
17525 (overall_size, max_benefit): New static variables.
17526 (cgraph_estimate_time_after_inlining): New function.
17527 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17528 (cgraph_clone_inlined_nodes): Update size.
17529 (cgraph_mark_inline_edge): Update size.
17530 (cgraph_estimate_growth): Use size info.
17531 (cgraph_check_inline_limits): Check size.
17532 (cgraph_default_inline_p): Likewise.
17533 (cgraph_edge_badness): Compute badness based on benefit and size cost.
17534 (cgraph_decide_recursive_inlining): Check size.
17535 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17536 and times.
17537 (cgraph_decide_inlining): Likewise.
17538 (cgraph_decide_inlining_incrementally): Likewise; honor
17539 PARAM_EARLY_INLINING_INSNS.
17540 (likely_eliminated_by_inlining_p): New predicate.
17541 (estimate_function_body_sizes): New function.
17542 (compute_inline_parameters): Use it.
17543 * except.c (must_not_throw_labels): New function.
17544 * except.h (must_not_throw_labels): Declare.
17545 * tree-inline.c (init_inline_once): Kill inlining_weigths
17546 * tree-ssa-structalias.c: Avoid uninitialized warning.
17547 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17548 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17549 (PARAM_INLINE_CALL_COST): Remove.
17550 (PARAM_EARLY_INLINING_INSNS): New.
17551
17552 2009-05-25 Richard Guenther <rguenther@suse.de>
17553
17554 PR tree-optimization/36327
17555 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
17556 callback for reference translation or lookup at the point of may-defs.
17557 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17558 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17559 for union COMPONENT_REFs.
17560 (vn_reference_lookup_3): New callback. Lookup from memset
17561 and CONSTRUCTOR assignment, translate through struct copies.
17562 (vn_reference_lookup_pieces): Make sure to not free the
17563 passed operands array. Adjust walk_non_aliased_vuses call.
17564 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17565 make sure we do not leak memory.
17566
17567 2009-05-25 Richard Guenther <rguenther@suse.de>
17568
17569 * tree-ssa-alias.h (dump_points_to_solution): Declare.
17570 * tree-inline.c (expand_call_inline): Reset the escaped and
17571 callused solutions.
17572 * tree-ssa-structalias.c (pass_build_ealias): New.
17573 * tree-pass.h (pass_build_ealias): Declare.
17574 * passes.c (init_optimization_passes): Add PTA during
17575 early optimizations.
17576 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
17577 and CALLUSED solutions.
17578 (dump_points_to_solution): New function, split out from ...
17579 (dump_points_to_info_for): ... here.
17580 * tree-parloops.c (parallelize_loops): Reset the escaped and
17581 callused solutions.
17582
17583 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17584
17585 PR bootstrap/40027
17586 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
17587 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
17588
17589 2009-05-25 Ira Rosen <irar@il.ibm.com>
17590
17591 PR tree-optimization/40238
17592 * tree-vect-stmts.c (vect_init_vector): Insert initialization
17593 statements after basic block's labels.
17594 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
17595 to free the allocated memory.
17596
17597 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
17598
17599 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
17600 return address with a USE.
17601
17602 2009-05-24 Richard Guenther <rguenther@suse.de>
17603
17604 PR middle-end/40233
17605 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
17606 array type from the main variant of the inner type.
17607
17608 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17609
17610 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
17611 definition to bool (from int) to un-break build.
17612 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
17613
17614 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
17615
17616 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
17617 discard_stmt_changes): Delete.
17618 * tree-ssa-operands.c (scb_stack): Delete.
17619 (init_ssa_operands): Do not initialize it.
17620 (fini_ssa_operands): Do not free it.
17621 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
17622
17623 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
17624 update_stmt, remove the others. Fix comments.
17625 * tree-dfa.c (optimize_stack_restore): Likewise.
17626 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
17627 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
17628 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17629 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
17630 Likewise.
17631 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
17632 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
17633 (dom_opt_finalize_block): Likewise, adjusting access to
17634 stmts_to_rescan.
17635 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
17636 (stmts_to_rescan): Change item type to gimple.
17637 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
17638
17639 2009-05-24 Ira Rosen <irar@il.ibm.com>
17640
17641 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
17642 * tree-pass.h (pass_slp_vectorize): New pass.
17643 * params.h (SLP_MAX_INSNS_IN_BB): Define.
17644 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
17645 * tree-vectorizer.c (timevar.h): Include.
17646 (user_vect_verbosity_level): Declare.
17647 (vect_location): Fix comment.
17648 (vect_set_verbosity_level): Update user_vect_verbosity_level
17649 instead of vect_verbosity_level.
17650 (vect_set_dump_settings): Add an argument. Ignore user defined
17651 verbosity if dump flags require higher level of verbosity. Print to
17652 stderr only for loop vectorization.
17653 (vectorize_loops): Update call to vect_set_dump_settings.
17654 (execute_vect_slp): New function.
17655 (gate_vect_slp): Likewise.
17656 (struct gimple_opt_pass pass_slp_vectorize): New.
17657 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
17658 access its members.
17659 (vec_info_for_bb): New function.
17660 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
17661 (VECTORIZATION_ENABLED): New macro.
17662 (SLP_ENABLED, SLP_DISABLED): Likewise.
17663 (vect_is_simple_use): Add bb_vec_info argument.
17664 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
17665 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
17666 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
17667 vect_schedule_slp, vect_analyze_slp): Likewise.
17668 (vect_analyze_stmt): Add slp_tree argument.
17669 (find_bb_location): Declare.
17670 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17671 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
17672 (vect_analyze_loop_operations, vect_analyze_loop,
17673 get_initial_def_for_induction, vect_create_epilog_for_reduction,
17674 vect_finalize_reduction, vectorizable_reduction,
17675 vectorizable_live_operation, vect_transform_loop): Likewise.
17676 * tree-data-ref.c (dr_analyze_innermost): Update comment,
17677 skip evolution analysis if analyzing a basic block.
17678 (dr_analyze_indices): Likewise.
17679 (initialize_data_dependence_relation): Skip the test whether the
17680 object is invariant for basic blocks.
17681 (compute_all_dependences): Skip dependence analysis for data
17682 references in basic blocks.
17683 (find_data_references_in_stmt): Don't fail in case of invariant
17684 access in basic block.
17685 (find_data_references_in_bb): New function.
17686 (find_data_references_in_loop): Move code to
17687 find_data_references_in_bb and add a call to it.
17688 (compute_data_dependences_for_bb): New function.
17689 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
17690 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
17691 that STEP is 0.
17692 (vect_analyze_data_ref_dependence): Check for interleaving in case of
17693 unknown dependence in basic block and fail in case of dependence in
17694 basic block.
17695 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
17696 dependence instances from either loop or basic block vectorization
17697 info.
17698 (vect_compute_data_ref_alignment): Check if it is loop vectorization
17699 before calling nested_in_vect_loop_p.
17700 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
17701 dependence instances from either loop or basic block vectorization
17702 info.
17703 (vect_verify_datarefs_alignment): Likewise.
17704 (vect_enhance_data_refs_alignment): Adjust function calls.
17705 (vect_analyze_data_refs_alignment): Likewise.
17706 (vect_analyze_group_access): Fix printing. Skip different checks if
17707 DR_STEP is 0. Keep strided stores either in loop or basic block
17708 vectorization data structure. Fix indentation.
17709 (vect_analyze_data_ref_access): Fix comments, allow zero step in
17710 basic blocks.
17711 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
17712 dependence instances from either loop or basic block vectorization
17713 info.
17714 (vect_analyze_data_refs): Update comment. Call
17715 compute_data_dependences_for_bb to analyze basic blocks.
17716 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
17717 case of loop vectorization. In case of basic block vectorization use
17718 data-ref itself as a base.
17719 (vect_create_data_ref_ptr): In case of basic block vectorization:
17720 don't advance the pointer, add new statements before the current
17721 statement. Adjust function calls.
17722 (vect_supportable_dr_alignment): Support only aligned accesses in
17723 basic block vectorization.
17724 * common.opt (ftree-slp-vectorize): New flag.
17725 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
17726 (vect_pattern_recog_1): Likewise.
17727 * tree-vect-stmts.c (process_use): Likewise.
17728 (vect_init_vector): Add new statements in the beginning of the basic
17729 block in case of basic block SLP.
17730 (vect_get_vec_def_for_operand): Adjust function calls.
17731 (vect_finish_stmt_generation): Likewise.
17732 (vectorizable_call): Add assert that it is loop vectorization, adjust
17733 function calls.
17734 (vectorizable_conversion, vectorizable_assignment): Likewise.
17735 (vectorizable_operation): In case of basic block SLP, take
17736 vectorization factor from statement's type and skip the relevance
17737 check. Adjust function calls.
17738 (vectorizable_type_demotion): Add assert that it is loop
17739 vectorization, adjust function calls.
17740 (vectorizable_type_promotion): Likewise.
17741 (vectorizable_store): Check for outer loop only in case of loop
17742 vectorization. Adjust function calls. For basic blocks, skip the
17743 relevance check and don't advance pointers.
17744 (vectorizable_load): Likewise.
17745 (vectorizable_condition): Add assert that it is loop vectorization,
17746 adjust function calls.
17747 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
17748 that it is not reduction, get vector type, call only supported
17749 functions, skip loop specific parts.
17750 (vect_transform_stmt): Check for outer loop only in case of loop
17751 vectorization.
17752 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
17753 (vect_is_simple_use): Fix comment, add new argument, fix conditions
17754 for external definition.
17755 * passes.c (pass_slp_vectorize): New pass.
17756 * tree-vect-slp.c (find_bb_location): New function.
17757 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
17758 check for patterns only in loops.
17759 (vect_build_slp_tree): Add argument, adjust function calls, fail in
17760 case of multiple types in basic block SLP.
17761 (vect_mark_slp_stmts_relevant): New function.
17762 (vect_supported_load_permutation_p): Fix comment.
17763 (vect_analyze_slp_instance): Add argument. In case of basic block
17764 SLP, take vectorization factor from statement's type, check that
17765 unrolling factor is 1. Adjust function call. Save SLP instance in
17766 either loop or basic block vectorization structure. Return FALSE,
17767 if SLP failed.
17768 (vect_analyze_slp): Add argument. Get strided stores groups from
17769 either loop or basic block vectorization structure. Return FALSE
17770 if basic block SLP failed.
17771 (new_bb_vec_info): New function.
17772 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
17773 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
17774 (vect_schedule_slp): Add argument. Get SLP instances from either
17775 loop or basic block vectorization structure. Set vectorization factor
17776 to be 1 for basic block SLP.
17777 (vect_slp_transform_bb): New function.
17778 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
17779
17780 2009-05-23 Mark Mitchell <mark@codesourcery.com>
17781
17782 * final.c (shorten_branches): Do not align labels for jump tables.
17783 (final_scan_insn): Use JUMP_TABLE_DATA_P.
17784
17785 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
17786
17787 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
17788 Remove outdated reference to flow.c and fix nits.
17789 * doc/gccint.texi: Tweak RTL description.
17790 * doc/rtl.texi: Likewise.
17791
17792 2009-05-23 Denis Chertykov <chertykov@gmail.com>
17793
17794 * config/avr/avr.c: Change my email address.
17795 * config/avr/avr.h: Likewise.
17796 * config/avr/avr.md: Likewise.
17797 * config/avr/avr-protos.h: Likewise.
17798 * config/avr/libgcc.S: Likewise.
17799
17800 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
17801
17802 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
17803 (spu_split_load, spu_split_store): Change return type to int.
17804 (spu_split_convert): Declare.
17805 * config/spu/predicates.md (spu_mem_operand): Remove.
17806 (spu_mov_operand): Update.
17807 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
17808 * config/spu/spu.c (regno_aligned_for_load): Remove.
17809 (reg_aligned_for_addr, spu_expand_load): Define.
17810 (spu_expand_extv): Reimplement and handle MEM.
17811 (spu_expand_insv): Handle MEM.
17812 (spu_sched_reorder): Handle insn's with length 0.
17813 (spu_legitimate_address_p): Reimplement.
17814 (store_with_one_insn_p): Return TRUE for any mode with size
17815 larger than 16 bytes.
17816 (address_needs_split): Define.
17817 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
17818 operands.
17819 (spu_convert_move): Define.
17820 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
17821 (spu_split_store): Change all MEM's to TImode.
17822 (spu_init_expanders): Preallocate registers that correspond to
17823 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
17824 mark_reg_pointer.
17825 (spu_split_convert): Define.
17826 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
17827 (_move<mode>, _movdi, _movti): Update predicate and condition.
17828 (load, store): Change to define_split.
17829 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
17830 extend<mode>ti2.
17831 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
17832 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
17833 define_insn_and_split of lshr<mode>3.
17834 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
17835 (<v>ashr<mode>3_imm): Define.
17836 (extv, extzv, insv): Allow MEM operands.
17837 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
17838 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
17839 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
17840 (_spu_convert2): Change to define_insn_and_split and remove the
17841 corresponding define_peephole2.
17842 (stack_protect_set, stack_protect_test, stack_protect_test_si):
17843 Change predicates to memory_operand.
17844
17845 2009-05-22 Mark Mitchell <mark@codesourcery.com>
17846
17847 * config/arm/thumb2.md: Add 16-bit multiply instructions.
17848
17849 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17850
17851 PR tree-optimization/40219
17852 * tree.c (iterative_hash_expr): Make sure the builtin function is
17853 a normal builtin function and not a front end or back end builtin
17854 before indexing into the built_in_decls array.
17855
17856 2009-05-22 Richard Guenther <rguenther@suse.de>
17857
17858 PR middle-end/38964
17859 * alias.c (write_dependence_p): Do not use TBAA for answering
17860 anti-dependence or output-dependence.
17861 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
17862 (emit_pointer_definition): Remove.
17863 (emit_alias_warning): Likewise.
17864 (find_what_var_points_to): Remove TBAA pruning code.
17865 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
17866 violations.
17867 (compute_points_to_sets): Remove code computing the set of
17868 dereferenced pointers.
17869 * tree-data-ref.c (dr_may_alias_p): Properly use the split
17870 oracle for querying anti and output dependencies.
17871 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
17872 if TBAA may be applied.
17873 (refs_anti_dependent_p): New function.
17874 (refs_output_dependent_p): Likewise.
17875 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
17876 (refs_output_dependent_p): Likewise.
17877 * doc/tree-ssa.texi (Memory model): New section.
17878 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17879 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17880 * cfgexpand.c (expand_gimple_basic_block): Do not handle
17881 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
17882 * expr.c (expand_expr_real_1): Likewise.
17883 * gimple-low.c (lower_stmt): Likewise.
17884 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
17885 (dump_gimple_cdt): Remove.
17886 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17887 (gimple_size): Likewise.
17888 (walk_gimple_op): Likewise.
17889 (is_gimple_stmt): Likewise.
17890 (walk_stmt_load_store_addr_ops): Likewise.
17891 (gimple_build_cdt): Remove.
17892 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17893 * gimple.h (gimple_cdt_new_type): Remove.
17894 (gimple_cdt_new_type_ptr): Likewise.
17895 (gimple_cdt_set_new_type): Likewise.
17896 (gimple_cdt_location): Likewise.
17897 (gimple_cdt_location_ptr): Likewise.
17898 (gimple_cdt_set_location): Likewise.
17899 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17900 * tree-cfg.c (remove_useless_stmts_1): Do not handle
17901 GIMPLE_CHANGE_DYNAMIC_TYPE.
17902 (verify_types_in_gimple_stmt): Likewise.
17903 * tree-inline.c (estimate_num_insns): Likewise.
17904 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
17905 (copy_decl_to_var): Likewise.
17906 (copy_result_decl_to_var): Likewise.
17907 * tree-pretty-print.c (dump_generic_node): Do not handle
17908 CHANGE_DYNAMIC_TYPE_EXPR.
17909 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17910 * tree-ssa-operands.c (get_expr_operands): Likewise.
17911 * tree-ssa-structalias.c (struct variable_info): Remove
17912 no_tbaa_pruning member.
17913 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
17914 (unify_nodes): Do not copy it.
17915 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17916 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
17917 (set_uids_in_ptset): Do not check it.
17918 (find_what_var_points_to): Likewise.
17919 (compute_tbaa_pruning): Remove.
17920 (compute_points_to_sets): Do not call it.
17921 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17922 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17923 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
17924 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
17925 (DECL_NO_TBAA_P): Likewise.
17926 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
17927 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
17928 (expand_omp_atomic_pipeline): Do not set it.
17929 * print-tree.c (print_node): Do not dump it.
17930 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
17931 redundant check.
17932
17933 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
17934
17935 PR target/39856
17936 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
17937 for clobber.
17938
17939 2009-05-22 Mark Mitchell <mark@codesourcery.com>
17940
17941 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
17942 non-external.
17943
17944 2009-05-22 Ben Elliston <bje@au.ibm.com>
17945
17946 * Makefile.in (bversion.h, s-bversion): New targets.
17947 (TOPLEV_H): Add bversion.h.
17948 * toplev.h: Include "bversion.h".
17949 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
17950 the __format__ attribute only if compiling with the same version
17951 of GCC as the sources (the "build version").
17952
17953 2009-05-22 Ben Elliston <bje@au.ibm.com>
17954
17955 * c-format.c (handle_format_attribute): Fix comment typo.
17956
17957 2009-05-21 Steve Ellcey <sje@cup.hp.com>
17958
17959 PR target/37846
17960 * config/ia64/ia64.opt (mfused-madd): New.
17961 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
17962 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
17963 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
17964 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
17965 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
17966 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
17967 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
17968 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
17969 instruction if !TARGET_FUSED_MADD.
17970 (fpma, fpms): Remove colon from name.
17971
17972 2009-05-22 Richard Guenther <rguenther@suse.de>
17973
17974 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
17975 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
17976 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17977 TARGET_MEM_REF.
17978 (create_expression_by_pieces): Only convert if necessary.
17979 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
17980 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
17981
17982 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
17983
17984 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
17985 regular pattern from a template and rename it ...
17986 (*extzv_truncsi_exts): ... to this.
17987
17988 2009-05-21 Richard Guenther <rguenther@suse.de>
17989
17990 * cgraph.h (struct cgraph_node): Remove inline_decl member.
17991 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
17992 (cgraph_default_inline_p): Likewise.
17993 (cgraph_decide_inlining_incrementally): Likewise.
17994
17995 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
17996 Uros Bizjak <ubizjak@gmail.com>
17997
17998 * config/i386/cpuid.h (bit_MOVBE): New.
17999
18000 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
18001
18002 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
18003 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
18004 (ix86_handle_option): Handle OPT_mmovbe.
18005 (ix86_target_string): Add -mmovbe.
18006 (pta_flags): Add PTA_MOVBE.
18007 (processor_alias_table): Add PTA_MOVBE to "atom".
18008 (override_options): Handle PTA_MOVBE.
18009
18010 * config/i386/i386.h (TARGET_MOVBE): New.
18011
18012 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
18013 (*bswapsi_movbe): New.
18014 (*bswapdi_movbe): Likewise.
18015 (bswapdi2): Renamed to ...
18016 (*bswapdi_1): This.
18017 (bswapdi2): New expander.
18018
18019 * config/i386/i386.opt (mmovbe): New.
18020
18021 * doc/invoke.texi: Document -mmovbe.
18022
18023 2009-05-21 Taras Glek <tglek@mozilla.com>
18024
18025 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
18026 * gcc-plugin.h (plugin_init): Updated signature.
18027 * gcc-plugin.h (plugin_name_args): Moved to this header.
18028 * doc/plugins.texi (plugin_init): Updated documention to reflect
18029 API change.
18030 * doc/plugins.texi (plugin_name_args): Added to documention.
18031
18032 2009-05-21 Mark Mitchell <mark@codesourcery.com>
18033
18034 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
18035 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
18036
18037 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
18038
18039 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
18040 JUMP_TABLE_DATA_P predicates where applicable.
18041 * config/i386/predicates.md: Ditto.
18042 * config/i386/sse.md: Ditto.
18043
18044 2009-05-21 Jakub Jelinek <jakub@redhat.com>
18045
18046 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
18047 operand2 -128 override length_immediate attribute to 1.
18048 * config/i386/predicates.md (constm128_operand): New predicate.
18049
18050 * config/i386/i386.c (memory_address_length): Handle %r12
18051 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
18052 also check REGNO.
18053 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
18054 mode look through optional ZERO_EXTEND and SUBREG.
18055 * config/i386/i386.md (R12_REG): New define_constant.
18056 (prefix_data16): For sse unit set also for MODE_TI insns.
18057 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
18058 insns set if operand 1 is ext_QIreg_operand.
18059 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
18060 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
18061 immediate.
18062 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
18063 mode from MODE_DI to MODE_SI.
18064 (movdi_1_rex64): Override modrm and length_immediate attributes
18065 only for movabs (TYPE_IMOV, alternative 2).
18066 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
18067 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18068 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18069 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18070 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
18071 prefix_rex attribute if DImode.
18072 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
18073 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
18074 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
18075 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
18076 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
18077 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
18078 Likewise. For TYPE_IMOV clear length_immediate attribute.
18079 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
18080 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
18081 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
18082 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
18083 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
18084 or one operand TYPE_ISHIFT.
18085 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
18086 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
18087 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
18088 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
18089 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
18090 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
18091 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
18092 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
18093 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
18094 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
18095 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
18096 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
18097 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
18098 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
18099 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
18100 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
18101 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
18102 set mode attribute, don't override length attribute.
18103 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
18104 to 1.
18105 (return_internal_long): Set length attribute to 2 instead of 1.
18106 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
18107 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
18108 prefix_rex attribute.
18109 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
18110 New predicates.
18111 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
18112
18113 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18114
18115 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
18116
18117 2009-05-20 Ian Lance Taylor <iant@google.com>
18118
18119 * tree.c (build_tree_list_vec_stat): New function.
18120 (ctor_to_vec): New function.
18121 (build_nt_call_vec): New function.
18122 (build_call_array): Change args to be a const pointer.
18123 (build_call_vec): New function.
18124 * tree.h (build_nt_call_vec): Declare.
18125 (build_tree_list_vec_stat): Declare.
18126 (build_tree_list_vec): Define.
18127 (build_call_array): Update declaration.
18128 (build_call_vec): Declare.
18129 (ctor_to_vec): Declare.
18130 * c-common.c (tree_vector_cache): New static variable.
18131 (make_tree_vector): New function.
18132 (release_tree_vector): New function.
18133 (make_tree_vector_single): New function.
18134 (make_tree_vector_copy): New function.
18135 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18136 (make_tree_vector_single, make_tree_vector_copy): Declare.
18137 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18138 (c_parser_expr_list): Don't manage cache here, instead call
18139 make_tree_vector.
18140 (c_parser_release_expr_list): Remove static function.
18141 (c_parser_vec_to_tree_list): Remove static function.
18142 (c_parser_attributes): Call build_tree_list_vec instead of
18143 c_parser_vec_to_tree_list. Call release_tree_vector instead of
18144 c_parser_release_expr_list.
18145 (c_parser_postfix_expression_after_primary): Likewise.
18146 (c_parser_objc_keywordexpr): Likewise.
18147
18148 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
18149
18150 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18151 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18152 TARGET_CONVERT_TO_TYPE.
18153 * hooks.c (hook_tree_const_tree_null): Define.
18154 * hooks.h (hook_tree_const_tree_null): Declare.
18155 * target.h (struct gcc_target): Add invalid_parameter_type,
18156 invalid_return_type, promoted_type, and convert_to_type fields.
18157 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
18158 (TARGET_INVALID_RETURN_TYPE): Define.
18159 (TARGET_PROMOTED_TYPE): Define.
18160 (TARGET_CONVERT_TO_TYPE): Define.
18161 (TARGET_INITIALIZER): Update for new fields.
18162 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18163 (grokparms): Check targetm.invalid_parameter_type.
18164 * c-typeck.c (default_conversion): Check targetm.promoted_type.
18165 * c-convert.c (convert): Check targetm.convert_to_type.
18166
18167 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
18168
18169 * config/mips/mips.md (*extenddi_truncate<mode>,
18170 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
18171 defintions.
18172 (*extendhi_truncateqi): New define_insn_and_sptit.
18173
18174 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18175
18176 PR middle-end/40204
18177 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
18178 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
18179
18180 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
18181
18182 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18183 the operand of VIEW_CONVERT_EXPR.
18184
18185 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
18186
18187 * config/i386/driver-i386.c (host_detect_local_cpu): Check
18188 extended family and model for Intel processors. Support Intel Atom.
18189
18190 2009-05-20 Olivier Hainque <hainque@adacore.com>
18191
18192 * gstab.h (stab_code_type): Define, to be used instead of the
18193 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
18194 notice.
18195 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18196 occurrences by stab_code_type.
18197 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18198
18199 2009-05-20 Martin Jambor <mjambor@suse.cz>
18200
18201 * tree-flow.h (insert_edge_copies_seq): Undeclare.
18202 (sra_insert_before): Likewise.
18203 (sra_insert_after): Likewise.
18204 (sra_init_cache): Likewise.
18205 (sra_type_can_be_decomposed_p): Likewise.
18206 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18207 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18208 (sra_insert_before): Likewise.
18209 (sra_insert_after): Likewise.
18210 (sra_init_cache): Likewise.
18211 (insert_edge_copies_seq): Made static and moved upwards.
18212
18213 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18214 case.
18215
18216 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18217
18218 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18219 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18220 simple copies.
18221
18222 2009-05-20 Richard Guenther <rguenther@suse.de>
18223
18224 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18225 with mismatched comparison modes.
18226
18227 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18228
18229 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
18230 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18231 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18232 with shifts for Thumb2.
18233 (orsi_notsi): New for orn.
18234 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18235 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18236 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18237 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18238 Don't invert remainder for IOR.
18239
18240 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
18241
18242 PR tree-optimization/40087
18243 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18244 number_of_iterations_ne): Rename never_infinite argument.
18245 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18246 number_of_iterations_le): Handle pointer-type ivs when
18247 exit_must_be_taken is false.
18248 (number_of_iterations_cond): Do not always assume that
18249 exit_must_be_taken if the control variable is a pointer.
18250
18251 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
18252
18253 * c-typeck.c (build_binary_op): Allow % on integal vectors.
18254 * doc/extend.texi (Vector Extension): Document that % is allowed too.
18255
18256 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
18257
18258 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18259 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18260
18261 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18262
18263 PR c/40172
18264 * c.opt (Wlogical-op): Disabled by default.
18265 * c-opt (c_common_post_options): Do not enable Wlogical-op with
18266 Wextra.
18267 * doc/invoke.texi (Wlogical-op): Likewise.
18268
18269 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
18270
18271 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18272 into CASE_CONVERT.
18273 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18274 Propagate the type of the first operand.
18275 <ASSERT_EXPR>: Simplify.
18276 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18277 Rewrite using the RHS code as discriminant.
18278 <NOP_EXPR>: Turn into CASE_CONVERT.
18279 <PLUS_EXPR>: Propagate the type of the first operand.
18280
18281 2009-05-19 Steve Ellcey <sje@cup.hp.com>
18282
18283 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18284 (ia64_dconst_0_375): New.
18285 * config/ia64/ia64.c (ia64_override_options): Remove
18286 -minline-sqrt-min-latency warning.
18287 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18288 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18289 * config/ia64/ia64.md (*sqrt_approx): Remove.
18290 (sqrtsf2): Remove #if 0.
18291 (sqrtsf2_internal_thr): Rewrite and move to div.md.
18292 (sqrtdf): Remove assert.
18293 (sqrtdf2_internal_thr): Rewrite and move to div.md.
18294 (sqrtxf2): Remove #if 0.
18295 (sqrtxf2_internal_thr): Rewrite and move to div.md.
18296 * div.md (sqrt_approx_rf): New.
18297 (sqrtsf2_internal_thr): New implementation.
18298 (sqrtsf2_internal_lat): New.
18299 (sqrtdf2_internal_thr: New implementation.
18300 (sqrtxf2_internal): New implementation.
18301
18302 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
18303 Hans-Peter Nilsson <hp@axis.com>
18304
18305 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18306 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18307 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18308 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18309 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18310 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18311 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18312 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18313 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18314 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18315 * c-common.c: ...from here.
18316
18317 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18318
18319 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
18320
18321 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18322
18323 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
18324
18325 2009-05-19 Ben Elliston <bje@au.ibm.com>
18326
18327 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
18328 assignments with memcpy calls.
18329 (add_fdes): Likewise.
18330 (binary_search_unencoded_fdes): Likewise.
18331 (linear_search_fdes): Eliminate type puns.
18332
18333 2009-05-19 Richard Guenther <rguenther@suse.de>
18334
18335 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
18336 not falsely claim to have propagated into all uses.
18337
18338 2009-05-19 Ben Elliston <bje@au.ibm.com>
18339
18340 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
18341 version to v3.0.
18342
18343 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18344
18345 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18346 * config/sh/sh.c (sh_legitimate_address_p): Make static.
18347 (TARGET_LEGITIMATE_ADDRESS_P): New.
18348 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18349 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18350
18351 2009-05-18 Dodji Seketeli <dodji@redhat.com>
18352
18353 PR debug/40109
18354 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18355 child of the containing namespace's DIE.
18356
18357 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
18358
18359 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18360 *zero_extendhi_truncqi): Move after the zero_extend patterns.
18361 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18362 extend patterns.
18363
18364 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
18365
18366 PR target/39942
18367 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18368 gen_align with gen_pad.
18369 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18370 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18371
18372 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18373 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18374
18375 * config/i386/i386.md (align): Renamed to ...
18376 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18377 ASM_OUTPUT_MAX_SKIP_PAD.
18378
18379 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
18380
18381 * config.gcc: Fix variable syntax.
18382
18383 PR target/39531
18384 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18385 before calling exact_log2.
18386 (output_iorsi3): Likewise.
18387 (output_xorsi3): Likewise.
18388
18389 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
18390
18391 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18392 for the none zero constant operand except for EQ and NE
18393 comprisons even when the first operand is R0.
18394
18395 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
18396
18397 * config/s390/2064.md: Remove trailing whitespaces.
18398 * config/s390/2084.md: Likewise.
18399 * config/s390/constraints.md: Likewise.
18400 * config/s390/fixdfdi.h: Likewise.
18401 * config/s390/libgcc-glibc.ver: Likewise.
18402 * config/s390/s390-modes.def: Likewise.
18403 * config/s390/s390-protos.h: Likewise.
18404 * config/s390/s390.c: Likewise.
18405 * config/s390/s390.h: Likewise.
18406 * config/s390/s390.md: Likewise.
18407 * config/s390/tpf-unwind.h: Likewise.
18408
18409 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18410
18411 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18412
18413 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18414
18415 M68K TLS support.
18416 * configure.ac (m68k-*-*): Check if binutils support TLS.
18417 * configure: Regenerate.
18418 * config/m68k/predicates.md (symbolic_operand): Extend comment.
18419 * config/m68k/constraints.md (Cu): New constraint.
18420 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18421 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18422 (movsi): Handle TLS symbols.
18423 (addsi3_5200): Handle XTLS symbols, indent.
18424 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18425 (m68k_tls_reference_p): Declare.
18426 (m68k_legitimize_address): Declare.
18427 (m68k_unwrap_symbol): Declare.
18428 * config/m68k/m68k.opt (mxtls): New option.
18429 * config/m68k/m68k.c (ggc.h): Include.
18430 (m68k_output_dwarf_dtprel): Implement hook.
18431 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18432 (m68k_expand_prologue): Load GOT pointer when function needs it.
18433 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18434 (m68k_legitimate_constant_address_p): Same.
18435 (m68k_decompose_address): Handle TLS references.
18436 (m68k_get_gp): New static function.
18437 (enum m68k_reloc): New contants.
18438 (TLS_RELOC_P): New macro.
18439 (m68k_wrap_symbol): New static function.
18440 (m68k_unwrap_symbol): New function.
18441 (m68k_final_prescan_insn_1): New static function.
18442 (m68k_final_prescan_insn): New function.
18443 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18444 functions.
18445 (legitimize_pic_address): Handle TLS references..
18446 (m68k_tls_get_addr, m68k_get_tls_get_addr)
18447 (m68k_libcall_value_in_a0_p)
18448 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18449 (m68k_call_m68k_read_tp): Helper variables and functions for ...
18450 (m68k_legitimize_tls_address): Handle TLS references.
18451 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18452 New functions.
18453 (m68k_legitimize_address): Handle TLS symbols.
18454 (m68k_get_reloc_decoration): New static function.
18455 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18456 UNSPEC_RELOC32.
18457 (m68k_output_dwarf_dtprel): Implement hook.
18458 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18459 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18460 m68k_call_* routines.
18461 (sched_attr_op_type): Handle TLS symbols.
18462 (gt-m68k.h): Include.
18463 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18464 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18465
18466 2009-05-18 Martin Jambor <mjambor@suse.cz>
18467
18468 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18469 (visit_store_addr_for_mod_analysis): New function.
18470 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18471 (determine_cst_member_ptr): Use gimple_assign_single_p.
18472 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18473 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18474 operands. Don't check number of operands of a NOP_EXPR.
18475
18476 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
18477
18478 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18479
18480 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
18481
18482 PR c/40172
18483 * c-common.c (warn_logical_operator): Don't warn if one of
18484 expression isn't always true or false.
18485
18486 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
18487
18488 * config/i386/biarch32.h: New file.
18489 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
18490
18491 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
18492
18493 * config/mips/mips.md (*zero_extend<mode>_trunchi,
18494 *zero_extend<mode>_truncqi): Merge these into ...
18495 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18496 Name the pattern following this as *zero_extendhi_truncqi.
18497
18498 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
18499
18500 PR middle-end/39301
18501 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18502 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18503 (output_info): Make field HOST_WIDEST_INT.
18504 (print_statistics): Use HOST_WIDEST_INT_PRINT.
18505 (dump_bitmat_statistics): Same.
18506
18507 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
18508
18509 * config.gcc (use_gcc_stdint): Set to wrap.
18510 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18511 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18512 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18513 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18514 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18515 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18516 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18517 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18518
18519 2009-05-16 Joseph Myers <joseph@codesourcery.com>
18520
18521 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18522 tune_64.
18523 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18524 Move definitions earlier.
18525 (OPT_ARCH64, OPT_ARCH32): Define.
18526 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18527 and tune_64.
18528
18529 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
18530
18531 PR target/40153
18532 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18533 implies.
18534
18535 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
18536
18537 * arm.md (movdi2): Copy non-reg values to DImode registers.
18538
18539 2009-05-16 Jakub Jelinek <jakub@redhat.com>
18540
18541 PR target/39942
18542 * final.c (label_to_max_skip): New function.
18543 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18544 CODE_LABEL_NUMBER <= max_labelno.
18545 * output.h (label_to_max_skip): New prototype.
18546 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18547 (ix86_avoid_jump_mispredicts): ... this. Don't define if
18548 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
18549 Handle CODE_LABELs with >= 16 byte alignment or with
18550 max_skip == (1 << align) - 1.
18551 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18552 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18553
18554 PR target/39942
18555 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18556 .p2align 3 if MAX_SKIP is smaller than 7.
18557 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18558
18559 2009-05-15 Ian Lance Taylor <iant@google.com>
18560
18561 * alias.c (struct alias_set_entry_d): Rename from struct
18562 alias_set_entry. Change all uses.
18563 * except.c (struct call_site_record_d): Rename from struct
18564 call_site_record. Change all uses.
18565 * except.h (struct eh_region_d): Rename from struct eh_region.
18566 Change all uses.
18567 * gcse.c (struct hash_table_d): Rename from struct hash_table.
18568 Change all uses.
18569 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
18570 ivtype_map_elt. Change all uses.
18571 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
18572 Change all uses.
18573 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
18574 * graphite.h (struct name_tree_d): Rename from struct name_tree.
18575 Change all uses.
18576 (struct sese_d): Rename from struct sese. Change all uses.
18577 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
18578 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
18579 * optabs.h (struct optab_d): Rename from struct optab. Change all
18580 uses.
18581 (struct convert_optab_d): Rename from struct convert_optab.
18582 Change all uses.
18583 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
18584 ipa_opt_pass. Change all uses.
18585 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
18586 all uses.
18587
18588 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
18589 defined as a typedef.
18590 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
18591 defined as a tag.
18592
18593 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18594
18595 PR 16302
18596 * fold-const.c (make_range,build_range_check,merge_ranges): Move
18597 declaration to...
18598 (merge_ranges): Returns bool.
18599 * tree.h (make_range): .. to here.
18600 (build_range_check): Likewise.
18601 (merge_ranges): Likewise. Renamed from merge_ranges.
18602 * c-typeck.c (parser_build_binary_op): Update calls to
18603 warn_logical_operator.
18604 * c-common.c (warn_logical_operator): Add new warning.
18605 * c-common.h (warn_logical_operator): Update declaration.
18606
18607 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
18608
18609 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
18610
18611 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18612
18613 * doc/install.texi: Document MPC requirements, flags etc.
18614
18615 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
18616 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
18617 Evaluate constant arguments.
18618 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
18619 (fold_builtin_1): Likewise, also evaluate constant arguments.
18620 Remove superfluous break.
18621 (do_mpc_ckconv): New.
18622 * real.h: Include mpc.h.
18623 * toplev.c (print_version): Output MPC version info if available.
18624
18625 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18626
18627 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
18628
18629 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
18630
18631 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
18632 only once.
18633
18634 2009-05-15 Jan Hubicka <jh@suse.cz>
18635
18636 * doc/invoke.texi (max-early-inliner-iterations): New flag.
18637 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
18638 (try_inline): Fix return value.
18639 (cgraph_decide_inlining_incrementally): Honor new value.
18640 (cgraph_early_inlining): Handle indirect inlining.
18641 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
18642
18643 2009-05-15 Jan Hubicka <jh@suse.cz>
18644
18645 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
18646 * cgraphunit.c (cgraph_finalize_function): Set it.
18647 (cgraph_expand_function): Use it.
18648
18649 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18650
18651 * real.c (encode_ieee_half): Define.
18652 (decode_ieee_half): Define.
18653 (ieee_half_format): Define.
18654 (arm_half_format): Define.
18655 * real.h (ieee_half_format): Declare.
18656 (arm_half_format): Declare.
18657
18658 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
18659
18660 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
18661 swapped, and reversed optabs exist before trying to use them.
18662
18663 2009-05-15 Paul Brook <paul@codesourcery.com>
18664 Sandra Loosemore <sandra@codesourcery.com>
18665
18666 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
18667 loads. Allow PRE_DEC.
18668 (output_move_neon): Handle PRE_DEC.
18669 (arm_print_operand): Add 'A' for neon structure loads.
18670 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
18671 * config/arm/neon.md (neon_mov): Update comment.
18672 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
18673 calls.
18674 (Um): New constraint.
18675
18676 2009-05-15 Jan Hubicka <jh@suse.cz>
18677
18678 Revert the following patch until testsuite fallout is fixed:
18679 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18680 * cgraph.h (struct inline_summary): New filed self_wize,
18681 size_inlining_benefit, self_time and time_inlining_benefit.
18682 (struct cgraph_global_info): Replace insns by time ans size fields.
18683 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18684 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18685 (ipcp_update_callgraph): Do not touch function bodies.
18686 * ipa-inline.c: Include except.h
18687 (MAX_TIME): New constant.
18688 (overall_insns): Remove
18689 (overall_size, max_benefit): New static variables.
18690 (cgraph_estimate_time_after_inlining): New function.
18691 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18692 (cgraph_clone_inlined_nodes): Update size.
18693 (cgraph_mark_inline_edge): Update size.
18694 (cgraph_estimate_growth): Use size info.
18695 (cgraph_check_inline_limits): Check size.
18696 (cgraph_default_inline_p): Likewise.
18697 (cgraph_edge_badness): Compute badness based on benefit and size cost.
18698 (cgraph_decide_recursive_inlining): Check size.
18699 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18700 and times.
18701 (cgraph_decide_inlining): Likewise.
18702 (cgraph_decide_inlining_incrementally): Likewise; honor
18703 PARAM_EARLY_INLINING_INSNS.
18704 (likely_eliminated_by_inlining_p): New predicate.
18705 (estimate_function_body_sizes): New function.
18706 (compute_inline_parameters): Use it.
18707 * except.c (must_not_throw_labels): New function.
18708 * except.h (must_not_throw_labels): Declare.
18709 * tree-inline.c (init_inline_once): Kill inlining_weigths
18710 * tree-ssa-structalias.c: Avoid uninitialized warning.
18711 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18712 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18713 (PARAM_INLINE_CALL_COST): Remove.
18714 (PARAM_EARLY_INLINING_INSNS): New.
18715
18716 2009-05-15 Richard Guenther <rguenther@suse.de>
18717
18718 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
18719 not TODO_update_ssa.
18720
18721 2009-05-15 Richard Guenther <rguenther@suse.de>
18722
18723 PR tree-optimization/39999
18724 * gimple.h (gimple_expr_type): Use the expression type looking
18725 through useless conversions.
18726 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
18727 (vn_nary_op_insert_stmt): Likewise.
18728 (simplify_binary_expression): Likewise.
18729
18730 2009-05-15 Richard Guenther <rguenther@suse.de>
18731
18732 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18733 New options, enabled by default.
18734 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18735 Document.
18736 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
18737 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
18738 * tree-ssa-structalias.c (gate_tree_pta): New function.
18739 (pass_build_alias): Use it.
18740
18741 2009-05-15 Joseph Myers <joseph@codesourcery.com>
18742
18743 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18744 recurse on an invariant address if a conversion from a pointer
18745 type to a wider integer type is involved.
18746
18747 2009-05-15 Jan Hubicka <jh@suse.cz>
18748
18749 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18750 * cgraph.h (struct inline_summary): New filed self_wize,
18751 size_inlining_benefit, self_time and time_inlining_benefit.
18752 (struct cgraph_global_info): Replace insns by time ans size fields.
18753 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18754 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18755 (ipcp_update_callgraph): Do not touch function bodies.
18756 * ipa-inline.c: Include except.h
18757 (MAX_TIME): New constant.
18758 (overall_insns): Remove
18759 (overall_size, max_benefit): New static variables.
18760 (cgraph_estimate_time_after_inlining): New function.
18761 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18762 (cgraph_clone_inlined_nodes): Update size.
18763 (cgraph_mark_inline_edge): Update size.
18764 (cgraph_estimate_growth): Use size info.
18765 (cgraph_check_inline_limits): Check size.
18766 (cgraph_default_inline_p): Likewise.
18767 (cgraph_edge_badness): Compute badness based on benefit and size cost.
18768 (cgraph_decide_recursive_inlining): Check size.
18769 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18770 and times.
18771 (cgraph_decide_inlining): Likewise.
18772 (cgraph_decide_inlining_incrementally): Likewise; honor
18773 PARAM_EARLY_INLINING_INSNS.
18774 (likely_eliminated_by_inlining_p): New predicate.
18775 (estimate_function_body_sizes): New function.
18776 (compute_inline_parameters): Use it.
18777 * except.c (must_not_throw_labels): New function.
18778 * except.h (must_not_throw_labels): Declare.
18779 * tree-inline.c (init_inline_once): Kill inlining_weigths
18780 * tree-ssa-structalias.c: Avoid uninitialized warning.
18781 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18782 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18783 (PARAM_INLINE_CALL_COST): Remove.
18784 (PARAM_EARLY_INLINING_INSNS): New.
18785 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
18786 (inline-call-cost): Remove.
18787 (early-inlining-insns): New.
18788
18789 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
18790
18791 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
18792 for bounds.
18793 (print_int_cst_bounds_in_octal_p): Likewise.
18794 (dbxout_type): Adjust calls to above functions. Be prepared to deal
18795 with subtypes.
18796 * dwarf2out.c (base_type_die): Likewise.
18797 (is_subrange_type): Delete.
18798 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
18799 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
18800 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
18801 if the destination type is boolean.
18802 (build_range_check): Do not special-case subtypes.
18803 (fold_sign_changed_comparison): Likewise.
18804 (fold_unary): Likewise.
18805 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
18806 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
18807 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
18808 * tree.c (subrange_type_for_debug_p): New predicate based on the
18809 former is_subrange_type.
18810 * tree.h (subrange_type_for_debug_p): Declare.
18811 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
18812 (convert_affine_scev): Remove call to above function.
18813 (chrec_convert_aggressive): Likewise.
18814 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
18815 false for conversions involving subtypes.
18816 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
18817 (vrp_val_min): Likewise.
18818 (needs_overflow_infinity): Likewise.
18819 (extract_range_from_unary_expr): Likewise.
18820
18821 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
18822
18823 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18824 * config/frv/frv.c: Likewise.
18825 * config/s390/s390.c: Likewise.
18826 * config/sparc/sparc.h: Likewise.
18827 * config/i386/i386.h: Likewise.
18828 * config/i386/i386.c: Likewise.
18829 * config/crx/crx.c: Likewise.
18830 * config/m68hc11/m68hc11.h: Likewise.
18831 * config/iq2000/iq2000.c: Likewise.
18832 * config/mn10300/mn10300.h: Likewise.
18833 * config/mn10300/mn10300.c: Likewise.
18834 * config/m68k/m68k.c: Likewise.
18835 * config/rs6000/rs6000.c: Likewise.
18836 * config/rs6000/xcoff.h: Likewise.
18837 * config/rs6000/linux64.h: Likewise.
18838 * config/rs6000/sysv4.h: Likewise.
18839 * config/score/score3.c: Likewise.
18840 * config/score/score7.c: Likewise.
18841 * config/score/score.c: Likewise.
18842 * config/arm/arm.md: Likewise.
18843 * config/mips/mips.c: Likewise.
18844 * config/mips/mips.md: Likewise.
18845 * config/bfin/bfin.h: Likewise.
18846 * config/pa/pa.c: Likewise.
18847 * config/pa/constraints.md: Likewise.
18848
18849 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
18850 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
18851 * config/pdp11/pdp11.h: Use memory_address_p instead.
18852
18853 2009-05-14 Ian Lance Taylor <iant@google.com>
18854
18855 * passes.c (finish_optimization_passes): Change i to int.
18856 * plugin.c (plugins_active_p): Change event to int.
18857 (dump_active_plugins): Likewise.
18858 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
18859 Add cast.
18860 * tree.c (tree_range_check_failed): Change c to unsigned int.
18861 (omp_clause_range_check_failed): Likewise.
18862 (build_common_builtin_nodes): Change mode to int. Add cast.
18863 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
18864 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
18865
18866 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
18867 ++ or -- with a variable of enum type.
18868
18869 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18870
18871 PR driver/40144
18872 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
18873
18874 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18875
18876 * store-motion.c: Do not include params.h
18877 * Makefile.in: Fix dependencies for various files.
18878
18879 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
18880
18881 * auto-inc-dec.c: Fix pass description, remove apparent
18882 accidental duplication.
18883
18884 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
18885
18886 PR middle-end/40147
18887 * ipa-utils.h (memory_identifier_string): Moved to ...
18888 * tree.h (memory_identifier_string): Here. Add GTY(()).
18889
18890 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
18891
18892 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
18893 in the former documentation of...
18894 (GO_IF_LEGITIMATE_ADDRESS): ... this.
18895 * ira-conflicts.c (get_dup_num): Use address_operand.
18896 * targhooks.c (default_legitimate_address_p): New.
18897 * targhooks.h (default_legitimate_address_p): New.
18898 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
18899 Call hook.
18900 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
18901 * target.h (struct target): Add legitimate_address_p.
18902 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
18903 (TARGET_INITIALIZER): Include it.
18904
18905 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18906 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
18907 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
18908 (TARGET_LEGITIMATE_ADDRESS_P): New.
18909
18910 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18911 (REG_OK_STRICT_P): Delete.
18912 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
18913 (frv_legitimate_address_p_1): ... this.
18914 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
18915 (frv_legitimate_address_p_1): ... the renamed old
18916 frv_legitimate_address_p.
18917 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
18918 (TARGET_LEGITIMATE_ADDRESS_P): New.
18919
18920 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18921 * config/s390/s390-protos.h (legitimate_address_p): Remove.
18922 * config/s390/s390.c (legitimate_address_p): Rename to...
18923 (s390_legitimate_address_p): ... this, make static.
18924 (legitimize_address): Adjust call.
18925 (TARGET_LEGITIMATE_ADDRESS_P): New.
18926 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
18927
18928 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18929 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
18930 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
18931 (TARGET_LEGITIMATE_ADDRESS_P): New.
18932
18933 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18934 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
18935 * config/spu/spu.c (spu_legitimate_address): Rename to...
18936 (spu_legitimate_address_p): ... this, make static.
18937 (TARGET_LEGITIMATE_ADDRESS_P): New.
18938
18939 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18940 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
18941 * config/sparc/sparc.c (legitimate_address_p): Rename to...
18942 (sparc_legitimate_address_p): ... this, make static and return bool.
18943 (legitimize_address): Adjust call.
18944 (TARGET_LEGITIMATE_ADDRESS_P): New.
18945
18946 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18947 * config/i386/i386-protos.h (legitimate_address_p): Remove.
18948 * config/i386/i386.c (legitimate_address_p): Rename to...
18949 (ix86_legitimate_address_p): ... this, make static.
18950 (constant_address_p): Move after it, adjust call.
18951 (TARGET_LEGITIMATE_ADDRESS_P): New.
18952
18953 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18954 * config/avr/avr-protos.h (legitimate_address_p): Remove.
18955 * config/avr/avr.c (legitimate_address_p): Rename to...
18956 (avr_legitimate_address_p): ... this, make static.
18957 (legitimize_address): Adjust call.
18958 (TARGET_LEGITIMATE_ADDRESS_P): New.
18959
18960 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18961 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
18962 * config/crx/crx.c (crx_legitimate_address_p): Make static.
18963 (TARGET_LEGITIMATE_ADDRESS_P): New.
18964
18965 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18966 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
18967 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
18968 (TARGET_LEGITIMATE_ADDRESS_P): New.
18969
18970 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18971 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
18972 Remove.
18973 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18974 Make static.
18975 (TARGET_LEGITIMATE_ADDRESS_P): New.
18976
18977 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18978 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
18979 Remove.
18980 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
18981 Rename to...
18982 (m68hc11_legitimate_address_p): ... this, make static.
18983 (go_if_legitimate_address_internal): Rename to...
18984 (m68hc11_legitimate_address_p_1): ... this.
18985 (legitimize_address): Adjust call.
18986 (TARGET_LEGITIMATE_ADDRESS_P): New.
18987
18988 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18989 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
18990 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
18991 (TARGET_LEGITIMATE_ADDRESS_P): New.
18992
18993 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18994 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
18995 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
18996 (mn10300_legitimate_address_p): ... this, make static.
18997 (TARGET_LEGITIMATE_ADDRESS_P): New.
18998
18999 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19000 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
19001 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
19002 (TARGET_LEGITIMATE_ADDRESS_P): New.
19003
19004 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19005 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
19006 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
19007 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19008 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
19009 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
19010 (rs6000_legitimate_address_p): ... this, make static.
19011 (TARGET_LEGITIMATE_ADDRESS_P): New.
19012 (REG_MODE_OK_FOR_BASE_P): Delete.
19013 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
19014
19015 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19016 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
19017 Delete.
19018 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
19019 static, adjust types.
19020 (TARGET_LEGITIMATE_ADDRESS_P): New.
19021
19022 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19023 * config/score/score.c (score_address_p): Rename to...
19024 (score_legitimate_address_p): ... this.
19025 (TARGET_LEGITIMATE_ADDRESS_P): New.
19026 * config/score/score3.c (score3_address_p): Rename to...
19027 (score3_legitimate_address_p): ... this.
19028 * config/score/score7.c (score7_address_p): Rename to...
19029 (score7_legitimate_address_p): ... this.
19030
19031 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
19032 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
19033 GO_IF_LEGITIMATE_ADDRESS): Delete.
19034 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
19035 thumb2_legitimate_address_p): Delete.
19036 (arm_legitimate_address_p): Rename to...
19037 (arm_legitimate_address_outer_p): ... this.
19038 * config/arm/constraints.md ("Uq"): Adjust call.
19039 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
19040 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
19041 to...
19042 (arm_legitimate_address_outer_p): ... this.
19043 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
19044 static.
19045 (TARGET_LEGITIMATE_ADDRESS_P): New.
19046
19047 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19048 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
19049 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
19050 (TARGET_LEGITIMATE_ADDRESS_P): New.
19051
19052 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19053 * config/vax/vax-protos.h (legitimate_address_p): Remove.
19054 * config/vax/vax.c (legitimate_address_p): Rename to...
19055 (vax_legitimate_address_p): ... this, make static.
19056 (TARGET_LEGITIMATE_ADDRESS_P): New.
19057
19058 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19059 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
19060 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
19061 (TARGET_LEGITIMATE_ADDRESS_P): New.
19062
19063 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19064 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
19065 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
19066 (mmix_legitimate_address_p): ... this, make static.
19067 (TARGET_LEGITIMATE_ADDRESS_P): New.
19068
19069 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19070 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
19071 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
19072 (TARGET_LEGITIMATE_ADDRESS_P): New.
19073
19074 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
19075
19076 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
19077 of MODE_COMPLEX_INT.
19078
19079 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19080
19081 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
19082 LCT_NORMAL in function call.
19083 * mips-tdump.c (print_file_desc): Add cast to enum type.
19084 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
19085 (mark_stabs): Add casts to enum types.
19086 (parse_stabs_common): Add casts to enum types.
19087
19088 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
19089
19090 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
19091 Check for invalid values of LETTER.
19092
19093 2009-05-13 Taras Glek <tglek@mozilla.com>
19094
19095 * attribs.c (register_attribute): moved out attribute registration
19096 into register_attribute.
19097 * doc/plugins.texi: Documented register_attribute and
19098 PLUGIN_ATTRIBUTES.
19099 * gcc-plugin.h: Added forward decl for register_attribute.
19100 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
19101 * plugin.c (register_callback, invoke_plugin_callbacks): Added
19102 PLUGIN_ATTRIBUTES boilerplate.
19103
19104 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
19105
19106 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
19107 values even in sentinel and empty entries.
19108 (ms_printf_flag_specs): Likewise.
19109 (ms_scanf_flag_specs): Likewise.
19110 (ms_strftime_flag_specs): Likewise.
19111 (ms_print_char_table): Likewise.
19112 (ms_scan_char_table): Likewise.
19113 (ms_time_char_table): Likewise.
19114
19115 2009-05-13 Doug Kwan <dougkwan@google.com>
19116
19117 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
19118
19119 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
19120
19121 * config/mips/mips.md (store): Add attributes for QI and HI.
19122 Update comment.
19123 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
19124 (truncdi<mode>2): ... this new pattern.
19125
19126 2009-05-13 Brad Hards <bradh@kde.org>
19127
19128 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19129
19130 2009-05-14 Jakub Jelinek <jakub@redhat.com>
19131 Ben Elliston <bje@au.ibm.com>
19132
19133 PR middle-end/40035
19134 * dse.c (check_mem_read_rtx): Guard against width == -1.
19135
19136 2009-05-13 Michael Matz <matz@suse.de>
19137
19138 PR middle-end/39976
19139 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19140 (trivially_conflicts_p): New function.
19141 (insert_backedge_copies): Use it.
19142
19143 2009-05-13 Janis Johnson <janis187@us.ibm.com>
19144
19145 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19146 (handle_stdc_pragma): Use new enum constant names.
19147 (handle_pragma_float_const_decimal64): Ditto.
19148
19149 2009-05-13 Ian Lance Taylor <iant@google.com>
19150
19151 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19152 tree.def.
19153
19154 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
19155
19156 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19157 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19158 multilibs.
19159 * config/m68k/m68k.h (FL_UCLINUX): Define.
19160
19161 2009-05-13 Jan Hubicka <jh@suse.cz>
19162
19163 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19164
19165 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19166
19167 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19168 unless -fschedule-insns is specified.
19169
19170 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19171
19172 PR target/39561
19173 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19174 TARGET_EXPAND_CBRANCHDI4.
19175 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19176 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19177 (cmpeqdi): Fix comment.
19178
19179 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
19180
19181 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19182 (sh_legitimate_address_p): Likewise.
19183 * config/sh/sh.c (sh_legitimate_index_p): New.
19184 (sh_legitimate_address_p): Likewise.
19185 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19186 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19187 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19188 (MAYBE_BASE_REGISTER_RTX_P): New macro.
19189 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19190 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19191 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19192 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19193 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19194
19195 2009-05-12 Jan Hubicka <jh@suse.cz>
19196
19197 * tree-inline.c (estimate_operator_cost): Add operands;
19198 when division happens by constant, it is cheap.
19199 (estimate_num_insns): Loads and stores are not having cost of 0;
19200 EH magic stuff is cheap; when computing runtime cost of switch,
19201 use log2 base of amount of its cases; builtin_expect has cost of 0;
19202 compute cost for moving return value of call.
19203 (init_inline_once): Initialize time_based flags.
19204 * tree-inline.h (eni_weights_d): Add time_based flag.
19205
19206 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19207
19208 * df-core.c: Update head documentation.
19209
19210 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19211
19212 PR bootstrap/40118
19213 * rs6000.c (rs6000_generate_compare): Use op1b instead of
19214 shadowing exisiting variable op1.
19215
19216 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
19217
19218 PR target/37179
19219 * config/i386/driver-i386.c (processor_signatures): New enum.
19220 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19221 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19222 processor signature to detect geode processor.
19223
19224 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19225
19226 Revert:
19227
19228 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19229
19230 * optabs.c (prepare_cmp_insn): Temporarily disable test that
19231 causes spurious differences between trunk and cond-optab branch.
19232
19233 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19234
19235 * dojump.c (compare_from_rtx): Delete.
19236 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
19237 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
19238 if the comparison does not satisfy the predicate; test predicates for
19239 operands 2 and 3 of a cstore pattern. Don't try cstore optab
19240 further if one existing pattern fails.
19241 * expr.h (compare_from_rtx): Delete.
19242 (prepare_operand): Declare it.
19243 * optabs.c: Change "lib call" to "libcall" throughout.
19244 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
19245 HAVE_conditional_trap, emit_cmp_insn): Delete.
19246 (can_compare_p): Delete cmp_optab case.
19247 (prepare_float_lib_cmp): Return an rtx and a machine mode.
19248 Accept other parameters by value.
19249 (prepare_operand): Make non-static.
19250 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
19251 other parameters by value. Try to widen operands here based on
19252 an optab_methods argument and looking at cbranch_optab.
19253 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19254 loop. Use cbranch_optab directly.
19255 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
19256 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19257 assertion.
19258 (emit_conditional_move, emit_conditional_add): Inline what's needed
19259 of compare_from_rtx, using new prepare_cmp_insn for the rest.
19260 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19261 with COMPARE. Move cmov_optab and cstore_optab above
19262 with cbranch_optab, move cmp_optab down with ucmp_optab,
19263 remove tst_otpab. Do not initialize trap_rtx.
19264 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
19265 for trap code. Do not check HAVE_conditional_trap. Use
19266 prepare_cmp_insn. Accept no predicate for operand 3.
19267 * optabs.h (OTI_cmp): Mark as used only for libcalls.
19268 (OTI_ctrap, ctrap_optab): New.
19269 (tst_optab): Delete.
19270 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19271 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19272 with lookup of ctrap_optab.
19273 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19274 Delete.
19275 (ctrap_optab): New.
19276
19277 * combine.c (combine_simplify_rtx, simplify_set): Do not
19278 special case comparing against zero for cc0 machines.
19279 * simplify-rtx.c (simplify_binary_operation_1): Never remove
19280 COMPARE on cc0 machines.
19281 (simplify_relational_operation): Return a new expression when
19282 a COMPARE could be removed.
19283 * final.c (final_scan_insn): Compare cc_status values
19284 against LHS of a (compare FOO (const_int 0)) cc0 source.
19285 Also check if cc_status.value is the full compare.
19286
19287 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19288 (cstoreMM4): Document.
19289 (conditional_trap): Document ctrapMM4 instead.
19290 (sync_compare_and_swapMM): Refer to cbranchcc4.
19291 (Dependent Patterns): Eliminate obsolete information referring to
19292 the old jump optimization phase.
19293 (Canonicalization): Include cbranchcc4 case, omit canonicalization
19294 of compares with 0 on cc0 machines.
19295 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19296 avoiding references to cc0. Remove text about storing operands
19297 in cmpMM.
19298 * doc/tm.texi (Condition Codes): Include blurb on different
19299 condition code representations, separate into subsections for
19300 CC0, MODE_CC and conditional execution.
19301
19302 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19303 alpha_emit_setcc): Accept operands and a machine mode.
19304 * config/alpha/alpha.c (alpha_emit_conditional_branch):
19305 Get code/op0/op1 from operands, use machine mode argument
19306 instead of alpha_compare.fp_p. Emit the branch here.
19307 (alpha_emit_setcc): Likewise, and return boolean.
19308 (alpha_emit_conditional_move): Likewise. Assert that
19309 cmp_op_mode == cmp_mode, and simplify accordingly.
19310 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19311 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19312 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19313 Delete.
19314 (stack probe test): Use cbranchdi4.
19315 * config/alpha/predicates.md (alpha_cbranch_operator): New.
19316
19317 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
19318 * config/arc/arc.h (movsicc, movsfcc): Use it.
19319 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
19320 (cbranchsi4, cstoresi4): New.
19321 (cmpsi, bCC and sCC expanders): Remove.
19322
19323 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
19324 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
19325 * config/arm/predicates.md (arm_comparison_operator): Only include
19326 floating-point operators if there is a hardware floating-point unit.
19327 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
19328 deferring to cbranch_cc and cstore_cc respectively.
19329 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
19330 cbranch_cc, cstore_cc): New.
19331 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
19332 arm_compare_op1.
19333 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
19334
19335 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
19336 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
19337 as an argument.
19338 (adjust_insn_length): Adjust calls.
19339 (avr_reorg): Handle (compare (foo) (const_int 0)).
19340 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
19341 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19342 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19343 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19344 (bCC): Remove.
19345 (cbranchqi4, cbranchhi4, cbranchsi4): New.
19346 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19347
19348 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19349 (cbranchsi4, cstorebi4, cstoresi4): New.
19350 (movbisi): This insn is duplicate, split it to zero_extend.
19351 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19352 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
19353 (bfin_optimize_loop): Use cbranch expander.
19354 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19355 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19356 (bfin_bimode_comparison_operator): ... this.
19357 (bfin_direct_comparison_operator): New.
19358
19359 * config/cris/cris.c (cris_normal_notice_update_cc): Look
19360 inside (compare FOO (const_int 0)).
19361 (cris_rtx_costs): Handle ZERO_EXTRACT.
19362 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19363 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19364 (*tstdi_v32): Delete.
19365 (*cmpdi_non_v32): Add M alternative for operand 1.
19366 (cmpsi, cmp<mode>): Make private.
19367 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19368 with COMPARE.
19369 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19370
19371 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19372 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19373 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
19374 (cc_reg_operand): New.
19375 (any_cond): Delete.
19376 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19377 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19378 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19379 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19380 crx_expand_scond): Delete.
19381
19382 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19383 (cbranchsi4): New.
19384 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19385 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19386
19387 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19388 cstoresi4, cstoresf4, cstoredf4): New.
19389 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19390 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19391 Receive the entire operands array.
19392 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19393 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19394 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19395 Get test/op0/op1 from the operands array.
19396 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19397
19398 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19399 (h8300_expand_store): New.
19400 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19401 (const_int 0)).
19402 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
19403 (h8300_expand_store): New.
19404 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19405 or do not try to produce (set (cc0) REG).
19406 (peepholes): Wrap arguments with COMPARE. Add a peephole to
19407 change a compare into a move to a scratch register. Disable some
19408 peepholes when comparing with zero.
19409 (tstsi, tsthi, tstsi, cmpqi): Make private.
19410 (cmphi): Delete.
19411 (bCC, sCC): Delete.
19412 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19413 cstoresi4): New.
19414
19415 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19416 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19417 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19418 (ix86_emit_i387_log1p): Use cbranchxf2.
19419 (ix86_expand_setcc): Return void.
19420 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19421 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19422 cmp<MODEF>, cmpcc): Remove.
19423 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19424 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19425 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
19426 (sCC and bCC expanders): Remove.
19427 (stack_protect_test): Use cbranchcc4.
19428
19429 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19430 Delete.
19431 (ia64_expand_compare): Accept three rtx by reference and return void.
19432 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19433 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
19434 from *expr. Update *expr with the BImode comparison to do.
19435 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19436 cmptf, bCC, sCC, conditional_trap): Delete.
19437 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
19438 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19439 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19440 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19441 * config/ia64/predicates.md (ia64_cbranch_operator): New.
19442
19443 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19444 type of last argument.
19445 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19446 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19447 use machine mode argument instead of branch_type. Remove dead
19448 code for floating-point comparisons.
19449 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19450 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19451 Remove.
19452 (cbranchsi4, cstoresi4): New.
19453 * config/iq2000/predicates.md (reg_or_const_operand): New.
19454
19455 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19456 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19457 (b<code>_op): Rewrite to...
19458 (bcc_op): ... this, using match_operator.
19459 (s<code>_op): Rewrite to...
19460 (scc_op): ... this, using match_operator.
19461 (s<code>_24_op): Rewrite to...
19462 (scc_op_24): ... this, using match_operator.
19463 (s<code>_<mode>): Rewrite to...
19464 (cstore<mode>4): ... this, using match_operator.
19465 (s<code>_<mode>_24): Rewrite to...
19466 (cstore<mode>4_24): ... this, using match_operator.
19467 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19468 m32c_unpend_compare, m32c_expand_scc): Delete.
19469 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19470 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19471 (m32c_expand_movcc): Change NE to EQ if necessary.
19472 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19473
19474 * config/m32r/m32r-protos.h (gen_cond_store): New.
19475 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19476 (gen_cond_store): New, from sCC patterns.
19477 (m32r_expand_block_move): Use cbranchsi4.
19478 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19479 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19480 (cbranchsi4, cstoresi4): New.
19481
19482 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19483 Delete.
19484 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
19485 (m68hc11_notice_update_cc): Look into a compare with 0.
19486 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19487 Delete.
19488 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19489 cmphi, cmpqi, bCC): Delete.
19490 (cbranchsi4, cbranchhi4, cbranchqi4): New.
19491 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19492 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19493 sets with COMPARE.
19494
19495 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19496 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19497 * config/m68k/constraints.md (H): New.
19498 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19499 the define_insn below.
19500 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19501 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19502 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19503 patterns): Wrap RHS with COMPARE.
19504 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19505 (*cmpdi_internal): Name this pattern.
19506 (cmpdi): Change to define_insn.
19507 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19508 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19509 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19510 predicate.
19511 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19512 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19513 (conditional_trap): Change to...
19514 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19515 (*conditional_trap): Use the ordered_comparison_operator and
19516 const1_operand predicates.
19517 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19518 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19519 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19520 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19521
19522 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19523 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
19524 (mcore_gen_compare): New.
19525 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19526 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19527 (mcore_gen_compare): ... this.
19528 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19529 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19530 (stack probe pattern): Use cbranchsi4.
19531
19532 * config/mips/predicates.md (mips_cstore_operator): New.
19533 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19534 * config/mips/mips.md (any_cond): Delete.
19535 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
19536 always succeed.
19537 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19538 fixuns_truncsfdi2): Use cbranch patterns.
19539 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
19540 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19541 Adjust call to mips_expand_conditional_branch.
19542 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19543 cstore<GPR:mode>4.
19544 * config/mips/mips-protos.h (mips_expand_conditional_branch,
19545 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19546 * config/mips/mips.c (cmp_operands): Delete.
19547 (mips_emit_compare): Get comparison operands from *op0/*op1.
19548 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
19549 that it succeeds. Use op0/op1 instead of cmp_operands.
19550 (mips_expand_conditional_branch, mips_expand_conditional_move,
19551 mips_expand_conditional_trap): Likewise.
19552 (mips_block_move_loop): Use cbranch patterns.
19553 * config/mips/mips.h (cmp_operands): Delete.
19554
19555 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19556 (mmix_gen_compare_reg): Just return a register in the right CC mode.
19557 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19558 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19559 (*cmpcc_folded): Rename to...
19560 (*cmpdi_folded): this.
19561 (*cmpcc): Rename to...
19562 (*cmps): ... this.
19563 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
19564 (bCC): Remove.
19565 (cbranchdi4): New.
19566 (cbranchdf4): New. Handle invalid comparisons here.
19567 * config/mmix/predicates.md (float_comparison_operator): New.
19568
19569 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
19570 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
19571 * config/mn10300/mn10300.md (tst): Delete.
19572 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
19573 Name these patterns and wrap RHS in a compare.
19574 (*cmpsi): Make this pattern private. Include tst.
19575 (*cmpsf): Make this pattern private.
19576 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
19577 (compare with zero peepholes): Likewise.
19578 (bCC): Remove.
19579 (cbranchsi4, cbranchsf4): New.
19580 (casesi): Use cbranchsi4.
19581
19582 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
19583 hppa_branch_type): Delete.
19584 (return_addr_rtx): Use cbranchsi4.
19585 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
19586 Emit CCFPmode comparison here.
19587 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
19588 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
19589 hppa_branch_type): Delete.
19590 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
19591 (movsicc, movdicc): Remove references to hppa_compare_op0,
19592 hppa_compare_op1 and compare_from_rtx.
19593 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
19594 (casesi): Use cbranchsi4.
19595
19596 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
19597 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
19598 * config/pdp11/pdp11.md (register_or_const0_operand): New.
19599 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
19600 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
19601 (bCC): Delete.
19602 (cbranchdf4, cbranchhi4, cbranchqi4): New.
19603 (*branch, *branch_inverted): New.
19604
19605 * config/picochip/picochip.md (cbranchhi4): Use
19606 ordered_comparison_operator.
19607 (cmphi, bCC): Remove.
19608
19609 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
19610 (trap_comparison_operator): Delete.
19611 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
19612 rs6000_emit_cbranch): Accept mode and operands.
19613 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
19614 rs6000_compare_fp_p): Delete.
19615 (rs6000_generate_compare): Accept mode and comparison. Extract code
19616 and op0/op1 from there. Replace references to rs6000_compare_op0
19617 and rs6000_compare_op1.
19618 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
19619 extract result from passed operands.
19620 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
19621 extract loc from passed operands.
19622 (rs6000_emit_cmove): Likewise.
19623 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
19624 rs6000_compare_fp_p): Delete.
19625 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
19626 (cbranch<GPR>4, cbranch<FP>4): New.
19627 (cstore<mode>4): New. Consolidate here all choices about when to use
19628 portable or specialized sCC sequences.
19629 (stack_protect_test): Use cbranchsi4.
19630 (conditional_trap): Replace with ctrap<GPR>4.
19631 (conditional trap insn): Replace trap_comparison_operator with
19632 ordered_comparison_operator.
19633
19634 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
19635 (s390_emit_prologue): Use ctrap.
19636 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
19637 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
19638 New predicates replacing...
19639 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
19640 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
19641 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
19642 (add<mode>cc): Do not use s390_compare_op0/op1.
19643 (s<code>): Change to...
19644 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
19645 (seq): Change to...
19646 (cstorecc4): ... this. Handle EQ or NE equally.
19647 (*sne): Un-privatize for use in cstorecc4.
19648 (b<code>): Change to...
19649 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
19650 (conditional_trap): Replace with...
19651 (ctrap<GPR>4, ctrap<FP>4): ... these.
19652 (stack_protect): Use cbranchcc4.
19653
19654 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
19655 * config/score/score-protos.h (score_gen_cmp): Delete.
19656 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
19657 (score_block_move-loop): Use cbranchsi4.
19658 * config/score/score.md (cbranchsi4): New.
19659 (cmpsi, bCC): Delete.
19660 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
19661 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19662 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
19663 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19664 * config/score/score3.h (score3_gen_cmp): Delete.
19665 * config/score/score7.h (score7_gen_cmp): Delete.
19666
19667 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
19668 (sh_emit_scc_to_t): ... this. Return void.
19669 (from_compare): Rename to...
19670 (sh_emit_compare_and_branch): ... this.
19671 (sh_emit_compare_and_set): New.
19672 (sh_expand_t_scc): Accept operands.
19673 * config/sh/predicates.md (sh_float_comparison_operator): New.
19674 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
19675 (prepare_scc_operands): Rename to...
19676 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
19677 arguments.
19678 (sh_emit_cheap_store_flag): New.
19679 (sh_emit_set_t_insn): New.
19680 (from_compare): Rename to...
19681 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
19682 handling of TARGET_SH2E floating point to avoid recursive call.
19683 Generate branch here.
19684 (sh_emit_compare_and_set): New.
19685 (sh_expand_t_scc): Get op0/op1 from arguments.
19686 (sh_emit_cheap_store_flag): New.
19687 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
19688 cases.
19689 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
19690 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
19691 (movsicc, movdicc): Do nothing when it recreated operands from
19692 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
19693 prepare_scc_operands (now sh_emit_scc_to_t).
19694 (udivdi3): Use cstoresi4.
19695 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
19696 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
19697 (cbranchint4_media, cbranchfp4_media): New.
19698 (casesi): Use cbranchdi4.
19699 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
19700 Delete.
19701 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
19702 (movnegt): Remove second operand.
19703 (cbranchsf4, cbranchdf4): New.
19704 (stack_protect): Use cbranchdi4/cbranchsi4.
19705
19706 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
19707 (gen_compare_reg): Accept comparison, extract part of it to...
19708 (gen_compare_reg_1): ... this.
19709 (gen_compare_operator): Delete.
19710 (gen_v9_scc): Accept separate destination, comparison code and arms.
19711 Do not use sparc_compare_op0/sparc_compare_op1.
19712 (emit_scc_insn, emit_conditional_branch_insn): New.
19713 (emit_v9_brxx): Make static. Remove useless assertion.
19714 (sparc_emit_float_lib_cmp): Return RTL instead of calling
19715 emit_cmp_insn.
19716 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
19717 * config/sparc/sparc-protos.h (gen_compare_reg,
19718 sparc_emit_float_lib_cmp): Adjust prototype.
19719 (emit_scc_insn, emit_conditional_branch_insn): New.
19720 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
19721 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
19722 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
19723 iterators to the top.
19724 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
19725 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
19726 snedi_special_trunc): Delete.
19727 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
19728 and snedi_special_trunc.
19729 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
19730 cbranchdi4, cbranch<F:mode>4): New.
19731 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
19732 here. Use gen_compare_reg instead of gen_compare_operator.
19733 (conditional_trap): Replace with...
19734 (ctrapsi4, ctrapdi4): ... this.
19735 (stack_protect_test): Use cbranchcc4.
19736
19737 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
19738 argument to rtx.
19739 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
19740 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
19741 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
19742 from operands[0] or operands[3] depending on is_set.
19743 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
19744 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
19745 cmpdf, bCC), sCC: Remove.
19746 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
19747 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
19748 cstoredf4): New.
19749 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
19750 spu_emit_branch_or_set.
19751
19752 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
19753 Add two arguments.
19754 * config/stormy16/stormy16.h (xstormy16_compare_op0,
19755 xstormy16_compare_op1): Delete.
19756 * config/stormy16/stormy16.c (xstormy16_compare_op0,
19757 xstormy16_compare_op1): Delete.
19758 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
19759 Adjust calls.
19760 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
19761 (cmphi, cmpsi, bCC): Remove.
19762
19763 * config/v850/v850.md (tstsi, cmpsi): Fold into...
19764 (*cmpsi): ... this one.
19765 (cbranchsi4, cstoresi4): New.
19766 (bCC expanders): Delete.
19767 (sCC insns): Fold into...
19768 (*setcc): ... this one.
19769 (casesi): Do not use gen_cmpsi and gen_bgtu.
19770 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
19771 (movsicc): Simplify.
19772 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
19773
19774 * config/vax/vax-protos.h (cond_name): New.
19775 (vax_output_conditional_branch): Remove.
19776 * config/vax/vax.c (cond_name): New.
19777 (vax_output_conditional_branch): Remove.
19778 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
19779 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
19780 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
19781 (bit<VAXint>): Wrap source with (compare).
19782 (b<code> and following unnamed pattern): Rename to *branch and
19783 *branch_reversed. Change macroization to match_operator.
19784 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
19785
19786 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
19787 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
19788 Change last argument to machine_mode.
19789 (xtensa_expand_scc): Add machine_mode argument.
19790 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
19791 (gen_conditional_move, xtensa_expand_conditional_branch,
19792 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
19793 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
19794 Adjust operand numbers.
19795 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
19796 Delete.
19797 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
19798 (cmpsi, cmpsf, b<code>, s<code>): Delete.
19799 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
19800
19801 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
19802
19803 * optabs.c (prepare_cmp_insn): Temporarily disable test that
19804 causes spurious differences between trunk and cond-optab branch.
19805
19806 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
19807
19808 PR target/37137
19809 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
19810
19811 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
19812
19813 * tree.c (iterative_hash_pointer): Delete.
19814 (iterative_hash_expr): Short-circuit handling of NULL pointer.
19815 Hash UIDs and versions of SSA names. Don't special-case built-in
19816 function declarations.
19817
19818 2009-05-11 Ian Lance Taylor <iant@google.com>
19819
19820 PR bootstrap/40103
19821 * graphite.c: Force -Wc++-compat to only be a warning before
19822 #including "cloog/cloog.h".
19823
19824 2009-05-11 Martin Jambor <mjambor@suse.cz>
19825
19826 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
19827
19828 2009-05-11 Jan Hubicka <jh@suse.cz>
19829
19830 * tree-ssa-loop-ivcanon.c: Include target.h
19831 (struct loop_size): new structure.
19832 (constant_after_peeling): New predicate.
19833 (tree_estimate_loop_size): New function.
19834 (estimated_unrolled_size): Rewrite for new estimates.
19835 (try_unroll_loop_completely): Use new estimates.
19836 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
19837
19838 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
19839
19840 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
19841 libcpp interface change.
19842 (spu_macro_to_expand): Likewise.
19843
19844 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
19845
19846 PR tree-optimization/40026
19847 * gimplify.c (gimplify_init_constructor): Change initial conditional
19848 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
19849 optimize_compound_literals_in_ctor.
19850
19851 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
19852
19853 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
19854 New devices.
19855 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
19856
19857 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
19858
19859 * tree-vect-data-refs.c (vect_analyze_group_access): Use
19860 HOST_WIDE_INT for gap.
19861
19862 2009-05-11 Ira Rosen <irar@il.ibm.com>
19863
19864 PR tree-optimization/40074
19865 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
19866 account in group size and step comparison.
19867
19868 2009-05-11 Richard Guenther <rguenther@suse.de>
19869
19870 * passes.c (init_optimization_passes): Strip now incorrect comment.
19871 (execute_function_todo): Do not set PROP_alias.
19872 * tree-pass.h (PROP_alias): Remove.
19873 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
19874 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
19875 * tree-nrv.c (pass_return_slot): Likewise.
19876 * tree-object-size.c (pass_object_sizes): Likewise.
19877 * tree-ssa-dom.c (pass_dominator): Likewise.
19878 (pass_phi_only_cprop): Likewise.
19879 * tree-ssa-dse.c (pass_dse): Likewise.
19880 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19881 (pass_cselim): Likewise.
19882 * tree-ssa-pre.c (pass_pre): Likewise.
19883 (pass_fre): Likewise.
19884 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19885 * tree-ssa-sink.c (pass_sink_code): Likewise.
19886 * tree-stdarg.c (pass_stdarg): Likewise.
19887 * tree-tailcall.c (pass_tail_calls): Likewise.
19888 * tree-vrp.c (pass_vrp): Likewise.
19889
19890 2009-05-10 Ian Lance Taylor <iant@google.com>
19891
19892 * basic-block.h (enum profile_status): Break out of struct
19893 control_flow_graph.
19894 * cgraph.h (struct inline_summary): Break out of struct
19895 cgraph_local_info.
19896 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
19897 of struct cgraph_order_sort.
19898 * combine.c (enum undo_kind): New enum, broken out of struct undo.
19899 * cse.c (struct branch_path): Break out of struct
19900 cse_basic_block_data.
19901 * except.h (enum eh_region_type): Break out of struct eh_region.
19902 * gcc.c (enum add_del): Break out of struct modify_target.
19903 * genrecog.c (enum decision_type): Break out of struct decision_test.
19904 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
19905 ggc_pch_data.
19906 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
19907 * regmove.c (enum match_use): New enum, broken out of struct match.
19908 * sched-int.h (enum post_call_group): New enum, broken out of
19909 struct deps.
19910 (struct deps_reg): Break out of struct deps.
19911 * target.h (struct asm_int_op): Break out of struct gcc_target.
19912 * tree-eh.c (struct goto_queue_node): Break out of struct
19913 leh_tf_state.
19914 * tree-inline.h (enum copy_body_cge_which): Break out of
19915 copy_body_data.
19916 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
19917
19918 * c-decl.c (in_struct, struct_types): New static variables.
19919 (pushtag): Add loc parameter. Change all callers.
19920 (lookup_tag): Add ploc parameter. Change all callers.
19921 (check_compound_literal_type): New function.
19922 (parser_xref_tag): Add loc parameter. Change all callers. If
19923 -Wc++-compat, warn about struct/union/enum types defined within a
19924 struct or union.
19925 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
19926 and loc parameters. Change all callers. Change error calls to
19927 error_at, using loc. For a redefinition, if the location of the
19928 original definition is known, report it. Set in_struct and
19929 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
19930 (finish_struct): Add new parameters enclosing_in_struct and
19931 enclosing_struct_types. Change all callers. Set
19932 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
19933 in the struct. If in a struct, add this struct to struct_types.
19934 (start_enum): Add loc parameter. Change all callers. Use
19935 error_at for errors, using loc. For a redefinition, if the
19936 location of the original definition is known, report it. If in a
19937 struct, add this enum type to struct_types. If -Wc++-compat warn
19938 if in sizeof, typeof, or alignof.
19939 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
19940 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
19941 (c_parser_enum_specifier): Get enum location for start_enum.
19942 (c_parser_struct_or_union_specifier): Get struct location for
19943 start_struct. Save in_struct and struct_types status between
19944 start_struct and finish_struct.
19945 (c_parser_cast_expression): Get location of cast.
19946 (c_parser_alignof_expression): Get location of type.
19947 (c_parser_postfix_expression): Likewise.
19948 (c_parser_postfix_expression_after_paren_type): Add type_loc
19949 parameter. Change all callers. Call check_compound_literal_type.
19950 Use type_loc for error about variable size type.
19951 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
19952 of an enum constant from an enum type defined in a struct or union.
19953 (c_cast_expr): Add loc parameter. Change all callers. If
19954 -Wc++-compat, warn about defining a type in a cast.
19955 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
19956 (start_enum, start_struct, finish_struct): Update declarations.
19957 (parser_xref_tag, c_cast_expr): Update declarations.
19958 (check_compound_literal_type): Declare.
19959
19960 2009-05-11 Ben Elliston <bje@au.ibm.com>
19961
19962 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
19963 for recent libcpp interface change.
19964 (rs6000_macro_to_expand): Likewise.
19965
19966 2009-05-10 Michael Matz <matz@suse.de>
19967
19968 PR target/40031
19969 * config/arm/arm.c (require_pic_register): Emit on entry edge,
19970 not at entry of function.
19971
19972 2009-05-10 Richard Guenther <rguenther@suse.de>
19973
19974 PR tree-optimization/40081
19975 Revert
19976 * tree-sra.c (instantiate_element): Instantiate scalar replacements
19977 using the main variant of the element type. Do not fiddle with
19978 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19979
19980 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
19981 structs with volatile fields.
19982
19983 2009-05-10 Jan Hubicka <jh@suse.cz>
19984
19985 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
19986 (estimate_move_cost): Assert that it does not get called for
19987 VOID_TYPE_P.
19988 (estimate_num_insns): Skip VOID types in argument handling.
19989 (optimize_inline_calls): Delete unreachable blocks and verify that
19990 callgraph is valid.
19991
19992 2009-05-10 Jan Hubicka <jh@suse.cz>
19993
19994 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
19995 * cgraph.c (cgraph_mark_address_taken_node): New function.
19996 (dump_cgraph_node): Dump new flag.
19997 * cgraph.h (struct cgraph_node): Add address_taken.
19998 (cgraph_mark_address_taken_node): New function.
19999 * ipa.c (cgraph_postorder): Prioritize functions with address taken
20000 since new direct calls can be born.
20001
20002 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20003
20004 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
20005 tok->val.node.node.
20006
20007 2009-05-10 Jan Hubicka <jh@suse.cz>
20008
20009 PR middle-end/40084
20010 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
20011 argument; rewrite.
20012 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
20013 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
20014 * tree-inline.c (copy_bb): Set frequency correctly.
20015 (fold_marked_statements): Update call to
20016 cgraph_update_edges_for_call_stmt.
20017
20018 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20019
20020 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
20021 identifiers in diagnostics.
20022 * config/arm/arm.c (arm_handle_fndecl_attribute,
20023 arm_handle_isr_attribute): Likewise.
20024 * config/avr/avr.c (avr_handle_progmem_attribute,
20025 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
20026 * config/bfin/bfin.c (handle_int_attribute,
20027 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
20028 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
20029 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
20030 Likewise.
20031 * config/darwin.c (darwin_handle_kext_attribute,
20032 darwin_handle_weak_import_attribute): Likewise.
20033 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
20034 h8300_handle_eightbit_data_attribute,
20035 h8300_handle_tiny_data_attribute): Likewise.
20036 * config/i386/i386.c (ix86_handle_cconv_attribute,
20037 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
20038 * config/i386/winnt.c (ix86_handle_shared_attribute,
20039 ix86_handle_selectany_attribute): Likewise.
20040 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
20041 * config/m32c/m32c.c (function_vector_handler): Likewise.
20042 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
20043 m68hc11_handle_fntype_attribute): Likewise.
20044 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
20045 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
20046 * config/mips/mips.c (mips_insert_attributes,
20047 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
20048 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
20049 rs6000_handle_struct_attribute): Likewise.
20050 * config/sh/sh.c (sh_insert_attributes,
20051 sh_handle_resbank_handler_attribute,
20052 sh_handle_interrupt_handler_attribute,
20053 sh2a_handle_function_vector_handler_attribute,
20054 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
20055 Likewise.
20056 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
20057 * config/spu/spu.c (spu_handle_fndecl_attribute,
20058 spu_handle_vector_attribute): Likewise.
20059 * config/stormy16/stormy16.c
20060 (xstormy16_handle_interrupt_attribute): Likewise.
20061 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
20062 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
20063
20064 2009-05-10 Joseph Myers <joseph@codesourcery.com>
20065
20066 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
20067 (pp_translate_identifiers): New.
20068 (pp_identifier): Only conditionally translate identifier to locale
20069 character set.
20070 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
20071 (pp_base_tree_identifier): Only conditionally translate identifier
20072 to locale character set.
20073 * c-pretty-print.c (M_): Define.
20074 (pp_c_type_specifier, pp_c_primary_expression): Mark English
20075 fragments for conditional translation with M_.
20076 * tree-pretty-print.c (maybe_init_pretty_print): Disable
20077 identifier translation.
20078
20079 2009-05-10 Richard Guenther <rguenther@suse.de>
20080
20081 PR tree-optimization/40081
20082 * tree-sra.c (instantiate_element): Instantiate scalar replacements
20083 using the main variant of the element type. Do not fiddle with
20084 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20085
20086 2009-05-09 Jan Hubicka <jh@suse.cz>
20087
20088 PR middle-end/40080
20089 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
20090 indirect calls; verify cgraph afterwards.
20091
20092 2009-05-09 Jan Hubicka <jh@suse.cz>
20093
20094 PR bootstrap/40082
20095 * ipa.c (update_inlined_to_pointer): New function.
20096 (cgraph_remove_unreachable_nodes): Use it.
20097
20098 2009-05-09 Jan Hubicka <jh@suse.cz>
20099
20100 * tree-eh.c (struct leh_state): Remove prev_try.
20101 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
20102 not track prev_try.
20103 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
20104 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
20105 remove_eh_handler_and_replace, foreach_reachable_handler,
20106 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
20107 * except.h (struct eh_region): Remove eh_region_u_cleanup.
20108 (gen_eh_region_cleanup): Update prototype.
20109
20110 2009-05-09 Jan Hubicka <jh@suse.cz>
20111
20112 PR middle-end/40043
20113 * except.c (copy_eh_region): Always set prev_try.
20114 (redirect_eh_edge_to_label): Find outer try.
20115 (foreach_reachable_handler): When looking for prev try
20116 handle case where previous try is not going to be taken.
20117
20118 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
20119
20120 PR tree-optimization/40049
20121 * tree-vect-stmts.c (vectorizable_operation): If the machine has
20122 only vector/vector shifts, convert the type of the constant to the
20123 appropriate type to avoid building incorrect trees, which
20124 eventually have problems with garbage collection.
20125
20126 2009-05-08 Joseph Myers <joseph@codesourcery.com>
20127
20128 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20129 -1 for complex floating-point types if honoring signed zeros.
20130
20131 2009-05-08 Jan Hubicka <jh@suse.cz>
20132
20133 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20134 argument; handle correctly when profile is absent.
20135 (build_cgraph_edges): Update.
20136 (rebuild_cgraph_edges): Update.
20137 * cgraph.c: Do not include varray.h.
20138 (cgraph_set_call_stmt_including_clones): New function.
20139 (cgraph_create_edge_including_clones): Likewise
20140 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
20141 (cgraph_update_edges_for_call_stmt): Handle clones.
20142 (cgraph_remove_node): Handle clone tree.
20143 (cgraph_remove_node_and_inline_clones): New function.
20144 (dump_cgraph_node): Dump clone tree.
20145 (cgraph_clone_node): Handle clone tree.
20146 (clone_function_name): Bring here from tree-inline.c.
20147 (cgraph_create_virtual_clone): New function.
20148 * cgraph.h (ipa_replace_map): Move here from ipa.h.
20149 (cgraph_clone_info): New function.
20150 (strut cgraph_node): Add clone_info and new clone tree pointers.
20151 (cgraph_remove_node_and_inline_clones,
20152 cgraph_set_call_stmt_including_clones,
20153 cgraph_create_edge_including_clones,
20154 cgraph_create_virtual_clone): Declare.
20155 (cgraph_function_versioning): Use VEC argument.
20156 (compute_call_stmt_bb_frequency): Update prototype.
20157 (cgraph_materialize_all_clones): New function.
20158 * ipa-cp.c (ipcp_update_cloned_node): Remove.
20159 (ipcp_create_replace_map): Update to VECtors.
20160 (ipcp_update_callgraph): Use virtual clones.
20161 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20162 (ipcp_update_profiling): Do not update local profiling.
20163 (ipcp_insert_stage): Use VECtors and virtual clones.
20164 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20165 (clone_of_p): New function.
20166 (cgraph_preserve_function_body_p): Use clone tree.
20167 (cgraph_optimize): Materialize clones.
20168 (cgraph_function_versioning): Update for VECtors.
20169 (save_inline_function_body): Use clone tree.
20170 (cgraph_materialize_clone): New function.
20171 (cgraph_materialize_all_clones): Likewise.
20172 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20173 * ipa.c: Include gimple.h.
20174 (cgraph_remove_unreachable_nodes): Use clone tree.
20175 * ipa-prop.c (ipa_note_param_call): Update call to
20176 compute_call_stmt_bb_frequencycall.
20177 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20178 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
20179 (copy_bb): Handle updating of clone tree; add new edge when new call
20180 appears.
20181 (expand_call_inline): Be strict about every call having edge.
20182 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20183 (delete_unreachable_blocks_update_callgraph): New function.
20184 (tree_function_versioning): Use VECtors; always remove unreachable
20185 blocks and fold conditionals.
20186 * tree-inline.h: Do not include varray.h.
20187 (tree_function_versioning): Remove.
20188 * Makefile.in (GTFILES): Remove tree-inline.c
20189 * passes.c (do_per_function): Do only functions having body.
20190 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20191 tree.
20192
20193 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
20194 Andrew Morrow <acm@google.com>
20195
20196 PR c/36892
20197 * c-common.c (c_common_attribute_table): Permit deprecated
20198 attribute to take an optional argument.
20199 (handle_deprecated_attribute): If the optional argument to
20200 __attribute__((deprecated)) is not a string ignore the attribute
20201 and emit a warning.
20202
20203 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20204 * c-typeck.c (build_component_ref): Likewise.
20205 (build_external_ref): Likewise.
20206
20207 * toplev.c (warn_deprecated_use): Add an attribute argument.
20208 Emit the message associated with __attribute__((deprecated)).
20209
20210 * toplev.h (warn_deprecated_use): Updated.
20211
20212 * doc/extend.texi: Document new optional parameter to
20213 __attribute__((deprecated))
20214
20215 2009-05-08 Michael Eager <eager@eagercon.com>
20216
20217 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20218 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20219
20220 2009-05-08 Richard Guenther <rguenther@suse.de>
20221
20222 PR tree-optimization/40062
20223 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20224 Avoid exponential behavior.
20225
20226 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20227
20228 PR rtl-optimization/33928
20229 PR 26854
20230 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20231 process_uses, build_single_def_use_links): New.
20232 (update_df): Update use_def_ref.
20233 (forward_propagate_into): Use get_def_for_use instead of use-def
20234 chains.
20235 (fwprop_init): Call build_single_def_use_links and let it initialize
20236 dataflow.
20237 (fwprop_done): Free use_def_ref.
20238 (fwprop_addr): Eliminate duplicate call to df_set_flags.
20239 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
20240 df_rd_simulate_one_insn): New.
20241 (df_rd_bb_local_compute_process_def): Update head comment.
20242 (df_chain_create_bb): Use the new RD simulation functions.
20243 * df.h (df_rd_simulate_artificial_defs_at_top,
20244 df_rd_simulate_one_insn): New.
20245 * opts.c (decode_options): Enable fwprop at -O1.
20246 * doc/invoke.texi (-fforward-propagate): Document this.
20247
20248 2009-05-08 Joseph Myers <joseph@codesourcery.com>
20249
20250 PR c/24581
20251 * c-typeck.c (build_binary_op): Handle arithmetic between one real
20252 and one complex operand specially.
20253 * tree-complex.c (some_nonzerop): Do not identify a real value as
20254 zero if flag_signed_zeros.
20255
20256 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20257
20258 PR rtl-optimization/33928
20259 * loop-invariant.c (record_use): Fix && vs. || mishap.
20260
20261 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
20262
20263 PR rtl-optimization/33928
20264 * loop-invariant.c (struct use): Add addr_use_p.
20265 (struct def): Add n_addr_uses.
20266 (struct invariant): Add cheap_address.
20267 (create_new_invariant): Set cheap_address.
20268 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
20269 (record_uses): Pass df_ref to record_use.
20270 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20271 used only as such.
20272
20273 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
20274
20275 * config/sh/sh.c: Do not include c-pragma.h.
20276
20277 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
20278
20279 * config/spu/spu.c: Remove include of c-common.h.
20280
20281 2009-05-07 Janis Johnson <janis187@us.ibm.com>
20282
20283 PR c/39037
20284 * c-common.h (mark_valid_location_for_stdc_pragma,
20285 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20286 clear_float_const_decimal64, float_const_decimal64_p): New.
20287 * c.opt (Wunsuffixed-float-constants): New.
20288 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20289 unsuffixed float constant, handle new warning.
20290 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20291 * c-decl.c (c_scope): New flag float_const_decimal64.
20292 (set_float_const_decimal64, clear_float_const_decimal64,
20293 float_const_decimal64_p): New.
20294 (push_scope): Set new flag.
20295 * c-parser.c (c_parser_translation_unit): Mark when it's valid
20296 to use STDC pragmas.
20297 (c_parser_external_declaration): Ditto.
20298 (c_parser_compound_statement_nostart): Ditto.
20299 * c-pragma.c (valid_location_for_stdc_pragma,
20300 mark_valid_location_for_stdc_pragma,
20301 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20302 handle_pragma_float_const_decimal64): New.
20303 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20304 * cp/semantics.c (valid_location_for_stdc_pragma_p,
20305 set_float_const_decimal64, clear_float_const_decimal64,
20306 float_const_decimal64_p): New dummy functions.
20307 * doc/extend.texi (Decimal Float): Remove statement that the
20308 pragma, and suffix for double constants, are not supported.
20309 * doc/invoke.texi (Warning Options): List new option.
20310 (-Wunsuffixed-float-constants): New.
20311
20312 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
20313
20314 * config/i386/i386.c: Do not include c-common.h.
20315
20316 2009-05-07 Mark Heffernan <meheff@google.com>
20317
20318 * doc/invoke.texi (Debugging Options): Document change of debugging
20319 dump location.
20320 * opts.c (decode_options): Make dump_base_name relative to
20321 aux_base_name directory.
20322
20323 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
20324
20325 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
20326 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
20327
20328 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
20329
20330 * Makefile.in (install-plugin): Simplify a bit.
20331
20332 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
20333
20334 * Makefile.in (OBJS-common): Add regcprop.o.
20335 (regcprop.o): New.
20336 * timevar.def (TV_CPROP_REGISTERS): New.
20337 * regrename.c (regrename_optimize): Return 0.
20338 (rest_of_handle_regrename): Delete.
20339 (pass_rename_registers): Point to regrename_optimize.
20340 (struct value_data_entry, struct value_data,
20341 kill_value_one_regno, kill_value_regno, kill_value,
20342 set_value_regno, init_value_data, kill_clobbered_value,
20343 kill_set_value, kill_autoinc_value, copy_value,
20344 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20345 replace_oldest_value_reg, replace_oldest_value_addr,
20346 replace_oldest_value_mem, copyprop_hardreg_forward_1,
20347 debug_value_data, validate_value_data): Move...
20348 * regcprop.c: ... here.
20349 (rest_of_handle_cprop): Delete.
20350 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20351
20352 2009-05-07 Jakub Jelinek <jakub@redhat.com>
20353
20354 PR middle-end/40057
20355 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20356 GEN_INT for 1 << bitnum.
20357 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20358 build_int_cst_type.
20359
20360 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
20361
20362 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
20363 Remove wrong description of "nand" operation.
20364
20365 2009-05-06 Richard Guenther <rguenther@suse.de>
20366 Adam Nemet <anemet@caviumnetworks.com>
20367
20368 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20369 comment. Add that if LHS is not a gimple register, then RHS1 has
20370 to be a single object (GIMPLE_SINGLE_RHS).
20371
20372 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
20373
20374 * expr.c (get_def_for_expr): Move it up in the file.
20375 (store_field): When expanding a bit-field store, look at the
20376 defining gimple stmt for the masking conversion.
20377
20378 2009-05-06 Janis Johnson <janis187@us.ibm.com>
20379
20380 PR middle-end/39986
20381 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20382 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20383 32-bit memcpy into long.
20384
20385 2009-05-06 Jakub Jelinek <jakub@redhat.com>
20386
20387 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20388 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20389 new_reg_loc_descr.
20390 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20391 instead of appending DW_OP_deref*.
20392
20393 2009-05-06 Michael Matz <matz@suse.de>
20394
20395 PR middle-end/40021
20396 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20397 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20398
20399 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
20400
20401 * Makefile.in (install-plugin): Fix srcdir handling.
20402
20403 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
20404
20405 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20406 when processing for not_regs_needed bitmap.
20407 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
20408 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
20409 handling it for rhs.
20410
20411 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20412
20413 * config/i386/i386.md (unnamed inc/dec peephole): Use
20414 optimize_insn_for_size_p instead of optimize_size.
20415 * config/i386/predicates.md (incdec_operand): Likewise.
20416 (aligned_operand): Likewise.
20417 * config/i386/sse.md (divv8sf3): Likewise.
20418 (sqrtv8sf2): Likewise.
20419
20420 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20421
20422 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20423
20424 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20425
20426 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
20427
20428 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20429 ssemodesuffixf2c with avxmodesuffixf2c.
20430
20431 2009-05-06 Joseph Myers <joseph@codesourcery.com>
20432
20433 PR c/40032
20434 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
20435
20436 2009-05-05 Jakub Jelinek <jakub@redhat.com>
20437
20438 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20439 (struct tree_base): Adjust spacing for 8 bit boundaries.
20440 (struct tree_decl_common): Add decl_by_reference_flag bit.
20441 (DECL_BY_REFERENCE): Adjust.
20442 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20443 print DECL_BY_REFERENCE bit.
20444 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20445 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20446 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20447 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
20448 unconditionally.
20449
20450 PR middle-end/39666
20451 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20452 range of the type, but default label is missing, add it with one
20453 of the existing labels instead of adding a new label for it.
20454
20455 2009-05-05 Joseph Myers <joseph@codesourcery.com>
20456
20457 * dwarf.h: Remove.
20458
20459 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
20460
20461 * Makefile.in (enable_plugin, plugin_includedir): New.
20462 (install): Depend on install-plugin.
20463 (PLUGIN_HEADERS): New.
20464 (install-plugin): New.
20465 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20466
20467 2009-05-05 Richard Guenther <rguenther@suse.de>
20468
20469 PR tree-optimization/40022
20470 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20471 the only vuse.
20472 (phivn_valid_p): Fix tuplification error, simplify.
20473 (phiprop_insert_phi): Add dumps.
20474 (propagate_with_phi): Simplify.
20475
20476 2009-05-05 Richard Guenther <rguenther@suse.de>
20477
20478 PR middle-end/40023
20479 * builtins.c (gimplify_va_arg_expr): Properly build the address.
20480
20481 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
20482
20483 * tree.h (strip_float_extensions): Remove duplicate declaration.
20484 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20485 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20486 block_ultimate_origin): Rearrange the declarations line to match the
20487 comment that indicates the .c file which the functions are defined.
20488 (dwarf2out_*, set_decl_rtl): Add comment.
20489 (get_base_address): Adjust comment.
20490 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20491 declarations line and add comment.
20492 (is_builtin_name): Add blank after function name, for clarity.
20493
20494 2009-05-04 Joseph Myers <joseph@codesourcery.com>
20495
20496 * attribs.c (decl_attributes): Use %qE for identifiers in
20497 diagnostics.
20498 * cgraphunit.c (verify_cgraph_node): Translate function names to
20499 locale character set in diagnostics.
20500 * coverage.c (get_coverage_counts): Use %qE for identifiers in
20501 diagnostics.
20502 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20503 Document that functions are named in UTF-8.
20504 * expr.c (expand_expr_real_1): Translate function names to locale
20505 character set in diagnostics.
20506 * gimplify.c (omp_notice_variable, omp_is_private,
20507 gimplify_scan_omp_clauses): Use %qE for identifiers in
20508 diagnostics.
20509 * langhooks.c (lhd_print_error_function): Translate function names
20510 to locale character set.
20511 * langhooks.h (decl_printable_name): Document that return value is
20512 in internal character set.
20513 * stmt.c: Include pretty-print.h
20514 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20515 diagnostics.
20516 (resolve_operand_name_1): Translate named operand name to locale
20517 character set.
20518 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20519 diagnostics.
20520 * toplev.c (announce_function): Translate function names to locale
20521 character set.
20522 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20523 (default_tree_printer): Use pp_identifier or translate identifiers
20524 to locale character set. Mark "<anonymous>" for translation.
20525 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20526 for identifiers in diagnostics.
20527 * tree.c (handle_dll_attribute): Use %qE for identifiers in
20528 diagnostics.
20529 * varasm.c (output_constructor): Use %qE for identifiers in
20530 diagnostics.
20531
20532 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
20533
20534 * configure.ac: use ` ` instead of $()
20535 * configure: Regenerate.
20536
20537 2009-05-05 Ben Elliston <bje@au.ibm.com>
20538
20539 * config/pa/linux-atomic.c: Eliminate conditional include of
20540 errno.h on non-LP64 systems to simplify build requirements.
20541
20542 2009-05-04 Joseph Myers <joseph@codesourcery.com>
20543
20544 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20545 diagnostics.
20546 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20547 and pass value to identifier_to_locale.
20548 (warn_variable_length_array): Make name a tree.
20549 (grokdeclarator): Separate diagnostic texts for named and unnamed
20550 declarators. Use %qE for named declarators.
20551 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20552 diagnostics.
20553 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20554 identifiers in diagnostics.
20555 * c-typeck.c (push_member_name, start_init): Pass identifiers to
20556 identifier_to_locale. Mark "anonymous" strings for translation.
20557
20558 2009-05-04 Michael Eager <eager@eagercon.com>
20559
20560 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
20561 address for DImode/DFmode only if double-precision FP regs.
20562
20563 2009-05-04 Michael Eager <eager@eagercon.com>
20564
20565 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
20566 TARGET_SINGLE_FLOAT check.
20567
20568 2009-05-04 Michael Eager <eager@eagercon.com>
20569
20570 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
20571
20572 2009-05-04 Michael Eager <eager@eagercon.com>
20573
20574 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
20575 * config/rs6000/t-xilinx: New
20576
20577 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
20578
20579 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
20580 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
20581 * gcc/explow.c (memory_address): Use target hook.
20582 * gcc/targhooks.c (default_legitimize_address): New.
20583 * gcc/targhooks.h (default_legitimize_address): New.
20584 * gcc/target.h (legitimize_address): New.
20585 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
20586 (TARGET_INITIALIZER): Include it.
20587 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
20588
20589 * config/bfin/bfin-protos.h (legitimize_address): Remove.
20590 * config/bfin/bfin.c (legitimize_address): Remove.
20591 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
20592 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
20593 Remove.
20594 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
20595 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
20596
20597 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
20598 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
20599 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
20600 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
20601 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
20602 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
20603 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
20604 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
20605 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
20606 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
20607 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
20608 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
20609 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
20610 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
20611 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
20612 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
20613 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
20614 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
20615 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
20616 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
20617 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
20618 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
20619 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
20620
20621 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
20622 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
20623 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
20624 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
20625 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
20626 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
20627 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
20628 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
20629 (thumb_legitimize_address): Delete.
20630 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
20631 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
20632 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
20633 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
20634 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
20635 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
20636 Delete.
20637 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
20638 Delete.
20639
20640 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
20641 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
20642 * config/m32r/m32r.c (m32r_legitimize_address): New.
20643 * config/m68k/m68k.c (m68k_legitimize_address): New.
20644 * config/score/score.c (score_legitimize_address): Standardize.
20645 * config/score/score3.c (score3_legitimize_address): Standardize.
20646 * config/score/score3.h (score3_legitimize_address): Adjust.
20647 * config/score/score7.c (score7_legitimize_address): Standardize.
20648 * config/score/score7.h (score7_legitimize_address): Adjust.
20649 * config/sh/sh.c (sh_legitimize_address): New.
20650 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
20651
20652 * gcc/config/s390/s390.c (legitimize_address): Rename to...
20653 (s390_legitimize_address): ... this.
20654 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
20655 (sparc_legitimize_address): ... this.
20656 * gcc/config/i386/i386.c (legitimize_address): Rename to...
20657 (ix86_legitimize_address): ... this.
20658 * gcc/config/avr/avr.c (legitimize_address): Rename to...
20659 (avr_legitimize_address): ... this.
20660 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
20661 (mn10300_legitimize_address): ... this.
20662 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
20663 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
20664 (alpha_expand_mov): Adjust call.
20665
20666 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
20667 * config/spu/spu.c (spu_legitimize_address): Likewise.
20668 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
20669 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
20670
20671 2009-05-04 Joseph Myers <joseph@codesourcery.com>
20672
20673 * intl.c (locale_encoding, locale_utf8): New.
20674 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
20675 * intl.h (locale_encoding, locale_utf8): Declare.
20676 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
20677 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
20678 New.
20679 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
20680 argument.
20681 (pp_tree_identifier): Define to call pp_base_tree_identifier.
20682 (pp_base_tree_identifier): Declare as function.
20683 (identifier_to_locale): Declare.
20684 * Makefile.in (pretty-print.o): Update dependencies.
20685 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
20686
20687 2009-05-04 Richard Guenther <rguenther@suse.de>
20688
20689 PR middle-end/40015
20690 * builtins.c (fold_builtin_memory_op): Do not decay to element
20691 type if the size matches the whole array.
20692
20693 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
20694
20695 * expmed.c (synth_mult): When trying out a shift, pass the result
20696 of a signed shift.
20697
20698 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
20699
20700 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
20701 (shiftsub1_cost): New.
20702 (init_expmed): Compute shiftsub1_cost.
20703 (synth_mult): Optimize multiplications by constants of the form
20704 -(2^^m-1) for some constant positive integer m.
20705
20706 2009-05-03 Richard Guenther <rguenther@suse.de>
20707
20708 PR c/39983
20709 * c-typeck.c (array_to_pointer_conversion): Do not built
20710 ADDR_EXPRs of arrays of pointer-to-element type.
20711 * c-gimplify.c (c_gimplify_expr): Revert change fixing
20712 up wrong ADDR_EXPRs after-the-fact.
20713 * c-common.c (strict_aliasing_warning): Strip pointer
20714 conversions for obtaining the original type.
20715 * builtins.c (fold_builtin_memset): Handle array types.
20716 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
20717 and array types
20718
20719 2009-05-03 Richard Guenther <rguenther@suse.de>
20720
20721 PR middle-end/23329
20722 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
20723 Do not lose casts from array types with unknown extent to array
20724 types with known extent.
20725 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
20726 alias set compatibility.
20727
20728 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
20729
20730 * flags.h (extra_warnings): Delete.
20731 * toplev.c (process_options): Handle Wuninitialized here.
20732 * opts.c (extra_warnings): Delete.
20733 (set_Wextra): Delete.
20734 (common_handle_option): -Wextra can be handled automatically.
20735 * c-opts.c (c_common_handle_option): Delete obsolete code.
20736 (c_common_post_options): Simplify comment.
20737 * common.opt (W): Add Var.
20738 (Wextra): Add Var.
20739 (Wuninitialized): Initialize to -1.
20740
20741 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
20742 Richard Guenther <rguenther@suse.de>
20743
20744 * expr.c (get_def_for_expr): New function.
20745 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
20746 SSA rather than trees.
20747 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
20748 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
20749
20750 2009-05-03 Joseph Myers <joseph@codesourcery.com>
20751
20752 * c-common.c (reswords): Add _Imaginary.
20753 * c-common.c (enum rid): Add RID_IMAGINARY.
20754
20755 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
20756
20757 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
20758 Patch by Richard Guenther.
20759
20760 2009-05-03 Anatoly Sokolov <aesok@post.ru>
20761
20762 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
20763 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
20764 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
20765 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
20766 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
20767 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
20768 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
20769 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
20770 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
20771 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
20772 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
20773 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
20774 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
20775 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
20776 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
20777 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
20778 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
20779 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
20780
20781 2009-05-02 Richard Guenther <rguenther@suse.de>
20782
20783 PR tree-optimization/39940
20784 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
20785 doing so.
20786
20787 2009-05-02 Richard Guenther <rguenther@suse.de>
20788
20789 PR middle-end/40001
20790 * tree-ssa.c (execute_update_addresses_taken): Properly check
20791 if we can mark a variable DECL_GIMPLE_REG_P.
20792 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
20793 back to the end of the function.
20794 (is_gimple_reg_type): Remove complex type special casing.
20795 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
20796 if not optimizing.
20797
20798 2009-05-02 Ben Elliston <bje@au.ibm.com>
20799
20800 * doc/collect2.texi (Collect2): Document search path behaviour
20801 when configured with --with-ld.
20802
20803 2009-05-02 Jan Hubicka <jh@suse.cz>
20804
20805 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
20806 parameter; update callers.
20807 (coalesce_cost_edge): EH edges are costier because they needs
20808 splitting even if not critical and even more costier when there are
20809 multiple EH predecestors.
20810
20811 2009-05-02 Jan Hubicka <jh@suse.cz>
20812
20813 * except.c (remove_eh_handler_and_replace): Handle updating after
20814 removing TRY blocks.
20815
20816 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
20817
20818 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
20819
20820 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
20821
20822 * varasm.c: Do not include c-pragma.h.
20823 * attribs.c: Do not incude c-common.h.
20824
20825 2009-05-01 Michael Matz <matz@suse.de>
20826
20827 * calls.c (initialize_argument_information): Handle SSA names like
20828 decls with a non MEM_P DECL_RTL.
20829
20830 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
20831
20832 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
20833 * ipa-utils.c: Likewise.
20834 * ipa-type-escape.c: Likewise.
20835 * cgraphunit.c Do not include c-common.h.
20836 * ipa-pure-const.c: Likewise.
20837 * tree-if-conv.c: Likewise.
20838 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
20839 * ipa-struct-reorg.c: Likewise.
20840 * tree-nomudflap.c: Likewise.
20841 * tree-ssa-structalias.c: Likewise.
20842
20843 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
20844
20845 * store-motion.c: Many cleanups to make this pass a first-class
20846 citizen instead of an appendix to gcse load motion. Add TODO list
20847 to make this pass faster/cleaner/better.
20848
20849 (struct ls_expr): Post gcse.c-split cleanups.
20850 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
20851 "stores" field to "avail_stores".
20852 (pre_ldst_mems): Rename to store_motion_mems.
20853 (pre_ldst_table): Rename to store_motion_mems_table.
20854 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
20855 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
20856 (ldst_entry): Rename to st_expr_entry, update users.
20857 (free_ldst_entry): Rename to free_st_expr_entry, update users.
20858 (free_ldst_mems): Rename to free_store_motion_mems, update users.
20859 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
20860 update caller.
20861 (first_ls_expr): Rename to first_st_expr, update users.
20862 (next_ls_expr): Rename to next_st_expr, update users.
20863 (print_ldst_list): Rename to print_store_motion_mems. Print names of
20864 fields properly for store motion instead of names inherited from load
20865 motion in gcse.c.
20866 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
20867 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
20868 are done with it.
20869
20870 (ae_kill): Rename to st_kill, update users.
20871 (ae_gen): Rename to st_avloc, update users.
20872 (transp): Rename to st_transp, update users.
20873 (pre_insert_map): Rename to st_insert_map, update users.
20874 (pre_delete_map): Rename to st_delete_map, update users.
20875 (insert_store, build_store_vectors, free_store_memory,
20876 one_store_motion_pass): Update for abovementioned changes.
20877
20878 (gcse_subst_count, gcse_create_count): Remove.
20879 (one_store_motion_pass): New statistics counters "n_stores_deleted"
20880 and "n_stores_created", local variables.
20881
20882 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
20883 use for_each_rtx.
20884
20885 (regvec, compute_store_table_current_insn): Remove.
20886 (reg_set_info, reg_clear_last_set): Remove.
20887 (compute_store_table): Use DF caches instead of local dataflow
20888 solvers.
20889
20890 2009-05-01 Joseph Myers <joseph@codesourcery.com>
20891
20892 * c-objc-common.c (c_tree_printer): Print identifiers with
20893 pp_identifier, not pp_string. Mark "({anonymous})" for
20894 translation.
20895 * c-pretty-print.c (pp_c_ws_string): New.
20896 (pp_c_cv_qualifier, pp_c_type_specifier,
20897 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
20898 pp_c_storage_class_specifier, pp_c_function_specifier,
20899 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
20900 pp_c_primary_expression, pp_c_postfix_expression,
20901 pp_c_unary_expression, pp_c_shift_expression,
20902 pp_c_relational_expression, pp_c_equality_expression,
20903 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
20904 use pp_string and pp_c_ws_string in place of pp_identifier and
20905 pp_c_identifier for non-identifiers. Mark English strings for
20906 translation.
20907 * c-pretty-print.h (pp_c_ws_string): Declare.
20908
20909 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
20910 Roland McGrath <roland@redhat.com>
20911
20912 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
20913 (ENABLE_LD_BUILDID): New configuration option.
20914 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
20915 (LINK_BUILDID_SPEC): New macro.
20916 (init_spec): If defined, prepend it between LINK_EH_SPEC and
20917 link_spec.
20918 * doc/install.texi: Document --enable-linker-build-id option.
20919 * configure: Rebuild.
20920 * config.in: Rebuild.
20921
20922 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
20923
20924 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
20925 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
20926 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
20927 MIPS_GP_SAVE_AREA_SIZE.
20928 * config/mips/mips.c (struct mips_frame_info): Update comment
20929 before arg_pointer_offset and hard_frame_pointer_offset.
20930 (mips_compute_frame_info): Update diagram before function: to
20931 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
20932 indicate the position of frame_pointer_rtx with -fstack-protector and
20933 to show args_size. Don't allocate cprestore area for leaf functions
20934 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
20935 cprestore_size.
20936 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
20937
20938 2009-04-30 Michael Matz <matz@suse.de>
20939
20940 PR tree-optimization/39955
20941 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
20942
20943 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
20944
20945 * ira.c (setup_cover_and_important_classes): Use safe macro
20946 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
20947 directly.
20948 * genpreds.c (write_tm_preds_h): Output suitable definition of
20949 REG_CLASS_FOR_CONSTRAINT.
20950
20951 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
20952
20953 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
20954 instead of an int.
20955 * bitmap.c (bitmap_descriptor): Likewise.
20956 * ggc-common.c (loc_descriptor): Likewise.
20957 * varray.c (varray_descriptor): Likewise.
20958 * vec.c (vec_descriptor): Likewise.
20959
20960 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
20961
20962 * Makefile.in (dce.o): Add $(EXCEPT_H).
20963 * dce.c: Include except.h and delete redundant vector definitions.
20964 (deletable_insn_p): Return false for non-call insns that can throw
20965 if DF is running.
20966
20967 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
20968
20969 * gcse.c (ae_gen): Remove.
20970 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
20971 and make non-static function to make it available in store-motion.c.
20972 Update call sites with search-and-replace.
20973 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
20974 extract_mentioned_regs, extract_mentioned_regs_helper,
20975 find_moveable_store, compute_store_table, load_kills_store, find_loads,
20976 store_killed_in_insn, store_killed_after, store_killed_before,
20977 build_store_vectors, insert_insn_start_basic_block, insert-store,
20978 remove_reachable_equiv_notes, replace_store_insn, delete_store,
20979 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
20980 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
20981 * store-motion.c: ...new file. Also copy data structures from gcse.c
20982 and clean up to remove parts not used by store motion.
20983 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
20984 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
20985
20986 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20987
20988 PR target/38571
20989 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
20990 when optimizing for size.
20991
20992 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
20993
20994 * gcse.c (gcse_constant_p): Fix typo in last change.
20995
20996 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
20997
20998 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
20999
21000 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
21001
21002 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
21003
21004 2009-04-29 James E. Wilson <wilson@codesourcery.com>
21005
21006 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
21007 CONST_HIGH_PART result.
21008
21009 2009-04-29 Anatoly Sokolov <aesok@post.ru>
21010
21011 * config/avr/avr.c (initial_elimination_offset): Rename to
21012 avr_initial_elimination_offset.
21013 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
21014 change return type to bool.
21015 (avr_can_eliminate): New function.
21016 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
21017 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
21018 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
21019 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
21020 avr_initial_elimination_offset.
21021 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
21022 (avr_initial_elimination_offset): Define.
21023
21024 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
21025 Steven Bosscher <steven@gcc.gnu.org>
21026
21027 PR rtl-optimization/39938
21028 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
21029 * cfgrtl.c: Include insn-attr.h.
21030 (rest_of_pass_free_cfg): New function.
21031 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
21032 * resource.c (init_resource_info): Remove call to df_analyze.
21033
21034 2009-04-29 Richard Guenther <rguenther@suse.de>
21035
21036 PR target/39943
21037 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
21038 allow conversion to signed integers.
21039
21040 2009-04-29 Richard Guenther <rguenther@suse.de>
21041
21042 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
21043 shifts of floating point vectors if the shift amount is
21044 a constant multiple of the element size.
21045
21046 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
21047 Michael Matz <matz@suse.de>
21048
21049 PR middle-end/39927
21050 PR bootstrap/39929
21051 * tree-outof-ssa.c (emit_partition_copy): New function.
21052 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
21053 insert_part_to_rtx_on_edge): Perform the partition base var
21054 copy using emit_partition_copy.
21055 (insert_value_copy_on_edge): Convert constants to the right mode.
21056 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
21057 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
21058
21059 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21060
21061 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
21062 scan backwards to try to find a constant to initialize it.
21063
21064 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
21065 insn before the loop_end instruction, don't look past labels.
21066
21067 2009-04-29 Richard Guenther <rguenther@suse.de>
21068
21069 PR middle-end/39937
21070 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
21071 loose type conversions.
21072 (forward_propagate_addr_expr): Fix tuplification bug. Remove
21073 stmts only if there are no uses of its definition.
21074
21075 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21076
21077 * config/bfin/bfin.h (splitting_loops): Declare.
21078 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
21079 Reorder bit definitions to be ascending.
21080 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
21081 * config/bfin/bfin.c (splitting_loops): New variable.
21082 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
21083 (struct loop_info): Remove members INIT and LOOP_INIT.
21084 (bfin_optimize_loop): Don't set them. Reorder the code that generates
21085 the LSETUP sequence. Allow LC to be loaded from any register, but
21086 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
21087 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
21088 set to 1.
21089 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
21090 of reload_completed.
21091
21092 From Jie Zhang:
21093 * config/bfin/bfin.md (movsi_insn): Refine constraints.
21094
21095 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
21096
21097 * Makefile.in (PLUGIN_VERSION_H): New.
21098 (OBJS-common): Remove plugin-version.o.
21099 (plugin.o): Depend on (PLUGIN_VERSION_H).
21100 (plugin-version.o): Remove.
21101 * configure: Regenerate
21102 * configure.ac: Create plugin-version.h.
21103 * gcc-plugin.h (plugin_gcc_version): Remove.
21104 (plugin_default_version_check): Change signature.
21105 * plugin-version.c: Remove.
21106 * plugin.c: Include plugin-version.h.
21107 (str_plugin_gcc_version_name): Remove.
21108 (try_init_one_plugin): Pass gcc version to plugin_init.
21109 (plugin_default_version_check): Both gcc and plugin versions are now
21110 arguments.
21111
21112 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21113
21114 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
21115 problematic last insns. Test for TYPE_CALL rather than CALL_P.
21116 Remove special case testing for last insn of inner loops. Don't fail
21117 if the loop ends with a jump, emit an extra nop instead.
21118
21119 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
21120 DREGS rather than comparing directly. Remove code that tries to
21121 account for latencies.
21122
21123 2009-04-29 Richard Guenther <rguenther@suse.de>
21124
21125 PR tree-optimization/39941
21126 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21127 eliminating an indirect call.
21128
21129 2009-04-29 Richard Guenther <rguenther@suse.de>
21130
21131 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21132 parameter. Allow invariants as base if !require_lvalue.
21133 (verify_gimple_assign_single): Adjust.
21134
21135 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
21136
21137 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21138 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
21139 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21140 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
21141 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21142 a VEC_SELECT.
21143 * config/bfin/bfin.c (bfin_expand_builtin,
21144 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
21145
21146 2009-04-28 Richard Guenther <rguenther@suse.de>
21147
21148 * tree-vect-loop.c (get_initial_def_for_induction): Use
21149 correct types for pointer increment.
21150
21151 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21152
21153 * toplev.c (print_version): Update GMP version string calculation.
21154
21155 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
21156
21157 PR rtl-optimization/39938
21158 * resource.c (init_resource_info): Add call to df_analyze.
21159
21160 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21161
21162 * config/alpha/alpha.md (usegp): Cast the result of
21163 alpha_find_lo_sum_using_gp to enum attr_usegp.
21164 * config/alpha/alpha.c (override_options): Remove end-of-structure
21165 marker element from cpu_table. Use array size of cpu_table to handle
21166 -mcpu and -mtune options.
21167 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21168
21169 2009-04-28 Joseph Myers <joseph@codesourcery.com>
21170
21171 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21172 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
21173 tune_32 and tune_64.
21174 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21175 support on PowerPC.
21176 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21177 * config/rs6000/option-defaults.h: ... here. New file.
21178 (OPT_64, OPT_32): Define.
21179 (MASK_64BIT): Define to 0 if not already defined.
21180 (OPT_ARCH64, OPT_ARCH32): Define.
21181 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21182 and tune_64.
21183
21184 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21185
21186 * config/arm/arm.c (arm_override_options): Emit error on using
21187 fpa with AAPCS.
21188
21189 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21190
21191 PR rtl-optimization/39914
21192 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21193 registers for allocnos created from user-defined variables only
21194 when not optimizing.
21195
21196 2009-04-28 Richard Guenther <rguenther@suse.de>
21197
21198 PR middle-end/39937
21199 * fold-const.c (fold_binary): Use distribute_real_division only
21200 on float types.
21201
21202 2009-04-28 Steve Ellcey <sje@cup.hp.com>
21203
21204 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21205 add hpux-stdint.h to tm_file.
21206 (hppa[12]*-*-hpux11*): Ditto.
21207 (ia64*-*-hpux*): Ditto.
21208 * config/hpux-stdint.h: New.
21209 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
21210 __STDC_EXT__ for all compiles.
21211 * config/pa/pa-hpux.h: Ditto.
21212 * config/pa/pa-hpux10.h: Ditto.
21213 * config/pa/pa-hpux11.h: Ditto.
21214
21215 2009-04-28 Catherine Moore <clm@codesourcery.com>
21216
21217 * debug.h (set_name): Add comment.
21218
21219 2009-04-28 Andrew Pinski <pinskia@gmail.com>
21220
21221 PR target/39929
21222 * config/darwin.c (machopic_gen_offset): Check
21223 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21224 * config/arm/arm.c (require_pic_register): Likewise.
21225
21226 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
21227
21228 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21229 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21230 m32c_promote_prototypes): Delete.
21231
21232 2009-04-28 Michael Matz <matz@suse.de>
21233
21234 PR middle-end/39922
21235 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21236 constants.
21237
21238 2009-04-28 Richard Guenther <rguenther@suse.de>
21239
21240 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
21241
21242 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21243
21244 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21245 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21246 * config/arm/arm-tune.md: Regenerate.
21247
21248 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
21249
21250 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21251 block if there are complex incoming edges.
21252 (sel_merge_blocks): Remove useless assert.
21253 (sel_redirect_edge_and_branch): Check that edge was redirected.
21254 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21255 (sel_find_rgns): Delete declaration.
21256 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21257 the region when it is not a preheader.
21258
21259 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21260
21261 PR c/39323
21262 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21263
21264 2009-04-28 Richard Guenther <rguenther@suse.de>
21265
21266 * tree.h (SSA_NAME_VALUE): Remove.
21267 (struct tree_ssa_name): Remove value_handle member.
21268 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21269 array for jump threading.
21270 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21271 SSA_NAME_VALUEs.
21272 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21273 * tree-flow.h (threadedge_initialize_values): Declare.
21274 (threadedge_finalize_values): Likewise.
21275 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21276 (SSA_NAME_VALUE): Define.
21277 (threadedge_initialize_values): New function.
21278 (threadedge_finalize_values): Likewise.
21279 * tree-ssa-dom.c (ssa_name_values): New global variable.
21280 (SSA_NAME_VALUE): Define.
21281 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
21282
21283 2009-04-28 Ira Rosen <irar@il.ibm.com>
21284
21285 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21286 Use REPORT_VECTORIZED_LOCATIONS instead
21287 REPORT_VECTORIZED_LOOPS.
21288 * tree-vectorizer.c (vect_verbosity_level): Make static.
21289 (vect_loop_location): Rename to vect_location.
21290 (vect_set_verbosity_level): Update comment.
21291 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21292 and vect_location.
21293 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21294 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21295 instead REPORT_UNVECTORIZED_LOOPS.
21296 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21297 and vect_loop_def to vect_external_def and vect_internal_def.
21298 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
21299 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
21300 REPORT_UNVECTORIZED_LOCATIONS.
21301 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
21302 and vect_used_in_loop and to vect_unused_in_scope and
21303 vect_used_in_scope.
21304 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21305 (vect_verbosity_level): Remove declaration.
21306 (vect_analyze_operations): Likewise.
21307 (vect_analyze_stmt): Declare.
21308 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21309 REPORT_UNVECTORIZED_LOCATIONS.
21310 (vect_get_loop_niters): Fix indentation.
21311 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21312 (vect_analyze_loop_operations): New function.
21313 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21314 vect_analyze_operations.
21315 (vect_is_simple_reduction): Use new names.
21316 (vectorizable_live_operation, vect_transform_loop): Likewise.
21317 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21318 to specify whether the data references can be a part of interleaving
21319 chain.
21320 (vect_analyze_data_ref_dependence): Use new names.
21321 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
21322 (vect_create_addr_base_for_vector_ref): Remove redundant code.
21323 * tree-vect-patterns.c (widened_name_p): Use new names.
21324 (vect_recog_dot_prod_pattern): Likewise.
21325 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
21326 (process_use, vect_mark_stmts_to_be_vectorized,
21327 vect_model_simple_cost, vect_model_store_cost,
21328 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
21329 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21330 vectorizable_operation, vectorizable_type_demotion,
21331 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
21332 vectorizable_condition): Likewise.
21333 (vect_analyze_operations): Split into vect_analyze_loop_operations
21334 and ...
21335 (vect_analyze_stmt): ... new function.
21336 (new_stmt_vec_info): Use new names.
21337 (vect_is_simple_use): Use new names and fix comment.
21338 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
21339 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
21340
21341 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
21342
21343 PR target/39911
21344 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21345 and integer modes for x87 operands. Do not ICE for unsupported size,
21346 generate error instead. Generate error for unsupported operand types.
21347 ['z']: Do not handle HImode memory operands specially. Warning
21348 for floating-point operands. Fallthru to 'Z' for unsupported operand
21349 types. Do not ICE for unsupported size, generate error instead.
21350 (output_387_binary_op): Use %Z to output operands.
21351 (output_fp_compare): Ditto.
21352 (output_387_reg_move): Ditto.
21353
21354 2009-04-28 Ben Elliston <bje@au.ibm.com>
21355
21356 PR c++/35652
21357 Revert:
21358
21359 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21360
21361 * builtins.c (c_strlen): Do not warn here.
21362 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21363 * c-common.c (pointer_int_sum): Take an explicit location.
21364 Warn about offsets out of bounds.
21365 * c-common.h (pointer_int_sum): Adjust declaration.
21366
21367 2009-04-27 Ian Lance Taylor <iant@google.com>
21368
21369 * collect2.c (is_ctor_dtor): Change type of ret field in struct
21370 names to symkind.
21371 * dce.c (run_fast_df_dce): Change type of old_flags to int.
21372 * df-core.c (df_set_flags): Change return type to int. Change
21373 type of old_flags to int.
21374 (df_clear_flags): Likewise.
21375 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21376 (df_get_conditional_uses): Likewise.
21377 * df.h (df_set_flags, df_clear_flags): Update declarations.
21378 * dwarf2out.c (struct indirect_string_node): Change type of form
21379 field to enum dwarf_form.
21380 (AT_string_form): Change return type to enum dwarf_form.
21381 * fixed-value.c (fixed_compare): Add cast to enum type.
21382 * fwprop.c (update_df): Change 0 to VOIDmode.
21383 * gensupport.c: Change 0 to UNKNOWN.
21384 * gimple.h (gimple_cond_code): Add cast to enum type.
21385 * haifa-sched.c (reemit_notes): Add cast to enum type.
21386 * hooks.c (hook_int_void_no_regs): Remove function.
21387 * hooks.h (hook_int_void_no_regs): Remove declaration.
21388 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
21389 * predict.c (combine_predictions_for_insn): Add casts to enum type.
21390 * real.c (real_arithmetic): Add cast to enum type.
21391 (real_compare): Likewise.
21392 * target.h (struct gcc_target): Change return type of
21393 branch_target_register_class to enum reg_class.
21394 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21395 default_branch_target_register_class.
21396 * targhooks.c (default_branch_target_register_class): New function.
21397 * targhooks.h (default_branch_target_register_class): Declare.
21398 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
21399 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21400 cast to int.
21401 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21402 ERROR_MARK.
21403 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21404 vect_uninitialized_def. Change 0 to ERROR_MARK.
21405 * tree-vect-stmts.c (supportable_widening_operation): Don't
21406 initialize icode1 and icode2.
21407 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
21408 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21409 and to STD_C89.
21410 (cmn_err_flag_specs): Change 0 to STD_C89.
21411 (cmn_err_char_table): Likewise.
21412 * config/arm/arm.c (get_arm_condition_code): Change type of code
21413 to enum arm_cond_code.
21414 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21415 (IWMMXT_BUILTIN2): Likewise.
21416 (neon_builtin_type_bits): Don't define typedef.
21417 (neon_builtin_datum): Change type of bits field to int.
21418 (arm_expand_neon_args): Add cast to enum type.
21419 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21420 TLS_MODEL_NONE.
21421 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
21422 casts to enum type.
21423 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21424 MIPS_FP_COND_f.
21425 * config/mips/mips.md (jal_macro): Return enum constant.
21426 (single_insn): Likewise.
21427 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21428 CODE_FOR_nothing.
21429 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21430 casts to enum type.
21431 * config/s390/s390.c (s390_tune_flags): Change type to int.
21432 (s390_arch_flags): Likewise.
21433 (s390_handle_arch_option): Change flags field of struct pta to int.
21434 * config/s390/s390.h (s390_tune_flags): Update declaration.
21435 (s390_arch_flags): Likewise.
21436 * config/sh/sh.c (prepare_move_operands): Compare
21437 tls_symbolic_operand result with enum constant.
21438 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21439 (sh_expand_prologue): Add cast to enum type.
21440 (sh_expand_epilogue): Likewise.
21441 (tls_symbolic_operand): Change return type to enum tls_model.
21442 (fpscr_set_from_mem): Add cast to enum type.
21443 (legitimize_pic_address): Compare tls_symbolic_operand result with
21444 enum constant.
21445 (sh_target_reg_class): Change return type to enum reg_class.
21446 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21447 PROCESSOR_xxx.
21448 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21449 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
21450 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21451 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21452 (delayed_branch, tls_call_delay): Likewise.
21453 (eligible_for_sibcall_delay): Likewise.
21454 (eligible_for_return_delay): Likewise.
21455 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21456 (spu_expand_builtin_1): Likewise.
21457
21458 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21459 for all types of conversions.
21460 (output_init_element): Issue -Wc++-compat warning if needed when
21461 initializing a bitfield with enum type.
21462 * c-parser.c (c_parser_expression): Set original_type to
21463 original_type of right hand operand of comma operator.
21464
21465 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21466
21467 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21468 grammar nits.
21469 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
21470 * doc/cpp.texi (Standard Predefined Macros)
21471 (Implementation-defined behavior): Likewise.
21472 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
21473 * doc/gimple.texi (GIMPLE Exception Handling)
21474 (@code{GIMPLE_ASSIGN}): Likewise.
21475 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
21476 * doc/invoke.texi (Warning Options, Optimize Options)
21477 (AVR Options, Darwin Options): Likewise.
21478 (Optimize Options): Reformulate -fwhole-program description.
21479 * doc/loop.texi (Lambda): Likewise.
21480 * doc/md.texi (Output Template, Define Constraints)
21481 (Standard Names, Insn Splitting): Likewise.
21482 * doc/options.texi (Option properties): Likewise.
21483 * doc/passes.texi (Tree-SSA passes): Likewise.
21484 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21485 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21486 (File Names and DBX): Likewise.
21487 * doc/trouble.texi (Incompatibilities): Likewise.
21488
21489 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
21490
21491 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21492 instruction is correct.
21493
21494 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
21495
21496 Allow non-constant arguments to conversion intrinsics.
21497 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21498 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21499 * spu.c (print_operand): Handle 'v' and 'w'.
21500 (exp2_immediate_p, spu_gen_exp2): Define.
21501 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21502 spu_convtf_1): Update parameter descriptions.
21503 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
21504 * constraints.md ('v', 'w'): New.
21505 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21506 Remove.
21507 (i2f, I2F): New define_mode_attr.
21508 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21509 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21510 fixuns_truncv4sfv4si2): Update to use mode attribute.
21511 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21512 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21513 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21514 patterns for combine.
21515
21516 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
21517
21518 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21519 (cprop, hoist, pre, store_motion): New debug counters.
21520 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21521 is not an RTL pass anymore.
21522 (pass_profiling): Remove extern decl for pass removed in 2005.
21523 (pass_gcse, pass_jump_bypass): Remove.
21524 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21525 to 0 for clean state.
21526 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21527 * cse.c (gate_handle_cse_after_global_opts,
21528 rest_of_handle_cse_after_global_opts): New functions.
21529 (pass_cse_after_global_opts): New pass, does local CSE.
21530 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21531 (TV_CPROP): New timevar.
21532 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21533 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21534 (gcse_main, recompute_all_luids): Remove.
21535 (compute_hash_table_work): Call max_reg_num instead of reading
21536 max_gcse_regno.
21537 (cprop_jump): Don't set run_jump_opt_after_gcse.
21538 (constprop_register): Always allow to alter jumps.
21539 (cprop_insn): Likewise.
21540 (do_local_cprop): Likewise.
21541 (local_cprop_pass): Likewise. Return non-zero if something changed.
21542 (cprop): Remove function, fold interesting bits into one_cprop_pass.
21543 (find_implicit_sets): Add note about missed optimization opportunity.
21544 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21545 pass_rtl_cprop execute function.
21546 Don't bother tracking the pass number, each pass gets its own dumpfile
21547 now anyway.
21548 Always allow to alter jumpsand bypass jumps.
21549 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21550 will just find no suitable set.
21551 (pre_edge_insert): Fix dumping, this function is for PRE only.
21552 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21553 pass_rtl_pre execute function.
21554 (hoist_code): Return non-zero if something changed. Keep track of
21555 substitutions and insertions for statistics gathering similar to PRE.
21556 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21557 called from the pass_rtl_hoist execute function. Show pass statistics.
21558 (compute_store_table): Use max_reg_num directly instead of using the
21559 formerly global max_gcse_regno.
21560 (build_store_vectors): Likewise.
21561 (replace_store_insn): Fix dumping.
21562 (store_motion): Rename to ...
21563 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
21564 pass, called from the pass_rtl_store_motion execute function. Keep
21565 track of substitutions and insertions for statistics gathering similar
21566 to PRE.
21567 (bypass_jumps): Remove, fold interesting bits into ...
21568 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
21569 from the pass_rtl_cprop execute function.
21570 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
21571 pass_jump_bypass): Remove.
21572 (gate_handle_gcse, rest_of_handle_gcse): Remove.
21573 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
21574 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
21575 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
21576 (gate_rtl_store_motion, execute_rtl_store_motion,
21577 pass_rtl_store_motion): New.
21578 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
21579 make it clear that -fcse-skip-blocks is a no-op for backward compat.
21580 * passes.c (init_optimization_passes): Remove pass_gcse and
21581 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
21582 and cse_after_global_opts in place of pass_gcse. Schedule cprop
21583 instead of pass_jump_bypass.
21584
21585 2009-04-27 Richard Guenther <rguenther@suse.de>
21586
21587 PR middle-end/39928
21588 * gimplify.c (gimplify_expr): If we are required to create
21589 a temporary make sure it ends up as register.
21590
21591 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
21592
21593 PR target/39903
21594 * config/i386/i386.c (construct_container): Don't call
21595 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
21596 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
21597
21598 2009-04-27 Michael Matz <matz@suse.de>
21599
21600 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
21601 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
21602 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
21603 (dump_replaceable_exprs): Take a bitmap.
21604 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
21605 array.
21606 (expand_gimple_basic_block): Likewise.
21607 * tree-ssa-ter.c (struct temp_expr_table_d): Make
21608 replaceable_expressions member a bitmap.
21609 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
21610 (mark_replaceable): Likewise.
21611 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
21612 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
21613
21614 2009-04-27 Richard Guenther <rguenther@suse.de>
21615
21616 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
21617 (verify_stmts): Dispatch to gimple/type verification code.
21618 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
21619 issue with call argument types.
21620
21621 2009-04-27 Michael Matz <matz@suse.de>
21622
21623 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
21624 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
21625 to above.
21626
21627 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
21628 Eric Botcazou <ebotcazou@adacore.com>
21629
21630 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
21631 a label's basic block.
21632 (mark_target_live_regs): Tidy and rework obsolete comments.
21633 Change back DF problem to LIVE. If a label starts a basic block,
21634 assume that all registers that used to be live then still are.
21635 (init_resource_info): If a label starts a basic block, set its
21636 BLOCK_FOR_INSN accordingly.
21637 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
21638
21639 2009-04-27 Richard Guenther <rguenther@suse.de>
21640
21641 * tree-flow-inline.h (function_ann): Remove.
21642 (get_function_ann): Likewise.
21643 * tree-dfa.c (create_function_ann): Remove.
21644 * tree-flow.h (struct static_var_ann_d): Remove.
21645 (struct function_ann_d): Likewise.
21646 (union tree_ann_d): Remove fdecl member.
21647 (function_ann_t): Remove.
21648 (function_ann, get_function_ann, create_function_ann): Remove
21649 declarations.
21650
21651 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
21652
21653 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
21654
21655 2009-04-27 Jan Hubicka <jh@suse.cz>
21656
21657 * ipa-pure-const.c (struct funct_state_d): New fields
21658 state_previously_known, looping_previously_known; remove
21659 state_set_in_source.
21660 (analyze_function): Use new fields.
21661 (propagate): Avoid assumption that state_set_in_source imply
21662 nonlooping.
21663
21664 * tree-ssa-loop-niter.c (finite_loop_p): New function.
21665 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
21666 * cfgloop.h (finite_loop_p): Declare.
21667
21668 2009-04-26 Michael Matz <matz@suse.de>
21669
21670 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
21671
21672 2009-04-26 Michael Matz <matz@suse.de>
21673
21674 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
21675 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
21676 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
21677 pass_mark_used_blocks): Remove.
21678 * tree-optimize.c (pass_free_datastructures,
21679 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
21680 * passes.c (init_optimization_passes): Don't call
21681 pass_mark_used_blocks, remove dead code.
21682
21683 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
21684
21685 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
21686 * tree-ssa-live.h (register_ssa_partition): Likewise.
21687
21688 2009-04-26 Michael Matz <matz@suse.de>
21689
21690 Expand from SSA.
21691 * builtins.c (fold_builtin_next_arg): Handle SSA names.
21692 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
21693 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
21694 SSA names.
21695 (compare_pairs): Swap cost comparison.
21696 (coalesce_ssa_name): Don't use change_partition_var.
21697 * tree-nrv.c (struct nrv_data): Add modified member.
21698 (finalize_nrv_r): Set it.
21699 (tree_nrv): Use it to update statements.
21700 (pass_nrv): Require PROP_ssa.
21701 * tree-mudflap.c (mf_decl_cache_locals,
21702 mf_build_check_statement_for): Use make_rename_temp.
21703 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
21704 * alias.c (find_base_decl): Handle SSA names.
21705 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
21706 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
21707 * rtl.h (set_reg_attrs_for_parm): Declare.
21708 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
21709 to "optimized", remove unused locals at finish.
21710 (execute_free_datastructures): Make global, call
21711 delete_tree_cfg_annotations.
21712 (execute_free_cfg_annotations): Don't call
21713 delete_tree_cfg_annotations.
21714
21715 * ssaexpand.h: New file.
21716 * expr.c (toplevel): Include ssaexpand.h.
21717 (expand_assignment): Handle SSA names the same as register variables.
21718 (expand_expr_real_1): Expand SSA names.
21719 * cfgexpand.c (toplevel): Include ssaexpand.h.
21720 (SA): New global variable.
21721 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
21722 (SSAVAR): New macro.
21723 (set_rtl): New helper function.
21724 (add_stack_var): Deal with SSA names, use set_rtl.
21725 (expand_one_stack_var_at): Likewise.
21726 (expand_one_stack_var): Deal with SSA names.
21727 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
21728 before unique numbers.
21729 (expand_stack_vars): Use set_rtl.
21730 (expand_one_var): Accept SSA names, add asserts for them, feed them
21731 to above subroutines.
21732 (expand_used_vars): Expand all partitions (without default defs),
21733 then only the local decls (ignoring those expanded already).
21734 (expand_gimple_cond): Remove edges when jumpif() expands an
21735 unconditional jump.
21736 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
21737 or remove abnormal edges. Ignore insns setting the LHS of a TERed
21738 SSA name.
21739 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
21740 members of SA; deal with PARM_DECL partitions here; expand
21741 all PHI nodes, free tree datastructures and SA. Commit instructions
21742 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
21743 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
21744 info and statements at start, collect garbage at finish.
21745 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
21746 (VAR_ANN_PARTITION) Remove.
21747 (change_partition_var): Don't declare.
21748 (partition_to_var): Always return SSA names.
21749 (var_to_partition): Only accept SSA names.
21750 (register_ssa_partition): Only check argument.
21751 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
21752 member.
21753 (delete_var_map): Don't free it.
21754 (var_union): Only accept SSA names, simplify.
21755 (partition_view_init): Mark only useful SSA names as used.
21756 (partition_view_fini): Only deal with SSA names.
21757 (change_partition_var): Remove.
21758 (dump_var_map): Use ssa_name instead of partition_to_var member.
21759 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
21760 basic blocks.
21761 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
21762 (struct _elim_graph): New member const_dests; nodes member vector of
21763 ints.
21764 (set_location_for_edge): New static helper.
21765 (create_temp): Remove.
21766 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
21767 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
21768 (new_elim_graph): Allocate const_dests member.
21769 (clean_elim_graph): Truncate const_dests member.
21770 (delete_elim_graph): Free const_dests member.
21771 (elim_graph_size): Adapt to new type of nodes member.
21772 (elim_graph_add_node): Likewise.
21773 (eliminate_name): Likewise.
21774 (eliminate_build): Don't take basic block argument, deal only with
21775 partition numbers, not variables.
21776 (get_temp_reg): New static helper.
21777 (elim_create): Use it, deal with RTL temporaries instead of trees.
21778 (eliminate_phi): Adjust all calls to new signature.
21779 (assign_vars, replace_use_variable, replace_def_variable): Remove.
21780 (rewrite_trees): Only do checking.
21781 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
21782 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
21783 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
21784 contains_tree_r, MAX_STMTS_IN_LATCH,
21785 process_single_block_loop_latch, analyze_edges_for_bb,
21786 perform_edge_inserts): Remove.
21787 (expand_phi_nodes): New global function.
21788 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
21789 functions, initialize new parameter, remember partitions having a
21790 default def.
21791 (finish_out_of_ssa): New global function.
21792 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
21793 don't reset in_ssa_p here, don't disable TER when mudflap.
21794 (pass_del_ssa): Remove.
21795 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
21796 partition members.
21797 (execute_free_datastructures): Declare.
21798 * Makefile.in (SSAEXPAND_H): New variable.
21799 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
21800 * basic-block.h (commit_one_edge_insertion): Declare.
21801 * passes.c (init_optimization_passes): Move pass_nrv and
21802 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
21803 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
21804 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
21805 (redirect_branch_edge): Deal with super block when expanding, split
21806 out jump patching itself into ...
21807 (patch_jump_insn): ... here, new static helper.
21808
21809 2009-04-26 Michael Matz <matz@suse.de>
21810
21811 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
21812 beyond num_ssa_names.
21813 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
21814 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
21815
21816 2009-04-26 Jakub Jelinek <jakub@redhat.com>
21817
21818 PR inline-asm/39543
21819 * fwprop.c (forward_propagate_asm): New function.
21820 (forward_propagate_and_simplify): Propagate also into __asm, if it
21821 doesn't increase the number of referenced registers.
21822
21823 PR c/39889
21824 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
21825
21826 2009-04-26 Jakub Jelinek <jakub@redhat.com>
21827
21828 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
21829 note_nonlocal_vla_type for nonlocal VLAs.
21830 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
21831 contains_remapped_vars, remap_vla_decls): New functions.
21832 (convert_nonlocal_reference_stmt): If not optimizing, call
21833 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
21834 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
21835 if it wasn't found in var_map.
21836 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
21837 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
21838 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
21839 declare_vars.
21840 * gimplify.c (nonlocal_vlas): New variable.
21841 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
21842 referenced VLAs.
21843 (gimplify_body): Create and destroy nonlocal_vlas.
21844
21845 * dwarf2out.c (loc_descr_plus_const): New function.
21846 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
21847 mem_loc_descriptor, loc_descriptor_from_tree_1,
21848 descr_info_loc, gen_variable_die): Use it.
21849
21850 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
21851 !TREE_STATIC VAR_DECLs.
21852 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
21853 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
21854 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
21855 DECL_BY_REFERENCE is valid.
21856 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
21857 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
21858 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
21859 Copy DECL_BY_REFERENCE.
21860 (struct nesting_copy_body_data): New type.
21861 (nesting_copy_decl): New function.
21862 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
21863 if they have variable length.
21864
21865 2009-04-26 Michael Matz <matz@suse.de>
21866
21867 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
21868 mark new temporaries for renaming.
21869
21870 2009-04-26 Joseph Myers <joseph@codesourcery.com>
21871
21872 PR c/39581
21873 * c-decl.c (global_bindings_p): Return negative value.
21874 (c_variable_size): New. Based on variable_size from
21875 stor-layout.c.
21876 (grokdeclarator): Call c_variable_size not variable_size.
21877
21878 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
21879
21880 * config/i386/i386.c (print_operand) ['z']: Fix typo.
21881
21882 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
21883
21884 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
21885 Redefine it to just use mingw/include.
21886 (ASM_SPEC): Rules for -m32 and -m64.
21887 (LINK_SPEC): Use Likewise.
21888 (SPEC_32): New define.
21889 (SPEC_64): Likewise.
21890 (SUB_LINK_SPEC): Likewise.
21891 (MULTILIB_DEFAULTS): New define.
21892 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
21893 Add multilib options.
21894 (MULTILIB_DIRNAMES): Likewise.
21895 (MULTILIB_OSDIRNAMES): Likewise.
21896 (LIBGCC): Likewise.
21897 (INSTALL_LIBGCC): Likewise.
21898
21899 2009-04-26 Joseph Myers <joseph@codesourcery.com>
21900
21901 PR c/39556
21902 * c-tree.h (enum c_inline_static_type): New.
21903 (record_inline_static): Declare.
21904 * c-decl.c (struct c_inline_static, c_inline_statics,
21905 record_inline_static, check_inline_statics): New.
21906 (pop_file_scope): Call check_inline_statics.
21907 (start_decl): Call record_inline_static instead of pedwarning
21908 directly for static in inline function.
21909 * c-typeck.c (build_external_ref): Call record_inline_static
21910 instead of pedwarning directly for static referenced in inline
21911 function.
21912
21913 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
21914
21915 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
21916 not new but only being rescanned.
21917 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
21918 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
21919 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
21920 record_set_info, compute_set, grealloc): Remove.
21921 (recompute_all_luids): New function.
21922 (gcse_main): Don't compute sets, and don't do related memory
21923 allocations/free-ing. If something changed before the end of the
21924 pass, update LUIDs using recompute_all_luids.
21925 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
21926 (free_gcse_mem): Don't free it either.
21927 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
21928 Use the df insn LUIDs.
21929 (load_killed_in_block): Likewise.
21930 (compute_hash_table_work): Don't compute reg_set_in_block.
21931 (compute_transp): Use DF_REG_DEF_CHAINs.
21932 (local_cprop_pass): Don't use compute_sets and related functions.
21933 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
21934 Use get_max_uid() instead of max_cuid.
21935 (insert_insn_end_basic_block, pre_insert_copy_insn,
21936 update_ld_motion_stores): Don't try to
21937 keep reg_set tables up to date.
21938 (pre_insert_copies): Use df insn LUIDs.
21939 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
21940 (reg_set_info): Don't use extra bitmap argument.
21941 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
21942 information to compute regs_set_in_block.
21943 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
21944 (bypass_jumps): Don't use compute_sets and friends.
21945
21946 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21947
21948 PR testsuite/39710
21949 * opts.c (undocumented_msg): Do not leave blank even with
21950 ENABLE_CHECKING.
21951
21952 2009-04-25 Joseph Myers <joseph@codesourcery.com>
21953
21954 * c-decl.c (build_enumerator): Allow values folding to integer
21955 constants but not integer constant expressions with a pedwarn if
21956 pedantic.
21957
21958 2009-04-25 Joseph Myers <joseph@codesourcery.com>
21959
21960 PR c/39582
21961 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
21962 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
21963 type is an integer constant.
21964
21965 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
21966
21967 PR target/39897
21968 * config/i386/i386.c (print_operand) ['z']: Revert handling of
21969 HImode operands.
21970
21971 2009-04-25 Joseph Myers <joseph@codesourcery.com>
21972
21973 PR c/39564
21974 * c-decl.c (grokdeclarator): Diagnose declarations of functions
21975 with variably modified return type and no storage class
21976 specifiers, except for the case of nested functions. Distinguish
21977 extern declarations of functions with variably modified return
21978 types from those of objects with variably modified types.
21979
21980 2009-04-25 Jan Hubicka <jh@suse.cz>
21981
21982 * tree.c (list_equal_p): New function.
21983 * tree.h (list_equal_p): Declare.
21984 * coretypes.h (edge_def, edge, const_edge, basic_block_def
21985 basic_block_def, basic_block, const_basic_block): New.
21986 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
21987 (redirect_eh_edge): New function.
21988 (make_eh_edge_update_phi): EH edges are not abnormal.
21989 * except.c: Include tree-flow.h.
21990 (list_match): New function.
21991 (eh_region_replaceable_by_p): New function.
21992 (replace_region): New function.
21993 (hash_type_list): New function.
21994 (hash_eh_region): New function.
21995 (eh_regions_equal_p): New function.
21996 (merge_peers): New function.
21997 (remove_unreachable_regions): Verify EH tree when checking;
21998 merge peers.
21999 (copy_eh_region_1): New function.
22000 (copy_eh_region): New function.
22001 (push_reachable_handler): New function.
22002 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
22003 regions without label but with live RESX.
22004 * except.h (redirect_eh_edge_to_label): New.
22005 * tree-flow.h (redirect_eh_edge): New.
22006 * coretypes.h (edge_def, edge, const_edge, basic_block_def
22007 basic_block_def, basic_block, const_basic_block): Remove.
22008 * Makefile.in (except.o): Add dependency on tree-flow.h
22009 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
22010 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
22011 Remove.
22012
22013 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
22014
22015 PR bootstrap/39645
22016 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
22017 on the destination of memcpy.
22018
22019 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
22020
22021 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
22022 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
22023 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
22024
22025 2009-04-25 Jan Hubicka <jh@suse.cz>
22026
22027 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
22028 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
22029 to be reached by different label than left.
22030 (update_eh_edges): Update comment; remove edge_to_remove if possible
22031 and return true if suceeded.
22032 (cleanup_empty_eh): Accept sharing map; handle shared regions.
22033 (cleanup_eh): Compute sharing map.
22034 * except.c (remove_eh_handler_and_replace): Add argument if we should
22035 update regions.
22036 (remove_unreachable_regions): Update for label sharing.
22037 (label_to_region_map): Likewise.
22038 (get_next_region_sharing_label): New function.
22039 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
22040 prev_try pointers.
22041 (remove_eh_handler): Update.
22042 (remove_eh_region_and_replace_by_outer_of): New function.
22043 * except.h (struct eh_region): Add next_region_sharing_label.
22044 (remove_eh_region_and_replace_by_outer_of,
22045 get_next_region_sharing_label): Declare.
22046 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
22047
22048 2009-04-25 Jan Hubicka <jh@suse.cz>
22049
22050 * tree-cfg.c (split_critical_edges): Split also edges where we can't
22051 insert code even if they are not critical.
22052
22053 2009-04-25 Jan Hubicka <jh@suse.cz>
22054
22055 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22056 (gimple_can_remove_branch_p): EH edges won't remove branch by
22057 redirection.
22058 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
22059 updating of non-abnormal EH edges.
22060 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
22061 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
22062 (split_critical_edges): Split also edges where emitting code on them
22063 will lead to splitting later.
22064
22065 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
22066 H.J. Lu <hongjiu.lu@intel.com>
22067
22068 PR target/39590
22069 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
22070 the configured assembler supports fildq and fistpq mnemonics.
22071 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
22072 * configure: Regenerated.
22073 * config.in: Ditto.
22074
22075 * config/i386/i386.c (print_operand): Handle 'Z'.
22076 ['z']: Remove handling of special fild/fist suffixes.
22077 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
22078 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
22079 suffix of fild insn.
22080 (*floatsi<mode>2_vector_mixed): Ditto.
22081 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
22082 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
22083 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
22084 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
22085 * config/i386/gas.h (GAS_MNEMONICS): Remove.
22086
22087 2009-04-25 Ben Elliston <bje@au.ibm.com>
22088
22089 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
22090 the source of a set operation.
22091
22092 2009-04-25 Anatoly Sokolov <aesok@post.ru>
22093
22094 * target.h (struct gcc_target): Add case_values_threshold field.
22095 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
22096 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
22097 * targhooks.c (default_case_values_threshold): New function.
22098 * targhooks.h (default_case_values_threshold): Declare function.
22099 * stmt.c (expand_case): Use case_values_threshold target hook.
22100 * expr.h (case_values_threshold): Remove declartation.
22101 * expr.c (case_values_threshold): Remove function.
22102 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
22103
22104 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
22105 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22106 (avr_case_values_threshold): Declare as static.
22107 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
22108
22109 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
22110 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22111 (mn10300_case_values_threshold): New function.
22112
22113 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
22114
22115 * ira.c (setup_cover_and_important_classes): Add enum cast.
22116
22117 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
22118
22119 * genpreds.c (write_enum_constraint_num): Output definition of
22120 CONSTRAINT_NUM_DEFINED_P macro.
22121 * ira.c (setup_cover_and_important_classes): Use
22122 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
22123
22124 2009-04-24 DJ Delorie <dj@redhat.com>
22125
22126 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22127 __SH2A_SINGLE_ONLY__ also.
22128
22129 2009-04-24 Steve Ellcey <sje@cup.hp.com>
22130
22131 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22132 (movdf_internal): Ditto.
22133 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22134 SFmode and DFmode constants.
22135 (ia64_print_operand): Add 'G' format for printing
22136 floating point constants.
22137
22138 2009-04-24 Richard Guenther <rguenther@suse.de>
22139
22140 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22141 from unsigned additions.
22142
22143 2009-04-24 Joseph Myers <joseph@codesourcery.com>
22144
22145 * c-typeck.c (set_init_index): Allow array designators that are
22146 not integer constant expressions with a pedwarn if pedantic.
22147
22148 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
22149
22150 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22151 zero if no overlap in nonzero bits between the operands.
22152
22153 2009-04-24 Ian Lance Taylor <iant@google.com>
22154
22155 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22156 (record_dead_and_set_regs): Likewise.
22157 * df.h (struct df_mw_hardreg): Change flags field to int.
22158 (struct df_base_ref): Likewise.
22159 (struct df): Change changeable_flags field to int.
22160 * df-scan.c (df_defs_record): Change clobber_flags to int.
22161 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22162 constants rather than #define macros.
22163 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22164 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22165 (enum dwarf_calling_convention): Likewise.
22166 (enum dwarf_line_number_x_ops): Likewise.
22167 (enum dwarf_call_frame_info): Likewise.
22168 (enum dwarf_source_language): Likewise.
22169 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22170 (add_calling_convention_attribute): Likewise.
22171 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22172 (combine_comparisons): Change compcode to int. Add cast to enum type.
22173 * genrecog.c (maybe_both_true_2): Change c to int.
22174 (write_switch): Likewise. Add cast to enum type.
22175 * gimplify.c (gimplify_omp_for): Handle return values from
22176 gimplify_expr using MIN rather than bitwise or.
22177 (gimplify_expr): Add cast to enum type.
22178 * ipa-prop.c (update_jump_functions_after_inlining): Change
22179 IPA_BOTTOM to IPA_JF_UNKNOWN.
22180 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22181 Add casts to enum type.
22182 (setup_cover_and_important_classes): Change cl to int. Add casts
22183 to enum type.
22184 (setup_class_translate): Change cl and mode to int.
22185 (ira_init_once): Change mode to int.
22186 (free_register_move_costs): Likewise.
22187 (setup_prohibited_mode_move_regs): Add casts to enum type.
22188 * langhooks.c (add_builtin_function_common): Rework assertion that
22189 value fits bitfield.
22190 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22191 * omega.c (omega_do_elimination): Avoid math on enum types.
22192 * optabs.c (expand_vec_shift_expr): Remove casts to int.
22193 * opts.c (set_debug_level): Change 2 to enum constant. Use new
22194 int local to handle integral_argment value.
22195 * regmove.c (try_auto_increment): Change PUT_MODE to
22196 PUT_REG_NOTE_KIND.
22197 * reload.c (push_secondary_reload): Add casts to enum type.
22198 (secondary_reload_class, find_valid_class): Likewise.
22199 * reload1.c (emit_input_reload_insns): Likewise.
22200 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22201 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22202 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22203 constant.
22204 * tree.c (build_common_builtin_nodes): Add casts to enum type.
22205 * tree-complex.c (complex_lattice_t): Typedef to int rather than
22206 enum type.
22207 (expand_complex_libcall): Add casts to enum type.
22208 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22209 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22210 with ERROR_MARK, not NUM_TREE_CODES.
22211 (vect_create_epilog_for_reduction): Likewise.
22212 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
22213 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
22214 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22215 enum machine_mode.
22216 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22217 vect_unused_in_loop. Change 0 to loop_vect.
22218 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
22219 * var-tracking.c (get_init_value): Change return type to enum
22220 var_init_status.
22221 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22222 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22223 arm_fp_model.
22224 (arm_override_options): Add casts to enum type.
22225 (arm_emit_tls_decoration): Likewise.
22226 * config/i386/i386.c (ix86_function_specific_restore): Add casts
22227 to enum type.
22228 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22229 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22230 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22231 enum type.
22232 * config/s390/s390.c (code_for_builtin_64): Change to array of
22233 enum insn_code.
22234 (code_for_builtin_31): Likewise.
22235 (s390_expand_builtin): Change code_for_builtin to enum insn_code
22236 const *.
22237 * config/sparc/sparc.c (sparc_override_options): Change value
22238 field in struct code_model to enum cmodel. In initializer change
22239 0 to NULL and add cast to enum type.
22240
22241 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22242 Change all callers. Issue a -Wc++-compat warning using
22243 lhs_origtype if necessary.
22244 (convert_for_assignment): Issue -Wc++-compat warnings about
22245 invalid conversions to enum type on assignment.
22246 * c-common.h (build_modify_expr): Update declaration.
22247
22248 2009-04-24 Nick Clifton <nickc@redhat.com>
22249
22250 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22251 (function_arg_advance): Likewise.
22252 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22253 5th alternative.
22254
22255 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
22256
22257 * config/s390/constraints.md ('I', 'J'): Fix condition.
22258
22259 2009-04-24 Diego Novillo <dnovillo@google.com>
22260
22261 * gengtype-parse.c (parse_error): Add newline after message.
22262
22263 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
22264
22265 * config/i386/sse.md (avxmodesuffixs): Removed.
22266 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22267 (*avx_pinsr<ssevecsize>): This.
22268
22269 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
22270
22271 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22272 follow chains of regs with a single definition, and allow expressions
22273 that are function_invariant_p.
22274 (simple_rhs_p): Allow expressions that are function_invariant_p.
22275
22276 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
22277
22278 PR middle-end/39867
22279 * fold-const.c (fold_cond_expr_with_comparison): When folding
22280 > and >= to MAX, make sure the MAX uses the same type as the
22281 comparison's operands.
22282
22283 2009-04-24 Nick Clifton <nickc@redhat.com>
22284
22285 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22286 addressing for DImode accesses.
22287 (frv_print_operand_address): Handle PLUS case.
22288 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
22289
22290 2009-04-24 Jakub Jelinek <jakub@redhat.com>
22291
22292 PR rtl-optimization/39794
22293 * alias.c (canon_true_dependence): Add x_addr argument.
22294 * rtl.h (canon_true_dependence): Adjust prototype.
22295 * cse.c (check_dependence): Adjust canon_true_dependence callers.
22296 * cselib.c (cselib_invalidate_mem): Likewise.
22297 * gcse.c (compute_transp): Likewise.
22298 * dse.c (scan_reads_nospill): Likewise.
22299 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
22300 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22301 canon_base_addr of the group, plus optional offset.
22302 (struct group_info): Rename canon_base_mem to
22303 canon_base_addr.
22304 (get_group_info): Set canon_base_addr to canon_rtx of base, not
22305 canon_rtx of base_mem.
22306
22307 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
22308
22309 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22310 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22311
22312 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22313
22314 * config/spu/spu-builtins.h: Delete file.
22315
22316 * config/spu/spu.h (enum spu_builtin_type): Move here from
22317 spu-builtins.h.
22318 (struct spu_builtin_description): Likewise. Add GTY marker.
22319 Do not use enum spu_function_code or enum insn_code.
22320 (spu_builtins): Add extern declaration.
22321
22322 * config/spu/spu.c: Do not include "spu-builtins.h".
22323 (enum spu_function_code, enum spu_builtin_type_index,
22324 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
22325 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
22326 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
22327 unsigned_V2DI_type_node): Move here from spu-builtins.h.
22328 (spu_builtin_types): Make static. Add GTY marker.
22329 (spu_builtins): Add extern declaration with GTY marker.
22330 Include "gt-spu.h".
22331
22332 * config/spu/spu-c.c: Do not include "spu-builtins.h".
22333 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
22334 Check programmatically whether all parameters are scalar.
22335
22336 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
22337
22338 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
22339
22340 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
22341 assignment from the constructor either if the target is volatile.
22342
22343 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
22344
22345 * config/arm/arm.md (insv): Do not share operands[0].
22346
22347 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
22348
22349 * config/vxlib-tls.c (active_tls_threads): Delete.
22350 (delete_hook_installed): New.
22351 (tls_delete_hook): Don't delete the delete hook.
22352 (tls_destructor): Delete it here.
22353 (__gthread_set_specific): Adjust installing the delete hook.
22354 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22355 __gthread_leave_tsd_dtor_context.
22356
22357 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
22358
22359 * c-format.c (gcc_tdiag_char_table): Add support for %E.
22360
22361 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
22362
22363 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22364 enum type.
22365 (alpha_rtx_costs): Ditto.
22366 (emit_unlikely_jump): Use add_reg_note.
22367 (emit_frame_store_1): Ditto.
22368 (alpha_expand_prologue): Ditto.
22369 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22370 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22371
22372 2009-04-23 Nick Clifton <nickc@redhat.com>
22373
22374 * config/v850/v850.md (epilogue): Remove suppressed code.
22375 (return): Rename to return_simple and remove test of frame size.
22376 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22377 to gen_return_simple.
22378
22379 2009-04-22 Jing Yu <jingyu@google.com>
22380
22381 PR testsuite/39781
22382 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22383
22384 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
22385
22386 PR C/31499
22387 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22388 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
22389 value is a VECTOR_CST, the element type is the element type of the
22390 vector.
22391
22392 2009-04-22 DJ Delorie <dj@redhat.com>
22393
22394 * config/m32c/m32c.h: Update GTY annotations to new syntax.
22395
22396 2009-04-22 Jakub Jelinek <jakub@redhat.com>
22397
22398 * alias.c (find_base_term): Move around LO_SUM case, so that
22399 CONST falls through into PLUS/MINUS handling.
22400
22401 PR c/39855
22402 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22403 into 0, use omit_one_operand.
22404
22405 2009-04-23 Ben Elliston <bje@au.ibm.com>
22406
22407 * config/rs6000/linux-unwind.h (get_regs): Remove type
22408 puns. Change the type of `pc' to an array of unsigned ints and
22409 update all users. Constify frame24.
22410
22411 2009-04-22 DJ Delorie <dj@redhat.com>
22412
22413 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22414 declarations before code.
22415 (current_function_special_page_vector): Likewise.
22416 (m32c_expand_insv): Silence a warning.
22417
22418 2009-04-21 Taras Glek <tglek@mozilla.com>
22419
22420 * alias.c: Update GTY annotations to new syntax.
22421 * basic-block.h: Likewise.
22422 * bitmap.h: Likewise.
22423 * c-common.h: Likewise.
22424 * c-decl.c: Likewise.
22425 * c-parser.c: Likewise.
22426 * c-pragma.c: Likewise.
22427 * c-tree.h: Likewise.
22428 * cfgloop.h: Likewise.
22429 * cgraph.h: Likewise.
22430 * config/alpha/alpha.c: Likewise.
22431 * config/arm/arm.h: Likewise.
22432 * config/avr/avr.h: Likewise.
22433 * config/bfin/bfin.c: Likewise.
22434 * config/cris/cris.c: Likewise.
22435 * config/darwin.c: Likewise.
22436 * config/frv/frv.c: Likewise.
22437 * config/i386/i386.c: Likewise.
22438 * config/i386/i386.h: Likewise.
22439 * config/i386/winnt.c: Likewise.
22440 * config/ia64/ia64.h: Likewise.
22441 * config/iq2000/iq2000.c: Likewise.
22442 * config/mips/mips.c: Likewise.
22443 * config/mmix/mmix.h: Likewise.
22444 * config/pa/pa.c: Likewise.
22445 * config/pa/pa.h: Likewise.
22446 * config/rs6000/rs6000.c: Likewise.
22447 * config/s390/s390.c: Likewise.
22448 * config/sparc/sparc.c: Likewise.
22449 * config/xtensa/xtensa.c: Likewise.
22450 * cselib.h: Likewise.
22451 * dbxout.c: Likewise.
22452 * dwarf2out.c: Likewise.
22453 * except.c: Likewise.
22454 * except.h: Likewise.
22455 * fixed-value.h: Likewise.
22456 * function.c: Likewise.
22457 * function.h: Likewise.
22458 * gimple.h: Likewise.
22459 * integrate.c: Likewise.
22460 * optabs.c: Likewise.
22461 * output.h: Likewise.
22462 * real.h: Likewise.
22463 * rtl.h: Likewise.
22464 * stringpool.c: Likewise.
22465 * tree-data-ref.c: Likewise.
22466 * tree-flow.h: Likewise.
22467 * tree-scalar-evolution.c: Likewise.
22468 * tree-ssa-address.c: Likewise.
22469 * tree-ssa-alias.h: Likewise.
22470 * tree-ssa-operands.h: Likewise.
22471 * tree.c: Likewise.
22472 * tree.h: Likewise.
22473 * varasm.c: Likewise.
22474 * varray.h: Likewise.
22475 * vec.h: Likewise.
22476 * coretypes.h: Do not define GTY macro if it is already defined.
22477 * doc/gty.texi: Update GTY documentation to new syntax.
22478 * gengtype-lex.l: Enforce attribute-like syntax for GTY
22479 annotations on structs.
22480 * gengtype-parse.c: Likewise.
22481
22482 2009-04-22 Mark Heffernan <meheff@google.com>
22483
22484 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
22485
22486 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
22487
22488 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22489 where appropriate.
22490
22491 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
22492
22493 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22494 the same as a PLUS without a shift. Increase the cost of a
22495 CONST_INT in MULT.
22496
22497 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22498
22499 * Makefile.in: Update dependencies.
22500 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
22501 * errors.h: Remove bogus comment about compatibility.
22502 (warning): Update declaration.
22503 * genautomata.c: Update all calls to warning.
22504 * gimple.c: Do not include errors.h. Include toplev.h.
22505 * tree-ssa-structalias.c: Do not include errors.h.
22506 * omega.c: Likewise.
22507 * tree-ssa-reassoc.c: Likewise.
22508 * config/spu/spu-c.c: Likewise.
22509 * config/spu/t-spu-elf: Update dependencies.
22510
22511 2009-04-22 Richard Guenther <rguenther@suse.de>
22512
22513 PR tree-optimization/39824
22514 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22515 make sure the types are compatible.
22516
22517 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22518
22519 PR c++/14875
22520 * c-common.c (c_parse_error): Take a token_flags parameter.
22521 Use token_type for the token type instead.
22522 Pass token_flags to cpp_type2name.
22523 * c-common.h (c_parse_error): Update declaration.
22524 * c-parser.c (c_parser_error): Pass 0 as token flags.
22525
22526 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
22527
22528 PR rtl-optimization/39580
22529 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22530
22531 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22532
22533 * function.c (expand_function_end): Do not emit a jump to the "naked"
22534 return label for fall-through returns.
22535 * except.c (sjlj_emit_function_exit): Always place the call to the
22536 unregister function at the location installed by expand_function_end.
22537
22538 2009-04-22 Richard Guenther <rguenther@suse.de>
22539
22540 PR tree-optimization/39845
22541 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22542 (gen_inbound_check): Likewise.
22543
22544 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
22545
22546 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22547 padding for PPC.
22548 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22549 * config/vxlib.c (__gthread_once): Add race guard for PPC.
22550
22551 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
22552
22553 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22554 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22555 shift counts to avoid out-of-bounds array accesses.
22556
22557 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
22558
22559 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22560 (Pmode): Move above.
22561
22562 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
22563
22564 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22565 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
22566 GET_CODE macro. Use IN_RANGE macro where appropriate.
22567 * config/alpha/alpha.h: Ditto.
22568 * config/alpha/alpha.md: Ditto.
22569 * config/alpha/constraints.md: Ditto.
22570 * config/alpha/predicates.md: Ditto.
22571
22572 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
22573
22574 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
22575 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22576 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22577 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22578 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22579 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22580 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22581 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22582 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22583 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22584 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22585 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22586 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22587 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22588 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22589 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22590 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22591 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22592 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22593 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22594 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22595 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22596 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22597 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22598 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22599 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22600 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22601
22602 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22603
22604 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
22605 references from comments.
22606 * cfgbuild.c (count_basic_blocks): Delete.
22607 (find_basic_blocks_1): Delete.
22608 (find_basic_blocks): Delete.
22609 * except.c (finish_eh_generation): Make static. Move comment from
22610 except.h here. Remove find_basic_blocks references from comments.
22611 * except.h (finish_eh_generation): Delete.
22612 * basic-block.h (find_basic_blocks): Delete.
22613 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
22614
22615 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
22616
22617 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
22618 (sdbout_parms): Likewise.
22619
22620 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
22621
22622 * config/sh/sh.c (prepare_cbranch_operands): Use
22623 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
22624 (expand_cbranchdi4): Likewise.
22625 (from_compare): Add cast to enum type.
22626 (expand_cbranchsi4): Use add_reg_note.
22627 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
22628 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
22629 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
22630 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22631 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
22632 instead of CODE_FOR_nothing.
22633 (cbranchdi4): Likewise. Fix the order of arguments for
22634 gen_rtx_fmt_ee.
22635 (push_fpscr): Use add_reg_note.
22636 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
22637 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
22638
22639 2009-04-21 Joseph Myers <joseph@codesourcery.com>
22640
22641 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
22642 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22643 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22644 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
22645 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
22646 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
22647 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
22648 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
22649 config/alpha/x-vms, config/arc/t-arc,
22650 config/arm/README-interworking, config/arm/arm-c.c,
22651 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
22652 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
22653 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
22654 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
22655 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
22656 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
22657 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
22658 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
22659 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
22660 config/cris/t-elfmulti, config/crx/t-crx,
22661 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
22662 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
22663 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
22664 config/h8300/t-h8300, config/i386/athlon.md,
22665 config/i386/darwin-libgcc.10.4.ver,
22666 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
22667 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
22668 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
22669 config/i386/t-linux64, config/i386/t-nwld,
22670 config/i386/t-rtems-i386, config/i386/t-sol2-10,
22671 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
22672 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
22673 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
22674 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
22675 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
22676 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
22677 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
22678 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
22679 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
22680 config/m68k/t-uclinux, config/mcore/t-mcore,
22681 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
22682 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
22683 config/mips/crtn.asm, config/mips/irix-crti.asm,
22684 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
22685 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
22686 config/mips/mips-fixed.md, config/mips/sb1.md,
22687 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
22688 config/mips/t-iris6, config/mips/t-isa3264,
22689 config/mips/t-libgcc-mips16, config/mips/t-linux64,
22690 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
22691 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
22692 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
22693 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
22694 config/mn10300/t-linux, config/mn10300/t-mn10300,
22695 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
22696 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
22697 config/picochip/libgccExtras/clzsi2.asm,
22698 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
22699 config/rs6000/darwin-libgcc.10.4.ver,
22700 config/rs6000/darwin-libgcc.10.5.ver,
22701 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
22702 config/rs6000/t-aix43, config/rs6000/t-aix52,
22703 config/rs6000/t-darwin, config/rs6000/t-fprules,
22704 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
22705 config/rs6000/t-lynx, config/rs6000/t-netbsd,
22706 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
22707 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
22708 config/rs6000/t-rtems, config/rs6000/t-spe,
22709 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
22710 config/score/t-score-elf, config/sh/divcost-analysis,
22711 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
22712 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
22713 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
22714 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
22715 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
22716 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
22717 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
22718 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
22719 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
22720 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
22721 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
22722 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
22723 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
22724 limitx.h, version.c, xcoff.h: Add copyright and license notices.
22725 * config/h8300/genmova.sh: Include copyright and license notices
22726 in generated output.
22727 * config/h8300/mova.md: Regenerate.
22728 * doc/install.texi2html: Include word "Copyright" in copyright
22729 notice and use name "Free Software Foundation, Inc.".
22730 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22731 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22732 ChangeLog-2007, ChangeLog-2008: Correct dates.
22733
22734 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
22735
22736 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
22737 NE_EXPR operations as well.
22738 * c-parser.c (c_parser_condition): Do not set location information on
22739 the condition.
22740 (c_parser_conditional_expression): Likewise.
22741 (c_parser_binary_expression): Set location information on operators.
22742 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
22743 TRUTH_NOT_EXPR has been folded.
22744 * fold-const.c (fold_truth_not_expr): Copy location information from
22745 the incoming expression to the outgoing one.
22746 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
22747 recursive calls on the LHS of the operator but pass that of the
22748 operator to recursive calls on the RHS of the operator. Set it
22749 on the COND_EXPR.
22750 (shortcut_cond_expr): Set the locus of the operator on the second
22751 COND_EXPR and that of the expression on the first in degenerate cases.
22752 Pass the locus of the expression to calls to shortcut_cond_r.
22753 Set the locus of the 'then' block on the associated jump, if any.
22754 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
22755 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
22756 expression to call to gimplify_boolean_expr.
22757
22758 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
22759
22760 * config.gcc: Add additional configuration for
22761 i686-w64-mingw* and x86_64-w64-mingw* triplet.
22762 * config/i386/mingw-w64.h: New mingw-w64 specific header.
22763 (CPP_SPEC): Redefine for allowing -municode option.
22764 (STARTFILE_SPEC): Likewise.
22765 * config/i386/t-mingw-w64: New.
22766 * config/i386/mingw-w64.opt: New.
22767 (municode): Add new target option.
22768 * doc/invoke.texi (municode): Add documentation for new option.
22769
22770 2009-04-21 Ian Lance Taylor <iant@google.com>
22771
22772 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22773 Correct test for number of arguments.
22774 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22775
22776 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
22777
22778 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
22779 argument of emit_library_call.
22780
22781 2009-04-21 Richard Guenther <rguenther@suse.de>
22782
22783 PR middle-end/39829
22784 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
22785 inside VIEW_CONVERT_EXPRs.
22786
22787 2009-04-21 Martin Jambor <mjambor@suse.cz>
22788
22789 * tree-switch-conversion.c (build_constructors): Split a long line.
22790 (constructor_contains_same_values_p): New function.
22791 (build_one_array): Create assigns of constants if possible, do not
22792 call mark_sym_for_renaming, call update_stmt.
22793 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
22794 make_rename_temp. Do not call mark_symbols_for_renaming, call
22795 update_stmt.
22796 (gen_def_assigns): Do not call mark_symbols_for_renaming or
22797 find_new_referenced_vars, call update_stmt.
22798 (gen_inbound_check): Use create_tmp_var and create ssa names manually
22799 instead of calling make_rename_temp. Do not call
22800 find_new_referenced_vars or mark_symbols_for_renaming, call
22801 update_stmt.
22802
22803 2009-04-21 Richard Guenther <rguenther@suse.de>
22804
22805 PR tree-optimization/39827
22806 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
22807 (tree_ssa_phiprop): Pass the correct array size.
22808
22809 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
22810
22811 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
22812
22813 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
22814
22815 PR 16202
22816 * c-typeck.c (lvalue_p): Move declaration ...
22817 * c-common.h (lvalue_p): ... to here.
22818 * c-common.c (candidate_equal_p): New.
22819 (add_tlist): Use it.
22820 (merge_tlist): Use it.
22821 (warn_for_collisions_1): Likewise.
22822 (warning_candidate_p): Accept more candidates.
22823 (verify_tree): A warning candidate can be an expression. Use
22824 candidate_equal_p.
22825
22826 2009-04-21 Ben Elliston <bje@au.ibm.com>
22827
22828 PR target/5267
22829 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22830 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
22831 options. Remove -mcall-solaris documentation.
22832
22833 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22834
22835 PR c++/13358
22836 * doc/invoke.texi (-Wlong-long): Update description.
22837 * c-lex (interpret_integer): Only warn if there was no previous
22838 overflow and -Wlong-long is enabled.
22839 * c-decl.c (declspecs_add_type): Drop redundant flags.
22840 * c.opt (Wlong-long): Init to -1.
22841 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
22842 and front-end warn_long_long. Wlong-long only depends on other
22843 flags if it is uninitialized.
22844 * c-parser.c (disable_extension_diagnostics): warn_long_long is
22845 the same for CPP and FE.
22846 (restore_extension_diagnostics): Likewise.
22847
22848 2009-04-20 Ian Lance Taylor <iant@google.com>
22849
22850 Fix enum conversions which are invalid in C++:
22851 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
22852 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
22853 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
22854 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
22855 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
22856 (dbxout_parms): Likewise.
22857 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
22858 (df_clear_flags): Likewise.
22859 * df-problems.c (df_rd_bb_local_compute_process_def): Change
22860 top_flag parameter to int.
22861 (df_chain_create_bb_process_use): Likewise.
22862 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
22863 Remove cast.
22864 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
22865 (df_ref_create_structure, df_def_record_1): Likewise.
22866 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
22867 (df_notes_rescan): Change 0 to VOIDmode in function call.
22868 (df_get_call_refs, df_insn_refs_collect): Likewise.
22869 (df_bb_regs_collect): Likewise.
22870 (df_entry_block_defs_collect): Likewise.
22871 (df_exit_block_uses_collect): Likewise.
22872 * df.h: Update declarations.
22873 * double-int.c (double_int_divmod): Add cast to enum type.
22874 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
22875 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
22876 (based_loc_descr): Likewise.
22877 (loc_descriptor_from_tree_1): Change first_op and second_op to
22878 enum dwarf_location_atom. Add cast to enum type.
22879 * expmed.c (init_expmed): Change 0 to SET in function call.
22880 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
22881 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
22882 (do_store_flag): Likewise.
22883 * fixed-value.h (struct fixed_value): Change mode to enum
22884 machine_mode.
22885 * function.c (assign_parms): Change 0 to VOIDmode in function call.
22886 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
22887 function call.
22888 (insert_insn_decl, insert_decl, insert_state): Likewise.
22889 (automata_list_finish): Likewise.
22890 * genrecog.c (process_define_predicate): Add cast to enum type.
22891 * gensupport.c (init_predicate_table): Add cast to enum type.
22892 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
22893 function call.
22894 (gimple_build_call_1, gimple_build_label): Likewise.
22895 (gimple_build_goto, gimple_build_asm_1): Likewise.
22896 (gimple_build_switch_1, gimple_build_cdt): Likewise.
22897 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
22898 (enum fallback): Rename from enum fallback_t.
22899 (fallback_t): Typedef as int.
22900 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
22901 GSI_SAME_STMT in function call.
22902 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
22903 enum type.
22904 (setup_reg_class_relations): Likewise.
22905 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
22906 (setup_prohibited_class_mode_regs): Add cast to enum type.
22907 (setup_prohibited_mode_move_regs): Likewise.
22908 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
22909 (record_address_regs): Change i to enum reg_class.
22910 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
22911 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
22912 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
22913 (GET_MODE_2XWIDER_MODE): Likewise.
22914 (GET_CLASS_NARROWEST_MODE): Likewise.
22915 * omp-low.c (expand_omp_for): Add cast to enum type.
22916 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
22917 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
22918 * postreload.c (reload_cse_simplify_operands): Change rclass local
22919 to enum reg_class.
22920 * predict.c (combine_predictions_for_insn): Change best_predictor
22921 and predictor to enum br_predictor.
22922 (combine_predictions_for_bb): Likewise.
22923 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
22924 use SET_PREDICT_EXPR_OUTCOME.
22925 * real.c (real_arithmetic): Change icode to code in function call.
22926 * reginfo.c (init_move_cost): Add casts to enum type.
22927 (init_reg_sets_1, init_fake_stack_mems): Likewise.
22928 * regmove.c (regclass_compatible_p): Change class0 and class1 to
22929 enum reg_class.
22930 * reload.c (find_valid_class): Add casts to enum type.
22931 (push_reload): Change 0 to NO_REGS in function call.
22932 (find_reloads): Change this_alternative to array of enum
22933 reg_class. Remove some now-unnecessary casts.
22934 (make_memloc): Change 0 to VOIDmode in function call.
22935 * reload1.c (reload): Change 0 to VOIDmode in function call.
22936 (eliminate_regs_1, elimination_effects): Likewise.
22937 (eliminate_regs_in_insn): Likewise.
22938 (emit_input_reload_insns): Add cast to enum type.
22939 (delete_output_reload): Change 0 to VOIDmode in function call.
22940 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
22941 to enum type in function call.
22942 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
22943 (SET_PREDICT_EXPR_OUTCOME): Define.
22944 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
22945 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
22946 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
22947 (dump_function): Likewise.
22948 * tree-dump.h: Update declarations.
22949 * tree-pass.h: Update declarations.
22950 * varasm.c (assemble_integer): Change mclass to enum mode_class.
22951 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
22952 enum type.
22953 (arm_rtx_costs_1): Correct parenthesization.
22954 (arm_rtx_costs): Add casts to enum type.
22955 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
22956 (vfp_emit_fstmd): Use add_rg_note.
22957 (emit_multi_reg_push, emit_sfm): Likewise.
22958 (thumb_set_frame_pointer): Likewise.
22959 (arm_expand_prologue): Likewise.
22960 (arm_regno_class): Change return type to enum reg_class.
22961 (thumb1_expand_prologue): Use add_reg_note.
22962 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
22963 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
22964 in function call.
22965 * config/arm/gentune.sh: Add cast to enum type.
22966 * config/arm/arm-tune.md: Rebuild.
22967 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
22968 (ix86_split_fp_branch, predict_jump): Likewise.
22969 (ix86_expand_multi_arg_builtin): Change sub_code from enum
22970 insn_code to enum rtx_code.
22971 (ix86_builtin_vectorized_function): Add cast to enum type.
22972 * config/i386/i386.md (truncdfsf2): Change slot to enum
22973 ix86_stack_slot.
22974 (truncxf<mode>2, isinf<mode>2): Likewise.
22975 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
22976 enum type.
22977 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
22978 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
22979 (insert_bundle_state): Change 1 to INSERT in function call.
22980 (ia64_add_bundle_selector_before): Likewise.
22981 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
22982 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
22983 (restore_stack_nonlocal): Likewise.
22984 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
22985 function call.
22986 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
22987 function call.
22988 (mips_rtx_costs): Likewise.
22989 (mips_override_options): Add casts to enum type.
22990 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
22991 in function call.
22992 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
22993 (store_reg, set_reg_plus_d): Likewise.
22994 (hppa_expand_prologue, hppa_profile_hook): Likewise.
22995 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22996 cast to enum type.
22997 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
22998 function call.
22999 (emit_unlikely_jump): Use add_reg_note.
23000 (rs6000_emit_allocate_stack): Likewise.
23001 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
23002 (output_toc): Change 1 to INSERT in function call.
23003 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
23004 (rs6000_initialize_trampoline): Likewise.
23005 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
23006 function call.
23007 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
23008 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
23009 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
23010 (save_gprs): Use add_reg_note.
23011 (s390_emit_prologue): Likewise.
23012 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
23013 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
23014 (sparc_fold_builtin): Add cast to enum type.
23015 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
23016 enum insn_code.
23017 (spu_expand_prologue): Use add_reg_note.
23018 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
23019
23020 2009-04-20 Ian Lance Taylor <iant@google.com>
23021
23022 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
23023 (c_parser_postfix_expression_after_primary): Get VEC for list of
23024 arguments. Get original types of arguments. Call
23025 build_function_call_vec.
23026 (cached_expr_list_1, cached_expr_list_2): New static variables.
23027 (c_parser_expr_list): Change return type to VEC *. Add
23028 p_orig_types parameter. Change all callers.
23029 (c_parser_release_expr): New static function.
23030 (c_parser_vec_to_tree_list): New static function.
23031 * c-typeck.c (build_function_call): Rewrite to build a VEC and
23032 call build_function_call_vec.
23033 (build_function_call_vec): New function, based on old
23034 build_function_call.
23035 (convert_arguments): Remove nargs and argarray parameters. Change
23036 values to a VEC. Add origtypes parameter.
23037 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
23038 (convert_for_assignment): Add origtype parameter. Change all
23039 callers. If warn_cxx_compat, check for conversion to an enum
23040 type when calling a function.
23041 (store_init_value): Add origtype parameter. Change all callers.
23042 (digest_init): Likewise.
23043 (struct init_node): Add origtype field.
23044 (add_pending_init): Add origtype parameter. Change all callers.
23045 (output_init_element): Likewise.
23046 (output_pending_init_elements): Pass origtype from init_node to
23047 output_init_element.
23048 (process_init_element): Pass origtype from c_expr to
23049 output_init_element.
23050 (c_finish_return): Add origtype parameter. Change all callers.
23051 * c-common.c (sync_resolve_size): Change params to VEC *. Change
23052 caller.
23053 (sync_resolve_params): Likewise.
23054 (sync_resolve_return): Change params to first_param. Change caller.
23055 (resolve_overloaded_builtins): Change params to VEC *. Change
23056 callers. Save first parameter around call to build_function_call_vec.
23057 * c-decl.c (finish_decl): Add origtype parameter. Change all
23058 callers. Call build_function_call_vec rather than
23059 build_function_call for cleanup.
23060 * c-tree.h: Update declarations.
23061 * c-common.h: Update declarations.
23062 * stub-objc.c (objc_rewrite_function_call): Change parameter from
23063 params to first_param.
23064 * target.h (struct gcc_target): Change resolve_overloaded_builtin
23065 params parameter from tree to void *.
23066 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23067 Change arglist parameter to have type void *, and to be a pointer
23068 to a VEC.
23069 * config/rs6000/rs6000-protos.h
23070 (altivec_resolve_overloaded_builtin): Update declaration.
23071 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
23072 fnargs parameter to have type void *, and to be a pointer to a
23073 VEC. Call build_function_call_vec instead of
23074 build_function_call.
23075 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
23076
23077 2009-04-20 Joey Ye <joey.ye@intel.com>
23078 Xuepeng Guo <xuepeng.guo@intel.com>
23079 H.J. Lu <hongjiu.lu@intel.com>
23080
23081 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
23082
23083 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
23084 (IX86_LEA_PRIORITY): Likewise.
23085 (distance_non_agu_define): New function.
23086 (distance_agu_use): Likewise.
23087 (ix86_lea_for_add_ok): Likewise.
23088 (ix86_dep_by_shift_count): Likewise.
23089
23090 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
23091 should split for LEA.
23092
23093 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
23094 function.
23095 (ix86_dep_by_shift_count): Likewise.
23096
23097 2009-04-20 Richard Guenther <rguenther@suse.de>
23098
23099 * expr.c (handled_component_p): Move ...
23100 * tree.h (handled_component_p): ... here.
23101 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
23102 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
23103 and REALPART_EXPR to be in one group.
23104
23105 2009-04-20 Richard Guenther <rguenther@suse.de>
23106
23107 * basic-block.h (get_all_dominated_blocks): Declare.
23108 * dominance.c (get_all_dominated_blocks): New function.
23109 * tree-cfg.c (get_all_dominated_blocks): Remove.
23110 (remove_edge_and_dominated_blocks): Adjust.
23111 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
23112 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
23113 instead of recursing.
23114
23115 2009-04-20 Doug Kwan <dougkwan@google.com>
23116
23117 * cgraph.h (cgraph_node_ptr): New type for vector functions.
23118 (struct cgraph_node_set_def): New type.
23119 (cgraph_node_set) New type. Also declare vector functions.
23120 (struct cgraph_node_set_element_def): New type.
23121 (cgraph_node_set_element): Ditto.
23122 (cgraph_node_set_iterator): New iterator type.
23123 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
23124 cgraph_node_set_remove, dump_cgraph_node_set,
23125 debug_cgraph_node_set): New prototypes.
23126 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23127 cgraph_node_set_size): New inlines.
23128 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23129 including cgraph.h.
23130 (struct ipa_opt_pass): Add struct cgraph_node_set_def
23131 argument to function 'write_summary'.
23132 * ipa.c: Include ggc.h.
23133 (hash_cgraph_node_set_element,
23134 eq_cgraph_node_set_element, cgraph_node_set_new,
23135 cgraph_node_set_add, cgraph_node_set_remove,
23136 cgraph_node_set_find, dump_cgraph_node_set,
23137 debug_cgraph_node_set): New functions.
23138 * Makefile.in (ipa.o): Add dependency on GGC_H.
23139
23140 2009-04-20 Ira Rosen <irar@il.ibm.com>
23141
23142 PR tree-optimization/39675
23143 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
23144 check of the return code of vect_schedule_slp. Check that
23145 stmt_vec_info still exists for the statement, before checking its
23146 vectorization type.
23147
23148 2009-04-20 Michael Matz <matz@suse.de>
23149
23150 * Makefile.in (generated_files): Take out $(simple_generated_c).
23151
23152 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
23153
23154 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
23155 (UINTPTR_TYPE): Likewise.
23156
23157 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23158
23159 PR c/37481
23160 * c-typeck.c (digest_init): Check for initializing an array with a
23161 string literal.
23162
23163 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23164
23165 PR c/19771
23166 * c-semantics.c (pop_stmt_list): Propagate
23167 STATEMENT_LIST_HAS_LABEL to parent statement list.
23168
23169 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
23170
23171 * config/mips/mips.h (mips_tune_attr): New macro.
23172 * config/mips/mips.md (cpu): Use it.
23173
23174 2009-04-19 Joseph Myers <joseph@codesourcery.com>
23175
23176 PR c/38243
23177 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23178 declaring a tag.
23179
23180 2009-04-19 Diego Novillo <dnovillo@google.com>
23181
23182 * toplev.c (compile_file): Move call to coverage_finish ...
23183 * cgraphunit.c (ipa_passes): ... here.
23184 Call cgraph_process_new_functions.
23185 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23186 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23187
23188 2009-04-19 Jan Hubicka <jh@suse.cz>
23189
23190 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23191 cfun.
23192 (dump_cgraph_node): Dump can throw external flag.
23193 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23194
23195 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
23196
23197 PR c/32061
23198 PR c++/36954
23199 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23200 * common.opt (Wlogical-op): Move from here...
23201 * c.opt (Wlogical-op): ... to here.
23202 * c-typeck.c (parser_build_binary_op): Update call to
23203 warn_logical_operator.
23204 * c-opts.c (c_common_post_options): Enable warn_logical_op with
23205 extra_warnings.
23206 * c-common.c (warn_logical_op): Update.
23207 * c-common.h (warn_logical_op): Update declaration.
23208
23209 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
23210
23211 * tree.c (protected_set_expr_location): Fix formatting.
23212
23213 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23214
23215 PR c/27676
23216 * c-typeck.c (readonly_warning): new.
23217 (build_unary_op, build_modify_expr): Use readonly_warning for
23218 storing into something readonly but not const-qualified.
23219
23220 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23221
23222 PR c/22367
23223 * c-typeck.c (build_unary_op): Check for taking address of
23224 expression of type void.
23225
23226 2009-04-18 Joseph Myers <joseph@codesourcery.com>
23227
23228 PR c/35210
23229 * c-typeck.c (build_function_call): Check for calling a function
23230 with qualified void return types. Call require_complete_type when
23231 generating a trap.
23232
23233 2009-04-18 Jan Hubicka <jh@suse.cz>
23234
23235 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23236 Set nothrow flag.
23237 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23238 can_throw_external flag.
23239 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23240 * ipa-pure-const.c (ignore_edge): New function.
23241 (propagate): Compute order for NOTHROW computation; set NOTHROWs
23242 only over can_throw_external edges.
23243 (local_pure_const): Add nothrow flag.
23244 * ipa-utils.c (searchc): Add ignore_edge callback.
23245 (ipa_utils_reduced_inorder): Add ignore_edge callback.
23246 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23247 (set_nothrow_function_flags): Update cgraph.
23248 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23249
23250 2009-04-18 Richard Guenther <rguenther@suse.de>
23251
23252 PR middle-end/39804
23253 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23254 (fold_stmt): ... this and ...
23255 (fold_stmt_inplace): ... this.
23256 (fold_stmt_1): Fold references in calls and asms.
23257 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23258
23259 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23260
23261 * tree-vrp.c (ssa_name_nonzero_p): Remove.
23262 * tree.h: Remove the prototype for ssa_name_nonzero_p.
23263
23264 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23265
23266 * tree.c (function_args_count): Remove.
23267 * tree.h: Remove the prototype for function_args_count.
23268
23269 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23270
23271 * tree-iterator.c (expr_only): Remove.
23272 * tree.h: Remove the prototype for expr_only.
23273
23274 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23275
23276 * reginfo.c (cannot_change_mode_set_regs): Remove.
23277 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23278
23279 2009-04-08 Anatoly Sokolov <aesok@post.ru>
23280
23281 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23282 whether operands 0 and 1 overlaps.
23283
23284 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
23285
23286 PR middle-end/36902
23287 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23288 pointer. Use warning_at instead of warning.
23289 (search_for_addr_array): Likewise.
23290 (check_array_bounds): Likewise.
23291 (check_all_array_refs): Check that the incoming edge is not in the
23292 list of edges to be removed.
23293 (check_all_array_refs): Avoid the temporal pointer.
23294 (vrp_visit_cond_stmt): Fix typo.
23295 (simplify_switch_using_ranges): Handle the case where the switch
23296 index is an integer constant.
23297
23298 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
23299
23300 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23301
23302 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
23303
23304 * doc/extend.texi, doc/invoke.texi: Fix typos.
23305
23306 2009-04-17 Cary Coutant <ccoutant@google.com>
23307
23308 * tree-flow-inline.h (get_lineno): Fix inverted test.
23309
23310 2009-04-17 Diego Novillo <dnovillo@google.com>
23311
23312 * tree-ssa-pre.c (create_expression_by_pieces): Remove
23313 assertion for AVAIL_OUT.
23314
23315 2009-04-17 Mike Frysinger <vapier@gentoo.org>
23316
23317 PR target/38627
23318 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23319 * config/sh/linux-atomic.asm: Likewise.
23320
23321 2009-04-17 Diego Novillo <dnovillo@google.com>
23322
23323 * except.c (debug_eh_tree): New.
23324 (struct eh_region, struct eh_status): Move ...
23325 * except.h: ... here.
23326 (add_type_for_runtime): Declare extern.
23327 (lookup_type_for_runtime): Likewise.
23328 (debug_eh_tree): Declare.
23329 * Makefile.in (GTFILES): List except.h before except.c
23330
23331 2009-04-17 Diego Novillo <dnovillo@google.com>
23332
23333 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
23334 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
23335 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
23336 (find_vars_r): ... here.
23337 * tree-flow.h (find_referenced_vars_in): Declare.
23338 * tree-ssa-pre.c (create_expression_by_pieces): Assert
23339 that AVAIL_OUT exists for BLOCK.
23340 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
23341 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23342 (tree-parloops.o): Likewise.
23343
23344 2009-04-17 Simon Baldwin <simonb@google.com>
23345
23346 * toplev.c (default_tree_printer): Add handling for %E format.
23347
23348 2009-04-17 Diego Novillo <dnovillo@google.com>
23349
23350 * tree-pretty-print.c (dump_generic_node): Add break after
23351 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
23352 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
23353 FUNCTION_TYPE together. Call print_struct_decl when printing
23354 structures and TDF_SLIM is not given.
23355 (print_struct_decl): Fix logic for detecting recursion.
23356
23357 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
23358
23359 PR 31567
23360 * gcc.c (create_at_file): New.
23361 (compile_input_file_p): New.
23362 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23363 * main.c (main): Update call to toplev_main.
23364 * toplev.c (toplev_main): Change signature. Call expandargv.
23365 * toplev.h (toplev_main): Change signature.
23366
23367 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23368
23369 * dwarf2out.c (field_byte_offset): Use the type size as the field size
23370 if the latter is not constant.
23371
23372 2009-04-17 David Edelsohn <edelsohn@gnu.org>
23373
23374 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23375
23376 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
23377
23378 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23379 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23380
23381 2009-04-17 Richard Guenther <rguenther@suse.de>
23382
23383 * tree-ssa-structalias.c (get_constraint_for_component_ref):
23384 Handle component references view-converting an invariant address.
23385
23386 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
23387
23388 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23389 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23390 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23391 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23392 Use @deftypevr rather than @deftypevar.
23393
23394 2009-04-17 Richard Guenther <rguenther@suse.de>
23395
23396 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
23397 (get_prop_source_stmt): Likewise.
23398 (can_propagate_from): Likewise.
23399
23400 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
23401
23402 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23403 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23404 (--with-multilib-list): Add default value.
23405 * configure: Regenerate.
23406 * Makefile.in (TM_ENDIAN_CONFIG): Define.
23407 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23408 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23409 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23410 Don't add default cpu to multilib list unnecessarily, but do enable
23411 the relevant compiler option..
23412 Add support for --with-multilib-list=<blank> and
23413 --with-multilib-list=!<somelib> to supress unwanted multilibs.
23414 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23415 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23416 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23417 TM_MULTILIB_CONFIG.
23418 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23419 (MULTILIB_OSDIRNAMES): New variable.
23420 * config/sh/t-1e: Delete file.
23421 * config/sh/t-mlib-sh1: Delete file.
23422 * config/sh/t-mlib-sh2: Delete file.
23423 * config/sh/t-mlib-sh2a: Delete file.
23424 * config/sh/t-mlib-sh2a-nofpu: Delete file.
23425 * config/sh/t-mlib-sh2a-single: Delete file.
23426 * config/sh/t-mlib-sh2a-single-only: Delete file.
23427 * config/sh/t-mlib-sh2e: Delete file.
23428 * config/sh/t-mlib-sh3e: Delete file.
23429 * config/sh/t-mlib-sh4: Delete file.
23430 * config/sh/t-mlib-sh4-nofpu: Delete file.
23431 * config/sh/t-mlib-sh4-single: Delete file.
23432 * config/sh/t-mlib-sh4-single-only: Delete file.
23433 * config/sh/t-mlib-sh4a: Delete file.
23434 * config/sh/t-mlib-sh4a-nofpu: Delete file.
23435 * config/sh/t-mlib-sh4a-single: Delete file.
23436 * config/sh/t-mlib-sh4a-single-only: Delete file.
23437 * config/sh/t-mlib-sh4al: Delete file.
23438 * config/sh/t-mlib-sh5-32media: Delete file.
23439 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23440 * config/sh/t-mlib-sh5-64media: Delete file.
23441 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23442 * config/sh/t-mlib-sh5-compact: Delete file.
23443 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23444 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23445 * doc/install.texi (Options specification): Add
23446 --with-multilib-list and --with-endian.
23447
23448 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
23449
23450 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23451 REVISION_c.
23452 (OBJS-common): Add plugin-version.o.
23453 (plugin-version.o): New.
23454 * gcc-plugin.h (plugin_gcc_version): New.
23455 (plugin_default_version_check): New.
23456 (plugin_init_func, plugin_init): Add version argument.
23457 * plugin-version.c: New.
23458 * plugin.c (str_plugin_gcc_version_name): New.
23459 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23460 pass it to the init function.
23461 (plugin_default_version_check): New.
23462
23463 2009-04-17 Richard Guenther <rguenther@suse.de>
23464
23465 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23466 for decl-vs-decl disambiguation.
23467
23468 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
23469
23470 * config/s390/s390.h (s390_tune_attr): New macro definition.
23471 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23472
23473 2009-04-17 Richard Guenther <rguenther@suse.de>
23474
23475 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23476 (fold_stmt_r): Likewise.
23477 (maybe_fold_reference): New function.
23478 (fold_gimple_assign): Handle cases fold_stmt_r did.
23479 (fold_stmt): Do not use fold_stmt_r.
23480 (fold_stmt_inplace): Likewise.
23481
23482 2009-04-17 Richard Guenther <rguenther@suse.de>
23483
23484 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23485 (record_equivalences_from_stmt): Remove useless checks and
23486 simplifications.
23487 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23488 the type is already suitable.
23489
23490 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
23491
23492 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23493
23494 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
23495
23496 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23497 (CMPtype): Define as __gcc_CMPtype.
23498
23499 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
23500
23501 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23502 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23503
23504 2009-04-17 Richard Guenther <rguenther@suse.de>
23505
23506 PR tree-optimization/39746
23507 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23508 special-casing for builtins and static variable use/def.
23509 (call_may_clobber_ref_p_1): Likewise.
23510
23511 2009-04-16 Ian Lance Taylor <iant@google.com>
23512
23513 * df.h: Include "timevar.h".
23514 (struct df_problem): Change tv_id field to timevar_id_t.
23515 * tree-pass.h: Include "timevar.h".
23516 (struct opt_pass): Change tv_id field to timevar_id_t.
23517 * timevar.h (timevar_id_t): Define TV_NONE.
23518 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23519 TV_NONE rather than tv_id != 0.
23520 (execute_one_pass): Likewise.
23521 * Makefile.in (DF_H): Add $(TIMEVAR_H).
23522 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
23523 dependencies to $(TREE_PASS_H).
23524 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23525 to TV_NONE.
23526 (pass_branch_target_load_optimize2): Likewise.
23527 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23528 (pass_outof_cfg_layout_mode): Likewise.
23529 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23530 (pass_rebuild_cgraph_edges): Likewise.
23531 (pass_remove_cgraph_callee_edges): Likewise.
23532 * df-core.c (pass_df_initialize_opt): Likewise.
23533 (pass_df_initialize_no_opt): Likewise.
23534 (pass_df_finish): Likewise.
23535 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23536 * except.c (pass_set_nothrow_function_flags): Likewise.
23537 (pass_convert_to_eh_region_ranges): Likewise.
23538 * final.c (pass_compute_alignments): Likewise.
23539 * function.c (pass_instantiate_virtual_regs): Likewise.
23540 (pass_init_function): Likewise.
23541 (pass_leaf_regs): Likewise.
23542 (pass_match_asm_constraints): Likewise.
23543 * gimple-low.c (pass_lower_cf): Likewise.
23544 (pass_mark_used_blocks): Likewise.
23545 * init-regs.c (pass_initialize_regs): Likewise.
23546 * integrate.c (pass_initial_value_sets): Likewise.
23547 * ira.c (pass_ira): Likewise.
23548 * jump.c (pass_cleanup_barriers): Likewise.
23549 * omp-low.c (pass_expand_omp): Likewise.
23550 (pass_lower_omp): Likewise.
23551 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23552 * recog.c (pass_split_all_insns): Likewise.
23553 (pass_split_after_reload): Likewise.
23554 (pass_split_before_regstack): Likewise.
23555 (pass_split_before_sched2): Likewise.
23556 (pass_split_for_shorten_branches): Likewise.
23557 * reginfo.c (pass_reginfo_init): Likewise.
23558 (pass_subregs_of_mode_init): Likewise.
23559 (pass_subregs_of_mode_finish): Likewise.
23560 * passes.c (pass_postreload): Likewise.
23561 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23562 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23563 (pass_warn_function_return): Likewise.
23564 (pass_warn_function_noreturn): Likewise.
23565 * tree-complex.c (pass_lower_complex): Likewise.
23566 (pass_lower_complex_O0): Likewise.
23567 * tree-if-conv.c (pass_if_conversion): Likewise.
23568 * tree-into-ssa.c (pass_build_ssa): Likewise.
23569 * tree-mudflap.c (pass_mudflap_1): Likewise.
23570 (pass_mudflap_2): Likewise.
23571 * tree-nomudflap.c (pass_mudflap_1): Likewise.
23572 (pass_mudflap_2): Likewise.
23573 * tree-nrv.c (pass_return_slot): Likewise.
23574 * tree-object-size.c (pass_object_sizes): Likewise.
23575 * tree-optimize.c (pass_all_optimizations): Likewise.
23576 (pass_early_local_passes): Likewise.
23577 (pass_all_early_optimizations): Likewise.
23578 (pass_cleanup_cfg): Likewise.
23579 (pass_cleanup_cfg_post_optimizing): Likewise.
23580 (pass_free_datastructures): Likewise.
23581 (pass_free_cfg_annotations): Likewise.
23582 (pass_fixup_cfg): Likewise.
23583 (pass_init_datastructures): Likewise.
23584 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
23585 (pass_late_warn_uninitialized): Likewise.
23586 (pass_update_address_taken): Likewise.
23587 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
23588 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
23589 (pass_cse_sincos): Likewise.
23590 (pass_convert_to_rsqrt): Likewise.
23591 * tree-ssa-structalias.c (pass_build_alias): Likewise.
23592 * tree-stdarg.c (pass_stdarg): Likewise.
23593 * tree-tailcall.c (pass_tail_recursion): Likewise.
23594 (pass_tail_calls): Likewise.
23595 * tree-vect-generic.c (pass_lower_vector): Likewise.
23596 (pass_lower_vector_ssa): Likewise.
23597 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
23598
23599 2009-04-16 Joseph Myers <joseph@codesourcery.com>
23600
23601 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
23602 XLR entry.
23603 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
23604 Handle -march=xlr.
23605 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
23606 logical and signext.
23607
23608 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
23609
23610 PR target/39767
23611 * config/sh/predicates.md (arith_operand): Check if the operand
23612 of TRUNCATE is a REG.
23613
23614 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23615
23616 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
23617 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
23618
23619 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23620
23621 * tree-iterator.c (tsi_split_statement_list_after,
23622 tsi_split_statement_list_before): Remove.
23623 * tree-iterator.h: Remove the prototypes for
23624 tsi_split_statement_list_after and tsi_split_statement_list_before.
23625
23626 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23627
23628 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
23629 * tree-ssa-propagate.h: Remove the prototype for
23630 stmt_makes_single_load.
23631
23632 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23633
23634 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
23635 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
23636
23637 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23638
23639 * tree-iterator.c (EXPR_LAST_BODY): Remove.
23640
23641 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23642
23643 * except.c (eh_region_outer_p): Remove.
23644 * except.h: Remove the prototype for eh_region_outer_p.
23645
23646 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
23647
23648 * function.c (current_function_assembler_name): Remove.
23649 * function.h: Remove the prototype for
23650 current_function_assembler_name.
23651
23652 2009-04-16 Ian Lance Taylor <iant@google.com>
23653
23654 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
23655 (add_reg_note): Call alloc_reg_note.
23656 * rtl.h (alloc_reg_note): Declare.
23657 * combine.c (try_combine): Use alloc_reg_note.
23658 (recog_for_combine, move_deaths): Likewise.
23659 (distribute_notes): Use alloc_reg_note and add_reg_note.
23660 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
23661 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
23662 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
23663
23664 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
23665
23666 PR rtl-optimization/39762
23667 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
23668 ira_may_move_out_cost): Add comments about way of their usage.
23669 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
23670
23671 * ira-conflicts.c (process_regs_for_copy): Use function
23672 ira_get_register_move_cost instead of global
23673 ira_register_move_cost.
23674
23675 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
23676 color_pass, move_spill_restore, update_curr_costs): Ditto.
23677
23678 * ira-lives.c (process_single_reg_class_operands): Ditto.
23679
23680 * ira-emit.c (emit_move_list): Ditto.
23681
23682 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
23683 (record_reg_classes): Ditto. Use functions
23684 ira_get_register_move_cost and ira_get_may_move_cost instead of
23685 global vars ira_register_move_cost, ira_may_move_out_cost and
23686 ira_may_move_in_cost.
23687 (record_address_regs): Don't call ira_init_register_move_cost.
23688 Use function ira_get_may_move_cost instead of global
23689 ira_may_move_in_cost.
23690 (process_bb_node_for_hard_reg_moves): Use function
23691 ira_get_register_move_cost instead of global ira_register_move_cost.
23692 (ira_costs): Don't call ira_init_register_move_cost.
23693
23694 2009-04-16 Richard Guenther <rguenther@suse.de>
23695
23696 * tree-cfg.c (verify_gimple_assign_binary):
23697 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
23698 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
23699 (create_general_new_stmt): Note that this function is broken.
23700
23701 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
23702
23703 * common.opt (fhelp): Add Var(help_flag).
23704 * gcc-plugin.h (plugin_info): Add help.
23705 * plugin.c (plugin_name_args): Add help.
23706 (register_plugin_info): Set plugin->help.
23707 (print_help_one_plugin): New.
23708 (print_plugins_help): New.
23709 * plugin.h (print_plugins_help): New.
23710 * toplev.c (toplev_main): Call print_plugins_help if needed.
23711
23712 2009-04-16 Richard Guenther <rguenther@suse.de>
23713
23714 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
23715 (gimple_ior_addresses_taken_1): New function.
23716 (gimple_ior_addresses_taken): Likewise.
23717 * gimple.h (struct gimple_statement_with_ops_base): Remove
23718 addresses_taken member.
23719 (gimple_ior_addresses_taken): Declare.
23720 (gimple_addresses_taken, gimple_addresses_taken_ptr,
23721 gimple_set_addresses_taken): Remove.
23722 * ipa-reference.c (mark_address): New function.
23723 (scan_stmt_for_static_refs): Use it for marking addresses taken.
23724 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
23725 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
23726 (gimple_add_to_addresses_taken): Remove.
23727 (get_tmr_operands): Call mark_address_taken.
23728 (get_asm_expr_operands): Likewise.
23729 (get_expr_operands): Likewise.
23730 (build_ssa_operands): Do not clear the addresses_taken bitmap.
23731 (free_stmt_operands): Do not free it.
23732 * tree-ssa.c (delete_tree_ssa): Likewise.
23733 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
23734
23735 2009-04-16 Richard Guenther <rguenther@suse.de>
23736
23737 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
23738 (walk_stmt_load_store_ops): Likewise.
23739 * gimple.c (get_base_loadstore): New function.
23740 (walk_stmt_load_store_addr_ops): Likewise.
23741 (walk_stmt_load_store_ops): Likewise.
23742 * ipa-pure-const.c (check_op): Simplify.
23743 (check_load, check_store): New functions.
23744 (check_stmt): Use walk_stmt_load_store_ops.
23745 * ipa-reference.c (mark_load): Adjust signature.
23746 (mark_store): Likewise.
23747 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
23748
23749 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
23750
23751 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
23752 (plugin_info): New.
23753 * opts.c (common_handle_option): Don't call print_version.
23754 * plugin.c (plugin_name_args): Add version.
23755 (register_plugin_info): New.
23756 (register_callback): Handle PLUGIN_INFO.
23757 (try_init_one_plugin): New.
23758 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
23759 if failed to init.
23760 (finalize_one_plugin): New.
23761 (finalize_plugins): New.
23762 (print_one_plugin): New.
23763 (print_plugins_versions): New.
23764 * plugin.h (print_plugins_versions): New.
23765 (finalize_plugins): New.
23766 * toplev.c (compile_file): Don't call initialize_plugins.
23767 (print_version): Call print_plugins_versions.
23768 (toplev_main): Call initialize_plugins. Print version if needed.
23769 Call finalize_plugins.
23770
23771 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
23772
23773 * common.opt (fversion): New.
23774 * gcc.c (print_version): New.
23775 (process_command): Don't print the version. Just set print_version.
23776 (main): Print version. Call subprocesses if print_version and
23777 verbose_flag are set.
23778 * opts.c (common_handle_option): Handle OPT_fversion.
23779
23780 2009-04-16 Richard Guenther <rguenther@suse.de>
23781 Ira Rosen <irar@il.ibm.com>
23782
23783 PR tree-optimization/39698
23784 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
23785 type of the reduction variable. Only generate the def if
23786 it is needed.
23787
23788 * omp-low.c (expand_omp_for_generic): When converting to a pointer
23789 make sure to first convert to an integer of the same precision.
23790 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
23791 the type of the evolution correctly in computing the new
23792 induction variable base.
23793
23794 2009-04-16 Richard Guenther <rguenther@suse.de>
23795
23796 PR middle-end/39625
23797 * tree-cfg.c (make_blocks): Split statements with to-be
23798 abnormal SSA names on the lhs.
23799
23800 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
23801
23802 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
23803 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
23804 * c-typeck.c (really_start_incremental_init): Likewise.
23805 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
23806 (TARGET_INITIALIZER): Remove it.
23807 * target.h (struct target): Remove vector_opaque_p.
23808 * tree.c (build_opaque_vector_type): New.
23809 * tree.h (TYPE_VECTOR_OPAQUE): New.
23810 (build_opaque_vector_type): Declare.
23811 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
23812 * config/rs6000/rs6000.c (build_opaque_vector_type,
23813 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
23814 (rs6000_init_builtins): Use build_opaque_vector_type for
23815 opaque_V4SI_type_node.
23816
23817 2009-04-15 Catherine Moore <clm@codesourcery.com>
23818
23819 * debug.h (set_name): Declare.
23820 * dwarf2out.c (dwarf2out_set_name): Declare.
23821 (dwarf2_debug_hooks): Add set_name.
23822 (find_AT_string): New.
23823 (add_AT_string): Call find_AT_string.
23824 (dwarf2out_set_name): New.
23825 * cp/decl.c (grokdeclarator): Call set_name.
23826 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
23827 * debug.c (do_nothing_debug_hooks): Likewise.
23828 * dbxout.c (dbx_debug_hooks): Likewise.
23829 * sdbout.c (sdb_debug_hooks): Likewise.
23830
23831 2009-04-15 Michael Eager <eager@eagercon.com>
23832
23833 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
23834 reg for single-precision FPU.
23835 * config/rs6000/rs6000.md (movsi_internal1): Only for
23836 !TARGET_SINGLE_FPU.
23837 (movsi_internal1_single): New. Add pattern to move SI values to/from
23838 single-precision FP regs.
23839
23840 2009-04-15 Richard Guenther <rguenther@suse.de>
23841
23842 * omp-low.c (lower_rec_input_clauses): Build correct address
23843 expressions.
23844 (expand_omp_for_generic): Fix multiplication type.
23845 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
23846 (generate_memset_zero): Fix types.
23847 * tree-profile.c (prepare_instrumented_value): Correctly
23848 widen a pointer.
23849
23850 2009-04-15 Ian Lance Taylor <iant@google.com>
23851
23852 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
23853 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
23854 for -Wall and for -Wc++-compat.
23855 (c_common_post_options): For C++, set warn_enum_compare if not
23856 already set.
23857 * c-tree.h (struct c_expr): Add field original_type.
23858 (build_external_ref): Update declaration.
23859 * c-parser.c (c_parser_braced_init): Set original_type.
23860 (c_parser_initelt): Likewise.
23861 (c_parser_expr_no_commas): Likewise.
23862 (c_parser_conditional_expression): Likewise.
23863 (c_parser_cast_expression): Likewise.
23864 (c_parser_unary_expression): Likewise. Pull setting of
23865 original_code to top of function.
23866 (c_parser_sizeof_expression): Set original_type.
23867 (c_parser_alignof_expression): Likewise.
23868 (c_parser_postfix_expression): Likewise. Pull setting of
23869 original_code to top of function.
23870 (c_parser_postfix_expression_after_paren_type): Set original_type.
23871 (c_parser_postfix_expression_after_primary): Likewise.
23872 (c_parser_expression): Likewise.
23873 * c-typeck.c (build_external_ref): Add type parameter. Change all
23874 callers.
23875 (c_expr_sizeof_expr): Set original_type field.
23876 (parser_build_unary_op): Likewise.
23877 (parser_build_binary_op): Likewise. Optionally warn about
23878 comparisons of enums of different types.
23879 (digest_init): Set original_type field.
23880 (really_start_incremental_init): Likewise.
23881 (push_init_level, pop_init_level): Likewise.
23882 * doc/invoke.texi (Warning Options): -Wenum-compare now
23883 supported in C.
23884
23885 2009-04-15 Richard Guenther <rguenther@suse.de>
23886
23887 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
23888 out a necessary conversion.
23889 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
23890 names we didn't value number.
23891 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
23892
23893 2009-04-15 Richard Guenther <rguenther@suse.de>
23894
23895 PR tree-optimization/39764
23896 * tree-ssa-ccp.c (get_value): Canonicalize value with
23897 canonicalize_float_value.
23898
23899 2009-04-15 Jan Hubicka <jh@suse.cz>
23900
23901 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
23902 Wrong version of patch.
23903
23904 2009-04-15 Jan Hubicka <jh@suse.cz>
23905
23906 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
23907
23908 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
23909
23910 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
23911 our distinct integral and vector types.
23912
23913 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
23914
23915 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
23916 * init.c (build_vtbl_address): Remove call to assemble_external.
23917
23918 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
23919
23920 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
23921 output for other floating point modes.
23922
23923 2009-04-14 Diego Novillo <dnovillo@google.com>
23924
23925 * diagnostic.c (diagnostic_report_diagnostic): Do not
23926 warn about loaded plugins for DK_ERROR and DK_WARNING.
23927 * c-decl.c (declspecs_add_type): Move call to
23928 invoke_plugin_callbacks ...
23929 * c-parser.c (c_parser_declspecs): ... here.
23930 * plugin.c (dump_active_plugins): Tidy output.
23931
23932 2009-04-14 Diego Novillo <dnovillo@google.com>
23933 Le-Chun Wu <lcwu@google.com>
23934
23935 * configure.ac: Add --enable-plugin support.
23936 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
23937 * Makefile.in (PLUGIN_H): Define.
23938 Export ENABLE_PLUGIN and GMPINC to site.exp.
23939 Add PLUGINLIBS to link command.
23940 Add/modify dependencies for plugin.o and files including plugin.h.
23941 (plugin.o): New.
23942 * config.in: Regenerate.
23943
23944 * opts.c (common_handle_option): Handle OPT_fplugin_ and
23945 OPT_fplugin_arg_.
23946
23947 2009-04-14 Le-Chun Wu <lcwu@google.com>
23948
23949 * tree-pass.h (register_one_dump_file): Add a prototype for
23950 register_one_dump_file.
23951 * toplev.c (compile_file): Call initialize_plugins.
23952 (do_compile): Call invoke_plugin_callbacks.
23953 (toplev_main): Call invoke_plugin_callbacks.
23954 * common.opt: Add -fplugin= and -fplugin-arg-.
23955 * gcc-plugin.h: New public header file for plugins to include.
23956 * plugin.c: New source file.
23957 * plugin.h: New internal header file.
23958 * passes.c (register_one_dump_file): Make it external.
23959
23960 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
23961
23962 2009-04-14 Diego Novillo <dnovillo@google.com>
23963
23964 * doc/plugins.texi: New.
23965 * doc/gccint.texi: Add reference to Plugins chapter.
23966 * doc/invoke.texi: Document -fplugin and -fplugin-arg
23967 * diagnostic.c (diagnostic_report_diagnostic): Warn about
23968 loaded plugins, if any.
23969 * timevar.def (TV_PLUGIN_INIT): Define.
23970 (TV_PLUGIN_RUN): Define.
23971 * plugin.c: Include timevar.h
23972 (plugins_active_p): New.
23973 (dump_active_plugins): New.
23974 (debug_active_plugins): New.
23975
23976 2009-04-14 Joseph Myers <joseph@codesourcery.com>
23977
23978 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
23979 library paths.
23980 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
23981
23982 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
23983
23984 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
23985 the same as a minus without a shift.
23986
23987 2009-04-14 Nick Clifton <nickc@redhat.com>
23988
23989 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
23990 comparisons with small integers will always produce a short
23991 branch.
23992
23993 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
23994
23995 Merge:
23996 2008-12-19 Diego Novillo <dnovillo@google.com>
23997
23998 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
23999
24000 2009-04-14 Richard Guenther <rguenther@suse.de>
24001
24002 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
24003 verification.
24004 (verify_gimple_assign_binary): Likewise. Handle shifts and
24005 rotates correctly.
24006 (verify_gimple_phi): Print the mismatched argument position.
24007 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
24008 Fix types.
24009 (vect_update_init_of_dr): Likewise.
24010 * matrix-reorg.c (transform_access_sites): Do what the
24011 comment suggests.
24012 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
24013
24014 2009-04-13 Michael Eager <eager@eagercon.com>
24015
24016 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
24017 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
24018 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
24019 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
24020 remove duplicate config
24021
24022 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
24023
24024 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
24025 file_name:line_number type locator of the call site.
24026
24027 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
24028
24029 * genautomata.c: Put blank after comma.
24030 (automaton_decls): New.
24031 (struct unit_usage): Add comments to member next.
24032 (store_alt_unit_usage): Keep the list ordered.
24033 (unit_present_on_list_p, equal_alternatives_p): New.
24034 (check_regexp_units_distribution): Check units distribution
24035 correctness correctly.
24036 (main): Don't write automata if error is found. Return correct
24037 exit code.
24038
24039 * config/m68k/cf.md (cfv4_ds): Remove.
24040 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
24041 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
24042
24043 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
24044 power4-load-ext, power4-store, power4-store-update,
24045 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
24046 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
24047 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
24048 power4-sqrt, power4-isync): Modify reservation to make correct
24049 unit distribution to automata.
24050
24051 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
24052 power5-store-update, power5-two, power5-three, power5-lmul,
24053 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
24054
24055 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
24056
24057 * except.c (pass_set_nothrow_function_flags): Set name and add
24058 TODO_dump_func.
24059 (set_nothrow_function_flags): Mention in the dump file when
24060 changing a function to nothrow.
24061
24062 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
24063
24064 PR/39066
24065 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
24066 instead of unsigned long.
24067
24068 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24069
24070 * config/arm/arm.c (return_used_this_function): Remove.
24071 (arm_output_function_prologue): Remove use of
24072 return_used_this_function.
24073 (output_return_instruction): Replace use of
24074 return_used_this_function
24075 by cfun->machine->return_used_this_function.
24076 (arm_output_epilogue): Likewise.
24077 (arm_output_function_epilogue): Likewise.
24078 (thumb_unexpanded_epilogue): Likewise.
24079 * config/arm/arm.h (struct machine_function):
24080 New member return_used_this_function.
24081
24082 2009-04-12 Mark Mitchell <mark@codesourcery.com>
24083
24084 * doc/install.texi: Correct description of default directory for
24085 --with-gxx-include-dir.
24086
24087 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
24088
24089 * fold-const.c (build_range_check): Properly deal with enumeral and
24090 boolean base types.
24091
24092 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
24093
24094 * doc/invoke.texi (max_gcse_passes): Remove documentation.
24095 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
24096 * params.h (MAX_GCSE_PASSES): Remove.
24097 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
24098 in sequence. Remove ability to run multiple passes.
24099 (bypass_jumps): Report run as third CPROP pass.
24100
24101 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
24102
24103 PR middle-end/39651
24104 * except.c (can_throw_external): Look at each insn in a SEQUENCE
24105 when deciding whether the whole SEQUENCE can throw.
24106
24107 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
24108
24109 PR target/39740
24110 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
24111 offseted label references.
24112
24113 2009-04-11 Jan Hubicka <jh@suse.cz>
24114
24115 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
24116
24117 2009-04-11 Richard Guenther <rguenther@suse.de>
24118
24119 PR middle-end/39732
24120 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
24121 return variables as TREE_ADDRESSABLE.
24122
24123 2009-04-11 Richard Guenther <rguenther@suse.de>
24124
24125 PR tree-optimization/39713
24126 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24127 reference trees have SSA_NAME operands.
24128
24129 2009-04-11 Richard Guenther <rguenther@suse.de>
24130
24131 PR c/39712
24132 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24133 address expressions.
24134
24135 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
24136
24137 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
24138 match changes in Cygwin 1.7
24139 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24140 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
24141
24142 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
24143
24144 PR tree-optimization/39701
24145 * doc/invoke.texi (Optimization Options): Document change in
24146 meaning and initialization of -fdelete-null-pointer-checks.
24147
24148 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
24149
24150 PR middle-end/39701
24151 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24152
24153 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24154 here.
24155
24156 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24157
24158 2009-04-10 Chao-ying Fu <fu@mips.com>
24159
24160 * doc/tm.texi (Instruction Output): Document
24161 TARGET_ASM_FINAL_POSTSCAN_INSN.
24162 * target.h (final_postscan_insn): New field in asm_out.
24163 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24164 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24165 * final.c (final_scan_insn): Call
24166 targetm.asm_out.final_postscan_insn after outputting
24167 an asm macro and a normal instruction.
24168
24169 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24170 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24171 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24172 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24173 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24174
24175 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
24176
24177 PR middle-end/39701
24178 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24179 variables as non-NULL even with -fdelete-null-pointer-checks.
24180
24181 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
24182
24183 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24184
24185 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
24186
24187 PR target/39678
24188 * config/i386/i386.c (classify_argument): Handle SCmode with
24189 (bit_offset % 64) != 0.
24190
24191 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
24192
24193 * doc/invoke.texi (Optimize Options): Add cross-reference to
24194 -Q --help=optimizers examples.
24195
24196 2009-04-10 Ben Elliston <bje@au.ibm.com>
24197
24198 PR target/36800
24199 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24200 regalign for the reg == fpr and TDmode case.
24201
24202 2009-04-09 David Ayers <ayers@fsfe.org>
24203
24204 PR objc/29200
24205 * objc/objc-act.c (warn_with_method): Remove helper function.
24206 (check_duplicates): Call warning and inform directly.
24207 (really_start_method): Likewise.
24208
24209 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
24210
24211 * expmed.c (expand_divmod): Always use a comparison for a division
24212 by a large unsigned integer.
24213
24214 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24215 for things others than variables or functions as nonzero.
24216
24217 2009-04-09 Nick Clifton <nickc@redhat.com>
24218
24219 * unwind-compat.c: Change copyright header to refer to version
24220 3 of the GNU General Public License with version 3.1 of the
24221 GCC Runtime Library Exception and to point readers at the
24222 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
24223 * config/alpha/crtfastmath.c: Likewise.
24224 * config/alpha/linux-unwind.h: Likewise.
24225 * config/alpha/qrnnd.asm: Likewise.
24226 * config/alpha/vms-crt0-64.c: Likewise.
24227 * config/alpha/vms-crt0.c: Likewise.
24228 * config/alpha/vms-dwarf2.asm: Likewise.
24229 * config/alpha/vms-dwarf2eh.asm: Likewise.
24230 * config/alpha/vms-psxcrt0-64.c: Likewise.
24231 * config/alpha/vms-psxcrt0.c: Likewise.
24232 * config/alpha/vms_tramp.asm: Likewise.
24233 * config/arc/initfini.c: Likewise.
24234 * config/arc/lib1funcs.asm: Likewise.
24235 * config/arm/bpabi-v6m.S: Likewise.
24236 * config/arm/bpabi.S: Likewise.
24237 * config/arm/bpabi.c: Likewise.
24238 * config/arm/crti.asm: Likewise.
24239 * config/arm/crtn.asm: Likewise.
24240 * config/arm/ieee754-df.S: Likewise.
24241 * config/arm/ieee754-sf.S: Likewise.
24242 * config/arm/lib1funcs.asm: Likewise.
24243 * config/arm/libunwind.S: Likewise.
24244 * config/arm/linux-atomic.c: Likewise.
24245 * config/arm/mmintrin.h: Likewise.
24246 * config/arm/pr-support.c: Likewise.
24247 * config/arm/unaligned-funcs.c: Likewise.
24248 * config/arm/unwind-arm.c: Likewise.
24249 * config/arm/unwind-arm.h: Likewise.
24250 * config/avr/libgcc.S: Likewise.
24251 * config/bfin/crti.s: Likewise.
24252 * config/bfin/crtlibid.s: Likewise.
24253 * config/bfin/crtn.s: Likewise.
24254 * config/bfin/lib1funcs.asm: Likewise.
24255 * config/bfin/linux-unwind.h: Likewise.
24256 * config/cris/arit.c: Likewise.
24257 * config/cris/cris_abi_symbol.c: Likewise.
24258 * config/darwin-64.c: Likewise.
24259 * config/darwin-crt2.c: Likewise.
24260 * config/darwin-crt3.c: Likewise.
24261 * config/darwin.h: Likewise.
24262 * config/dbxelf.h: Likewise.
24263 * config/dfp-bit.c: Likewise.
24264 * config/dfp-bit.h: Likewise.
24265 * config/elfos.h: Likewise.
24266 * config/fixed-bit.c: Likewise.
24267 * config/fixed-bit.h: Likewise.
24268 * config/fp-bit.c: Likewise.
24269 * config/fp-bit.h: Likewise.
24270 * config/fr30/crti.asm: Likewise.
24271 * config/fr30/crtn.asm: Likewise.
24272 * config/fr30/lib1funcs.asm: Likewise.
24273 * config/freebsd-spec.h: Likewise.
24274 * config/frv/cmovd.c: Likewise.
24275 * config/frv/cmovh.c: Likewise.
24276 * config/frv/cmovw.c: Likewise.
24277 * config/frv/frvbegin.c: Likewise.
24278 * config/frv/frvend.c: Likewise.
24279 * config/frv/lib1funcs.asm: Likewise.
24280 * config/glibc-stdint.h: Likewise.
24281 * config/h8300/clzhi2.c: Likewise.
24282 * config/h8300/crti.asm: Likewise.
24283 * config/h8300/crtn.asm: Likewise.
24284 * config/h8300/ctzhi2.c: Likewise.
24285 * config/h8300/fixunssfsi.c: Likewise.
24286 * config/h8300/lib1funcs.asm: Likewise.
24287 * config/h8300/parityhi2.c: Likewise.
24288 * config/h8300/popcounthi2.c: Likewise.
24289 * config/i386/ammintrin.h: Likewise.
24290 * config/i386/att.h: Likewise.
24291 * config/i386/avxintrin.h: Likewise.
24292 * config/i386/biarch64.h: Likewise.
24293 * config/i386/bmmintrin.h: Likewise.
24294 * config/i386/cpuid.h: Likewise.
24295 * config/i386/cross-stdarg.h: Likewise.
24296 * config/i386/crtfastmath.c: Likewise.
24297 * config/i386/crtprec.c: Likewise.
24298 * config/i386/cygming-crtbegin.c: Likewise.
24299 * config/i386/cygming-crtend.c: Likewise.
24300 * config/i386/cygwin.asm: Likewise.
24301 * config/i386/emmintrin.h: Likewise.
24302 * config/i386/gmm_malloc.h: Likewise.
24303 * config/i386/gthr-win32.c: Likewise.
24304 * config/i386/i386.h: Likewise.
24305 * config/i386/immintrin.h: Likewise.
24306 * config/i386/linux-unwind.h: Likewise.
24307 * config/i386/linux64.h: Likewise.
24308 * config/i386/mm3dnow.h: Likewise.
24309 * config/i386/mmintrin-common.h: Likewise.
24310 * config/i386/mmintrin.h: Likewise.
24311 * config/i386/nmmintrin.h: Likewise.
24312 * config/i386/pmm_malloc.h: Likewise.
24313 * config/i386/pmmintrin.h: Likewise.
24314 * config/i386/smmintrin.h: Likewise.
24315 * config/i386/sol2-c1.asm: Likewise.
24316 * config/i386/sol2-ci.asm: Likewise.
24317 * config/i386/sol2-cn.asm: Likewise.
24318 * config/i386/sol2-gc1.asm: Likewise.
24319 * config/i386/tmmintrin.h: Likewise.
24320 * config/i386/unix.h: Likewise.
24321 * config/i386/w32-unwind.h: Likewise.
24322 * config/i386/wmmintrin.h: Likewise.
24323 * config/i386/x86-64.h: Likewise.
24324 * config/i386/x86intrin.h: Likewise.
24325 * config/i386/xmmintrin.h: Likewise.
24326 * config/ia64/crtbegin.asm: Likewise.
24327 * config/ia64/crtend.asm: Likewise.
24328 * config/ia64/crtfastmath.c: Likewise.
24329 * config/ia64/crti.asm: Likewise.
24330 * config/ia64/crtn.asm: Likewise.
24331 * config/ia64/fde-glibc.c: Likewise.
24332 * config/ia64/lib1funcs.asm: Likewise.
24333 * config/ia64/linux-unwind.h: Likewise.
24334 * config/ia64/quadlib.c: Likewise.
24335 * config/ia64/unwind-ia64.c: Likewise.
24336 * config/linux.h: Likewise.
24337 * config/m32c/m32c-lib1.S: Likewise.
24338 * config/m32c/m32c-lib2-trapv.c: Likewise.
24339 * config/m32c/m32c-lib2.c: Likewise.
24340 * config/m32r/initfini.c: Likewise.
24341 * config/m68hc11/larith.asm: Likewise.
24342 * config/m68hc11/m68hc11-crt0.S: Likewise.
24343 * config/m68k/cf.md: Likewise.
24344 * config/m68k/crti.s: Likewise.
24345 * config/m68k/crtn.s: Likewise.
24346 * config/m68k/lb1sf68.asm: Likewise.
24347 * config/m68k/linux-unwind.h: Likewise.
24348 * config/mcore/crti.asm: Likewise.
24349 * config/mcore/crtn.asm: Likewise.
24350 * config/mcore/lib1.asm: Likewise.
24351 * config/mips/linux-unwind.h: Likewise.
24352 * config/mips/loongson.h: Likewise.
24353 * config/mips/mips16.S: Likewise.
24354 * config/mmix/crti.asm: Likewise.
24355 * config/mmix/crtn.asm: Likewise.
24356 * config/pa/fptr.c: Likewise.
24357 * config/pa/hpux-unwind.h: Likewise.
24358 * config/pa/lib2funcs.asm: Likewise.
24359 * config/pa/linux-atomic.c: Likewise.
24360 * config/pa/linux-unwind.h: Likewise.
24361 * config/pa/milli64.S: Likewise.
24362 * config/pa/quadlib.c: Likewise.
24363 * config/pa/stublib.c: Likewise.
24364 * config/picochip/libgccExtras/adddi3.asm: Likewise.
24365 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24366 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24367 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24368 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24369 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24370 * config/picochip/libgccExtras/divmod15.asm: Likewise.
24371 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24372 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24373 * config/picochip/libgccExtras/longjmp.asm: Likewise.
24374 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24375 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24376 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24377 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24378 * config/picochip/libgccExtras/setjmp.asm: Likewise.
24379 * config/picochip/libgccExtras/subdi3.asm: Likewise.
24380 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24381 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24382 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24383 * config/rs6000/750cl.h: Likewise.
24384 * config/rs6000/altivec.h: Likewise.
24385 * config/rs6000/biarch64.h: Likewise.
24386 * config/rs6000/crtresfpr.asm: Likewise.
24387 * config/rs6000/crtresgpr.asm: Likewise.
24388 * config/rs6000/crtresxfpr.asm: Likewise.
24389 * config/rs6000/crtresxgpr.asm: Likewise.
24390 * config/rs6000/crtsavfpr.asm: Likewise.
24391 * config/rs6000/crtsavgpr.asm: Likewise.
24392 * config/rs6000/darwin-asm.h: Likewise.
24393 * config/rs6000/darwin-fallback.c: Likewise.
24394 * config/rs6000/darwin-fpsave.asm: Likewise.
24395 * config/rs6000/darwin-ldouble.c: Likewise.
24396 * config/rs6000/darwin-tramp.asm: Likewise.
24397 * config/rs6000/darwin-unwind.h: Likewise.
24398 * config/rs6000/darwin-vecsave.asm: Likewise.
24399 * config/rs6000/darwin-world.asm: Likewise.
24400 * config/rs6000/e500crtres32gpr.asm: Likewise.
24401 * config/rs6000/e500crtres64gpr.asm: Likewise.
24402 * config/rs6000/e500crtres64gprctr.asm: Likewise.
24403 * config/rs6000/e500crtrest32gpr.asm: Likewise.
24404 * config/rs6000/e500crtrest64gpr.asm: Likewise.
24405 * config/rs6000/e500crtresx32gpr.asm: Likewise.
24406 * config/rs6000/e500crtresx64gpr.asm: Likewise.
24407 * config/rs6000/e500crtsav32gpr.asm: Likewise.
24408 * config/rs6000/e500crtsav64gpr.asm: Likewise.
24409 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24410 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24411 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24412 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24413 * config/rs6000/eabi-ci.asm: Likewise.
24414 * config/rs6000/eabi-cn.asm: Likewise.
24415 * config/rs6000/eabi.asm: Likewise.
24416 * config/rs6000/linux-unwind.h: Likewise.
24417 * config/rs6000/linux64.h: Likewise.
24418 * config/rs6000/paired.h: Likewise.
24419 * config/rs6000/paired.md: Likewise.
24420 * config/rs6000/ppc64-fp.c: Likewise.
24421 * config/rs6000/ppu_intrinsics.h: Likewise.
24422 * config/rs6000/rs6000.h: Likewise.
24423 * config/rs6000/si2vmx.h: Likewise.
24424 * config/rs6000/sol-ci.asm: Likewise.
24425 * config/rs6000/sol-cn.asm: Likewise.
24426 * config/rs6000/spe.h: Likewise.
24427 * config/rs6000/spu2vmx.h: Likewise.
24428 * config/rs6000/sysv4.h: Likewise.
24429 * config/rs6000/tramp.asm: Likewise.
24430 * config/rs6000/vec_types.h: Likewise.
24431 * config/s390/linux-unwind.h: Likewise.
24432 * config/s390/tpf-unwind.h: Likewise.
24433 * config/score/crti.asm: Likewise.
24434 * config/score/crtn.asm: Likewise.
24435 * config/sh/crt1.asm: Likewise.
24436 * config/sh/crti.asm: Likewise.
24437 * config/sh/crtn.asm: Likewise.
24438 * config/sh/divtab-sh4-300.c: Likewise.
24439 * config/sh/divtab-sh4.c: Likewise.
24440 * config/sh/divtab.c: Likewise.
24441 * config/sh/lib1funcs-4-300.asm: Likewise.
24442 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24443 * config/sh/lib1funcs.asm: Likewise.
24444 * config/sh/lib1funcs.h: Likewise.
24445 * config/sh/linux-atomic.asm: Likewise.
24446 * config/sh/linux-unwind.h: Likewise.
24447 * config/sh/shmedia.h: Likewise.
24448 * config/sh/sshmedia.h: Likewise.
24449 * config/sh/ushmedia.h: Likewise.
24450 * config/sparc/crtfastmath.c: Likewise.
24451 * config/sparc/linux-unwind.h: Likewise.
24452 * config/sparc/sol2-c1.asm: Likewise.
24453 * config/sparc/sol2-ci.asm: Likewise.
24454 * config/sparc/sol2-cn.asm: Likewise.
24455 * config/spu/divmodti4.c: Likewise.
24456 * config/spu/divv2df3.c: Likewise.
24457 * config/spu/float_disf.c: Likewise.
24458 * config/spu/float_unsdidf.c: Likewise.
24459 * config/spu/float_unsdisf.c: Likewise.
24460 * config/spu/float_unssidf.c: Likewise.
24461 * config/spu/mfc_multi_tag_release.c: Likewise.
24462 * config/spu/mfc_multi_tag_reserve.c: Likewise.
24463 * config/spu/mfc_tag_release.c: Likewise.
24464 * config/spu/mfc_tag_reserve.c: Likewise.
24465 * config/spu/mfc_tag_table.c: Likewise.
24466 * config/spu/multi3.c: Likewise.
24467 * config/spu/spu_internals.h: Likewise.
24468 * config/spu/spu_intrinsics.h: Likewise.
24469 * config/spu/spu_mfcio.h: Likewise.
24470 * config/spu/vec_types.h: Likewise.
24471 * config/spu/vmx2spu.h: Likewise.
24472 * config/stormy16/stormy16-lib2.c: Likewise.
24473 * config/svr4.h: Likewise.
24474 * config/sync.c: Likewise.
24475 * config/v850/lib1funcs.asm: Likewise.
24476 * config/vxlib-tls.c: Likewise.
24477 * config/vxlib.c: Likewise.
24478 * config/vxworks-dummy.h: Likewise.
24479 * config/xtensa/crti.asm: Likewise.
24480 * config/xtensa/crtn.asm: Likewise.
24481 * config/xtensa/ieee754-df.S: Likewise.
24482 * config/xtensa/ieee754-sf.S: Likewise.
24483 * config/xtensa/lib1funcs.asm: Likewise.
24484 * config/xtensa/lib2funcs.S: Likewise.
24485 * config/xtensa/linux-unwind.h: Likewise.
24486 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24487 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24488 * coretypes.h: Likewise.
24489 * crtstuff.c: Likewise.
24490 * defaults.h: Likewise.
24491 * dwarf2.h: Likewise.
24492 * emutls.c: Likewise.
24493 * gbl-ctors.h: Likewise.
24494 * gcov-io.h: Likewise.
24495 * ginclude/float.h: Likewise.
24496 * ginclude/iso646.h: Likewise.
24497 * ginclude/stdarg.h: Likewise.
24498 * ginclude/stdbool.h: Likewise.
24499 * ginclude/stddef.h: Likewise.
24500 * ginclude/stdfix.h: Likewise.
24501 * ginclude/stdint-gcc.h: Likewise.
24502 * ginclude/tgmath.h: Likewise.
24503 * gthr-aix.h: Likewise.
24504 * gthr-dce.h: Likewise.
24505 * gthr-gnat.c: Likewise.
24506 * gthr-gnat.h: Likewise.
24507 * gthr-lynx.h: Likewise.
24508 * gthr-mipssde.h: Likewise.
24509 * gthr-nks.h: Likewise.
24510 * gthr-posix.c: Likewise.
24511 * gthr-posix.h: Likewise.
24512 * gthr-posix95.h: Likewise.
24513 * gthr-rtems.h: Likewise.
24514 * gthr-single.h: Likewise.
24515 * gthr-solaris.h: Likewise.
24516 * gthr-tpf.h: Likewise.
24517 * gthr-vxworks.h: Likewise.
24518 * gthr-win32.h: Likewise.
24519 * gthr.h: Likewise.
24520 * libgcc2.c: Likewise.
24521 * libgcc2.h: Likewise.
24522 * libgcov.c: Likewise.
24523 * tsystem.h: Likewise.
24524 * typeclass.h: Likewise.
24525 * unwind-c.c: Likewise.
24526 * unwind-compat.h: Likewise.
24527 * unwind-dw2-fde-compat.c: Likewise.
24528 * unwind-dw2-fde-darwin.c: Likewise.
24529 * unwind-dw2-fde-glibc.c: Likewise.
24530 * unwind-dw2-fde.c: Likewise.
24531 * unwind-dw2-fde.h: Likewise.
24532 * unwind-dw2.c: Likewise.
24533 * unwind-dw2.h: Likewise.
24534 * unwind-generic.h: Likewise.
24535 * unwind-pe.h: Likewise.
24536 * unwind-sjlj.c: Likewise.
24537 * unwind.inc: Likewise.
24538 * config/arm/neon-gen.ml: Change generated copyright header to
24539 refer to version 3 of the GNU General Public License with
24540 version 3.1 of the GCC Runtime Library Exception and to point
24541 readers at the COPYING3 and COPYING3.RUNTIME files and the
24542 FSF's license web page.
24543 * config/arm/arm_neon.h: Regenerate.
24544
24545 2009-04-09 Jakub Jelinek <jakub@redhat.com>
24546
24547 * config/cris/cris.md: Change copyright header to refer to version
24548 3 of the GNU General Public License.
24549 * doc/install.texi2html: Change copyright header to refer to version
24550 3 of the GNU General Public License and to point readers at the
24551 COPYING3 file and the FSF's license web page.
24552 * config/vax/linux.h: Likewise.
24553
24554 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
24555
24556 * config/i386/i386.md (cmpcc): New.
24557 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24558 (sync_compare_and_swap_cc*): Delete.
24559
24560 * config/s390/s390.c (s390_compare_emitted): Remove.
24561 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24562 s390_compare_emitted used to be handled. Assert that modes match.
24563 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24564 refer to sync_compare_and_swap_ccsi.
24565 * config/s390/s390.h (s390_compare_emitted): Remove.
24566 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
24567 instead of s390_compare_emitted.
24568 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
24569 instead of s390_compare_emitted.
24570 * config/s390/s390.md (cmpcc): New.
24571 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
24572 CC_REGNUM, do not pretend it's set.
24573 (sync_compare_and_swap_cc*): Delete.
24574 * config/s390/predicates.md (cc_reg_operand): New.
24575
24576 * expr.c (sync_compare_and_swap_cc): Delete.
24577 * optabs.h (sync_compare_and_swap_cc): Delete.
24578 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
24579 is being used with can_compare_p.
24580 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
24581 (find_cc_set): New.
24582 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
24583 look for a MODE_CC set instead. Use emit_store_flag.
24584 (expand_compare_and_swap_loop): Likewise, with some additional
24585 complication to avoid a force_reg when useless. Use
24586 emit_cmp_and_jump_insns.
24587 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
24588 * doc/md.texi (sync_compare_and_swap_cc): Merge with
24589 sync_compare_and_swap documentation.
24590
24591 2009-04-09 Jan Hubicka <jh@suse.cz>
24592
24593 * except.c (find_prev_try): Break out from ....
24594 (duplicate_eh_regions): ... here; properly update prev_try pointers
24595 when duplication part of tree.
24596 (dump_eh_tree): Improve dumping.
24597 (verify_eh_region): New.
24598 (verify_eh_tree): Use it.
24599
24600 2009-04-06 Richard Guenther <rguenther@suse.de>
24601
24602 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
24603 &ARRAY addresses by adjusting their types and prepending
24604 a conversion.
24605 * tree-cfg.c (verify_gimple_assign_single): Verify that
24606 addresses are correct.
24607
24608 2009-04-09 Richard Guenther <rguenther@suse.de>
24609
24610 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
24611 indices into an array reference if possible.
24612 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24613 Fold POINTER_PLUS_EXPR statements with invariant address.
24614
24615 2009-04-09 Alan Modra <amodra@bigpond.net.au>
24616
24617 PR target/39634
24618 * config.gcc (powerpc64-*-linux*): Always build biarch.
24619
24620 2009-04-09 Joseph Myers <joseph@codesourcery.com>
24621
24622 PR c/39613
24623 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
24624 it and pedwarn if this results in an INTEGER_CST.
24625
24626 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24627
24628 * doc/install.texi: Update minimum GMP version. Remove obsolete
24629 text in MPFR section.
24630
24631 2009-04-08 Jakub Jelinek <jakub@redhat.com>
24632
24633 * dwarf2out.c (class_scope_p): New static inline.
24634 (class_or_namespace_scope_p): Use it.
24635 (gen_variable_die): Use DW_TAG_member tag for static data member
24636 declarations instead of DW_TAG_variable.
24637
24638 PR middle-end/39573
24639 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
24640 variables.
24641
24642 2009-04-08 Richard Guenther <rguenther@suse.de>
24643
24644 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
24645 valueize random data.
24646
24647 2009-04-08 David Edelsohn <edelsohn@gnu.org>
24648
24649 * config.gcc (aix tm_file): Add aix-stdint.h.
24650 (aix tm clause use_gcc_stdint): Set to wrap.
24651 * config/rs6000/aix-stdint.h: New file.
24652
24653 2009-04-08 Richard Guenther <rguenther@suse.de>
24654
24655 PR middle-end/36291
24656 * tree-dfa.c (add_referenced_var): Do not recurse into
24657 global initializers.
24658 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
24659 exposed variables.
24660 (fold_const_aggregate_ref): Likewise.
24661
24662 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
24663
24664 * recog.c (ordered_comparison_operator): New.
24665 * gensupport.c (std_preds): Add it.
24666 * doc/md.texi (Machine-Independent Predicates): Document it.
24667
24668 2009-04-08 Jan Hubicka <jh@suse.cz>
24669
24670 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
24671 * function.h (rtl_eh): Remove exception_handler_label_map.
24672 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
24673 remove_exception_handler_label, for_each_eh_label_1): Remove.
24674 (rtl_remove_unreachable_regions): Remove.
24675 (convert_from_eh_region_ranges): Do not remove unreachable regions.
24676 (find_exception_handler_labels): Don't build the hashtable.
24677 (maybe_remove_eh_handler): Remove.
24678 (for_each_eh_label): Rewrite to walk the tree.
24679 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
24680 * except.h (maybe_remove_eh_handler): Remove.
24681 * passes.c (init_optimization_passes): Schedule second EH cleanup
24682 before out-of-ssa.
24683 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
24684 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
24685
24686 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
24687
24688 * genoutput.c (validate_optab_operands): New.
24689 (gen_insn, gen_expand): Call it.
24690
24691 * genflags.c (gen_insn): Detect misused iterators.
24692 (main): Pass line_no to gen_insn, exit with status 1 on error.
24693
24694 * genextract.c (line_no): Make global.
24695 (VEC_safe_set_locstr): Change assertion to error message.
24696 (main): Exit with status 1 on error.
24697
24698 2009-04-08 Joseph Myers <joseph@codesourcery.com>
24699
24700 PR c/39614
24701 PR c/39673
24702 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24703 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24704 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
24705 * c-convert.c (convert): Do not call fold on results of conversion
24706 functions when the result is a C_MAYBE_CONST_EXPR.
24707 * c-parser.c (c_parser_postfix_expression): Do not fold condition
24708 of __builtin_choose_expr.
24709 * c-typeck.c (remove_c_maybe_const_expr): New.
24710 (build_unary_op, build_conditional_expr, build_compound_expr,
24711 build_binary_op, c_objc_common_truthvalue_conversion): Call
24712 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
24713 integer operands.
24714
24715 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
24716
24717 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
24718 CODE to produce a new one. Add a prototype to use fold_convert_const
24719
24720 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
24721
24722 PR bootstrap/39660
24723 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
24724 mix declarations and code.
24725
24726 2009-04-08 Ben Elliston <bje@au.ibm.com>
24727
24728 * gcc.c: Replace `CC' with `GCC' throughout.
24729
24730 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
24731
24732 * doc/invoke.texi: Document Atom support.
24733
24734 2009-04-07 Jason Merrill <jason@redhat.com>
24735
24736 PR c++/25185
24737 * c-common.h, c-common.c: Add flag_pretty_templates.
24738 * c-opts.c (c_common_handle_option): Set it.
24739 * c.opt: Add -fno-pretty-templates.
24740 * doc/invoke.texi (C++ Dialect Options): Likewise.
24741
24742 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
24743
24744 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
24745 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
24746 (ia64_expand_builtin): Likewise.
24747
24748 2009-04-07 Martin Jambor <mjambor@suse.cz>
24749
24750 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
24751 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
24752 ADDR_EXPRS are include too.
24753
24754 2009-04-07 Richard Guenther <rguenther@suse.de>
24755
24756 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
24757 decls are only used if passes as parameters or if they are
24758 local statics and the call is not to a builtin.
24759 (call_may_clobber_ref_p_1): Likewise.
24760
24761 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
24762
24763 * expr.c (do_store_flag): Remove last argument. Simplify code
24764 to avoid duplication of tests already done by can_compare_p.
24765 (expand_expr_real_1): Adjust caller.
24766
24767 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
24768
24769 * optabs.c (can_compare_p): Test the predicate of a
24770 cbranch and cstore pattern.
24771
24772 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
24773
24774 * expr.c (convert_move): Use emit_store_flag instead of
24775 "emulating" it.
24776
24777 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
24778
24779 * config/i386/i386.c (ix86_compare_emitted): Remove.
24780 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
24781 ix86_compare_op0 like ix86_compare_emitted used to be handled.
24782 * config/i386/i386.h (ix86_compare_emitted): Remove.
24783 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
24784 instead of ix86_compare_emitted.
24785 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
24786
24787 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
24788
24789 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
24790 Add t-sysroot-suffix to tmake_file.
24791 * config/print-sysroot-suffix.sh: New file.
24792 * config/t-sysroot-suffix: New file.
24793
24794 2009-04-07 Ben Elliston <bje@au.ibm.com>
24795
24796 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
24797 as the latter produces a warning when the target does not support
24798 infinity.
24799
24800 2009-04-07 Ben Elliston <bje@au.ibm.com>
24801
24802 * dfp.c: Replace type punning assignments with memcpy throughout.
24803 * Makefile.in (dfp.o-warn): Remove.
24804
24805 2009-04-07 Alan Modra <amodra@bigpond.net.au>
24806
24807 PR target/39634
24808 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
24809 Include soft-fp/t-softfp after rs6000/t-linux64.
24810
24811 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
24812
24813 * stor-layout.c (set_sizetype): Use the full precision of their
24814 machine mode for bitsize types.
24815
24816 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
24817
24818 * config/i386/i386.md: Revert 2 accidental checkins.
24819
24820 2009-04-06 Joey Ye <joey.ye@intel.com>
24821 Xuepeng Guo <xuepeng.guo@intel.com>
24822 H.J. Lu <hongjiu.lu@intel.com>
24823
24824 Atom pipeline model, tuning and insn selection.
24825 * config.gcc (atom): Add atom config options and target.
24826
24827 * config/i386/atom.md: New.
24828
24829 * config/i386/i386.c (atom_cost): New cost.
24830 (m_ATOM): New macro flag.
24831 (initial_ix86_tune_features): Set m_ATOM.
24832 (x86_accumulate_outgoing_args): Likewise.
24833 (x86_arch_always_fancy_math_387): Likewise.
24834 (processor_target): Add Atom cost.
24835 (cpu_names): Add Atom cpu name.
24836 (override_options): Set Atom ISA.
24837 (ix86_issue_rate): New case PROCESSOR_ATOM.
24838 (ix86_adjust_cost): Likewise.
24839
24840 * config/i386/i386.h (TARGET_ATOM): New target macro.
24841 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
24842 (TARGET_OPT_AGU): New target option.
24843 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
24844 (processor_type): Add PROCESSOR_ATOM.
24845
24846 * config/i386/i386.md (cpu): Add new value "atom".
24847 (use_carry, movu): New attr.
24848 (atom.md): Include atom.md.
24849 (adddi3_carry_rex64): Set attr "use_carry".
24850 (addqi3_carry): Likewise.
24851 (addhi3_carry): Likewise.
24852 (addsi3_carry): Likewise.
24853 (*addsi3_carry_zext): Likewise.
24854 (subdi3_carry_rex64): Likewise.
24855 (subqi3_carry): Likewise.
24856 (subhi3_carry): Likewise.
24857 (subsi3_carry): Likewise.
24858 (x86_movdicc_0_m1_rex64): Likewise.
24859 (*x86_movdicc_0_m1_se): Likewise.
24860 (x86_movsicc_0_m1): Likewise.
24861 (*x86_movsicc_0_m1_se): Likewise.
24862 (*adddi_1_rex64): Emit add insn as much as possible.
24863 (*addsi_1): Likewise.
24864 (return_internal): Set atom_unit.
24865 (return_internal_long): Likewise.
24866 (return_pop_internal): Likewise.
24867 (*rcpsf2_sse): Set atom_sse_attr attr.
24868 (*qrt<mode>2_sse): Likewise.
24869 (*prefetch_sse): Likewise.
24870
24871 * config/i386/i386-c.c (ix86_target_macros_internal): New case
24872 PROCESSOR_ATOM.
24873 (ix86_target_macros_internal): Likewise.
24874
24875 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
24876 (*prefetch_sse_rex): Likewise.
24877 (sse_rcpv4sf2): Likewise.
24878 (sse_vmrcpv4sf2): Likewise.
24879 (sse_sqrtv4sf2): Likewise.
24880 (<sse>_vmsqrt<mode>2): Likewise.
24881 (sse_ldmxcsr): Likewise.
24882 (sse_stmxcsr): Likewise.
24883 (*sse_sfence): Likewise.
24884 (sse2_clflush): Likewise.
24885 (*sse2_mfence): Likewise.
24886 (*sse2_lfence): Likewise.
24887 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
24888 (<sse>_movup<ssemodesuffixf2c>): Likewise.
24889 (avx_movdqu<avxmodesuffix>): Likewise.
24890 (avx_lddqu<avxmodesuffix>): Likewise.
24891 (sse2_movntv2di): Change attr "type" to "ssemov".
24892 (sse2_movntsi): Likewise.
24893 (rsqrtv8sf2): Change attr "type" to "sseadd".
24894 (sse3_addsubv2df3): Set attr "atom_unit".
24895 (sse3_h<plusminus_insn>v4sf3): Likewise.
24896 (*sse2_pmaddwd): Likewise.
24897 (*vec_extractv2di_1_rex64): Likewise.
24898 (*vec_extractv2di_1_avx): Likewise.
24899 (sse2_psadbw): Likewise.
24900 (ssse3_phaddwv8hi3): Likewise.
24901 (ssse3_phaddwv4hi3): Likewise.
24902 (ssse3_phadddv4si3): Likewise.
24903 (ssse3_phadddv2si3): Likewise.
24904 (ssse3_phaddswv8hi3): Likewise.
24905 (ssse3_phaddswv4hi3): Likewise.
24906 (ssse3_phsubwv8hi3): Likewise.
24907 (ssse3_phsubwv4hi3): Likewise.
24908 (ssse3_phsubdv4si3): Likewise.
24909 (ssse3_phsubdv2si3): Likewise.
24910 (ssse3_phsubswv8hi3): Likewise.
24911 (ssse3_phsubswv4hi3): Likewise.
24912 (ssse3_pmaddubsw128): Likewise.
24913 (sse3_pmaddubsw: Likewise.
24914 (ssse3_palignrti): Likewise.
24915 (ssse3_palignrdi): Likewise.
24916
24917 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
24918
24919 * doc/install.texi (Specific): Fix two cross-references to MinGW.
24920
24921 2009-04-06 Richard Guenther <rguenther@suse.de>
24922
24923 PR tree-optimization/28868
24924 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
24925 of which PHI results we inserted.
24926 (insert_into_preds_of_block): Record inserted PHIs.
24927 (eliminate): Eliminate redundant PHI nodes.
24928 (init_pre): Init inserted_phi_names.
24929
24930 2009-04-06 Richard Guenther <rguenther@suse.de>
24931
24932 PR tree-optimization/39643
24933 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
24934 IMAGPART_EXPRs of complex constants.
24935 (execute_fold_all_builtins): If we folded a call queue
24936 TODO_update_address_taken.
24937
24938 2009-04-06 Jan Hubicka <jh@suse.cz>
24939
24940 PR middle-end/39659
24941 * except.c (remove_unreachable_regions): Propagate may_contain_throw
24942 flag.
24943
24944 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
24945
24946 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
24947 delay slot.
24948 (ic_invalidate_array): Likewise.
24949
24950 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
24951
24952 * calls.c (emit_library_call_value_1): Fix a problem with parameter
24953 alignment for library calls.
24954
24955 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
24956
24957 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
24958 (mingw32 tm clause use_gcc_stdint): Set to wrap.
24959 * config/i386/mingw-stdint.h: New file.
24960
24961 2009-04-05 Richard Guenther <rguenther@suse.de>
24962
24963 PR tree-optimization/39648
24964 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
24965 our &A vs. &A[0] IL deficiencies.
24966
24967 2009-04-04 Jan Hubicka <jh@suse.cz>
24968
24969 * except.c (sjlj_find_directly_reachable_regions): Be ready for
24970 removed toplevel regions.
24971 (sjlj_mark_call_sites): Likewise.
24972
24973 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
24974
24975 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
24976 (cygwin tm clause use_gcc_stdint): Set to wrap.
24977 * config/i386/cygwin-stdint.h: New file.
24978
24979 2009-04-04 Richard Guenther <rguenther@suse.de>
24980
24981 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
24982 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
24983 single-argument PHIs if we are in loop-closed SSA form.
24984 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
24985 for the pre-condition.
24986 (slpeel_tree_peel_loop_to_edge): Likewise.
24987 (vect_build_loop_niters): Take an optional sequence to append stmts.
24988 (vect_generate_tmps_on_preheader): Likewise.
24989 (vect_do_peeling_for_loop_bound): Take extra guards for the
24990 pre-condition.
24991 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
24992 the cost model check.
24993 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
24994 guards if we are going to peel. Do not apply versioning in that case.
24995 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
24996 (vect_do_peeling_for_loop_bound): Likewise.
24997 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
24998 loop bound only record extra pre-conditions, do not apply loop
24999 versioning.
25000
25001 2009-04-04 Richard Guenther <rguenther@suse.de>
25002
25003 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
25004 renaming code.
25005
25006 2009-04-04 Jan Hubicka <jh@suse.cz>
25007
25008 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25009 last_basic_block for size of bb->index indexed array.
25010 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
25011 compute_out, link_btr_uses, build_btr_def_use_webs,
25012 build_btr_def_use_webs, migrate_btr_defs): Likewise.
25013
25014 2009-04-04 Jan Hubicka <jh@suse.cz>
25015
25016 * except.c (remove_eh_handler_and_replace): Break out from ...
25017 (remove_eh_handler): ... here.
25018 (bring_to_root): New function.
25019 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
25020 handled ones, bring others to root of tree.
25021
25022 2009-04-04 Jan Hubicka <jh@suse.cz>
25023
25024 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
25025 (all_phis_safe_to_merge): New function.
25026 (update_info): New structure.
25027 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
25028 (cleanup_empty_eh): Update SSA if possible.
25029
25030 2009-04-04 Richard Guenther <rguenther@suse.de>
25031
25032 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
25033 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
25034 (append_vuse): Likewise.
25035
25036 2009-04-04 Jakub Jelinek <jakub@redhat.com>
25037
25038 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
25039 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
25040 instead of REG_UNSAVED for DW_CFA_undefined.
25041 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
25042 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
25043 outermost frame.
25044
25045 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
25046
25047 PR target/39501
25048 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
25049
25050 2009-04-04 Richard Guenther <rguenther@suse.de>
25051
25052 PR tree-optimization/8781
25053 PR tree-optimization/37892
25054 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
25055 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
25056 (valueize_refs): Call it for *& valueizations.
25057 (shared_reference_ops_from_ref): Rename to ...
25058 (valueize_shared_reference_ops_from_ref): ... this and valueize.
25059 (shared_reference_ops_from_call): Rename to ...
25060 (valueize_shared_reference_ops_from_call): ... this and valueize.
25061 (vn_reference_lookup): Update.
25062 (visit_reference_op_call): Likewise.
25063 * tree-ssa-pre.c (phi_translate_1): Fold *&.
25064 (eliminate): Value-replace the call address in call statements.
25065
25066 2009-04-04 Richard Guenther <rguenther@suse.de>
25067
25068 PR tree-optimization/39636
25069 * tree-ssa-forwprop.c
25070 (forward_propagate_addr_into_variable_array_index): Check for
25071 GIMPLE_ASSIGN before accessing the rhs code.
25072
25073 2009-04-03 Jason Merrill <jason@redhat.com>
25074
25075 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
25076
25077 2009-04-03 Steve Ellcey <sje@cup.hp.com>
25078
25079 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
25080 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
25081 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
25082 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
25083 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
25084 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
25085 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
25086 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
25087 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
25088 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
25089 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
25090 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
25091 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
25092 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
25093 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
25094 Use fr_reg_or_fp01_operand instead of fr_register_operand
25095
25096 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
25097 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
25098 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
25099
25100 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
25101
25102 PR rtl-optimization/39607
25103 PR rtl-optimization/39631
25104
25105 Revert:
25106
25107 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
25108 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25109 instead of DF_LR_OUT.
25110 * ira-lives.c (process_bb_node_lives): Ditto.
25111 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25112 instead of DF_LR_{OUT,IN}.
25113 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25114 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25115
25116 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
25117
25118 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
25119 (execute_lower_omp): Always run but take the short way out if -fopenmp
25120 is not given.
25121 (gate_lower_omp): Remove, forcing the pass manager to always run the
25122 pass and always set PROP_gimple_lomp.
25123 (pass_lower_omp): Remove gate function.
25124 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25125 PROP_trees. Instead, require it.
25126 * ipa-cp.c (pass_ipa_cp): Likewise.
25127 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25128 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25129 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25130 and PROP_gimple_leh.
25131
25132 2009-04-03 Richard Guenther <rguenther@suse.de>
25133
25134 PR middle-end/13146
25135 PR tree-optimization/23940
25136 PR tree-optimization/33237
25137 PR middle-end/33974
25138 PR middle-end/34093
25139 PR tree-optimization/36201
25140 PR tree-optimization/36230
25141 PR tree-optimization/38049
25142 PR tree-optimization/38207
25143 PR tree-optimization/38230
25144 PR tree-optimization/38301
25145 PR tree-optimization/38585
25146 PR middle-end/38895
25147 PR tree-optimization/38985
25148 PR tree-optimization/39299
25149 * tree-ssa-structalias.h: Remove.
25150 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25151 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25152 (struct vuse_element_d): Remove.
25153 (struct vuse_vec_d): Likewise.
25154 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25155 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25156 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25157 VUSE_ELEMENT_VAR): Likewise.
25158 (struct voptype_d): Likewise.
25159 (NUM_VOP_FREE_BUCKETS): Likewise.
25160 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25161 (struct stmt_operands_d): Remove.
25162 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25163 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25164 VDEF_NUM, VDEF_VECT): Likewise.
25165 (copy_virtual_operands): Remove.
25166 (operand_build_cmp): Likewise.
25167 (create_ssa_artificial_load_stmt): Likewise.
25168 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25169 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25170 vuse_index and mayuse_index members. Pack and move done and iter_type
25171 members to the front.
25172 (SSA_OP_VMAYUSE): Remove.
25173 (SSA_OP_VIRTUAL_USES): Adjust.
25174 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25175 (unlink_stmt_vdef): Declare.
25176 (add_to_addressable_set): Remove.
25177 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25178 (vrp_visit_stmt): Likewise.
25179 * doc/tree-ssa.texi (Alias analysis): Update.
25180 * doc/invoke.texi (max-aliased-vops): Remove docs.
25181 (avg-aliased-vops): Likewise.
25182 * tree-into-ssa.c (syms_to_rename): Remove.
25183 (need_to_update_vops_p): Likewise.
25184 (need_to_initialize_update_ssa_p): Rename to ...
25185 (update_ssa_initialized_fn): ... this. Track function we are
25186 initialized for.
25187 (symbol_marked_for_renaming): Simplify.
25188 (add_new_name_mapping): Do not set need_to_update_vops_p.
25189 (dump_currdefs): Use SYMS_TO_RENAME.
25190 (rewrite_update_stmt): Always walk all uses/defs.
25191 (dump_update_ssa): Adjust.
25192 (init_update_ssa): Take function argument. Track what we are
25193 initialized for.
25194 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25195 (create_new_def_for): Initialize for cfun, assert we are initialized
25196 for cfun.
25197 (mark_sym_for_renaming): Simplify.
25198 (mark_set_for_renaming): Do not initialize update-ssa.
25199 (need_ssa_update_p): Simplify. Take function argument.
25200 (name_mappings_registered_p): Assert we ask for the correct function.
25201 (name_registered_for_update_p): Likewise.
25202 (ssa_names_to_replace): Likewise.
25203 (release_ssa_name_after_update_ssa): Likewise.
25204 (update_ssa): Likewise. Use SYMS_TO_RENAME.
25205 (dump_decl_set): Do not print a newline.
25206 (debug_decl_set): Do it here.
25207 (dump_update_ssa): And here.
25208 * tree-ssa-loop-im.c (move_computations): Adjust.
25209 (movement_possibility): Likewise.
25210 (determine_max_movement): Likewise.
25211 (gather_mem_refs_stmt): Likewise.
25212 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25213 or NAME_MEMORY_TAG.
25214 * tree-complex.c (update_all_vops): Remove.
25215 (expand_complex_move): Adjust.
25216 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25217 Simplify test for memory referencing statement. Exclude
25218 non-invariant ADDR_EXPRs.
25219 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25220 * tree-loop-distribution.c (generate_memset_zero): Adjust.
25221 (rdg_flag_uses): Likewise.
25222 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25223 related code.
25224 (tree_optimize_tail_calls_1): Also split the
25225 edge from the entry block if we have degenerate PHI nodes in
25226 the first basic block.
25227 * tree.c (init_ttree): Remove memory-tag related code.
25228 (tree_code_size): Likewise.
25229 (tree_node_structure): Likewise.
25230 (build7_stat): Re-write to be build6_stat.
25231 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25232 (SSA_VAR_P): Adjust.
25233 (struct tree_memory_tag): Remove.
25234 (struct tree_memory_partition_tag): Likewise.
25235 (union tree_node): Adjust.
25236 (build7): Re-write to be build6.
25237 * tree-pass.h (pass_reset_cc_flags): Remove.
25238 (TODO_update_address_taken): New flag.
25239 (pass_simple_dse): Remove.
25240 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25241 * params.h (MAX_ALIASED_VOPS): Remove.
25242 (AVG_ALIASED_VOPS): Likewise.
25243 * omp-low.c (expand_omp_taskreg): Update SSA form.
25244 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25245 aliases the lhs in a copy stmt.
25246 * tree-ssa-dse.c (struct address_walk_data): Remove.
25247 (memory_ssa_name_same): Likewise.
25248 (memory_address_same): Likewise.
25249 (get_kill_of_stmt_lhs): Likewise.
25250 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
25251 unused stores. Look through PHI nodes into post-dominated regions.
25252 (dse_optimize_stmt): Simplify. Properly remove stores.
25253 (tree_ssa_dse): Compute dominators.
25254 (execute_simple_dse): Remove.
25255 (pass_simple_dse): Likewise.
25256 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25257 gimple_loaded_syms and gimple_stored_syms computation.
25258 * toplev.c (dump_memory_report): Dump alias and pta stats.
25259 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25260 (vn_reference_eq): Likewise.
25261 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25262 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25263 valueize_vuses): Remove.
25264 (get_def_ref_stmt_vuses): Simplify. Rename to ...
25265 (get_def_ref_stmt_vuse): ... this.
25266 (vn_reference_lookup_2): New function.
25267 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25268 walking equivalent vuses. Simplify.
25269 (vn_reference_lookup): Likewise.
25270 (vn_reference_insert): Likewise.
25271 (vn_reference_insert_pieces): Likewise.
25272 (visit_reference_op_call): Simplify.
25273 (visit_reference_op_load): Likewise.
25274 (visit_reference_op_store): Likewise.
25275 (init_scc_vn): Remove shared_lookup_vuses initialization.
25276 (free_scc_vn): Remove shared_lookup_vuses freeing.
25277 (sort_vuses, sort_vuses_heap): Remove.
25278 (get_ref_from_reference_ops): Export.
25279 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25280 vector with single vuse pointer.
25281 (vn_reference_lookup_pieces, vn_reference_lookup,
25282 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25283 (shared_vuses_from_stmt): Remove.
25284 (get_ref_from_reference_ops): Declare.
25285 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25286 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25287 memory-tag related code.
25288 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25289 (likely_value): Add comment, skip static-chain of call statements.
25290 (surely_varying_stmt_p): Adjust.
25291 (gimplify_and_update_call_from_tree): Likewise.
25292 (execute_fold_all_builtins): Do not rebuild alias info.
25293 (gimplify_and_update_call_from_tree): Properly update VOPs.
25294 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25295 (copy_ref_info): Remove memory-tag related code.
25296 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25297 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25298 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25299 computation.
25300 * tree-ssa-dom.c (gimple_p): Remove typedef.
25301 (eliminate_redundant_computations): Adjust.
25302 (record_equivalences_from_stmt): Likewise.
25303 (avail_expr_hash): Likewise.
25304 (avail_expr_eq): Likewise.
25305 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
25306 (stmt_makes_single_load): Likewise.
25307 (stmt_makes_single_store): Likewise.
25308 * tree-ssa-alias.c: Rewrite completely.
25309 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25310 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25311 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25312 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25313 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25314 Remove public functions.
25315 (pass_reset_cc_flags): Remove.
25316 (pass_build_alias): Move ...
25317 * tree-ssa-structalias.c (pass_build_alias): ... here.
25318 * tree-ssa-alias.c (may_be_aliased): Move ...
25319 * tree-flow-inline.h (may_be_aliased): ... here.
25320 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
25321 count_uses_and_derefs): Move ...
25322 * gimple.c: ... here.
25323 * gimple.h (count_uses_and_derefs): Declare.
25324 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
25325 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
25326 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
25327 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
25328 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
25329 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
25330 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
25331 New functions.
25332 * tree-dfa.c (refs_may_alias_p): Move ...
25333 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
25334 * tree-ssa-alias.h: New file.
25335 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
25336 (statement_sink_location): Likewise.
25337 * opts.c (decode_options): Do not adjust max-aliased-vops or
25338 avg-aliased-vops values.
25339 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
25340 (TV_CALL_CLOBBER): Likewise.
25341 (TV_FLOW_SENSITIVE): Likewise.
25342 (TV_FLOW_INSENSITIVE): Likewise.
25343 (TV_MEMORY_PARTITIONING): Likewise.
25344 (TV_ALIAS_STMT_WALK): New timevar.
25345 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25346 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25347 (get_address_description): Remove memory-tag related code.
25348 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25349 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25350 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25351 and immediate uses in statements. Document.
25352 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25353 (dump_symbols): Remove.
25354 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25355 * alias.c (get_deref_alias_set): New function split out from ...
25356 (get_alias_set): ... here.
25357 * alias.h (get_deref_alias_set): Declare.
25358 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25359 type parameter. Remove restrict pointer handling. Create a
25360 ref-all pointer in case type-based alias sets do not conflict.
25361 (vect_analyze_data_refs): Remove SMT related code.
25362 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25363 (vectorizable_load): Likewise.
25364 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25365 (DR_SYMBOL_TAG, DR_VOPS): Remove.
25366 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25367 Ignore vops and SMTs.
25368 (dr_analyze_alias): Likewise..
25369 (free_data_ref): Likewise.
25370 (create_data_ref): Likewise.
25371 (analyze_all_data_dependences): Likewise.
25372 (get_references_in_stmt): Adjust.
25373 * tree-flow-inline.h (gimple_aliases_computed_p,
25374 gimple_addressable_vars, gimple_call_clobbered_vars,
25375 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25376 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25377 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25378 gimple_mem_ref_stats): Remove.
25379 (gimple_vop): New function.
25380 (op_iter_next_use): Remove vuses and mayuses cases.
25381 (op_iter_next_def): Remove vdefs case.
25382 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25383 (clear_and_done_ssa_iter): Do not set removed fields.
25384 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
25385 Assert we are not iterating over vuses or vdefs if not also
25386 iterating over uses or defs.
25387 (op_iter_init_use): Likewise.
25388 (op_iter_init_def): Likewise.
25389 (op_iter_next_vdef): Remove.
25390 (op_iter_next_mustdef): Likewise.
25391 (op_iter_init_vdef): Likewise.
25392 (compare_ssa_operands_equal): Likewise.
25393 (link_use_stmts_after): Handle vuse operand.
25394 (is_call_used): Use is_call_clobbered.
25395 (is_call_clobbered): Global variables are always call clobbered,
25396 query the call-clobbers bitmap.
25397 (mark_call_clobbered): Ignore global variables.
25398 (clear_call_clobbered): Likewise.
25399 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25400 virtual operands sanity check.
25401 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25402 Remove.
25403 (TARGET_MEM_REF): Remove TMR_TAG operand.
25404 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25405 Remove call-clobber related code.
25406 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
25407 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25408 partitions or escape reason.
25409 (get_single_def_stmt, get_single_def_stmt_from_phi,
25410 get_single_def_stmt_with_phi): Remove.
25411 (dump_referenced_vars): Tidy.
25412 (get_ref_base_and_extent): Allow bare decls.
25413 (collect_dfa_stats): Adjust.
25414 * graphite.c (rename_variables_in_stmt): Adjust.
25415 (graphite_copy_stmts_from_block): Likewise.
25416 (translate_clast): Likewise.
25417 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25418 (EXPR_DIES): New.
25419 (translate_vuse_through_block): Use the oracle.
25420 (phi_translate_1): Adjust.
25421 (value_dies_in_block_x): Use the oracle. Cache the outcome
25422 in EXPR_DIES.
25423 (valid_in_sets): Check if the VUSE for
25424 a REFERENCE is available.
25425 (eliminate): Do not remove stmts during elimination,
25426 instead queue and remove them afterwards.
25427 (do_pre): Do not rebuild alias info.
25428 (pass_pre): Run TODO_rebuild_alias before PRE.
25429 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25430 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25431 (mark_all_v_defs_stmt): Remove.
25432 (mark_all_v_defs_seq): Adjust.
25433 (sra_replace): Likewise.
25434 (scalarize_use): Likewise.
25435 (scalarize_copy): Likewise.
25436 (scalarize_init): Likewise.
25437 (scalarize_ldst): Likewise.
25438 (todoflags): Remove.
25439 (tree_sra): Do not rebuild alias info.
25440 (tree_sra_early): Adjust.
25441 (pass_sra): Run TODO_update_address_taken before SRA.
25442 * tree-predcom.c (set_alias_info): Remove.
25443 (prepare_initializers_chain): Do not call it.
25444 (mark_virtual_ops_for_renaming): Adjust.
25445 (mark_virtual_ops_for_renaming_list): Remove.
25446 (initialize_root_vars): Adjust.
25447 (initialize_root_vars_lm): Likewise.
25448 (prepare_initializers_chain): Likewise.
25449 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25450 (may_propagate_copy_into_stmt): Likewise.
25451 (merge_alias_info): Do nothing for now.
25452 (propagate_tree_value_into_stmt): Adjust.
25453 (stmt_may_generate_copy): Likewise.
25454 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25455 not mark symbols for renaming.
25456 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25457 with the same statement, make sure to update the new pointed-to one.
25458 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25459 call statements, do not mark symbols for renaming.
25460 (mark_operand_necessary): Dump something.
25461 (ref_may_be_aliased): New function.
25462 (mark_aliased_reaching_defs_necessary_1): New helper function.
25463 (mark_aliased_reaching_defs_necessary): Likewise.
25464 (mark_all_reaching_defs_necessary_1): Likewise.
25465 (mark_all_reaching_defs_necessary): Likewise.
25466 (propagate_necessity): Do not process virtual PHIs. For
25467 non-aliased loads mark all reaching definitions as necessary.
25468 For aliased loads and stores mark the immediate dominating
25469 aliased clobbers as necessary.
25470 (visited): New global static.
25471 (perform_tree_ssa_dce): Free visited bitmap after propagating
25472 necessity.
25473 (remove_dead_phis): Perform simple dead virtual PHI removal.
25474 (remove_dead_stmt): Properly unlink virtual operands when
25475 removing stores.
25476 (eliminate_unnecessary_stmts): Schedule PHI removal after
25477 stmt removal.
25478 * tree-ssa-ter.c (is_replaceable_p): Adjust.
25479 (process_replaceable): Likewise.
25480 (find_replaceable_in_bb): Likewise.
25481 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25482 based on the single gimple vop.
25483 (verify_flow_insensitive_alias_info): Remove.
25484 (verify_flow_sensitive_alias_info): Likewise.
25485 (verify_call_clobbering): Likewise.
25486 (verify_memory_partitions): Likewise.
25487 (verify_alias_info): Likewise.
25488 (verify_ssa): Adjust..
25489 (execute_update_addresses_taken): Export. Update SSA
25490 manually. Optimize only when optimizing. Use a local bitmap.
25491 (pass_update_address_taken): Remove TODO_update_ssa, add
25492 TODO_dump_func.
25493 (pass_update_address_taken): Just use TODO_update_address_taken.
25494 (init_tree_ssa): Do not initialize addressable_vars.
25495 (verify_ssa): Verify new VUSE / VDEF properties.
25496 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25497 Do not call verify_alias_info.
25498 (delete_tree_ssa): Clear the VUSE, VDEF operands.
25499 Do not free the loaded and stored syms bitmaps. Reset the escaped
25500 and callused solutions. Do not free addressable_vars.
25501 Remove memory-tag related code.
25502 (warn_uninitialized_var): Aliases are always available.
25503 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25504 * lambda-code.c (can_put_in_inner_loop): Adjust.
25505 (can_put_after_inner_loop): Likewise.
25506 (perfect_nestify): Likewise.
25507 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25508 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25509 (vectorizable_conversion): Do not mark symbols for renaming.
25510 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25511 (expand_call_inline): Unlink the calls virtual operands before
25512 replacing it.
25513 (tree_function_versioning): Do not call update_ssa if we are not
25514 updating clones. Simplify.
25515 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25516 (propagate_with_phi): Likewise..
25517 * tree-outof-ssa.c (create_temp): Remove memory tag and call
25518 clobber code. Assert we are not aliased or global.
25519 * tree-flow.h: Include tree-ssa-alias.h
25520 (enum escape_type): Remove.
25521 (struct mem_sym_stats_d): Likewise.
25522 (struct mem_ref_stats_d): Likewise.
25523 (struct gimple_df): Add vop member. Remove global_var,
25524 call_clobbered_vars, call_used_vars, addressable_vars,
25525 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
25526 escaped and callused members.
25527 (struct ptr_info_def): Remove all members, add points-to solution
25528 member pt.
25529 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25530 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25531 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25532 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25533 (tree-ssa-alias.o): Likewise.
25534 (toplev.o): Add tree-ssa-alias.h
25535 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25536 * gimple.c (gimple_set_bb): Fix off-by-one error.
25537 (is_gimple_reg): Do not handle memory tags.
25538 (gimple_copy): Also copy virtual operands.
25539 Delay updating the statement. Do not reset loaded and stored syms.
25540 (gimple_set_stored_syms): Remove.
25541 (gimple_set_loaded_syms): Likewise.
25542 (gimple_call_copy_skip_args): Copy the virtual operands
25543 and mark the new statement modified.
25544 * tree-ssa-structalias.c (may_alias_p): Remove.
25545 (set_uids_in_ptset): Take the alias set to prune with as
25546 parameter. Fold in the alias test of may_alias_p.
25547 (compute_points_to_sets): Compute whether a ptr is dereferenced
25548 in a local sbitmap.
25549 (process_constraint): Deal with &ANYTHING on the lhs, reject all
25550 other ADDRESSOF constraints on the lhs.
25551 (get_constraint_for_component_ref): Assert that we don't get
25552 ADDRESSOF constraints from the base of the reference.
25553 Properly generate UNKNOWN_OFFSET for DEREF if needed.
25554 (struct variable_info): Remove collapsed_to member.
25555 (get_varinfo_fc): Remove.
25556 (new_var_info): Do not set collapsed_to.
25557 (dump_constraint): Do not follow cycles.
25558 (dump_constraint_graph): Likewise.
25559 (build_pred_graph): Likewise.
25560 (build_succ_graph): Likewise.
25561 (rewrite_constraints): Likewise.
25562 (do_simple_structure_copy): Remove.
25563 (do_rhs_deref_structure_copy): Remove.
25564 (do_lhs_deref_structure_copy): Remove.
25565 (collapse_rest_of_var): Remove.
25566 (do_structure_copy): Re-implement.
25567 (pta_stats): New global variable.
25568 (dump_pta_stats): New function.
25569 (struct constraint_expr): Make offset signed.
25570 (UNKNOWN_OFFSET): Define special value.
25571 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
25572 (solution_set_expand): New helper function split out from ...
25573 (do_sd_constraint): ... here.
25574 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
25575 (do_ds_constraint): Likewise.
25576 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
25577 and CALLUSED = *CALLUSED.
25578 (set_union_with_increment): Make inc argument signed.
25579 (type_safe): Remove.
25580 (get_constraint_for_ptr_offset): Handle unknown and negative
25581 constant offsets.
25582 (first_vi_for_offset): Handle offsets before start. Bail
25583 out early for offsets beyond the variable extent.
25584 (first_or_preceding_vi_for_offset): New function.
25585 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
25586 Together with ESCAPED = *ESCAPED this properly computes reachability.
25587 (find_what_var_points_to): New function.
25588 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
25589 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
25590 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
25591 pt_solutions_intersect): New functions.
25592 (compute_call_used_vars): Remove.
25593 (compute_may_aliases): New main entry into PTA computation.
25594 * gimple.h (gimple_p): New typedef.
25595 (struct gimple_statement_base): Remove references_memory_p.
25596 (struct gimple_statement_with_memory_ops_base): Remove
25597 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
25598 members.
25599 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
25600 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
25601 gimple_set_references_memory): Remove.
25602 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
25603 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
25604 New functions.
25605 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
25606 (verify_expr): Allow RESULT_DECL.
25607 (gimple_duplicate_bb): Do not copy virtual operands.
25608 (gimple_duplicate_sese_region): Adjust.
25609 (gimple_duplicate_sese_tail): Likewise.
25610 (mark_virtual_ops_in_region): Remove.
25611 (move_sese_region_to_fn): Do not call it.
25612 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
25613 and pass_simple_dse.
25614 (execute_function_todo): Handle TODO_update_address_taken,
25615 call execute_update_addresses_taken for TODO_rebuild_alias.
25616 (execute_todo): Adjust.
25617 (execute_one_pass): Init dump files early.
25618 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
25619 call-clobbered.
25620 (create_general_new_stmt): Clear vops.
25621 * tree-ssa-reassoc.c (get_rank): Adjust.
25622 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
25623 symbols for renaming.
25624 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
25625 (PARAM_AVG_ALIASED_VOPS): Likewise.
25626 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
25627 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
25628 * tree-ssa-operands.c: Simplify for new virtual operand representation.
25629 (operand_build_cmp, copy_virtual_operands,
25630 create_ssa_artificial_load_stmt, add_to_addressable_set,
25631 gimple_add_to_addresses_taken): Remove public functions.
25632 (unlink_stmt_vdef): New function.
25633
25634 2009-04-03 Alan Modra <amodra@bigpond.net.au>
25635
25636 * config.gcc (powerpc-*-linux*): Merge variants.
25637
25638 2009-04-02 Chao-ying Fu <fu@mips.com>
25639 James Grosbach <james.grosbach@microchip.com>
25640
25641 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
25642 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
25643 cop0_sp_offset.
25644 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
25645 keep_interrupts_masked_p, use_debug_exception_return_p.
25646 (mips_attribute_table): Add interrupt, use_shadow_register_set,
25647 keep_interrupts_masked, use_debug_exception_return.
25648 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
25649 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
25650 New functions.
25651 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
25652 (mips_print_operand): Process COP0 registers to print $0 .. $31
25653 correctly for GAS to process.
25654 (mips_interrupt_extra_call_saved_reg_p): New function.
25655 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
25656 extra registers.
25657 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
25658 (mips_compute_frame_info): Add supports for interrupt context that
25659 includes doubleword accumulators and COP0 registers.
25660 (mips_for_each_saved_acc): New function.
25661 (mips_for_each_saved_gpr_and_fpr): Change the function name from
25662 mips_for_each_saved_reg.
25663 (mips_save_reg): Save accumulators.
25664 (mips_kernel_reg_p): A new for_each_rtx callback.
25665 (mips_expand_prologue): Support interrupt handlers.
25666 (mips_restore_reg): Restore accumulators.
25667 (mips_expand_epilogue): Support interrupt handlers.
25668 (mips_can_use_return_insn): Return false for interrupt handlers.
25669 (mips_epilogue_uses): New function.
25670 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
25671 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
25672 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
25673 cop0_move): New instructions.
25674 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
25675 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
25676 defines.
25677 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
25678 New defines.
25679 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
25680 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
25681 interrupt handlers, we use K0 as the temporary register.
25682 (EPILOGUE_USES): Change to a function call.
25683 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
25684 handlers, we use K0 as the temporary register.
25685
25686 * doc/extend.texi (Function Attributes): Document interrupt,
25687 use_shadow_register_set, keep_interrupts_masked,
25688 use_debug_exception_return for MIPS attributes.
25689
25690 2009-04-03 Alan Modra <amodra@bigpond.net.au>
25691
25692 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
25693 Remove a number of t-files from tmake_file.
25694 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
25695 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
25696 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
25697 target_prototype, not TARGET_PROTOTYPE.
25698 (LINK_OS_GNU_SPEC): Define.
25699 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
25700 and darwin-ldoubdle.c.
25701
25702 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25703
25704 PR driver/39293
25705 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
25706 (cpp_options): Ditto.
25707 (default_compilers): Ditto.
25708 (display_help): Ditto.
25709 (process_command): Ditto.
25710 (do_spec_1): Ditto.
25711 (set_input): Use lbasename instead of duplicate code.
25712 (save_temps_prefix): New static for -save-temps=obj.
25713 (save_temps_length): Ditto.
25714
25715 * doc/invoke.texi (-save-temps=obj): Document new variant to
25716 -save-temps switch.
25717
25718 2009-04-02 Jeff Law <law@redhat.com>
25719
25720 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
25721 variable.
25722
25723 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
25724
25725 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
25726 * configure: Regenerated.
25727
25728 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
25729
25730 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
25731 share the argument list.
25732
25733 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
25734
25735 Merge
25736
25737 2009-02-12 Diego Novillo <dnovillo@google.com>
25738
25739 * varpool.c (debug_varpool): New.
25740 * cgraph.h (debug_varpool): Declare.
25741
25742 2009-04-02 Jan Hubicka <jh@suse.cz>
25743
25744 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
25745 pass.
25746
25747 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
25748
25749 * config/i386/i386.c (ix86_abi): Move initialization to ...
25750 (override_options): Here.
25751
25752 2009-04-02 Christian Bruel <christian.bruel@st.com>
25753
25754 * config/sh/sh.c (sh_dwarf_register_span): New function.
25755 (TARGET_DWARF_REGISTER_SPAN): Define.
25756 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
25757
25758 2009-04-02 Ira Rosen <irar@il.ibm.com>
25759
25760 PR tree-optimization/39595
25761 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
25762 interleaved loads group is not greater than the SLP group size.
25763
25764 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
25765
25766 * builtins.c (is_builtin_name): New.
25767 (called_as_built_in): Use is_builtin_name.
25768 * tree.h (is_builtin_name): New.
25769 * varasm.c (incorporeal_function_p): Use is_builtin_name
25770
25771 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
25772
25773 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
25774
25775 2009-04-02 Dodji Seketeli <dodji@redhat.com>
25776
25777 PR c++/26693
25778 * c-decl.c (clone_underlying_type): Move this ...
25779 * c-common.c (set_underlying_type): ... here.
25780 Also, make sure the function properly sets TYPE_STUB_DECL() on
25781 the newly created typedef variant type.
25782 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
25783 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
25784 points.
25785
25786 2009-04-02 Richard Guenther <rguenther@suse.de>
25787
25788 PR tree-optimization/37221
25789 * tree-flow.h (degenerate_phi_result): Declare.
25790 * tree-ssa-dom.c (degenerate_phi_result): Export.
25791 * tree-scalar-evolution.c (analyze_initial_condition): If
25792 the initial condition is defined by a degenerate PHI node
25793 use the degenerate value.
25794
25795 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
25796
25797 PR rtl-optimization/39588
25798 * combine.c (merge_outer_ops): Do not set the constant when this
25799 is not necessary.
25800 (simplify_shift_const_1): Do not modify it either in this case.
25801
25802 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
25803
25804 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
25805 tuning is deprecated if -mtune value is set to an Itanium1 variant.
25806
25807 2009-04-01 Janis Johnson <janis187@us.ibm.com>
25808
25809 PR c/29027
25810 * c-lex.c (interpret_float): Default (no suffix) is double.
25811
25812 2009-04-1 Xinliang David Li <davidxl@google.com>
25813
25814 * config/i386/i386.c (legitimate_constant_p): Recognize
25815 all one vector constant.
25816
25817 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25818
25819 * config/vax/vax.c: Add #includes to silence warnings.
25820 Change #include order to silence two warnings.
25821
25822 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25823
25824 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
25825 (ASM_SPEC): Pass -k to the assembler for PIC code.
25826
25827 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25828
25829 * config.gcc: Add vax-*-linux* to the switch.
25830 * config/vax/linux.h: New file. (TARGET_VERSION,
25831 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
25832
25833 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25834
25835 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
25836 Use predicate macros instead of GET_CODE() == foo.
25837 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
25838 ashlsi3, rotrsi3, <unnamed>): Likewise.
25839
25840 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25841
25842 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
25843 jbbccihi, jbbccisi): Remova trailing whitespace.
25844 * config/vax/constraints.md: Likewise.
25845 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25846 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
25847 * config/vax/predicates.md: Likewise.
25848 * config/vax/vax.c (print_operand_address, vax_output_int_move,
25849 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
25850 * config/vax/vax.h: Likewise.
25851 * config/vax/vax.md (nonlocal_goto): Likewise.
25852
25853 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25854
25855 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
25856 (indirectable_address_p, adjacent_operands_p): Add spaces around
25857 braces.
25858 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
25859
25860 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25861
25862 * config/vax/vax.c (legitimate_constant_address_p,
25863 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
25864 index_term_p, reg_plus_index_p, legitimate_address_p,
25865 vax_mode_dependent_address_p): Update comments to match functions
25866 modified by the recent int->bool conversion.
25867
25868 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25869
25870 * config/vax/builtins.md: Update copyright message.
25871 * config/vax/constraints.md: Likewise.
25872 * config/vax/netbsd-elf.h: Likewise.
25873 * config/vax/predicates.md: Likewise.
25874 * config/vax/vax-protos.h: Likewise.
25875 * config/vax/vax.c: Likewise.
25876 * config/vax/vax.h: Likewise.
25877 * config/vax/vax.md: Likewise.
25878 * config/vax/vax.opt: Likewise.
25879
25880 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
25881
25882 * config/vax/builtins.md (ffssi2, ffssi2_internal,
25883 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
25884 * config/vax/constraints.md (B, R): Likewise.
25885 * config/vax/predicates.md (external_memory_operand,
25886 nonimmediate_addsub_di_operand): Likewise.
25887 * config/vax/vax.c (vax_output_int_add): Likewise.
25888 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
25889 untyped_call): Likewise.
25890
25891 2009-04-01 Matt Thomas <matt@3am-software.com>
25892
25893 * config/vax/predicates.md: New file.
25894 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
25895 external_const_operand, nonsymbolic_operand, external_memory_operand,
25896 indirect_memory_operand, indexed_memory_operand,
25897 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
25898 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
25899 predicate.
25900 * config/vax/constraints.md: New file.
25901 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
25902 New constraint.
25903 * config/vax/builtins.md: New file.
25904 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
25905 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
25906 jbbccisi): Define.
25907 * config/vax/vax.opt (mqmath): Add option.
25908 * config/vax/vax.md (isfx): Extend with DI.
25909 (VAXintQH, VAXintQHSD): Define.
25910 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
25911 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
25912 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
25913 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
25914 (movdi): Update constraints and use vax_output_int_move().
25915 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
25916 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
25917 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
25918 nonlocal_goto): New.
25919 (mov<mode>): Extend accepted operand types.
25920 (subdi3_old): Rename from subdi3, change update constraints and use
25921 a new implementation.
25922 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
25923 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
25924 MOVE_RATIO, CLEAR_RATIO): Define.
25925 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
25926 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
25927 (PRINT_OPERAND): Redefine using a function instead of inlined code.
25928 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
25929 (split_quadword_operands): Make static and really allow variable
25930 splitting.
25931 (print_operand_address): Update for PIC generation.
25932 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
25933 indexable_address_p, fixup_mathdi_operand,
25934 vax_expand_addsub_di_operands, adjacent_operands_p): New.
25935 (vax_float_literal, legitimate_constant_p,
25936 indirectable_constant_address_p, index_term_p,
25937 reg_plus_index_p): Return bool instead of int.
25938 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
25939 where needed.
25940 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
25941 generation.
25942 (vax_output_conditional_branch): Indent.
25943 (legitimate_constant_address_p, indirectable_constant_address_p,
25944 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
25945 vax_mode_dependent_address_p): Return bool instead of int, update for
25946 PIC generation.
25947 * config/vax/vax-protos.h (legitimate_constant_address_p,
25948 legitimate_constant_p, legitimate_address_p,
25949 vax_mode_dependent_address_p): Change declaration to bool.
25950 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
25951 vax_expand_addsub_di_operands, vax_output_int_subtract,
25952 vax_output_movmemsi): Declare.
25953 (split_quadword_operands, vax_float_literal): Delete declaration.
25954 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
25955 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
25956 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
25957 ASM_OUTPUT_DWARF_PCREL): Define.
25958 (ASM_SPEC): Change definition to allow PIC generation.
25959
25960 2009-04-01 Steve Ellcey <sje@cup.hp.com>
25961
25962 * doc/sourcebuild.texi: Update front-end requirements.
25963
25964 2009-04-01 Jakub Jelinek <jakub@redhat.com>
25965
25966 PR target/39226
25967 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
25968 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
25969 (booldi3_internal3): Use boolean_or_operator instead of
25970 boolean_operator.
25971
25972 2009-04-01 Joseph Myers <joseph@codesourcery.com>
25973
25974 PR c/39605
25975 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
25976 declarator whose size is not an integer constant expression but
25977 folds to an integer constant, then treat it as a constant
25978 subsequently.
25979
25980 2009-04-01 Richard Guenther <rguenther@suse.de>
25981
25982 * fold-const.c (fold_plusminus_mult_expr): Do not fold
25983 i * 4 + 2 to (i * 2 + 1) * 2.
25984
25985 2009-04-01 Jakub Jelinek <jakub@redhat.com>
25986
25987 PR c/37772
25988 * c-parser.c (c_parser_asm_statement): Skip until close paren and
25989 return if c_parser_asm_string_literal returned NULL.
25990
25991 2009-04-01 Nick Clifton <nickc@redhat.com>
25992
25993 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
25994 already defined.
25995 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
25996 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
25997 other typedefs to avoid conflicts with libgcc2.c. Define labels
25998 to gain 16-bit bit-manipulation functions from libgcc2.c and then
25999 include it.
26000 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
26001 to gain 16-bit trapping arithmetic functions from libgcc2.c and
26002 then include it.
26003
26004 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
26005
26006 * varasm.c (default_function_rodata_section): Declare DOT as
26007 const char*.
26008
26009 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
26010 Andrey Galkin <agalkin@hypercom.com>
26011
26012 PR/39492
26013 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
26014 Make object_name unique for each process.
26015
26016 2009-04-01 Jakub Jelinek <jakub@redhat.com>
26017
26018 PR other/39591
26019 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
26020 addressable variables in the parallel that could go out of scope while
26021 running queued tasks.
26022
26023 2009-04-01 Anatoly Sokolov <aesok@post.ru>
26024
26025 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
26026 (CASE_VALUES_THRESHOLD): Redefine.
26027 * config/avr/avr.c (avr_override_options): Remove initialization of
26028 avr_case_values_threshold variable.
26029 (avr_case_values_threshold): Remove variable. Add new function.
26030 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
26031 * config/avr/avr.opt (mno-tablejump): Remove option.
26032 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
26033
26034 2009-04-01 DJ Delorie <dj@redhat.com>
26035
26036 * varasm.c (default_function_rodata_section): Don't assume
26037 anything about where the first '.' in the section name is.
26038
26039 2009-04-01 Alan Modra <amodra@bigpond.net.au>
26040
26041 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
26042 rs6000_emit_stack_tie.
26043
26044 2009-03-31 Ian Lance Taylor <iant@google.com>
26045
26046 * tree-eh.c (tree_remove_unreachable_handlers): Compare
26047 gimple_code with GIMPLE_RESX, not RESX.
26048
26049 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26050
26051 * c-common.c (c_get_ident): New.
26052 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
26053
26054 2009-04-01 Ben Elliston <bje@au.ibm.com>
26055
26056 * config/rs6000/sysv4.opt (msdata): Improve option description.
26057
26058 2009-03-31 Steve Ellcey <sje@cup.hp.com>
26059
26060 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
26061 (divdf3_internal_lat): Remove.
26062 (divxf3_internal_lat): Remove.
26063 (divxf3_internal_thr): Remove.
26064 (divxf): Use divxf3_internal.
26065 * config/ia64/div.md (divsf3_internal_lat): New.
26066 (divdf3_internal_lat): New.
26067 (divxf3_internal): New.
26068
26069 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26070
26071 PR c/448
26072 * Makefile.in (USE_GCC_STDINT): Define.
26073 (stmp-int-hdrs): Install stdint.h if applicable.
26074 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
26075 if known.
26076 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
26077 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
26078 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26079 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26080 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26081 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26082 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26083 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26084 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26085 (c_common_nodes_and_builtins): Initialize
26086 underlying_wchar_type_node. Do not initialize
26087 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
26088 nodes for new types.
26089 (c_stddef_cpp_builtins): Define macros for new types.
26090 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
26091 Remove.
26092 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
26093 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
26094 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
26095 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
26096 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
26097 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
26098 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
26099 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
26100 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
26101 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
26102 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
26103 int16_type_node, int32_type_node, int64_type_node,
26104 uint8_type_node, uint16_type_node, c_uint32_type_node,
26105 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
26106 int_least32_type_node, int_least64_type_node,
26107 uint_least8_type_node, uint_least16_type_node,
26108 uint_least32_type_node, uint_least64_type_node,
26109 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
26110 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
26111 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
26112 uintptr_type_node): Define.
26113 * c-cppbuiltin.c (builtin_define_constants,
26114 builtin_define_type_minmax): New.
26115 (builtin_define_stdint_macros): Define more macros.
26116 (c_cpp_builtins): Define more limit macros.
26117 (type_suffix): New.
26118 (builtin_define_type_max): Define in terms of
26119 builtin_define_type_minmax. Remove is_long parameter. All
26120 callers changed.
26121 * config.gcc (use_gcc_stdint): Define.
26122 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
26123 Add newlib-stdint.h for generic targets.
26124 * config/glibc-stdint.h, config/newlib-stdint.h,
26125 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26126 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26127 * config/score/score.h (UINTPTR_TYPE): Define.
26128 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26129 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26130 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26131 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26132 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26133 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26134 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26135 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26136 * config/spu/spu.h (STDINT_LONG32): Define.
26137 * configure.ac (use_gcc_stdint): Substitute.
26138 * configure: Regenerate.
26139 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26140 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26141 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26142 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26143 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26144 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26145 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26146 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26147 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26148 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26149 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26150 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26151 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26152 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26153 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26154 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26155 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26156 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26157 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26158 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26159 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26160 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26161 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26162 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26163 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26164 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26165 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26166 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26167 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26168
26169 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
26170
26171 * loop-iv.c (suitable_set_for_replacement): Renamed from
26172 simplify_using_assignment; changed to return bool and to accept new
26173 args DEST and SRC. Return true iff we find a source/destination pair
26174 that can be used to make a replacement, and fill SRC and DEST if so.
26175 Remove arg ALTERED. Don't deal with altered regs here. All callers
26176 changed.
26177 (simplify_using_initial_values): Deal with altered regs here and track
26178 more precisely the effect they have on the validity of our expression.
26179
26180 * loop-iv.c (simplify_using_condition): A condition of the form
26181 (EQ REG CONST) can be used to simply make a substitution.
26182 (simplify_using_initial_values): Keep track of conditions we have seen
26183 and keep using them to simplify new expressions, while applying the
26184 same substitutions to them as to the expression.
26185
26186 * simplify-rtx.c (simplify_relational_operation_1): Simplify
26187 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26188 GEU/LTU reversed.
26189
26190 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
26191 changed. Use this when trying to improve the upper bound.
26192 Generate the comparison by using simplify_gen_relational.
26193
26194 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26195
26196 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26197 functions.
26198 (simplify_using_assignment, simplify_using_initial_values): Call
26199 replace_in_expr to make replacements. Call replace_single_def_regs
26200 once on the initial version of the expression.
26201
26202 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26203
26204 PR target/27237
26205 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
26206
26207 2009-03-31 Richard Guenther <rguenther@suse.de>
26208
26209 PR middle-end/31029
26210 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26211 equality comparisons. Fold C - X CMP X if C % 2 == 1.
26212
26213 2009-03-31 Richard Guenther <rguenther@suse.de>
26214
26215 * tree.h (div_if_zero_remainder): Declare.
26216 * fold-const.c (div_if_zero_remainder): Export.
26217 * tree-ssa-forwprop.c
26218 (forward_propagate_addr_into_variable_array_index): Handle
26219 constant array index addition outside of the variable index.
26220
26221 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26222
26223 PR target/39592
26224 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26225 define_splits, floatunssi<mode>2): Require x87 conversions from
26226 DImode to be permitted.
26227
26228 2009-03-31 Joseph Myers <joseph@codesourcery.com>
26229
26230 PR preprocessor/15638
26231 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26232
26233 2009-03-31 Richard Guenther <rguenther@suse.de>
26234
26235 PR middle-end/23401
26236 PR middle-end/27810
26237 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26238 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26239 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26240 a separate statement.
26241 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26242 (lookup_tmp_var): Likewise.
26243 (is_gimple_formal_tmp_or_call_rhs): Remove.
26244 (is_gimple_reg_or_call_rhs): Rename to ...
26245 (is_gimple_reg_rhs_or_call): ... this.
26246 (is_gimple_mem_or_call_rhs): Rename to ...
26247 (is_gimple_mem_rhs_or_call): ... this.
26248 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
26249 DECL_GIMPLE_REG_P only if is_formal is true.
26250 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
26251 for non-proper post-modify expression gimplification.
26252 (gimplify_self_mod_expr): For post-modify expressions gimplify
26253 the lvalue to a minimal lvalue.
26254 (rhs_predicate_for): Remove formal temp case.
26255 (gimplify_modify_expr_rhs): Likewise.
26256 (gimplify_addr_expr): Use is_gimple_reg.
26257 (gimplify_expr): Remove formal temp cases.
26258 (gimple_regimplify_operands): Likewise.
26259 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26260 and FILTER_EXPR like constants.
26261 * gimple.c (walk_gimple_op): Fix val_only initialization, use
26262 is_gimple_reg.
26263 (is_gimple_formal_tmp_rhs): Remove.
26264 (is_gimple_reg_rhs): Remove special casing.
26265 (is_gimple_mem_rhs): Fix.
26266 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26267 (is_gimple_formal_tmp_var): Remove.
26268 (is_gimple_formal_tmp_reg): Likewise.
26269 (is_gimple_min_lval): Allow invariant component ref parts.
26270 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26271 is_gimple_formal_tmp_reg): Remove declarations.
26272 * tree-cfg.c (verify_expr): Verify that variables with address
26273 taken do not have DECL_GIMPLE_REG_P set.
26274 * tree-mudflap.c (mf_build_check_statement_for): Use
26275 force_gimple_operand instead of gimplify_expr.
26276
26277 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
26278
26279 * modulo-sched.c (sms_schedule_by_order): Pass the actual
26280 schedulable rows to compute_split_row.
26281
26282 2009-03-31 Ben Elliston <bje@au.ibm.com>
26283
26284 PR target/31635
26285 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26286 OPT_mvrsave.
26287
26288 2009-03-31 Alan Modra <amodra@bigpond.net.au>
26289
26290 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26291 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26292 * configure: Regenerate.
26293 * config.in: Regenerate.
26294 * config/rs6000/rs6000.opt (mtls-markers): Add.
26295 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26296 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26297 (tls_ld_aix, tls_ld_sysv): Likewise.
26298 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26299 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26300
26301 2009-03-31 Alan Modra <amodra@bigpond.net.au>
26302
26303 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26304
26305 2009-03-30 Jan Hubicka <jh@suse.cz>
26306
26307 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26308 out of RESX.
26309 (tree_remove_unreachable_handlers): Cleanup EH predecestor
26310 detection and label handling.
26311
26312 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26313
26314 * ira-int.h (ira_allocno): Rename left_conflicts_num to
26315 left_conflicts_size.
26316 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26317 ALLOCNO_LEFT_CONFLICTS_SIZE.
26318
26319 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
26320 remove_allocno_from_bucket_and_push,
26321 allocno_spill_priority_compare, push_allocnos_to_stack,
26322 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26323 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
26324 (setup_allocno_left_conflicts_num): Ditto. Rename to
26325 setup_allocno_left_conflicts_size.
26326 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26327 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
26328 setup_allocno_left_conflicts_size instead of
26329 setup_allocno_left_conflicts_num.
26330
26331 * ira-build.c (ira_create_allocno): Use
26332 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
26333 ALLOCNO_LEFT_CONFLICTS_NUM.
26334
26335 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
26336
26337 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26338 instead of DF_LR_OUT.
26339
26340 * ira-lives.c (process_bb_node_lives): Ditto.
26341
26342 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26343 instead of DF_LR_{OUT,IN}.
26344
26345 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26346
26347 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26348
26349 2009-03-30 Jan Hubicka <jh@suse.cz>
26350
26351 * except.c (label_to_region_map): Fix thinko.
26352
26353 2009-03-30 Steve Ellcey <sje@cup.hp.com>
26354
26355 PR middle-end/38237
26356 * tree.h (tree_find_value): New declaration.
26357 * tree.c (tree_find_value): New function.
26358 * varasm.c (assemble_external): Avoid duplicate entries on lists.
26359
26360 2009-03-30 Jakub Jelinek <jakub@redhat.com>
26361
26362 PR debug/39563
26363 * c-decl.c (struct c_binding): Add locus field.
26364 (bind): Add locus argument, set locus field from it.
26365 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26366 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26367 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26368 implicitly_declare, undeclared_variable, lookup_label,
26369 declare_label, c_make_fname_decl, c_builtin_function,
26370 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26371 bind callers.
26372
26373 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
26374
26375 PR target/38781
26376 * config/i386/i386.c (classify_argument): Check total size of
26377 structure.
26378
26379 2009-03-30 Martin Jambor <mjambor@suse.cz>
26380
26381 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26382 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26383 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26384 respectively.
26385
26386 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26387 seen_variable_array_ref while also traversing a union.
26388
26389 * tree-inline.c (optimize_inline_calls): Do not call
26390 cgraph_node_remove_callees.
26391 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26392 (pass_remove_cgraph_callee_edges): New variable.
26393 * passes.c (init_optimization_passes): Add
26394 pass_remove_cgraph_callee_edges after early inlining and before all
26395 late intraprocedural passes.
26396
26397 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26398
26399 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26400
26401 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26402 Fix typos in names.
26403
26404 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26405
26406 * combine.c (simplify_comparison): Use have_insn_for.
26407 * dojump.c (do_jump): Likewise.
26408
26409 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26410
26411 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26412 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26413 sparc_compare_op0 like sparc_compare_emitted used to be handled.
26414 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26415 instead of sparc_compare_emitted.
26416 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26417 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26418 instead of sparc_compare_emitted.
26419
26420 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26421
26422 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26423 enter/exit cfglayout mode.
26424 (pass_partition_block): Require it.
26425 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26426 (combine_instructions): Track basic blocks instead of labels.
26427 (update_cfg_for_uncondjump): New.
26428 (try_combine): Use it. Update jumps after rescanning.
26429 (pass_combine): Require PROP_cfglayout.
26430 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26431
26432 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26433
26434 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26435 Provide/destroy PROP_cfglayout respectively.
26436 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26437 * tree-pass.h (PROP_cfglayout): New.
26438
26439 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
26440
26441 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26442 fold_convert_const_fixed_from_fixed,
26443 fold_convert_const_fixed_from_int,
26444 fold_convert_const_fixed_from_real, fold_negate_const): Do not
26445 set TREE_CONSTANT_OVERFLOW.
26446 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26447 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26448
26449 2009-03-30 Ira Rosen <irar@il.ibm.com>
26450
26451 * tree-vect-loop-manip.c: New file.
26452 * tree-vectorizer.c: Update documentation and included files.
26453 (vect_loop_location): Make extern.
26454 (rename_use_op): Move to tree-vect-loop-manip.c
26455 (rename_variables_in_bb, rename_variables_in_loop,
26456 slpeel_update_phis_for_duplicate_loop,
26457 slpeel_update_phi_nodes_for_guard1,
26458 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26459 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26460 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
26461 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
26462 find_loop_location): Likewise.
26463 (new_stmt_vec_info): Move to tree-vect-stmts.c.
26464 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26465 get_vectype_for_scalar_type, vect_is_simple_use,
26466 supportable_widening_operation, supportable_narrowing_operation):
26467 Likewise.
26468 (bb_in_loop_p): Move to tree-vect-loop.c.
26469 (new_loop_vec_info, destroy_loop_vec_info,
26470 reduction_code_for_scalar_code, report_vect_op,
26471 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26472 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26473 (vect_supportable_dr_alignment): Likewise.
26474 * tree-vectorizer.h (tree-data-ref.h): Include.
26475 (vect_loop_location): Declare.
26476 Reorganize function declarations according to the new file structure.
26477 * tree-vect-loop.c: New file.
26478 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
26479 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26480 * tree-vect-data-refs.c: New file.
26481 * tree-vect-patterns.c (timevar.h): Don't include.
26482 * tree-vect-stmts.c: New file.
26483 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
26484 tree-vect-slp.c, tree-vect-loop.c.
26485 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26486 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
26487 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26488 (tree-vect-analyze.o): Remove.
26489 (tree-vect-transform.o): Likewise.
26490 (tree-vect-data-refs.o): Add rule.
26491 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
26492 tree-vect-slp.o): Likewise.
26493 (tree-vect-patterns.o): Remove redundant dependencies.
26494 (tree-vectorizer.o): Likewise.
26495 * tree-vect-slp.c: New file.
26496
26497 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26498
26499 * optc-gen.awk: Warn if an option flag has multiple different
26500 help strings.
26501
26502 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
26503
26504 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26505 -floop-block): Document dependences on PPL, CLooG and Graphite.
26506
26507 2009-03-30 Joseph Myers <joseph@codesourcery.com>
26508
26509 PR rtl-optimization/323
26510 * c-common.c (c_fully_fold, convert_and_check,
26511 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26512 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26513 * c-common.def (EXCESS_PRECISION_EXPR): New.
26514 * c-cppbuiltin.c (builtin_define_float_constants): Define
26515 constants with enough digits for long double.
26516 * c-lex.c (interpret_float): Interpret constant with excess
26517 precision where appropriate.
26518 * c-opts.c (c_common_post_options): Set
26519 flag_excess_precision_cmdline. Give an error for
26520 -fexcess-precision=standard for C++ for processors where the
26521 option is significant.
26522 * c-parser.c (c_parser_conditional_expression): Handle excess
26523 precision in condition.
26524 * c-typeck.c (convert_arguments): Handle arguments with excess
26525 precision.
26526 (build_unary_op): Move excess precision outside operation.
26527 (build_conditional_expr): Likewise.
26528 (build_compound_expr): Likewise.
26529 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26530 (build_modify_expr): Handle excess precision in RHS.
26531 (convert_for_assignment): Handle excess precision in converted
26532 value.
26533 (digest_init, output_init_element, process_init_element): Handle
26534 excess precision in initializer.
26535 (c_finish_return): Handle excess precision in return value.
26536 (build_binary_op): Handle excess precision in operands and add
26537 excess precision as needed for operation.
26538 * common.opt (-fexcess-precision=): New option.
26539 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26540 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26541 For standard excess precision, output explicit conversion to and
26542 truncation from XFmode.
26543 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26544 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26545 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26546 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26547 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26548 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26549 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26550 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26551 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26552 define_splits, sqrt<mode>2): Disable where appropriate for
26553 standard excess precision.
26554 * convert.c (convert_to_real): Do not shorten arithmetic to type
26555 for which excess precision would be used.
26556 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26557 * doc/invoke.texi (-fexcess-precision=): Document option.
26558 (-mfpmath=): Correct index entry.
26559 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26560 flag_excess_precision): New.
26561 * langhooks.c (lhd_post_options): Set
26562 flag_excess_precision_cmdline.
26563 * opts.c (common_handle_option): Handle -fexcess-precision=.
26564 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26565 init_excess_precision): New.
26566 (lang_dependent_init_target): Call init_excess_precision.
26567 * tree.c (excess_precision_type): New.
26568 * tree.h (excess_precision_type): Declare.
26569
26570 2009-03-30 Joseph Myers <joseph@codesourcery.com>
26571
26572 PR c/35235
26573 * c-typeck.c (build_component_ref): Do not copy qualifiers from
26574 non-lvalue to component.
26575
26576 2009-03-29 Joseph Myers <joseph@codesourcery.com>
26577
26578 PR preprocessor/34695
26579 * Makefile.in (c-opts.o): Depend on c-tree.h.
26580 * c-common.c: Move down include of diagnostic.h.
26581 (done_lexing, c_cpp_error): New.
26582 * c-common.h (done_lexing): Declare.
26583 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
26584 (parse_in).
26585 * c-opts.c: Include c-tree.h.
26586 (c_common_init_options): Set preprocessor error callback.
26587 (c_common_handle_option): Do not set preprocessor
26588 inhibit_warnings, warnings_are_errors, warn_system_headers,
26589 pedantic_errors or inhibit_warnings flags.
26590 (c_common_post_options): Do not check cpp_errors (parse_in).
26591 (c_common_finish): Do not output dependencies if there were
26592 errors. Do not check return value of cpp_finish.
26593 * c-ppoutput.c (pp_file_change): Set input_location.
26594 * c-tree.h (c_cpp_error): Declare.
26595 * diagnostic.c (diagnostic_set_info_translated): Also initialize
26596 override_column.
26597 (diagnostic_build_prefix): Check override_column.
26598 * diagnostic.h (diagnostic_info): Add override_column field.
26599 (diagnostic_override_column): Define.
26600
26601 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
26602
26603 * c-common.c (c_expand_expr, c_staticp): Remove.
26604 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
26605 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
26606 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
26607 * c-gimplify.c (gimplify_compound_literal_expr,
26608 optimize_compound_literals_in_ctor): Remove.
26609 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
26610 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
26611 * c-semantics.c (emit_local_var): Remove.
26612
26613 * langhooks-def.h (lhd_expand_expr): Remove.
26614 * langhooks.c (lhd_expand_expr): Remove.
26615 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
26616
26617 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
26618 handling from c-semantics.c; don't call into langhook.
26619 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
26620 * gimplify.c (gimplify_compound_literal_expr,
26621 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
26622 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
26623 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
26624 as was done in c-gimplify.c.
26625 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
26626 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
26627 Move from c-common.h.
26628 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
26629
26630 * tree.c (staticp): Do not call langhook.
26631 * langhooks.c (lhd_staticp): Delete.
26632 * langhooks-def.h (lhd_staticp): Delete prototype.
26633 (LANG_HOOKS_STATICP): Delete.
26634 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
26635
26636 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
26637 instead of DECL_STMTs.
26638
26639 2009-03-29 Joseph Myers <joseph@codesourcery.com>
26640
26641 PR c/456
26642 PR c/5675
26643 PR c/19976
26644 PR c/29116
26645 PR c/31871
26646 PR c/35198
26647 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
26648 void_type_node.
26649 (fold_call_expr): Return a NOP_EXPR from folding rather than the
26650 contained expression.
26651 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
26652 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
26653 conditional expressions for C.
26654 (decl_constant_value_for_optimization): Move from
26655 decl_constant_value_for_broken_optimization in c-typeck.c. Check
26656 whether optimizing and that the expression is a VAR_DECL not of
26657 array type instead of doing such checks in the caller. Do not
26658 check pedantic. Call gcc_unreachable for C++.
26659 * c-common.def (C_MAYBE_CONST_EXPR): New.
26660 * c-common.h (c_fully_fold, c_save_expr,
26661 decl_constant_value_for_optimization): New prototypes.
26662 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
26663 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
26664 EXPR_INT_CONST_OPERANDS): Define.
26665 * c-convert.c (convert): Strip nops from expression.
26666 * c-decl.c (groktypename): Take extra parameters expr and
26667 expr_const_operands. Update call to grokdeclarator.
26668 (start_decl): Update call to grokdeclarator. Add statement for
26669 expressions used in type of decl.
26670 (grokparm): Update call to grokdeclarator.
26671 (push_parm_decl): Update call to grokdeclarator.
26672 (build_compound_literal): Add parameter non_const and build a
26673 C_MAYBE_COSNT_EXPR if applicable.
26674 (grokdeclarator): Take extra parameters expr and
26675 expr_const_operands. Track expressions used in declaration
26676 specifiers and declarators. Fold array sizes and track whether
26677 they are constant expressions and whether they are integer
26678 constant expressions.
26679 (parser_xref_tag): Set expr and expr_const_operands fields in
26680 return value.
26681 (grokfield): Update call to grokdeclarator.
26682 (start_function): Update call to grokdeclarator.
26683 (build_null_declspecs): Set expr and expr_const_operands fields in
26684 return value.
26685 (declspecs_add_type): Handle expressions in typeof specifiers.
26686 * c-parser.c (c_parser_declspecs): Set expr and
26687 expr_const_operands fields for declaration specifiers.
26688 (c_parser_enum_specifier): Likewise.
26689 (c_parser_struct_or_union_specifier): Likewise.
26690 (c_parser_typeof_specifier): Likewise. Update call to
26691 groktypename. Fold expression as needed. Return expressions with
26692 type instead of adding statements.
26693 (c_parser_attributes): Update calls to c_parser_expr_list.
26694 (c_parser_statement_after_labels): Fold expression before passing
26695 to objc_build_throw_stmt.
26696 (c_parser_condition): Fold expression.
26697 (c_parser_asm_operands): Fold expression.
26698 (c_parser_conditional_expression): Use c_save_expr. Update call
26699 to build_conditional_expr.
26700 (c_parser_alignof_expression): Update call to groktypename.
26701 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
26702 original_code. Fold expression argument of va_arg. Create
26703 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
26704 argument to va_arg. Update calls to groktypename. Fold array
26705 index for offsetof. Verify that first argument to
26706 __builtin_choose_expr has integer type.
26707 (c_parser_postfix_expression_after_paren_type): Update calls to
26708 groktypename and build_compound_literal. Handle expressions with
26709 side effects in type name.
26710 (c_parser_postfix_expression_after_primary): Update call to
26711 c_parser_expr_list. Set original_code for calls to
26712 __builtin_constant_p.
26713 (c_parser_expr_list): Take extra parameter fold_p. Fold
26714 expressions if requested.
26715 (c_parser_objc_type_name): Update call to groktypename.
26716 (c_parser_objc_synchronized_statement): Fold expression.
26717 (c_parser_objc_receiver): Fold expression.
26718 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
26719 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
26720 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
26721 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
26722 (struct c_typespec): Add elements expr and expr_const_operands.
26723 (struct c_declspecs): Add elements expr and expr_const_operands.
26724 (groktypename, build_conditional_expr, build_compound_literal):
26725 Update prototypes.
26726 (in_late_binary_op): Declare.
26727 * c-typeck.c (note_integer_operands): New function.
26728 (in_late_binary_op): New variable.
26729 (decl_constant_value_for_broken_optimization): Move to c-common.c
26730 and rename to decl_constant_value_for_optimization.
26731 (default_function_array_conversion): Do not strip nops.
26732 (default_conversion): Do not call
26733 decl_constant_value_for_broken_optimization.
26734 (build_array_ref): Do not fold result.
26735 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
26736 result when operand is a VLA.
26737 (c_expr_sizeof_type): Update call to groktypename. Handle
26738 expressions included in type name. Use C_MAYBE_CONST_EXPR for
26739 result when operand names a VLA type.
26740 (build_function_call): Update call to build_compound_literal.
26741 Only fold result for calls to __builtin_* functions. Strip
26742 NOP_EXPR from INTEGER_CST returned from such functions. Fold
26743 the function designator.
26744 (convert_arguments): Fold arguments. Update call to
26745 convert_for_assignment.
26746 (build_unary_op): Handle increment and decrement of
26747 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
26748 decrement earlier. Fold operand of increment and decrement.
26749 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
26750 built for integer operand. Wrap returns that are INTEGER_CSTs
26751 without being integer constant expressions or that have integer
26752 constant operands without being INTEGER_CSTs.
26753 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
26754 (build_conditional_expr): Add operand ifexp_bcp. Track whether
26755 result is an integer constant expression or can be used in
26756 unevaluated parts of one and avoid folding and wrap as
26757 appropriate. Fold operands before possibly doing -Wsign-compare
26758 warnings.
26759 (build_compound_expr): Wrap result for C99 if operands can be used
26760 in integer constant expressions.
26761 (build_c_cast): Update call to digest_init. Do not ignore
26762 overflow from casting floating-point constants to integers. Wrap
26763 results that could be confused with integer constant expressions,
26764 null pointer constants or floating-point constants.
26765 (c_cast_expr): Update call to groktypename. Handle expressions
26766 included in type name.
26767 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
26768 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
26769 Update calls to convert_for_assignment.
26770 (convert_for_assignment): Take new parameter
26771 null_pointer_constant. Do not strip nops or call
26772 decl_constant_value_for_broken_optimization. Set
26773 in_late_binary_op for conversions to boolean.
26774 (store_init_value): Update call to digest_init.
26775 (digest_init): Take new parameter null_pointer_constant. Do not
26776 call decl_constant_value_for_broken_optimization. pedwarn for
26777 initializers not constant expressions. Update calls to
26778 convert_for_assignment.
26779 (constructor_nonconst): New.
26780 (struct constructor_stack): Add nonconst element.
26781 (really_start_incremental_init, push_init_level, pop_init_level):
26782 Handle constructor_nonconst and nonconst element.
26783 (set_init_index): Call constant_expression_warning for array
26784 designators.
26785 (output_init_element): Fold value. Set constructor_nonconst as
26786 applicable. pedwarn for initializers not constant expressions.
26787 Update call to digest_init. Call constant_expression_warning
26788 where constant initializers are required.
26789 (process_init_element): Use c_save_expr.
26790 (c_finish_goto_ptr): Fold expression.
26791 (c_finish_return): Fold return value. Update call to
26792 convert_for_assignment.
26793 (c_start_case): Fold switch expression.
26794 (c_process_expr_stmt): Fold expression.
26795 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
26796 ensure statement expression is not evaluated in constant expression.
26797 (build_binary_op): Track whether results are integer constant
26798 expressions or may occur in such, disable folding and wrap results
26799 as applicable. Fold operands for -Wsign-compare warnings unless
26800 in_late_binary_op.
26801 (c_objc_common_truthvalue_conversion): Handle results folded to
26802 integer constants that are not integer constant expressions.
26803 * doc/extend.texi: Document when typeof operands are evaluated,
26804 that condition of __builtin_choose_expr is an integer constant
26805 expression, and more about use of __builtin_constant_p in
26806 initializers.
26807
26808 2009-03-29 Richard Guenther <rguenther@suse.de>
26809
26810 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
26811 propagate addresses of array references.
26812
26813 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
26814
26815 * regmove.c (perhaps_ends_bb_p): Remove.
26816 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
26817 from INSN and check that the main loop stays within that basic block.
26818 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
26819 (regmove_forward_pass): Split out from regmove_optimize. Use
26820 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
26821 (regmove_backward_pass): Split out from regmove_optimize. Use
26822 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
26823 (regmove_optimize): Simplify.
26824
26825 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
26826
26827 PR target/39545
26828 * config/i386/i386.c (classify_argument): Ignore flexible array
26829 member in struct and warn ABI change.
26830
26831 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
26832
26833 * config/i386/i386-protos.h (ix86_agi_dependent): New.
26834
26835 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
26836 (ix86_adjust_cost): Updated.
26837
26838 2009-03-29 Jan Hubicka <jh@suse.cz>
26839
26840 PR middle-end/28850
26841 * tree-pass.h (pass_cleanup_eh): New function.
26842 (remove_unreachable_regions): Break code handling RTL
26843 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
26844 that can not be reached by runtime.
26845 (can_be_reached_by_runtime): New function.
26846 (label_to_region_map): New function.
26847 (num_eh_regions): New function.
26848 (rtl_remove_unreachable_regions): New function.
26849 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
26850 (remove_eh_region): New function.
26851 * except.h: Include sbitmap and vecprim.
26852 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
26853 num_eh_regions): Declare.
26854 * passes.c (init_optimization_passes): Schedule cleanup_eh.
26855 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
26856 * tree-eh.c (tree_remove_unreachable_handlers): New function.
26857 (tree_empty_eh_handler_p): New function.
26858 (cleanup_empty_eh): New function.
26859 (cleanup_eh): New function.
26860 (pass_cleanup_eh): New function.
26861
26862 2009-03-29 Jan Hubicka <jh@suse.cz>
26863
26864 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
26865 for removed regions.
26866
26867 2009-03-29 Jan Hubicka <jh@suse.cz>
26868
26869 * except.c (dump_eh_tree): Dump all datastructures.
26870
26871 2009-03-29 Jan Hubicka <jh@suse.cz>
26872
26873 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
26874 (duplicate_eh_regions_1): Likewise.
26875 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
26876 vector; call EH verification.
26877 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26878 Be ready for region being removed.
26879
26880 2009-03-29 Jan Hubicka <jh@suse.cz>
26881
26882 * bitmap.c (bitmap_last_set_bit): New function.
26883 * bitmap.h (bitmap_last_set_bit): Declare.
26884
26885 2009-03-29 David Ayers <ayers@fsfe.org>
26886
26887 PR objc/27377
26888 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
26889 by calling objc_compare_types and surpress warnings about
26890 incompatible C pointers that are compatible ObjC pointers.
26891
26892 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
26893
26894 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
26895 call initialize_inline_failed.
26896 (initialize_inline_failed): Move it from here ...
26897 * cgraph.c (initialize_inline_failed): ... to here.
26898 (cgraph_create_edge): Call initialize_inline_failed rather than
26899 setting inline_failed directly.
26900
26901 2009-03-29 Ben Elliston <bje@au.ibm.com>
26902
26903 PR target/32542
26904 * sysv4.opt (msdata): Improve comment.
26905 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
26906 * sysv4.h (SVR4_ASM_SPEC): Likewise.
26907
26908 2009-03-29 Ben Elliston <bje@au.ibm.com>
26909
26910 PR target/30451
26911 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
26912 load and store attributes.
26913
26914 2009-03-29 Ben Elliston <bje@au.ibm.com>
26915
26916 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
26917 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
26918 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
26919 * doc/extend.texi (X86 Built-in Functions): Add index entries for
26920 __builtin_infq and __builtin_huge_valq.
26921
26922 2009-03-28 Anatoly Sokolov <aesok@post.ru>
26923
26924 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
26925 atmega8m1 devices.
26926 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26927 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
26928
26929 2009-03-28 Xinliang David Li <davidxl@google.com>
26930
26931 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
26932 (do_dbg_cnt): New function.
26933
26934 2009-03-28 Jan Hubicka <jh@suse.cz>
26935
26936 Merge from pretty-ipa:
26937
26938 2009-03-27 Jan Hubicka <jh@suse.cz>
26939
26940 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26941 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
26942 * passes.c (function_called_by_processed_nodes_p): New.
26943 * ipa-pure-const.c (check_call): Fix handling of operands.
26944 (analyze_function): Dump debug output for skipped bodies.
26945 (local_pure_const): Use function_called_by_processed_nodes_p.
26946 * dwarf2out.c (reference_to_unused): Use output.
26947 * passes.c (do_per_function_toporder): Likewise.
26948
26949 2008-11-12 Jan Hubicka <jh@suse.cz>
26950
26951 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
26952 * ipa-pure-const.c (funct_state_d): Add can throw field; make
26953 state_set_in_source enum
26954 (check_decl): Ignore memory tags; do not set fake looping flags;
26955 dump diagnostics.
26956 (check_operand, check_tree, check_rhs_var, check_lhs_var,
26957 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
26958 (check_call, analyze_function): Rewrite.
26959 (check_stmt): New.
26960 (add_new_function): Update call of analyze_function.
26961 (generate_summary): Add call of analyze_function.
26962 (propagate): Propagate can_throw; handle state_set_in_source correctly.
26963 (local_pure_const): New function.
26964 (pass_local_pure_const): New pass.
26965 * ipa-inline.c (inline_transform): Set after_inlining.
26966 * tree-eh.c (stmt_can_throw_external): New.
26967 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
26968 work with aliasing built.
26969 * tree-flow.h (stmt_can_throw_external): New.
26970 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
26971 and local pure/const pass in early and late optimization queue.
26972
26973 2009-03-28 Martin Jambor <mjambor@suse.cz>
26974
26975 * fold-const.c (get_pointer_modulus_and_residue): New parameter
26976 allow_func_align.
26977 (fold_binary): Allow function decl aligment consideration is the
26978 second argument is integer constant one.
26979 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
26980 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
26981 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
26982
26983 2009-03-28 Jan Hubicka <jh@suse.cz>
26984
26985 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
26986 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
26987 * function.h (rtl_data): Add nothrow flag.
26988 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
26989 set DECL_NOTHROW for AVAILABLE functions.
26990
26991 2009-03-28 Jakub Jelinek <jakub@redhat.com>
26992
26993 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
26994 following vector keyword has expansion starting with pixel or bool
26995 keyword, expand vector to __vector and pixel or bool to __pixel or
26996 __bool.
26997
26998 PR c++/39554
26999 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
27000 warn_if_disallowed_function_p): Removed.
27001 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
27002 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
27003 warning_if_disallowed_function_p.
27004 * flags.h (warn_if_disallowed_function_p,
27005 warn_disallowed_functions): Removed.
27006 * common.opt (Wdisallowed-function-list=): Removed.
27007 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
27008
27009 2009-03-28 Richard Guenther <rguenther@suse.de>
27010
27011 PR tree-optimization/38723
27012 * tree-ssa-pre.c (compute_avail): Add all default definitions to
27013 the entry block.
27014
27015 2009-03-28 Jan Hubicka <jh@suse.cz>
27016
27017 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
27018 test introduced by my previous patch.
27019
27020 2009-03-28 Richard Guenther <rguenther@suse.de>
27021
27022 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
27023 the PHIs value undefined.
27024
27025 2009-03-28 Jan Hubicka <jh@suse.cz>
27026
27027 * tree-pass.h (pass_fixup_cfg): New pass.
27028 * ipa-inline.c (inline_transform): Set
27029 always_inline_functions_inlined/after_inlining.
27030 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
27031 (pass_fixup_cfg): New pass.
27032 * passes.c (init_optimization_passes): Add fixup_cfg.
27033
27034 2009-03-28 Richard Guenther <rguenther@suse.de>
27035
27036 PR tree-optimization/38458
27037 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
27038 argument use the arguments copy-of value.
27039
27040 2009-03-28 Richard Guenther <rguenther@suse.de>
27041
27042 PR tree-optimization/38180
27043 * tree-ssa-ccp.c (get_default_value): Simplify.
27044 (likely_value): Likewise.
27045 (surely_varying_stmt_p): Properly handle VOP case.
27046 (ccp_initialize): Likewise.
27047 (ccp_fold): Handle propagating through *&.
27048 (fold_const_aggregate_ref): Also handle decls.
27049
27050 2009-03-28 Jan Hubicka <jh@suse.cz>
27051
27052 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
27053 * cgraph.h (cgraph_node): Likewise.
27054 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
27055 (cgraph_reset_node): Use process flag.
27056 (cgraph_mark_functions_to_output): Likewise.
27057 (cgraph_expand_function): Likewise.
27058 (cgraph_expand_all_functions): Likewise.
27059 (cgraph_output_in_order): Likewise.
27060 * dwarf2out.c (reference_to_unused): Likewise.
27061 * passes.c do_per_function_toporder): Likewise.
27062
27063 2009-03-28 Jan Hubicka <jh@suse.cz>
27064
27065 Bring from lto-branch:
27066
27067 2008-09-03 Doug Kwan <dougkwan@google.com>
27068
27069 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
27070 enums instead of reason strings.
27071 * cgraph.c (cgraph_create_edge): Same.
27072 (cgraph_inline_failed_string): New function.
27073 * cgraph.h (cgraph_inline_failed_t): New enum type.
27074 (cgraph_inline_failed_string): New prototype.
27075 (struct cgraph_edge): Change type of INLINED_FAILED from constant
27076 char pointer to cgraph_inline_failed_t.
27077 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
27078 (cgraph_default_inline_p): Ditto.
27079 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
27080 to cgraph_inline_failed_t pointer.
27081 * cif-code.def: New file.
27082 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
27083 reason string.
27084 (cgraph_check_inline_limits): Change type of REASON to pointer to
27085 cgraph_inline_failed_t. Replace reason strings with enums.
27086 (cgraph_default_inline_p): Ditto.
27087 (cgraph_recursive_inlining_p): Ditto.
27088 (update_caller_keys): Change type of FAILED_REASON to
27089 cgraph_inline_failed_t.
27090 (cgraph_set_inline_failed): Change type of REASON to pointer to
27091 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
27092 convert enums to strings for text output.
27093 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
27094 to be of type cgraph_inline_failed_t. Replace reason strings with
27095 enums. Call cgraph_inline_failed_string to covert enums
27096 to strings for text output.
27097 (cgraph_decide_inlining): Replace reason strings with enums.
27098 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
27099 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
27100 for text output.
27101 * tree-inline.c (expand_call_inline): Change type of REASON
27102 to cgraph_inline_failed_t. Replace reason strings with enums.
27103 Call cgraph_inline_failed_string for text output.
27104 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
27105 (cgraph.o): Ditto.
27106
27107 2009-03-28 Jan Hubicka <jh@suse.cz>
27108
27109 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
27110 cgraph_clone_node): Remove master clone handling.
27111 (cgraph_is_master_clone, cgraph_master_clone): Remove.
27112 * cgraph.h (master_clone): Remove.
27113 (cgraph_is_master_clone, cgraph_master_clone): Remove.
27114 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
27115 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27116
27117 2009-03-28 Jan Hubicka <jh@suse.cz>
27118
27119 * cgraph.c (cgraph_function_body_availability): Functions declared
27120 inline are always safe to assume that it is not going to be replaced.
27121
27122 2009-03-28 Richard Guenther <rguenther@suse.de>
27123
27124 PR tree-optimization/38513
27125 * tree-ssa-pre.c (eliminate): Remove redundant stores.
27126 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27127 EXC_PTR_EXPR and FILTER_EXPR.
27128 (get_ref_from_reference_ops): Likewise.
27129
27130 2009-03-28 Richard Guenther <rguenther@suse.de>
27131
27132 PR tree-optimization/38968
27133 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27134 Use FLOOR_MOD_EXPR to compute misalignment.
27135
27136 2009-03-28 Richard Guenther <rguenther@suse.de>
27137
27138 PR tree-optimization/37795
27139 * tree.h (combine_comparisons): Declare.
27140 * fold-const.c (combine_comparisons): Export.
27141 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27142 comparisons.
27143 (ifcombine_iforif): Use combine_comparisons.
27144
27145 2009-03-28 Jan Hubicka <jh@suse.cz>
27146
27147 * tree-eh.c (inlinable_call_p): New function.
27148 (make_eh_edges): Use it.
27149 (verify_eh_edges): Use it.
27150 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27151 * except.c (reachable_next_level): Add inlinable_function argument
27152 (sjlj_find_directly_reachable_regions): Update.
27153 (add_reachable_handler): Do not set saw_any_handlers.
27154 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27155 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27156 Add new inlinable call parameter.
27157 (can_throw_internal, can_throw_external): Update.
27158 * except.h (can_throw_internal_1, can_throw_external_1,
27159 foreach_reachable_handler): Update declaration.
27160
27161 2009-03-28 Joseph Myers <joseph@codesourcery.com>
27162
27163 * config/arm/t-arm-coff, config/h8300/coff.h,
27164 config/i386/i386-aout.h, config/i386/i386-coff.h,
27165 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27166 config/pdp11/2bsd.h, config/rs6000/aix41.h,
27167 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27168 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27169 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27170 sys-types.h: Remove.
27171 * Makefile.in: Remove protoize and fixproto support and references
27172 in comments.
27173 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27174 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27175 Remove.
27176 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27177 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27178 unprotoize$(exeext).
27179 (rest.encap): Don't depend on $(STMP_FIXPROTO)
27180 (.PHONY): Don't depend on proto.
27181 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27182 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27183 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27184 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27185 build/gen-protos.o, build/scan.o, xsys-protos.h,
27186 build/fix-header$(build_exeext), build/fix-header.o,
27187 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27188 stmp-install-fixproto): Remove.
27189 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27190 SYSCALLS.c or fixproto files.
27191 (install-common): Don't install protoize.
27192 (install-headers-tar, install-headers-cpio, install-headers-cp):
27193 Don't depend on $(STMP_FIXPROTO).
27194 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
27195 install fixproto files or write out fixproto settings.
27196 (uninstall): Don't uninstall protoize.
27197 * config.gcc (use_fixproto): Remove.
27198 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27199 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27200 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27201 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27202 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27203 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27204 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27205 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27206 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27207 * config/t-vxworks (STMP_FIXPROTO): Remove.
27208 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27209 STMP_FIXPROTO): Remove.
27210 * config.in, configure: Regenerate.
27211 * crtstuff.c (gid_t, uid_t): Don't undefine.
27212 * doc/install.texi: Change m68k-coff to m68k-elf in example.
27213 (arm-*-coff, arm-*-aout: Remove target entries.
27214 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27215 Remove mention of AIX 4.1.
27216 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27217 * doc/invoke.texi (Running Protoize): Remove.
27218 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27219 (Protoize Caveats): Remove.
27220 * tsystem.h: Update comments on headers assumed to exist.
27221
27222 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
27223
27224 * genautomata.c: Add a new year to the copyright. Add a new
27225 reference.
27226 (struct insn_reserv_decl): Add comments for member bypass_list.
27227 (find_bypass): Remove.
27228 (insert_bypass): New.
27229 (process_decls): Use insert_bypass.
27230 (output_internal_insn_latency_func): Output all bypasses with the
27231 same input insn in one switch case.
27232
27233 * rtl.def (define_bypass): Describe bypass choice.
27234 * doc/md.texi (define_bypass): Ditto.
27235
27236 2009-03-27 Richard Guenther <rguenther@suse.de>
27237
27238 * gimplify.c (mark_addressable): Export.
27239 * tree-flow.h (mark_addressable): Declare.
27240 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27241 * tree-ssa.c (verify_phi_args): Verify that address taken
27242 variables have TREE_ADDRESSABLE set.
27243
27244 2009-03-27 Richard Guenther <rguenther@suse.de>
27245
27246 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27247 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
27248 Do not mark decls TREE_ADDRESSABLE.
27249 (build_fold_addr_expr): Adjust.
27250 (fold_addr_expr): Remove.
27251 (fold_unary): Use build_fold_addr_expr.
27252 (fold_comparison): Likewise.
27253 (split_address_to_core_and_offset): Likewise.
27254 * coverage.c (tree_coverage_counter_addr): Mark the array decl
27255 TREE_ADDRESSABLE.
27256 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27257 (gimplify_modify_expr_to_memcpy): Mark source and destination
27258 addressable.
27259 * omp-low.c (create_omp_child_function): Mark the object decl
27260 TREE_ADDRESSABLE.
27261 (lower_rec_input_clauses): Mark the var we take the address of
27262 TREE_ADDRESSABLE.
27263 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27264
27265 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27266
27267 PR middle-end/39315
27268 * cfgexpand.c (expand_one_stack_var_at): Change alignment
27269 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27270
27271 2009-03-27 Richard Guenther <rguenther@suse.de>
27272
27273 PR tree-optimization/39120
27274 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27275 constraints.
27276 (handle_lhs_call): Process return constraints. Add escape
27277 constraints if necessary.
27278 (handle_const_call): Fill out return constraints. Make nested
27279 case more precise. Avoid consttmp if possible.
27280 (handle_pure_call): Fill out return constraints. Avoid
27281 callused if possible.
27282 (find_func_aliases): Simplify call handling.
27283
27284 2009-03-27 Richard Guenther <rguenther@suse.de>
27285
27286 PR tree-optimization/39120
27287 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27288 as a representative.
27289 (solve_graph): Do propagate CALLUSED.
27290 (handle_pure_call): Use a scalar constraint from CALLUSED for
27291 the return value.
27292 (find_what_p_points_to): CALLUSED shall not appear in poins-to
27293 solutions.
27294
27295 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27296
27297 PR c/39323
27298 * c-common.c (handle_aligned_attribute): Properly check alignment
27299 overflow. Use (1U << i) instead of (1 << i).
27300
27301 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
27302
27303 * expr.h (get_mem_align_offset): Updated.
27304
27305 * tree.h (tree_decl_common): Change align to "unsigned int" and
27306 move it before pointer_alias_set.
27307
27308 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27309 Jakub Jelinek <jakub@redhat.com>
27310
27311 PR target/38034
27312 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27313 gr_register_operand with gr_reg_or_0_operand.
27314 (cmpxchg_rel_di): Likewise.
27315 (sync_lock_test_and_set<mode>): Likewise.
27316
27317 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27318
27319 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
27320 (true_regnum): Likewise.
27321
27322 * rtlanal.c (subreg_info): Moved to ...
27323 * rtl.h (subreg_info): Here. New.
27324 (subreg_get_info): New.
27325
27326 * rtlanal.c (subreg_get_info): Make it extern.
27327
27328 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27329
27330 PR target/39472
27331 * config/i386/i386.c (ix86_abi): New.
27332 (override_options): Handle -mabi=.
27333 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
27334 (ix86_call_abi_override): Likewise.
27335 (init_cumulative_args): Likewise.
27336 (function_arg_advance): Likewise.
27337 (function_arg_64): Likewise.
27338 (function_arg): Likewise.
27339 (ix86_pass_by_reference): Likewise.
27340 (ix86_function_value_regno_p): Likewise.
27341 (ix86_build_builtin_va_list_abi): Likewise.
27342 (setup_incoming_varargs_64): Likewise.
27343 (is_va_list_char_pointer): Likewise.
27344 (ix86_init_machine_status): Likewise.
27345 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
27346 (ix86_function_type_abi): Return enum calling_abi. Rewrite
27347 for 64bit. Replace DEFAULT_ABI with ix86_abi.
27348 (ix86_function_abi): Make it static and return enum calling_abi.
27349 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
27350 with ix86_abi.
27351 (ix86_fn_abi_va_list): Updated.
27352
27353 * config/i386/i386.h (ix86_abi): New.
27354 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27355 (CONDITIONAL_REGISTER_USAGE): Likewise.
27356 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27357 (machine_function): Likewise.
27358
27359 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27360 with ix86_abi.
27361 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27362 (STACK_BOUNDARY): Likewise.
27363 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27364
27365 * config/i386/i386.opt (mabi=): New.
27366
27367 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27368 return enum calling_abi.
27369 (ix86_function_type_abi): Likewise.
27370 (ix86_function_abi): Removed.
27371
27372 * doc/invoke.texi: Document -mabi= option for x86.
27373
27374 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27375
27376 * builtins.c (real_dconstp): Delete.
27377 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27378
27379 2009-03-27 Dodji Seketeli <dodji@redhat.com>
27380 Jakub Jelinek <jakub@redhat.com>
27381
27382 PR debug/37959
27383 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27384 (gen_subprogram_die): When a function is explicit, generate the
27385 DW_AT_explicit attribute.
27386 * langhooks.h (struct lang_hooks_for_decls): Add
27387 function_decl_explicit_p langhook.
27388 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27389 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27390
27391 2009-03-27 Jakub Jelinek <jakub@redhat.com>
27392
27393 * builtins.c (fold_builtin_memory_op): Optimize memmove
27394 into memcpy if we can prove source and destination don't overlap.
27395
27396 * tree-inline.c: Include gt-tree-inline.h.
27397 (clone_fn_id_num): New variable.
27398 (clone_function_name): New function.
27399 (tree_function_versioning): Use it.
27400 * Makefile.in (GTFILES): Add tree-inline.c.
27401
27402 2009-03-27 Mark Mitchell <mark@codesourcery.com>
27403
27404 * BASE-VER: Change to 4.5.0.
27405
27406 2009-03-27 Xinliang David Li <davidxl@google.com>
27407
27408 PR tree-optimization/39557
27409 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27410
27411 2009-03-27 Xinliang David Li <davidxl@google.com>
27412
27413 PR tree-optimization/39548
27414 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
27415 candidate check.
27416
27417 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27418
27419 * c-common.c (pointer_int_sum): Use %wd on return from
27420 tree_low_cst.
27421
27422 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
27423
27424 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27425 on return from tree_low_cst.
27426
27427 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
27428
27429 PR c++/36799
27430 * ginclude/stdarg.h (va_copy): Define also for
27431 __GXX_EXPERIMENTAL_CXX0X__.
27432
27433 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27434
27435 PR c++/35652
27436 * builtins.h (c_strlen): Do not warn here.
27437 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27438 * c-common.c (pointer_int_sum): Take an explicit location.
27439 Warn about offsets out of bounds.
27440 * c-common.h (pointer_int_sum): Adjust declaration.
27441
27442 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27443
27444 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27445 markup glitch.
27446
27447 2009-03-26 Jakub Jelinek <jakub@redhat.com>
27448
27449 PR c++/39554
27450 * opts.c (warn_if_disallowed_function_p): Don't assume
27451 get_callee_fndecl must return non-NULL.
27452
27453 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
27454
27455 PR rtl-optimization/39522
27456 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27457 when reg_reloaded_valid is set.
27458
27459 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27460
27461 * config/spu/divv2df3.c: New file.
27462 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27463 (DPBIT_FUNCS): Filter out _div_df.
27464
27465 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
27466
27467 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27468 a jump insn, count that jump in the distance to the loop start.
27469
27470 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
27471
27472 PR target/39523
27473 * config/sh/sh.c (calc_live_regs): Fix condition for global
27474 registers except PIC_OFFSET_TABLE_REGNUM.
27475
27476 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
27477
27478 PR/39518
27479 * doc/invoke.texi (-mconsole): New.
27480 (-mcygwin): New.
27481 (-mno-cygwin): New.
27482 (-mdll): New.
27483 (-mnop-fun-dllimport): New.
27484 (-mthread): New.
27485 (-mwin32): New.
27486 (-mwindows): New.
27487 (sub section "i386 and x86-64 Windows Options"): New.
27488
27489 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
27490
27491 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27492 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27493
27494 2009-03-25 Richard Guenther <rguenther@suse.de>
27495
27496 PR middle-end/39497
27497 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27498 of -Wno-error.
27499
27500 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
27501
27502 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27503 neither of haifa/selective schedulers are working.
27504
27505 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27506
27507 * doc/invoke.texi (Debugging Options): Fix description of
27508 -fno-merge-debug-strings.
27509
27510 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
27511
27512 * config/cris/libgcc.ver: New version-script.
27513 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27514
27515 * configure.ac <GAS features, nop mnemonic>: Add pattern
27516 crisv32-*-* for "nop".
27517 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
27518 * configure: Regenerate.
27519
27520 2009-03-24 Ira Rosen <irar@il.ibm.com>
27521
27522 PR tree-optimization/39529
27523 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27524 mark_sym_for_renaming for the tag copied to the new vector
27525 pointer.
27526
27527 2009-03-24 Arthur Loiret <aloiret@debian.org>
27528
27529 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
27530 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27531 EXTRA_SPEC_FUNCTIONS.
27532 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27533 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27534 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27535 -march and -mtune options.
27536
27537 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
27538
27539 * config/m68k/t-rtems: Add m5329 multilib.
27540
27541 2009-03-24 Dodji Seketeli <dodji@redhat.com>
27542 Jakub Jelinek <jakub@redhat.com>
27543
27544 PR debug/39524
27545 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27546 nodes.
27547
27548 2009-03-23 Jakub Jelinek <jakub@redhat.com>
27549
27550 PR c/39495
27551 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27552 instead of c_parser_expression_conv, if original_code isn't one of the
27553 4 allowed comparison codes, fail.
27554
27555 2009-03-23 Richard Guenther <rguenther@suse.de>
27556
27557 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27558 * tree.h (struct tree_type): Likewise.
27559 * reload.h (struct insn_chain): Likewise.
27560 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27561 * function.h (struct function): Likewise.
27562 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27563
27564 2009-03-23 Jakub Jelinek <jakub@redhat.com>
27565
27566 PR tree-optimization/39516
27567 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
27568
27569 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
27570
27571 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
27572 should be set true if BITS_PER_WORD of target is bigger than 32
27573
27574 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
27575
27576 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
27577 Translate -B-options to -rpath-link. Correct existing
27578 rpath-link and conditionalize on !nostdlib.
27579
27580 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27581
27582 * doc/extend.texi (Function Attributes, Variable Attributes):
27583 Fix typos.
27584 * doc/invoke.texi (Debugging Options, Optimize Options)
27585 (i386 and x86-64 Options, MCore Options): Likewise.
27586
27587 2009-03-20 Jakub Jelinek <jakub@redhat.com>
27588
27589 PR debug/37890
27590 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
27591 it for block local namespace aliases.
27592 (gen_decl_die): Pass context_die to gen_namespace_die.
27593
27594 2009-03-19 Jakub Jelinek <jakub@redhat.com>
27595
27596 PR c/39495
27597 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
27598 minimum or maximum value.
27599
27600 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
27601
27602 * reginfo.c (globalize_reg): Recompute derived reg sets.
27603
27604 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
27605
27606 PR target/39063
27607 * libgcc2.c (mprotect): Do not use signed arguments for
27608 VirtualProtect, use DWORD arguments. Also fix the 'may
27609 be used uninitialized' warning for the np variable.
27610
27611 2009-03-19 Jakub Jelinek <jakub@redhat.com>
27612
27613 PR target/39496
27614 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
27615 functions using regparm calling conventions when not optimizing.
27616 (ix86_function_sseregparm): Similarly for sseregparm calling
27617 conventions.
27618
27619 2009-03-19 Li Feng <nemokingdom@gmail.com>
27620
27621 PR middle-end/39500
27622 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
27623 dependence if the first conflict is after niter iterations.
27624
27625 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
27626
27627 PR middle-end/38609
27628 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
27629 functions with dynamic stack-pointer adjustments.
27630
27631 2009-03-19 Ben Elliston <bje@au.ibm.com>
27632
27633 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
27634 option; change to -msdata=data.
27635
27636 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27637
27638 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
27639 and -fopenmp.
27640
27641 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
27642
27643 PR target/35180
27644 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
27645
27646 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
27647
27648 * doc/invoke.texi (Code Gen Options): Expand discussion of
27649 -fno-common.
27650
27651 2009-03-18 Jakub Jelinek <jakub@redhat.com>
27652
27653 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
27654 * matrix-reorg.c (struct matrix_info): Likewise.
27655 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
27656 * rtl.h (struct mem_attrs): Likewise.
27657 * df.h (struct df): Likewise.
27658 * tree-data-ref.h (struct data_dependence_relation): Likewise.
27659 * ira-int.h (struct ira_allocno): Likewise.
27660 * df-scan.c (struct df_collection_rec): Likewise.
27661 * ira.c (struct equivalence): Likewise.
27662 * function.c (struct temp_slot): Likewise.
27663 * cfgloop.h (struct loop): Likewise.
27664
27665 PR debug/39485
27666 * function.c (use_register_for_decl): When not optimizing, disregard
27667 register keyword for variables with types containing methods.
27668
27669 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
27670
27671 PR middle-end/39447
27672 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
27673 (is_simple_operand): Call contains_component_ref_p before calling data
27674 reference analysis that would fail on COMPONENT_REFs.
27675
27676 * tree-vrp.c (search_for_addr_array): Fix formatting.
27677
27678 2009-03-18 Richard Guenther <rguenther@suse.de>
27679
27680 * tree-vect-transform.c (vect_loop_versioning): Fold the
27681 generated comparisons.
27682 * tree-vectorizer.c (set_prologue_iterations): Likewise.
27683 (slpeel_tree_peel_loop_to_edge): Likewise.
27684
27685 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27686
27687 PR middle-end/37805
27688 * opts.c (print_specific_help): In addition to `undocumented',
27689 accept `separate' and `joined' flags if passed alone. Describe
27690 output by the first matched one of those.
27691 (common_handle_option): Skip over empty strings.
27692 * gcc.c (display_help): Fix help string for `--help='.
27693 * doc/invoke.texi (Option Summary, Overall Options): With
27694 `--help=', classes and qualifiers can both be repeated, but
27695 only the latter can be negated. One should not pass only
27696 negated qualifiers. Fix markup and examples.
27697
27698 Revert
27699 2008-10-14 Jakub Jelinek <jakub@redhat.com>
27700 PR middle-end/37805
27701 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
27702 and -fhelp=separate.
27703
27704 2009-03-17 Jing Yu <jingyu@google.com>
27705
27706 PR middle-end/39378
27707 * function.h (struct rtl_data): Move is_thunk from here...
27708 (struct function): ...to here.
27709 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
27710 * varasm.c (assemble_start_function): Change is_thunk from crtl to
27711 cfun.
27712 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
27713 cfun.
27714 (alpha_does_function_need_gp, alpha_start_function): Likewise.
27715 (alpha_output_function_end_prologue): Likewise.
27716 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
27717 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
27718 (rs6000_output_function_epilogue): Likewise.
27719 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
27720
27721 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
27722
27723 PR target/39482
27724 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
27725 from different units in a single alternative.
27726 (*truncdfsf_i387): Ditto.
27727 (*truncxfsf2_mixed): Ditto.
27728 (*truncxfdf2_mixed): Ditto.
27729
27730 2009-03-17 Jakub Jelinek <jakub@redhat.com>
27731
27732 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
27733 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
27734
27735 PR debug/39474
27736 * tree-ssa-live.c (remove_unused_locals): Don't remove local
27737 unused non-artificial variables when not optimizing.
27738
27739 PR debug/39471
27740 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
27741 DW_TAG_imported_module even if decl is IMPORTED_DECL with
27742 NAMESPACE_DECL in its DECL_INITIAL.
27743
27744 PR middle-end/39443
27745 * optabs.c (set_user_assembler_libfunc): New function.
27746 * expr.h (set_user_assembler_libfunc): New prototype.
27747 * c-common.c: Include libfuncs.h.
27748 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
27749 for memcmp, memset, memcpy, memmove and abort.
27750 * Makefile.in (c-common.o): Depend on libfuncs.h.
27751
27752 PR debug/39412
27753 * dwarf2out.c (gen_inlined_enumeration_type_die,
27754 gen_inlined_structure_type_die, gen_inlined_union_type_die,
27755 gen_tagged_type_instantiation_die): Removed.
27756 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
27757 do nothing.
27758
27759 2009-03-17 Janis Johnson <janis187@us.ibm.com>
27760
27761 PR testsuite/38526
27762 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
27763 its use.
27764 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
27765 (check-parallel-%): Ditto.
27766 (check-consistency): Ditto.
27767
27768 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
27769
27770 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
27771 local variable rhs by NULL_TREE.
27772
27773 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27774
27775 PR target/39477
27776 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
27777
27778 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27779
27780 PR target/39476
27781 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
27782
27783 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
27784
27785 PR target/39473
27786 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
27787 for ms->sysv ABI calls only in 64bit mode.
27788
27789 * config/i386/i386.md (untyped_call): Support 32bit.
27790
27791 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
27792
27793 * doc/extend.texi: Replace x86_65 with x86_64.
27794
27795 2009-03-16 Jakub Jelinek <jakub@redhat.com>
27796
27797 PR tree-optimization/39455
27798 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
27799 mismatches for POINTER_TYPE_P (type).
27800 (number_of_iterations_le): Likewise.
27801
27802 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27803
27804 * config/picochip/picochip.c: Removed profiling support.
27805 * config/picochip/picochip.md: Removed profiling instruction.
27806 * config/picochip/picochip.h: Removed profiling builtin.
27807
27808 2009-03-16 Joseph Myers <joseph@codesourcery.com>
27809
27810 * doc/install.texi (--with-host-libstdcxx): Document.
27811
27812 2009-03-14 Anatoly Sokolov <aesok@post.ru>
27813
27814 PR target/34299
27815 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
27816 generate a warning if the function name does not begin with
27817 "__vector" and the function has either the 'signal' or 'interrupt'
27818 attribute, from here to ...
27819 (avr_declare_function_name): ...here. New function.
27820 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
27821 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
27822
27823 2009-03-14 Jakub Jelinek <jakub@redhat.com>
27824
27825 PR bootstrap/39454
27826 * cse.c (fold_rtx): Don't modify original const_arg1 when
27827 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
27828 separate variable instead.
27829 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
27830 from out of range shift counts.
27831 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
27832
27833 2009-03-13 Catherine Moore <clm@codesourcery.com>
27834
27835 * config/i386/x-mingw32 (host-mingw32.o): Replace
27836 diagnostic.h with $(DIAGNOSTIC_H).
27837
27838 2009-03-12 Jakub Jelinek <jakub@redhat.com>
27839
27840 PR target/39431
27841 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
27842 predicate.
27843 * config/i386/sync.md (sync_compare_and_swap<mode>,
27844 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
27845 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
27846 into a register.
27847 (sync_double_compare_and_swapdi_pic,
27848 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
27849 cmpxchg8b_pic_memory_operand instead of just memory_operand.
27850
27851 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27852
27853 PR target/39445
27854 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
27855
27856 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27857
27858 PR target/39327
27859 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27860 (avx_addsubv4df3): Likewise.
27861 (*avx_addsubv4sf3): Likewise.
27862 (sse3_addsubv4sf3): Likewise.
27863
27864 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
27865
27866 PR target/38824
27867 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
27868
27869 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
27870
27871 PR debug/39432
27872 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
27873 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
27874 registers for allocnos created from user-defined variables.
27875
27876 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27877
27878 PR target/39181
27879 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
27880 of non-integer mode as well.
27881
27882 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
27883
27884 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
27885 for functions for which the parameter types are unknown.
27886
27887 2009-03-11 Jakub Jelinek <jakub@redhat.com>
27888
27889 PR target/39137
27890 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
27891 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
27892 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
27893 * config/i386/i386.c (ix86_local_alignment): For
27894 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
27895 long long variables on the stack to avoid dynamic realignment.
27896 Allow the first argument to be a decl rather than type.
27897 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
27898
27899 2009-03-11 Nick Clifton <nickc@redhat.com>
27900
27901 PR target/5362
27902 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
27903 options.
27904 Add description to mno-lsim option.
27905 * config/mcore/mcore.h: Remove comment about deprecated m4align
27906 option.
27907 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
27908 * doc/invoke.texi: Add description of mno-lsim and
27909 mstack-increment options.
27910
27911 * config/fr30/fr30.opt: Document the -mno-lsim option.
27912 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
27913 and -mno-lsim options.
27914
27915 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27916
27917 * fold-const.c (fold_comparison): Only call fold_inf_compare
27918 if the mode supports infinities.
27919
27920 2009-03-11 Jason Merrill <jason@redhat.com>
27921
27922 PR debug/39086
27923 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
27924 end already did. Notice GIMPLE_CALL modifications of the result.
27925 Don't copy debug information from an ignored decl or a decl from
27926 another function.
27927
27928 2009-03-10 Richard Guenther <rguenther@suse.de>
27929 Nathan Froyd <froydnj@codesourcery.com>
27930
27931 PR middle-end/37850
27932 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
27933 (__divMODE3): Likewise.
27934
27935 2009-03-09 Jakub Jelinek <jakub@redhat.com>
27936
27937 PR tree-optimization/39394
27938 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
27939 DECL_SIZE_UNIT of variable length FIELD_DECLs.
27940
27941 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27942
27943 * recog.c (verfiy_changes): Disallow renaming of hard regs in
27944 inline asms for register asm ("") declarations.
27945
27946 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
27947
27948 * fold-const.c (fold_unary): Fix comment.
27949
27950 2009-03-07 Jan Hubicka <jh@suse.cz>
27951
27952 PR target/39361
27953 * tree-inline.c (setup_one_parameter): Do replacement of const
27954 argument by constant in SSA form.
27955
27956 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27957
27958 PR middle-end/38028
27959 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
27960 determine alignment passed to assign_stack_local.
27961 (assign_parms_unsplit_complex): Likewise.
27962 * except.c (sjlj_build_landing_pads): Likewise.
27963
27964 2009-03-06 Jakub Jelinek <jakub@redhat.com>
27965
27966 PR middle-end/39360
27967 * tree-flow.h (add_referenced_var): Return bool instead of void.
27968 * tree-dfa.c (add_referenced_var): Return result of
27969 referenced_var_check_and_insert call.
27970 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
27971 of referenced_var_check_and_insert.
27972
27973 PR debug/39372
27974 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
27975 (gen_variable_die): Emit DW_AT_location on abstract static variable's
27976 DIE, don't emit it if abstract origin already has it.
27977 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
27978 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
27979
27980 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27981
27982 * genpreds.c (needs_variable): Fix parentheses at variable name
27983 detection.
27984 (write_tm_constrs_h): Indent generated code.
27985
27986 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27987
27988 * doc/extend.texi (Function Attributes): Add documentation
27989 for isr attributes.
27990
27991 2009-03-06 Jakub Jelinek <jakub@redhat.com>
27992
27993 PR debug/39387
27994 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
27995 take locus from its DECL_SOURCE_LOCATION instead of input_location.
27996
27997 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
27998
27999 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
28000 the loop as bad.
28001
28002 2009-03-05 Jakub Jelinek <jakub@redhat.com>
28003
28004 PR debug/39379
28005 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
28006 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
28007
28008 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
28009
28010 * config/i386/i386.md (R8_REG, R9_REG): New constants.
28011 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
28012 constants instead of magic numbers.
28013 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
28014 (QI_REG_P): Ditto.
28015 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
28016 (x86_64_ms_abi_int_parameter_registers): Ditto.
28017 (x86_64_int_return_registers): Ditto.
28018 (ix86_maybe_switch_abi): Ditto.
28019 (ix86_expand_call): Ditto for clobbered_registers array.
28020 (ix86_hard_regno_mode_ok): Ditto.
28021 (x86_extended_QIreg_mentioned_p): Ditto.
28022
28023 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
28024
28025 PR tree-optimization/39349
28026 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
28027
28028 * combine.c (gen_lowpart_for_combine): Use omode when generating
28029 clobber.
28030
28031 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
28032
28033 PR rtl-optimization/39235
28034 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
28035
28036 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
28037
28038 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
28039
28040 2009-03-04 Richard Guenther <rguenther@suse.de>
28041
28042 PR tree-optimization/39362
28043 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
28044 that occur in abnormal PHIs should be varying.
28045
28046 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
28047
28048 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
28049 Extend comments.
28050 (simple_iv): Take loop as an argument instead of statement.
28051 * tree-scalar-evolution.h (simple_iv): Declaration changed.
28052 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
28053 to simple_iv.
28054 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
28055 Ditto.
28056 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
28057 * matrix-reorg.c (analyze_transpose): Ditto.
28058 * tree-data-ref.c (dr_analyze_innermost): Ditto.
28059 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
28060 * tree-predcom.c (ref_at_iteration): Ditto.
28061 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
28062
28063 2009-03-04 Richard Guenther <rguenther@suse.de>
28064
28065 PR tree-optimization/39358
28066 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
28067 escaped_id and callused_id.
28068 (solve_graph): Likewise.
28069
28070 2009-03-04 Richard Guenther <rguenther@suse.de>
28071
28072 PR tree-optimization/39339
28073 * tree-sra.c (try_instantiate_multiple_fields): Make it
28074 no longer ICE on the above.
28075
28076 2009-03-03 Joseph Myers <joseph@codesourcery.com>
28077
28078 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
28079 that fits within Pmode.
28080
28081 2009-03-03 Steve Ellcey <sje@cup.hp.com>
28082
28083 PR middle-end/10109
28084 * tm.texi (LIBCALL_VALUE): Update description.
28085
28086 2009-03-03 Steve Ellcey <sje@cup.hp.com>
28087
28088 PR middle-end/34443
28089 * doc/extend.texi (section): Update description.
28090
28091 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
28092
28093 PR middle-end/39345
28094 * tree-inline.c (remapped_type): New.
28095 (can_be_nonlocal): Call remapped_type instead of remap_type.
28096
28097 2009-03-03 Jakub Jelinek <jakub@redhat.com>
28098
28099 PR fortran/39354
28100 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
28101 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
28102
28103 2009-03-03 Richard Guenther <rguenther@suse.de>
28104
28105 PR middle-end/39272
28106 * tree.c (tree_nonartificial_location): New function.
28107 * tree.h (tree_nonartificial_location): Declare.
28108 * builtins.c (expand_builtin_memory_chk): Provide location
28109 of the call location for artificial function pieces.
28110 (maybe_emit_chk_warning): Likewise.
28111 (maybe_emit_sprintf_chk_warning): Likewise.
28112 (maybe_emit_free_warning): Likewise.
28113 * expr.c (expand_expr_real_1): Likewise.
28114
28115 2009-03-03 Jakub Jelinek <jakub@redhat.com>
28116
28117 PR tree-optimization/39343
28118 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
28119 COMPONENT_REF t has ARRAY_TYPE.
28120
28121 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
28122
28123 PR middle-end/39335
28124 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28125 when the type precision of the induction variable should be
28126 larger than the type precision of nit.
28127 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28128 * graphite.c (graphite_loop_normal_form): Same.
28129 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28130
28131 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
28132
28133 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28134 (*call_1_rex64_ms_sysv): Use named constants instead of magic
28135 numbers to describe clobbered registers.
28136 (*call_value_0_rex64_ms_sysv): Ditto.
28137 * config/i386/mmx.md (mmx_emms): Ditto.
28138 (mmx_femms): Ditto.
28139
28140 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
28141
28142 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28143 of ABI_64.
28144
28145 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28146
28147 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28148 (spu_section_type_flags): New function.
28149
28150 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
28151
28152 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28153 reg_class_contents of FLOAT_REGS into a temporary.
28154
28155 2009-03-02 Richard Guenther <rguenther@suse.de>
28156 Ira Rosen <irar@il.ibm.com>
28157
28158 PR tree-optimization/39318
28159 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28160 information to the vectorized statement.
28161
28162 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
28163
28164 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28165 variable. Use defined names instead of magic constants for REX SSE
28166 registers.
28167
28168 2009-03-01 Richard Guenther <rguenther@suse.de>
28169
28170 PR tree-optimization/39331
28171 * omp-low.c (lower_send_shared_vars): Do not receive new
28172 values for the reference of DECL_BY_REFERENCE parms or results.
28173
28174 2009-03-01 Jan Hubicka <jh@suse.cz>
28175
28176 PR debug/39267
28177 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28178 BLOCK_NONLOCALIZED_VAR): New macros.
28179 (tree_block): Add nonlocalized_vars.
28180 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28181 gen_decl_die): Add origin argument. Allow generation of die with
28182 origin at hand only.
28183 (gen_member_die, gen_type_die_with_usage, force_decl_die,
28184 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28185 of gen_*.
28186 (gen_block_die): Fix checking for unused blocks.
28187 (process_scope_var): Break out from .... ; work with origins only.
28188 (decls_for_scope) ... here; process nonlocalized list.
28189 (dwarf2out_ignore_block): Look for nonlocalized vars.
28190 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28191 vars.
28192 (dump_scope_block): Dump them.
28193 * tree-inline.c (remap_decls): Handle nonlocalized vars.
28194 (remap_block): Likewise.
28195 (can_be_nonlocal): New predicate.
28196 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28197
28198 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28199
28200 * configure: Regenerate.
28201
28202 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28203
28204 * optc-gen.awk: No need to duplicate option flags twice.
28205 Reuse help texts for duplicate options which do not have any.
28206
28207 * gcc.c (display_help): Document --version.
28208
28209 * gcc.c (main): If print_help_list and verbose_flag, ensure
28210 driver output comes before subprocess output.
28211
28212 * optc-gen.awk: Assign all remaining fields to help string,
28213 space-separated, for multi-line help in *.opt.
28214
28215 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28216 -Wno-pedantic-ms-format is for MinGW targets only.
28217
28218 * doc/options.texi (Option file format): Fix bad indentation,
28219 restoring dropped sentence.
28220
28221 2009-02-28 Jan Hubicka <jh@suse.cz>
28222
28223 * tree-inline.c (tree_function_versioning): Output debug info.
28224
28225 2009-02-28 Jan Hubicka <jh@suse.cz>
28226
28227 PR debug/39267
28228 * tree-inline.c (setup_one_parameter): Do not copy propagate
28229 arguments when not optimizing.
28230
28231 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
28232
28233 PR target/39327
28234 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28235 (avx_addsubv4df3): Likewise.
28236 (*avx_addsubv4sf3): Likewise.
28237 (sse3_addsubv4sf3): Likewise.
28238 (*avx_addsubv2df3): Likewise.
28239 (sse3_addsubv2df3): Likewise.
28240 (avx_unpckhps256): Correct item selectors.
28241 (avx_unpcklps256): Likewise.
28242 (avx_unpckhpd256): Likewise.
28243 (avx_unpcklpd256): Likewise.
28244
28245 2009-02-28 Jan Hubicka <jh@suse.cz>
28246
28247 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28248 static vars.
28249 (copy_arguments_for_versioning): If var is declared don't declare it.
28250 (tree_function_versioning): First setup substitutions and then copy
28251 args.
28252
28253 2009-02-27 Jan Hubicka <jh@suse.cz>
28254
28255 PR debug/39267
28256 * cgraph.h (varpool_output_debug_info): Remove.
28257 * cgraphunit.c (varpool_output_debug_info): Remove.
28258 * dwarf2out.c (deferred_locations_struct): New struct
28259 (deferred_locations): New type.
28260 (deferred_locations_list): New static var.
28261 (deffer_location): New function.
28262 (gen_variable_die): Use it.
28263 (decls_for_scope): Output info on local static vars.
28264 (dwarf2out_finish): Process deferred locations.
28265 * varpool.c (varpool_output_debug_info): Remove.
28266
28267 2009-02-27 Jan Hubicka <jh@suse.cz>
28268
28269 PR debug/39267
28270 * tree.h (TREE_PROTECTED): Fix comment.
28271 (BLOCK_HANDLER_BLOCK): Remove.
28272 (struct tree_block): Remove handler_block add body_block.
28273 (inlined_function_outer_scope_p): New.
28274 (is_body_block): Remove.
28275 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28276 * dwarf2out.c (is_inlined_entry_point): Remove.
28277 (add_high_low_attributes): Use inlined_function_outer_scope_p.
28278 (gen_block_die): Use is_inlined_entry_point check. Remove body block
28279 code.
28280 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28281 * gimplify.c (gimplify_expr): Gimplify body blocks.
28282 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28283 block with multiple subblocks.
28284 (dump_scope_block): Prettier output; dump more flags and info.
28285 (dump_scope_blocks): New.
28286 (remove_unused_locals): Use dump_scope_blocks.
28287 * tree-flow.h (dump_scope_blocks): Declare.
28288 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28289 * stmt.c (is_body_block): Remove.
28290 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28291 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28292
28293 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
28294
28295 PR middle-end/39308
28296 * graphite.c (graphite_loop_normal_form): Do not call
28297 number_of_iterations_exit from a gcc_assert.
28298
28299 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28300
28301 * config/s390/s390.c (s390_swap_cmp): Look for conditional
28302 jumps if COND is NULL.
28303 (find_cond_jump): New function.
28304 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
28305 * config/s390/s390.md: Remove z10_cobra attribute value.
28306
28307 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
28308
28309 * config/alpha/alpha.h (alpha_expand_mov): Return false if
28310 force_const_mem returns NULL_RTX.
28311
28312 2009-02-26 Jan Hubicka <jh@suse.cz>
28313
28314 PR debug/39267
28315 * cgraph.h (varpool_output_debug_info): Remove.
28316 * cgraphunit.c (varpool_output_debug_info): Remove.
28317 * dwarf2out.c (deferred_locations_struct): New struct
28318 (deferred_locations): New type.
28319 (deferred_locations_list): New static var.
28320 (deffer_location): New function.
28321 (gen_variable_die): Use it.
28322 (decls_for_scope): Output info on local static vars.
28323 (dwarf2out_finish): Process deferred locations.
28324 * varpool.c (varpool_output_debug_info): Remove.
28325
28326 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
28327
28328 PR rtl-optimization/39241
28329 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
28330 to subreg_offset_representable_p.
28331
28332 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
28333
28334 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
28335 execute function prototype. Get f and nregs from max_reg_num
28336 and get_insns. Remove the first backward pass as it's dead,
28337 guard the forward pass by flag_expensive_optimizations.
28338 (rest_of_handle_regmove): Delete.
28339 (pass_regmove): Replace it with regmove_optimize.
28340
28341 2009-02-25 Martin Jambor <mjambor@suse.cz>
28342
28343 PR tree-optimization/39259
28344 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
28345 calls_alloca function flags.
28346 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28347 calls are detected.
28348
28349 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
28350
28351 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28352 flags_set_1_rtx, flags_set_1_set): Delete.
28353 (regmove_optimize): Do not call mark_flags_life_zones.
28354
28355 2009-02-24 Julian Brown <julian@codesourcery.com>
28356
28357 PR target/35965
28358 * config/arm/arm.c (require_pic_register): Only set
28359 cfun->machine->pic_reg once per function.
28360
28361 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
28362
28363 * doc/invoke.texi (Link Options): Document an easier way to pass
28364 options that take arguments to the GNU linker using -Xlinker and -Wl.
28365
28366 2009-02-24 Steve Ellcey <sje@cup.hp.com>
28367
28368 PR target/33785
28369 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28370
28371 2009-02-24 Richard Guenther <rguenther@suse.de>
28372
28373 PR debug/39285
28374 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28375
28376 2009-02-24 Richard Guenther <rguenther@suse.de>
28377 Zdenek Dvorak <ook@ucw.cz>
28378
28379 PR tree-optimization/39233
28380 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28381 from converting them to a generic type.
28382
28383 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
28384
28385 PR tree-optimization/39260
28386 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28387 contains a condition with a real type.
28388 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28389
28390 2009-02-23 Jason Merrill <jason@redhat.com>
28391
28392 PR c++/38880
28393 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28394 narrowing_initializer_constant_valid_p.
28395 (narrowing_initializer_constant_valid_p): Don't return
28396 null_pointer_node for adding a pointer to itself.
28397
28398 2009-02-23 Jan Hubicka <jh@suse.cz>
28399
28400 PR c/12245
28401 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28402 resizing.
28403
28404 2009-02-23 Jan Hubicka <jh@suse.cz>
28405
28406 PR tree-optimization/37709
28407 * tree.c (block_ultimate_origin): Move here from dwarf2out.
28408 * tree.h (block_ultimate_origin): Declare.
28409 * dwarf2out.c (block_ultimate_origin): Move to tree.c
28410 * tree-ssa-live.c (remove_unused_scope_block_p):
28411 Eliminate blocks containig no instructions nor live variables nor
28412 nested blocks.
28413 (dump_scope_block): New function.
28414 (remove_unused_locals): Enable removal of dead blocks by default;
28415 enable dumping at TDF_DETAILS.
28416
28417 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28418
28419 * config/i386/i386.c (classify_argument): Don't allow COImode
28420 and OImode.
28421 (function_arg_advance_32): Don't allow OImode.
28422 (function_arg_32): Likewise.
28423 (function_value_32): Likewise.
28424 (return_in_memory_32): Likewise.
28425 (function_arg_64): Remove OImode comment.
28426
28427 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28428
28429 PR target/39261
28430 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28431 ix86_expand_vector_set for V4DImode in 64bit mode only.
28432 (ix86_expand_vector_init_one_var): Likewise.
28433
28434 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
28435
28436 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28437
28438 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28439
28440 PR bootstrap/39257
28441 * loop-iv.c: Revert last change.
28442 * emit-rtl.c: Likewise.
28443
28444 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
28445
28446 PR target/39256
28447 * config/i386/i386.c (type_natural_mode): Remove an extra
28448 space in the warning message.
28449 (function_value_32): Handle 32-byte vector modes.
28450 (return_in_memory_32): Likewise.
28451
28452 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
28453
28454 * loop-iv.c (truncate_value): New function.
28455 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28456 of lowpart_subreg.
28457 (lowpart_subreg): Move to...
28458 * emit-rtl.c: ...here.
28459
28460 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
28461
28462 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28463 accidental and undocumented change at revision 140860.
28464
28465 2009-02-21 Joseph Myers <joseph@codesourcery.com>
28466
28467 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28468 take gimple_seq * arguments.
28469 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28470 types_compatible_p langhook.
28471
28472 2009-02-20 Mark Mitchell <mark@codesourcery.com>
28473 Joseph Myers <joseph@codesourcery.com>
28474
28475 * config/arm/arm.c (arm_builtin_va_list): New function.
28476 (arm_expand_builtin_va_start): Likewise.
28477 (arm_gimplify_va_arg_expr): Likewise.
28478 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28479 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28480 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28481 (va_list_type): New variable.
28482 (arm_mangle_type): Mangle va_list_type appropriately.
28483
28484 2009-02-20 Jakub Jelinek <jakub@redhat.com>
28485
28486 PR middle-end/39157
28487 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28488 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28489 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28490 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28491 parameter to 1000 for -O1 by default.
28492 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28493 parameter.
28494 * loop-invariant.c: Include params.h.
28495 (move_loop_invariants): Don't call move_single_loop_invariants on
28496 very large loops.
28497
28498 2009-02-20 Jaka Mocnik <jaka@xlab.si>
28499
28500 * calls.c (emit_library_call_value_1): Use slot_offset instead of
28501 offset when calculating bounds for indexing stack_usage_map. Fixes
28502 a buffer overflow with certain target setups.
28503
28504 2009-02-20 Jakub Jelinek <jakub@redhat.com>
28505
28506 PR target/39240
28507 * calls.c (expand_call): Clear try_tail_call if caller and callee
28508 disagree in promotion of function return value.
28509
28510 2009-02-19 Jakub Jelinek <jakub@redhat.com>
28511
28512 PR target/39175
28513 * c-common.c (c_determine_visibility): If visibility changed and
28514 DECL_RTL has been already set, call make_decl_rtl to update symbol
28515 flags.
28516
28517 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
28518
28519 PR c++/39188
28520 * varasm.c (assemble_variable): Don't check DECL_NAME when
28521 globalizing a variable.
28522
28523 2009-02-19 Joseph Myers <joseph@codesourcery.com>
28524
28525 PR c/38483
28526 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28527 expression before any __builtin_trap call.
28528 * c-typeck.c (build_function_call): Convert and check function
28529 arguments before generating a call to a trap. Evaluate the
28530 function arguments before the trap.
28531
28532 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
28533
28534 PR target/39228
28535 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28536 (UNSPEC_FXAM_MEM): New unspec.
28537 (fxam<mode>2_i387_with_temp): New insn and split pattern.
28538 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
28539 memory using fxam<mode>2_i387_with_temp to remove excess precision.
28540
28541 2009-02-19 Richard Guenther <rguenther@suse.de>
28542
28543 PR tree-optimization/39207
28544 PR tree-optimization/39074
28545 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28546 storedanything_tree): New.
28547 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
28548 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
28549 (build_succ_graph): Add edges from STOREDANYTHING to all
28550 non-direct nodes.
28551 (init_base_vars): Initialize STOREDANYTHING.
28552 (compute_points_to_sets): Free substitution info after
28553 building the succ graph.
28554 (ipa_pta_execute): Likewise.
28555
28556 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28557 field.
28558 (do_ds_constraint): Do not add to special var or non-pointer
28559 field solutions.
28560 (type_could_have_pointers): Split out from ...
28561 (could_have_pointers): ... here. For arrays use the element type.
28562 (create_variable_info_for): Initialize may_have_pointers.
28563 (new_var_info): Likewise.
28564 (handle_lhs_call): Make the HEAP variable unknown-sized.
28565 (intra_create_variable_infos): Use a type with pointers for
28566 PARM_NOALIAS, make it unknown-sized.
28567
28568 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
28569
28570 PR target/39224
28571 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
28572
28573 2009-02-18 Jason Merrill <jason@redhat.com>
28574
28575 PR target/39179
28576 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
28577 value if DECL_EXTERNAL.
28578 * tree-sra.c (sra_walk_gimple_assign): Likewise.
28579 * target.h (gcc_target::binds_local_p): Clarify "module".
28580 * tree.h (TREE_PUBLIC): Clarify "module".
28581
28582 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
28583
28584 PR target/38891
28585 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
28586 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
28587
28588 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
28589
28590 PR target/39082
28591 * c.opt (Wabi): Support C and ObjC.
28592 (Wpsabi): New.
28593
28594 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
28595
28596 * config/i386/i386.c (classify_argument): Warn once about the ABI
28597 change when passing union with long double.
28598
28599 * doc/invoke.texi: Update -Wabi for warning psABI changes.
28600
28601 2009-02-18 Joseph Myers <joseph@codesourcery.com>
28602
28603 PR c/35447
28604 * c-parser.c (c_parser_compound_statement): Always enter and leave
28605 a scope.
28606
28607 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28608
28609 PR target/34587
28610 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
28611
28612 2009-02-18 Jakub Jelinek <jakub@redhat.com>
28613
28614 PR tree-optimization/36922
28615 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
28616 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
28617 Likewise.
28618
28619 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28620
28621 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
28622 to 0 for EABI64.
28623
28624 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28625
28626 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
28627
28628 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
28629
28630 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
28631 tree sharing.
28632
28633 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
28634 Richard Sandiford <rdsandiford@googlemail.com>
28635
28636 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
28637 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
28638 (loongson_biadd): ...this.
28639
28640 2009-02-17 Richard Guenther <rguenther@suse.de>
28641
28642 PR tree-optimization/39202
28643 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
28644 a var make sure to follow existing collapses.
28645
28646 2009-02-17 Richard Guenther <rguenther@suse.de>
28647
28648 PR middle-end/39214
28649 * langhooks.c (lhd_print_error_function): Check for NULL block.
28650
28651 2009-02-17 Richard Guenther <rguenther@suse.de>
28652
28653 PR tree-optimization/39204
28654 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
28655 of the PHI arg.
28656
28657 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
28658
28659 * config/soft-fp/double.h: Update from glibc CVS.
28660
28661 2009-02-17 Richard Guenther <rguenther@suse.de>
28662
28663 PR tree-optimization/39207
28664 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
28665 strict-aliasing warnings for pointers pointing to NULL.
28666
28667 2009-02-16 Joseph Myers <joseph@codesourcery.com>
28668
28669 PR c/35446
28670 * c-parser.c (c_parser_braced_init): Call pop_init_level when
28671 skipping until next close brace.
28672
28673 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
28674
28675 PR target/37049
28676 * config/i386/i386.c (ix86_expand_push): Set memory alignment
28677 to function argument boundary.
28678
28679 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
28680
28681 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
28682 in the lea_add. Reload eventually constraints it properly.
28683 * config/picochip/constraints.md: Remove the target constraint
28684 "b", since it is not needed anymore.
28685
28686 2009-02-16 Jakub Jelinek <jakub@redhat.com>
28687
28688 * gthr-dce.h: Uglify function parameter and local variable names.
28689 * gthr-gnat.h: Likewise.
28690 * gthr-mipssde.h: Likewise.
28691 * gthr-nks.h: Likewise.
28692 * gthr-posix95.h: Likewise.
28693 * gthr-posix.h: Likewise.
28694 * gthr-rtems.h: Likewise.
28695 * gthr-single.h: Likewise.
28696 * gthr-solaris.h: Likewise.
28697 * gthr-tpf.h: Likewise.
28698 * gthr-vxworks.h: Likewise.
28699 * gthr-win32.h: Likewise.
28700
28701 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
28702
28703 PR target/39196
28704 * config/i386/i386.md: Restrict the new peephole2 to move
28705 between MMX/SSE registers.
28706
28707 2009-02-15 Richard Guenther <rguenther@suse.de>
28708
28709 Revert
28710 2009-02-13 Richard Guenther <rguenther@suse.de>
28711
28712 * configure.ac: Enable LFS.
28713 * configure: Re-generate.
28714 * config.in: Likewise.
28715
28716 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28717
28718 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
28719 spu_srqwbyte, spu_srqwbytebc): Define.
28720 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
28721 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
28722 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
28723 "shrqby_<mode>"): New insn-and-split patterns.
28724 * config/spu/spu.c (expand_builtin_args): Determine and return
28725 number of operands using spu_builtin_description data.
28726 (spu_expand_builtin_1): Use it.
28727
28728 2009-02-13 Steve Ellcey <sje@cup.hp.com>
28729
28730 PR target/38056
28731 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
28732 TARGET_CONST_GP.
28733
28734 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28735
28736 PR target/39149
28737 * config/i386/i386.c (override_options): Correct warning
28738 messages for -malign-loops, -malign-jumps and -malign-functions.
28739
28740 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28741
28742 PR target/39152
28743 * config/i386/i386.md: Restrict the new peephole2 to move
28744 between the general purpose registers.
28745
28746 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
28747
28748 PR target/39162
28749 * config/i386/i386.c (type_natural_mode): Add a new argument.
28750 Return the original mode and warn ABI change if vector size is 32byte.
28751 (function_arg_advance): Updated.
28752 (function_arg): Likewise.
28753 (ix86_function_value): Likewise.
28754 (ix86_return_in_memory): Likewise.
28755 (ix86_sol10_return_in_memory): Likewise.
28756 (ix86_gimplify_va_arg): Likewise.
28757 (function_arg_32): Don't warn ABX ABI change here.
28758 (function_arg_64): Likewise.
28759
28760 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
28761
28762 * loop-iv.c (implies_p): In the final case, test that operands 0
28763 of the two comparisons match.
28764
28765 * config/bfin/bfin.c (find_prev_insn_start): New function.
28766 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
28767 (find_next_insn_start): Move.
28768
28769 2009-02-13 Richard Guenther <rguenther@suse.de>
28770
28771 * configure.ac: Enable LFS.
28772 * configure: Re-generate.
28773 * config.in: Likewise.
28774
28775 2009-02-13 Joseph Myers <joseph@codesourcery.com>
28776
28777 PR c/35444
28778 * c-parser.c (c_parser_parms_list_declarator): Discard pending
28779 sizes on syntax error after some arguments have been parsed.
28780
28781 2009-02-12 Jakub Jelinek <jakub@redhat.com>
28782
28783 * doc/invoke.texi (-fira): Remove.
28784
28785 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28786
28787 * caller-save.c: Replace regclass.c with reginfo.c in comments.
28788 * recog.c: Likewise.
28789 * rtl.h: Likewise.
28790
28791 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
28792
28793 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
28794 (umul_ppmm): Likewise.
28795 (count_leading_zeros): Likewise.
28796 (count_trailing_zeros): Likewise.
28797 (UMUL_TIME): Likewise.
28798
28799 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28800
28801 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
28802 soft-fp/t-softfp to tmake_file.
28803
28804 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
28805 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
28806 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
28807 IA64_BUILTIN_INFQ]: New.
28808 (ia64_init_builtins): Initialize __builtin_infq,
28809 __builtin_fabsq and __builtin_copysignq if not HPUX.
28810 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
28811 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
28812
28813 * config/ia64/lib1funcs.asm (__divtf3): Define only if
28814 SHARED is defined.
28815 (__fixtfti): Likewise.
28816 (__fixunstfti): Likewise.
28817 (__floattitf): Likewise.
28818
28819 * config/ia64/libgcc-glibc.ver: New.
28820 * config/ia64/t-fprules-softfp: Likewise.
28821 * config/ia64/sfp-machine.h: Likewise.
28822
28823 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
28824 (LIBGCC2_TF_CEXT): Likewise.
28825 (TF_SIZE): Likewise.
28826 (TARGET_INIT_LIBFUNCS): Likewise.
28827
28828 * config/ia64/t-glibc (SHLINB_MAPFILES):
28829 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
28830
28831 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
28832
28833 * config/i386/i386.c (construct_container): Rewrite processing
28834 BLKmode with X86_64_SSE_CLASS.
28835
28836 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
28837
28838 PR target/39152
28839 * config/i386/i386.md: Replace simplify_replace_rtx with
28840 replace_rtx in the new peephole2.
28841
28842 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
28843
28844 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
28845 loop unrolling do not happen at -O2.
28846
28847 2009-02-12 Michael Matz <matz@suse.de>
28848
28849 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
28850
28851 2009-02-12 Jakub Jelinek <jakub@redhat.com>
28852
28853 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
28854 for -g3.
28855
28856 2009-02-12 Ben Elliston <bje@au.ibm.com>
28857
28858 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
28859 patterns when updating the back chain. Missed in the 2009-02-10
28860 change.
28861
28862 2009-02-11 Janis Johnson <janis187@us.ibm.com>
28863
28864 * doc/extend.texi (Decimal Floating Types): Update identifier of
28865 draft TR and list of missing support.
28866
28867 2009-02-11 Jakub Jelinek <jakub@redhat.com>
28868
28869 PR middle-end/39154
28870 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
28871 bit to variable length decl's flags, add it also to its
28872 pointer replacement variable.
28873
28874 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
28875 Jakub Jelinek <jakub@redhat.com>
28876
28877 PR target/39118
28878 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
28879 (memory_blockage): New expander.
28880 (*memory_blockage): New insn pattern.
28881 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
28882 instead of general blockage at the end of function prologue when
28883 frame pointer is used to access red zone area. Do not emit blockage
28884 when profiling, it is emitted in generic code.
28885 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
28886 function epilogue when frame pointer is used to access red zone area.
28887
28888 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
28889
28890 PR target/38824
28891 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
28892 by arithmetic with memory operands.
28893 * config/i386/predicates.md (commutative_operator): New.
28894
28895 2009-02-10 Janis Johnson <janis187@us.ibm.com>
28896
28897 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
28898 bulleted lists.
28899
28900 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
28901
28902 * alias.h (record_alias_subset): Declare.
28903 * alias.c (record_alias_subset): Make global.
28904
28905 2009-02-10 Nick Clifton <nickc@redhat.com>
28906
28907 * tree-parloops.c: Change license to GPLv3.
28908 * ipa-struct-reorg.c: Change license to GPLv3.
28909 * ipa-struct-reorg.h: Change license to GPLv3.
28910
28911 2009-02-10 Steve Ellcey <sje@cup.hp.com>
28912
28913 PR c/39084
28914 * c-decl.c (start_struct): Return NULL on error.
28915
28916 2009-02-10 Jakub Jelinek <jakub@redhat.com>
28917
28918 PR middle-end/39124
28919 * cfgloopmanip.c (remove_path): Call remove_bbs after
28920 cancel_loop_tree, not before it.
28921
28922 PR target/39139
28923 * function.h (struct function): Add has_local_explicit_reg_vars bit.
28924 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
28925 VAR_DECLs were seen.
28926 * tree-ssa-live.c (remove_unused_locals): Recompute
28927 cfun->has_local_explicit_reg_vars.
28928 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
28929 copies or clearings if cfun->has_local_explicit_reg_vars.
28930
28931 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
28932
28933 PR target/39118
28934 * config/i386/i386.c (expand_prologue): Emit blockage at the end
28935 of function prologue when frame pointer is used to access
28936 red zone area.
28937
28938 2009-02-10 Richard Guenther <rguenther@suse.de>
28939
28940 PR middle-end/39127
28941 * gimplify.c (gimple_regimplify_operands): Always look if
28942 we need to create a temporary.
28943
28944 2009-02-10 Richard Guenther <rguenther@suse.de>
28945
28946 PR tree-optimization/39132
28947 * tree-loop-distribution.c (todo): New global var.
28948 (generate_memset_zero): Trigger TODO_rebuild_alias.
28949 (tree_loop_distribution): Return todo.
28950
28951 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
28952
28953 PR target/39119
28954 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
28955 (x86_64_reg_class_name): Removed.
28956 (classify_argument): Return 0 if bytes > 32. Return 0 if the
28957 first one isn't X86_64_SSE_CLASS or any other ones aren't
28958 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
28959 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
28960 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
28961 and 3 X86_64_SSEUP_CLASS.
28962 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
28963 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
28964
28965 2009-02-10 Ben Elliston <bje@au.ibm.com>
28966
28967 * config/rs6000/rs6000.md (allocate_stack): Always use an update
28968 form instruction to update the stack back chain word, even if the
28969 user has disabled the generation of update instructions.
28970 (movdi_<mode>_update_stack): New.
28971 (movsi_update_stack): Likewise.
28972 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
28973 always use an update form instruction to update the stack back
28974 chain word.
28975
28976 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
28977
28978 PR middle-end/38953
28979 * graphite.c (if_region_set_false_region): After moving a region in
28980 the false branch of a condition, remove the empty dummy basic block.
28981 (gloog): Remove wrong fix for PR38953.
28982
28983 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28984
28985 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
28986 generation due to implicit sign extension.
28987
28988 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
28989
28990 PR middle-end/38981
28991 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
28992 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
28993
28994 2009-02-09 Richard Guenther <rguenther@suse.de>
28995
28996 PR middle-end/35202
28997 * convert.c (convert_to_real): Disable (float)fn((double)x)
28998 to fnf(x) conversion if errno differences may occur and
28999 -fmath-errno is set.
29000
29001 2009-02-07 Anatoly Sokolov <aesok@post.ru>
29002
29003 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
29004 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
29005 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
29006
29007 2009-02-06 Joseph Myers <joseph@codesourcery.com>
29008
29009 PR c/35434
29010 * c-common.c (handle_alias_attribute): Disallow attribute for
29011 anything not a FUNCTION_DECL or VAR_DECL.
29012
29013 2009-02-06 Janis Johnson <janis187@us.ibm.com>
29014
29015 PR c/39035
29016 * real.c (do_compare): Special-case compare of zero against
29017 decimal float value.
29018
29019 2009-02-06 Joseph Myers <joseph@codesourcery.com>
29020
29021 PR c/36432
29022 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
29023 as indicating flexible array members unless the field itself is
29024 being declarared as the incomplete array.
29025
29026 2009-02-06 Jan Hubicka <jh@suse.cz>
29027
29028 PR tree-optimization/38844
29029 * ipa-inline.c (try_inline): Stop inlining recursion when edge
29030 is already inlined.
29031
29032 2009-02-06 Richard Guenther <rguenther@suse.de>
29033
29034 PR middle-end/38977
29035 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
29036 fork because we may expand it as __gcov_fork.
29037
29038 2009-02-06 Nick Clifton <nickc@redhat.com>
29039
29040 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
29041
29042 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
29043
29044 PR tree-optimization/35659
29045 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
29046 vn_phi_eq): Shortcut if hashcode does not match.
29047 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
29048 NULL operands.
29049 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
29050 and avoid iterative_hash_expr.
29051 (FOR_EACH_VALUE_ID_IN_SET): New.
29052 (value_id_compare): Remove.
29053 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
29054 sort expressions by value id.
29055
29056 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
29057
29058 PR target/38991
29059 * config/sh/predicates.md (general_movsrc_operand): Don't check
29060 the subreg of system registers here.
29061
29062 2009-02-05 Jakub Jelinek <jakub@redhat.com>
29063
29064 PR c++/39106
29065 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
29066 on the copied decl.
29067
29068 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
29069
29070 PR rtl-optimization/39110
29071 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
29072 addresses, not aligned ones.
29073
29074 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
29075 Richard Guenther <rguenther@suse.de>
29076
29077 PR tree-optimization/39100
29078 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
29079 comment says and add edges.
29080
29081 2009-02-05 Joseph Myers <joseph@codesourcery.com>
29082
29083 PR c/35435
29084 * c-common.c (handle_tls_model_attribute): Ignore attribute for
29085 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
29086
29087 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
29088
29089 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
29090 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
29091 register_bb_in_sese, new_sese, free_sese): Moved.
29092 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
29093 outermost_loop_in_scop, build_scop_iteration_domain,
29094 expand_scalar_variables_ssa_name, get_vdef_before_scop,
29095 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
29096 Use loop_in_sese_p instead of loop_in_scop_p.
29097 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
29098 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
29099 (scopdet_basic_block_info): Fix bug in scop detection.
29100 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
29101 eq_loop_to_cloog_loop): Remove.
29102 (nb_loops_around_loop_in_scop, nb_loop
29103 ref_nb_loops): Moved here...
29104 * graphite.h (ref_nb_loops): ... from here.
29105 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
29106 (loop_domain_dim, loop_iteration_vector_dim): Remove.
29107 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
29108
29109 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
29110 Hans-Peter Nilsson <hp@axis.com>
29111
29112 PR rtl-optimization/37889
29113 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
29114 Move offset handling from PLUS to before the switch. Use new
29115 arguments when considering SYMBOL_REFs too.
29116 (rtx_addr_can_trap_p): Pass dummy offset and size.
29117 (enum may_trap_p_flags): Remove.
29118 (may_trap_p_1): Pass size from MEM_SIZE.
29119
29120 PR rtl-optimization/38921
29121 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
29122 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
29123 * rtlanal.c (may_trap_after_code_motion_p): Delete.
29124 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29125
29126 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
29127
29128 AVX Programming Reference (January, 2009)
29129 * config/i386/sse.md (*vpclmulqdq): New.
29130
29131 2009-02-04 Jakub Jelinek <jakub@redhat.com>
29132
29133 PR tree-optimization/38977
29134 PR gcov-profile/38292
29135 * calls.c (special_function_p): Disregard __builtin_ prefix.
29136
29137 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
29138
29139 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29140 non-indexable addresses even before reload.
29141
29142 2009-02-03 Joseph Myers <joseph@codesourcery.com>
29143
29144 PR c/29129
29145 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29146 as having variable size. Do not give an error for unnamed
29147 parameters with [*] declarators. Give a warning for type names
29148 with [*] declarators and mark them as variable size.
29149 * c-parser.c (c_parser_sizeof_expression): Do not give an error
29150 for sizeof applied to [*] type names.
29151
29152 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
29153
29154 PR C++/36607
29155 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29156
29157 2009-02-03 Jakub Jelinek <jakub@redhat.com>
29158
29159 * gcc.c (process_command): Update copyright notice dates.
29160 * gcov.c (print_version): Likewise.
29161 * gcov-dump.c (print_version): Likewise.
29162 * mips-tfile.c (main): Likewise.
29163 * mips-tdump.c (main): Likewise.
29164
29165 2009-02-03 Joseph Myers <joseph@codesourcery.com>
29166
29167 PR c/35433
29168 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29169 for composite type involving a zero-length array type.
29170
29171 2009-02-03 Jakub Jelinek <jakub@redhat.com>
29172
29173 PR target/35318
29174 * function.c (match_asm_constraints_1): Skip over
29175 initial optional % in the constraint.
29176
29177 PR inline-asm/39059
29178 * c-parser.c (c_parser_postfix_expression): If fixed point is not
29179 supported, don't accept FIXED_CSTs.
29180 * c-decl.c (finish_declspecs): Error if fixed point is not supported
29181 and _Sat is used without _Fract/_Accum. Set specs->type to
29182 integer_type_node for cts_fract/cts_accum if fixed point is not
29183 supported.
29184
29185 2009-02-02 Catherine Moore <clm@codesourcery.com>
29186
29187 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
29188
29189 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
29190
29191 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29192 (ABI_HAS_64BIT_SYMBOLS): Use it.
29193 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29194
29195 2009-02-02 Paul Brook <paul@codesourcery.com>
29196
29197 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29198
29199 2009-02-02 Jakub Jelinek <jakub@redhat.com>
29200
29201 PR inline-asm/39058
29202 * recog.h (asm_operand_ok): Add constraints argument.
29203 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
29204 recurse on matching constraint.
29205 (check_asm_operands): Pass constraints as 3rd argument to
29206 asm_operand_ok. Don't look up matching constraint here.
29207 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29208 to asm_operand_ok.
29209
29210 2009-02-02 Ben Elliston <bje@au.ibm.com>
29211
29212 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29213 TARGET_NARROW_VOLATILE_BITFIELD macro names.
29214
29215 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29216
29217 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29218 information. Remove some obsolete information. Reorganize.
29219
29220 * config/pa/fptr.c: Revert license to GPL 2.
29221 * config/pa/milli64.S: Likewise.
29222
29223 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
29224
29225 PR target/38904
29226 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
29227 LIBRARY name in, instead of hard-coding it.
29228 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
29229 extra target make frag to tmake_files according to EH model.
29230 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29231 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
29232 frags that define makefile variable EH_MODEL appropriately.
29233 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
29234 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
29235 to "-sjlj" according to type of EH configured.
29236 (LIBGCC_SONAME): Concatenate it to shared library base name.
29237 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
29238 to "_sjlj" according to type of EH configured.
29239 (LIBGCC_SONAME): Concatenate it to shared library base name.
29240 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
29241 (SHLIB_LINK): Add missing semicolon to if-else construct.
29242 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
29243 string value of "pe_dll" command-line option.
29244 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
29245 (SHLIB_SONAME): Use it when overriding t-cygming default.
29246 (SHLIB_IMPLIB): Override t-cygming default.
29247 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
29248 string value of "pe_dll" command-line option.
29249
29250 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
29251
29252 PR target/38952
29253 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
29254 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
29255
29256 2009-01-31 Richard Guenther <rguenther@suse.de>
29257
29258 PR tree-optimization/38937
29259 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29260 computing the transitive closure.
29261
29262 2009-01-30 Richard Guenther <rguenther@suse.de>
29263
29264 PR tree-optimization/39041
29265 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29266 Propagate variable indices only if the types match for this stmt.
29267
29268 2009-01-30 Jakub Jelinek <jakub@redhat.com>
29269
29270 PR target/39013
29271 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29272 inline but never defined.
29273
29274 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
29275
29276 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29277 (*insv_h_di_reg_extimm): New insn.
29278 (*insv_l<mode>_reg_extimm): New insn.
29279
29280 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29281
29282 * config/picochip/picochip.c (flag_conserve_stack): set
29283 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29284 fconserve-stack. Reduce call-overhead used by inliner.
29285
29286 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29287
29288 PR/38157
29289 * common.opt (flag_conserve_stack): Initialised to zero.
29290
29291 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
29292
29293 PR/39002
29294 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29295 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29296 method.
29297
29298 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
29299
29300 * ira-color.c (allocno_reload_assign): Update comments.
29301 * regmove.c (regmove_optimize): Likewise.
29302
29303 * ra.h: Removed.
29304
29305 2009-01-29 Robert Millan <rmh@aybabtu.com>
29306
29307 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29308 * config/i386/kopensolaris-gnu.h: New file. Undefine
29309 `MD_UNWIND_SUPPORT'.
29310 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
29311
29312 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
29313
29314 PR tree-optimization/39007
29315 * tree-loop-distribution.c (generate_builtin): Use
29316 recompute_dominator to compute the immediate dominator of the
29317 basic block just after the loop.
29318
29319 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29320
29321 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
29322 (ASM_OUTPUT_DWARF_PCREL): Define.
29323
29324 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
29325
29326 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
29327 * doc/passes.texi: Remove entries about regclass, local-alloc, and
29328 global. Modify entries about regmove and IRA.
29329
29330 * ra-conflict.c: Remove the file.
29331
29332 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
29333
29334 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
29335 (pass_regclass_init): Rename to pass_reginfo_init.
29336
29337 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
29338
29339 * toplev.h (flag_ira): Remove.
29340
29341 * caller-save.c (setup_save_areas): Remove flag_ira.
29342
29343 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
29344
29345 * global.c: Remove the file.
29346
29347 * opts.c (decode_options): Remove flag_ira.
29348
29349 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29350
29351 * regmove.c: Modify file description.
29352 (find_use_as_address, try_auto_increment): Define them only if
29353 AUTO_INC_DEC is defined.
29354 (replacement_quality, replace_in_call_usage, fixup_match_1,
29355 stable_and_no_regs_but_for_p): Remove.
29356 (reg_set_in_bb): Make it static.
29357 (regmove_optimize): Remove flag_ira and code which worked for
29358 !flag_ira.
29359
29360 * local-alloc.c: Remove the file.
29361
29362 * common.opt (fira): Remove.
29363
29364 * ira.c: Include except.h.
29365 (eliminable_regset): Move from global.c.
29366 (mark_elimination): Ditto. Remove flag_ira.
29367 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29368 equiv_mem_modified, validate_equiv_mem_from_store,
29369 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29370 contains_replace_regs, memref_referenced_p, memref_used_between_p,
29371 no_equiv, recorded_label_ref): Move from local-alloc.c.
29372 (update_equiv_regs): Ditto. Make it static.
29373 (print_insn_chain, print_insn_chains): Move it from global.c.
29374 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
29375 (build_insn_chain): Ditto. Make it static.
29376 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
29377 Rename to init_live_subregs.
29378 (gate_ira): Remove flag_ira.
29379
29380 * regclass.c: Rename reginfo.c. Change file description.
29381 (FORBIDDEN_INC_DEC_CLASSES): Remove.
29382 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
29383 (init_reg_sets_1): Remove code for evaluation of
29384 reg_class_superclasses and losing_caller_save_reg_set.
29385 (init_regs): Remove init_reg_autoinc.
29386 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29387 ok_for_base_p_nonstrict): Remove.
29388 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
29389 (pass_regclass_init): Rename to pass_reginfo_init. Modify
29390 corresponding entries.
29391 (dump_regclass, record_operand_costs, scan_one_insn,
29392 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29393 record_address_regs, auto_inc_dec_reg_p): Remove.
29394 (gt-regclass.h): Rename to gt-reginfo.h.
29395
29396 * rtl.h (dump_global_regs, retry_global_alloc,
29397 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
29398
29399 * Makefile.in (RA_H): Remove.
29400 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29401 Rename regclass.o to reginfo.o.
29402 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
29403 gt-reginfo.h.
29404 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29405 (GTFILES): Rename regclass.c to reginfo.c.
29406
29407 * passes.c (init_optimization_passes): Remove pass_local_alloc and
29408 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
29409
29410 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29411 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29412 Remove flag_ira.
29413 (finish_spills): Ditto. Remove code for !flag_ira.
29414
29415 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
29416
29417 PR middle-end/35854
29418 * doc/invoke.texi (rtl debug options): Complete rewrite.
29419 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29420 to auto_inc_dec".
29421 * mode-switching.c (pass_mode_switching): Rename pass from
29422 "mode-sw" to "mode_sw".
29423 * except.c (pass_convert_to_eh_ranges): Rename pass from
29424 "eh-ranges" to "eh_ranges".
29425 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29426 to "subreg1".
29427
29428
29429 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
29430 Alexander Monakov <amonakov@ispras.ru>
29431
29432 PR middle-end/38857
29433 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29434 register.
29435 (move_exprs_to_boundary): Change return type and pass through
29436 should_move from move_op. Relax assert. Update usage ...
29437 (schedule_expr_on_boundary): ... here. Use should_move instead of
29438 cant_move.
29439 (move_op_orig_expr_found): Indicate that insn was disconnected from
29440 stream.
29441 (code_motion_process_successors): Do not call after_merge_succs
29442 callback if original expression was not found when traversing any of
29443 the branches.
29444 (code_motion_path_driver): Change return type. Update prototype.
29445 (move_op): Update comment. Add a new parameter (should_move). Update
29446 prototype. Set *should_move based on indication provided by
29447 move_op_orig_expr_found.
29448
29449 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
29450
29451 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29452 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29453 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29454 * config/rs6000/rs6000.c (rs6000_override_options): Default
29455 avoid-indexed-addresses on for Power6, off for everything else.
29456 (avoiding_indexed_address_p): New function.
29457 (rs6000_legitimize_address): Use it.
29458 (rs6000_legitimate_address): Likewise.
29459 * config/rs6000/rs6000.md (movXX_updateX): Likewise
29460
29461 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
29462
29463 PR tree-optimization/38997
29464 * tree-loop-distribution.c (generate_memset_zero): Use
29465 POINTER_PLUS_EXPR for a pointer addition.
29466
29467 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
29468
29469 * config/s390/s390.md (bswap<mode>2): New pattern added.
29470
29471 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29472
29473 * config/s390/s390.md (*tls_load_31): Added type attribute.
29474
29475 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29476
29477 * config/s390/s390.md: Fix a few comments.
29478
29479 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
29480
29481 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29482 (*tm<mode>_full): Fixed z10prop attribute.
29483 (*tst<mode>_extimm): Fixed z10prop attribute.
29484 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29485 (*tstqiCCT_cconly): Fixed z10prop attribute.
29486 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29487 (*movsi_larl): Fixed z10prop attribute.
29488 (*movsi_zarch): Fixed z10prop attribute.
29489 (*movsi_eas): Fixed z10prop attribute.
29490 (*movhi): Fixed z10prop attribute.
29491 (*movqi): Fixed z10prop attribute.
29492 (*movstrictqi): Fixed z10prop attribute.
29493 (*mov<mode>): Fixed z10prop attribute.
29494 (*movcc): Fixed z10prop attribute.
29495 (*sethighpartdi_64): Fixed z10prop attribute.
29496 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29497 (*negdi2_sign_cc): Fixed z10prop attribute.
29498 (*negdi2_sign): Fixed z10prop attribute.
29499 (*absdi2_sign_cc): Fixed z10prop attribute.
29500 (*absdi2_sign): Fixed z10prop attribute.
29501 (*negabsdi2_sign_cc): Fixed z10prop attribute.
29502 (*negabsdi2_sign): Fixed z10prop attribute.
29503 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29504 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29505 (doloop_si64): Fixed z10prop attribute.
29506 (doloop_si31): Fixed z10prop attribute.
29507 (doloop_long): Fixed z10prop attribute.
29508 (indirect_jump): Fixed z10prop attribute.
29509 (nop): Fixed z10prop attribute.
29510 (main_base_64): Fixed z10prop attribute.
29511 (reload_base_64): Fixed z10prop attribute.
29512
29513 2009-01-28 Jakub Jelinek <jakub@redhat.com>
29514
29515 PR rtl-optimization/38740
29516 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29517 if !optimize.
29518 * config/mips/mips.c (mips_reorg): Likewise.
29519
29520 2009-01-28 Richard Guenther <rguenther@suse.de>
29521
29522 PR tree-optimization/38926
29523 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29524 with the correct value id to a value.
29525 (do_regular_insertion): Use the value number of edoubleprime
29526 for the value number of the expr.
29527
29528 Revert
29529 2008-08-21 Richard Guenther <rguenther@suse.de>
29530
29531 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29532 a PHI ask VN if it is already available.
29533 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29534 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
29535
29536 2009-01-28 Jakub Jelinek <jakub@redhat.com>
29537
29538 PR middle-end/38934
29539 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29540 set to varying whenever max has TREE_OVERFLOW set, similarly
29541 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29542
29543 2009-01-28 Richard Guenther <rguenther@suse.de>
29544
29545 PR middle-end/38908
29546 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29547 uninitialized aggregate uses in call arguments.
29548
29549 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
29550
29551 PR tree-optimization/38984
29552 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29553 the nothing_id variable if -fno-delete-null-pointer-checks.
29554
29555 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
29556
29557 PR target/38988
29558 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29559 (set_got_offset_rex64): Ditto.
29560
29561 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
29562
29563 PR target/38941
29564 * doc/extend.texi: Improve local variable with asm reg.
29565
29566 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
29567
29568 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
29569 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
29570 was not supplied then set warn_packed_bitfield_compat to the
29571 default value of 1.
29572 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
29573 against 1.
29574
29575 2009-01-27 Richard Guenther <rguenther@suse.de>
29576
29577 PR tree-optimization/38503
29578 * cfgexpand.c (expand_gimple_basic_block): Ignore
29579 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
29580 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
29581 variables that cannot have TBAA applied.
29582 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
29583 statements.
29584
29585 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
29586
29587 PR middle-end/38969
29588 * calls.c (initialize_argument_information): Do not wrap complex
29589 arguments in SAVE_EXPR.
29590
29591 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
29592
29593 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
29594 (INSTALL_LIBGCC): Revert typo commit.
29595
29596 2009-01-26 Richard Guenther <rguenther@suse.de>
29597
29598 PR tree-optimization/38745
29599 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
29600 from special handling.
29601
29602 2009-01-26 Richard Guenther <rguenther@suse.de>
29603
29604 PR tree-optimization/38745
29605 * tree-ssa.c (execute_update_addresses_taken): Do not include
29606 variables that cannot possibly be a register in not_reg_needs.
29607 Do not clear TREE_ADDRESSABLE on vars that may not become
29608 registers.
29609 * tree-ssa.c (update_alias_info_1): Include those in the set
29610 of addressable vars.
29611
29612 2009-01-26 Richard Guenther <rguenther@suse.de>
29613
29614 PR middle-end/38851
29615 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
29616 * tree-ssa-dse.c: Include langhooks.h
29617 (execute_simple_dse): Remove stores with zero size.
29618
29619 2009-01-24 Jakub Jelinek <jakub@redhat.com>
29620
29621 PR c/38957
29622 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
29623 as PLUS_EXPR.
29624
29625 2009-01-24 Julian Brown <julian@codesourcery.com>
29626
29627 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
29628 config/arm/linux-atomic.c.
29629 * config/arm/linux-atomic.c: New.
29630
29631 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
29632
29633 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
29634 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
29635 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
29636
29637 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
29638
29639 PR c/38938
29640 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
29641 properly.
29642
29643 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
29644
29645 PR tree-optimization/38953
29646 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
29647 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
29648 (gloog): Split the exit of the scop when the scop exit is a loop exit.
29649 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
29650 changed the CFG.
29651
29652 2009-01-24 Paul Brook <paul@codesourcery.com>
29653
29654 * config/arm/neon.md (neon_type): Move to arm.md.
29655 (neon_mov<VSTRUCT>): Add neon_type attribute.
29656 * config/arm/arm.md (neon_type): Move to here.
29657 (conds): Add "unconditioal" and use as default for NEON insns.
29658
29659 2009-01-24 Ben Elliston <bje@au.ibm.com>
29660
29661 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
29662 void *' warning from -Wc++-compat.
29663 * Makefile.in (dominance.o-warn): Remove.
29664
29665 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
29666
29667 PR tree-optimization/38932
29668 * fold-const.c (fold_unary_ignore_overflow): New.
29669 * tree.h (fold_unary_ignore_overflow): Declare.
29670 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
29671 * tree-ssa-sccvn.c (visit_reference_op_load,
29672 simplify_unary_expression): Likewise.
29673
29674 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
29675
29676 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
29677 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
29678 regardless of their type.
29679 * c-common.c (handle_packed_attribute): Don't ignore packed on
29680 bitfields.
29681 * c.opt (Wpacked-bitfield-compat): New warning option.
29682 * stor-layout.c (place_field): Warn if offset of a field changed.
29683 * doc/extend.texi (packed): Mention the ABI change.
29684 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
29685 (Warning Options): Add it to the list.
29686
29687 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
29688
29689 * c-opts.c (c_common_post_options): Fix a typo in comments.
29690
29691 2009-01-22 Steve Ellcey <sje@cup.hp.com>
29692
29693 PR middle-end/38615
29694 * gimplify.c (gimplify_init_constructor): Fix promotion of const
29695 variables to static.
29696 * doc/invoke.texi (-fmerge-all-constants): Update description.
29697
29698 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
29699
29700 PR target/38931
29701 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
29702 (*movdi_1_rex64): Use type "mmx" for alternative 5.
29703
29704 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
29705
29706 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
29707 a word boundary.
29708 (LOCAL_ALIGNMENT): Similarly.
29709
29710 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
29711 Joseph Myers <joseph@codesourcery.com>
29712
29713 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
29714 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
29715 * config/arm/arm-tune.md: Regenerate.
29716 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
29717 -march=iwmmxt2.
29718
29719 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
29720
29721 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
29722 version number to five.
29723
29724 2009-01-22 Dodji Seketeli <dodji@redhat.com>
29725
29726 PR c++/38930
29727 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
29728 * c-common.c (set_underlying_type): Likewise.
29729 (is_typedef_decl ): Likewise
29730 * tree.h: Likewise
29731 (set_underlying_type): Likewise.
29732 (is_typedef_type): Likewise.
29733
29734 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
29735
29736 PR middle-end/38587
29737 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
29738 crossing setjmps.
29739
29740 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
29741
29742 PR bootstrap/37660
29743 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
29744 (LIBGCC_SPEC): Don't define.
29745 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
29746
29747 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
29748
29749 PR rtl-optimization/38879
29750 * alias.c (base_alias_check): Unaligned access via AND address can
29751 alias all surrounding object types except those with sizes equal
29752 or wider than the size of unaligned access.
29753
29754 2009-01-21 Dodji Seketeli <dodji@redhat.com>
29755
29756 PR c++/26693
29757 * c-decl.c (clone_underlying_type): Move this ...
29758 * c-common.c (set_underlying_type): ... here.
29759 Also, make sure the function properly sets TYPE_STUB_DECL() on
29760 the newly created typedef variant type.
29761 (is_typedef_decl ): New entry point.
29762 * tree.h: Added a new member member_types_needing_access_check to
29763 struct tree_decl_non_common.
29764 (set_underlying_type): New entry point.
29765 (is_typedef_type): Likewise.
29766
29767 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
29768
29769 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
29770 Check whether two instructions have memory references that
29771 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
29772 are helper functions for traversing.
29773 * alias.h (insn_alias_sets_confilict_p): New prototypes.
29774 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
29775 not to draw dependency edge for instructions with non-conflicting
29776 alias sets.
29777
29778 2009-01-20 Joseph Myers <joseph@codesourcery.com>
29779
29780 PR other/38758
29781 * longlong.h: Update copyright years. Use soft-fp license notice.
29782 Sync __clz_tab declaration with glibc.
29783
29784 2009-01-20 Steve Ellcey <sje@cup.hp.com>
29785
29786 PR target/30687
29787 * doc/extend.texi (syscall_linkage): New.
29788 (version_id): Modify.
29789
29790 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
29791 Richard Guenther <rguenther@suse.de>
29792
29793 PR tree-optimization/38747
29794 PR tree-optimization/38748
29795 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
29796 conversion if the base address is an indirect reference and the
29797 aliasing sets could cause issues.
29798
29799 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
29800
29801 * common.opt (fgraphite, fgraphite-identity): Add comment for
29802 explaining why these options are not documented.
29803
29804 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
29805
29806 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
29807 gimple_call_lhs is NULL.
29808
29809 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
29810
29811 PR target/38868
29812 * emit-rtl.c (adjust_address_1): Make sure memref is never
29813 overwritten.
29814
29815 2009-01-20 Ben Elliston <bje@au.ibm.com>
29816
29817 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29818 const qualifier from arg parameter. Remove unnecessary cast to char *.
29819 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29820 const qualifier from arg 2.
29821
29822 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
29823
29824 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
29825
29826 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
29827
29828 PR c/38869
29829 * rtl.h (reinit_regs): New prototype.
29830 * regclass.c: Include ira.h.
29831 (reinit_regs): New.
29832 * Makefile.in (regclass.o): Add ira.h.
29833 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
29834
29835 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
29836
29837 PR target/38736
29838 * c-common.c (handle_aligned_attribute): Use
29839 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
29840 default alignment value.
29841
29842 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
29843
29844 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
29845 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
29846
29847 * doc/extend.texi: Update __attribute__ ((aligned)). Document
29848 __BIGGEST_ALIGNMENT__.
29849
29850 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
29851
29852 2009-01-18 Richard Guenther <rguenther@suse.de>
29853
29854 PR tree-optimization/38819
29855 * tree-flow.h (operation_could_trap_helper_p): Declare.
29856 * tree-eh.c (operation_could_trap_helper_p): Export.
29857 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
29858 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
29859 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
29860 are about to insert a possibly trapping instruction and fail
29861 in this case.
29862
29863 2009-01-18 Andreas Schwab <schwab@suse.de>
29864
29865 * doc/install.texi (Configuration): Remove obsolete paragraph
29866 about use of --with-gnu-ld with --with-gnu-as.
29867
29868 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
29869
29870 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
29871 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
29872 Follow spelling conventions.
29873
29874 2009-01-18 Ben Elliston <bje@au.ibm.com>
29875
29876 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
29877 C++ warning about implicit conversion from void * to struct
29878 bitmap_head_def *.
29879 (bitmap_obstack_free): Likewise for bitmap_element *.
29880 * Makefile.in (bitmap.o-warn): Remove.
29881
29882 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
29883
29884 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
29885
29886 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
29887 Tobias Grosser <tobi.grosser@amd.com>
29888
29889 * graphite.c (graphite_trans_scop_block): Do not block single
29890 nested loops.
29891
29892 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
29893
29894 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
29895 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
29896 test with assertion.
29897
29898 2009-01-16 Richard Guenther <rguenther@suse.de>
29899
29900 PR tree-optimization/38835
29901 PR middle-end/36227
29902 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
29903 and INT + PTR -> (INT)(PTR p+ INT) folding.
29904 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
29905
29906 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
29907
29908 PR target/38554
29909 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
29910 the subreg from a lowpart subreg if it is also casting the value.
29911
29912 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
29913 Tobias Grosser <tobi.grosser@amd.com>
29914
29915 * graphite.c (compare_prefix_loops): New.
29916 (build_scop_canonical_schedules): Rewritten.
29917 (graphite_transform_loops): Move build_scop_canonical_schedules
29918 after build_scop_iteration_domain.
29919
29920 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
29921 Tobias Grosser <tobi.grosser@amd.com>
29922
29923 * graphite.c (add_conditions_to_domain): Add the loops to
29924 the dimension of the iteration domain. Do copy the domain
29925 only when it exists.
29926 (build_scop_conditions_1): Do not call add_conditions_to_domain.
29927 (add_conditions_to_constraints): New.
29928 (can_generate_code_stmt, can_generate_code): Removed.
29929 (gloog): Do not call can_generate_code.
29930 (graphite_transform_loops): Call add_conditions_to_constraints
29931 after building the iteration domain.
29932
29933 2009-01-16 Jakub Jelinek <jakub@redhat.com>
29934
29935 PR tree-optimization/38789
29936 * tree-ssa-threadedge.c
29937 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
29938 __builtin_constant_p.
29939
29940 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
29941
29942 * dce.c (delete_unmarked_insns): Reversed the order that insns are
29943 examined before deleting them.
29944
29945 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
29946
29947 * function.c (aggregate_value_p): Correctly extract the function
29948 type from CALL_EXPR_FN lookup.
29949
29950 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
29951
29952 * config/picochip/picochip.c (picochip_override_options): Revert
29953 CFI asm flag disable commited previously.
29954
29955 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
29956 Tobias Grosser <tobi.grosser@amd.com>
29957 Jan Sjodin <jan.sjodin@amd.com>
29958
29959 * graphite.c (scan_tree_for_params): On substractions negate
29960 all the coefficients of the term.
29961 (clast_to_gcc_expression_red): New. Handle reduction expressions
29962 of more than two operands.
29963 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
29964 (get_vdef_before_scop): Handle also the case of default definitions.
29965
29966 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
29967
29968 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
29969 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
29970 Also use them when walking CALL_INSN_FUNCTION_USAGE.
29971
29972 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
29973 Joey Ye <joey.ye@intel.com>
29974
29975 PR middle-end/37843
29976 * cfgexpand.c (expand_stack_alignment): Don't update stack
29977 boundary nor check incoming stack boundary here.
29978 (gimple_expand_cfg): Update stack boundary and check incoming
29979 stack boundary here.
29980
29981 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
29982
29983 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
29984
29985 2009-01-14 Jakub Jelinek <jakub@redhat.com>
29986
29987 PR rtl-optimization/38245
29988 * calls.c (expand_call): Add stack arguments to
29989 CALL_INSN_FUNCTION_USAGE even for pure calls (when
29990 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
29991 in regs and partially in memory or BLKmode arguments.
29992 (emit_library_call_value_1): Add stack arguments to
29993 CALL_INSN_FUNCTION_USAGE even for pure calls (when
29994 ACCUMULATE_OUTGOING_ARGS).
29995 * dce.c: Include tm_p.h.
29996 (find_call_stack_args): New function.
29997 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
29998 argument.
29999 (mark_insn): Call find_call_stack_args for CALL_Ps.
30000 (prescan_insns_for_dce): Walk insns backwards in bb rather than
30001 forwards. Allocate and free arg_stores bitmap if needed, pass it
30002 down to deletable_insn_p, don't mark stores set in arg_stores
30003 bitmap, clear the bitmap at the beginning of each bb.
30004 * Makefile.in (dce.o): Depend on $(TM_P_H).
30005
30006 2009-01-14 Michael Meissner <gnu@the-meissners.org>
30007
30008 PR target/22599
30009 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
30010 to make sure the insn is a conditional test (bug 22599). Reformat a
30011 few long lines.
30012
30013 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
30014
30015 PR middle-end/38431
30016 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
30017 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
30018 (gloog): Do not call cleanup_tree_cfg.
30019 (graphite_transform_loops): Call cleanup_tree_cfg after all
30020 scops have been code generated.
30021
30022 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
30023 * doc/gty.texi (Invoking the garbage collector): Added new node
30024 and section documenting ggc_collect.
30025
30026 2009-01-14 Richard Guenther <rguenther@suse.de>
30027
30028 PR tree-optimization/38826
30029 PR middle-end/38477
30030 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
30031 initialization notes only if we actually emitted a warning.
30032 (intra_create_variable_infos): Add constraints for a result decl
30033 that is passed by hidden reference.
30034 (build_pred_graph): Mark all related variables non-direct on
30035 address-taking.
30036
30037 2009-01-14 Nick Clifton <nickc@redhat.com>
30038
30039 * ira-conflicts.c: Include addresses.h for the definition of
30040 base_reg_class.
30041 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
30042 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
30043
30044 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
30045
30046 PR target/38811
30047 * Makefile.in (ira-lives.o): Add except.h.
30048
30049 * ira-lives.c: Include except.h.
30050 (process_bb_node_lives): Process can_throw_internal.
30051
30052 2009-01-13 Jakub Jelinek <jakub@redhat.com>
30053
30054 PR rtl-optimization/38774
30055 * combine.c (simplify_set): When undoing cc_use change, don't do
30056 PUT_CODE on the newly created comparison, but instead put back the
30057 old comparison.
30058
30059 2009-01-13 Joseph Myers <joseph@codesourcery.com>
30060
30061 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
30062 values. Remove duplicate arm8 entry.
30063
30064 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
30065
30066 PR tree-optimization/38786
30067 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
30068 the SSA_NAME case of expand_scalar_variables_expr.
30069 Set the type of an expression to the type of its assign statement.
30070 (expand_scalar_variables_expr): Also gather the scalar computation
30071 used to index the memory access. Do not pass loop_p.
30072 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
30073 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
30074 the gimple_stmt_iterator where it inserts new code.
30075 Do not pass loop_p.
30076 (copy_bb_and_scalar_dependences): Do not pass loop_p.
30077 (translate_clast): Update call to copy_bb_and_scalar_dependences.
30078
30079 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
30080
30081 * graphite.h (debug_value): Removed.
30082 * graphite.c (debug_value): Removed.
30083
30084 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
30085
30086 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
30087 ldrd/strd with two 32-bit instructions.
30088
30089 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
30090
30091 * config/arm/arm.c (struct processors): Pass for speed down into
30092 cost helper functions.
30093 (const_ok_for_op): Handle COMPARE and inequality nodes.
30094 (arm_rtx_costs_1): Rewrite.
30095 (arm_size_rtx_costs): Update prototype.
30096 (arm_rtx_costs): Pass speed down to helper functions.
30097 (arm_slowmul_rtx_costs): Rework cost calculations.
30098 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
30099 (arm_9e_rtx_costs): Likewise.
30100
30101 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
30102
30103 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
30104 relocations of local symbols wider than UNITS_PER_WORD are not valid.
30105 (alpha_legitimize_address): Do not split local symbols wider than
30106 UNITS_PER_WORD into HIGH/LO_SUM parts.
30107
30108 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
30109
30110 PR bootstrap/38580
30111 * gcc.c (process_command): Replace call to execvp with calls
30112 to pex_one and exit.
30113
30114 2009-01-03 Anatoly Sokolov <aesok@post.ru>
30115
30116 PR target/29141
30117 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
30118 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
30119 variant for devices with 3-byte PC.
30120 (__tablejump_elpm__): New.
30121
30122 2009-01-12 Jakub Jelinek <jakub@redhat.com>
30123
30124 PR c/32041
30125 * c-parser.c (c_parser_postfix_expression): Allow `->' in
30126 offsetof member-designator, handle it as `[0].'.
30127
30128 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30129
30130 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30131 function when not using named sections on targets with named sections
30132 if branch distance is less than 262132.
30133
30134 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
30135
30136 * combine.c (combine_instructions): Recompute
30137 optimize_this_for_speed_p for each BB in the main combine loop.
30138
30139 2009-01-12 Tomas Bily <tbily@suse.cz>
30140
30141 PR middlend/38385
30142 * tree-loop-distribution.c (prop_phis): New function.
30143 (generate_builtin): Call prop_phis.
30144
30145 2009-01-12 Jakub Jelinek <jakub@redhat.com>
30146
30147 PR tree-optimization/38807
30148 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30149 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30150
30151 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
30152
30153 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30154 subreg of op0 to the original op0.
30155
30156 2009-01-11 Laurent GUERBY <laurent@guerby.net>
30157
30158 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
30159
30160 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
30161
30162 PR debug/7055
30163 * mips-tfile.c (parse_def): Fix parsing of def strings
30164 starting with digits.
30165
30166 2009-01-10 Jakub Jelinek <jakub@redhat.com>
30167
30168 PR target/38695
30169 * config/arm/arm.c (arm_is_long_call_p): Don't call
30170 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30171
30172 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
30173
30174 * regrename.c (regrename_optimize): Fix dumping.
30175 (find_oldest_value_reg): Preserve REG_POINTER.
30176 (copy_hardreg_forward_1): Likewise.
30177
30178 2009-01-09 Diego Novillo <dnovillo@google.com>
30179
30180 * gimple.h (struct gimple_statement_base) <uid>: Document
30181 the restrictions on its use.
30182 (gimple_uid): Tidy.
30183 (gimple_set_uid): Tidy.
30184
30185 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30186
30187 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30188 zero guard even if align_bytes != 0 and count is smaller than
30189 size_needed.
30190
30191 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
30192
30193 PR rtl-optimization/38495
30194 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
30195 (add_range_and_copies_from_move_list): Print all added ranges.
30196 Add ranges to memory optimized destination.
30197
30198 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30199
30200 PR target/38686
30201 PR target/38708
30202 * config/i386/i386.c (override_options): Reject
30203 -mstringop-strategy=rep_8byte with -m32.
30204 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30205 to 1. Do count comparison against epilogue_size_needed at compile
30206 time even when count_exp was constant forced into register. For
30207 size_needed don't jump to epilogue, instead just avoid aligning
30208 and invoke the body algorithm. If need_zero_guard, add zero guard
30209 even if count is non-zero, but smaller than size_needed + number of
30210 bytes that could be stored for alignment.
30211 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30212 to 1. If need_zero_guard, add zero guard even if count is non-zero,
30213 but smaller than size_needed + number of bytes that could be stored
30214 for alignment. Compare size_needed with epilogue_size_needed instead
30215 of desired_align - align, don't adjust size_needed, pass
30216 epilogue_size_needed to the epilogue expanders.
30217
30218 PR c/35742
30219 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
30220
30221 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30222
30223 * pa.c (last_address): Change to unsigned.
30224 (update_total_code_bytes): Change argument to unsigned. Don't
30225 check if insn addresses are set.
30226 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30227 addresses are not set.
30228 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30229
30230 2009-01-09 Nick Clifton <nickc@redhat.com>
30231
30232 * config/sh/symbian.c: Replace uses of DECL_INLINE with
30233 DECL_DECLARED_INLINE_P.
30234
30235 2009-01-09 Jakub Jelinek <jakub@redhat.com>
30236
30237 PR middle-end/38347
30238 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30239 GET_MODE (op0) in operand_subword_force calls.
30240
30241 PR middle-end/38771
30242 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30243 fold_convert arg0 operands to TREE_TYPE (op0) first.
30244
30245 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
30246
30247 * params.def (ira-max-conflict-table-size): Decrease default value
30248 to 1000.
30249
30250 2009-01-08 Jakub Jelinek <jakub@redhat.com>
30251
30252 PR tree-optimization/37031
30253 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30254 on parameter_set.
30255 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30256 allocate it using gc instead of heap, use VEC_quick_push instead of
30257 VEC_safe_push.
30258 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30259 instead of heap, use VEC_quick_push instead of VEC_safe_push.
30260 * tree-data-ref.h (struct access_matrix): Change matrix to gc
30261 allocated vector from heap allocated.
30262 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30263 * tree-loop-linear.c (linear_transform_loops): Allocate nest
30264 vector only after perfect_loop_nest_depth call.
30265
30266 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
30267 Jan Sjodin <jan.sjodin@amd.com>
30268
30269 PR tree-optimization/38559
30270 * graphite.c (debug_value, copy_constraint,
30271 swap_constraint_variables, scale_constraint_variable, ): New.
30272 (get_lower_bound, get_upper_bound): Removed.
30273 (graphite_trans_bb_strip_mine): Clean up this code that works
30274 only for constant number of iterations. Fully copy upper and
30275 lower bound constraints, not only the constant part of them.
30276 * graphite.h (debug_value): Declared.
30277
30278 2009-01-08 Ira Rosen <irar@il.ibm.com>
30279
30280 PR tree-optimization/37194
30281 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
30282 Don't add the cost of cost model guard in prologue to scalar
30283 outside cost in case of known number of iterations.
30284
30285 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
30286 Alan Modra <amodra@bigpond.net.au>
30287
30288 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30289 non-word-aligned REG+CONST addressing.
30290
30291 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
30292
30293 PR target/38706
30294 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30295 free_after_compilation when outputting a thunk.
30296 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30297 Do not call free_after_compilation here.
30298
30299 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
30300
30301 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
30302 (ix86_valid_target_attribute_inner_p): Ditto.
30303
30304 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
30305
30306 PR tree-optimization/38492
30307 PR tree-optimization/38498
30308 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30309 * tree-chrec.h (scev_is_linear_expression): Declared.
30310 * graphite.c (graphite_cannot_represent_loop_niter): New.
30311 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30312 (graphite_loop_normal_form): Use gcc_assert.
30313 (scan_tree_for_params): Use CASE_CONVERT.
30314 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30315 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30316 Use gcc_assert. Discard scops that contain unhandled cases.
30317 (build_scop_conditions): Return a boolean status for unhandled cases.
30318 (strip_mine_profitable_p): Print the loop number, not its depth.
30319 (is_interchange_valid): Pass the depth of the loop nest, don't
30320 recompute it wrongly.
30321 (graphite_trans_bb_block): Same.
30322 (graphite_trans_bb_block): Print tentative of loop blocking.
30323 (graphite_trans_scop_block): Do not print that the loop has been
30324 blocked.
30325 (graphite_transform_loops): Do not handle scops that contain condition
30326 scalar phi nodes.
30327
30328 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
30329
30330 AVX Programming Reference (December, 2008)
30331 * config/i386/avxintrin.h (_mm256_stream_si256): New.
30332 (_mm256_stream_pd): Likewise.
30333 (_mm256_stream_ps): Likewise.
30334
30335 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
30336 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
30337 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
30338 (bdesc_special_args): Add __builtin_ia32_movntdq256,
30339 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
30340 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
30341 (ix86_expand_special_args_builtin): Likewise.
30342
30343 * config/i386/sse.md (AVXMODEDI): New.
30344 (avx_movnt<mode>): Likewise.
30345 (avx_movnt<mode>): Likewise.
30346 (<sse>_movnt<mode>): Remove AVX support.
30347 (sse2_movntv2di): Likewise.
30348
30349 2009-01-07 Richard Guenther <rguenther@suse.de>
30350
30351 PR middle-end/38751
30352 * fold-const.c (extract_muldiv): Remove obsolete comment.
30353 (fold_plusminus_mult_expr): Undo MINUS_EXPR
30354 to PLUS_EXPR canonicalization for the canonicalization.
30355
30356 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
30357
30358 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30359 hosted cross-compilers generating less efficient code.
30360
30361 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30362
30363 * function.h (rtl_data): Add a dbr_scheduled_p field.
30364 * reorg.c (dbr_schedule): Set it.
30365 (gate_handle_delay_slots): Check it.
30366 * config/mips/mips.c (mips_base_delayed_branch): Delete.
30367 (mips_reorg): Check flag_delayed_branch instead of
30368 mips_base_delayed_branch.
30369 (mips_override_options): Don't set mips_base_delayed_branch
30370 or flag_delayed_branch.
30371
30372 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
30373
30374 PR rtl-optimization/38426.
30375 * ira.c (ira): Set current_function_is_leaf earlier.
30376
30377 2009-01-06 Jakub Jelinek <jakub@redhat.com>
30378
30379 PR rtl-optimization/38722
30380 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30381 too early, only set a flag and modify after last possible
30382 undo_all point.
30383
30384 2009-01-06 Janis Johnson <janis187@us.ibm.com>
30385
30386 PR c/34252
30387 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30388 * real.c (decimal_single_format): Correct values of emin and emax.
30389 (decimal_double_format): Ditto.
30390 (decimal_quad_format): Ditto.
30391 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30392 computation of DECnn_MIN and DECnn_MAX for corrected values of
30393 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
30394 __DECnn_MIN__, and adjust its computation for the corrected value
30395 of emin.
30396
30397 2009-01-06 Jan Hubicka <jh@suse.cz>
30398
30399 PR target/38744
30400 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
30401
30402 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
30403
30404 * doc/contrib.texi (Contributors): Slightly adjust the end note.
30405 Add Robert Clark to the list of testers.
30406
30407 2009-01-06 Jan Hubicka <jh@suse.cz>
30408 Kai Tietz <kai.tietz@onevision.com>
30409
30410 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30411 * config/i386/i386.c (ix86_expand_call): Add clobbers.
30412
30413 2009-01-06 Jan Hubicka <jh@suse.cz>
30414 Kai Tietz <kai.tietz@onevision.com>
30415
30416 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30417 for w64 ABI.
30418 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
30419 (ix86_nsaved_regs): Count only general purpose regs.
30420 (ix86_nsaved_sseregs): New.
30421 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30422 to 16 for w64; compute padding and size of sse reg save area.
30423 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30424 general purpose regs.
30425 (ix86_emit_save_sse_regs_using_mov): New.
30426 (ix86_expand_prologue): Save SSE regs if needed.
30427 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30428 (ix86_emit_restore_sse_regs_using_mov): New.
30429 (ix86_expand_epilogue): Save SSE regs if needed.
30430
30431 2009-01-06 Jan Hubicka <jh@suse.cz>
30432 Kai Tietz <kai.tietz@onevision.com>
30433
30434 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30435 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30436 functions when accumulate outgoing args is off.
30437
30438 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30439
30440 PR bootstrap/38742
30441 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30442 before using pseudos_have_intersected_live_ranges_p.
30443
30444 * ira-int.h (ira_assert): Always define.
30445
30446 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
30447
30448 AVX Programming Reference (December, 2008)
30449 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30450 (_mm256_permute2_pd): Likewise.
30451 (_mm_permute2_ps): Likewise.
30452 (_mm256_permute2_ps): Likewise.
30453 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30454 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30455
30456 * config/i386/i386.c (ix86_builtins): Remove
30457 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30458 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30459 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30460 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30461 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30462 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30463 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30464 __builtin_ia32_vpermil2ps256.
30465 (ix86_init_mmx_sse_builtins): Updated.
30466 (ix86_expand_args_builtin): Likewise.
30467
30468 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30469
30470 * pa.c (output_call): Relocate non-jump insns in the delay slot of
30471 long absolute calls when generating PA 2.0 code.
30472
30473 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
30474
30475 PR rtl-optimization/38583
30476 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30477
30478 * params.def (ira-max-conflict-table-size): New.
30479
30480 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
30481
30482 * ira.h (ira_conflicts_p): New external definition.
30483
30484 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30485 table. Report this. Return result of building.
30486 (ira_build_conflicts): Use ira_conflicts_p. Check result of
30487 building conflict table.
30488
30489 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
30490 (ira_color): Use ira_conflicts_p.
30491
30492 * global.c: Include ira.h.
30493 (pseudo_for_reload_consideration_p, build_insn_chain): Use
30494 ira_conflicts_p.
30495
30496 * Makefile.in (global.o): Add ira.h.
30497
30498 * ira-build.c (mark_all_loops_for_removal,
30499 propagate_some_info_from_allocno): New.
30500 (remove_unnecessary_allocnos): Call
30501 propagate_some_info_from_allocno.
30502 (remove_low_level_allocnos): New.
30503 (remove_unnecessary_regions): Add parameter. Call
30504 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
30505 parameter to remove_unnecessary_regions.
30506 (ira_build): Remove all regions but root if the conflict table was
30507 not built. Update conflict hard regs for allocnos crossing calls.
30508
30509 * ira.c (ira_conflicts_p): New global.
30510 (ira): Define and use ira_conflicts_p.
30511
30512 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30513 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
30514 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
30515
30516 2009-01-06 Ben Elliston <bje@au.ibm.com>
30517
30518 * gengtype-lex.l (YY_NO_INPUT): Define.
30519
30520 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
30521
30522 PR c/34911
30523 * c-common.c (handle_vector_size_attribute): Also reject
30524 BOOLEAN_TYPE types.
30525
30526 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
30527
30528 PR tree-optimization/38492
30529 * graphite.c (rename_map_elt, debug_rename_elt,
30530 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30531 rename_map_elt_info, eq_rename_map_elts,
30532 get_new_name_from_old_name, bb_in_sese_p): Moved around.
30533 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30534 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30535 (sese_build_livein_liveouts): New.
30536 (new_sese, free_sese): New.
30537 (new_scop): Call new_sese.
30538 (free_scop): Call free_sese.
30539 (rename_variables_from_edge, rename_phis_end_scop): Removed.
30540 (register_old_new_names): Renamed register_old_and_new_names.
30541 (register_scop_liveout_renames, add_loop_exit_phis,
30542 insert_loop_close_phis, struct igp,
30543 default_liveout_before_guard, add_guard_exit_phis,
30544 insert_guard_phis, copy_renames): New.
30545 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30546 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30547 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30548 (scop_adjust_phis_for_liveouts): New.
30549 (gloog): Call scop_adjust_phis_for_liveouts.
30550
30551 * graphite.h (struct sese): Documented. Added fields liveout,
30552 num_ver and livein.
30553 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30554 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30555 (struct scop): Added field liveout_renames.
30556 (SCOP_LIVEOUT_RENAMES): New.
30557
30558 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
30559
30560 PR tree-optimization/38510
30561 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30562 (translate_clast): Call recompute_all_dominators before
30563 graphite_verify.
30564 (gloog): Call recompute_all_dominators before graphite_verify.
30565
30566 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
30567 Jan Sjodin <jan.sjodin@amd.com>
30568
30569 PR tree-optimization/38500
30570 * graphite.c (create_sese_edges): Call fix_loop_structure after
30571 splitting blocks.
30572
30573 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
30574
30575 * config.gcc: Add m32r*-*-rtems*.
30576 * config/m32r/rtems.h: New file.
30577
30578 2009-01-05 Ben Elliston <bje@au.ibm.com>
30579
30580 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
30581 (.po.pox): Likewise.
30582 (po/gcc.pot): Likewise.
30583
30584 2009-01-04 David S. Miller <davem@davemloft.net>
30585
30586 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
30587 (STARTING_FRAME_OFFSET): Always set to zero.
30588
30589 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
30590
30591 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
30592 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
30593 fixed-point types, and vectors of the same.
30594
30595 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
30596
30597 * config/mips/sync.md (*mb_barrier): Rename to...
30598 (*memory_barrier): ...this.
30599
30600 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
30601
30602 * doc/extend.texi (Function Attributes): Move @cindex after @item
30603 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
30604 and put in alphabetical order. Fix 'target' name and put in order.
30605 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
30606 typos.
30607
30608 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
30609
30610 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
30611 (memory_barrier): Expand as unspec instead of unspec_volatile.
30612 Remove mem:BLK from insn operands. Use Pmode scratch register.
30613 (*memory_barrier): Define as unspec instead of unspec_volatile.
30614 Use (match_dup 0) as input operand.
30615
30616 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
30617 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
30618 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
30619 scratch register. Remove operand 1.
30620 (*stbar): Define as unspec instead of unspec_volatile.
30621 Use (match_dup 0) as input operand, remove (const_int 8).
30622 (*membar): Define as unspec instead of unspec_volatile.
30623 Use (match_dup 0) as input operand, remove input operand 2.
30624
30625 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
30626 (memory_barrier): Expand as unspec instead of unspec_volatile.
30627 Remove mem:BLK from insn operands. Use Pmode scratch register.
30628 (*memory_barrier): Define as unspec instead of unspec_volatile.
30629 Use (match_dup 0) as input operand.
30630
30631 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
30632 Remove mem:BLK from insn operands. Use Pmode scratch register.
30633 Set volatile flag on operand 0.
30634 (*memory_barrier): New insn pattern.
30635
30636 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
30637 insn operands.
30638 (*memory_barrier): Use (match_dup 0) as input operand.
30639
30640 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
30641 Remove mem:BLK from insn operands. Use Pmode scratch register.
30642 Set volatile flag on operand 0.
30643 (*mb_internal): New insn pattern.
30644
30645 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
30646
30647 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
30648
30649 PR middle-end/38586
30650 * function.c (struct temp_slot): Move to the section of the file
30651 that deals with temp slots. Remove field 'address'.
30652 (temp_slot_address_table): New hash table of address -> temp slot.
30653 (struct temp_slot_address_entry): New struct, items for the table.
30654 (temp_slot_address_compute_hash, temp_slot_address_hash,
30655 temp_slot_address_eq, insert_temp_slot_address): Support functions
30656 for the new table.
30657 (find_temp_slot_from_address): Rewrite to use the new hash table.
30658 (remove_unused_temp_slot_addresses): Remove addresses of temp
30659 slots that have been made available.
30660 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
30661 worker function for remove_unused_temp_slot_addresses.
30662 (assign_stack_temp_for_type): Don't clear the temp slot address list.
30663 Add the temp slot address to the address -> temp slot map.
30664 (update_temp_slot_address): Update via insert_temp_slot_address.
30665 (free_temp_slots): Call remove_unused_temp_slot_addresses.
30666 (pop_temp_slots): Likewise.
30667 (init_temp_slots): Allocate the address -> temp slot map, or empty
30668 the map if it is already allocated.
30669 (prepare_function_start): Initialize temp slot processing.
30670
30671 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
30672
30673 PR middle-end/38584
30674 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
30675 Calculate the size of all stack vars assuming no packing of stack
30676 vars will happen, replacing a quadratic algorithm with a linear one.
30677
30678 2009-01-03 Jakub Jelinek <jakub@redhat.com>
30679
30680 PR target/38707
30681 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
30682 can't be used.
30683
30684 2009-01-03 Diego Novillo <dnovillo@google.com>
30685
30686 * doc/contrib.texi: Update contributions.
30687
30688 2009-01-03 Jakub Jelinek <jakub@redhat.com>
30689
30690 PR c++/38705
30691 * builtins.c (fold_builtin_memory_op): Give up if either operand
30692 is volatile. Set srctype or desttype to non-qualified version
30693 of the other type.
30694
30695 PR c/38700
30696 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
30697 and FUNCTION_DECLs.
30698
30699 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
30700
30701 PR rtl-optimization/35805
30702 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
30703 problem if fast dce is able to remove any instructions.
30704 * dce.c (dce_process_block): Fix dump message.
30705
30706 2009-01-02 Mark Mitchell <mark@codesourcery.com>
30707
30708 PR 33649
30709 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
30710
30711 2009-01-02 Jakub Jelinek <jakub@redhat.com>
30712
30713 PR middle-end/38690
30714 * tree-flow.h (op_code_prio, op_prio): New prototypes.
30715 * tree-pretty-print.c (op_code_prio): New function.
30716 (op_prio): No longer static. Use op_code_prio.
30717 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
30718 Use op_prio and op_code_prio to determine if () should be
30719 printed around operand(s) or not.
30720
30721 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
30722 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
30723 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
30724 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
30725 pp_character instead of pp_string for single letter printing.
30726
30727 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30728
30729 * doc/extend.texi: Fix '#pragma GCC option' typo.
30730
30731 2009-01-02 Richard Guenther <rguenther@suse.de>
30732
30733 * doc/install.texi (--enable-checking): Mention different
30734 default for stage1.
30735 (--enable-stage1-checking): Document.
30736
30737 2009-01-01 Andrew Pinski <pinskia@gmail.com>
30738
30739 PR middle-end/30142
30740 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
30741 case to be an error.
30742
30743 2009-01-02 Ben Elliston <bje@au.ibm.com>
30744
30745 * config/fp-bit.h (pack_d): Constify argument.
30746 * config/fp-bit.c (makenan): Constify return type. Remove casts.
30747 (isnan): Constify argument.
30748 (isinf): Likewise.
30749 (iszero): Likewise.
30750 (pack_d): Likewise.
30751 (_fpadd_parts): Constify return type.
30752 (_fpmul_parts): Likewise.
30753 (_fpdiv_parts): Likewise.
30754
30755 2009-01-01 Jakub Jelinek <jakub@redhat.com>
30756
30757 PR c/36489
30758 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
30759 warn about overwriting initializer with side-effects or
30760 -Woverride-init if !IMPLICIT.
30761 (output_init_element): Likewise. Pass IMPLICIT down to
30762 add_pending_init.
30763 (process_init_element): Add IMPLICIT argument. Pass it down
30764 to output_init_element.
30765 (push_init_element, pop_init_level, set_designator): Adjust
30766 process_init_element callers.
30767 (set_nonincremental_init, set_nonincremental_init_from_string):
30768 Adjust add_pending_init callers.
30769 (output_pending_init_elements): Adjust output_init_element callers.
30770 * c-tree.h (process_init_element): Adjust prototype.
30771 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
30772 process_init_element callers.
30773
30774 \f
30775 Copyright (C) 2009 Free Software Foundation, Inc.
30776
30777 Copying and distribution of this file, with or without modification,
30778 are permitted in any medium without royalty provided the copyright
30779 notice and this notice are preserved.